:root {
  color-scheme: light;
  --bg: #f2f4ef;
  --bg-2: #e8ede5;
  --panel: #fffefa;
  --panel-2: #f5f7f0;
  --surface: #fbfcf7;
  --surface-strong: #ffffff;
  --line: #d6ded0;
  --line-strong: #8fa08a;
  --text: #162019;
  --muted: #526257;
  --faint: #79857b;
  --good: #7ea872;
  --stable: #6ea49b;
  --watch: #d0b855;
  --weak: #b67955;
  --critical: #96515c;
  --accent: #4f7341;
  --road: #96784d;
  --highway: #b58b35;
  --national-road: #7f755e;
  --rail: #267b86;
  --air: #244e82;
  --budget: #b47a41;
  --jobs: #618c5c;
  --hairline: rgba(80, 102, 78, 0.16);
  --shadow: 0 14px 34px rgba(35, 49, 40, 0.12);
  --soft-shadow: 0 1px 2px rgba(35, 49, 40, 0.06), 0 8px 20px rgba(35, 49, 40, 0.07);
  font-family:
    "Pretendard Variable", "Pretendard", "Noto Sans KR", "Segoe UI", system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  --inspector-width: 360px;
  width: 100%;
  max-width: 100vw;
  height: 100vh;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 68px minmax(0, 1fr) 22px;
  background:
    linear-gradient(180deg, rgba(79, 115, 65, 0.08), transparent 220px),
    linear-gradient(90deg, rgba(23, 34, 28, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
}

.topbar {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: stretch;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 6px;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
  background:
    linear-gradient(180deg, rgba(255, 255, 251, 0.98), rgba(247, 249, 243, 0.98));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 20px rgba(35, 49, 40, 0.04);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: none;
  align-self: center;
}

.brand-block > div:last-child {
  min-width: 0;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(91, 113, 91, 0.62);
  border-radius: 5px;
  background:
    linear-gradient(135deg, transparent 47%, rgba(214, 190, 89, 0.72) 48%, transparent 53%),
    linear-gradient(45deg, rgba(56, 96, 72, 0.94), rgba(43, 79, 77, 0.76));
  box-shadow:
    inset 0 0 0 5px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(216, 195, 109, 0.16);
}

.eyebrow {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 7.5px;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 128px;
  overflow: hidden;
  font-size: 10.4px;
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.12;
  overflow-wrap: normal;
  text-overflow: clip;
  white-space: normal;
  word-break: keep-all;
}

.command-strip {
  display: grid;
  grid-template-columns: auto minmax(132px, 0.48fr) minmax(150px, 1fr) auto;
  grid-template-rows: 24px 31px;
  align-content: center;
  align-items: center;
  gap: 3px 4px;
  min-width: 0;
  flex: 1;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  min-height: 23px;
  padding: 1px 3px;
  border: 1px solid rgba(92, 116, 85, 0.16);
  border-radius: 5px;
  background: rgba(252, 253, 248, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  min-inline-size: 0;
}

.nav-group-title,
.nav-group legend {
  margin: 0 2px 0 0;
  padding: 0;
  border: 0;
  color: var(--accent);
  font-size: 9.2px;
  font-weight: 830;
  line-height: 1;
  white-space: nowrap;
}

.baseline-group {
  grid-column: 1;
  grid-row: 1;
  flex: 0 0 auto;
}

.analysis-group {
  grid-column: 2;
  grid-row: 1;
  flex: 0 0 auto;
}

.taxonomy-field {
  min-width: 92px;
}

.taxonomy-inline {
  max-width: 104px;
}

.core-category-group,
.overlay-group {
  margin: 0;
  border-color: rgba(216, 195, 109, 0.16);
}

.core-category-group {
  flex-wrap: nowrap;
}

.category-stack-group {
  grid-column: 1 / 5;
  grid-row: 2;
  width: 100%;
  overflow: hidden;
}

.category-stack-group .nav-group-title {
  flex: 0 0 auto;
}

.core-category-group label:not(.taxonomy-inline),
.overlay-group label,
.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid rgba(126, 145, 126, 0.28);
  border-radius: 4px;
  background: rgba(255, 255, 252, 0.84);
  color: var(--text);
  font-size: 8px;
  white-space: nowrap;
}

.core-category-group label:not(.taxonomy-inline):has(input:checked),
.overlay-group label:has(input:checked),
.category-chip:has(input:checked) {
  border-color: rgba(95, 127, 69, 0.5);
  background: #e7efd8;
}

.category-layer-list {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(95, 127, 69, 0.5) transparent;
}

.category-chip {
  flex: 0 0 auto;
  border-color: rgba(126, 145, 126, 0.26);
  background: rgba(255, 255, 252, 0.86);
  color: var(--text);
}

.category-chip:has(input:checked) {
  border-color: rgba(73, 105, 60, 0.52);
  background: #edf3e5;
  box-shadow: inset 0 -2px 0 rgba(82, 121, 70, 0.72);
}

.core-category-group label:has(input[data-core="population"]:checked) {
  border-color: rgba(95, 143, 107, 0.72);
  background: rgba(95, 143, 107, 0.16);
}

.core-category-group label:has(input[data-core="transport"]:checked) {
  border-color: rgba(63, 127, 150, 0.72);
  background: rgba(63, 127, 150, 0.15);
}

.core-category-group label:has(input[data-core="jobs"]:checked) {
  border-color: rgba(177, 132, 67, 0.76);
  background: rgba(177, 132, 67, 0.16);
}

.core-category-group label:has(input[data-core="housing"]:checked) {
  border-color: rgba(155, 108, 134, 0.72);
  background: rgba(155, 108, 134, 0.15);
}

.core-category-group label:has(input[data-core="issues"]:checked) {
  border-color: rgba(182, 102, 88, 0.72);
  background: rgba(182, 102, 88, 0.14);
}

.core-category-group label:has(input[data-core="needs"]:checked) {
  border-color: rgba(108, 127, 80, 0.72);
  background: rgba(108, 127, 80, 0.15);
}

.core-category-group input,
.overlay-group input,
.category-chip input {
  width: 10px;
  height: 10px;
  margin: 0;
  accent-color: var(--accent);
}

.search-group {
  grid-column: 3;
  grid-row: 1;
  flex: 1 1 auto;
}

.tool-cluster {
  grid-column: 4;
  grid-row: 1;
  align-items: center;
  flex: 0 0 auto;
}

.control-field,
.search-field {
  display: grid;
  gap: 3px;
  min-width: 86px;
}

.search-field {
  min-width: 154px;
}

.compact-field {
  min-width: 76px;
}

.control-field span,
.search-field span {
  color: var(--muted);
  font-size: 10px;
}

select,
input {
  height: 21px;
  border: 1px solid rgba(128, 145, 122, 0.42);
  border-radius: 6px;
  background: rgba(255, 255, 253, 0.96);
  color: var(--text);
  font-size: 8.8px;
  font-weight: 660;
  padding: 0 7px;
  outline: none;
  transition:
    border-color 120ms ease,
    background-color 120ms ease,
    box-shadow 120ms ease;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

select:focus,
input:focus,
button:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(217, 201, 135, 0.2);
}

.tool-button,
.icon-button {
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(128, 145, 122, 0.42);
  border-radius: 6px;
  background: rgba(255, 255, 253, 0.96);
  color: var(--text);
  line-height: 1;
  white-space: nowrap;
  transition:
    border-color 120ms ease,
    background-color 120ms ease,
    color 120ms ease,
    box-shadow 120ms ease;
}

.tool-button:hover,
.icon-button:hover,
.core-category-group label:not(.taxonomy-inline):hover,
.overlay-group label:hover,
.category-chip:hover,
.category-matrix button:hover {
  border-color: rgba(95, 127, 69, 0.62);
  background: rgba(238, 245, 232, 0.96);
}

.tool-button {
  min-width: 38px;
  padding: 0 5px;
  font-size: 8.5px;
  font-weight: 720;
}

.panel-toggle {
  min-width: 50px;
}

.icon-button {
  width: 19px;
  padding: 0;
  font-size: 12px;
}

.tool-button[aria-pressed="true"] {
  border-color: var(--accent);
  color: #ffffff;
  background: #5f7f45;
}

.workspace {
  min-height: 0;
  height: 100%;
  max-width: 100vw;
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--inspector-width);
  gap: 0;
  transition: grid-template-columns 160ms ease;
}

.app-shell.inspector-compact {
  --inspector-width: 285px;
}

.app-shell.inspector-collapsed {
  --inspector-width: 0px;
}

.app-shell.is-resizing-inspector,
.app-shell.is-resizing-inspector *,
.app-shell.is-resizing-ai,
.app-shell.is-resizing-ai * {
  cursor: col-resize !important;
  user-select: none;
}

.app-shell.is-resizing-inspector .workspace,
.app-shell.is-resizing-inspector .inspector,
.app-shell.is-resizing-inspector .ai-panel,
.app-shell.is-resizing-ai .workspace,
.app-shell.is-resizing-ai .ai-panel {
  transition: none !important;
}

.app-shell.is-resizing-inspector .inspector,
.app-shell.is-resizing-ai .ai-panel {
  overflow: hidden;
}

.app-shell.is-resizing-inspector #inspectorContent,
.app-shell.is-resizing-ai #aiPanelContent,
.app-shell.is-resizing-inspector .map-stage {
  pointer-events: none;
}

.map-console {
  min-width: 0;
  min-height: 0;
  position: relative;
  border-right: 1px solid var(--hairline);
  background: #edf1ea;
}

.map-frame-overlay {
  display: none;
}

.corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: rgba(95, 127, 69, 0.55);
}

.corner.tl {
  top: -1px;
  left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
}

.corner.tr {
  top: -1px;
  right: -1px;
  border-top: 2px solid;
  border-right: 2px solid;
}

.corner.bl {
  bottom: -1px;
  left: -1px;
  border-bottom: 2px solid;
  border-left: 2px solid;
}

.corner.br {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid;
  border-bottom: 2px solid;
}

.map-toolbar {
  position: absolute;
  z-index: 5;
  top: 10px;
  left: 10px;
  display: grid;
  grid-template-columns: auto auto;
  align-items: start;
  gap: 6px;
  max-width: 560px;
}

.layer-group {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 6px;
  border: 1px solid rgba(126, 145, 126, 0.42);
  border-radius: 4px;
  background: rgba(255, 255, 250, 0.94);
  backdrop-filter: none;
}

.layer-group legend {
  padding: 0 4px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 820;
}

.layer-group label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(103, 98, 88, 0.54);
  border-radius: 4px;
  background: rgba(19, 25, 22, 0.82);
  color: var(--text);
  font-size: 10px;
  white-space: nowrap;
}

.layer-parent {
  border-color: rgba(216, 195, 109, 0.38) !important;
  background: rgba(50, 50, 34, 0.48) !important;
}

.layer-children {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 4px;
  padding-left: 8px;
  border-left: 1px solid rgba(216, 195, 109, 0.24);
}

.map-toolbar input {
  width: 12px;
  height: 12px;
  accent-color: var(--accent);
}

.map-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  cursor: grab;
}

.map-mode-switch {
  position: absolute;
  z-index: 7;
  top: 10px;
  left: 10px;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(92, 116, 85, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 252, 0.9);
  box-shadow: var(--soft-shadow);
}

.map-mode-switch button {
  height: 22px;
  min-width: 58px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 820;
}

.map-mode-switch button[aria-pressed="true"] {
  border-color: rgba(95, 127, 69, 0.44);
  background: #e7efd8;
  color: var(--text);
}

.map-stage.is-dragging {
  cursor: grabbing;
}

#strategyMap {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  user-select: none;
  touch-action: none;
  cursor: grab;
  background:
    radial-gradient(circle at 52% 45%, rgba(255, 255, 255, 0.52), transparent 42%),
    linear-gradient(180deg, #eef2eb, #e7ede5);
}

#strategyMap.is-dragging {
  cursor: grabbing;
}

#mapViewport {
  transform-origin: 0 0;
  will-change: transform;
}

.cartogram-layer {
  display: none;
}

.app-shell.cartogram-mode .outer-boundary-layer,
.app-shell.cartogram-mode .seam-layer,
.app-shell.cartogram-mode .region-layer,
.app-shell.cartogram-mode .selection-layer,
.app-shell.cartogram-mode .transport-layer,
.app-shell.cartogram-mode .policy-layer,
.app-shell.cartogram-mode .label-layer {
  display: none;
}

.app-shell.cartogram-mode .cartogram-layer {
  display: block;
}

.cartogram-cell {
  cursor: pointer;
}

.cartogram-ghost-boundary {
  fill: none;
  stroke: rgba(79, 96, 81, 0.12);
  stroke-width: 0.6;
  vector-effect: non-scaling-stroke;
}

.cartogram-tether {
  fill: none;
  stroke: rgba(79, 96, 81, 0.14);
  stroke-width: 0.6;
  stroke-dasharray: 2.5 4;
  vector-effect: non-scaling-stroke;
}

.cartogram-halo {
  fill: rgba(255, 255, 250, 0.72);
  stroke: rgba(55, 72, 58, 0.15);
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
}

.cartogram-bubble {
  fill-opacity: 0.92;
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 2px 4px rgba(33, 46, 39, 0.1));
}

.cartogram-cell:hover .cartogram-bubble,
.cartogram-cell.is-selected .cartogram-bubble {
  stroke: #1d2c21;
  stroke-width: 1.8;
}

.cartogram-cell.is-selected .cartogram-halo {
  stroke: rgba(29, 44, 33, 0.42);
  stroke-width: 1.2;
}

.cartogram-cell.is-region-muted {
  opacity: 0.28;
}

.cartogram-cell.is-area-member .cartogram-bubble {
  stroke: #1f563c;
  stroke-width: 1.7;
}

.cartogram-cell.is-area-muted {
  opacity: 0.28;
}

.cartogram-name,
.cartogram-value {
  pointer-events: none;
  text-anchor: middle;
  dominant-baseline: middle;
  paint-order: stroke;
  stroke: rgba(251, 255, 246, 0.94);
  stroke-width: 3px;
  stroke-linejoin: round;
}

.cartogram-name {
  fill: #17221c;
  font-size: 8.3px;
  font-weight: 860;
}

.cartogram-value {
  fill: #24372a;
  font-size: 9.4px;
  font-weight: 840;
}

.ocean-plane {
  fill: #edf1ea;
}

.grid-plane path {
  stroke: rgba(75, 93, 78, 0.075);
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
}

.seam-layer {
  display: none;
}

.outer-boundary-layer path {
  fill: none;
  stroke: rgba(72, 100, 68, 0.28);
  stroke-width: 1.1;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.region-polygon {
  stroke: rgba(255, 255, 252, 0.78);
  stroke-width: 0.58;
  stroke-linejoin: round;
  fill-rule: evenodd;
  vector-effect: non-scaling-stroke;
  transition:
    fill 100ms ease,
    opacity 80ms ease,
    stroke 80ms ease,
    filter 80ms ease;
  cursor: pointer;
}

.app-shell.base-map-mode .region-polygon {
  stroke: rgba(82, 96, 84, 0.4);
  stroke-width: 0.8;
}

.region-polygon:focus {
  outline: none;
}

.region-polygon:focus-visible {
  stroke: #24452a;
  stroke-width: 1.7;
}

.region-polygon:hover {
  opacity: 1;
  stroke: rgba(34, 58, 39, 0.72);
  stroke-width: 1.05;
  filter: brightness(1.03);
}

.region-polygon.is-selected {
  stroke: rgba(45, 103, 66, 0.88);
  stroke-width: 1.12;
  filter: brightness(1.05) saturate(1.04);
}

.region-polygon.is-region-muted {
  opacity: 0.27;
}

.selection-layer {
  pointer-events: none;
}

.selection-outline-halo,
.selection-outline-core {
  fill: none;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.selection-outline-halo {
  stroke: rgba(255, 255, 248, 0.92);
  stroke-width: 4.2;
}

.selection-outline-core {
  stroke: rgba(45, 103, 66, 0.68);
  stroke-width: 1.35;
}

.region-polygon.is-compared {
  stroke: #1b1d18;
  stroke-dasharray: 5 4;
  stroke-width: 2.7;
}

.label-layer text {
  pointer-events: none;
  fill: #203127;
  font-size: 7.9px;
  font-weight: 860;
  text-anchor: middle;
  dominant-baseline: middle;
  filter: none;
  paint-order: stroke;
  stroke: rgba(251, 255, 246, 0.94);
  stroke-linejoin: round;
  stroke-width: 2.5px;
}

.app-shell.is-map-dragging .label-layer,
.app-shell.is-map-dragging .policy-layer {
  display: none;
}

.app-shell.is-map-dragging .transport-layer {
  opacity: 0.28 !important;
}

.app-shell.is-map-dragging .region-polygon {
  transition: none;
}

.app-shell.is-map-dragging .command-metrics,
.app-shell.is-map-dragging .situation-strip,
.app-shell.is-map-dragging .map-status {
  opacity: 0.18;
}

.label-layer text.macro-label {
  display: none;
}

.label-layer text.is-selected-label {
  fill: #17351f;
  font-size: 10px;
  font-weight: 860;
}

.label-layer text.is-region-muted {
  opacity: 0.22;
}

.command-metrics {
  position: absolute;
  z-index: 4;
  top: 8px;
  right: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(66px, auto));
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(117, 136, 111, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 252, 0.9);
  box-shadow: var(--soft-shadow);
  pointer-events: none;
}

.command-metrics div {
  min-height: 34px;
  padding: 4px 6px;
  border: 0;
  border-left: 1px solid rgba(117, 136, 111, 0.2);
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.command-metrics div:first-child {
  border-left: 0;
}

.command-metrics span {
  display: block;
  color: var(--muted);
  font-size: 8px;
  white-space: nowrap;
}

.command-metrics strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 11.5px;
}

.command-metrics small {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-size: 8px;
}

.situation-strip {
  position: absolute;
  z-index: 4;
  left: 10px;
  bottom: 34px;
  display: grid;
  grid-template-columns: repeat(4, minmax(80px, 1fr));
  gap: 0;
  max-width: min(520px, calc(100% - 20px));
  overflow: hidden;
  border: 1px solid rgba(117, 136, 111, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 252, 0.86);
  box-shadow: var(--soft-shadow);
  pointer-events: none;
}

.signal-tile {
  min-height: 39px;
  padding: 5px 6px;
  border: 0;
  border-left: 3px solid var(--accent);
  border-right: 1px solid rgba(117, 136, 111, 0.16);
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.signal-tile:last-child {
  border-right: 0;
}

.signal-tile.critical {
  border-left-color: var(--critical);
}

.signal-tile.warn {
  border-left-color: var(--watch);
}

.signal-tile.stable {
  border-left-color: var(--stable);
}

.signal-tile span {
  display: block;
  color: var(--muted);
  font-size: 8px;
}

.signal-tile strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 11.5px;
}

.signal-tile small {
  display: block;
  margin-top: 3px;
  color: var(--faint);
  font-size: 8px;
  white-space: nowrap;
}

.transport-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.transport-layer.is-hidden {
  display: none;
}

.transport-line.casing {
  stroke: rgba(255, 255, 250, 0.86);
  opacity: 0.92;
}

.transport-line.casing.highway {
  stroke-width: 4.6;
}

.transport-line.casing.nationalRoad {
  stroke-width: 3.1;
}

.transport-line.casing.provincialRoad {
  stroke-width: 2.4;
}

.transport-line.casing.rail {
  stroke-width: 3.3;
}

.transport-line.surface.highway {
  stroke: var(--highway);
  stroke-width: 2.25;
  opacity: 0.92;
}

.transport-line.surface.nationalRoad {
  stroke: var(--national-road);
  stroke-width: 1.45;
  stroke-dasharray: 8 5;
  opacity: 0.82;
}

.transport-line.surface.provincialRoad {
  stroke: #8b7f68;
  stroke-width: 1.05;
  stroke-dasharray: 4 5;
  opacity: 0.72;
}

.transport-line.surface.rail {
  stroke: var(--rail);
  stroke-width: 1.35;
  stroke-dasharray: 3 5;
  opacity: 0.84;
}

.station-marker {
  pointer-events: none;
}

.station-node {
  fill: #ffffff;
  stroke: var(--rail);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}

.station-icon {
  fill: #174a54;
  stroke: rgba(255, 255, 250, 0.9);
  stroke-width: 2px;
  paint-order: stroke;
  font-size: 8px;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: middle;
}

.station-label {
  fill: #174a54;
  stroke: rgba(255, 255, 250, 0.92);
  stroke-width: 2.6px;
  paint-order: stroke;
  font-size: 6.8px;
  font-weight: 860;
  dominant-baseline: middle;
}

.airport-marker {
  pointer-events: none;
}

.airport-label-bg {
  fill: rgba(255, 255, 250, 0.88);
  stroke: rgba(36, 78, 130, 0.3);
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
}

.airport-icon {
  fill: var(--air);
  stroke: rgba(255, 255, 250, 0.9);
  stroke-width: 2.2;
  paint-order: stroke;
  font-size: 12px;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: middle;
}

.airport-label {
  fill: #17385f;
  font-size: 7.2px;
  font-weight: 830;
  dominant-baseline: middle;
  paint-order: stroke;
  stroke: rgba(255, 255, 250, 0.84);
  stroke-width: 1.8;
}

.job-marker,
.budget-marker {
  stroke: #ffffff;
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
}

.job-marker {
  fill: var(--jobs);
}

.budget-marker {
  fill: var(--budget);
}

.tooltip {
  position: absolute;
  z-index: 9;
  max-width: 230px;
  padding: 8px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: rgba(255, 255, 250, 0.96);
  color: var(--text);
  box-shadow: var(--shadow);
  pointer-events: none;
  font-size: 11px;
  line-height: 1.4;
}

.tooltip strong {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
}

.map-status {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.map-status span {
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(126, 145, 126, 0.52);
  border-radius: 4px;
  background: rgba(255, 255, 250, 0.88);
  color: var(--muted);
  font-size: 8.4px;
  backdrop-filter: none;
}

.inspector {
  min-width: 0;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  position: relative;
  overflow: auto;
  overflow-x: hidden;
  border-left: 1px solid var(--hairline);
  background:
    linear-gradient(180deg, rgba(79, 115, 65, 0.045), transparent 160px),
    var(--panel);
  scrollbar-color: rgba(95, 127, 69, 0.55) transparent;
  scrollbar-width: thin;
  transition:
    opacity 140ms ease,
    transform 160ms ease;
}

.app-shell.inspector-collapsed .inspector {
  width: 0;
  max-width: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  border-left-color: transparent;
}

.app-shell.inspector-collapsed #inspectorContent {
  display: none;
}

.inspector-resize-handle {
  position: sticky;
  left: 0;
  top: 0;
  z-index: 8;
  float: left;
  width: 7px;
  height: 100%;
  min-height: 100vh;
  margin-right: -7px;
  cursor: col-resize;
  background: linear-gradient(90deg, rgba(216, 195, 109, 0.18), transparent);
}

.inspector-resize-handle:hover,
.app-shell.is-resizing-inspector .inspector-resize-handle {
  background: linear-gradient(90deg, rgba(216, 195, 109, 0.48), transparent);
}

.app-shell.inspector-collapsed .inspector-resize-handle {
  display: none;
}

#inspectorContent {
  display: grid;
  min-width: 0;
  gap: 7px;
  padding: 8px 10px 96px;
}

.app-shell.inspector-compact #inspectorContent {
  padding: 8px 8px 96px;
}

.app-shell.inspector-compact .region-head h2 {
  font-size: 18px;
}

.app-shell.inspector-compact .ops-band {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-shell.inspector-compact .headline-metric,
.app-shell.inspector-compact .decision-grid,
.app-shell.inspector-compact .core-score-grid {
  grid-template-columns: 1fr;
}

.app-shell.inspector-compact .metric-card strong {
  font-size: 16px;
}

.region-head {
  position: relative;
  padding: 1px 0 8px;
  border-bottom: 1px solid rgba(117, 136, 111, 0.2);
  background: transparent;
}

.region-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 8.6px;
}

.region-head h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: 0;
}

.ops-band {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin-top: 6px;
}

.ops-band div {
  min-width: 0;
  min-height: 30px;
  padding: 4px 5px;
  border: 1px solid rgba(126, 145, 126, 0.24);
  border-radius: 4px;
  background: rgba(255, 255, 252, 0.62);
}

.ops-band span {
  display: block;
  color: var(--faint);
  font-size: 7.4px;
  font-weight: 800;
  letter-spacing: 0;
}

.ops-band strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 9.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.grade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 24px;
  border-radius: 6px;
  background: var(--stable);
  color: #111;
  font-weight: 860;
}

.grade-badge.grade-a {
  background: var(--good);
}

.grade-badge.grade-b {
  background: var(--stable);
}

.grade-badge.grade-c {
  background: var(--watch);
}

.grade-badge.grade-d {
  background: var(--weak);
}

.grade-badge.grade-e {
  background: var(--critical);
  color: #fff6ed;
}

.headline-metric {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin-top: 6px;
}

.metric-card,
.diagnosis,
.rank-block,
.compare-block {
  border: 1px solid rgba(126, 145, 126, 0.22);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 245, 0.98));
  box-shadow: 0 1px 1px rgba(35, 49, 40, 0.04);
}

.metric-card {
  min-width: 0;
  min-height: 46px;
  padding: 5px;
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 8.5px;
}

.metric-card strong {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  letter-spacing: 0;
}

.metric-card small {
  display: block;
  margin-top: 3px;
  color: var(--faint);
  font-size: 8.2px;
}

.section-title {
  margin: 2px 0 -4px;
  color: var(--muted);
  font-size: 8.4px;
  font-weight: 780;
  text-transform: uppercase;
}

.priority-list {
  display: grid;
  gap: 5px;
}

.priority-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 7px;
  border: 1px solid rgba(126, 145, 126, 0.18);
  border-radius: 5px;
  background: rgba(246, 249, 242, 0.72);
  font-size: 10px;
}

.priority-row span:first-child {
  color: var(--muted);
  text-align: center;
}

.priority-row strong {
  font-size: 11.2px;
}

.priority-row em {
  color: var(--accent);
  font-style: normal;
  font-weight: 760;
}

.diagnosis {
  padding: 7px;
  line-height: 1.42;
  color: var(--text);
  font-size: 9.4px;
}

.diagnosis p {
  margin: 0 0 8px;
}

.diagnosis p:last-child {
  margin-bottom: 0;
}

.risk-list {
  display: grid;
  gap: 6px;
}

.risk-item {
  display: grid;
  grid-template-columns: 62px 1fr 30px;
  align-items: center;
  gap: 7px;
  font-size: 9.4px;
}

.bar-track {
  height: 7px;
  border-radius: 999px;
  background: #e4eadf;
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  background: var(--accent);
}

.rank-block,
.compare-block,
.decision-card,
.scenario-card {
  padding: 6px;
}

.rank-row,
.compare-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(126, 145, 126, 0.22);
  font-size: 9.8px;
}

.rank-row:last-child,
.compare-row:last-child {
  border-bottom: 0;
}

.trend-chart {
  width: 100%;
  height: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.trend-chart path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.trend-chart circle {
  fill: var(--accent);
  stroke: #ffffff;
  stroke-width: 1;
}

.decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.decision-card,
.scenario-card {
  border: 1px solid rgba(126, 145, 126, 0.22);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 245, 0.98));
  box-shadow: 0 1px 1px rgba(35, 49, 40, 0.04);
}

.decision-card span,
.scenario-card span {
  display: block;
  color: var(--muted);
  font-size: 8.3px;
}

.decision-card strong,
.scenario-card strong {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
}

.decision-card small,
.scenario-card small {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: 8.5px;
  line-height: 1.32;
}

.scenario-stack {
  display: grid;
  gap: 5px;
  margin-bottom: 16px;
}

.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 9px;
  border-top: 1px solid rgba(95, 127, 69, 0.18);
  background: #fbfcf8;
  color: var(--muted);
  font-size: 8px;
}

.legend {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
}

.legend-context {
  color: var(--text);
  font-weight: 760;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-swatch {
  width: 17px;
  height: 10px;
  border: 1px solid rgba(23, 34, 28, 0.16);
  border-radius: 2px;
}

.legend-swatch-fade {
  background: linear-gradient(90deg, #edf2ea, #d5e2cf, #adc9a1, #76a76f, #3f7549);
}

.legend-swatch-aggregate {
  background: linear-gradient(90deg, #edf2ea, #d5e2cf, #adc9a1, #76a76f, #3f7549);
}

.legend-ramp {
  width: 72px;
  height: 10px;
  border: 1px solid rgba(23, 34, 28, 0.14);
  border-radius: 2px;
  background: linear-gradient(90deg, #edf2ea, #d5e2cf, #adc9a1, #76a76f, #3f7549);
}

.data-note {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  white-space: nowrap;
}

.inspector-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
  padding: 7px 8px;
  border: 1px solid rgba(95, 127, 69, 0.2);
  border-radius: 6px;
  background: linear-gradient(180deg, #f8fbf2, #eef5e7);
}

.inspector-actions:hover {
  border-color: rgba(95, 127, 69, 0.38);
  background: #eef5e8;
}

.inspector-actions a {
  color: #315f38;
  font-size: 10.5px;
  font-weight: 820;
  text-decoration: none;
  white-space: nowrap;
}

.inspector-actions span {
  min-width: 0;
  overflow: hidden;
  color: var(--faint);
  font-size: 8.6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.framework-card,
.intelligence-card {
  display: grid;
  gap: 5px;
  padding: 7px;
  border: 1px solid color-mix(in srgb, var(--framework-color, var(--accent)) 26%, var(--line));
  border-radius: 6px;
  background: rgba(255, 255, 252, 0.72);
}

details.intelligence-card {
  display: block;
  padding: 0;
  overflow: hidden;
}

.intelligence-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 10px;
  cursor: pointer;
  list-style: none;
}

.intelligence-summary::-webkit-details-marker {
  display: none;
}

.intelligence-summary span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
}

.intelligence-summary strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 12px;
}

.intelligence-summary em {
  color: var(--accent);
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
}

.intelligence-card[open] .intelligence-summary {
  border-bottom: 1px solid rgba(126, 145, 126, 0.22);
}

.intelligence-body {
  display: grid;
  gap: 7px;
  padding: 8px 9px 9px;
}

.framework-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.framework-head span,
.framework-pipeline span,
.framework-map-rule span,
.taxonomy-group-list span,
.intelligence-grid span {
  display: block;
  color: var(--muted);
  font-size: 8.6px;
  font-weight: 760;
}

.framework-head strong {
  display: block;
  margin-top: 4px;
  color: color-mix(in srgb, var(--framework-color) 76%, var(--text));
  font-size: 12.5px;
}

.framework-head small,
.framework-pipeline small,
.intelligence-grid small {
  display: block;
  margin-top: 4px;
  color: var(--faint);
  font-size: 8.6px;
  line-height: 1.35;
}

.framework-head em {
  min-width: 42px;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: color-mix(in srgb, var(--framework-color) 16%, #ffffff);
  color: color-mix(in srgb, var(--framework-color) 78%, var(--text));
  font-size: 14px;
  font-style: normal;
  font-weight: 860;
}

.framework-pipeline,
.framework-map-rule {
  padding: 5px 0 5px 7px;
  border-left: 2px solid color-mix(in srgb, var(--framework-color, var(--accent)) 58%, var(--line));
  background: transparent;
}

.framework-pipeline strong,
.framework-map-rule strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 10.5px;
}

.taxonomy-group-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.taxonomy-group-list div {
  min-height: 30px;
  padding: 4px 0;
  border-top: 1px solid rgba(126, 145, 126, 0.22);
  background: transparent;
}

.taxonomy-group-list strong {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
}

.source-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.source-chip-row span {
  min-height: 22px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border: 1px solid rgba(126, 145, 126, 0.24);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-matrix {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.category-matrix button {
  min-height: 21px;
  padding: 0 3px;
  border: 1px solid color-mix(in srgb, var(--framework-color) 38%, var(--line));
  border-radius: 4px;
  background: color-mix(in srgb, var(--framework-color) 9%, #ffffff);
  color: var(--text);
  font-size: 8.6px;
  font-weight: 720;
  transition:
    border-color 120ms ease,
    background-color 120ms ease,
    box-shadow 120ms ease;
}

.category-matrix button.is-active {
  background: color-mix(in srgb, var(--framework-color) 22%, #ffffff);
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--framework-color) 75%, var(--text));
}

.category-matrix button span {
  margin-right: 3px;
  color: color-mix(in srgb, var(--framework-color) 75%, var(--text));
}

.pipeline-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.pipeline-track span {
  min-height: 28px;
  padding: 4px;
  border: 1px solid rgba(126, 145, 126, 0.2);
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 8.3px;
  line-height: 1.25;
}

.pipeline-track em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 820;
}

.intelligence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.intelligence-grid div {
  min-height: 68px;
  padding: 7px;
  border-top: 1px solid rgba(126, 145, 126, 0.22);
  border-radius: 0;
  background: transparent;
}

.intelligence-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--accent);
  font-size: 12px;
}

.core-score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.core-score-card {
  min-height: 66px;
  padding: 6px;
  border: 1px solid rgba(126, 145, 126, 0.22);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 245, 0.98));
  box-shadow: 0 1px 1px rgba(35, 49, 40, 0.04);
}

.core-score-card.is-active {
  border-color: rgba(73, 105, 60, 0.46);
  background: linear-gradient(180deg, #f4faef, #ffffff);
}

.core-score-card span {
  display: block;
  color: var(--muted);
  font-size: 8.8px;
}

.core-score-card strong {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  color: #365f3d;
}

.core-score-card small {
  display: block;
  min-height: 21px;
  margin-top: 4px;
  color: var(--faint);
  font-size: 8.1px;
  line-height: 1.28;
}

.empty-state {
  padding: 24px;
  color: var(--muted);
}

@media (max-width: 1240px) {
  html,
  body {
    min-width: 0;
  }

  .app-shell {
    --inspector-width: 320px;
    grid-template-rows: 66px minmax(0, 1fr) 22px;
  }

  .workspace {
    grid-template-columns: minmax(0, 1fr) var(--inspector-width);
  }

  .topbar {
    grid-template-columns: 138px minmax(0, 1fr);
  }

  .brand-block {
    min-width: 0;
    max-width: none;
  }

  h1 {
    max-width: 106px;
    font-size: 8.8px;
  }

  .eyebrow {
    display: none;
  }

  .command-strip {
    grid-template-columns: auto minmax(108px, 0.42fr) minmax(118px, 1fr) auto;
    gap: 3px 4px;
  }

  .search-field {
    min-width: 106px;
  }

  .taxonomy-field {
    min-width: 72px;
  }

  .nav-group {
    padding-inline: 4px;
  }

  .core-category-group label:not(.taxonomy-inline),
  .overlay-group label,
  .category-chip {
    padding-inline: 3px;
    font-size: 7.7px;
  }

  .category-matrix {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .app-shell {
    --inspector-width: 300px;
  }

  .workspace {
    grid-template-columns: minmax(0, 1fr) var(--inspector-width);
  }

  .topbar {
    grid-template-columns: 126px minmax(0, 1fr);
    padding-inline: 6px;
  }

  .brand-mark {
    width: 20px;
    height: 20px;
    border-radius: 6px;
  }

  h1 {
    max-width: 96px;
    font-size: 8.4px;
  }

  .nav-group-title,
  .nav-group legend {
    font-size: 8px;
  }

  select,
  input {
    font-size: 8.3px;
  }

  .tool-button {
    min-width: 36px;
    padding-inline: 5px;
    font-size: 8px;
  }

  .panel-toggle {
    min-width: 48px;
  }

  .icon-button {
    width: 20px;
  }

  .core-score-grid,
  .headline-metric,
  .decision-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .core-score-card small,
  .metric-card small {
    white-space: normal;
  }

  .ops-band strong {
    font-size: 8.3px;
    line-height: 1.08;
    white-space: normal;
  }

  .ops-band div {
    padding-inline: 5px;
  }
}

/* Premium operations skin: polished strategy-console surface */
:root {
  --bg: #eef2ef;
  --bg-2: #e2e9e5;
  --panel: #fcfdf8;
  --panel-2: #f3f7f0;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --ink: #14211b;
  --ink-2: #20352b;
  --line: #d9e0d6;
  --line-strong: #84977f;
  --text: #14211b;
  --muted: #55665b;
  --faint: #7f8b81;
  --accent: #416f4a;
  --accent-2: #2f7777;
  --signal: #c5a847;
  --danger: #9a4f59;
  --hairline: rgba(63, 83, 66, 0.16);
  --shadow: 0 18px 48px rgba(27, 43, 34, 0.14);
  --soft-shadow: 0 1px 2px rgba(27, 43, 34, 0.06), 0 12px 28px rgba(27, 43, 34, 0.08);
}

body {
  background:
    linear-gradient(180deg, #f7f8f4 0%, #e9efeb 100%);
}

.app-shell {
  --inspector-width: 372px;
  grid-template-rows: 72px minmax(0, 1fr) 24px;
  background:
    linear-gradient(90deg, rgba(20, 33, 27, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(20, 33, 27, 0.026) 1px, transparent 1px),
    linear-gradient(180deg, #f4f6f1 0%, #e8efeb 100%);
  background-size: 56px 56px, 56px 56px, auto;
}

.topbar {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 8px;
  padding: 7px 9px;
  border-bottom: 1px solid rgba(28, 45, 35, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 253, 0.98), rgba(246, 249, 243, 0.97));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95),
    0 14px 32px rgba(29, 43, 34, 0.08);
}

.brand-block {
  height: 58px;
  gap: 9px;
  padding: 8px 9px;
  border: 1px solid rgba(202, 218, 199, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(31, 59, 44, 0.98), rgba(18, 34, 29, 0.98) 58%, rgba(41, 70, 68, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 22px rgba(20, 33, 27, 0.14);
}

.brand-mark {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 7px;
  border-color: rgba(230, 221, 154, 0.62);
  background:
    linear-gradient(135deg, transparent 45%, rgba(214, 190, 89, 0.92) 46%, transparent 54%),
    linear-gradient(145deg, rgba(91, 130, 94, 0.95), rgba(41, 93, 90, 0.82));
  box-shadow:
    inset 0 0 0 6px rgba(9, 18, 14, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.eyebrow {
  color: rgba(232, 239, 226, 0.7);
  font-size: 7.2px;
  line-height: 1;
}

h1 {
  max-width: 162px;
  color: #fbfff7;
  font-size: 11.4px;
  line-height: 1.16;
  font-weight: 880;
}

.command-strip {
  grid-template-columns: auto minmax(142px, 0.45fr) minmax(220px, 1fr) auto;
  grid-template-rows: 25px 30px;
  gap: 4px 5px;
  padding: 4px;
  border: 1px solid rgba(89, 111, 83, 0.16);
  border-radius: 9px;
  background: rgba(255, 255, 252, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 8px 24px rgba(29, 43, 34, 0.055);
}

.nav-group {
  min-height: 23px;
  padding: 2px 5px;
  border-color: rgba(118, 139, 111, 0.17);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 245, 0.84));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.nav-group-title,
.nav-group legend {
  color: #345a3b;
  font-size: 8.6px;
  font-weight: 880;
}

select,
input {
  height: 19px;
  border-color: rgba(101, 123, 96, 0.28);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: inset 0 1px 2px rgba(22, 33, 27, 0.045);
}

.tool-button,
.icon-button {
  height: 20px;
  border-color: rgba(101, 123, 96, 0.28);
  border-radius: 5px;
  background: linear-gradient(180deg, #ffffff, #f1f6ee);
  box-shadow: 0 1px 1px rgba(22, 33, 27, 0.06);
}

.tool-button[aria-pressed="true"] {
  border-color: rgba(53, 99, 62, 0.76);
  background: linear-gradient(180deg, #4f7a48, #356a3d);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 4px 10px rgba(53, 106, 61, 0.2);
}

.category-stack-group {
  padding-right: 5px;
}

.category-layer-list {
  gap: 5px;
}

.category-chip {
  height: 19px;
  padding: 0 6px 0 4px;
  border-radius: 999px;
  border-color: rgba(126, 145, 126, 0.26);
  background: rgba(255, 255, 252, 0.92);
  font-size: 8.2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.category-chip:has(input:checked) {
  border-color: rgba(73, 105, 60, 0.52);
  background: linear-gradient(180deg, #eef6e8, #ffffff);
  box-shadow:
    inset 0 -2px 0 rgba(82, 121, 70, 0.72),
    0 2px 5px rgba(27, 43, 34, 0.055);
}

.category-chip input {
  width: 10px;
  height: 10px;
}

.map-console {
  border-right-color: rgba(27, 43, 34, 0.13);
  background:
    linear-gradient(180deg, rgba(249, 251, 246, 0.66), rgba(234, 241, 235, 0.78)),
    #edf2ec;
}

#strategyMap {
  background:
    linear-gradient(90deg, rgba(29, 43, 34, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(29, 43, 34, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 54% 42%, rgba(255, 255, 255, 0.62), transparent 43%),
    linear-gradient(180deg, #edf3ec 0%, #e4ece5 100%);
  background-size: 86px 86px, 86px 86px, auto, auto;
}

.grid-plane path {
  stroke: rgba(55, 75, 60, 0.045);
}

.map-mode-switch,
.command-metrics,
.situation-strip,
.map-status span {
  border-color: rgba(104, 127, 98, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 253, 0.95), rgba(246, 250, 243, 0.9));
  box-shadow:
    0 1px 1px rgba(29, 43, 34, 0.06),
    0 12px 28px rgba(29, 43, 34, 0.1);
}

.map-mode-switch {
  padding: 3px;
  border-radius: 8px;
}

.map-mode-switch button {
  height: 24px;
  min-width: 62px;
  border-radius: 6px;
}

.map-mode-switch button[aria-pressed="true"] {
  border-color: rgba(65, 111, 74, 0.45);
  background: linear-gradient(180deg, #edf6e8, #dcebd5);
}

.command-metrics {
  top: 10px;
  right: 10px;
  border-radius: 8px;
}

.command-metrics div {
  min-height: 42px;
  padding: 7px 10px;
}

.command-metrics strong {
  margin-top: 4px;
  font-size: 13px;
}

.situation-strip {
  left: 12px;
  bottom: 40px;
  border-radius: 8px;
}

.signal-tile {
  min-height: 48px;
  padding: 7px 9px;
}

.signal-tile strong {
  font-size: 13px;
}

.region-polygon {
  stroke: rgba(255, 255, 250, 0.72);
  stroke-width: 0.52;
}

.region-polygon:hover {
  stroke: rgba(17, 35, 24, 0.76);
  stroke-width: 1.1;
}

.selection-outline-halo {
  stroke: rgba(255, 255, 250, 0.92);
  stroke-width: 4.6;
}

.selection-outline-core {
  stroke: rgba(45, 103, 66, 0.68);
  stroke-width: 1.45;
}

.label-layer text {
  fill: #1d3027;
  font-size: 8px;
  stroke: rgba(250, 255, 246, 0.92);
  stroke-width: 2.3px;
}

.label-layer text.is-selected-label {
  fill: #17351f;
  font-size: 10.4px;
}

.cartogram-bubble {
  stroke-width: 1.2;
  filter: drop-shadow(0 5px 9px rgba(22, 33, 27, 0.13));
}

.cartogram-halo {
  fill: rgba(255, 255, 252, 0.76);
  stroke: rgba(30, 46, 36, 0.16);
}

.inspector {
  border-left-color: rgba(27, 43, 34, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 253, 0.86), rgba(245, 249, 242, 0.92) 36%, rgba(250, 251, 247, 0.96)),
    var(--panel);
}

#inspectorContent {
  gap: 9px;
  padding: 10px 12px 104px;
}

.region-head {
  padding: 10px 10px 11px;
  border: 1px solid rgba(106, 127, 100, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 235, 0.92));
  box-shadow: var(--soft-shadow);
}

.region-kicker {
  margin-bottom: 7px;
}

.region-head h2 {
  font-size: 24px;
  line-height: 1.08;
}

.grade-badge {
  height: 26px;
  min-width: 40px;
  border-radius: 7px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.ops-band {
  margin-top: 9px;
  gap: 5px;
}

.ops-band div {
  min-height: 36px;
  padding: 6px 7px;
  border-color: rgba(106, 127, 100, 0.2);
  border-radius: 7px;
  background: rgba(255, 255, 253, 0.72);
}

.ops-band strong {
  font-size: 10px;
}

.metric-card,
.diagnosis,
.rank-block,
.compare-block,
.decision-card,
.scenario-card,
.core-score-card,
.framework-card,
.intelligence-card {
  border-color: rgba(106, 127, 100, 0.2);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 244, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 1px 1px rgba(29, 43, 34, 0.035);
}

.headline-metric,
.decision-grid,
.core-score-grid {
  gap: 7px;
}

.metric-card,
.core-score-card {
  padding: 8px;
}

.metric-card strong {
  font-size: 16px;
}

.core-score-card strong {
  font-size: 16px;
}

.core-score-card.is-active {
  border-color: rgba(73, 105, 60, 0.46);
  background: linear-gradient(180deg, #f4faef, rgba(255, 255, 255, 0.98));
  box-shadow:
    inset 0 -3px 0 rgba(82, 121, 70, 0.72),
    0 1px 1px rgba(29, 43, 34, 0.035);
}

.section-title {
  margin: 4px 0 -3px;
  color: #345a3b;
  font-size: 8.7px;
  letter-spacing: 0.02em;
}

.inspector-actions {
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(240, 248, 234, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: var(--soft-shadow);
}

.statusbar {
  border-top-color: rgba(27, 43, 34, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 253, 0.98), rgba(243, 247, 240, 0.98));
}

@media (max-width: 1240px) {
  .app-shell {
    --inspector-width: 326px;
    grid-template-rows: 68px minmax(0, 1fr) 22px;
  }

  .topbar {
    grid-template-columns: 176px minmax(0, 1fr);
  }

  .brand-block {
    height: 54px;
  }

  h1 {
    max-width: 126px;
    font-size: 9.4px;
  }

  .command-strip {
    grid-template-columns: auto minmax(116px, 0.42fr) minmax(136px, 1fr) auto;
    grid-template-rows: 23px 28px;
  }

  .category-chip {
    font-size: 7.8px;
    padding-inline: 4px;
  }

  .region-head h2 {
    font-size: 21px;
  }
}

@media (max-width: 1040px) {
  .app-shell {
    --inspector-width: 300px;
  }

  .topbar {
    grid-template-columns: 146px minmax(0, 1fr);
    padding-inline: 6px;
  }

  .brand-block {
    height: 54px;
    padding-inline: 7px;
  }

  .brand-mark {
    width: 21px;
    height: 21px;
  }

  h1 {
    max-width: 104px;
    font-size: 8.4px;
  }

  .eyebrow {
    display: none;
  }

  .command-strip {
    grid-template-columns: auto minmax(100px, 0.38fr) minmax(104px, 1fr) auto;
  }

  .search-field {
    min-width: 104px;
  }

  .category-chip {
    height: 18px;
    font-size: 7.4px;
  }

  #inspectorContent {
    padding-inline: 9px;
  }
}

/* Iteration: master category, compact data inspector, and AI side panel */
.app-shell {
  --inspector-width: 320px;
  --ai-width: 0px;
}

.workspace {
  grid-template-columns: minmax(0, 1fr) var(--inspector-width) var(--ai-width);
}

.command-strip {
  background:
    linear-gradient(90deg, rgba(57, 104, 70, 0.1), rgba(44, 113, 121, 0.07) 42%, rgba(188, 143, 51, 0.09)),
    rgba(255, 255, 252, 0.86);
}

.nav-group-title,
.nav-group legend {
  font-size: 8px;
}

select,
input,
.tool-button,
.category-chip {
  font-size: 8px;
}

.tool-button.ai-toggle {
  min-width: 78px;
  border-color: rgba(42, 108, 121, 0.34);
}

.tool-button.ai-toggle[aria-pressed="true"] {
  border-color: rgba(42, 108, 121, 0.72);
  background: linear-gradient(180deg, #e4f3f1, #cbe5e2);
  color: #123f43;
}

.category-chip {
  position: relative;
}

.category-chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--chip-color, #4f7a48) 68%, #d7dfd2);
}

.category-chip.is-master {
  border-color: rgba(176, 135, 38, 0.46);
  background: linear-gradient(180deg, #fff9e6, #ffffff);
  font-weight: 850;
}

.category-chip.is-master::before {
  background: #b88726;
}

.category-chip:has(input:checked)::before {
  background: var(--chip-color, #4f7a48);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--chip-color, #4f7a48) 18%, transparent);
}

.category-chip.is-master:has(input:checked)::before {
  background: #b88726;
  box-shadow: 0 0 0 2px rgba(184, 135, 38, 0.16);
}

.command-strip .nav-group-title,
.command-strip .nav-group legend {
  font-size: 9.2px;
}

.command-strip select,
.command-strip input,
.command-strip .tool-button,
.category-chip {
  font-size: 9.2px;
}

.category-chip {
  height: 21px;
  padding-inline: 6px;
}

.ai-panel {
  min-width: 0;
  height: 100%;
  min-height: 0;
  position: relative;
  overflow: auto;
  overflow-x: hidden;
  border-left: 1px solid rgba(27, 43, 34, 0.14);
  background:
    linear-gradient(180deg, rgba(235, 247, 246, 0.95), rgba(255, 252, 241, 0.9) 42%, rgba(250, 251, 247, 0.98)),
    #fbfcf7;
  scrollbar-color: rgba(42, 108, 121, 0.45) transparent;
  scrollbar-width: thin;
}

.ai-resize-handle {
  position: sticky;
  left: 0;
  top: 0;
  z-index: 8;
  float: left;
  width: 8px;
  height: 100%;
  min-height: 100vh;
  margin-right: -8px;
  cursor: col-resize;
  background: linear-gradient(90deg, rgba(42, 108, 121, 0.28), transparent);
}

.ai-resize-handle:hover,
.app-shell.is-resizing-ai .ai-resize-handle {
  background: linear-gradient(90deg, rgba(42, 108, 121, 0.62), transparent);
}

.app-shell.ai-collapsed .ai-panel {
  width: 0;
  max-width: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  border-left-color: transparent;
}

.app-shell.ai-collapsed .ai-resize-handle {
  display: none;
}

#aiPanelContent {
  display: grid;
  gap: 8px;
  padding: 10px 11px 96px;
}

.compact-region-head {
  padding: 8px 9px 9px;
}

.region-title-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
}

.region-title-line h2 {
  font-size: 19px;
}

.region-title-line strong {
  color: #315f38;
  font-size: 15px;
}

.compact-score-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-top: 7px;
}

.compact-score-strip span {
  min-width: 0;
  padding: 4px 5px;
  border: 1px solid rgba(106, 127, 100, 0.18);
  border-radius: 5px;
  background: rgba(255, 255, 253, 0.72);
  color: var(--muted);
  font-size: 8px;
  font-weight: 760;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-score-strip strong {
  margin-left: 3px;
  color: #203a28;
  font-size: 8.3px;
  font-weight: 920;
}

.compact-actions {
  margin-top: 0;
  padding: 6px 8px;
}

.data-table {
  display: grid;
  gap: 4px;
}

.data-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(72px, auto) minmax(54px, auto);
  align-items: center;
  gap: 7px;
  min-height: 29px;
  padding: 5px 7px;
  border: 1px solid rgba(106, 127, 100, 0.16);
  border-left: 3px solid rgba(49, 95, 56, 0.56);
  border-radius: 6px;
  background: rgba(255, 255, 253, 0.86);
}

.data-row:nth-child(4n + 2) {
  border-left-color: rgba(42, 108, 121, 0.56);
}

.data-row:nth-child(4n + 3) {
  border-left-color: rgba(184, 135, 38, 0.6);
}

.data-row:nth-child(4n) {
  border-left-color: rgba(139, 83, 96, 0.54);
}

.data-row span {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 720;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-row strong {
  color: var(--text);
  font-size: 11px;
  text-align: right;
  white-space: nowrap;
}

.data-row em {
  color: var(--faint);
  font-size: 8px;
  font-style: normal;
  text-align: right;
  white-space: nowrap;
}

.score-detail {
  border: 1px solid rgba(106, 127, 100, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 253, 0.78);
}

.score-detail summary {
  padding: 7px 9px;
  color: #345a3b;
  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
}

.compact-core-grid {
  padding: 0 7px 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-core-grid .core-score-card {
  min-height: 54px;
  padding: 6px;
  border-left: 3px solid color-mix(in srgb, var(--chip-color, #4f7a48) 72%, #ffffff);
}

.compact-core-grid .core-score-card small {
  display: none;
}

.framework-card,
.intelligence-card {
  padding: 7px;
}

.framework-head strong,
.framework-pipeline strong {
  font-size: 11px;
}

.taxonomy-group-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-matrix {
  max-height: 70px;
  overflow: auto;
}

.ai-head,
.ai-message,
.ai-input,
.ai-context-grid div {
  border: 1px solid rgba(42, 108, 121, 0.16);
  border-radius: 9px;
  background: rgba(255, 255, 253, 0.86);
  box-shadow: 0 1px 1px rgba(29, 43, 34, 0.035);
}

.ai-head {
  padding: 10px;
  background:
    linear-gradient(135deg, rgba(42, 108, 121, 0.13), rgba(184, 135, 38, 0.12)),
    rgba(255, 255, 253, 0.92);
}

.ai-head span,
.ai-message span {
  display: block;
  color: #2a6c79;
  font-size: 8px;
  font-weight: 880;
}

.ai-head strong {
  display: block;
  margin-top: 4px;
  color: #14211b;
  font-size: 15px;
}

.ai-head small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 8.6px;
  line-height: 1.35;
}

.ai-context-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.ai-context-grid div {
  padding: 7px;
  text-align: center;
}

.ai-context-grid span {
  display: block;
  color: var(--faint);
  font-size: 8px;
  font-weight: 760;
}

.ai-context-grid strong {
  display: block;
  margin-top: 3px;
  color: #315f38;
  font-size: 14px;
}

.ai-chat-log {
  display: grid;
  gap: 6px;
}

.ai-message {
  padding: 8px;
}

.ai-message p {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 9px;
  line-height: 1.45;
}

.ai-message.system {
  border-color: rgba(184, 135, 38, 0.24);
  background: rgba(255, 249, 230, 0.78);
}

.ai-prompt-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ai-prompt-stack button {
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(42, 108, 121, 0.24);
  border-radius: 999px;
  background: #eef7f5;
  color: #123f43;
  font-size: 8.4px;
  font-weight: 780;
}

.ai-input {
  display: grid;
  gap: 6px;
  padding: 7px;
}

.ai-input textarea {
  width: 100%;
  min-height: 62px;
  resize: vertical;
  border: 1px solid rgba(106, 127, 100, 0.2);
  border-radius: 7px;
  padding: 7px;
  color: var(--text);
  font: inherit;
  font-size: 9px;
  line-height: 1.4;
  outline: none;
}

.ai-input button {
  justify-self: end;
  min-height: 25px;
  padding: 0 10px;
  border: 1px solid rgba(49, 95, 56, 0.34);
  border-radius: 6px;
  background: linear-gradient(180deg, #4f7a48, #356a3d);
  color: #fff;
  font-size: 8.6px;
  font-weight: 850;
}

@media (max-width: 1240px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) var(--inspector-width) var(--ai-width);
  }

  .data-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .data-row em {
    display: none;
  }
}

/* Iteration: clearer command navigation separation and data-to-law lineage */
.topbar {
  position: relative;
  background:
    linear-gradient(90deg, rgba(35, 84, 63, 0.96), rgba(27, 58, 55, 0.94) 14%, transparent 14.2%),
    linear-gradient(180deg, rgba(255, 255, 253, 0.98), rgba(245, 249, 243, 0.98));
}

.topbar::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #416f4a 0 18%, #2a6c79 18% 42%, #b88726 42% 68%, #8b5360 68% 100%);
  opacity: 0.85;
}

.command-strip {
  position: relative;
  gap: 5px 6px;
  padding: 5px;
  border-color: rgba(44, 65, 51, 0.18);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(243, 249, 243, 0.82)),
    linear-gradient(90deg, rgba(65, 111, 74, 0.12), rgba(42, 108, 121, 0.1), rgba(184, 135, 38, 0.1));
}

.command-strip::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 7px;
  pointer-events: none;
}

.nav-group {
  position: relative;
  overflow: hidden;
  padding-left: 8px;
  border-radius: 7px;
  border-color: rgba(46, 68, 54, 0.16);
}

.nav-group::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--section-color, #416f4a);
}

.baseline-group {
  --section-color: #416f4a;
  background: linear-gradient(180deg, rgba(236, 247, 232, 0.96), rgba(255, 255, 253, 0.9));
}

.analysis-group {
  --section-color: #2a6c79;
  background: linear-gradient(180deg, rgba(232, 246, 246, 0.96), rgba(255, 255, 253, 0.9));
}

.category-stack-group {
  --section-color: #b88726;
  background: linear-gradient(180deg, rgba(255, 249, 231, 0.98), rgba(255, 255, 253, 0.9));
}

.search-group {
  --section-color: #6b775d;
  background: linear-gradient(180deg, rgba(244, 248, 240, 0.98), rgba(255, 255, 253, 0.9));
}

.tool-cluster {
  --section-color: #8b5360;
  background: linear-gradient(180deg, rgba(251, 240, 243, 0.96), rgba(255, 255, 253, 0.9));
}

.nav-group-title {
  height: 16px;
  display: inline-flex;
  align-items: center;
  padding: 0 5px;
  border-radius: 4px;
  color: #1f372a;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 -1px 0 rgba(46, 68, 54, 0.08);
}

.lineage-card {
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(75, 104, 86, 0.22);
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 247, 242, 0.92)),
    #ffffff;
  box-shadow: 0 1px 1px rgba(29, 43, 34, 0.04);
}

.lineage-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(75, 104, 86, 0.14);
}

.lineage-head span,
.law-rail span {
  display: block;
  color: #2a6c79;
  font-size: 8px;
  font-weight: 880;
}

.lineage-head strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 10.4px;
}

.lineage-head em {
  padding: 3px 5px;
  border: 1px solid rgba(42, 108, 121, 0.18);
  border-radius: 999px;
  background: #edf7f5;
  color: #2a6c79;
  font-size: 7.4px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.lineage-flow {
  display: grid;
  gap: 4px;
}

.lineage-step {
  display: grid;
  grid-template-columns: 46px minmax(0, 0.9fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 6px;
  border: 1px solid rgba(75, 104, 86, 0.12);
  border-left: 3px solid rgba(65, 111, 74, 0.56);
  border-radius: 6px;
  background: rgba(255, 255, 253, 0.8);
}

.lineage-step:nth-child(2) {
  border-left-color: rgba(42, 108, 121, 0.58);
}

.lineage-step:nth-child(3) {
  border-left-color: rgba(184, 135, 38, 0.62);
}

.lineage-step:nth-child(4) {
  border-left-color: rgba(139, 83, 96, 0.58);
}

.lineage-step:nth-child(5) {
  border-left-color: rgba(75, 104, 86, 0.62);
}

.lineage-step span {
  color: var(--faint);
  font-size: 7.8px;
  font-weight: 820;
}

.lineage-step strong,
.lineage-step small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lineage-step strong {
  color: var(--text);
  font-size: 9.2px;
}

.lineage-step small {
  color: var(--muted);
  font-size: 7.8px;
}

.law-rail {
  display: grid;
  gap: 6px;
  padding: 7px;
  border: 1px solid rgba(184, 135, 38, 0.24);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 249, 229, 0.8), rgba(255, 255, 253, 0.86));
}

.law-rail strong {
  display: block;
  margin-top: 3px;
  color: #533c13;
  font-size: 9.2px;
  line-height: 1.35;
}

.law-rail small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 7.8px;
  line-height: 1.35;
}

.law-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.law-chip-row a {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  border: 1px solid rgba(184, 135, 38, 0.26);
  border-radius: 999px;
  background: #fffdf5;
  color: #5c4214;
  font-size: 7.8px;
  font-weight: 760;
  text-decoration: none;
}

@media (max-width: 1240px) {
  .lineage-step {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .lineage-step small {
    grid-column: 2;
  }
}

/* Iteration: category-only inspector, aligned tools, clearer map */
.tool-cluster {
  gap: 4px;
}

.tool-cluster .tool-button {
  min-width: 58px;
  height: 22px;
  padding: 0 8px;
  justify-content: center;
  text-align: center;
  font-size: 8px;
  font-weight: 820;
}

.tool-cluster .panel-toggle,
.tool-cluster .ai-toggle {
  min-width: 72px;
}

.tool-cluster .ai-toggle {
  min-width: 82px;
}

.tool-cluster .icon-button {
  width: 24px;
  height: 22px;
  min-width: 24px;
  padding: 0;
}

#strategyMap {
  background:
    linear-gradient(90deg, rgba(33, 48, 38, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(33, 48, 38, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.72), transparent 45%),
    linear-gradient(180deg, #f4f7f1 0%, #e7eee6 100%);
  background-size: 78px 78px, 78px 78px, auto, auto;
}

.ocean-plane {
  fill: #f2f6ef;
}

.grid-plane path {
  stroke: rgba(52, 70, 56, 0.095);
  stroke-width: 0.75;
}

.region-polygon {
  stroke: rgba(42, 60, 47, 0.46);
  stroke-width: 0.66;
}

.region-polygon:hover {
  stroke: rgba(11, 34, 21, 0.86);
  stroke-width: 1.3;
  filter: brightness(1.06) saturate(1.04);
}

.selection-outline-halo {
  stroke: rgba(255, 255, 248, 0.92);
  stroke-width: 4.8;
}

.selection-outline-core {
  stroke: rgba(45, 103, 66, 0.68);
  stroke-width: 1.5;
}

.label-layer text {
  fill: #14251b;
  font-size: 8.4px;
  stroke: rgba(255, 255, 248, 0.98);
  stroke-width: 2.8px;
}

.label-layer text.is-selected-label {
  fill: #17351f;
  font-size: 10.8px;
}

.legend-ramp,
.legend-swatch-fade,
.legend-swatch-aggregate {
  background: linear-gradient(90deg, #e8efe1, #cbdcbb, #97bd84, #5e985d, #2f6d43);
}

.score-formula-card,
.category-detail-card {
  border: 1px solid rgba(83, 112, 86, 0.2);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 245, 0.96));
  box-shadow: 0 1px 1px rgba(29, 43, 34, 0.04);
}

.score-formula-card {
  display: grid;
  gap: 7px;
  padding: 8px;
}

.score-formula-card.empty p,
.score-formula-card p {
  margin: 0;
  color: var(--muted);
  font-size: 8.5px;
  line-height: 1.45;
}

.formula-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(83, 112, 86, 0.14);
}

.formula-main strong {
  color: #315f38;
  font-size: 13px;
}

.formula-main span {
  color: var(--faint);
  font-size: 8px;
  font-weight: 760;
  text-align: right;
}

.formula-total-line {
  padding: 6px 7px;
  border: 1px solid rgba(49, 95, 56, 0.16);
  border-radius: 7px;
  background: #f3f8ef;
  color: #203a28;
  font-size: 9px;
  font-weight: 820;
  line-height: 1.35;
}

.formula-help {
  position: relative;
  border: 1px solid rgba(42, 108, 121, 0.14);
  border-radius: 7px;
  background: rgba(237, 247, 245, 0.72);
}

.formula-help summary {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  color: #2a6c79;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.formula-help p {
  padding: 0 8px 7px;
  color: var(--muted);
  font-size: 8.2px;
  line-height: 1.45;
}

.formula-row-list {
  display: grid;
  gap: 4px;
}

.formula-category {
  display: grid;
  gap: 5px;
  padding: 7px;
  border: 1px solid rgba(83, 112, 86, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 253, 0.78);
}

.formula-category-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.formula-category-head strong {
  color: var(--text);
  font-size: 9.6px;
}

.formula-category-head em {
  color: var(--faint);
  font-size: 8px;
  font-style: normal;
  font-weight: 780;
}

.formula-expression {
  padding: 5px 6px;
  border-radius: 6px;
  background: rgba(242, 247, 239, 0.9);
  color: #315f38;
  font-size: 8.6px;
  font-weight: 840;
  line-height: 1.35;
}

.indicator-score-list {
  display: grid;
  gap: 4px;
}

.indicator-score-row {
  display: grid;
  grid-template-columns: minmax(72px, 0.9fr) minmax(78px, 1fr) 54px 40px 36px 20px;
  align-items: center;
  gap: 6px;
  min-height: 27px;
  padding: 4px 6px;
  border: 1px solid rgba(83, 112, 86, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
}

.indicator-score-row span,
.indicator-score-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.indicator-score-row span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 820;
}

.indicator-score-row strong {
  color: #315f38;
  font-size: 9px;
  text-align: right;
}

.indicator-score-row small {
  color: var(--faint);
  font-size: 7.6px;
}

.formula-row {
  display: grid;
  grid-template-columns: 62px 42px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 4px 6px;
  border: 1px solid rgba(83, 112, 86, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 253, 0.72);
}

.formula-row span,
.formula-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.formula-row span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
}

.formula-row strong {
  color: #315f38;
  font-size: 9px;
}

.formula-row small {
  color: var(--faint);
  font-size: 7.7px;
}

.category-detail-card {
  overflow: hidden;
}

.category-detail-card summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 4px 8px;
  align-items: center;
  padding: 8px 9px;
  border-left: 4px solid color-mix(in srgb, var(--chip-color, #4f7a48) 72%, #ffffff);
  cursor: pointer;
}

.category-detail-card summary span,
.category-detail-card summary small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-detail-card summary span {
  color: var(--text);
  font-size: 10px;
  font-weight: 880;
}

.category-detail-card summary strong {
  color: color-mix(in srgb, var(--chip-color, #315f38) 72%, #152017);
  font-size: 10px;
  text-align: right;
}

.category-detail-card summary small {
  grid-column: 1 / 3;
  color: var(--muted);
  font-size: 8px;
}

.category-detail-body {
  display: grid;
  gap: 7px;
  padding: 0 8px 8px;
}

.drilldown-grid {
  display: grid;
  gap: 4px;
}

.drilldown-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 2px 7px;
  align-items: start;
  min-height: 30px;
  padding: 5px 7px;
  border: 1px solid rgba(83, 112, 86, 0.13);
  border-radius: 6px;
  background: rgba(255, 255, 253, 0.76);
}

.drilldown-row span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 820;
}

.drilldown-row strong,
.drilldown-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drilldown-row strong {
  color: var(--text);
  font-size: 9px;
  white-space: nowrap;
}

.drilldown-row small {
  grid-column: 2;
  color: var(--faint);
  font-size: 7.7px;
  line-height: 1.35;
}

.taxonomy-mini {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.taxonomy-mini div {
  min-width: 0;
  padding: 5px;
  border: 1px solid rgba(83, 112, 86, 0.12);
  border-radius: 6px;
  background: rgba(246, 250, 244, 0.72);
}

.taxonomy-mini span,
.taxonomy-mini strong {
  display: block;
  text-align: center;
}

.taxonomy-mini span {
  color: var(--faint);
  font-size: 7.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.taxonomy-mini strong {
  margin-top: 2px;
  color: #315f38;
  font-size: 10px;
}

.empty-state.inline {
  padding: 10px;
  border: 1px solid rgba(83, 112, 86, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 253, 0.82);
  font-size: 9px;
}

@media (max-width: 1240px) {
  .tool-cluster .tool-button {
    min-width: 50px;
    padding-inline: 6px;
  }

  .tool-cluster .panel-toggle,
  .tool-cluster .ai-toggle {
    min-width: 64px;
  }

  .formula-row,
  .drilldown-row {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .formula-row small {
    grid-column: 1 / 3;
  }

  .indicator-score-row {
    grid-template-columns: minmax(0, 1fr) 38px;
  }

  .indicator-score-row small {
    grid-column: 1 / 3;
  }
}

/* Iteration: score-only inspector help, stronger cartogram, cleaner nav */
.score-summary-card {
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(83, 112, 86, 0.2);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 245, 0.96));
  box-shadow: 0 1px 1px rgba(29, 43, 34, 0.04);
}

.score-summary-card.empty {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.score-empty-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.score-empty-copy > strong {
  display: block;
  color: var(--muted);
  font-size: 10.6px;
  font-weight: 900;
  line-height: 1.25;
}

.score-empty-copy > p {
  margin: 0;
  color: #6b756c;
  font-size: 9.4px;
  font-weight: 680;
  line-height: 1.35;
}

.score-summary-head,
.score-row-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
}

.score-summary-head {
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(83, 112, 86, 0.14);
}

.score-summary-head strong {
  color: #203a28;
  font-size: 13px;
}

.rank-pill,
.rank-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 18px;
  padding-inline: 6px;
  border: 1px solid rgba(49, 95, 56, 0.18);
  border-radius: 999px;
  background: #eef6e8;
  color: #315f38;
  font-size: 8px;
  font-weight: 900;
  white-space: nowrap;
}

.score-help {
  position: relative;
  justify-self: end;
}

.score-help summary {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(42, 108, 121, 0.24);
  border-radius: 999px;
  background: #edf7f5;
  color: #2a6c79;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.score-help summary::-webkit-details-marker {
  display: none;
}

.score-help p {
  position: absolute;
  z-index: 20;
  top: 24px;
  right: 0;
  width: min(260px, 72vw);
  margin: 0;
  padding: 8px 9px;
  border: 1px solid rgba(42, 108, 121, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 253, 0.98);
  color: var(--muted);
  font-size: 8.2px;
  line-height: 1.45;
  box-shadow: var(--soft-shadow);
}

.score-help.mini summary {
  width: 18px;
  height: 18px;
  font-size: 9px;
}

.score-help.mini p {
  width: min(300px, 78vw);
}

.score-row-list {
  display: grid;
  gap: 5px;
}

.score-summary-row {
  display: grid;
  gap: 5px;
  padding: 7px;
  border: 1px solid rgba(83, 112, 86, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 253, 0.78);
}

.score-row-head {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.score-row-head strong {
  color: var(--text);
  font-size: 9.8px;
}

.score-row-head span {
  color: #315f38;
  font-size: 10px;
  font-weight: 880;
}

.indicator-score-list.compact {
  display: grid;
  gap: 4px;
}

.indicator-score-list.compact .indicator-score-row {
  grid-template-columns: minmax(72px, 0.85fr) minmax(82px, 1fr) 54px 40px 34px 20px;
  min-height: 25px;
}

.score-row-list > .indicator-score-row {
  grid-template-columns: minmax(72px, 0.85fr) minmax(82px, 1fr) 54px 40px 34px 20px;
}

.indicator-score-row em {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 8.4px;
  font-style: normal;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.indicator-score-row .indicator-help {
  justify-self: end;
}

.indicator-score-row .indicator-help p {
  width: min(250px, 70vw);
}

.detail-source-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 7px;
  border: 1px solid rgba(83, 112, 86, 0.14);
  border-radius: 8px;
  background: rgba(246, 250, 244, 0.86);
}

.detail-source-row span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-source-row a {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(49, 95, 56, 0.22);
  border-radius: 999px;
  background: #ffffff;
  color: #315f38;
  font-size: 8px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.detail-table {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(83, 112, 86, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 253, 0.9);
}

.detail-table-head,
.detail-table-row {
  display: grid;
  grid-template-columns: minmax(92px, 0.85fr) minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 6px 8px;
}

.detail-table-head {
  background: linear-gradient(180deg, rgba(241, 247, 238, 0.96), rgba(232, 241, 228, 0.9));
  color: #345a3b;
  font-size: 7.6px;
  font-weight: 900;
}

.detail-table-row {
  border-top: 1px solid rgba(83, 112, 86, 0.11);
}

.detail-table-section {
  padding: 7px 8px 4px;
  border-top: 1px solid rgba(83, 112, 86, 0.13);
  background: rgba(240, 247, 237, 0.64);
  color: #315f38;
  font-size: 8.2px;
  font-weight: 920;
}

.detail-table-row span,
.detail-table-row strong {
  min-width: 0;
}

.detail-table-row span {
  color: var(--muted);
  font-size: 8.2px;
  font-weight: 840;
}

.detail-table-row strong {
  color: var(--text);
  font-size: 8.7px;
  font-weight: 820;
  line-height: 1.35;
}

.topbar {
  grid-template-columns: 198px minmax(0, 1fr);
  padding: 6px 8px;
  gap: 8px;
}

.brand-block {
  height: 56px;
  border-radius: 7px;
}

.command-strip {
  grid-template-columns: minmax(96px, auto) minmax(118px, 0.35fr) minmax(160px, 1fr) minmax(120px, auto) minmax(250px, auto);
  grid-template-rows: 25px 29px;
  gap: 4px;
  padding: 5px;
  border-radius: 8px;
}

.baseline-group {
  grid-column: 1;
  grid-row: 1;
}

.analysis-group {
  grid-column: 2;
  grid-row: 1;
}

.search-group {
  grid-column: 3;
  grid-row: 1;
}

.tool-cluster {
  grid-column: 4 / 6;
  grid-row: 1;
}

.category-stack-group {
  grid-column: 1 / 6;
  grid-row: 2;
}

.nav-group {
  min-height: 23px;
  box-shadow:
    inset 3px 0 0 var(--section-color, #416f4a),
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 1px 2px rgba(29, 43, 34, 0.04);
}

.nav-group::before {
  display: none;
}

.nav-group-title {
  min-width: 30px;
  justify-content: center;
  color: #132019;
  background: rgba(255, 255, 255, 0.82);
}

.map-mode-switch {
  border-color: rgba(39, 57, 43, 0.28);
  background: rgba(255, 255, 253, 0.96);
}

.map-mode-switch button[aria-pressed="true"] {
  background: linear-gradient(180deg, #2f6d43, #245436);
  color: #fff;
}

.map-mode-switch .transport-network-toggle {
  min-width: 62px;
  border-left-color: rgba(39, 57, 43, 0.14);
}

.map-mode-switch .transport-network-toggle[aria-pressed="true"] {
  border-color: rgba(38, 123, 134, 0.48);
  background: linear-gradient(180deg, #2d7f8c, #1f5966);
  color: #fff;
}

.transport-legend-panel {
  position: absolute;
  z-index: 6;
  top: 48px;
  left: 10px;
  width: 156px;
  display: none;
  gap: 5px;
  padding: 8px;
  border: 1px solid rgba(39, 57, 43, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 253, 0.96);
  box-shadow: var(--soft-shadow);
}

.app-shell.visual-transport-on .transport-legend-panel {
  display: grid;
}

.transport-legend-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(83, 112, 86, 0.14);
}

.transport-legend-head strong {
  color: #17312b;
  font-size: 10px;
  font-weight: 920;
}

.transport-legend-head span {
  color: var(--faint);
  font-size: 7px;
  font-weight: 800;
}

.transport-legend-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 19px;
  color: var(--muted);
  font-size: 8.2px;
  font-weight: 850;
}

.command-metrics {
  display: none !important;
}

.legend-line {
  width: 32px;
  height: 0;
  border-top: 3px solid var(--national-road);
  border-radius: 999px;
}

.legend-line.highway {
  border-top-color: var(--highway);
  border-top-width: 4px;
}

.legend-line.national-road {
  border-top-style: dashed;
}

.legend-line.provincial-road {
  border-top-color: #8b7f68;
  border-top-style: dotted;
  border-top-width: 2px;
}

.legend-line.rail {
  border-top-color: var(--rail);
  border-top-style: dashed;
  border-top-width: 2px;
}

.legend-icon {
  width: 24px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(38, 123, 134, 0.2);
  border-radius: 5px;
  background: #ffffff;
  font-size: 11px;
  font-style: normal;
}

.legend-icon.air {
  color: var(--air);
}

.legend-icon.train {
  color: var(--rail);
}

.map-mode-switch .general-status-toggle {
  min-width: 74px;
  border-left-color: rgba(39, 57, 43, 0.14);
}

.map-mode-switch .general-status-toggle[aria-expanded="true"] {
  border-color: rgba(101, 76, 25, 0.38);
  background: linear-gradient(180deg, #f5ecd2, #ebddb4);
  color: #2c2410;
}

.general-status-modal {
  position: fixed;
  inset: 0;
  z-index: 28;
  display: grid;
  place-items: center;
  padding: 32px;
}

.general-status-modal[hidden] {
  display: none;
}

.general-status-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(18, 27, 21, 0.42);
}

.general-status-dialog {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100vw - 64px));
  height: min(660px, calc(100vh - 64px));
  min-width: min(620px, calc(100vw - 64px));
  min-height: min(440px, calc(100vh - 64px));
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  resize: both;
  border: 1px solid rgba(72, 82, 74, 0.26);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(253, 252, 248, 0.99), rgba(248, 247, 242, 0.99));
  box-shadow:
    0 24px 56px rgba(13, 21, 16, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.general-status-dialog::after,
.deep-report-dialog::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 13px;
  height: 13px;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 47%, rgba(72, 95, 78, 0.28) 48% 52%, transparent 53%),
    linear-gradient(135deg, transparent 0 64%, rgba(72, 95, 78, 0.18) 65% 69%, transparent 70%);
}

.general-status-head {
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 11px;
  border-bottom: 1px solid rgba(104, 127, 98, 0.14);
  background: linear-gradient(180deg, rgba(253, 252, 248, 0.99), rgba(248, 247, 242, 0.97));
  box-shadow: 0 8px 18px rgba(24, 36, 28, 0.08);
}

.general-status-kicker {
  margin: 0 0 3px;
  color: #5b6f57;
  font-size: 9.2px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.general-status-head h2 {
  margin: 0;
  color: #18251c;
  font-size: 15.5px;
  line-height: 1.1;
}

.general-status-head p {
  margin: 4px 0 0;
  color: #5f695f;
  font-size: 9px;
  line-height: 1.45;
}

.general-status-close {
  min-width: 54px;
  height: 27px;
  padding: 0 10px;
  border: 1px solid rgba(104, 127, 98, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 253, 0.96);
  color: #233625;
  font-size: 9.5px;
  font-weight: 860;
}

.general-status-content {
  display: grid;
  min-height: 0;
  gap: 12px;
  overflow: auto;
  padding: 16px 18px 24px;
}

.general-status-table-section {
  display: grid;
  gap: 0;
}

.general-status-table-wrap {
  overflow: auto;
  border: 1px solid rgba(84, 98, 87, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 252, 0.96);
}

.general-status-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  table-layout: fixed;
}

.general-status-table thead th {
  padding: 7px 9px;
  border-right: 1px solid rgba(84, 98, 87, 0.14);
  border-bottom: 1px solid rgba(84, 98, 87, 0.18);
  background: #ece8dc;
  text-align: center;
  vertical-align: top;
}

.general-status-table thead th:last-child,
.general-status-table tbody th:last-child,
.general-status-table tbody td:last-child {
  border-right: 0;
}

.general-status-corner {
  width: 22%;
  color: #435145;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-align: left;
}

.general-status-column {
  width: 26%;
}

.general-status-column.tone-region,
.general-status-table-cell.tone-region {
  background: #f9fbfc;
}

.general-status-column.tone-metro,
.general-status-table-cell.tone-metro {
  background: #fbfcfa;
}

.general-status-column.tone-combined,
.general-status-table-cell.tone-combined {
  background: #f8f4e4;
}

.general-status-column-head {
  display: grid;
  gap: 2px;
  justify-items: center;
  text-align: center;
}

.general-status-column-head strong {
  color: #18251c;
  font-size: 10.2px;
  line-height: 1.15;
}

.general-status-column-head span {
  color: #667067;
  font-size: 7.6px;
  line-height: 1.35;
}

.general-status-table tbody th,
.general-status-table tbody td {
  padding: 7px 9px;
  border-right: 1px solid rgba(84, 98, 87, 0.12);
  border-bottom: 1px solid rgba(84, 98, 87, 0.12);
  vertical-align: top;
}

.general-status-table tbody th {
  text-align: left;
}

.general-status-table tbody td {
  text-align: right;
}

.general-status-table tbody tr:last-child th,
.general-status-table tbody tr:last-child td {
  border-bottom: 0;
}

.general-status-table tbody .general-status-group-row th {
  padding: 7px 10px;
  border-right: 0;
  border-bottom: 1px solid rgba(84, 98, 87, 0.16);
  background: #dfd8c7;
  color: #283129;
}

.general-status-group-row span {
  display: inline-block;
  min-width: 32px;
  margin-right: 8px;
  color: #697460;
  font-size: 7.5px;
  font-weight: 900;
}

.general-status-group-row strong {
  color: #263128;
  font-size: 9.2px;
  font-weight: 900;
}

.general-status-rowhead {
  background: #f5f2e9;
}

.general-status-rowhead strong {
  display: block;
  color: #243128;
  font-size: 9.5px;
  line-height: 1.3;
  font-weight: 900;
}

.general-status-rowhead span {
  display: block;
  margin-top: 3px;
  color: #6a756b;
  font-size: 7.6px;
  line-height: 1.35;
}

.general-status-cell {
  display: grid;
  gap: 4px;
  justify-items: end;
  min-width: 0;
  text-align: right;
}

.general-status-cell strong {
  color: #16241a;
  font-size: 10.8px;
  line-height: 1.15;
}

.general-status-cell small {
  color: #6c776d;
  font-size: 7.2px;
  line-height: 1.4;
}

.general-status-sources {
  display: grid;
  gap: 8px;
}

.general-status-sources-head {
  display: grid;
  gap: 3px;
}

.general-status-sources-head strong {
  color: #1b2d1f;
  font-size: 9.6px;
  font-weight: 900;
}

.general-status-sources-head span {
  color: #6a786c;
  font-size: 7.3px;
  line-height: 1.4;
}

.general-status-source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.general-status-source-card {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid rgba(100, 121, 103, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 253, 0.84);
  color: inherit;
  text-decoration: none;
}

.general-status-source-card strong {
  color: #18311f;
  font-size: 8px;
  font-weight: 900;
  line-height: 1.35;
}

.general-status-source-card span,
.general-status-source-card small {
  color: #6e7b70;
  font-size: 7px;
  line-height: 1.4;
}

.general-status-source-card:hover {
  border-color: rgba(95, 127, 69, 0.24);
  background: rgba(247, 249, 244, 0.92);
}

@media (max-width: 1080px) {
  .general-status-source-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .general-status-modal {
    padding: 12px;
  }

  .general-status-dialog {
    width: calc(100vw - 24px);
    height: calc(100vh - 24px);
    min-width: 0;
    min-height: 360px;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    resize: vertical;
  }

  .general-status-head {
    grid-template-columns: 1fr;
  }

  .general-status-head h2 {
    font-size: 15px;
  }

  .general-status-content,
  .general-status-head {
    padding-left: 14px;
    padding-right: 14px;
  }

  .general-status-source-list {
    grid-template-columns: 1fr;
  }
}

.cartogram-ghost-boundary {
  fill: rgba(255, 255, 255, 0.18);
  stroke: rgba(40, 58, 45, 0.24);
  stroke-width: 0.85;
}

.cartogram-tether {
  stroke: rgba(33, 54, 41, 0.28);
  stroke-width: 0.85;
  stroke-dasharray: 3 3;
}

.cartogram-halo {
  fill: rgba(255, 255, 252, 0.92);
  stroke: rgba(30, 46, 36, 0.3);
  stroke-width: 1;
}

.cartogram-bubble {
  fill-opacity: 1;
  stroke: rgba(24, 42, 30, 0.62);
  stroke-width: 1.35;
  filter: drop-shadow(0 5px 9px rgba(18, 32, 24, 0.22));
}

.cartogram-cell:hover .cartogram-bubble,
.cartogram-cell.is-selected .cartogram-bubble {
  stroke: rgba(45, 103, 66, 0.82);
  stroke-width: 1.9;
}

.cartogram-cell.is-selected .cartogram-halo {
  fill: rgba(255, 255, 248, 0.98);
  stroke: rgba(45, 103, 66, 0.48);
  stroke-width: 1.2;
}

.cartogram-name,
.cartogram-value {
  stroke: rgba(255, 255, 250, 0.98);
  stroke-width: 3.6px;
}

.cartogram-name {
  fill: #07160d;
  font-size: 9.4px;
  font-weight: 900;
}

.cartogram-value {
  fill: #0c2012;
  font-size: 10.4px;
  font-weight: 900;
}

@media (max-width: 1240px) {
  .topbar {
    grid-template-columns: 158px minmax(0, 1fr);
  }

  .command-strip {
    grid-template-columns: minmax(82px, auto) minmax(100px, 0.35fr) minmax(120px, 1fr) minmax(210px, auto);
  }

  .tool-cluster {
    grid-column: 4;
  }

  .category-stack-group {
    grid-column: 1 / 5;
  }

  .indicator-score-list.compact .indicator-score-row {
    grid-template-columns: minmax(0, 0.8fr) minmax(72px, 1fr) 48px 34px 30px 18px;
  }
}

/* Map canvas alignment: keep the grid in the same SVG coordinate space as the geography. */
.map-stage {
  background:
    linear-gradient(90deg, rgba(48, 67, 53, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(48, 67, 53, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.62), transparent 48%),
    linear-gradient(180deg, #f4f7f1 0%, #e7eee6 100%);
  background-size: 86px 86px, 86px 86px, auto, auto;
}

#strategyMap {
  background:
    radial-gradient(circle at 50% 43%, rgba(255, 255, 255, 0.36), transparent 45%),
    linear-gradient(180deg, rgba(244, 247, 241, 0.88) 0%, rgba(231, 238, 230, 0.88) 100%);
  background-size: auto;
}

.grid-plane {
  pointer-events: none;
}

.grid-plane path {
  stroke: rgba(48, 67, 53, 0.12);
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
}

.app-shell.cartogram-mode .grid-plane path {
  stroke: rgba(48, 67, 53, 0.09);
}

/* Header brand cleanup: remove the oversized green slab behind the title. */
.topbar {
  grid-template-columns: 188px minmax(0, 1fr);
  background:
    linear-gradient(180deg, rgba(255, 255, 253, 0.99), rgba(246, 249, 244, 0.98));
}

.topbar::after {
  left: 8px;
  right: 8px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(65, 111, 74, 0.55) 0 18%,
    rgba(42, 108, 121, 0.5) 18% 42%,
    rgba(184, 135, 38, 0.45) 42% 68%,
    rgba(139, 83, 96, 0.42) 68% 100%
  );
  opacity: 0.75;
}

.brand-block {
  height: 46px;
  gap: 7px;
  padding: 6px 8px 6px 9px;
  border: 1px solid rgba(106, 127, 100, 0.18);
  border-left: 3px solid #416f4a;
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 253, 0.98), rgba(242, 248, 239, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 1px 2px rgba(29, 43, 34, 0.06);
}

.brand-block > div:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-mark {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 1px solid rgba(65, 111, 74, 0.34);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(65, 111, 74, 0.12), transparent 48%),
    linear-gradient(180deg, #ffffff, #edf5ea);
  box-shadow: none;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: #416f4a;
}

.brand-mark::before {
  left: 5px;
  right: 5px;
  top: 10px;
  height: 2px;
}

.brand-mark::after {
  top: 5px;
  bottom: 5px;
  left: 10px;
  width: 2px;
}

.eyebrow {
  color: #647267;
  font-size: 6.9px;
  line-height: 1;
}

h1 {
  max-width: 136px;
  color: #17251d;
  font-size: 10px;
  line-height: 1.15;
  font-weight: 900;
}

@media (max-width: 1240px) {
  .topbar {
    grid-template-columns: 158px minmax(0, 1fr);
  }

  .brand-block {
    height: 44px;
    padding-inline: 7px;
  }

  .brand-mark {
    width: 20px;
    height: 20px;
  }

  h1 {
    max-width: 110px;
    font-size: 8.7px;
  }

  .eyebrow {
    font-size: 6.4px;
  }
}

/* Overflow guard: side panels must never push past the browser edge. */
.app-shell,
.workspace,
.inspector,
.ai-panel,
#inspectorContent,
#aiPanelContent,
.score-summary-card,
.score-summary-row,
.score-row-list,
.indicator-score-list,
.category-detail-card,
.category-detail-body,
.detail-source-row,
.detail-table {
  max-width: 100%;
  min-width: 0;
}

.inspector,
.ai-panel {
  width: auto;
  overflow-x: clip;
}

.score-summary-head,
.score-row-head,
.indicator-score-row,
.detail-source-row,
.detail-table-head,
.detail-table-row {
  min-width: 0;
}

.score-summary-head {
  grid-template-columns: minmax(0, 1fr) max-content 18px;
  gap: 5px;
}

.score-row-head {
  grid-template-columns: minmax(0, 1fr) max-content 18px;
  gap: 5px;
}

.score-summary-head strong,
.score-row-head strong,
.score-row-head span,
.indicator-score-row span,
.indicator-score-row em,
.detail-table-row span,
.detail-table-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.score-row-head span {
  max-width: 92px;
  white-space: nowrap;
}

.rank-pill,
.rank-chip {
  min-width: 0;
  padding-inline: 5px;
}

.indicator-score-list.compact .indicator-score-row,
.score-row-list > .indicator-score-row {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 0.95fr) 48px 34px 30px 18px;
  gap: 4px;
}

.indicator-score-row strong {
  min-width: 0;
  overflow: hidden;
  font-size: 8.4px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.indicator-score-row .score-help summary {
  width: 18px;
  height: 18px;
}

.detail-source-row {
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 5px;
}

.detail-source-row a {
  max-width: 96px;
  overflow: hidden;
  padding-inline: 7px;
  text-overflow: ellipsis;
}

.detail-table-head,
.detail-table-row {
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
}

.brand-mark {
  display: none !important;
}

.brand-block {
  gap: 0;
}

.workspace {
  width: 100%;
  max-width: 100%;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, min(var(--inspector-width), 34vw))
    minmax(0, min(var(--ai-width), 42vw));
}

.topbar,
.command-strip,
.nav-group,
.tool-cluster,
.category-stack-group,
.category-layer-list {
  max-width: 100%;
  min-width: 0;
}

.command-strip {
  overflow: hidden;
  grid-template-columns:
    minmax(72px, 0.32fr)
    minmax(86px, 0.34fr)
    minmax(104px, 1fr)
    minmax(70px, auto)
    minmax(0, auto);
}

.tool-cluster {
  overflow: hidden;
}

/* Inspector readability pass: data-first side panel prepared for future collection feeds. */
.app-shell {
  --inspector-width: 360px;
}

.inspector {
  background:
    linear-gradient(180deg, rgba(240, 247, 237, 0.92), rgba(249, 251, 247, 0.96) 32%, #fbfcf8 100%);
}

#inspectorContent {
  gap: 10px;
  padding: 10px 12px 108px;
}

.compact-region-head {
  padding: 11px 11px 10px;
  border: 1px solid rgba(83, 112, 86, 0.18);
  border-left: 4px solid #416f4a;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f6faf3);
  box-shadow: 0 1px 2px rgba(29, 43, 34, 0.06);
}

.region-kicker {
  margin-bottom: 6px;
}

.region-title-line h2 {
  font-size: 22px;
  font-weight: 920;
  letter-spacing: 0;
}

.region-title-line strong {
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef6e8;
  color: #315f38;
  font-size: 13px;
  white-space: nowrap;
}

.compact-score-strip {
  gap: 6px;
  margin-top: 9px;
}

.compact-score-strip span {
  padding: 6px 7px;
  border-color: rgba(83, 112, 86, 0.16);
  border-radius: 7px;
  background: #ffffff;
  font-size: 8.1px;
}

.compact-score-strip strong {
  display: block;
  margin: 2px 0 0;
  font-size: 10px;
}

.inspector-data-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 7px;
  border: 1px solid rgba(83, 112, 86, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 253, 0.88);
  box-shadow: 0 1px 1px rgba(29, 43, 34, 0.035);
}

.inspector-data-bar div,
.inspector-data-bar a {
  min-width: 0;
  min-height: 34px;
  display: grid;
  align-content: center;
  padding: 6px 7px;
  border-radius: 7px;
  background: #f4f8f1;
}

.inspector-data-bar span {
  color: #6b7a6e;
  font-size: 7.3px;
  font-weight: 860;
}

.inspector-data-bar strong {
  min-width: 0;
  overflow: hidden;
  color: #1d3027;
  font-size: 8.8px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspector-data-bar a {
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(49, 95, 56, 0.18);
  background: #ffffff;
  color: #315f38;
  font-size: 8.3px;
  font-weight: 920;
  text-decoration: none;
}

.section-title {
  margin: 6px 0 -4px;
  padding-left: 2px;
  color: #2c4c34;
  font-size: 8.2px;
  font-weight: 930;
}

.score-summary-card {
  gap: 8px;
  padding: 9px;
  border-color: rgba(83, 112, 86, 0.18);
  border-radius: 10px;
  background: #ffffff;
}

.score-summary-head {
  padding-bottom: 8px;
}

.score-summary-head strong {
  font-size: 12.6px;
  font-weight: 930;
}

.score-summary-row {
  padding: 8px;
  border-radius: 9px;
  background: #fbfdf8;
}

.score-row-head {
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(83, 112, 86, 0.11);
}

.indicator-score-list.compact {
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(83, 112, 86, 0.13);
  border-radius: 8px;
  background: #ffffff;
}

.indicator-score-header,
.indicator-score-row {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 0.94fr) 50px 36px 31px 18px;
  align-items: center;
  gap: 4px;
  padding: 6px 7px;
}

.indicator-score-list.compact .indicator-score-row,
.score-row-list > .indicator-score-row {
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 0.94fr) 50px 36px 31px 18px;
  gap: 4px;
}

.indicator-score-header {
  background: linear-gradient(180deg, #eef5e9, #e6efe1);
  color: #426048;
  font-size: 7.3px;
  font-weight: 930;
}

.indicator-score-row {
  min-height: 30px;
  border: 0;
  border-top: 1px solid rgba(83, 112, 86, 0.1);
  border-radius: 0;
  background: #ffffff;
}

.indicator-score-row:nth-child(odd) {
  background: #fbfdf8;
}

.indicator-score-row span {
  color: #526257;
  font-size: 8.1px;
  font-weight: 850;
}

.indicator-score-row em {
  color: #162019;
  font-size: 8.3px;
  font-weight: 850;
}

.indicator-score-row strong {
  color: #244f31;
  font-size: 8.5px;
  text-align: right;
}

.rank-chip {
  height: 17px;
  background: #f2f7ef;
  font-size: 7.5px;
}

.yoy-chip {
  min-width: 0;
  color: #4e6253;
  font-size: 7.2px;
  font-weight: 840;
  text-align: right;
  white-space: nowrap;
}

.yoy-chip.up {
  color: #276b3c;
}

.yoy-chip.down {
  color: #9b3f34;
}

.yoy-chip.neutral {
  color: #6d746f;
}

.category-detail-card {
  border: 1px solid rgba(83, 112, 86, 0.15);
  border-radius: 10px;
  background: #ffffff;
}

.category-detail-card summary {
  padding: 9px 10px;
  border-left-width: 3px;
}

.category-detail-card summary span {
  font-size: 10.2px;
}

.category-detail-card summary small {
  margin-top: 1px;
  color: #6a796c;
  font-size: 7.8px;
}

.category-detail-body {
  gap: 8px;
  padding: 0 9px 9px;
}

.detail-source-row {
  padding: 7px;
  border-color: rgba(83, 112, 86, 0.13);
  background: #f7fbf4;
}

.detail-source-row a {
  max-width: 112px;
  min-height: 22px;
  background: #ffffff;
}

.detail-table {
  border-color: rgba(83, 112, 86, 0.14);
  border-radius: 9px;
  background: #ffffff;
}

.detail-table-head,
.detail-table-row {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  padding: 7px 9px;
}

.detail-table-head {
  background: linear-gradient(180deg, #eef5e9, #e7f0e2);
  font-size: 7.5px;
}

.detail-table-section {
  padding: 8px 9px 5px;
  background: #f3f8ef;
  font-size: 8.3px;
}

.detail-table-row {
  min-height: 30px;
}

.detail-table-row span {
  color: #526257;
}

.detail-table-row strong {
  color: #162019;
  font-size: 8.8px;
  text-align: right;
}

@media (max-width: 1240px) {
  #inspectorContent {
    padding-inline: 9px;
  }

  .indicator-score-header,
  .indicator-score-row {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 0.9fr) 44px 31px 28px 18px;
    padding-inline: 6px;
  }

  .indicator-score-list.compact .indicator-score-row,
  .score-row-list > .indicator-score-row {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 0.9fr) 44px 31px 28px 18px;
  }
}

/* Recovery pass: restore a report-grade inspector after the brief-card experiment. */
.app-shell {
  --inspector-width: 380px;
}

#inspectorContent {
  gap: 12px;
  padding: 12px 13px 118px;
}

.compact-region-head {
  border-radius: 8px;
}

.region-title-line h2 {
  font-size: 23px;
}

.region-title-line strong {
  max-width: 145px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}

.compact-score-strip span {
  font-size: 9.8px;
  line-height: 1.35;
}

.compact-score-strip strong {
  font-size: 11.2px;
}

.section-title {
  margin: 8px 0 -2px;
  color: #253f2d;
  font-size: 10.4px;
  letter-spacing: 0;
}

.score-summary-head strong {
  font-size: 13.2px;
}

.indicator-score-header {
  font-size: 8.4px;
}

.indicator-score-row span,
.indicator-score-row em,
.indicator-score-row strong {
  font-size: 8.9px;
  line-height: 1.25;
}

.rank-chip,
.yoy-chip {
  font-size: 8px;
}

.category-detail-card {
  border-radius: 8px;
}

.category-detail-card summary {
  padding: 10px 11px;
}

.category-detail-card summary span {
  font-size: 11.3px;
}

.category-detail-card summary strong {
  font-size: 9.2px;
}

.category-detail-card summary small {
  font-size: 9px;
  line-height: 1.35;
}

.category-detail-body {
  gap: 10px;
  padding: 0 10px 10px;
}

.detail-table {
  border-radius: 8px;
}

.detail-table-head,
.detail-table-row {
  grid-template-columns: minmax(104px, 0.72fr) minmax(0, 1.28fr);
  column-gap: 10px;
  padding: 8px 10px;
}

.detail-table-head {
  font-size: 9px;
}

.detail-table-section {
  padding: 10px 10px 6px;
  color: #2f5238;
  font-size: 10.2px;
  line-height: 1.3;
}

.detail-table-row {
  min-height: 36px;
}

.detail-table-row span {
  align-self: start;
  color: #506156;
  font-size: 9.7px;
  font-weight: 850;
  line-height: 1.35;
}

.detail-table-row strong {
  min-width: 0;
  overflow: visible;
  color: #162019;
  font-size: 10px;
  font-weight: 830;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  word-break: keep-all;
}

.detail-source-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 8px 9px;
}

.detail-source-row span {
  overflow: visible;
  font-size: 9.2px;
  line-height: 1.35;
  text-overflow: clip;
  white-space: normal;
}

.detail-source-row a {
  max-width: none;
  min-height: 26px;
  padding: 0 9px;
  font-size: 9px;
}

.detail-source-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

@media (max-width: 1240px) {
  .app-shell {
    --inspector-width: 348px;
  }

  #inspectorContent {
    padding-inline: 10px;
  }

  .detail-table-head,
  .detail-table-row {
    grid-template-columns: minmax(92px, 0.7fr) minmax(0, 1.3fr);
    column-gap: 8px;
    padding-inline: 8px;
  }

  .detail-table-row strong {
    font-size: 9.5px;
  }
}

/* Data inspector readability pass: numbers first, sources last, wide panel friendly. */
.app-shell {
  --inspector-width: 440px;
}

.workspace {
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, var(--inspector-width))
    minmax(0, min(var(--ai-width), 42vw));
}

#inspectorContent {
  gap: 14px;
  padding: 12px 14px 128px;
}

.category-detail-card summary span {
  font-size: 12.4px;
}

.category-detail-card summary strong {
  font-size: 10px;
}

.category-detail-card summary small {
  font-size: 9.8px;
}

.detail-table-head,
.detail-table-row {
  grid-template-columns: minmax(118px, 0.48fr) minmax(0, 1.52fr);
  column-gap: 14px;
  padding: 10px 12px;
}

.detail-table-head {
  font-size: 9.8px;
}

.detail-table-section {
  padding: 12px 12px 7px;
  color: #25462d;
  font-size: 11.6px;
  line-height: 1.25;
}

.detail-table-row {
  min-height: 46px;
}

.detail-table-row span {
  color: #48584d;
  font-size: 10.6px;
  line-height: 1.35;
}

.detail-table-row strong.detail-value {
  display: grid;
  gap: 3px;
  color: #122017;
  line-height: 1.32;
  text-align: left;
}

.detail-table-row strong.detail-value b {
  color: #16251a;
  font-size: 13.6px;
  font-weight: 930;
  line-height: 1.18;
}

.detail-table-row strong.detail-value-featured b {
  color: #234f31;
  font-size: 18px;
  letter-spacing: 0;
}

.detail-table-row strong.detail-value small {
  color: #66746a;
  font-size: 10.3px;
  font-weight: 760;
  line-height: 1.35;
}

.detail-source-row {
  margin-top: 2px;
  padding: 9px 10px;
  background: #f8fbf5;
}

.detail-source-row span {
  color: #56655b;
  font-size: 9.8px;
}

.detail-source-row a {
  min-height: 28px;
  border-radius: 6px;
  font-size: 9.5px;
}

.score-summary-card {
  opacity: 0.96;
}

@media (max-width: 1240px) {
  .detail-table-head,
  .detail-table-row {
    grid-template-columns: minmax(104px, 0.5fr) minmax(0, 1.5fr);
    column-gap: 10px;
  }

  .detail-table-row strong.detail-value b {
    font-size: 12.8px;
  }

  .detail-table-row strong.detail-value-featured b {
    font-size: 16px;
  }
}

/* Inspector density and typography normalization. */
.section-title {
  margin: 10px 0 -3px;
  font-size: 11.2px;
  font-weight: 900;
}

.category-detail-card summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
}

.category-summary-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.category-summary-copy > span {
  color: #18291f;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.category-summary-copy > small {
  color: #637167;
  font-size: 10px;
  font-weight: 720;
  line-height: 1.3;
}

.category-summary-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.category-summary-actions > strong {
  min-width: 36px;
  color: #3c5b42;
  font-size: 10px;
  font-weight: 850;
  text-align: right;
}

.category-source-links {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.category-source-button {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid rgba(49, 95, 56, 0.24);
  border-radius: 6px;
  background: #ffffff;
  color: #315f38;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.category-source-button:hover {
  border-color: rgba(49, 95, 56, 0.45);
  background: #f4f9f1;
}

.detail-table {
  border-radius: 7px;
}

.detail-table-head,
.detail-table-row {
  grid-template-columns: minmax(124px, 0.44fr) minmax(0, 1.56fr);
  column-gap: 14px;
  padding: 9px 12px;
}

.detail-table-head {
  font-size: 9.6px;
}

.detail-table-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 12px 7px;
  font-size: 11.4px;
}

.detail-table-section > span {
  min-width: 0;
}

.detail-section-links {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.detail-section-link {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border: 1px solid rgba(49, 95, 56, 0.22);
  border-radius: 6px;
  background: #ffffff;
  color: #315f38;
  font-size: 9.4px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.detail-section-link:hover {
  border-color: rgba(49, 95, 56, 0.45);
  background: #f4f9f1;
}

.detail-table-row {
  min-height: 42px;
}

.detail-table-row span {
  font-size: 10.8px;
  font-weight: 780;
}

.detail-table-row strong.detail-value b {
  font-size: 13px;
  font-weight: 880;
}

.detail-table-row strong.detail-value-featured b {
  font-size: 15.2px;
  font-weight: 920;
}

.detail-table-row strong.detail-value small {
  font-size: 10.1px;
  font-weight: 720;
}

.indicator-score-header {
  font-size: 9px;
}

.indicator-score-row span,
.indicator-score-row em,
.indicator-score-row strong {
  font-size: 9.4px;
}

.rank-chip,
.yoy-chip {
  font-size: 8.7px;
}

@media (max-width: 1240px) {
  .category-detail-card summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .category-summary-actions {
    justify-content: flex-start;
  }

  .detail-table-head,
  .detail-table-row {
    grid-template-columns: minmax(108px, 0.48fr) minmax(0, 1.52fr);
  }

  .detail-table-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-section-links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Inspector hierarchy correction: numeric values lead, notes and source buttons recede. */
.category-detail-card summary {
  padding: 10px 12px;
}

.category-summary-copy > span {
  font-size: 12.2px;
  font-weight: 900;
  line-height: 1.22;
}

.category-summary-copy > small {
  font-size: 9.2px;
  font-weight: 660;
  line-height: 1.28;
}

.category-summary-actions > strong {
  font-size: 9px;
  font-weight: 800;
}

.category-source-button {
  min-height: 22px;
  padding: 0 8px;
  font-size: 8.8px;
  font-weight: 760;
}

.detail-table-head,
.detail-table-row {
  grid-template-columns: minmax(120px, 0.43fr) minmax(0, 1.57fr);
  column-gap: 13px;
}

.detail-table-head {
  font-size: 8.6px;
}

.detail-table-section {
  padding: 10px 12px 6px;
  font-size: 10.2px;
  font-weight: 860;
  line-height: 1.25;
}

.detail-section-link {
  min-height: 20px;
  padding: 0 7px;
  font-size: 8.2px;
  font-weight: 760;
}

.detail-table-row {
  min-height: 38px;
  padding: 8px 12px;
}

.detail-table-row span {
  font-size: 9.6px;
  font-weight: 760;
  line-height: 1.32;
}

.detail-table-row strong.detail-value {
  gap: 2px;
  line-height: 1.25;
}

.detail-table-row strong.detail-value b {
  font-size: 12.2px;
  font-weight: 880;
  line-height: 1.18;
}

.detail-table-row strong.detail-value-featured b {
  font-size: 14px;
  font-weight: 920;
}

.detail-table-row strong.detail-value small {
  font-size: 8.8px;
  font-weight: 650;
  line-height: 1.28;
}

.detail-table-row strong.detail-value-missing b {
  color: #879087;
  font-size: 11.2px;
  font-weight: 760;
}

.detail-table-row strong.detail-value-missing small {
  color: #78827a;
  font-size: 8.6px;
  font-weight: 620;
}

@media (max-width: 1240px) {
  .detail-table-head,
  .detail-table-row {
    grid-template-columns: minmax(104px, 0.46fr) minmax(0, 1.54fr);
    column-gap: 10px;
  }

  .detail-table-row strong.detail-value b {
    font-size: 11.8px;
  }

  .detail-table-row strong.detail-value-featured b {
    font-size: 13.2px;
  }
}

/* Final inspector scale reset: labels must not be smaller than their values. */
.section-title {
  font-size: 11px;
  font-weight: 900;
}

.score-summary-head strong {
  font-size: 12px;
  font-weight: 900;
  line-height: 1.22;
}

.score-row-head strong {
  font-size: 11.4px;
  font-weight: 860;
  line-height: 1.25;
}

.score-row-head span {
  font-size: 10.8px;
  font-weight: 760;
  line-height: 1.2;
}

.detail-table-section {
  font-size: 11.4px;
  font-weight: 900;
}

.detail-table-row span {
  color: #233129;
  font-size: 11.8px;
  font-weight: 840;
  line-height: 1.28;
}

.detail-table-row strong.detail-value b {
  color: #223027;
  font-size: 11.4px;
  font-weight: 760;
  line-height: 1.22;
}

.detail-table-row strong.detail-value-featured b {
  color: #223027;
  font-size: 11.8px;
  font-weight: 820;
}

.detail-table-row strong.detail-value small {
  font-size: 8.8px;
  font-weight: 620;
  line-height: 1.3;
}

.detail-table-row strong.detail-value-missing b {
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 1240px) {
  .detail-table-row span {
    font-size: 11.2px;
  }

  .detail-table-row strong.detail-value b,
  .detail-table-row strong.detail-value-featured b {
    font-size: 10.9px;
  }
}

/* Four strategic area layer. It sits on top of the existing map without changing the base heatmap. */
.map-mode-switch {
  align-items: center;
  flex-wrap: wrap;
}

.mode-toggle-group,
.map-option-toggle-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 2px;
  border-radius: 7px;
}

.mode-toggle-group {
  border: 1px solid rgba(53, 82, 58, 0.2);
  background: rgba(238, 245, 232, 0.82);
}

.map-option-toggle-group {
  border: 1px solid rgba(111, 100, 75, 0.18);
  background: rgba(255, 251, 241, 0.82);
}

.mode-toggle-group button,
.map-option-toggle-group button {
  min-width: 58px;
}

.map-option-toggle-group .strategic-area-mode-toggle[aria-pressed="true"] {
  border-color: rgba(31, 86, 60, 0.52);
  background: linear-gradient(180deg, #dff0d8, #cfe5c8);
  color: #17351f;
}

.strategic-area-layer,
.strategic-area-label-layer {
  pointer-events: none;
}

.strategic-area-label {
  cursor: pointer;
  pointer-events: auto;
}

.strategic-area-wash {
  fill: rgba(54, 91, 72, 0.09);
  stroke: rgba(49, 83, 66, 0.38);
  stroke-width: 1.05;
  vector-effect: non-scaling-stroke;
}

.strategic-area-label text {
  text-anchor: middle;
  font-weight: 850;
  font-size: 18px;
  fill: rgba(35, 66, 52, 0.84);
  stroke: rgba(251, 255, 246, 0.92);
  stroke-width: 4px;
  paint-order: stroke;
}

.strategic-area-label .strategic-area-count {
  font-size: 10px;
  font-weight: 760;
  fill: rgba(55, 74, 62, 0.7);
  stroke-width: 3px;
}

.strategic-area-label.is-selected text {
  fill: #1f563c;
}

.region-polygon.is-area-member {
  stroke: rgba(29, 78, 54, 0.78);
  stroke-width: 1.18;
}

.region-polygon.is-area-muted {
  opacity: 0.33;
}

.label-layer text.is-area-muted,
.label-layer text.is-region-muted {
  opacity: 0.28;
}

.app-shell.cartogram-mode .strategic-area-layer,
.app-shell.cartogram-mode .strategic-area-label-layer {
  display: none;
}

.strategic-area-card,
.report-readiness-card,
.decision-evidence-card,
.evidence-flow-card,
.category-focus-card {
  border: 1px solid rgba(86, 104, 78, 0.18);
  border-radius: 8px;
  background: rgba(250, 253, 246, 0.92);
  box-shadow: 0 10px 28px rgba(34, 50, 36, 0.08);
  margin: 10px 0 12px;
}

.strategic-area-card {
  border-left: 4px solid var(--area-color, #4f6f5f);
  padding: 12px;
}

.decision-evidence-card {
  border-left: 4px solid rgba(57, 84, 64, 0.72);
  padding: 12px;
}

.decision-evidence-head span,
.decision-evidence-row span {
  display: block;
  color: #647060;
  font-size: 11px;
  font-weight: 760;
}

.decision-evidence-head strong {
  display: block;
  color: #243527;
  font-size: 16px;
  line-height: 1.25;
  margin-top: 2px;
}

.decision-evidence-head small {
  display: block;
  color: #5b6658;
  font-size: 12px;
  line-height: 1.42;
  margin-top: 3px;
}

.decision-evidence-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.decision-evidence-row {
  align-items: start;
  border: 1px solid rgba(80, 96, 75, 0.13);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.68);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 8px;
}

.decision-evidence-row strong {
  color: #273527;
  display: block;
  font-size: 13px;
  line-height: 1.25;
  margin-top: 2px;
}

.decision-evidence-row small {
  color: #566150;
  display: block;
  font-size: 11px;
  line-height: 1.38;
  margin-top: 3px;
}

.decision-evidence-row em {
  border: 1px solid rgba(77, 103, 80, 0.2);
  border-radius: 999px;
  color: #254532;
  background: rgba(238, 247, 234, 0.96);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  padding: 5px 8px;
  white-space: nowrap;
}

.decision-evidence-card p {
  border-top: 1px solid rgba(87, 102, 81, 0.13);
  color: #596456;
  font-size: 11px;
  line-height: 1.45;
  margin: 9px 0 0;
  padding-top: 8px;
}

.evidence-flow-card {
  border-left: 4px solid rgba(53, 91, 93, 0.76);
  padding: 12px;
}

.category-focus-card {
  border-left: 4px solid var(--chip-color, #4f7a48);
  padding: 12px;
}

.category-focus-head span,
.category-focus-grid span {
  color: #5f6c63;
  display: block;
  font-size: 11px;
  font-weight: 780;
}

.category-focus-head strong {
  color: #22382f;
  display: block;
  font-size: 16px;
  line-height: 1.24;
  margin-top: 2px;
}

.category-focus-head small {
  color: #58645c;
  display: block;
  font-size: 12px;
  line-height: 1.42;
  margin-top: 3px;
}

.category-focus-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  margin-top: 10px;
}

.category-focus-grid > div {
  background: transparent;
  border: 0;
  border-left: 2px solid rgba(78, 98, 84, 0.16);
  border-radius: 0;
  min-width: 0;
  padding: 3px 4px 5px 8px;
}

.category-focus-grid > div.is-featured {
  background: linear-gradient(90deg, color-mix(in srgb, var(--chip-color, #4f7a48) 10%, transparent), transparent 74%);
  border-left-color: color-mix(in srgb, var(--chip-color, #4f7a48) 70%, rgba(78, 98, 84, 0.14));
}

.category-focus-grid > div.is-search-supplement {
  background: linear-gradient(90deg, rgba(184, 45, 45, 0.1), transparent 76%);
  border-left-color: rgba(184, 45, 45, 0.62);
  box-shadow: none;
}

.category-focus-grid > div.is-search-supplement strong {
  color: #b4232f;
}

.category-focus-grid > div.is-search-supplement span::after {
  background: rgba(184, 45, 45, 0.1);
  border: 1px solid rgba(184, 45, 45, 0.18);
  border-radius: 999px;
  color: #b4232f;
  content: "검색";
  display: inline-block;
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
  margin-left: 5px;
  padding: 2px 4px;
  vertical-align: 1px;
}

.category-focus-grid strong {
  color: #203929;
  display: block;
  font-size: 16px;
  line-height: 1.22;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.category-focus-grid small {
  color: #596557;
  display: block;
  font-size: 11px;
  line-height: 1.34;
  margin-top: 3px;
}

.category-focus-section {
  border-top: 1px solid rgba(87, 102, 81, 0.13);
  margin-top: 10px;
  padding-top: 9px;
}

.category-focus-section-head {
  align-items: baseline;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 7px;
}

.category-focus-section-head strong {
  color: #26392b;
  font-size: 12px;
  line-height: 1.25;
}

.category-focus-section-head span {
  color: #6a7366;
  font-size: 10px;
  font-weight: 700;
  text-align: right;
}

.category-status-strip,
.category-focus-section-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}

.category-status-strip > div,
.category-focus-section-grid > div {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(78, 98, 84, 0.12);
  border-radius: 7px;
  min-width: 0;
  padding: 7px;
}

.category-status-strip span,
.category-focus-section-grid span {
  color: #667064;
  display: block;
  font-size: 10px;
  font-weight: 760;
  line-height: 1.2;
}

.category-status-strip strong,
.category-focus-section-grid strong {
  color: #243527;
  display: block;
  font-size: 13px;
  line-height: 1.22;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.category-status-strip small,
.category-focus-section-grid small {
  color: #5b6559;
  display: block;
  font-size: 10px;
  line-height: 1.32;
  margin-top: 3px;
}

.category-focus-section-grid {
  border-top: 1px solid rgba(87, 102, 81, 0.13);
  margin-top: 10px;
  padding-top: 9px;
}

.category-data-status {
  border-top: 1px solid rgba(87, 102, 81, 0.12);
  margin-top: 10px;
  padding-top: 9px;
}

.category-data-status-head {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.category-data-status-head strong {
  color: #25392b;
  font-size: 12px;
  line-height: 1.2;
}

.category-data-status-head span {
  background: rgba(78, 98, 84, 0.08);
  border: 1px solid rgba(78, 98, 84, 0.12);
  border-radius: 999px;
  color: #52604f;
  font-size: 9.6px;
  font-weight: 820;
  line-height: 1;
  padding: 4px 7px;
  white-space: nowrap;
}

.category-data-status-row {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  margin-top: 7px;
}

.category-data-status-row span {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(78, 98, 84, 0.1);
  border-radius: 7px;
  color: #4f5b50;
  font-size: 10.2px;
  line-height: 1.28;
  min-width: 0;
  overflow: hidden;
  padding: 6px 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-data-status-row b {
  color: #293b2c;
  display: block;
  font-size: 9.4px;
  line-height: 1.1;
  margin-bottom: 3px;
}

.category-focus-note {
  border-top: 1px solid rgba(87, 102, 81, 0.13);
  color: #536050;
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding-top: 9px;
}

.category-focus-note strong {
  color: #25392b;
  font-size: 12px;
}

.category-focus-note span,
.category-focus-note em {
  font-size: 11px;
  font-style: normal;
  line-height: 1.38;
}

.category-focus-links {
  border-top: 1px solid rgba(87, 102, 81, 0.13);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 9px;
}

.category-focus-links a {
  border: 1px solid rgba(61, 94, 74, 0.18);
  border-radius: 999px;
  color: #2d4f3b;
  font-size: 11px;
  font-weight: 780;
  line-height: 1;
  padding: 6px 8px;
  text-decoration: none;
}

.evidence-flow-head span,
.evidence-flow-step span,
.evidence-source-head span {
  color: #5f6c63;
  display: block;
  font-size: 11px;
  font-weight: 780;
}

.evidence-flow-head strong {
  color: #22382f;
  display: block;
  font-size: 16px;
  line-height: 1.24;
  margin-top: 2px;
}

.evidence-flow-head small {
  color: #58645c;
  display: block;
  font-size: 12px;
  line-height: 1.42;
  margin-top: 3px;
}

.evidence-flow-steps {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 10px;
}

.evidence-flow-step {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(78, 98, 84, 0.14);
  border-radius: 7px;
  padding: 8px;
}

.evidence-flow-step strong {
  color: #273b30;
  display: block;
  font-size: 13px;
  line-height: 1.25;
  margin-top: 3px;
}

.evidence-flow-step small {
  color: #5b675d;
  display: block;
  font-size: 11px;
  line-height: 1.36;
  margin-top: 3px;
}

.evidence-source-board {
  border-top: 1px solid rgba(87, 102, 81, 0.13);
  margin-top: 10px;
  padding-top: 9px;
}

.evidence-source-head {
  align-items: baseline;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.evidence-source-head strong {
  color: #26392c;
  font-size: 13px;
}

.evidence-source-list {
  display: grid;
  gap: 6px;
  margin-top: 7px;
}

.evidence-source-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(74, 93, 78, 0.13);
  border-radius: 7px;
  color: inherit;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 7px 8px;
  text-decoration: none;
}

.evidence-source-row:hover {
  border-color: rgba(57, 93, 72, 0.34);
  background: rgba(246, 252, 243, 0.95);
}

.evidence-source-row strong {
  color: #26392c;
  display: block;
  font-size: 12px;
  line-height: 1.25;
}

.evidence-source-row small {
  color: #5f6a62;
  display: block;
  font-size: 10.5px;
  line-height: 1.33;
  margin-top: 2px;
}

.evidence-source-row em {
  border-radius: 999px;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 850;
  padding: 4px 7px;
  white-space: nowrap;
}

.source-status-collected {
  background: rgba(231, 246, 236, 0.96);
  border: 1px solid rgba(66, 122, 83, 0.25);
  color: #245536;
}

.source-status-ready {
  background: rgba(240, 244, 236, 0.96);
  border: 1px solid rgba(109, 124, 86, 0.22);
  color: #4f5d34;
}

.source-status-pending {
  background: rgba(252, 244, 229, 0.96);
  border: 1px solid rgba(157, 115, 51, 0.24);
  color: #735221;
}

.evidence-source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.evidence-source-actions a {
  background: rgba(48, 76, 65, 0.08);
  border: 1px solid rgba(63, 91, 75, 0.18);
  border-radius: 999px;
  color: #30483b;
  font-size: 11px;
  font-weight: 780;
  padding: 5px 8px;
  text-decoration: none;
}

.evidence-source-actions a:hover {
  background: rgba(232, 244, 236, 0.98);
}

.strategic-area-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.strategic-area-card-head span,
.report-readiness-card summary span,
.strategic-area-members span,
.strategic-area-metrics span {
  display: block;
  color: #647060;
  font-size: 11px;
  font-weight: 760;
}

.strategic-area-card-head strong {
  display: block;
  color: #243527;
  font-size: 17px;
  line-height: 1.24;
  margin-top: 2px;
}

.strategic-area-card-head small {
  display: block;
  color: #5b6658;
  font-size: 12px;
  line-height: 1.42;
  margin-top: 3px;
}

.strategic-area-card-head em {
  flex: 0 0 auto;
  border: 1px solid rgba(77, 103, 80, 0.2);
  border-radius: 999px;
  color: #254532;
  background: rgba(238, 247, 234, 0.96);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  padding: 5px 8px;
}

.strategic-area-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.strategic-area-metrics div {
  min-width: 0;
  border: 1px solid rgba(80, 96, 75, 0.13);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.66);
  padding: 7px;
}

.strategic-area-metrics strong {
  display: block;
  color: #273527;
  font-size: 14px;
  line-height: 1.22;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.strategic-area-members {
  margin-top: 9px;
  border-top: 1px solid rgba(87, 102, 81, 0.13);
  padding-top: 8px;
}

.strategic-area-members small {
  display: block;
  color: #4f5a4d;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 3px;
}

.report-readiness-card summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  list-style: none;
  padding: 10px 12px;
}

.report-readiness-card summary::-webkit-details-marker {
  display: none;
}

.report-readiness-card summary strong {
  color: #283627;
  display: block;
  font-size: 14px;
  line-height: 1.28;
}

.report-readiness-card summary em {
  color: #63705f;
  font-size: 11px;
  font-style: normal;
  font-weight: 780;
}

.report-readiness-body {
  border-top: 1px solid rgba(87, 102, 81, 0.13);
  padding: 9px 12px 12px;
}

.report-readiness-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 5px 0;
}

.report-readiness-row span {
  color: #536050;
  font-size: 12px;
}

.report-readiness-row strong {
  color: #2f4636;
  font-size: 12px;
}

.report-readiness-body p {
  color: #596456;
  font-size: 12px;
  line-height: 1.5;
  margin: 7px 0 0;
}

.region-title-group {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.region-title-group h2 {
  min-width: 0;
}

.deep-report-open-button {
  flex: 0 0 auto;
  min-height: 24px;
  border: 1px solid rgba(75, 99, 78, 0.26);
  border-radius: 999px;
  background: #ffffff;
  color: #253b2b;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  padding: 5px 8px;
}

.deep-report-open-button:hover {
  border-color: rgba(55, 93, 61, 0.42);
  background: #eef6e8;
}

.deep-report-modal {
  position: fixed;
  inset: 0;
  z-index: 34;
  display: grid;
  place-items: center;
  padding: 32px;
}

.deep-report-modal[hidden] {
  display: none;
}

.deep-report-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 24, 18, 0.5);
}

.deep-report-dialog {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100vw - 64px));
  height: min(660px, calc(100vh - 64px));
  min-width: min(620px, calc(100vw - 64px));
  min-height: min(440px, calc(100vh - 64px));
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  overscroll-behavior: contain;
  resize: both;
  border: 1px solid rgba(72, 82, 74, 0.26);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(253, 252, 248, 0.99), rgba(248, 247, 242, 0.99));
  box-shadow:
    0 24px 56px rgba(13, 21, 16, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.deep-report-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 11px;
  border-bottom: 1px solid rgba(104, 127, 98, 0.14);
  background: linear-gradient(180deg, rgba(253, 252, 248, 0.99), rgba(248, 247, 242, 0.97));
  box-shadow: 0 8px 18px rgba(24, 36, 28, 0.08);
}

.deep-report-kicker {
  margin: 0 0 3px;
  color: #5b6f57;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.deep-report-head h2 {
  margin: 0;
  color: #18251c;
  font-size: 15.5px;
  line-height: 1.18;
  letter-spacing: 0;
}

.deep-report-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.deep-report-close,
.deep-report-source-link {
  min-width: 54px;
  height: 27px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(104, 127, 98, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 253, 0.96);
  color: #233625;
  font-size: 9.5px;
  font-weight: 860;
  text-decoration: none;
}

.deep-report-content {
  min-height: 0;
  overflow: auto;
  padding: 16px 20px 24px;
  color: #25312a;
  font-size: 11.5px;
  line-height: 1.64;
}

.deep-report-content h1,
.deep-report-content h2,
.deep-report-content h3,
.deep-report-content h4 {
  color: #17251b;
  letter-spacing: 0;
  line-height: 1.25;
}

.deep-report-content h1 {
  margin: 0 0 12px;
  font-size: 18px;
}

.deep-report-content h2 {
  margin: 20px 0 9px;
  font-size: 15px;
}

.deep-report-content h3 {
  margin: 16px 0 7px;
  font-size: 13.2px;
}

.deep-report-content h4 {
  margin: 12px 0 6px;
  font-size: 12px;
}

.deep-report-content p,
.deep-report-content blockquote,
.deep-report-content ul,
.deep-report-content ol {
  margin: 0 0 9px;
}

.deep-report-content ul,
.deep-report-content ol {
  padding-left: 18px;
}

.deep-report-content blockquote {
  border-left: 3px solid rgba(75, 99, 78, 0.3);
  background: rgba(247, 250, 244, 0.78);
  padding: 8px 11px;
  color: #435245;
}

.deep-report-content pre {
  overflow: auto;
  border: 1px solid rgba(84, 98, 87, 0.16);
  border-radius: 10px;
  background: #f5f7f1;
  color: #25312a;
  font-size: 10.5px;
  line-height: 1.48;
  margin: 9px 0 13px;
  padding: 9px 11px;
  white-space: pre-wrap;
}

.deep-report-content hr {
  border: 0;
  border-top: 1px solid rgba(78, 95, 82, 0.18);
  margin: 16px 0;
}

.deep-report-table-wrap {
  overflow: auto;
  margin: 9px 0 14px;
  border: 1px solid rgba(84, 98, 87, 0.18);
  border-radius: 10px;
  background: #fffef9;
}

.deep-report-doc-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.deep-report-doc-table th,
.deep-report-doc-table td {
  padding: 6px 8px;
  border-right: 1px solid rgba(84, 98, 87, 0.13);
  border-bottom: 1px solid rgba(84, 98, 87, 0.13);
  text-align: left;
  vertical-align: top;
}

.deep-report-doc-table th {
  background: #ecefe6;
  font-weight: 900;
}

.deep-report-doc-table th:last-child,
.deep-report-doc-table td:last-child {
  border-right: 0;
}

.deep-report-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  color: #596456;
  font-size: 12px;
  font-weight: 760;
}

@media (max-width: 760px) {
  .deep-report-modal {
    padding: 12px;
  }

  .deep-report-dialog {
    width: calc(100vw - 24px);
    height: calc(100vh - 24px);
    min-width: 0;
    min-height: 360px;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    resize: vertical;
  }

  .deep-report-head {
    grid-template-columns: 1fr;
  }

  .deep-report-content {
    padding: 10px 12px 16px;
  }
}

.strategic-area-head {
  border-left: 4px solid var(--area-color, #4f6f5f);
}

.grade-badge.area-badge {
  background: rgba(238, 247, 234, 0.96);
  color: #254532;
}

.strategic-area-member-table {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.strategic-area-member-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid rgba(80, 96, 75, 0.14);
  border-radius: 7px;
  background: rgba(250, 253, 246, 0.84);
  color: inherit;
  padding: 8px 9px;
  text-align: left;
}

.strategic-area-member-row:hover {
  border-color: rgba(58, 91, 63, 0.34);
  background: rgba(241, 248, 235, 0.92);
}

.strategic-area-member-row strong,
.strategic-area-member-row small,
.strategic-area-member-row em {
  display: block;
}

.strategic-area-member-row strong {
  color: #253528;
  font-size: 13px;
  line-height: 1.25;
}

.strategic-area-member-row small {
  color: #5f6b5b;
  font-size: 11px;
  line-height: 1.35;
  margin-top: 2px;
}

.strategic-area-member-row em {
  color: #284835;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.strategic-area-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}

.strategic-area-overview-grid div {
  min-width: 0;
  border: 1px solid rgba(80, 96, 75, 0.13);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.68);
  padding: 8px;
}

.strategic-area-overview-grid span,
.strategic-area-overview-grid small {
  display: block;
  color: #647060;
  font-size: 11px;
  line-height: 1.35;
}

.strategic-area-overview-grid strong {
  display: block;
  color: #273527;
  font-size: 14px;
  line-height: 1.22;
  margin: 3px 0 2px;
  overflow-wrap: anywhere;
}

@media (max-width: 1040px) {
  .strategic-area-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.detail-visual-list {
  display: grid;
  gap: 10px;
}

.detail-visual-section {
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--detail-accent, #6f7f72) 28%, rgba(74, 94, 79, 0.12));
  border-radius: 0;
  background: transparent;
  padding: 10px 0 2px;
}

.detail-visual-section-head {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.detail-visual-section-head strong {
  color: color-mix(in srgb, var(--detail-accent, #6f7f72) 58%, #24382b);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.detail-visual-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
}

.detail-visual-card {
  border: 0;
  border-left: 2px solid color-mix(in srgb, var(--detail-accent, #6f7f72) 32%, rgba(78, 98, 84, 0.14));
  border-radius: 0;
  background: transparent;
  min-width: 0;
  overflow: hidden;
  padding: 3px 4px 5px 8px;
  position: relative;
}

.detail-visual-card.is-featured {
  background: linear-gradient(90deg, color-mix(in srgb, var(--detail-accent, #6f7f72) 14%, transparent), transparent 74%);
  border-left-color: color-mix(in srgb, var(--detail-accent, #6f7f72) 78%, rgba(54, 105, 70, 0.24));
}

.detail-visual-card.is-missing {
  background: transparent;
  border-left-style: dashed;
  border-left-color: rgba(116, 122, 112, 0.35);
}

.detail-visual-card.is-search-supplement {
  background: linear-gradient(90deg, rgba(196, 60, 60, 0.12), rgba(255, 181, 92, 0.06) 58%, transparent 78%);
  border-left-color: #c43c3c;
  box-shadow: none;
}

.detail-visual-card.is-search-supplement .detail-visual-label::after {
  background: rgba(184, 45, 45, 0.1);
  border: 1px solid rgba(184, 45, 45, 0.18);
  border-radius: 999px;
  color: #b4232f;
  content: "검색";
  display: inline-block;
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
  margin-left: 5px;
  padding: 2px 4px;
  vertical-align: 1px;
}

.detail-visual-label,
.detail-visual-detail {
  display: block;
  color: color-mix(in srgb, var(--detail-accent, #6f7f72) 18%, #657063);
  font-size: 10.5px;
  line-height: 1.32;
}

.detail-visual-label {
  font-weight: 780;
}

.detail-visual-value {
  color: color-mix(in srgb, var(--detail-accent, #6f7f72) 30%, #22372a);
  display: block;
  font-size: 15px;
  font-weight: 880;
  line-height: 1.18;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.detail-visual-card.is-featured .detail-visual-value {
  font-size: 17px;
}

.detail-visual-card.is-missing .detail-visual-value {
  color: #8a9186;
}

.detail-visual-card.is-search-supplement .detail-visual-value {
  color: #b4232f;
}

.detail-visual-bar {
  background: color-mix(in srgb, var(--detail-accent, #6f7f72) 14%, rgba(76, 93, 78, 0.1));
  border-radius: 999px;
  display: block;
  height: 5px;
  margin-top: 7px;
  overflow: hidden;
}

.detail-visual-bar span {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--detail-accent, #6f7f72) 86%, #2f5560),
    color-mix(in srgb, var(--detail-accent, #6f7f72) 48%, #d8a63a)
  );
  border-radius: inherit;
  display: block;
  height: 100%;
  width: var(--detail-fill, 0%);
}

.detail-visual-detail {
  margin-top: 5px;
}

.detail-visual-link {
  align-items: center;
  border: 1px solid rgba(184, 45, 45, 0.2);
  border-radius: 999px;
  color: #b4232f;
  display: inline-flex;
  font-size: 10px;
  font-weight: 820;
  line-height: 1;
  margin-top: 7px;
  padding: 4px 7px;
  text-decoration: none;
}

.detail-visual-link:hover {
  background: rgba(184, 45, 45, 0.08);
}

.detail-chart,
.detail-chart-set {
  margin: 6px 0 10px;
}

.detail-chart {
  border: 1px solid color-mix(in srgb, var(--detail-accent, #6f7f72) 22%, rgba(66, 78, 70, 0.14));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--detail-accent, #6f7f72) 10%, transparent), transparent 54%),
    rgba(255, 255, 251, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  min-width: 0;
  overflow: hidden;
  padding: 10px;
}

.detail-chart-set {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-chart-head {
  align-items: flex-start;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 6px;
}

.detail-chart-head div {
  min-width: 0;
}

.detail-chart-head strong {
  color: color-mix(in srgb, var(--detail-accent, #6f7f72) 48%, #24322b);
  display: block;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.detail-chart-head span,
.detail-chart-head b,
.detail-chart-foot {
  color: #697267;
  font-size: 10px;
  font-weight: 760;
  line-height: 1.25;
}

.detail-chart-head b {
  color: color-mix(in srgb, var(--detail-accent, #6f7f72) 34%, #24322b);
  white-space: nowrap;
}

.age-pyramid-chart {
  --male-color: #3f7f96;
  --female-color: #b6668c;
  background:
    linear-gradient(90deg, rgba(63, 127, 150, 0.09), transparent 48%, rgba(182, 102, 140, 0.1)),
    rgba(255, 255, 251, 0.8);
}

.age-pyramid-axis,
.age-pyramid-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 38px minmax(0, 1fr) 44px;
  gap: 5px;
}

.age-pyramid-axis {
  color: #798177;
  font-size: 9.5px;
  font-weight: 820;
  margin-bottom: 4px;
  text-align: center;
}

.age-pyramid-axis span:first-child {
  grid-column: 1 / span 2;
}

.age-pyramid-axis span:nth-child(2) {
  grid-column: 3;
}

.age-pyramid-axis span:last-child {
  grid-column: 4 / span 2;
}

.age-pyramid-rows {
  display: grid;
  gap: 2px;
}

.age-pyramid-row {
  align-items: center;
  min-height: 13px;
}

.age-pyramid-row b,
.age-pyramid-value {
  color: #586357;
  font-size: 8.8px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.age-pyramid-row b {
  text-align: center;
}

.age-pyramid-value.left {
  text-align: right;
}

.age-pyramid-value.right {
  text-align: left;
}

.age-pyramid-bar {
  background: rgba(71, 83, 77, 0.08);
  border-radius: 999px;
  display: block;
  height: 8px;
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.age-pyramid-bar span {
  border-radius: inherit;
  display: block;
  height: 100%;
  width: var(--bar-width, 0%);
}

.age-pyramid-bar.male span {
  background: linear-gradient(90deg, #6fa7ba, var(--male-color));
  margin-left: auto;
}

.age-pyramid-bar.female span {
  background: linear-gradient(90deg, var(--female-color), #d58faa);
}

.detail-chart-foot {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 7px;
}

.donut-chart-card {
  background:
    radial-gradient(circle at 18% 24%, color-mix(in srgb, var(--detail-accent, #6f7f72) 10%, transparent), transparent 30%),
    rgba(255, 255, 251, 0.78);
}

.donut-chart-body {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 112px minmax(0, 1fr);
}

.donut-ring {
  align-items: center;
  aspect-ratio: 1;
  background: conic-gradient(var(--donut-gradient));
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  position: relative;
}

.donut-ring::before {
  background: #fbfbf4;
  border-radius: inherit;
  content: "";
  inset: 22%;
  position: absolute;
}

.donut-ring span,
.donut-ring strong {
  position: relative;
  z-index: 1;
}

.donut-ring span {
  color: #697267;
  font-size: 9px;
  font-weight: 820;
}

.donut-ring strong {
  color: #26342b;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  margin-top: 2px;
  text-align: center;
}

.donut-legend {
  display: grid;
  gap: 5px;
  list-style: none;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.donut-legend li {
  align-items: center;
  display: grid;
  gap: 5px;
  grid-template-columns: 8px minmax(0, 1fr) auto auto;
  min-width: 0;
}

.donut-legend i {
  background: var(--segment-color, var(--detail-accent));
  border-radius: 50%;
  display: block;
  height: 8px;
  width: 8px;
}

.donut-legend span {
  color: #465246;
  font-size: 10px;
  font-weight: 830;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.donut-legend b,
.donut-legend em {
  color: #627064;
  font-size: 9.5px;
  font-style: normal;
  font-weight: 760;
  white-space: nowrap;
}

.bar-list-rows {
  display: grid;
  gap: 7px;
}

.bar-list-row {
  align-items: center;
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(74px, 0.8fr) minmax(0, 1.45fr) auto;
  min-width: 0;
}

.bar-list-row span,
.bar-list-row strong {
  color: #465246;
  font-size: 10px;
  font-weight: 830;
  line-height: 1.15;
  min-width: 0;
}

.bar-list-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-list-row strong {
  color: #27362b;
  text-align: right;
  white-space: nowrap;
}

.bar-list-row i {
  background: rgba(73, 87, 78, 0.1);
  border-radius: 999px;
  display: block;
  height: 8px;
  min-width: 0;
  overflow: hidden;
}

.bar-list-row i b {
  background: linear-gradient(90deg, var(--bar-color, var(--detail-accent)), color-mix(in srgb, var(--bar-color, var(--detail-accent)) 58%, #f1c35a));
  border-radius: inherit;
  display: block;
  height: 100%;
  width: var(--bar-width, 0%);
}

.directory-list-chart {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--detail-accent, #6f7f72) 11%, transparent), transparent 44%),
    rgba(255, 255, 252, 0.82);
}

.directory-list-groups {
  display: grid;
  gap: 7px;
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}

.directory-list-group {
  border: 1px solid color-mix(in srgb, var(--detail-accent, #6f7f72) 18%, rgba(72, 84, 77, 0.12));
  border-radius: 8px;
  background: rgba(255, 255, 253, 0.62);
  overflow: hidden;
}

.directory-list-group summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  list-style: none;
  padding: 8px 10px;
}

.directory-list-group summary::-webkit-details-marker {
  display: none;
}

.directory-list-group summary span {
  color: color-mix(in srgb, var(--detail-accent, #6f7f72) 52%, #25352b);
  font-size: 12px;
  font-weight: 900;
}

.directory-list-group summary strong {
  border-radius: 999px;
  background: color-mix(in srgb, var(--detail-accent, #6f7f72) 13%, rgba(255, 255, 255, 0.8));
  color: color-mix(in srgb, var(--detail-accent, #6f7f72) 58%, #26342b);
  font-size: 10px;
  font-weight: 900;
  padding: 3px 7px;
  white-space: nowrap;
}

.directory-list-group ul {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0 10px 9px;
}

.directory-list-group li {
  align-items: start;
  border-top: 1px solid rgba(82, 96, 86, 0.1);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 7px 0;
}

.directory-list-group li strong {
  color: #22302a;
  display: block;
  font-size: 11.5px;
  font-weight: 900;
  line-height: 1.25;
}

.directory-list-group li span,
.directory-list-group li small {
  color: #667064;
  display: block;
  font-size: 9.5px;
  font-weight: 760;
  line-height: 1.35;
  margin-top: 2px;
}

.directory-list-group li a {
  border: 1px solid color-mix(in srgb, var(--detail-accent, #6f7f72) 22%, rgba(77, 90, 80, 0.14));
  border-radius: 999px;
  color: color-mix(in srgb, var(--detail-accent, #6f7f72) 58%, #27352b);
  font-size: 9.5px;
  font-weight: 900;
  padding: 4px 6px;
  text-decoration: none;
}

.directory-list-note {
  color: #6b746b;
  font-size: 10px;
  font-weight: 760;
  line-height: 1.4;
  margin: 8px 0 0;
}

.stacked-track {
  background: rgba(73, 87, 78, 0.1);
  border-radius: 999px;
  display: flex;
  height: 16px;
  overflow: hidden;
}

.stacked-track span {
  background: var(--segment-color, var(--detail-accent));
  display: block;
  min-width: 2px;
  width: var(--segment-width, 0%);
}

.stacked-legend {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.stacked-legend li {
  align-items: center;
  display: grid;
  gap: 5px;
  grid-template-columns: 8px minmax(0, 1fr) auto auto;
  min-width: 0;
}

.stacked-legend i {
  background: var(--segment-color, var(--detail-accent));
  border-radius: 50%;
  display: block;
  height: 8px;
  width: 8px;
}

.stacked-legend span,
.stacked-legend b,
.stacked-legend em {
  color: #627064;
  font-size: 9.5px;
  font-style: normal;
  font-weight: 760;
  min-width: 0;
  white-space: nowrap;
}

.stacked-legend span {
  color: #465246;
  font-weight: 830;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trend-line-svg {
  display: block;
  height: 78px;
  overflow: visible;
  width: 100%;
}

.trend-line-svg polygon {
  fill: color-mix(in srgb, var(--detail-accent, #6f7f72) 14%, transparent);
}

.trend-line-svg polyline {
  fill: none;
  stroke: color-mix(in srgb, var(--detail-accent, #6f7f72) 82%, #394c45);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.trend-line-svg circle {
  fill: #fffdf7;
  stroke: color-mix(in srgb, var(--detail-accent, #6f7f72) 82%, #394c45);
  stroke-width: 1.6;
}

.trend-line-labels,
.trend-line-values {
  display: flex;
  justify-content: space-between;
}

.trend-line-labels span,
.trend-line-values strong {
  color: #697267;
  font-size: 9.5px;
  font-weight: 760;
}

.trend-line-values strong {
  color: #27362b;
  font-size: 10px;
  font-weight: 860;
}

@media (max-width: 1040px) {
  .detail-visual-section {
    padding: 8px;
  }

  .detail-visual-grid {
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  }

  .detail-visual-card {
    padding: 7px;
  }

  .detail-visual-value,
  .detail-visual-card.is-featured .detail-visual-value {
    font-size: 14px;
  }

  .detail-chart-set,
  .donut-chart-body {
    grid-template-columns: 1fr;
  }

  .donut-ring {
    justify-self: center;
    width: min(148px, 62vw);
  }

  .age-pyramid-axis,
  .age-pyramid-row {
    grid-template-columns: 36px minmax(0, 1fr) 32px minmax(0, 1fr) 36px;
  }

  .age-pyramid-value {
    font-size: 8.5px;
  }

  .bar-list-row {
    grid-template-columns: minmax(62px, 0.8fr) minmax(0, 1fr) auto;
  }

  .stacked-legend {
    grid-template-columns: 1fr;
  }
}

/* Final information design pass: stronger hierarchy, less boxy panels, larger command navigation. */
.app-shell {
  grid-template-rows: 76px minmax(0, 1fr) 22px;
}

.topbar {
  gap: 10px;
  grid-template-columns: 210px minmax(0, 1fr);
  padding: 7px 10px;
}

.brand-block {
  gap: 7px;
  min-width: 0;
}

.brand-mark {
  border-radius: 7px;
  height: 24px;
  width: 24px;
}

.brand-copy {
  min-width: 0;
}

.brand-copy .eyebrow {
  font-size: 8.8px;
  font-weight: 820;
  letter-spacing: 0;
}

.brand-copy h1 {
  font-size: 12.8px;
  font-weight: 920;
  letter-spacing: 0;
  line-height: 1.1;
  max-width: 170px;
}

.command-strip {
  border-radius: 8px;
  gap: 5px;
  grid-template-columns: minmax(82px, 0.34fr) minmax(96px, 0.38fr) minmax(112px, 1fr) minmax(78px, auto) minmax(0, auto);
  grid-template-rows: 29px 34px;
  padding: 6px;
}

.nav-group {
  border-radius: 999px;
  gap: 5px;
  min-height: 27px;
  padding: 2px 6px;
}

.command-strip .nav-group-title,
.command-strip .nav-group legend,
.nav-group-title,
.nav-group legend {
  color: #26322b;
  font-size: 10.8px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
  min-width: max-content;
}

.command-strip select,
.command-strip input,
.command-strip .tool-button,
.category-chip,
.tool-button {
  font-size: 10.5px;
  font-weight: 820;
  letter-spacing: 0;
}

.command-strip select,
.command-strip input {
  border-radius: 999px;
  min-height: 25px;
  padding-inline: 8px;
}

.tool-button {
  border-radius: 999px;
  min-height: 25px;
  padding-inline: 8px;
}

.category-layer-list {
  gap: 4px;
}

.category-stack-group {
  grid-column: 1 / -1;
}

.category-chip {
  border-radius: 999px;
  height: 25px;
  min-width: 0;
  padding-inline: 7px;
}

.category-chip::before {
  height: 6px;
  width: 6px;
}

.inspector-title h2,
.report-panel-title h2,
.general-panel-title h2 {
  font-size: 17px;
  letter-spacing: 0;
}

.inspector-subtitle,
.report-panel-title p,
.general-panel-title p {
  font-size: 11.2px;
  line-height: 1.35;
}

.info-section h3,
.detail-visual-section-head strong,
.source-section h3 {
  font-size: 13.8px;
  font-weight: 920;
  letter-spacing: 0;
  line-height: 1.2;
}

.info-section p,
.metric-note,
.detail-visual-section-head span {
  font-size: 11.1px;
  line-height: 1.45;
}

.detail-visual-section {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--detail-accent, #6f7f72) 12%, transparent), transparent 36%),
    linear-gradient(180deg, rgba(255, 253, 247, 0.86), rgba(248, 250, 244, 0.42));
  border-top: 0;
  margin-top: 12px;
  padding: 13px 0 5px 15px;
  position: relative;
}

.detail-visual-section::before {
  background: linear-gradient(180deg, var(--detail-accent, #6f7f72), color-mix(in srgb, var(--detail-accent, #6f7f72) 40%, #f1c35a));
  border-radius: 999px;
  bottom: 8px;
  content: "";
  left: 0;
  position: absolute;
  top: 12px;
  width: 4px;
}

.detail-visual-section-head {
  align-items: end;
  border-bottom: 1px solid color-mix(in srgb, var(--detail-accent, #6f7f72) 16%, transparent);
  display: grid;
  gap: 3px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0 0 10px;
  padding: 0 0 8px;
}

.detail-visual-section-head span {
  color: #647066;
  font-weight: 760;
}

.detail-visual-grid {
  gap: 8px 10px;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  margin-bottom: 10px;
}

.detail-visual-card {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--detail-accent, #6f7f72) 18%, transparent), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 252, 0.74), rgba(246, 248, 241, 0.5));
  border: 0;
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--detail-accent, #6f7f72) 13%, transparent),
    inset 0 -1px 0 rgba(39, 54, 43, 0.08);
  gap: 3px;
  padding: 8px 10px 9px;
  position: relative;
}

.detail-visual-card::after {
  background: var(--detail-accent, #6f7f72);
  border-radius: 999px;
  content: "";
  height: 3px;
  left: 10px;
  opacity: 0.74;
  position: absolute;
  right: auto;
  top: 7px;
  width: 22px;
}

.detail-visual-card.is-featured {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--detail-accent, #6f7f72) 24%, #fffdf7), #fffdf7 62%),
    linear-gradient(180deg, #fffdf7, #f6f8f1);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--detail-accent, #6f7f72) 22%, transparent),
    0 8px 18px rgba(36, 48, 39, 0.08);
  min-height: 78px;
}

.detail-visual-label {
  color: #5f6d62;
  font-size: 11px;
  font-weight: 820;
  line-height: 1.2;
  padding-top: 7px;
}

.detail-visual-value {
  color: #1f2d25;
  font-size: 17px;
  font-weight: 940;
  letter-spacing: 0;
  line-height: 1.08;
}

.detail-visual-card.is-featured .detail-visual-value {
  font-size: 20px;
}

.detail-visual-detail {
  color: #69756d;
  font-size: 10.7px;
  font-weight: 720;
  line-height: 1.28;
}

.detail-chart-set {
  gap: 11px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.detail-chart {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--detail-accent, #6f7f72) 12%, transparent), transparent 44%),
    linear-gradient(180deg, rgba(255, 253, 247, 0.94), rgba(248, 250, 244, 0.76));
  border: 0;
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--detail-accent, #6f7f72) 15%, transparent),
    0 10px 24px rgba(34, 45, 38, 0.07);
  gap: 10px;
  min-height: 178px;
  overflow: hidden;
  padding: 12px;
  position: relative;
}

.detail-chart::before {
  background: linear-gradient(90deg, var(--detail-accent, #6f7f72), color-mix(in srgb, var(--detail-accent, #6f7f72) 45%, #f1c35a));
  content: "";
  height: 3px;
  left: 0;
  opacity: 0.78;
  position: absolute;
  right: 0;
  top: 0;
}

.detail-chart-title {
  align-items: baseline;
  border-bottom: 0;
  display: grid;
  gap: 3px 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0 0 2px;
}

.detail-chart-title strong {
  color: #253129;
  font-size: 13.3px;
  font-weight: 940;
  line-height: 1.18;
}

.detail-chart-title span,
.detail-chart-period,
.age-pyramid-axis span,
.trend-line-labels span {
  color: #68746b;
  font-size: 10.7px;
  font-weight: 760;
}

.detail-chart-period {
  background: color-mix(in srgb, var(--detail-accent, #6f7f72) 10%, #fffdf7);
  border-radius: 999px;
  padding: 2px 7px;
  white-space: nowrap;
}

.age-pyramid-chart {
  background:
    linear-gradient(90deg, rgba(76, 125, 184, 0.09), transparent 44%, rgba(190, 87, 128, 0.09)),
    linear-gradient(180deg, #fffdf7, #f8faf4);
}

.age-pyramid-row,
.age-pyramid-axis {
  grid-template-columns: 40px minmax(0, 1fr) 36px minmax(0, 1fr) 40px;
}

.age-pyramid-bar {
  height: 11px;
}

.age-pyramid-value {
  color: #536158;
  font-size: 9.6px;
  font-weight: 820;
}

.donut-chart-card {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--detail-accent, #6f7f72) 16%, transparent), transparent 48%),
    linear-gradient(45deg, rgba(241, 195, 90, 0.12), transparent 52%),
    linear-gradient(180deg, #fffdf7, #f8faf4);
}

.donut-chart-body {
  gap: 12px;
  grid-template-columns: 126px minmax(0, 1fr);
}

.donut-ring {
  filter: drop-shadow(0 8px 12px rgba(34, 45, 38, 0.1));
  width: 126px;
}

.donut-total strong {
  font-size: 15px;
}

.donut-legend span,
.bar-list-row span,
.bar-list-row strong,
.stacked-legend span,
.stacked-legend b,
.stacked-legend em,
.trend-line-values strong {
  font-size: 10.8px;
}

.bar-list-chart {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--detail-accent, #6f7f72) 10%, transparent), transparent 58%),
    linear-gradient(180deg, #fffdf7, #f8faf4);
}

.bar-list-rows {
  gap: 8px;
}

.bar-list-row {
  gap: 8px;
  grid-template-columns: minmax(82px, 0.9fr) minmax(0, 1.5fr) auto;
}

.bar-list-row i {
  background: rgba(42, 53, 45, 0.1);
  height: 10px;
}

.stacked-bar-chart {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--detail-accent, #6f7f72) 9%, #fffdf7), #f8faf4);
}

.stacked-track {
  box-shadow: inset 0 0 0 1px rgba(42, 53, 45, 0.08);
  height: 19px;
}

.trend-line-chart {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--detail-accent, #6f7f72) 8%, #fffdf7), #fffdf7 58%, #f8faf4);
}

.trend-line-svg {
  height: 92px;
}

.trend-line-svg polyline {
  stroke-width: 3;
}

.trend-line-svg circle {
  stroke-width: 1.9;
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-rows: 104px minmax(0, 1fr) 22px;
  }

  .topbar {
    gap: 7px;
    grid-template-columns: 172px minmax(0, 1fr);
    padding: 6px 7px;
  }

  .brand-copy h1 {
    font-size: 11.8px;
    max-width: 138px;
  }

  .command-strip {
    gap: 4px;
    grid-template-columns: minmax(72px, 0.32fr) minmax(86px, 0.34fr) minmax(104px, 1fr) minmax(70px, auto) minmax(0, auto);
    grid-template-rows: 28px 62px;
    padding: 5px;
  }

  .command-strip .nav-group-title,
  .command-strip .nav-group legend,
  .nav-group-title,
  .nav-group legend {
    font-size: 10.2px;
  }

  .command-strip select,
  .command-strip input,
  .command-strip .tool-button,
  .category-chip,
  .tool-button {
    font-size: 10.2px;
  }

  .category-stack-group {
    align-items: flex-start;
    border-radius: 8px;
    min-height: 58px;
    padding-block: 4px;
  }

  .category-layer-list {
    align-content: flex-start;
    flex-wrap: wrap;
    gap: 4px;
    overflow: hidden;
  }

  .category-chip {
    height: 24px;
    padding-inline: 5px;
  }
}

@media (max-width: 1040px) {
  .detail-visual-section {
    padding: 11px 0 4px 13px;
  }

  .detail-visual-grid {
    grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
  }

  .detail-visual-card {
    padding: 8px;
  }

  .detail-visual-value {
    font-size: 15.8px;
  }

  .detail-visual-card.is-featured .detail-visual-value {
    font-size: 18px;
  }

  .detail-chart-set,
  .donut-chart-body {
    grid-template-columns: 1fr;
  }

  .detail-chart {
    min-height: 166px;
    padding: 10px;
  }

  .donut-ring {
    justify-self: center;
    width: min(144px, 60vw);
  }

  .age-pyramid-axis,
  .age-pyramid-row {
    grid-template-columns: 36px minmax(0, 1fr) 32px minmax(0, 1fr) 36px;
  }

  .bar-list-row {
    grid-template-columns: minmax(68px, 0.82fr) minmax(0, 1fr) auto;
  }
}

/* Presentation polish: convert repeated boxes into briefing rails and open metric groups. */
.compact-region-head {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--detail-accent, #416f4a) 10%, #fffdf7), #fffdf7 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 242, 0.92));
  border: 0;
  border-radius: 8px;
  box-shadow:
    inset 4px 0 0 color-mix(in srgb, var(--detail-accent, #416f4a) 84%, #416f4a),
    0 8px 22px rgba(29, 43, 34, 0.07);
  padding: 14px 14px 12px;
}

.category-chip:has(input:checked) {
  background: color-mix(in srgb, var(--chip-color, #416f4a) 16%, #fffdf7);
  border-color: color-mix(in srgb, var(--chip-color, #416f4a) 58%, rgba(49, 95, 56, 0.28));
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--chip-color, #416f4a) 82%, #416f4a);
}

.region-title-line h2 {
  font-size: 24px;
  line-height: 1.06;
}

.region-title-line strong {
  background: color-mix(in srgb, var(--detail-accent, #416f4a) 13%, #fffdf7);
  color: color-mix(in srgb, var(--detail-accent, #416f4a) 68%, #27362b);
  font-size: 13.8px;
}

.compact-score-strip {
  background: linear-gradient(90deg, color-mix(in srgb, var(--detail-accent, #416f4a) 8%, transparent), transparent 72%);
  border-top: 1px solid rgba(43, 56, 46, 0.1);
  gap: 0;
  margin-top: 12px;
  padding-top: 8px;
}

.compact-score-strip span {
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(43, 56, 46, 0.1);
  border-radius: 0;
  color: #647066;
  font-size: 10.3px;
  font-weight: 820;
  padding: 4px 8px 3px;
  text-align: left;
}

.compact-score-strip span:first-child {
  border-left: 0;
}

.compact-score-strip strong {
  color: #1f2d25;
  display: block;
  font-size: 14.6px;
  line-height: 1.15;
  margin: 2px 0 0;
}

.inspector-data-bar {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  gap: 0;
  padding: 0;
}

.inspector-data-bar div,
.inspector-data-bar a {
  background: transparent;
  border-bottom: 1px solid rgba(43, 56, 46, 0.1);
  border-radius: 0;
  min-height: 34px;
  padding: 7px 4px;
}

.inspector-data-bar span {
  font-size: 9.8px;
}

.inspector-data-bar strong {
  font-size: 12px;
}

.detail-visual-grid {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--detail-accent, #6f7f72) 8%, transparent), transparent 58%),
    rgba(255, 253, 247, 0.46);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--detail-accent, #6f7f72) 10%, transparent);
  gap: 0;
  overflow: hidden;
  padding: 4px 0;
}

.detail-visual-card {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  min-height: 70px;
  padding: 9px 10px 9px 13px;
}

.detail-visual-card::after {
  bottom: 12px;
  height: auto;
  left: 0;
  opacity: 0.64;
  top: 12px;
  width: 3px;
}

.detail-visual-card:not(:first-child) {
  border-left: 1px solid rgba(43, 56, 46, 0.08);
}

.detail-visual-card.is-featured {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--detail-accent, #6f7f72) 16%, transparent), transparent 72%);
  border-radius: 0;
  box-shadow: none;
}

.detail-visual-card.is-missing {
  background: transparent;
}

.detail-visual-card.is-search-supplement {
  background: linear-gradient(90deg, rgba(196, 60, 60, 0.13), transparent 76%);
}

.detail-visual-label {
  font-size: 11.3px;
  padding-top: 0;
}

.detail-visual-value {
  font-size: 17.8px;
}

.detail-visual-card.is-featured .detail-visual-value {
  font-size: 21px;
}

.detail-visual-detail {
  font-size: 10.9px;
}

@media (max-width: 1100px) {
  .region-title-line h2 {
    font-size: 22px;
  }

  .compact-score-strip span {
    font-size: 10px;
    padding-inline: 7px;
  }

  .compact-score-strip strong {
    font-size: 13.5px;
  }
}

@media (max-width: 1040px) {
  .detail-visual-grid {
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  }

  .detail-visual-card {
    min-height: 66px;
  }
}

/* Final typography tuning: navigation and data text must read at decision-room distance. */
.command-strip .nav-group-title,
.command-strip .nav-group legend,
.nav-group-title,
.nav-group legend {
  font-size: 11.6px;
}

.command-strip select,
.command-strip input,
.command-strip .tool-button,
.category-chip,
.tool-button {
  font-size: 11.2px;
}

.command-strip select,
.command-strip input,
.tool-button {
  min-height: 27px;
}

.category-chip {
  height: 27px;
  padding-inline: 8px;
}

#inspectorContent {
  gap: 12px;
}

.section-title {
  font-size: 14.6px;
  font-weight: 920;
  letter-spacing: 0;
  line-height: 1.2;
}

.compact-score-strip span {
  font-size: 11.2px;
}

.compact-score-strip strong {
  font-size: 15.2px;
}

.inspector-data-bar span,
.data-row span,
.detail-table-row span,
.detail-visual-label,
.category-focus-head span,
.category-focus-grid span,
.category-status-strip span,
.category-focus-section-grid span {
  font-size: 11.8px;
}

.inspector-data-bar strong,
.data-row strong,
.detail-table-row strong.detail-value b,
.detail-visual-value {
  font-size: 14px;
}

.detail-table-row strong.detail-value-featured b {
  font-size: 15.5px;
}

.detail-table-row strong.detail-value small,
.detail-visual-detail,
.category-focus-grid small,
.category-status-strip small,
.category-focus-section-grid small,
.category-focus-note span,
.category-focus-note em {
  font-size: 11.2px;
}

.detail-chart-title strong,
.category-focus-head strong,
.evidence-flow-head strong,
.decision-evidence-head strong {
  font-size: 15px;
}

.detail-chart-title span,
.detail-chart-period,
.donut-legend span,
.bar-list-row span,
.bar-list-row strong,
.stacked-legend span,
.stacked-legend b,
.stacked-legend em,
.trend-line-values strong {
  font-size: 11.4px;
}

.category-focus-grid strong {
  font-size: 14px;
  font-weight: 880;
  line-height: 1.2;
}

.category-focus-section-head strong,
.category-data-status-head strong,
.category-focus-note strong {
  font-size: 13px;
}

.category-focus-section-grid strong,
.category-status-strip strong {
  font-size: 14px;
}

.detail-visual-card.is-featured .detail-visual-value {
  font-size: 15.4px;
  line-height: 1.14;
}

.detail-visual-card.is-featured {
  min-height: 70px;
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-rows: 108px minmax(0, 1fr) 22px;
  }

  .command-strip {
    grid-template-rows: 29px 64px;
  }

  .command-strip .nav-group-title,
  .command-strip .nav-group legend,
  .nav-group-title,
  .nav-group legend,
  .command-strip select,
  .command-strip input,
  .command-strip .tool-button,
  .category-chip,
  .tool-button {
    font-size: 11px;
  }

  .category-chip {
    height: 26px;
    padding-inline: 6px;
  }

  .section-title {
    font-size: 14.2px;
  }
}

details.detail-visual-section.is-collapsible-source {
  background: rgba(250, 249, 243, 0.58);
  margin-top: 14px;
  padding-bottom: 8px;
}

details.detail-visual-section.is-collapsible-source > summary {
  cursor: pointer;
  grid-template-columns: minmax(0, 1fr) auto auto;
  list-style: none;
}

details.detail-visual-section.is-collapsible-source > summary::-webkit-details-marker {
  display: none;
}

details.detail-visual-section.is-collapsible-source > summary::after {
  background: color-mix(in srgb, var(--detail-accent, #6f7f72) 10%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--detail-accent, #6f7f72) 18%, transparent);
  border-radius: 999px;
  color: #5c675e;
  content: "펼치기";
  font-size: 10.5px;
  font-weight: 820;
  line-height: 1;
  padding: 5px 8px;
}

details.detail-visual-section.is-collapsible-source[open] > summary::after {
  content: "접기";
}

details.detail-visual-section.is-collapsible-source:not([open]) .detail-chart,
details.detail-visual-section.is-collapsible-source:not([open]) .detail-chart-set,
details.detail-visual-section.is-collapsible-source:not([open]) .detail-visual-grid {
  display: none;
}

/* 100% zoom readability pass: keep typography at ordinary web reading scale. */
html,
body {
  font-size: 14px;
}

.app-shell {
  --inspector-width: clamp(420px, 33vw, 500px);
  grid-template-rows: 86px minmax(0, 1fr) 24px;
}

.app-shell.inspector-compact {
  --inspector-width: 380px;
}

.topbar {
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 8px;
  padding: 6px 8px;
}

.brand-copy .eyebrow,
.eyebrow {
  font-size: 10.5px;
  font-weight: 650;
}

.brand-copy h1,
h1 {
  font-size: 15px;
  font-weight: 760;
  line-height: 1.14;
  max-width: 178px;
}

.command-strip {
  gap: 6px;
  grid-template-rows: 32px 38px;
  padding: 7px;
}

.nav-group {
  min-height: 30px;
  padding: 3px 7px;
}

.command-strip .nav-group-title,
.command-strip .nav-group legend,
.nav-group-title,
.nav-group legend {
  font-size: 12.4px;
  font-weight: 720;
}

.command-strip select,
.command-strip input,
.command-strip .tool-button,
.category-chip,
.tool-button {
  font-size: 12.4px;
  font-weight: 680;
}

.command-strip select,
.command-strip input,
.command-strip .tool-button,
.tool-button {
  min-height: 30px;
  padding-inline: 10px;
}

.category-chip {
  height: 30px;
  padding-inline: 9px;
}

#inspectorContent,
#aiPanelContent,
.inspector,
.ai-panel {
  font-size: 14px;
}

.inspector-title h2,
.report-panel-title h2,
.general-panel-title h2 {
  font-size: 22px;
  font-weight: 780;
  line-height: 1.16;
}

.inspector-subtitle,
.report-panel-title p,
.general-panel-title p,
.info-section p,
.metric-note {
  font-size: 13px;
  font-weight: 520;
  line-height: 1.45;
}

.section-title,
.info-section h3,
.source-section h3,
.detail-visual-section-head strong,
.category-focus-section-head strong,
.category-data-status-head strong,
.category-focus-note strong {
  font-size: 15.5px;
  font-weight: 720;
  line-height: 1.25;
}

.region-title-line h2 {
  font-size: 25px;
  font-weight: 780;
}

.region-title-line strong {
  font-size: 15px;
  font-weight: 680;
}

.compact-score-strip span,
.inspector-data-bar span,
.data-row span,
.detail-table-row span,
.detail-visual-label,
.category-focus-head span,
.category-focus-grid span,
.category-status-strip span,
.category-focus-section-grid span,
.detail-chart-title span,
.detail-chart-period,
.donut-legend span,
.bar-list-row span,
.stacked-legend span,
.stacked-legend em {
  font-size: 12.6px;
  font-weight: 560;
  line-height: 1.34;
}

.compact-score-strip strong,
.inspector-data-bar strong,
.data-row strong,
.detail-table-row strong.detail-value b,
.detail-visual-value,
.category-focus-grid strong,
.category-status-strip strong,
.category-focus-section-grid strong,
.bar-list-row strong,
.stacked-legend b,
.trend-line-values strong {
  font-size: 15.5px;
  font-weight: 720;
  line-height: 1.22;
}

.detail-table-row strong.detail-value-featured b,
.detail-visual-card.is-featured .detail-visual-value {
  font-size: 16.2px;
  font-weight: 740;
}

.detail-table-row strong.detail-value small,
.detail-visual-detail,
.category-focus-grid small,
.category-status-strip small,
.category-focus-section-grid small,
.category-focus-note span,
.category-focus-note em,
.detail-chart-title small,
.detail-chart-foot {
  font-size: 12.2px;
  font-weight: 500;
  line-height: 1.42;
}

.detail-chart-title strong,
.category-focus-head strong,
.evidence-flow-head strong,
.decision-evidence-head strong {
  font-size: 16px;
  font-weight: 730;
}

.category-focus-head small,
.evidence-flow-head small {
  font-size: 13px;
  line-height: 1.42;
}

.category-focus-grid > div,
.category-status-strip > div,
.category-focus-section-grid > div {
  padding: 9px 10px;
}

.detail-visual-card {
  min-height: 76px;
  padding: 11px 12px 11px 14px;
}

details.detail-visual-section.is-collapsible-source > summary::after {
  font-size: 12px;
  font-weight: 650;
}

@media (max-width: 1100px) {
  .app-shell {
    --inspector-width: 390px;
    grid-template-rows: 116px minmax(0, 1fr) 24px;
  }

  .topbar {
    grid-template-columns: 166px minmax(0, 1fr);
  }

  .brand-copy h1,
  h1 {
    font-size: 13.5px;
    max-width: 156px;
  }

  .command-strip {
    grid-template-rows: 34px 66px;
  }

  .command-strip .nav-group-title,
  .command-strip .nav-group legend,
  .nav-group-title,
  .nav-group legend,
  .command-strip select,
  .command-strip input,
  .command-strip .tool-button,
  .category-chip,
  .tool-button {
    font-size: 12px;
  }

  .category-chip {
    height: 29px;
    padding-inline: 7px;
  }
}

/* Navigation capacity: typography was enlarged, so the command bar needs real height. */
.app-shell {
  grid-template-rows: 112px minmax(0, 1fr) 24px;
}

.topbar {
  align-items: start;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 112px;
  overflow: hidden;
}

.command-strip {
  align-content: start;
  grid-template-rows: 34px 52px;
  min-height: 98px;
}

.category-stack-group {
  min-height: 42px;
}

.category-layer-list {
  min-height: 34px;
  padding-bottom: 2px;
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-rows: 148px minmax(0, 1fr) 24px;
  }

  .topbar {
    grid-template-columns: 180px minmax(0, 1fr);
    min-height: 148px;
  }

  .command-strip {
    grid-template-rows: 36px 82px;
    min-height: 128px;
  }

  .category-stack-group {
    min-height: 76px;
  }

  .category-layer-list {
    align-content: flex-start;
    flex-wrap: wrap;
    min-height: 68px;
    overflow: hidden;
  }
}

/* Clarity pass: stronger contrast for the dashboard and the GIS canvas. */
:root {
  --bg: #eef2ec;
  --panel: #fffefa;
  --surface: #ffffff;
  --text: #111a15;
  --muted: #37483f;
  --faint: #5f6d65;
  --line: #c3cec0;
  --hairline: rgba(52, 71, 57, 0.22);
  --soft-shadow: 0 1px 2px rgba(20, 32, 24, 0.08), 0 10px 24px rgba(20, 32, 24, 0.09);
}

.topbar,
.inspector,
.ai-panel,
.modal-content,
.general-status-panel,
.deep-report-panel {
  color: var(--text);
}

.map-stage {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(239, 244, 237, 0.92)),
    #eef3eb;
}

#strategyMap {
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.82), transparent 46%),
    linear-gradient(180deg, #f3f6f1 0%, #e7eee6 100%);
}

.ocean-plane {
  fill: #eef4ec;
}

.grid-plane path {
  stroke: rgba(68, 88, 73, 0.12);
  stroke-width: 0.9;
}

.outer-boundary-layer path {
  stroke: rgba(40, 70, 47, 0.44);
  stroke-width: 1.45;
}

.region-polygon {
  fill-opacity: 0.98;
  stroke: rgba(255, 255, 250, 0.96);
  stroke-width: 0.9;
  filter: saturate(1.08) contrast(1.04);
}

.app-shell.base-map-mode .region-polygon {
  stroke: rgba(51, 69, 56, 0.58);
  stroke-width: 1;
}

.region-polygon:hover {
  stroke: rgba(19, 42, 25, 0.86);
  stroke-width: 1.45;
  filter: brightness(1.04) saturate(1.14) contrast(1.06);
}

.region-polygon.is-selected {
  stroke: #163d23;
  stroke-width: 1.65;
  filter: brightness(1.05) saturate(1.16) contrast(1.08);
}

.region-polygon.is-area-member {
  stroke: #163d23;
  stroke-width: 1.55;
}

.region-polygon.is-region-muted,
.region-polygon.is-area-muted {
  opacity: 0.18;
}

.selection-outline-halo {
  stroke: rgba(255, 255, 248, 0.98);
  stroke-width: 5.2;
}

.selection-outline-core {
  stroke: #153c23;
  stroke-width: 1.9;
}

.label-layer text {
  fill: #0f2117;
  font-size: 10.4px;
  font-weight: 780;
  stroke: rgba(255, 255, 248, 0.98);
  stroke-width: 3.6px;
}

.label-layer text.is-selected-label {
  fill: #062413;
  font-size: 12px;
  font-weight: 840;
  stroke-width: 4px;
}

.label-layer text.is-region-muted,
.label-layer text.is-area-muted {
  opacity: 0.18;
}

.strategic-area-label text {
  fill: #122317;
  font-size: 22px;
  font-weight: 820;
  stroke: rgba(255, 255, 248, 0.96);
  stroke-width: 5px;
}

.strategic-area-label .strategic-area-count {
  font-size: 12px;
  stroke-width: 3.6px;
}

.cartogram-bubble {
  fill-opacity: 0.96;
  stroke: rgba(255, 255, 250, 0.98);
  stroke-width: 1.55;
  filter: drop-shadow(0 6px 10px rgba(18, 32, 24, 0.22));
}

.cartogram-cell:hover .cartogram-bubble,
.cartogram-cell.is-selected .cartogram-bubble {
  stroke: #132819;
  stroke-width: 2.2;
}

.cartogram-name,
.cartogram-value {
  stroke: rgba(255, 255, 248, 0.98);
  stroke-width: 4px;
}

.cartogram-name {
  fill: #0f1f16;
  font-size: 10.8px;
  font-weight: 790;
}

.cartogram-value {
  fill: #1b2c20;
  font-size: 12px;
  font-weight: 800;
}

.transport-line.casing.highway {
  stroke-width: 5.4;
}

.transport-line.surface.highway {
  stroke-width: 2.7;
}

.transport-line.surface.nationalRoad,
.transport-line.surface.rail {
  stroke-width: 1.8;
}

.command-metrics,
.situation-strip,
.map-status,
.map-mode-switch {
  background: rgba(255, 255, 250, 0.96);
  border-color: rgba(46, 70, 52, 0.24);
  box-shadow: 0 8px 20px rgba(20, 32, 24, 0.11);
}

.command-metrics span,
.situation-strip span,
.map-status,
.map-mode-switch button,
.transport-legend-head span,
.transport-legend-row {
  color: #31433a;
  font-size: 12px;
  font-weight: 620;
}

.command-metrics strong,
.situation-strip strong,
.transport-legend-head strong {
  color: #111d16;
  font-size: 15px;
  font-weight: 760;
}

.compact-region-head,
.category-focus-card,
.category-detail-card,
.framework-card,
.report-readiness-card,
.evidence-source-board,
.decision-evidence-card {
  background: rgba(255, 255, 252, 0.98);
  box-shadow:
    inset 0 0 0 1px rgba(44, 65, 50, 0.12),
    0 9px 22px rgba(20, 32, 24, 0.08);
}

.detail-visual-grid,
.category-focus-grid > div,
.category-status-strip > div,
.category-focus-section-grid > div,
.strategic-area-overview-grid div,
.strategic-area-metrics div,
.inspector-data-bar div,
.data-row {
  background: rgba(255, 255, 252, 0.92);
  border-color: rgba(49, 70, 55, 0.18);
}

.detail-visual-label,
.detail-visual-detail,
.category-focus-grid small,
.category-status-strip small,
.category-focus-section-grid small,
.strategic-area-overview-grid span,
.strategic-area-overview-grid small {
  color: #37483f;
}

.detail-visual-value,
.category-focus-grid strong,
.category-status-strip strong,
.category-focus-section-grid strong,
.strategic-area-overview-grid strong {
  color: #111c15;
}

.detail-chart {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--detail-accent, #557454) 10%, transparent), transparent 42%),
    rgba(255, 255, 252, 0.98);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--detail-accent, #557454) 17%, transparent),
    0 7px 18px rgba(20, 32, 24, 0.06);
}

/* 2026-05-05 command/readability correction */
.topbar {
  display: grid;
  grid-template-columns: minmax(286px, 340px) minmax(0, 1fr);
  align-items: stretch;
  gap: 14px;
  min-height: 96px;
  padding: 12px 16px;
}

.brand-block {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 72px;
  padding: 12px 14px 12px 16px;
  border-left: 5px solid #315f42;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(49, 95, 66, 0.09), rgba(255, 255, 252, 0.96) 52%),
    rgba(255, 255, 252, 0.98);
  box-shadow: inset 0 0 0 1px rgba(34, 58, 42, 0.13);
}

.brand-block > div,
.brand-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.brand-block .eyebrow,
.brand-copy .eyebrow {
  margin: 0;
  color: #476154;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.25;
}

.brand-block h1,
.brand-copy h1 {
  margin: 0;
  color: #102019;
  font-size: 21px;
  font-weight: 830;
  letter-spacing: 0;
  line-height: 1.18;
  word-break: keep-all;
}

.command-strip.command-line {
  min-width: 0;
  align-content: center;
}

.general-status-dialog {
  font-size: 15px;
}

.general-status-head h2 {
  font-size: 22px;
  line-height: 1.25;
}

.general-status-kicker,
.general-status-head p {
  font-size: 13px;
}

.general-status-table {
  font-size: 15px;
}

.general-status-table thead th {
  font-size: 13px;
}

.general-status-table tbody th,
.general-status-table tbody td {
  padding: 11px 12px;
}

.general-status-rowhead strong {
  font-size: 15px;
}

.general-status-rowhead span,
.general-status-cell small {
  font-size: 12px;
}

.general-status-cell strong {
  font-size: 17px;
  font-weight: 780;
}

.general-status-group-row strong {
  font-size: 14px;
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .brand-block {
    min-height: 58px;
  }
}

/* Keep non-selected areas legible while still showing the active focus. */
.region-polygon.is-region-muted,
.region-polygon.is-area-muted,
.label-layer text.is-region-muted,
.label-layer text.is-area-muted,
.cartogram-cell.is-region-muted,
.cartogram-cell.is-area-muted {
  opacity: 0.56;
}

/* 2026-05-05 non-map typography system
   Scope: command bar, inspector, AI panel, and report/status dialogs only. */
.topbar,
.inspector,
.ai-panel,
.general-status-dialog,
.deep-report-dialog {
  --ui-xs: 12px;
  --ui-sm: 13px;
  --ui-base: 15px;
  --ui-md: 16px;
  --ui-lg: 18px;
  --ui-xl: 22px;
  --ui-xxl: 25px;
  --ui-line: 1.5;
  --ui-tight: 1.22;
  color: #111a15;
  font-size: var(--ui-base);
  line-height: var(--ui-line);
  letter-spacing: 0;
}

.app-shell {
  grid-template-rows: minmax(124px, auto) minmax(0, 1fr) 24px;
}

.topbar {
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 14px;
  min-height: 124px;
  padding: 14px 16px;
}

.brand-block {
  min-height: 88px;
  padding: 13px 16px;
}

.brand-block .eyebrow,
.brand-copy .eyebrow {
  color: #3f5449;
  font-size: var(--ui-xs);
  font-weight: 760;
  line-height: 1.25;
}

.brand-block h1,
.brand-copy h1 {
  max-width: none;
  color: #101a15;
  font-size: var(--ui-xl);
  font-weight: 820;
  line-height: 1.18;
  word-break: keep-all;
}

.command-strip {
  align-content: start;
  gap: 8px;
  grid-template-rows: minmax(38px, auto) minmax(44px, auto);
  min-height: 96px;
  padding: 9px;
}

.nav-group {
  min-height: 34px;
  padding: 4px 8px;
}

.command-strip .nav-group-title,
.command-strip .nav-group legend,
.nav-group-title,
.nav-group legend {
  color: #25332b;
  font-size: var(--ui-sm);
  font-weight: 760;
  line-height: 1.2;
}

.command-strip select,
.command-strip input,
.command-strip .tool-button,
.category-chip,
.tool-button {
  min-height: 34px;
  color: #18231d;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.2;
}

.command-strip select,
.command-strip input,
.command-strip .tool-button,
.tool-button {
  padding-inline: 11px;
}

.category-chip {
  height: 34px;
  padding-inline: 10px;
}

.category-layer-list {
  gap: 6px;
}

.inspector,
#inspectorContent {
  color: #111a15;
  font-size: var(--ui-base);
  line-height: var(--ui-line);
}

#inspectorContent {
  gap: 12px;
  padding: 14px 15px 88px;
}

.region-head,
.compact-region-head,
.category-detail-card,
.category-focus-card,
.framework-card,
.report-readiness-card,
.decision-evidence-card,
.evidence-source-board {
  font-size: var(--ui-base);
  line-height: var(--ui-line);
}

.inspector-title h2,
.report-panel-title h2,
.general-panel-title h2,
.region-title-line h2,
.region-title-group h2 {
  color: #101a15;
  font-size: var(--ui-xxl);
  font-weight: 760;
  line-height: var(--ui-tight);
}

.region-title-line strong,
.grade-badge {
  font-size: var(--ui-sm);
  font-weight: 720;
}

.region-kicker,
.inspector-subtitle,
.report-panel-title p,
.general-panel-title p,
.info-section p,
.metric-note {
  color: #46564d;
  font-size: var(--ui-sm);
  font-weight: 520;
  line-height: 1.45;
}

.section-title,
.info-section h3,
.source-section h3,
.detail-visual-section-head strong,
.category-focus-section-head strong,
.category-data-status-head strong,
.category-focus-note strong {
  color: #16231c;
  font-size: var(--ui-lg);
  font-weight: 720;
  line-height: 1.28;
}

.detail-visual-section-head span,
.category-detail-card summary small,
.detail-table-row strong.detail-value small,
.detail-visual-detail,
.category-focus-grid small,
.category-status-strip small,
.category-focus-section-grid small,
.category-focus-note span,
.category-focus-note em,
.detail-chart-title small,
.detail-chart-foot,
.data-row em {
  color: #5a665f;
  font-size: var(--ui-sm);
  font-weight: 500;
  line-height: 1.42;
}

.category-detail-card summary {
  min-height: 48px;
  padding: 12px 13px;
}

.category-detail-card summary span,
.compact-score-strip span,
.inspector-data-bar span,
.data-row span,
.detail-table-row span,
.detail-visual-label,
.category-focus-head span,
.category-focus-grid span,
.category-status-strip span,
.category-focus-section-grid span,
.detail-chart-title span,
.detail-chart-period,
.donut-legend span,
.bar-list-row span,
.stacked-legend span,
.stacked-legend em {
  color: #3e4f45;
  font-size: 14px;
  font-weight: 560;
  line-height: 1.34;
}

.category-detail-card summary strong,
.compact-score-strip strong,
.inspector-data-bar strong,
.data-row strong,
.detail-table-row strong.detail-value b,
.detail-visual-value,
.category-focus-grid strong,
.category-status-strip strong,
.category-focus-section-grid strong,
.bar-list-row strong,
.stacked-legend b,
.trend-line-values strong {
  color: #111a15;
  font-size: 17px;
  font-weight: 720;
  line-height: 1.22;
}

.detail-table-row strong.detail-value-featured b,
.detail-visual-card.is-featured .detail-visual-value {
  font-size: 20px;
  font-weight: 760;
}

.detail-visual-card {
  min-height: 86px;
  padding: 13px 14px 13px 16px;
}

.detail-chart-head strong,
.detail-chart-title strong,
.category-focus-head strong,
.evidence-flow-head strong,
.decision-evidence-head strong {
  font-size: var(--ui-md);
  font-weight: 720;
  line-height: 1.28;
}

.detail-chart-head span,
.detail-chart-head b,
.age-pyramid-axis,
.age-pyramid-row b,
.age-pyramid-value,
.donut-ring span,
.donut-legend b,
.donut-legend em,
.bar-list-row span,
.bar-list-row strong {
  font-size: var(--ui-sm);
}

.donut-ring strong {
  font-size: var(--ui-md);
}

.data-row {
  min-height: 42px;
  padding: 9px 10px;
}

.empty-state {
  color: #405148;
  font-size: var(--ui-md);
  line-height: 1.5;
}

.ai-panel,
#aiPanelContent {
  color: #111a15;
  font-size: var(--ui-base);
  line-height: var(--ui-line);
}

#aiPanelContent {
  gap: 11px;
  padding: 14px 14px 100px;
}

.ai-head,
.ai-message,
.ai-input,
.ai-context-grid div {
  font-size: var(--ui-base);
  line-height: var(--ui-line);
}

.ai-head {
  padding: 13px;
}

.ai-head span,
.ai-message span {
  color: #215f6b;
  font-size: var(--ui-sm);
  font-weight: 780;
  line-height: 1.25;
}

.ai-head strong {
  color: #111a15;
  font-size: var(--ui-xl);
  font-weight: 780;
  line-height: var(--ui-tight);
}

.ai-head small {
  color: #42534a;
  font-size: var(--ui-base);
  line-height: 1.45;
}

.ai-context-grid {
  gap: 7px;
}

.ai-context-grid div {
  padding: 10px;
}

.ai-context-grid span {
  color: #52635a;
  font-size: var(--ui-sm);
  font-weight: 650;
}

.ai-context-grid strong {
  color: #183c42;
  font-size: var(--ui-lg);
  font-weight: 760;
  line-height: 1.22;
}

.ai-message {
  padding: 11px 12px;
}

.ai-message p {
  color: #16231c;
  font-size: var(--ui-base);
  line-height: 1.56;
}

.ai-prompt-stack button {
  min-height: 32px;
  font-size: 14px;
}

.ai-input {
  gap: 8px;
  padding: 10px;
}

.ai-input textarea {
  min-height: 96px;
  font-size: var(--ui-base);
  line-height: 1.5;
}

.ai-input button {
  min-height: 36px;
  font-size: var(--ui-base);
  font-weight: 720;
}

.general-status-dialog,
.deep-report-dialog {
  font-size: var(--ui-base);
  line-height: var(--ui-line);
}

/* Simple custom Dify API chat UI. */
#aiPanelContent {
  box-sizing: border-box;
  height: 100%;
  min-height: 0;
  padding: 14px;
  overflow: hidden;
}

.ai-panel {
  overflow: hidden;
}

.ai-simple-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  min-height: 0;
}

.ai-simple-thread {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(23, 51, 65, 0.1);
  border-radius: 14px;
  background: #f8faf9;
}

.ai-simple-thread .ai-chat-message {
  max-width: 94%;
  padding: 12px 13px;
  border: 1px solid rgba(28, 45, 38, 0.1);
  border-radius: 16px;
  background: #ffffff;
  color: #131d17;
  box-shadow: 0 6px 16px rgba(19, 35, 44, 0.06);
}

.ai-simple-thread .ai-chat-message.assistant {
  align-self: flex-start;
  border-top-left-radius: 6px;
}

.ai-simple-thread .ai-chat-message.user {
  align-self: flex-end;
  border-color: rgba(28, 100, 242, 0.16);
  border-top-right-radius: 6px;
  background: #1c64f2;
  color: #ffffff;
}

.ai-simple-thread .ai-chat-message p {
  margin: 0;
  font-size: 14.5px;
  font-weight: 520;
  line-height: 1.62;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.ai-simple-thread .ai-chat-message.user .ai-message-meta span {
  color: rgba(255, 255, 255, 0.72);
}

.ai-markdown {
  font-size: 14.5px;
  line-height: 1.62;
}

.ai-simple-thread .ai-chat-message .ai-markdown p {
  margin: 0 0 10px;
}

.ai-simple-thread .ai-chat-message .ai-markdown p:last-child,
.ai-simple-thread .ai-chat-message .ai-markdown ul:last-child,
.ai-simple-thread .ai-chat-message .ai-markdown ol:last-child,
.ai-simple-thread .ai-chat-message .ai-markdown .ai-markdown-table-wrap:last-child {
  margin-bottom: 0;
}

.ai-markdown strong {
  font-weight: 820;
}

.ai-markdown code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(20, 35, 28, 0.08);
  color: #102018;
  font-size: 0.92em;
}

.ai-markdown h1,
.ai-markdown h2,
.ai-markdown h3,
.ai-markdown h4 {
  margin: 13px 0 7px;
  color: #111a15;
  font-size: 15px;
  font-weight: 820;
  line-height: 1.3;
}

.ai-markdown ul,
.ai-markdown ol {
  margin: 0 0 10px;
  padding-left: 20px;
}

.ai-markdown li {
  margin: 4px 0;
}

.ai-markdown-table-wrap {
  max-width: 100%;
  margin: 8px 0 12px;
  overflow-x: auto;
  border: 1px solid rgba(23, 51, 65, 0.12);
  border-radius: 10px;
  background: #ffffff;
}

.ai-markdown-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  color: #121d17;
  font-size: 13px;
  line-height: 1.45;
}

.ai-markdown-table th,
.ai-markdown-table td {
  padding: 8px 9px;
  border-bottom: 1px solid rgba(23, 51, 65, 0.1);
  vertical-align: top;
}

.ai-markdown-table th {
  background: #f1f6f3;
  color: #213129;
  font-size: 12.5px;
  font-weight: 820;
  white-space: nowrap;
}

.ai-markdown-table tbody tr:last-child td {
  border-bottom: 0;
}

.ai-chat-message.user .ai-markdown code {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.ai-message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.ai-message-meta span {
  margin-bottom: 0;
  color: #5d6b62;
  font-size: 12px;
  font-weight: 720;
}

.ai-copy-button {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(28, 100, 242, 0.18);
  border-radius: 999px;
  background: #edf5ff;
  color: #174ea6;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

.ai-copy-button:hover {
  background: #dcecff;
}

.ai-chat-message.is-loading {
  width: 78px;
}

.ai-chat-message.is-loading > span {
  display: block;
  margin-bottom: 6px;
  color: #5d6b62;
  font-size: 12px;
  font-weight: 720;
}

.ai-chat-message.is-loading p {
  display: flex;
  gap: 5px;
}

.ai-chat-message.is-loading i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #1c64f2;
  animation: aiTypingDot 0.95s infinite ease-in-out;
}

.ai-chat-message.is-loading i:nth-child(2) {
  animation-delay: 0.12s;
}

.ai-chat-message.is-loading i:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes aiTypingDot {
  0%,
  80%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.ai-error-banner {
  padding: 10px 12px;
  border: 1px solid rgba(174, 42, 42, 0.18);
  border-radius: 12px;
  background: #fff4f4;
  color: #8b1f1f;
  font-size: 13px;
  font-weight: 680;
  line-height: 1.45;
}

.ai-simple-composer {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px;
  gap: 8px;
  z-index: 3;
  box-sizing: border-box;
  width: 100%;
  padding: 9px;
  border: 1px solid rgba(23, 51, 65, 0.12);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(18, 35, 42, 0.08);
}

.ai-simple-composer textarea {
  min-width: 0;
  width: 100%;
  min-height: 78px;
  max-height: 160px;
  resize: vertical;
  border: 1px solid rgba(23, 51, 65, 0.14);
  border-radius: 10px;
  padding: 10px 11px;
  color: #111a15;
  font-size: 14.5px;
  line-height: 1.5;
  outline: none;
}

.ai-simple-composer textarea:focus {
  border-color: rgba(28, 100, 242, 0.48);
  box-shadow: 0 0 0 3px rgba(28, 100, 242, 0.12);
}

.ai-simple-composer button {
  align-self: stretch;
  border: 0;
  border-radius: 10px;
  background: #1c64f2;
  color: #ffffff;
  font-size: 14px;
  font-weight: 820;
  cursor: pointer;
}

.ai-simple-composer button:disabled {
  cursor: wait;
  opacity: 0.62;
}

@media (max-width: 1040px) {
  .ai-simple-thread {
    max-height: none;
  }

  .ai-simple-composer {
    grid-template-columns: 1fr;
  }

  .ai-simple-composer button {
    min-height: 38px;
  }
}



.general-status-head h2,
.deep-report-head h2,
.deep-report-content h1 {
  font-size: var(--ui-xxl);
  font-weight: 760;
  line-height: var(--ui-tight);
}

.general-status-kicker,
.general-status-head p,
.deep-report-kicker,
.deep-report-content p,
.deep-report-content blockquote,
.deep-report-content ul,
.deep-report-content ol {
  font-size: var(--ui-base);
  line-height: 1.58;
}

.general-status-table,
.deep-report-doc-table {
  font-size: 14px;
  line-height: 1.42;
}

.general-status-table thead th,
.deep-report-doc-table th {
  font-size: var(--ui-sm);
}

.general-status-rowhead strong,
.general-status-column-head strong,
.deep-report-content h3 {
  font-size: var(--ui-lg);
  line-height: 1.3;
}

.general-status-cell strong {
  font-size: var(--ui-lg);
  font-weight: 740;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-rows: minmax(156px, auto) minmax(0, 1fr) 24px;
  }

  .topbar {
    grid-template-columns: 1fr;
    min-height: 156px;
  }

  .brand-block {
    min-height: auto;
  }

  .command-strip {
    grid-template-rows: minmax(38px, auto) minmax(70px, auto);
    min-height: 112px;
  }

  .category-layer-list {
    align-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .topbar,
  .inspector,
  .ai-panel,
  .general-status-dialog,
  .deep-report-dialog {
    --ui-base: 14px;
    --ui-md: 15px;
    --ui-lg: 17px;
    --ui-xl: 20px;
    --ui-xxl: 23px;
  }
}

/* 2026-05-05 brand title correction: keep the dashboard name on one line. */
.topbar {
  grid-template-columns: minmax(380px, 400px) minmax(0, 1fr);
}

.brand-block {
  justify-content: flex-start;
  min-width: 0;
  padding-inline: 18px;
}

.brand-block > div {
  width: 100%;
  min-width: 0;
}

.brand-block h1,
.brand-copy h1 {
  max-width: 100%;
  overflow: visible;
  color: #0f1914;
  font-size: 19.5px;
  font-weight: 820;
  line-height: 1.16;
  text-overflow: clip;
  white-space: nowrap;
}

.brand-block .eyebrow,
.brand-copy .eyebrow {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1280px) {
  .topbar {
    grid-template-columns: minmax(360px, 380px) minmax(0, 1fr);
  }

  .brand-block h1,
  .brand-copy h1 {
    font-size: 18.5px;
  }
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .brand-block h1,
  .brand-copy h1 {
    font-size: 20px;
  }
}

@media (max-width: 720px) {
  .brand-block h1,
  .brand-copy h1 {
    font-size: 17px;
  }
}

/* 2026-05-05 score/rank readability correction: keep table content at normal web reading size. */
.score-summary-card {
  gap: 12px;
  padding: 13px;
}

.score-summary-head {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  padding-bottom: 10px;
}

.score-summary-head strong {
  color: #101a15;
  font-size: 18px;
  font-weight: 780;
  line-height: 1.24;
}

.score-row-head {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  padding-bottom: 8px;
}

.score-row-head strong,
.score-row-head span {
  font-size: 15px;
  line-height: 1.3;
}

.score-row-head span {
  max-width: none;
  white-space: normal;
}

.score-summary-row {
  gap: 9px;
  padding: 10px;
  border-radius: 10px;
}

.score-summary-head strong,
.score-row-head strong,
.score-row-head span,
.indicator-score-row > span,
.indicator-score-row > em,
.indicator-score-row > strong {
  overflow: visible;
  text-overflow: clip;
}

.rank-pill,
.rank-chip {
  min-height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  color: #183e28;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.15;
}

.indicator-score-header {
  display: none;
}

.indicator-score-list.compact,
.score-row-list {
  gap: 8px;
  border: 0;
  background: transparent;
}

.indicator-score-list.compact .indicator-score-row,
.score-row-list > .indicator-score-row,
.indicator-score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(96px, auto) auto auto;
  grid-template-areas:
    "label value score help"
    "label value yoy rank";
  align-items: center;
  gap: 5px 10px;
  min-height: 64px;
  padding: 11px 12px;
  border: 1px solid rgba(48, 70, 54, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 252, 0.96);
  box-shadow: 0 1px 2px rgba(20, 32, 24, 0.04);
}

.indicator-score-row:nth-child(odd) {
  background: rgba(248, 251, 246, 0.96);
}

.indicator-score-row > span {
  grid-area: label;
  color: #1c2a21;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.34;
  white-space: normal;
}

.indicator-score-row > em {
  grid-area: value;
  max-width: 150px;
  color: #132018;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.32;
  text-align: right;
  white-space: normal;
}

.indicator-score-row > strong {
  grid-area: score;
  min-width: 44px;
  color: #184327;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.16;
  text-align: right;
}

.indicator-score-row > .yoy-chip {
  grid-area: yoy;
  color: #526158;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.2;
  text-align: right;
}

.indicator-score-row > .rank-chip {
  grid-area: rank;
  justify-self: end;
  white-space: nowrap;
}

.indicator-score-row > .indicator-help {
  grid-area: help;
  justify-self: end;
}

.indicator-score-row .score-help summary,
.score-help.mini summary {
  width: 25px;
  height: 25px;
  font-size: 13px;
}

.compact-score-strip {
  gap: 8px;
}

.compact-score-strip span {
  min-height: 46px;
  padding: 8px 9px;
  font-size: 14px;
  line-height: 1.32;
  text-align: left;
}

.compact-score-strip strong {
  display: block;
  margin-top: 3px;
  font-size: 18px;
  line-height: 1.16;
}

.core-score-card,
.metric-card {
  min-height: 72px;
  padding: 12px;
}

.core-score-card span,
.metric-card span {
  color: #33453a;
  font-size: 14px;
  font-weight: 660;
  line-height: 1.32;
}

.core-score-card strong,
.metric-card strong {
  margin-top: 5px;
  color: #101a15;
  font-size: 20px;
  font-weight: 760;
  line-height: 1.16;
}

.core-score-card small,
.metric-card small {
  margin-top: 5px;
  color: #5a675f;
  font-size: 13px;
  line-height: 1.38;
  white-space: normal;
}

.rank-row,
.compare-row {
  min-height: 42px;
  font-size: 14px;
  line-height: 1.35;
}

.rank-row strong,
.compare-row strong {
  font-size: 15px;
}

@media (max-width: 1240px) {
  .score-summary-card {
    padding: 11px;
  }

  .indicator-score-list.compact .indicator-score-row,
  .score-row-list > .indicator-score-row,
  .indicator-score-row {
    grid-template-columns: minmax(0, 1fr) minmax(82px, auto) auto;
    grid-template-areas:
      "label value help"
      "score yoy rank";
    min-height: 72px;
    gap: 6px 8px;
  }

  .indicator-score-row > span,
  .indicator-score-row > em {
    font-size: 13.5px;
  }

  .indicator-score-row > strong {
    justify-self: start;
    font-size: 15px;
    text-align: left;
  }
}

/* 2026-05-05 inspector readability patch: risk signals must be readable at 100% zoom. */
#inspectorContent .section-title {
  margin: 12px 0 0;
  color: #17241d;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.28;
}

#inspectorContent .diagnosis.risk-list {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(47, 67, 53, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 252, 0.98);
  color: #142019;
  font-size: 14px;
  line-height: 1.42;
}

#inspectorContent .risk-item {
  display: grid;
  grid-template-columns: minmax(112px, 0.72fr) minmax(0, 1fr) minmax(42px, auto);
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(47, 67, 53, 0.1);
  font-size: 14px;
}

#inspectorContent .risk-item:last-child {
  border-bottom: 0;
}

#inspectorContent .risk-item span {
  min-width: 0;
  color: #23332a;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.32;
  word-break: keep-all;
}

#inspectorContent .risk-item strong {
  color: #102018;
  font-size: 17px;
  font-weight: 820;
  line-height: 1.1;
  text-align: right;
}

#inspectorContent .risk-item .bar-track {
  height: 12px;
  border-radius: 999px;
  background: #e4ebe5;
}

#inspectorContent .risk-item .bar-fill {
  border-radius: 999px;
  background: linear-gradient(90deg, #3f6e4d, #87a86f);
}

@media (max-width: 1240px) {
  #inspectorContent .risk-item {
    grid-template-columns: minmax(96px, 0.68fr) minmax(0, 1fr) minmax(38px, auto);
    gap: 9px;
  }

  #inspectorContent .risk-item span {
    font-size: 13.5px;
  }

  #inspectorContent .risk-item strong {
    font-size: 16px;
  }
}

/* 2026-05-05 inspector professional readability pass.
   Scoped to the info panel so map, topbar, resize handle, and AI panel keep their own behavior. */
#inspectorContent {
  gap: 14px;
  padding: 14px 14px 104px;
  color: #121b16;
  font-size: 15px;
  line-height: 1.48;
}

#inspectorContent .region-head,
#inspectorContent .category-focus-card,
#inspectorContent .category-detail-card,
#inspectorContent .score-summary-card,
#inspectorContent .diagnosis,
#inspectorContent .rank-block,
#inspectorContent .compare-block,
#inspectorContent .strategic-area-overview-grid div {
  border-color: rgba(36, 54, 42, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 252, 0.98);
  box-shadow: 0 7px 18px rgba(24, 36, 28, 0.06);
}

#inspectorContent .region-head {
  padding: 13px 14px;
}

#inspectorContent .region-head h2 {
  color: #101a14;
  font-size: 24px;
  font-weight: 820;
  line-height: 1.14;
  word-break: keep-all;
}

#inspectorContent .region-title-line {
  align-items: flex-end;
  gap: 12px;
}

#inspectorContent .region-title-line > strong {
  color: #163923;
  font-size: 20px;
  font-weight: 820;
  line-height: 1.12;
}

#inspectorContent .region-kicker {
  color: #4b5d53;
  font-size: 13px;
  font-weight: 650;
}

#inspectorContent .grade-badge {
  min-width: 42px;
  height: 28px;
  border-radius: 999px;
  font-size: 14px;
}

#inspectorContent .deep-report-open-button {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 760;
}

#inspectorContent .compact-score-strip {
  gap: 8px;
  margin-top: 10px;
}

#inspectorContent .compact-score-strip span {
  min-height: 52px;
  padding: 9px 10px;
  border-color: rgba(36, 54, 42, 0.12);
  border-radius: 10px;
  background: #f8faf7;
  color: #536158;
  font-size: 13.5px;
  font-weight: 650;
}

#inspectorContent .compact-score-strip strong {
  color: #111a15;
  font-size: 19px;
  font-weight: 820;
}

#inspectorContent .section-title {
  margin: 14px 2px -4px;
  color: #101a15;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.22;
}

#inspectorContent .category-focus-card,
#inspectorContent .category-detail-card,
#inspectorContent .score-summary-card {
  overflow: hidden;
}

#inspectorContent .category-focus-card {
  padding: 15px;
}

#inspectorContent .category-focus-head span {
  color: color-mix(in srgb, var(--chip-color, #4f7341) 78%, #17251d);
  font-size: 13px;
  font-weight: 830;
}

#inspectorContent .category-focus-head strong {
  color: #111a15;
  font-size: 21px;
  font-weight: 830;
  line-height: 1.18;
  word-break: keep-all;
}

#inspectorContent .category-focus-head small {
  color: #607067;
  font-size: 13.5px;
  line-height: 1.4;
}

#inspectorContent .category-focus-grid,
#inspectorContent .category-status-strip,
#inspectorContent .category-focus-section-grid,
#inspectorContent .detail-visual-grid,
#inspectorContent .strategic-area-overview-grid {
  gap: 9px;
}

#inspectorContent .category-focus-grid > div,
#inspectorContent .category-status-strip > div,
#inspectorContent .category-focus-section-grid > div,
#inspectorContent .detail-visual-card,
#inspectorContent .strategic-area-overview-grid div {
  min-height: 88px;
  padding: 12px;
  border-radius: 11px;
  background: #fbfcfa;
}

#inspectorContent .category-focus-grid span,
#inspectorContent .category-status-strip span,
#inspectorContent .category-focus-section-grid span,
#inspectorContent .detail-visual-label,
#inspectorContent .strategic-area-overview-grid span {
  color: #485a50;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.32;
}

#inspectorContent .category-focus-grid strong,
#inspectorContent .category-status-strip strong,
#inspectorContent .category-focus-section-grid strong,
#inspectorContent .detail-visual-value,
#inspectorContent .strategic-area-overview-grid strong {
  color: #111a15;
  font-size: 20px;
  font-weight: 820;
  line-height: 1.14;
  word-break: keep-all;
}

#inspectorContent .category-focus-section-grid strong {
  font-size: 15.5px;
  font-weight: 760;
  line-height: 1.34;
  word-break: keep-all;
}

#inspectorContent .category-focus-section-grid > div {
  min-height: 82px;
}

#inspectorContent .category-focus-section-grid span {
  font-size: 12.5px;
  font-weight: 740;
}

#inspectorContent .category-focus-section-grid small {
  font-size: 12.2px;
}

#inspectorContent .category-status-strip strong,
#inspectorContent .category-focus-grid strong,
#inspectorContent .detail-visual-value,
#inspectorContent .strategic-area-overview-grid strong {
  font-size: 19px;
  font-weight: 820;
  line-height: 1.14;
}

#inspectorContent .category-focus-grid small,
#inspectorContent .category-status-strip small,
#inspectorContent .category-focus-section-grid small,
#inspectorContent .detail-visual-detail,
#inspectorContent .strategic-area-overview-grid small {
  color: #68756f;
  font-size: 12.5px;
  line-height: 1.36;
  white-space: normal;
}

#inspectorContent .category-detail-card summary {
  min-height: 64px;
  padding: 14px;
  border-bottom: 1px solid rgba(36, 54, 42, 0.1);
}

#inspectorContent .category-detail-card:not([open]) summary {
  border-bottom: 0;
}

#inspectorContent .category-summary-copy > span {
  color: #111a15;
  font-size: 19px;
  font-weight: 830;
  line-height: 1.22;
  word-break: keep-all;
}

#inspectorContent .category-summary-copy > small {
  color: #607067;
  font-size: 13px;
  line-height: 1.36;
}

#inspectorContent .category-detail-body {
  padding: 14px;
}

#inspectorContent .detail-visual-list {
  gap: 13px;
}

#inspectorContent .detail-visual-section {
  padding: 13px;
  border: 1px solid rgba(36, 54, 42, 0.12);
  border-radius: 13px;
  background: #ffffff;
}

#inspectorContent .detail-visual-section-head {
  margin-bottom: 10px;
}

#inspectorContent .detail-visual-section-head strong,
#inspectorContent .category-focus-section-head strong,
#inspectorContent .score-summary-head strong,
#inspectorContent .score-row-head strong {
  color: #111a15;
  font-size: 16px;
  font-weight: 830;
  line-height: 1.22;
}

#inspectorContent .detail-chart,
#inspectorContent .detail-chart-set {
  margin: 8px 0 12px;
}

#inspectorContent .detail-chart {
  padding: 13px;
  border-radius: 13px;
  border-color: rgba(36, 54, 42, 0.12);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--detail-accent, #4f7341) 6%, #ffffff), #ffffff 58%);
}

#inspectorContent .detail-chart-head strong,
#inspectorContent .detail-chart-title strong {
  color: #111a15;
  font-size: 15.5px;
  font-weight: 820;
}

#inspectorContent .detail-chart-head span,
#inspectorContent .detail-chart-head b,
#inspectorContent .detail-chart-foot,
#inspectorContent .detail-chart-title small {
  color: #65736c;
  font-size: 12px;
  font-weight: 600;
}

#inspectorContent .age-pyramid-axis span,
#inspectorContent .age-pyramid-row b,
#inspectorContent .age-pyramid-value,
#inspectorContent .donut-legend span,
#inspectorContent .bar-list-row span,
#inspectorContent .stacked-legend span {
  font-size: 12px;
}

#inspectorContent .donut-ring strong {
  font-size: 16px;
}

#inspectorContent .category-focus-links a,
#inspectorContent .category-source-button,
#inspectorContent .detail-section-link {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 760;
}

#inspectorContent .strategic-area-category-detail {
  margin-top: 0;
}

#inspectorContent .strategic-area-member-table {
  gap: 8px;
}

#inspectorContent .strategic-area-member-row {
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}

#inspectorContent .strategic-area-member-row strong {
  font-size: 15px;
}

#inspectorContent .strategic-area-member-row em {
  font-size: 14px;
  font-weight: 760;
}

@media (max-width: 1240px) {
  #inspectorContent .category-focus-grid,
  #inspectorContent .category-status-strip,
  #inspectorContent .category-focus-section-grid,
  #inspectorContent .detail-visual-grid,
  #inspectorContent .strategic-area-overview-grid {
    grid-template-columns: 1fr;
  }

  #inspectorContent .region-head h2 {
    font-size: 21px;
  }

  #inspectorContent .category-focus-grid strong,
  #inspectorContent .category-status-strip strong,
  #inspectorContent .detail-visual-value,
  #inspectorContent .strategic-area-overview-grid strong {
    font-size: 18px;
  }

  #inspectorContent .category-focus-section-grid strong {
    font-size: 15px;
  }
}
