: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: rgba(255, 255, 255, 0.96);
  stroke-width: 1.1;
}

.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: auto;
}

.situation-strip[hidden] {
  display: none !important;
}

.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;
}

.signal-region-list {
  display: grid;
  gap: 2px;
  margin-top: 3px;
}

.signal-region-link {
  display: grid;
  grid-template-columns: minmax(38px, 0.72fr) minmax(68px, 1fr);
  gap: 6px;
  align-items: start;
  min-width: 0;
  min-height: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--faint);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.signal-region-name,
.signal-region-metric {
  min-width: 0;
  overflow: hidden;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-region-name {
  color: var(--text);
  font-size: 7.8px;
  font-weight: 900;
}

.signal-region-metric {
  display: grid;
  gap: 1px;
  justify-items: end;
  color: var(--faint);
  font-style: normal;
  text-align: right;
}

.signal-region-metric b {
  color: #334155;
  font-size: 7.8px;
  font-variant-numeric: tabular-nums lining-nums;
  font-weight: 880;
  line-height: 1.05;
}

.signal-region-metric i {
  margin-right: 2px;
  font-style: normal;
  font-size: 7px;
}

.signal-region-metric small {
  max-width: 100%;
  margin-top: 0;
  color: var(--faint);
  font-size: 6.9px;
  font-weight: 720;
  line-height: 1.05;
  text-align: right;
}

.signal-region-metric.tone-down b {
  color: #a33f50;
}

.signal-region-metric.tone-up b {
  color: #2f6d43;
}

.signal-region-link:hover .signal-region-name,
.signal-region-link:focus-visible .signal-region-name {
  color: #1f5966;
  text-decoration: underline;
}

.signal-region-link:focus-visible {
  outline: 1px solid rgba(31, 89, 102, 0.42);
  outline-offset: 1px;
}

.signal-region-list > small {
  margin-top: 0;
  color: var(--faint);
  font-size: 7.3px;
}

.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;
}

.tooltip.policy-tooltip {
  max-width: 286px;
  width: min(286px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #0f172a;
  box-shadow: none;
}

.policy-tooltip-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.policy-tooltip-card header {
  padding: 10px 12px 8px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.policy-tooltip-card header span,
.policy-tooltip-card footer span,
.policy-tooltip-card footer small,
.policy-tooltip-card footer em,
.policy-tooltip-card dt,
.policy-tooltip-card p b {
  display: block;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.policy-tooltip-card header strong {
  margin: 2px 0 0;
  color: #0f172a;
  font-size: 14px;
}

.policy-tooltip-card dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
}

.policy-tooltip-card dd {
  margin: 2px 0 0;
  color: #111827;
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.policy-tooltip-card p {
  margin: 0;
  padding: 0 12px 10px;
  color: #334155;
  font-size: 11px;
  line-height: 1.45;
}

.policy-tooltip-card p b {
  margin-bottom: 2px;
}

.policy-tooltip-card footer {
  padding: 8px 12px 10px;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  background: #f8fafc;
}

.policy-tooltip-card footer small {
  margin-top: 2px;
  color: #334155;
  font-weight: 700;
}

.policy-tooltip-card footer em {
  margin-top: 5px;
  color: #9f5b12;
  font-style: normal;
  font-weight: 800;
}

.tooltip.industrial-tooltip {
  max-width: 352px;
  width: min(352px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #0f172a;
  box-shadow: none;
  line-height: 1.35;
}

.industrial-tooltip-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  box-shadow:
    0 24px 54px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

.industrial-tooltip-head {
  display: grid;
  gap: 7px;
  padding: 12px 13px 11px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), transparent 52%),
    #ffffff;
}

.industrial-tooltip-card.tone-general .industrial-tooltip-head {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.13), transparent 52%),
    #ffffff;
}

.industrial-tooltip-card.tone-urban .industrial-tooltip-head {
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.13), transparent 52%),
    #ffffff;
}

.industrial-tooltip-card.tone-agro .industrial-tooltip-head {
  background:
    linear-gradient(135deg, rgba(101, 163, 13, 0.13), transparent 52%),
    #ffffff;
}

.industrial-tooltip-card.tone-planned .industrial-tooltip-head {
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.16), transparent 52%),
    #ffffff;
}

.industrial-tooltip-eyebrow,
.industrial-tooltip-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.industrial-tooltip-eyebrow span,
.industrial-tooltip-source span,
.industrial-tooltip-field span,
.industrial-tooltip-kpis span {
  color: #64748b;
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0;
}

.industrial-tooltip-eyebrow em {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1d4ed8;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.industrial-tooltip-title,
.tooltip.industrial-tooltip .industrial-tooltip-title {
  margin: 0;
  overflow: hidden;
  color: #0f172a;
  font-size: 15px;
  font-weight: 930;
  letter-spacing: 0;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.industrial-tooltip-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.industrial-tooltip-badges span {
  min-width: 0;
  padding: 3px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 10px;
  font-weight: 840;
}

.industrial-tooltip-body {
  display: grid;
  gap: 8px;
  padding: 11px 13px 12px;
}

.industrial-tooltip-field {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 9px;
  border-radius: 10px;
  background: #f8fafc;
}

.industrial-tooltip-field.is-wide {
  background:
    linear-gradient(90deg, rgba(37, 99, 235, 0.08), transparent 70%),
    #f8fafc;
}

.industrial-tooltip-field strong,
.industrial-tooltip-kpis strong,
.industrial-tooltip-source strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.industrial-tooltip-field small,
.industrial-tooltip-kpis small {
  overflow: hidden;
  color: #64748b;
  font-size: 9.5px;
  font-weight: 720;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.industrial-tooltip-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.industrial-tooltip-kpis div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.95);
}

.industrial-tooltip-note {
  margin: 0;
  padding: 8px 9px;
  border-left: 3px solid #f59e0b;
  border-radius: 8px;
  background: #fffbeb;
  color: #6b5a24;
  font-size: 10.4px;
  line-height: 1.42;
}

.industrial-tooltip-source {
  padding-top: 2px;
}

.industrial-tooltip-source strong {
  color: #475569;
  font-size: 10px;
  font-weight: 820;
  text-align: right;
}

.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;
}

.system-contact {
  color: #56675a;
}

.system-contact a {
  color: #2f5f80;
  font-weight: 700;
  text-decoration: none;
}

.system-contact a:hover {
  text-decoration: underline;
}

.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;
}

.data-catalog-modal {
  position: fixed;
  inset: 0;
  z-index: 29;
  display: grid;
  place-items: center;
  padding: 32px;
}

.data-catalog-modal[hidden] {
  display: none;
}

.general-status-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(18, 27, 21, 0.42);
}

.data-catalog-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(12, 20, 18, 0.46);
}

.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);
}

.data-catalog-dialog {
  position: relative;
  z-index: 1;
  width: min(1360px, calc(100vw - 40px));
  height: min(820px, calc(100vh - 40px));
  min-width: min(760px, calc(100vw - 40px));
  min-height: min(460px, calc(100vh - 64px));
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  overscroll-behavior: contain;
  resize: both;
  border: 1px solid rgba(47, 83, 84, 0.24);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f7faf9);
  box-shadow:
    0 24px 56px rgba(13, 21, 16, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.general-status-dialog::after,
.deep-report-dialog::after,
.data-catalog-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);
}

.data-catalog-head {
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 18px 12px;
  border-bottom: 1px solid rgba(47, 83, 84, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 249, 0.98));
  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;
}

.data-catalog-kicker {
  margin: 0 0 3px;
  color: #2f5354;
  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;
}

.data-catalog-head h2 {
  margin: 0;
  color: #142321;
  font-size: 16px;
  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;
}

.data-catalog-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.data-catalog-close,
.data-catalog-download {
  min-width: 54px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(47, 83, 84, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 253, 0.98);
  color: #203b3c;
  font-size: 9.5px;
  font-weight: 860;
}

.data-catalog-download {
  background: #eef6f6;
  color: #2f5354;
}

.general-status-content {
  display: grid;
  min-height: 0;
  gap: 12px;
  overflow: auto;
  padding: 16px 18px 24px;
}

.data-catalog-content {
  display: grid;
  min-height: 0;
  gap: 12px;
  overflow: auto;
  padding: 18px 22px 28px;
}

.data-catalog-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.data-catalog-summary-card {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #dfe8ea;
  border-left: 3px solid #59758d;
  border-radius: 8px;
  background: #ffffff;
}

.data-catalog-summary-card.tone-official {
  border-left-color: #3f7c55;
}

.data-catalog-summary-card.tone-comparable {
  border-left-color: #3f718c;
}

.data-catalog-summary-card.tone-supporting {
  border-left-color: #7a6b9b;
}

.data-catalog-summary-card.tone-pending {
  border-left-color: #c7842d;
}

.data-catalog-summary-card span {
  color: #66758a;
  font-size: 10px;
  font-weight: 860;
}

.data-catalog-summary-card strong {
  color: #142321;
  font-size: 18px;
  font-weight: 900;
}

.data-catalog-summary-card small {
  color: #526075;
  font-size: 10.5px;
  line-height: 1.35;
}

.data-catalog-policy {
  padding: 11px 12px;
  border: 1px solid rgba(47, 83, 84, 0.16);
  border-left: 3px solid #2f5354;
  border-radius: 8px;
  background: #f8fbfb;
}

.data-catalog-policy span {
  color: #5f6f7d;
  font-size: 10px;
  font-weight: 880;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.data-catalog-policy strong {
  display: block;
  margin-top: 4px;
  color: #142321;
  font-size: 13.5px;
  font-weight: 880;
}

.data-catalog-policy p {
  margin: 5px 0 0;
  color: #526075;
  font-size: 11px;
  line-height: 1.45;
}

.data-catalog-layer-source {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.35fr);
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-left: 3px solid #2563eb;
  border-radius: 8px;
  background: #f8fbff;
}

.data-catalog-layer-source span {
  color: #5f6f7d;
  font-size: 10px;
  font-weight: 880;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.data-catalog-layer-source strong {
  display: block;
  margin-top: 4px;
  color: #142321;
  font-size: 13.5px;
  font-weight: 880;
}

.data-catalog-layer-source p {
  margin: 5px 0 0;
  color: #526075;
  font-size: 11px;
  line-height: 1.45;
}

.data-catalog-layer-links {
  display: grid;
  gap: 7px;
}

.data-catalog-layer-links a {
  display: grid;
  gap: 2px;
  padding: 8px 9px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: #17385f;
  text-decoration: none;
}

.data-catalog-layer-links b {
  font-size: 11px;
  font-weight: 880;
}

.data-catalog-layer-links small {
  color: #64748b;
  font-size: 10.5px;
  line-height: 1.35;
}

.data-catalog-source-section,
.data-catalog-table-section {
  min-height: 0;
}

.data-catalog-section-head {
  display: grid;
  align-items: start;
  gap: 5px;
  margin-bottom: 9px;
}

.data-catalog-section-head div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.data-catalog-section-head span {
  display: block;
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
}

.data-catalog-section-head strong {
  display: block;
  color: #142321;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  word-break: keep-all;
}

.data-catalog-section-head small {
  max-width: none;
  color: #64748b;
  font-size: 10.5px;
  line-height: 1.45;
  text-align: left;
}

.data-catalog-table-wrap {
  overflow: auto;
  border: 1px solid rgba(84, 98, 87, 0.18);
  border-radius: 10px;
  background: #ffffff;
}

.data-catalog-source-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.data-catalog-source-card {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid rgba(84, 98, 87, 0.16);
  border-left: 4px solid #59758d;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(31, 48, 36, 0.06);
}

.data-catalog-source-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-width: 0;
}

.data-catalog-source-title {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.data-catalog-source-title a,
.data-catalog-source-title .data-catalog-source-text {
  color: #142321;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.data-catalog-source-title a:hover {
  text-decoration: underline;
}

.data-catalog-source-title span {
  color: #64748b;
  font-size: 10.5px;
  font-weight: 760;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.data-catalog-source-card-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.data-catalog-source-card-status em {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.data-catalog-source-card-status small {
  color: #64748b;
  font-size: 9.5px;
  font-weight: 760;
  line-height: 1.2;
  overflow-wrap: anywhere;
  white-space: normal;
}

.data-catalog-source-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-top: 12px;
  min-width: 0;
  border-top: 1px solid #edf1f4;
}

.data-catalog-source-card-field {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #edf1f4;
  border-radius: 0;
  background: transparent;
}

.data-catalog-source-card-field.is-wide {
  grid-column: auto;
}

.data-catalog-source-card-field span {
  display: block;
  color: #64748b;
  font-size: 9.8px;
  font-weight: 900;
  line-height: 1.35;
}

.data-catalog-source-card-field strong,
.data-catalog-source-card-field strong a,
.data-catalog-source-card-field strong .data-catalog-source-text {
  color: #17291e;
  font-size: 11.2px;
  font-weight: 880;
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.data-catalog-source-card-field p,
.data-catalog-source-card-field small {
  display: block;
  margin: 0;
  color: #66758a;
  font-size: 11px;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.data-catalog-source-card-field strong + p,
.data-catalog-source-card-field strong + small {
  margin-top: 3px;
}

@media (max-width: 760px) {
  .data-catalog-source-card-head,
  .data-catalog-source-card-body {
    grid-template-columns: 1fr;
  }

  .data-catalog-source-card-status {
    justify-items: start;
    min-width: 0;
  }

  .data-catalog-source-card-field {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.data-catalog-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
}

.data-catalog-source-table {
  min-width: 1020px;
}

.data-catalog-table th,
.data-catalog-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #edf1f4;
  text-align: left;
  vertical-align: top;
}

.data-catalog-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef6f6;
  color: #2f5354;
  font-size: 10px;
  font-weight: 900;
}

.data-catalog-table tbody th {
  width: 160px;
}

.data-catalog-indicator,
.data-catalog-source-cell,
.data-catalog-meta-cell,
.data-catalog-usage-cell,
.data-catalog-status-cell {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.data-catalog-indicator strong,
.data-catalog-meta-cell strong,
.data-catalog-usage-cell strong {
  color: #17291e;
  font-size: 11px;
  font-weight: 880;
  line-height: 1.25;
}

.data-catalog-indicator span,
.data-catalog-source-cell small,
.data-catalog-meta-cell small,
.data-catalog-usage-cell small,
.data-catalog-status-cell small {
  color: #66758a;
  font-size: 10px;
  line-height: 1.35;
}

.data-catalog-source-cell a {
  color: #245d66;
  font-size: 11px;
  font-weight: 880;
  line-height: 1.25;
  text-decoration: none;
}

.data-catalog-source-text {
  color: #334155;
  font-size: 11px;
  font-weight: 880;
  line-height: 1.25;
}

.data-catalog-source-cell a:hover {
  text-decoration: underline;
}

.data-catalog-status-cell em {
  justify-self: start;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-style: normal;
  font-weight: 880;
}

.catalog-status-collected,
.catalog-status-official {
  background: #eef8f0;
  color: #2f6d43;
}

.catalog-status-comparable,
.catalog-status-supporting {
  background: #eef5fb;
  color: #3f718c;
}

.catalog-status-pending {
  background: #fff8ef;
  color: #8a5a1f;
}

.catalog-status-missing {
  background: #fff1f1;
  color: #a33f50;
}

.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: none;
  stroke-width: 0;
  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(255, 255, 250, 0.96);
  stroke-width: 0.9;
}

.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;
}

.region-general-overview-card .clustered-status-stack {
  margin-top: 10px;
}

.region-category-rank-card {
  margin-bottom: 12px;
}

.region-category-rank-card .clustered-status-stack {
  margin-top: 10px;
}

.region-general-overview-card .category-status-group {
  padding-left: 10px;
}

.region-general-overview-card .category-status-group-head span {
  max-width: 58%;
}

.region-general-overview-grid {
  grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
}

.region-general-overview-grid > div.is-featured {
  background: linear-gradient(90deg, color-mix(in srgb, var(--cluster-color, #355b5d) 10%, #ffffff), rgba(255, 255, 255, 0.72));
  border-color: color-mix(in srgb, var(--cluster-color, #355b5d) 28%, rgba(78, 98, 84, 0.12));
}

.region-general-overview-grid > div.is-featured strong {
  color: color-mix(in srgb, var(--cluster-color, #355b5d) 68%, #17291e);
}

.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));
}

.clustered-status-stack {
  display: grid;
  gap: 8px;
}

.category-status-group {
  border-left: 3px solid var(--cluster-color, #4f7a48);
  padding-left: 8px;
}

.category-status-group-head {
  align-items: baseline;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 5px;
}

.category-status-group-head strong {
  color: color-mix(in srgb, var(--cluster-color, #4f7a48) 72%, #17291e);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.category-status-group-head span {
  color: #6a7366;
  font-size: 9.5px;
  font-weight: 720;
  line-height: 1.2;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-status-strip > div,
.category-status-strip > button,
.category-focus-section-grid > div {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(78, 98, 84, 0.12);
  border-radius: 7px;
  color: inherit;
  font: inherit;
  min-width: 0;
  padding: 7px;
  text-align: left;
}

.category-status-strip > button {
  cursor: pointer;
}

.category-status-strip > button:hover,
.category-status-strip > button:focus-visible {
  border-color: color-mix(in srgb, var(--cluster-color, #4f7a48) 36%, rgba(78, 98, 84, 0.16));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--cluster-color, #4f7a48) 14%, transparent);
  outline: none;
}

.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: rgba(255, 255, 250, 0.96);
  stroke-width: 0.9;
}

.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-toolbar {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  box-sizing: border-box;
  width: 100%;
}

.ai-simple-toolbar button {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(23, 51, 65, 0.14);
  border-radius: 10px;
  background: #ffffff;
  color: #26352d;
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
}

.ai-simple-toolbar button:hover {
  border-color: rgba(28, 100, 242, 0.28);
  background: #f4f8ff;
  color: #174ea6;
}

.ai-scenario-shell {
  --ai-blue: #2563eb;
  --ai-purple: #7c3aed;
  --ai-ink: #111827;
  --ai-muted: #64748b;
}

.ai-scenario-hero {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.07)),
    #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
}

.ai-scenario-hero span,
.ai-rag-processing span,
.ai-structured-head span,
.ai-report-block span {
  color: var(--ai-blue);
  font-size: 11px;
  font-weight: 840;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ai-scenario-hero strong {
  color: var(--ai-ink);
  font-size: 20px;
  font-weight: 860;
  line-height: 1.2;
}

.ai-scenario-hero p {
  margin: 0;
  color: #475569;
  font-size: 13.5px;
  font-weight: 560;
  line-height: 1.5;
  word-break: keep-all;
}

.ai-scenario-grid {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.ai-scenario-card {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ai-ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.055);
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.ai-scenario-card:hover,
.ai-scenario-card.is-active {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.42);
  background: #f8fbff;
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.13);
}

.ai-scenario-card.is-active {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.1)),
    #ffffff;
}

.ai-scenario-card span {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 10.5px;
  font-weight: 850;
}

.ai-scenario-card strong {
  flex: 0 0 auto;
  color: #0f172a;
  font-size: 14.5px;
  font-weight: 860;
  line-height: 1.25;
}

.ai-scenario-card em {
  flex: 1 1 auto;
  min-width: 0;
  color: #334155;
  font-size: 12.5px;
  font-style: normal;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-scenario-card small {
  color: #64748b;
  font-size: 12px;
  font-weight: 560;
  line-height: 1.42;
  word-break: keep-all;
}

.ai-target-control {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 8px;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.055);
}

.ai-target-summary,
.ai-target-control label {
  min-width: 0;
}

.ai-target-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 30px;
}

.ai-target-control span {
  color: #64748b;
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-transform: uppercase;
}

.ai-target-summary span {
  letter-spacing: 0;
  text-transform: none;
}

.ai-target-control strong {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #0f172a;
  font-size: 16px;
  font-weight: 860;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ai-target-control strong > small {
  flex: 0 1 auto;
  min-width: 0;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 11.5px;
  font-weight: 780;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-target-pin {
  position: relative;
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border: 2px solid var(--ai-blue);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.ai-target-pin::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--ai-blue);
}

.ai-target-summary em {
  color: #94a3b8;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 780;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ai-target-control small {
  color: #64748b;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.3;
}

.ai-target-control label {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ai-target-control select {
  width: 100%;
  min-height: 36px;
  padding: 0 34px 0 11px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
  font-size: 13px;
  font-weight: 720;
}

.ai-target-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.ai-target-control button {
  min-height: 36px;
  min-width: 0;
  padding: 0 13px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ai-blue), var(--ai-purple));
  color: #ffffff;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.22);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-target-control button.secondary {
  border: 1px solid rgba(37, 99, 235, 0.18);
  background: #ffffff;
  color: #1d4ed8;
  box-shadow: none;
}

.ai-target-control button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.35);
  opacity: 0.54;
  box-shadow: none;
}

.ai-scenario-empty,
.ai-scenario-workbench {
  flex: 0 0 auto;
  box-sizing: border-box;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.055);
}

.ai-scenario-empty {
  padding: 14px;
}

.ai-scenario-empty strong {
  display: block;
  color: #111827;
  font-size: 14.5px;
  font-weight: 840;
}

.ai-scenario-empty p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 560;
  line-height: 1.5;
}

.ai-scenario-workbench {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}

.ai-rag-processing {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 13px;
  background: #f8fafc;
}

.ai-rag-processing strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 820;
  line-height: 1.35;
}

.ai-progress-meter {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.ai-progress-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ai-blue), var(--ai-purple));
}

.ai-rag-processing ol {
  margin: 0;
  padding-left: 18px;
  color: #475569;
  font-size: 12.5px;
  font-weight: 620;
  line-height: 1.45;
}

.ai-structured-report {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.ai-structured-head,
.ai-report-block {
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 13px;
  background: #ffffff;
}

.ai-structured-head strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 15.5px;
  font-weight: 860;
}

.ai-structured-head p,
.ai-report-block p {
  margin: 5px 0 0;
  color: #475569;
  font-size: 13px;
  font-weight: 570;
  line-height: 1.5;
}

.ai-report-block p b {
  color: #111827;
  font-weight: 840;
}

.ai-report-block ul {
  margin: 7px 0 0;
  padding-left: 18px;
  color: #334155;
  font-size: 13px;
  font-weight: 570;
  line-height: 1.48;
}

.ai-report-block li {
  margin: 4px 0;
}

.ai-report-block.is-qa {
  border-color: rgba(124, 58, 237, 0.16);
  background: #fbfaff;
}

.ai-report-block.is-gap {
  border-color: rgba(220, 38, 38, 0.13);
  background: #fffafa;
}

.ai-policy-workbench {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid rgba(23, 51, 65, 0.12);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(18, 35, 42, 0.06);
}

.ai-context-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 8px;
  min-width: 0;
}

.ai-context-strip span {
  align-self: start;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eaf3ff;
  color: #174ea6;
  font-size: 11px;
  font-weight: 820;
  line-height: 1.25;
}

.ai-context-strip strong {
  min-width: 0;
  color: #111a15;
  font-size: 14px;
  font-weight: 840;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.ai-context-strip small {
  grid-column: 2;
  min-width: 0;
  color: #5d6b62;
  font-size: 12px;
  font-weight: 640;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ai-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.ai-action-grid button {
  min-width: 0;
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid rgba(28, 100, 242, 0.2);
  border-radius: 9px;
  background: #f7fbff;
  color: #183d73;
  font-size: 12.5px;
  font-weight: 780;
  line-height: 1.2;
  cursor: pointer;
}

.ai-action-grid button:hover {
  border-color: rgba(28, 100, 242, 0.38);
  background: #eaf3ff;
}

.ai-action-grid button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.ai-beta-locked {
  justify-content: center;
}

.ai-beta-lock-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
  width: 100%;
  max-width: 420px;
  margin: auto;
  padding: 20px;
  border: 1px solid rgba(23, 51, 65, 0.12);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(18, 35, 42, 0.11);
}

.ai-beta-lock-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ai-beta-lock-copy span {
  color: #1c64f2;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-beta-lock-copy strong {
  color: #111a15;
  font-size: 21px;
  font-weight: 820;
  line-height: 1.25;
}

.ai-beta-lock-copy p,
.ai-beta-lock-card small {
  margin: 0;
  color: #4c5b52;
  font-size: 14px;
  font-weight: 540;
  line-height: 1.55;
}

.ai-beta-lock-form {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ai-beta-lock-form label {
  color: #24322a;
  font-size: 13px;
  font-weight: 760;
}

.ai-beta-lock-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 8px;
}

.ai-beta-lock-form input {
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(23, 51, 65, 0.16);
  border-radius: 10px;
  padding: 0 12px;
  color: #111a15;
  font-size: 15px;
  outline: none;
}

.ai-beta-lock-form input:focus {
  border-color: rgba(28, 100, 242, 0.5);
  box-shadow: 0 0 0 3px rgba(28, 100, 242, 0.12);
}

.ai-beta-lock-form button {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: #1c64f2;
  color: #ffffff;
  font-size: 14px;
  font-weight: 820;
  cursor: pointer;
}

.ai-beta-lock-form button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.ai-simple-thread {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
  min-width: 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 {
  box-sizing: border-box;
  min-width: 0;
  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 {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  font-size: 14.5px;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.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-opening-warning {
  margin: 0 0 10px;
  color: #c02626;
  font-size: 14.5px;
  font-weight: 840;
  line-height: 1.62;
}

.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 {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  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: min(360px, 96%);
  padding: 13px;
  border-color: rgba(37, 99, 235, 0.16);
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.92), rgba(245, 243, 255, 0.88)),
    #ffffff;
}

.ai-generating-head {
  display: grid;
  gap: 3px;
}

.ai-generating-head span {
  color: #2563eb;
  font-size: 11px;
  font-weight: 880;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-generating-head strong {
  color: #0f172a;
  font-size: 13.5px;
  font-weight: 880;
  line-height: 1.35;
}

.ai-generating-bar {
  position: relative;
  height: 5px;
  margin: 11px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
}

.ai-generating-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  animation: aiGeneratingSweep 1.25s infinite ease-in-out;
}

.ai-generating-steps {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ai-generating-steps li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #475569;
  font-size: 12.5px;
  font-weight: 720;
  line-height: 1.35;
}

.ai-generating-steps li span {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
  animation: aiTypingDot 1.05s infinite ease-in-out;
}

.ai-generating-steps li:nth-child(2) span {
  animation-delay: 0.16s;
}

.ai-generating-steps li:nth-child(3) span {
  animation-delay: 0.32s;
}

@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) 84px;
  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-composer-field {
  min-width: 0;
}

.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-composer-actions {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 7px;
}

.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 .ai-voice-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(28, 100, 242, 0.18);
  background: #eef4ff;
  color: #1b3f91;
  font-size: 12px;
  letter-spacing: 0;
}

.ai-voice-button span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(28, 100, 242, 0.1);
}

.ai-voice-button.is-listening {
  border-color: rgba(220, 38, 38, 0.24);
  background: #fff1f2;
  color: #b91c1c;
}

.ai-voice-button.is-listening span {
  animation: aiVoicePulse 1s infinite ease-in-out;
}

.ai-voice-button.is-unsupported {
  border-color: rgba(100, 116, 139, 0.16);
  background: #f1f5f9;
  color: #64748b;
}

.ai-simple-composer .ai-send-button {
  background: #1c64f2;
  color: #ffffff;
}

.ai-simple-composer button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.ai-voice-status {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border-radius: 10px;
  background: #f8fafc;
  color: #475569;
  font-size: 12.5px;
  font-weight: 680;
  line-height: 1.4;
}

.ai-voice-status.is-listening {
  background: #fff7ed;
  color: #9a3412;
}

.ai-voice-status.is-listening span {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #dc2626;
  animation: aiVoicePulse 1s infinite ease-in-out;
}

.ai-voice-status.is-error {
  border: 1px solid rgba(174, 42, 42, 0.14);
  background: #fff4f4;
  color: #8b1f1f;
}

@keyframes aiVoicePulse {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.82);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes aiGeneratingSweep {
  0% {
    transform: translateX(-105%);
  }

  55% {
    transform: translateX(85%);
  }

  100% {
    transform: translateX(245%);
  }
}

@media (max-width: 1040px) {
  .ai-scenario-grid {
    grid-template-columns: 1fr;
  }

  .ai-target-control {
    grid-template-columns: 1fr;
  }

  .ai-simple-thread {
    max-height: none;
  }

  .ai-simple-composer {
    grid-template-columns: 1fr;
  }

  .ai-composer-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: none;
  }

  .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;
  cursor: pointer;
}

.brand-block:focus-visible {
  outline: 2px solid rgba(42, 108, 121, 0.72);
  outline-offset: 3px;
}

.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: #8f2f2f;
  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, #d9a447, #b84b4b);
}

@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-status-strip > button,
#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;
  }
}

/* 2026-05-06 mobile layout overlay.
   Desktop/tablet rules above stay intact; this block only applies to narrow phones. */
@media (max-width: 760px) {
  html,
  body {
    height: 100dvh;
    overflow: hidden;
  }

  .app-shell {
    --inspector-width: 0px;
    --ai-width: 0px;
    height: 100dvh;
    grid-template-rows: auto minmax(0, 1fr) 30px;
    overflow: hidden;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    min-height: 0;
    padding: 8px;
    overflow: visible;
    border-bottom-color: rgba(33, 48, 38, 0.16);
    box-shadow: 0 8px 18px rgba(24, 38, 30, 0.1);
  }

  .brand-block {
    min-height: 0;
    height: auto;
    padding: 0 2px;
  }

  .brand-block .eyebrow,
  .brand-copy .eyebrow {
    display: none;
  }

  .brand-block h1,
  .brand-copy h1 {
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .command-strip,
  .command-strip.command-line {
    display: grid;
    grid-template-areas:
      "baseline analysis search"
      "tools tools tools";
    grid-template-columns: minmax(76px, 0.72fr) minmax(106px, 1fr) minmax(120px, 1.14fr);
    grid-template-rows: 42px 40px;
    gap: 6px;
    min-height: 90px;
    height: auto;
    padding: 0;
    overflow: visible;
  }

  .baseline-group {
    grid-area: baseline;
  }

  .analysis-group {
    grid-area: analysis;
  }

  .search-group {
    grid-area: search;
  }

  .tool-cluster {
    grid-area: tools;
  }

  .category-stack-group {
    display: none !important;
  }

  .command-strip .nav-group {
    min-width: 0;
    height: auto;
    min-height: 0;
    padding: 5px 6px;
    gap: 4px;
    overflow: hidden;
    border-radius: 10px;
  }

  .command-strip .nav-group-title,
  .command-strip .nav-group legend {
    flex: 0 0 auto;
    min-width: auto;
    height: auto;
    padding-inline: 4px;
    font-size: 10px;
    line-height: 1.15;
    white-space: nowrap;
  }

  .command-strip select,
  .command-strip input,
  .command-strip .tool-button,
  .command-strip .icon-button {
    min-width: 0;
    height: 27px;
    min-height: 27px;
    font-size: 12px;
    line-height: 1.2;
  }

  .command-strip .control-field,
  .command-strip .search-field {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
  }

  .command-strip select,
  .command-strip input {
    width: 100%;
  }

  .baseline-group select,
  .analysis-group select,
  .search-group input {
    padding-inline: 6px;
  }

  .tool-cluster {
    display: grid;
    grid-template-columns: auto minmax(78px, 1fr) minmax(94px, 1fr) 34px;
    align-items: center;
    gap: 6px;
  }

  .tool-cluster .nav-group-title {
    align-self: center;
  }

  .workspace {
    position: relative;
    display: block;
    min-height: 0;
    overflow: hidden;
  }

  .map-console {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 6px;
  }

  .map-stage {
    height: 100%;
    min-height: 0;
    border-radius: 14px;
  }

  .map-mode-switch {
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px;
    max-width: none;
  }

  .mode-toggle-group,
  .map-option-toggle-group {
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mode-toggle-group::-webkit-scrollbar,
  .map-option-toggle-group::-webkit-scrollbar {
    display: none;
  }

  .map-mode-switch button {
    min-height: 30px;
    padding-inline: 9px;
    font-size: 12px;
    white-space: nowrap;
  }

  .situation-strip {
    left: 8px;
    right: 8px;
    bottom: 42px;
    max-width: none;
    overflow-x: auto;
  }

  .map-status {
    left: 8px;
    right: 8px;
    bottom: 8px;
    justify-content: space-between;
    max-width: none;
  }

  .inspector,
  .ai-panel {
    position: fixed;
    z-index: 82;
    left: 8px;
    right: 8px;
    bottom: 34px;
    width: auto;
    max-width: none;
    height: min(64dvh, 580px);
    max-height: calc(100dvh - 156px);
    min-height: 260px;
    overflow: hidden;
    border: 1px solid rgba(33, 48, 38, 0.16);
    border-radius: 18px 18px 12px 12px;
    box-shadow: 0 18px 44px rgba(15, 28, 20, 0.22);
  }

  .app-shell.inspector-collapsed .inspector,
  .app-shell.ai-collapsed .ai-panel {
    display: none;
  }

  .inspector-resize-handle,
  .ai-resize-handle {
    display: none !important;
  }

  #inspectorContent,
  #aiPanelContent {
    height: 100%;
    padding: 12px 12px 84px;
    overflow: auto;
  }

  #inspectorContent {
    grid-auto-rows: max-content;
    align-content: start;
  }

  #inspectorContent > * {
    position: relative;
    z-index: 0;
  }

  #inspectorContent .category-focus-card,
  #inspectorContent .category-detail-card,
  #inspectorContent .score-summary-card,
  #inspectorContent .score-summary-row,
  #inspectorContent .diagnosis,
  #inspectorContent .rank-block,
  #inspectorContent .compare-block {
    position: relative;
    z-index: 0;
    overflow: hidden;
  }

  #inspectorContent .diagnosis.risk-list {
    height: auto;
    min-height: 0;
    margin-bottom: 12px;
  }

  #inspectorContent .rank-block,
  #inspectorContent .compare-block {
    margin-top: 10px;
  }

  #inspectorContent .score-summary-head {
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: start;
  }

  #inspectorContent .score-summary-head strong {
    min-width: 0;
    white-space: normal;
  }

  #inspectorContent .score-row-head {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title help"
      "rank rank";
    gap: 6px;
  }

  #inspectorContent .score-row-head strong {
    grid-area: title;
  }

  #inspectorContent .score-row-head > span {
    grid-area: rank;
    justify-self: start;
  }

  #inspectorContent .score-row-head .score-help {
    grid-area: help;
  }

  #inspectorContent .score-help[open] {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  #inspectorContent .score-help p,
  #inspectorContent .indicator-help p {
    position: static;
    z-index: auto;
    width: auto;
    max-width: none;
    margin: 8px 0 0;
    box-shadow: none;
  }

  #inspectorContent .indicator-score-list.compact .indicator-score-row,
  #inspectorContent .score-row-list > .indicator-score-row,
  #inspectorContent .indicator-score-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "label score help"
      "value yoy rank";
    min-height: 78px;
  }

  #inspectorContent .indicator-score-row > em {
    max-width: none;
    text-align: left;
  }

  #inspectorContent .indicator-score-row > strong {
    justify-self: end;
    white-space: nowrap;
  }

  .statusbar {
    gap: 8px;
    min-height: 30px;
    padding: 0 8px;
    overflow-x: auto;
    font-size: 10px;
  }

  .legend,
  .data-note {
    flex: 0 0 auto;
  }

  .data-note {
    gap: 9px;
  }
}

@media (max-width: 420px) {
  .command-strip,
  .command-strip.command-line {
    grid-template-columns: minmax(70px, 0.72fr) minmax(100px, 1fr) minmax(110px, 1.1fr);
    gap: 5px;
  }

  .command-strip .nav-group {
    padding-inline: 5px;
  }

  .command-strip select,
  .command-strip input,
  .command-strip .tool-button,
  .command-strip .icon-button {
    font-size: 11.5px;
  }

  .tool-cluster {
    grid-template-columns: auto minmax(70px, 1fr) minmax(86px, 1fr) 32px;
  }
}

/* Table-first information panel.
   Default on. Use ?infoDesign=classic only for temporary legacy comparison. */
.app-shell.info-table-preview {
  --inspector-width: clamp(500px, 36vw, 620px);
}

.app-shell.info-table-preview .inspector {
  background: #f5f7fb;
  border-left: 1px solid #d8dee8;
  box-shadow: -18px 0 40px rgba(15, 23, 42, 0.09);
}

.app-shell.info-table-preview #inspectorContent {
  display: grid;
  gap: 12px;
  padding: 18px 18px 104px;
  color: #172033;
  font-size: 14px;
  line-height: 1.5;
}

.app-shell.info-table-preview #inspectorContent .region-head,
.app-shell.info-table-preview #inspectorContent .category-focus-card,
.app-shell.info-table-preview #inspectorContent .category-detail-card,
.app-shell.info-table-preview #inspectorContent .score-summary-card,
.app-shell.info-table-preview #inspectorContent .diagnosis,
.app-shell.info-table-preview #inspectorContent .rank-block,
.app-shell.info-table-preview #inspectorContent .compare-block {
  overflow: hidden;
  border: 1px solid #d9e1ec;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
}

.app-shell.info-table-preview #inspectorContent .region-head {
  padding: 16px;
  border-top: 3px solid var(--detail-accent, #2563eb);
}

.app-shell.info-table-preview #inspectorContent .region-kicker {
  margin: 0 0 10px;
  color: #5b667a;
  font-size: 13px;
  font-weight: 700;
}

.app-shell.info-table-preview #inspectorContent .region-title-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
}

.app-shell.info-table-preview #inspectorContent .region-title-line h2 {
  margin: 0;
  color: #111827;
  font-size: 24px;
  font-weight: 820;
}

.app-shell.info-table-preview #inspectorContent .region-title-line > strong {
  color: #1d4ed8;
  font-size: 20px;
  font-weight: 820;
  white-space: nowrap;
}

.app-shell.info-table-preview #inspectorContent .deep-report-open-button,
.app-shell.info-table-preview #inspectorContent .category-source-button,
.app-shell.info-table-preview #inspectorContent .detail-section-link,
.app-shell.info-table-preview #inspectorContent .category-focus-links a {
  min-height: 30px;
  border: 1px solid #ccd6e5;
  border-radius: 6px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 750;
}

.app-shell.info-table-preview #inspectorContent .compact-score-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 14px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
}

.app-shell.info-table-preview #inspectorContent .compact-score-strip span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  color: #5b667a;
  font-size: 13px;
  font-weight: 700;
}

.app-shell.info-table-preview #inspectorContent .compact-score-strip span + span {
  border-left: 1px solid #dbe3ee;
}

.app-shell.info-table-preview #inspectorContent .compact-score-strip strong {
  color: #111827;
  font-size: 14px;
  font-weight: 830;
  white-space: nowrap;
}

.app-shell.info-table-preview #inspectorContent .section-title {
  margin: 8px 0 -4px;
  color: #334155;
  font-size: 14px;
  font-weight: 830;
  letter-spacing: 0;
  text-transform: none;
}

.app-shell.info-table-preview #inspectorContent .category-focus-card {
  padding: 0;
  border-top: 3px solid var(--chip-color, #2563eb);
}

.app-shell.info-table-preview #inspectorContent .category-focus-head {
  padding: 14px 16px;
  border-bottom: 1px solid #dbe3ee;
  background: #ffffff;
}

.app-shell.info-table-preview #inspectorContent .category-focus-head span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.app-shell.info-table-preview #inspectorContent .category-focus-head strong {
  display: block;
  margin-top: 3px;
  color: #111827;
  font-size: 18px;
  font-weight: 820;
}

.app-shell.info-table-preview #inspectorContent .category-focus-head small {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 13px;
}

.app-shell.info-table-preview #inspectorContent .category-focus-grid,
.app-shell.info-table-preview #inspectorContent .category-status-strip,
.app-shell.info-table-preview #inspectorContent .category-focus-section-grid,
.app-shell.info-table-preview #inspectorContent .detail-visual-grid,
.app-shell.info-table-preview #inspectorContent .strategic-area-overview-grid {
  display: block;
  margin: 0;
  border: 0;
  background: #ffffff;
}

.app-shell.info-table-preview #inspectorContent .category-focus-grid > div,
.app-shell.info-table-preview #inspectorContent .category-status-strip > div,
.app-shell.info-table-preview #inspectorContent .category-focus-section-grid > div,
.app-shell.info-table-preview #inspectorContent .detail-visual-card,
.app-shell.info-table-preview #inspectorContent .strategic-area-overview-grid div {
  display: grid;
  grid-template-columns: minmax(120px, 0.85fr) minmax(110px, 0.65fr) minmax(150px, 1.1fr);
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 16px;
  border: 0;
  border-radius: 0;
  border-top: 1px solid #edf1f6;
  background: #ffffff;
  box-shadow: none;
}

.app-shell.info-table-preview #inspectorContent .category-focus-grid > div:nth-child(even),
.app-shell.info-table-preview #inspectorContent .category-status-strip > div:nth-child(even),
.app-shell.info-table-preview #inspectorContent .category-focus-section-grid > div:nth-child(even),
.app-shell.info-table-preview #inspectorContent .detail-visual-card:nth-child(even),
.app-shell.info-table-preview #inspectorContent .strategic-area-overview-grid div:nth-child(even) {
  background: #fafcff;
}

.app-shell.info-table-preview #inspectorContent .category-focus-grid span,
.app-shell.info-table-preview #inspectorContent .category-status-strip span,
.app-shell.info-table-preview #inspectorContent .category-focus-section-grid span,
.app-shell.info-table-preview #inspectorContent .detail-visual-label,
.app-shell.info-table-preview #inspectorContent .strategic-area-overview-grid span {
  color: #526075;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
}

.app-shell.info-table-preview #inspectorContent .category-focus-grid strong,
.app-shell.info-table-preview #inspectorContent .category-status-strip strong,
.app-shell.info-table-preview #inspectorContent .category-focus-section-grid strong,
.app-shell.info-table-preview #inspectorContent .detail-visual-value,
.app-shell.info-table-preview #inspectorContent .strategic-area-overview-grid strong {
  margin: 0;
  color: #111827;
  font-size: 15px;
  font-weight: 840;
  line-height: 1.35;
  text-align: right;
}

.app-shell.info-table-preview #inspectorContent .category-focus-grid small,
.app-shell.info-table-preview #inspectorContent .category-status-strip small,
.app-shell.info-table-preview #inspectorContent .category-focus-section-grid small,
.app-shell.info-table-preview #inspectorContent .detail-visual-detail,
.app-shell.info-table-preview #inspectorContent .strategic-area-overview-grid small {
  margin: 0;
  color: #66758a;
  font-size: 12.5px;
  line-height: 1.45;
}

.app-shell.info-table-preview #inspectorContent .detail-visual-bar {
  grid-column: 1 / -1;
  height: 4px;
  margin: -2px 0 0;
  border-radius: 999px;
  background: #e5eaf2;
}

.app-shell.info-table-preview #inspectorContent .detail-visual-bar span {
  border-radius: 999px;
  background: var(--detail-accent, #2563eb);
}

.app-shell.info-table-preview #inspectorContent .category-detail-card {
  padding: 0;
}

.app-shell.info-table-preview #inspectorContent .category-detail-card summary {
  min-height: 48px;
  padding: 12px 16px;
  border-bottom: 1px solid #dbe3ee;
  background: #ffffff;
}

.app-shell.info-table-preview #inspectorContent .category-summary-copy > span {
  color: #111827;
  font-size: 15px;
  font-weight: 840;
}

.app-shell.info-table-preview #inspectorContent .category-summary-copy > small {
  color: #64748b;
  font-size: 12.5px;
}

.app-shell.info-table-preview #inspectorContent .category-detail-body,
.app-shell.info-table-preview #inspectorContent .detail-visual-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.app-shell.info-table-preview #inspectorContent .detail-visual-section,
.app-shell.info-table-preview #inspectorContent .detail-chart,
.app-shell.info-table-preview #inspectorContent .detail-chart-set {
  overflow: hidden;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.app-shell.info-table-preview #inspectorContent .detail-visual-section-head,
.app-shell.info-table-preview #inspectorContent .category-focus-section-head,
.app-shell.info-table-preview #inspectorContent .score-summary-head,
.app-shell.info-table-preview #inspectorContent .score-row-head {
  min-height: 44px;
  padding: 11px 14px;
  border-bottom: 1px solid #dbe3ee;
  background: #f8fafc;
}

.app-shell.info-table-preview #inspectorContent .detail-visual-section-head strong,
.app-shell.info-table-preview #inspectorContent .category-focus-section-head strong,
.app-shell.info-table-preview #inspectorContent .score-summary-head strong,
.app-shell.info-table-preview #inspectorContent .score-row-head strong {
  color: #111827;
  font-size: 15px;
  font-weight: 840;
}

.app-shell.info-table-preview #inspectorContent .detail-chart {
  padding: 14px;
}

.app-shell.info-table-preview #inspectorContent .score-summary-card {
  padding: 0;
}

.app-shell.info-table-preview #inspectorContent .score-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid #edf1f6;
}

.app-shell.info-table-preview #inspectorContent .indicator-score-list.compact .indicator-score-row,
.app-shell.info-table-preview #inspectorContent .score-row-list > .indicator-score-row,
.app-shell.info-table-preview #inspectorContent .indicator-score-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.95fr) minmax(78px, auto) minmax(90px, auto) 28px;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  border: 0;
  border-top: 1px solid #edf1f6;
  border-radius: 0;
  background: #ffffff;
}

.app-shell.info-table-preview #inspectorContent .indicator-score-row:nth-child(even) {
  background: #fafcff;
}

.app-shell.info-table-preview #inspectorContent .indicator-score-row > span,
.app-shell.info-table-preview #inspectorContent .indicator-score-row > em {
  color: #526075;
  font-size: 13px;
  font-weight: 760;
}

.app-shell.info-table-preview #inspectorContent .indicator-score-row > strong {
  color: #111827;
  font-size: 15px;
  font-weight: 840;
  text-align: right;
}

.app-shell.info-table-preview #inspectorContent .risk-list {
  padding: 0;
}

.app-shell.info-table-preview #inspectorContent .risk-item {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 48px minmax(120px, 0.9fr);
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 14px;
  border: 0;
  border-top: 1px solid #edf1f6;
  background: #ffffff;
}

.app-shell.info-table-preview #inspectorContent .risk-item:first-child {
  border-top: 0;
}

.app-shell.info-table-preview #inspectorContent .risk-item:nth-child(even) {
  background: #fafcff;
}

.app-shell.info-table-preview #inspectorContent .risk-item span {
  color: #526075;
  font-size: 13px;
  font-weight: 760;
}

.app-shell.info-table-preview #inspectorContent .risk-item strong {
  color: #111827;
  font-size: 15px;
  font-weight: 840;
  text-align: right;
}

.app-shell.info-table-preview #inspectorContent .rank-block,
.app-shell.info-table-preview #inspectorContent .compare-block,
.app-shell.info-table-preview #inspectorContent .diagnosis:not(.risk-list) {
  padding: 14px;
  color: #334155;
  font-size: 13.5px;
}

.app-shell.info-table-preview #inspectorContent .strategic-area-member-table {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #ffffff;
}

.app-shell.info-table-preview #inspectorContent .strategic-area-member-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto auto;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  border: 0;
  border-top: 1px solid #edf1f6;
  border-radius: 0;
  background: #ffffff;
  text-align: left;
}

.app-shell.info-table-preview #inspectorContent .strategic-area-member-row:first-child {
  border-top: 0;
}

.app-shell.info-table-preview #inspectorContent .strategic-area-member-row:nth-child(even) {
  background: #fafcff;
}

.app-shell.info-table-preview #inspectorContent .strategic-area-member-row strong,
.app-shell.info-table-preview #inspectorContent .strategic-area-member-row em {
  color: #111827;
  font-size: 14px;
  font-weight: 820;
}

.app-shell.info-table-preview #inspectorContent .empty-state.inline {
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #64748b;
  font-size: 13px;
}

@media (max-width: 760px) {
  .app-shell.info-table-preview {
    --inspector-width: 100%;
  }

  .app-shell.info-table-preview #inspectorContent {
    padding: 14px 12px 92px;
    font-size: 13.5px;
  }

  .app-shell.info-table-preview #inspectorContent .region-title-line,
  .app-shell.info-table-preview #inspectorContent .category-focus-grid > div,
  .app-shell.info-table-preview #inspectorContent .category-status-strip > div,
  .app-shell.info-table-preview #inspectorContent .category-focus-section-grid > div,
  .app-shell.info-table-preview #inspectorContent .detail-visual-card,
  .app-shell.info-table-preview #inspectorContent .strategic-area-overview-grid div,
  .app-shell.info-table-preview #inspectorContent .indicator-score-row,
  .app-shell.info-table-preview #inspectorContent .risk-item,
  .app-shell.info-table-preview #inspectorContent .strategic-area-member-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .app-shell.info-table-preview #inspectorContent .category-focus-grid strong,
  .app-shell.info-table-preview #inspectorContent .category-status-strip strong,
  .app-shell.info-table-preview #inspectorContent .category-focus-section-grid strong,
  .app-shell.info-table-preview #inspectorContent .detail-visual-value,
  .app-shell.info-table-preview #inspectorContent .indicator-score-row > strong,
  .app-shell.info-table-preview #inspectorContent .risk-item strong,
  .app-shell.info-table-preview #inspectorContent .strategic-area-overview-grid strong {
    text-align: left;
  }

  .app-shell.info-table-preview #inspectorContent .compact-score-strip {
    grid-template-columns: 1fr;
  }

  .app-shell.info-table-preview #inspectorContent .compact-score-strip span + span {
    border-top: 1px solid #dbe3ee;
    border-left: 0;
  }
}

/* Table preview refinement: remove legacy accent-strip feel and keep fiscal values on one line. */
.app-shell.info-table-preview {
  --inspector-width: clamp(560px, 39vw, 700px);
}

.app-shell.info-table-preview #inspectorContent .region-head,
.app-shell.info-table-preview #inspectorContent .category-focus-card,
.app-shell.info-table-preview #inspectorContent .category-detail-card,
.app-shell.info-table-preview #inspectorContent .score-summary-card,
.app-shell.info-table-preview #inspectorContent .detail-visual-section,
.app-shell.info-table-preview #inspectorContent .detail-chart,
.app-shell.info-table-preview #inspectorContent .rank-block,
.app-shell.info-table-preview #inspectorContent .compare-block,
.app-shell.info-table-preview #inspectorContent .diagnosis {
  border-color: #d9e1ec !important;
  border-left: 1px solid #d9e1ec !important;
  border-top: 1px solid #d9e1ec !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.app-shell.info-table-preview #inspectorContent .detail-visual-section::before,
.app-shell.info-table-preview #inspectorContent .detail-chart::before,
.app-shell.info-table-preview #inspectorContent .category-focus-card::before,
.app-shell.info-table-preview #inspectorContent .score-summary-card::before,
.app-shell.info-table-preview #inspectorContent .rank-block::before,
.app-shell.info-table-preview #inspectorContent .compare-block::before,
.app-shell.info-table-preview #inspectorContent .diagnosis::before {
  display: none !important;
  content: none !important;
}

.app-shell.info-table-preview #inspectorContent .region-title-line {
  align-items: center;
}

.app-shell.info-table-preview #inspectorContent .region-title-line > strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  max-width: 160px;
  padding: 5px 10px;
  overflow: hidden;
  border: 1px solid #d9e1ec;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell.info-table-preview #inspectorContent .grade-badge {
  height: 26px;
  min-width: 34px;
  border: 1px solid #d9e1ec;
  border-radius: 999px;
  background: #f8fafc !important;
  color: #334155 !important;
  font-size: 12px;
}

.app-shell.info-table-preview #inspectorContent .category-focus-grid > div,
.app-shell.info-table-preview #inspectorContent .category-status-strip > div,
.app-shell.info-table-preview #inspectorContent .category-focus-section-grid > div,
.app-shell.info-table-preview #inspectorContent .detail-visual-card,
.app-shell.info-table-preview #inspectorContent .strategic-area-overview-grid div {
  grid-template-columns: minmax(128px, 0.82fr) minmax(118px, max-content) minmax(210px, 1.18fr);
  gap: 14px;
}

.app-shell.info-table-preview #inspectorContent .detail-visual-card {
  border-left: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.app-shell.info-table-preview #inspectorContent .category-focus-grid strong,
.app-shell.info-table-preview #inspectorContent .category-status-strip strong,
.app-shell.info-table-preview #inspectorContent .category-focus-section-grid strong,
.app-shell.info-table-preview #inspectorContent .detail-visual-value,
.app-shell.info-table-preview #inspectorContent .strategic-area-overview-grid strong,
.app-shell.info-table-preview #inspectorContent .indicator-score-row > strong,
.app-shell.info-table-preview #inspectorContent .risk-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell.info-table-preview #inspectorContent .category-focus-grid small,
.app-shell.info-table-preview #inspectorContent .category-status-strip small,
.app-shell.info-table-preview #inspectorContent .category-focus-section-grid small,
.app-shell.info-table-preview #inspectorContent .detail-visual-detail,
.app-shell.info-table-preview #inspectorContent .strategic-area-overview-grid small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell.info-table-preview #inspectorContent .detail-visual-bar {
  display: none;
}

.app-shell.info-table-preview #inspectorContent .detail-visual-section-head,
.app-shell.info-table-preview #inspectorContent .category-focus-section-head,
.app-shell.info-table-preview #inspectorContent .score-summary-head,
.app-shell.info-table-preview #inspectorContent .score-row-head,
.app-shell.info-table-preview #inspectorContent .category-detail-card summary {
  background: #f8fafc !important;
}

.app-shell.info-table-preview #inspectorContent .indicator-score-row {
  grid-template-columns: minmax(150px, 1fr) max-content max-content 28px;
}

.app-shell.info-table-preview #inspectorContent .compact-score-strip strong,
.app-shell.info-table-preview #inspectorContent .indicator-score-row > em,
.app-shell.info-table-preview #inspectorContent .indicator-score-row > span {
  white-space: nowrap;
}

/* Table preview density pass: keep headline metrics compact and table-like. */
.app-shell.info-table-preview {
  --inspector-width: clamp(520px, 37vw, 660px);
}

.app-shell.info-table-preview #inspectorContent {
  gap: 10px;
  padding: 16px 16px 100px;
}

.app-shell.info-table-preview #inspectorContent .region-head {
  padding: 14px;
}

.app-shell.info-table-preview #inspectorContent .category-focus-head {
  padding: 12px 14px;
}

.app-shell.info-table-preview #inspectorContent .category-detail-body,
.app-shell.info-table-preview #inspectorContent .detail-visual-list {
  gap: 8px;
  padding: 10px;
}

.app-shell.info-table-preview #inspectorContent .category-focus-grid > div,
.app-shell.info-table-preview #inspectorContent .category-status-strip > div,
.app-shell.info-table-preview #inspectorContent .category-focus-section-grid > div,
.app-shell.info-table-preview #inspectorContent .detail-visual-card,
.app-shell.info-table-preview #inspectorContent .strategic-area-overview-grid div {
  grid-template-columns: minmax(92px, 0.58fr) minmax(108px, max-content) minmax(150px, 1.05fr);
  min-height: 40px;
  gap: 10px;
  padding: 7px 12px;
}

.app-shell.info-table-preview #inspectorContent .category-focus-grid span,
.app-shell.info-table-preview #inspectorContent .category-status-strip span,
.app-shell.info-table-preview #inspectorContent .category-focus-section-grid span,
.app-shell.info-table-preview #inspectorContent .detail-visual-label,
.app-shell.info-table-preview #inspectorContent .strategic-area-overview-grid span {
  font-size: 12.5px;
}

.app-shell.info-table-preview #inspectorContent .category-focus-grid strong,
.app-shell.info-table-preview #inspectorContent .category-status-strip strong,
.app-shell.info-table-preview #inspectorContent .category-focus-section-grid strong,
.app-shell.info-table-preview #inspectorContent .detail-visual-value,
.app-shell.info-table-preview #inspectorContent .strategic-area-overview-grid strong {
  font-size: 14px;
}

.app-shell.info-table-preview #inspectorContent .category-focus-grid small,
.app-shell.info-table-preview #inspectorContent .category-status-strip small,
.app-shell.info-table-preview #inspectorContent .category-focus-section-grid small,
.app-shell.info-table-preview #inspectorContent .detail-visual-detail,
.app-shell.info-table-preview #inspectorContent .strategic-area-overview-grid small {
  font-size: 12px;
}

.app-shell.info-table-preview #inspectorContent .compact-score-strip {
  margin-top: 12px;
}

.app-shell.info-table-preview #inspectorContent .compact-score-strip span {
  min-height: 38px;
  padding: 8px 10px;
}

.app-shell.info-table-preview #inspectorContent .detail-visual-section-head,
.app-shell.info-table-preview #inspectorContent .category-focus-section-head,
.app-shell.info-table-preview #inspectorContent .score-summary-head,
.app-shell.info-table-preview #inspectorContent .score-row-head,
.app-shell.info-table-preview #inspectorContent .category-detail-card summary {
  min-height: 40px;
  padding: 9px 12px;
}

.app-shell.info-table-preview #inspectorContent .indicator-score-row,
.app-shell.info-table-preview #inspectorContent .risk-item,
.app-shell.info-table-preview #inspectorContent .strategic-area-member-row {
  min-height: 40px;
  padding: 8px 12px;
}

.app-shell.info-table-preview #inspectorContent .preview-data-table {
  display: block;
  overflow: hidden;
  border: 1px solid #d9e1ec;
  border-radius: 10px;
  background: #ffffff;
}

.app-shell.info-table-preview #inspectorContent .preview-data-table + .preview-data-table {
  margin-top: 8px;
}

.app-shell.info-table-preview #inspectorContent .preview-table-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 9px 12px;
  border-top: 1px solid #d9e1ec;
  background: #f8fafc;
}

.app-shell.info-table-preview #inspectorContent .preview-table-root-section {
  min-height: 42px;
  border-top: 0;
  background: #f3f6fa;
}

.app-shell.info-table-preview #inspectorContent .preview-table-section:first-child {
  border-top: 0;
}

.app-shell.info-table-preview #inspectorContent .preview-table-section strong {
  min-width: 0;
  overflow: hidden;
  color: #111827;
  font-size: 14px;
  font-weight: 830;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell.info-table-preview #inspectorContent .preview-table-root-section strong {
  color: #0f172a;
  font-size: 15px;
}

.app-shell.info-table-preview #inspectorContent .preview-table-section.is-source-group strong {
  color: #475569;
}

.app-shell.info-table-preview #inspectorContent .preview-table-row {
  display: grid;
  grid-template-columns: minmax(98px, 0.62fr) minmax(108px, max-content) minmax(160px, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 39px;
  padding: 7px 12px;
  border-top: 1px solid #edf1f6;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
}

.app-shell.info-table-preview #inspectorContent .preview-table-row:nth-child(even) {
  background: #fafcff;
}

.app-shell.info-table-preview #inspectorContent button.preview-table-row {
  width: 100%;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.app-shell.info-table-preview #inspectorContent button.preview-table-row:hover {
  background: #eef5ff;
}

.app-shell.info-table-preview #inspectorContent .preview-table-label {
  min-width: 0;
  overflow: hidden;
  color: #526075;
  font-size: 12.5px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell.info-table-preview #inspectorContent .preview-table-value {
  min-width: 0;
  overflow: hidden;
  color: #111827;
  font-size: 14px;
  font-weight: 840;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell.info-table-preview #inspectorContent .preview-table-note {
  min-width: 0;
  overflow: hidden;
  color: #66758a;
  font-size: 12px;
  line-height: 1.38;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell.info-table-preview #inspectorContent .preview-table-row.is-missing .preview-table-value,
.app-shell.info-table-preview #inspectorContent .preview-table-row.is-missing .preview-table-note {
  color: #94a3b8;
}

.app-shell.info-table-preview #inspectorContent .preview-table-row.is-search-supplement .preview-table-value {
  color: #b42318;
}

.app-shell.info-table-preview #inspectorContent .preview-table-link {
  margin-left: 8px;
  color: #b42318;
  font-weight: 800;
  text-decoration: none;
}

.app-shell.info-table-preview #inspectorContent .preview-table-section .category-source-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0;
  margin-left: auto;
}

.app-shell.info-table-preview #inspectorContent .preview-table-section .category-source-button,
.app-shell.info-table-preview #inspectorContent .preview-table-section .detail-section-link {
  min-height: 26px;
  padding: 4px 8px;
  border: 1px solid #cbd5e1 !important;
  border-radius: 5px !important;
  background: #ffffff !important;
  color: #334155 !important;
  box-shadow: none !important;
  font-size: 11.5px;
  font-weight: 760;
  line-height: 1.2;
}

.app-shell.info-table-preview #inspectorContent .category-focus-card > .category-focus-links,
.app-shell.info-table-preview #inspectorContent .category-focus-note {
  display: none !important;
}

.app-shell.info-table-preview #inspectorContent .preview-data-table > .detail-chart,
.app-shell.info-table-preview #inspectorContent .preview-data-table > .detail-chart-set {
  margin: 0;
  border: 0 !important;
  border-top: 1px solid #edf1f6 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
}

.app-shell.info-table-preview #inspectorContent .preview-data-table > .detail-chart {
  padding: 12px 14px;
}

.app-shell.info-table-preview #inspectorContent .preview-data-table > .detail-chart-set {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.app-shell.info-table-preview #inspectorContent .preview-data-table > .detail-chart-set .detail-chart {
  border: 0 !important;
  border-left: 1px solid #edf1f6 !important;
  border-radius: 0 !important;
}

.app-shell.info-table-preview #inspectorContent .preview-data-table > .detail-chart-set .detail-chart:first-child {
  border-left: 0 !important;
}

.app-shell.info-table-preview #inspectorContent .detail-chart-head strong,
.app-shell.info-table-preview #inspectorContent .detail-chart-title strong {
  color: #111827;
  font-size: 13.5px;
  font-weight: 830;
}

.app-shell.info-table-preview #inspectorContent .detail-chart-head span,
.app-shell.info-table-preview #inspectorContent .detail-chart-head b,
.app-shell.info-table-preview #inspectorContent .detail-chart-foot,
.app-shell.info-table-preview #inspectorContent .detail-chart-title small {
  color: #66758a;
  font-size: 12px;
}

.app-shell.info-table-preview #inspectorContent .donut-ring,
.app-shell.info-table-preview #inspectorContent .stacked-track,
.app-shell.info-table-preview #inspectorContent .trend-line-svg,
.app-shell.info-table-preview #inspectorContent .bar-list-row i {
  filter: none;
}

.app-shell.info-table-preview #inspectorContent .bar-list-row {
  grid-template-columns: minmax(96px, 0.56fr) minmax(180px, 1fr) max-content;
  gap: 10px;
}

.app-shell.info-table-preview #inspectorContent .risk-item {
  grid-template-columns: minmax(126px, 0.48fr) minmax(220px, 1fr) 44px;
}

.app-shell.info-table-preview #inspectorContent .risk-item .bar-track {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5eaf2;
}

.app-shell.info-table-preview #inspectorContent .risk-item .bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #dc2626);
}

.app-shell.info-table-preview #inspectorContent .risk-item strong {
  justify-self: end;
  text-align: right;
}

.app-shell.info-table-preview #inspectorContent .category-detail-card .detail-visual-list {
  display: block;
  padding: 10px;
}

.app-shell.info-table-preview #inspectorContent .category-detail-card .detail-visual-list > .preview-data-table {
  border-radius: 8px;
}

/* Table preview navigation: square command bar instead of pill/chip-heavy controls. */
.app-shell.info-table-preview .topbar {
  gap: 10px;
  border-bottom: 1px solid #d8dee8;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.app-shell.info-table-preview .topbar::after,
.app-shell.info-table-preview .command-strip::before,
.app-shell.info-table-preview .nav-group::before {
  display: none !important;
  content: none !important;
}

.app-shell.info-table-preview .brand-block {
  min-width: 290px;
}

.app-shell.info-table-preview .brand-block h1 {
  color: #0f172a;
  font-size: 19px;
  font-weight: 840;
}

.app-shell.info-table-preview .brand-block .eyebrow {
  color: #64748b;
  font-size: 10.5px;
  font-weight: 760;
}

.app-shell.info-table-preview .command-strip,
.app-shell.info-table-preview .command-strip.command-line {
  gap: 6px;
  padding: 6px;
  border: 1px solid #d9e1ec;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: none;
}

.app-shell.info-table-preview .nav-group {
  min-height: 46px;
  padding: 6px 8px;
  border: 1px solid #d9e1ec;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: none;
}

.app-shell.info-table-preview .nav-group-title,
.app-shell.info-table-preview .nav-group legend,
.app-shell.info-table-preview .command-strip .nav-group-title,
.app-shell.info-table-preview .command-strip .nav-group legend {
  color: #64748b;
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0;
}

.app-shell.info-table-preview .command-strip select,
.app-shell.info-table-preview .command-strip input,
.app-shell.info-table-preview .command-strip .tool-button,
.app-shell.info-table-preview .command-strip .icon-button,
.app-shell.info-table-preview .category-chip,
.app-shell.info-table-preview .tool-button {
  min-height: 32px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #ffffff;
  color: #172033;
  box-shadow: none;
  font-size: 12.5px;
  font-weight: 740;
}

.app-shell.info-table-preview .command-strip select,
.app-shell.info-table-preview .command-strip input {
  padding-inline: 8px;
}

.app-shell.info-table-preview .category-layer-list {
  gap: 4px;
}

.app-shell.info-table-preview .category-chip {
  padding: 6px 8px;
}

.app-shell.info-table-preview .category-chip::before {
  display: none !important;
  content: none !important;
}

.app-shell.info-table-preview .category-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell.info-table-preview .category-chip:has(input:checked),
.app-shell.info-table-preview .category-chip.is-master:has(input:checked),
.app-shell.info-table-preview .tool-button[aria-pressed="true"] {
  border-color: #1d4ed8;
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px rgba(29, 78, 216, 0.16);
}

.app-shell.info-table-preview .tool-button.ai-toggle[aria-pressed="true"] {
  border-color: #0f172a;
  background: #0f172a;
  color: #ffffff;
}

.app-shell.info-table-preview .icon-button {
  width: 34px;
  min-width: 34px;
  padding: 0;
  border-radius: 5px;
}

.app-shell.info-table-preview .command-strip select:hover,
.app-shell.info-table-preview .command-strip input:hover,
.app-shell.info-table-preview .command-strip .tool-button:hover,
.app-shell.info-table-preview .command-strip .icon-button:hover,
.app-shell.info-table-preview .category-chip:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.app-shell.info-table-preview .command-strip select:focus-visible,
.app-shell.info-table-preview .command-strip input:focus-visible,
.app-shell.info-table-preview .command-strip .tool-button:focus-visible,
.app-shell.info-table-preview .command-strip .icon-button:focus-visible,
.app-shell.info-table-preview .category-chip:focus-within {
  outline: 2px solid rgba(37, 99, 235, 0.28);
  outline-offset: 1px;
}

@media (max-width: 1024px) {
  .app-shell.info-table-preview .brand-block {
    min-width: 240px;
  }

  .app-shell.info-table-preview .brand-block h1 {
    font-size: 17px;
  }

  .app-shell.info-table-preview .command-strip,
  .app-shell.info-table-preview .command-strip.command-line {
    gap: 5px;
    padding: 5px;
  }

  .app-shell.info-table-preview .nav-group {
    padding-inline: 6px;
  }
}

/* Table preview cleanup pass: remove remaining legacy accent/pill treatment. */
.app-shell.info-table-preview .brand-block {
  display: flex;
  align-items: center;
  min-width: 312px;
  min-height: 46px;
  height: auto;
  padding: 8px 12px;
  border: 1px solid #d9e1ec !important;
  border-left: 1px solid #d9e1ec !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.app-shell.info-table-preview .brand-block::before,
.app-shell.info-table-preview .brand-block::after,
.app-shell.info-table-preview .brand-mark,
.app-shell.info-table-preview .brand-mark::before,
.app-shell.info-table-preview .brand-mark::after {
  display: none !important;
  content: none !important;
}

.app-shell.info-table-preview .brand-block > div,
.app-shell.info-table-preview .brand-copy {
  display: block;
  width: auto;
  min-width: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.app-shell.info-table-preview .brand-block .eyebrow,
.app-shell.info-table-preview .brand-copy .eyebrow {
  display: none !important;
}

.app-shell.info-table-preview .brand-block h1,
.app-shell.info-table-preview .brand-copy h1 {
  margin: 0;
  max-width: none;
  overflow: visible;
  color: #0f172a !important;
  font-size: 18px !important;
  font-weight: 780 !important;
  line-height: 1.25;
  letter-spacing: 0;
  text-overflow: clip;
  white-space: nowrap;
}

.app-shell.info-table-preview #inspectorContent .region-head.compact-region-head {
  border: 1px solid #d9e1ec !important;
  border-left: 1px solid #d9e1ec !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.app-shell.info-table-preview #inspectorContent .region-title-line > strong,
.app-shell.info-table-preview #inspectorContent .grade-badge,
.app-shell.info-table-preview #inspectorContent .area-badge {
  padding: 4px 8px;
  border: 1px solid #d9e1ec !important;
  border-radius: 5px !important;
  background: #ffffff !important;
  color: #334155 !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 760 !important;
  line-height: 1.25;
}

.app-shell.info-table-preview #inspectorContent .compact-score-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.app-shell.info-table-preview #inspectorContent .compact-score-strip span {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #d9e1ec !important;
  border-left: 1px solid #d9e1ec !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  color: #64748b !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 760 !important;
  line-height: 1.25;
  text-align: left;
}

.app-shell.info-table-preview #inspectorContent .compact-score-strip strong {
  display: block;
  margin: 2px 0 0;
  color: #0f172a !important;
  background: transparent !important;
  font-size: 15px !important;
  font-weight: 840 !important;
  line-height: 1.2;
}

.app-shell.info-table-preview #inspectorContent .preview-source-title {
  margin-top: 18px;
  color: #475569;
}

.app-shell.info-table-preview #inspectorContent .preview-source-title + .preview-data-table {
  border-color: #cbd5e1;
  background: #fbfcfe;
}

.app-shell.info-table-preview #inspectorContent .preview-source-title + .preview-data-table .preview-table-section {
  background: #eef2f7;
}

@media (max-width: 1024px) {
  .app-shell.info-table-preview .brand-block {
    min-width: 240px;
    padding-inline: 10px;
  }

  .app-shell.info-table-preview .brand-block h1,
  .app-shell.info-table-preview .brand-copy h1 {
    font-size: 16.5px !important;
  }
}

/* Table preview title sizing: two-line brand with a calmer panel width. */
.app-shell.info-table-preview {
  --inspector-width: clamp(540px, 38vw, 680px);
}

.app-shell.info-table-preview .topbar {
  grid-template-columns: 214px minmax(0, 1fr);
  align-items: stretch;
}

.app-shell.info-table-preview .brand-block {
  width: 206px;
  min-width: 206px;
  min-height: 46px;
  height: 46px;
  padding: 5px 11px;
  align-items: center;
}

.app-shell.info-table-preview .brand-block h1,
.app-shell.info-table-preview .brand-copy h1 {
  width: 158px;
  max-width: 158px;
  font-size: 15.8px !important;
  line-height: 1.12;
  white-space: normal;
  word-break: keep-all;
}

@media (max-width: 1024px) {
  .app-shell.info-table-preview .topbar {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .app-shell.info-table-preview .brand-block {
    width: 182px;
    min-width: 182px;
    min-height: 44px;
    height: 44px;
    padding: 5px 9px;
  }

  .app-shell.info-table-preview .brand-block h1,
  .app-shell.info-table-preview .brand-copy h1 {
    width: 144px;
    max-width: 144px;
    font-size: 14.8px !important;
    line-height: 1.1;
  }
}

/* Table preview topbar balance: tall centered brand, denser controls. */
.app-shell.info-table-preview .topbar {
  grid-template-columns: 236px minmax(0, 1fr);
  align-items: center;
  min-height: 96px;
  padding: 9px 12px;
}

.app-shell.info-table-preview .brand-block {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 224px;
  min-width: 224px;
  min-height: 82px;
  height: 82px;
  padding: 8px 14px;
  text-align: center;
}

.app-shell.info-table-preview .brand-block h1,
.app-shell.info-table-preview .brand-copy h1 {
  width: 184px;
  max-width: 184px;
  margin: 0 auto;
  font-size: 20px !important;
  font-weight: 820 !important;
  line-height: 1.16;
  white-space: normal;
  word-break: keep-all;
}

.app-shell.info-table-preview .command-strip,
.app-shell.info-table-preview .command-strip.command-line {
  align-content: center;
  min-height: 82px;
  padding: 5px;
  gap: 5px;
  grid-template-rows: minmax(28px, auto) minmax(34px, auto);
}

.app-shell.info-table-preview .nav-group {
  min-height: 31px;
  padding: 3px 6px;
}

.app-shell.info-table-preview .command-strip select,
.app-shell.info-table-preview .command-strip input,
.app-shell.info-table-preview .command-strip .tool-button,
.app-shell.info-table-preview .command-strip .icon-button,
.app-shell.info-table-preview .category-chip,
.app-shell.info-table-preview .tool-button {
  min-height: 29px;
  font-size: 12px;
}

.app-shell.info-table-preview .category-chip {
  padding: 5px 7px;
}

@media (max-width: 1024px) {
  .app-shell.info-table-preview .topbar {
    grid-template-columns: 212px minmax(0, 1fr);
    min-height: 90px;
    padding: 8px 9px;
  }

  .app-shell.info-table-preview .brand-block {
    width: 202px;
    min-width: 202px;
    min-height: 76px;
    height: 76px;
    padding: 7px 12px;
  }

  .app-shell.info-table-preview .brand-block h1,
  .app-shell.info-table-preview .brand-copy h1 {
    width: 166px;
    max-width: 166px;
    font-size: 18.4px !important;
    line-height: 1.14;
  }

  .app-shell.info-table-preview .command-strip,
  .app-shell.info-table-preview .command-strip.command-line {
    min-height: 76px;
    grid-template-rows: minmax(27px, auto) minmax(32px, auto);
  }
}

/* Table preview legibility pass: stronger brand, value-first rows, notes collapse first. */
.app-shell.info-table-preview .brand-block h1,
.app-shell.info-table-preview .brand-copy h1 {
  display: grid;
  gap: 2px;
  width: 100%;
  max-width: 100%;
  font-size: 25.5px !important;
  line-height: 1.06;
}

.app-shell.info-table-preview .brand-block h1 span,
.app-shell.info-table-preview .brand-copy h1 span {
  display: block;
}

.app-shell.info-table-preview .inspector {
  container-type: inline-size;
}

.app-shell.info-table-preview #inspectorContent .preview-table-row {
  grid-template-columns: minmax(92px, 0.42fr) minmax(132px, max-content) minmax(116px, 0.58fr);
}

.app-shell.info-table-preview #inspectorContent .preview-table-label {
  font-size: 12px;
}

.app-shell.info-table-preview #inspectorContent .preview-table-value {
  font-size: 13.4px;
}

.app-shell.info-table-preview #inspectorContent .preview-table-note {
  color: #7b8798;
  font-size: 11.2px;
  display: -webkit-box;
  overflow: hidden;
  text-overflow: clip;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.app-shell.info-table-preview #inspectorContent .preview-table-section + .preview-table-row:last-child {
  min-height: 46px;
}

.app-shell.info-table-preview #inspectorContent .preview-table-row.is-narrative {
  grid-template-columns: minmax(92px, 0.34fr) minmax(0, 1fr);
  align-items: start;
  gap: 4px 12px;
  padding-block: 9px;
}

.app-shell.info-table-preview #inspectorContent .preview-table-row.is-narrative .preview-table-value,
.app-shell.info-table-preview #inspectorContent .preview-table-row.is-narrative .preview-table-note {
  grid-column: 2;
  text-align: left;
}

.app-shell.info-table-preview #inspectorContent .preview-table-row.is-narrative .preview-table-value {
  overflow: visible;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: clip;
  white-space: normal;
}

.app-shell.info-table-preview #inspectorContent .preview-table-row.is-narrative .preview-table-note {
  display: block;
  margin-top: 1px;
  overflow: visible;
  color: #69778b;
  font-size: 11.3px;
  line-height: 1.35;
  text-overflow: clip;
  white-space: normal;
  -webkit-line-clamp: unset;
}

@container (max-width: 530px) {
  #inspectorContent .preview-table-row {
    grid-template-columns: minmax(82px, 0.38fr) minmax(118px, max-content) minmax(108px, 0.48fr);
    gap: 7px;
  }

  #inspectorContent .preview-table-note,
  #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 {
    display: block;
    opacity: 0.72;
    font-size: 10px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: clip;
    white-space: normal;
  }

  #inspectorContent .preview-table-note {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  #inspectorContent .preview-table-row.is-narrative {
    grid-template-columns: minmax(78px, 0.34fr) minmax(0, 1fr);
  }

  #inspectorContent .preview-table-row.is-narrative .preview-table-note {
    display: block;
    font-size: 10.2px;
    -webkit-line-clamp: unset;
  }

  #inspectorContent .preview-category-health_welfare_care .preview-table-row {
    grid-template-columns: minmax(106px, 0.44fr) minmax(96px, max-content) minmax(92px, 0.42fr);
  }

  #inspectorContent .preview-category-health_welfare_care .preview-table-row.is-narrative {
    grid-template-columns: minmax(106px, 0.42fr) minmax(0, 1fr);
  }

  #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 {
    grid-template-columns: minmax(82px, 0.38fr) minmax(118px, max-content) minmax(108px, 0.48fr);
    gap: 7px;
  }
}

@media (max-width: 1024px) {
  .app-shell.info-table-preview .brand-block h1,
  .app-shell.info-table-preview .brand-copy h1 {
    width: 100%;
    max-width: 100%;
    font-size: 22.5px !important;
    line-height: 1.08;
  }
}

.app-shell.info-table-preview .topbar {
  grid-template-columns: 258px minmax(0, 1fr);
}

.app-shell.info-table-preview .brand-block {
  width: 300px;
  min-width: 300px;
  padding: 8px 12px;
}

@media (max-width: 1024px) {
  .app-shell.info-table-preview .topbar {
    grid-template-columns: 232px minmax(0, 1fr);
  }

  .app-shell.info-table-preview .brand-block {
    width: 220px;
    min-width: 220px;
    padding-inline: 10px;
  }
}

/* Table preview color layer: restrained signal colors for hierarchy and readability. */
.app-shell.info-table-preview {
  --preview-blue: #1d4ed8;
  --preview-blue-soft: #eff6ff;
  --preview-blue-line: #bfdbfe;
  --preview-ink: #0f172a;
  --preview-muted: #64748b;
  --preview-line: #d8e2ef;
  --preview-surface: #f6f8fc;
  --preview-warn: #b45309;
  --preview-danger: #b42318;
}

.app-shell.info-table-preview .topbar {
  border-bottom-color: #cbd8ea;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.96)),
    #ffffff;
  box-shadow: 0 10px 26px rgba(30, 64, 175, 0.08);
}

.app-shell.info-table-preview .brand-block {
  border-color: var(--preview-blue-line) !important;
  background:
    linear-gradient(135deg, #ffffff 0%, #f4f8ff 58%, #eaf2ff 100%) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.75),
    0 8px 18px rgba(29, 78, 216, 0.08) !important;
  position: relative;
  overflow: hidden;
}

.app-shell.info-table-preview .brand-block::after {
  display: block !important;
  content: "" !important;
  position: absolute;
  inset: 8px auto 8px 8px;
  width: 4px;
  border-radius: 99px;
  background: linear-gradient(180deg, #1d4ed8, #38bdf8);
}

.app-shell.info-table-preview .brand-block h1,
.app-shell.info-table-preview .brand-copy h1 {
  color: #102a5c !important;
  position: relative;
  z-index: 1;
}

.app-shell.info-table-preview .brand-block h1 span:first-child,
.app-shell.info-table-preview .brand-copy h1 span:first-child {
  color: #1e3a8a;
}

.app-shell.info-table-preview .brand-block h1 span:last-child,
.app-shell.info-table-preview .brand-copy h1 span:last-child {
  color: #0f172a;
}

/* 2026-05-11 product brand lock: keep title as two deliberate lines. */
.app-shell.info-table-preview .brand-block h1,
.app-shell.info-table-preview .brand-copy h1 {
  font-size: 21.5px !important;
  line-height: 1.08;
}

.app-shell.info-table-preview .brand-block h1 span,
.app-shell.info-table-preview .brand-copy h1 span {
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .app-shell.info-table-preview .brand-block h1,
  .app-shell.info-table-preview .brand-copy h1 {
    font-size: 19px !important;
  }
}

.app-shell.info-table-preview .command-strip,
.app-shell.info-table-preview .command-strip.command-line {
  border-color: var(--preview-line);
  background: #f8fbff;
}

.app-shell.info-table-preview .nav-group {
  border-color: #d5deeb;
  background: #ffffff;
}

.app-shell.info-table-preview .nav-group-title,
.app-shell.info-table-preview .nav-group legend {
  color: #3b5b8f;
}

.app-shell.info-table-preview .category-chip:has(input:checked),
.app-shell.info-table-preview .category-chip.is-master:has(input:checked),
.app-shell.info-table-preview .tool-button[aria-pressed="true"] {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.app-shell.info-table-preview .inspector {
  background: var(--preview-surface);
}

.app-shell.info-table-preview #inspectorContent .region-head.compact-region-head {
  border-color: var(--preview-line) !important;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045) !important;
}

.app-shell.info-table-preview #inspectorContent .region-kicker,
.app-shell.info-table-preview #inspectorContent .section-title {
  color: #415a7a;
}

.app-shell.info-table-preview #inspectorContent .region-title-line h2,
.app-shell.info-table-preview #inspectorContent .preview-table-section strong {
  color: var(--preview-ink);
}

.app-shell.info-table-preview #inspectorContent .region-title-line > strong {
  border-color: #bfdbfe !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

.app-shell.info-table-preview #inspectorContent .grade-badge,
.app-shell.info-table-preview #inspectorContent .area-badge {
  border-color: #d7dee9 !important;
  background: #f8fafc !important;
  color: #475569 !important;
}

.app-shell.info-table-preview #inspectorContent .compact-score-strip span {
  border-color: #d7e0ee !important;
  background: #fbfdff !important;
  color: #5b6b82 !important;
}

.app-shell.info-table-preview #inspectorContent .compact-score-strip strong {
  color: #12315f !important;
}

.app-shell.info-table-preview #inspectorContent .preview-data-table {
  border-color: var(--preview-line);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035);
}

.app-shell.info-table-preview #inspectorContent .preview-table-root-section {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--detail-accent, #2563eb) 10%, #f8fafc), #f8fafc 72%);
  border-bottom: 1px solid #dbe5f1;
}

.app-shell.info-table-preview #inspectorContent .preview-table-section {
  border-top-color: #dbe4f0;
  background: #f8fafc;
}

.app-shell.info-table-preview #inspectorContent .preview-data-table > .preview-table-section {
  position: relative;
  min-height: 40px;
  padding-left: 16px;
}

.app-shell.info-table-preview #inspectorContent .preview-data-table > .preview-table-section::before {
  content: "";
  width: 4px;
  align-self: stretch;
  min-height: 18px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--detail-accent, #2563eb) 76%, #6b8fd8);
}

.app-shell.info-table-preview #inspectorContent .preview-data-table > .preview-table-root-section {
  min-height: 46px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--detail-accent, #2563eb) 24%, #f8fafc), #f8fafc 72%);
}

.app-shell.info-table-preview #inspectorContent .preview-data-table > .preview-table-root-section::before {
  width: 6px;
  min-height: 24px;
  background: var(--detail-accent, #2563eb);
}

.app-shell.info-table-preview #inspectorContent .preview-data-table > .preview-table-root-section strong {
  font-size: 15.5px;
}

.app-shell.info-table-preview #inspectorContent .preview-data-table > .preview-table-section:not(.preview-table-root-section) {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--detail-accent, #2563eb) 12%, #ffffff), #ffffff 80%);
}

.app-shell.info-table-preview #inspectorContent .section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.app-shell.info-table-preview #inspectorContent .section-title::before {
  content: "";
  width: 6px;
  height: 18px;
  border-radius: 99px;
  background: #60a5fa;
}

.app-shell.info-table-preview #inspectorContent .category-focus-card {
  border-color: #d8e2ef !important;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.035) !important;
}

.app-shell.info-table-preview #inspectorContent .category-focus-head {
  background: linear-gradient(90deg, #f8fbff, #ffffff);
}

.app-shell.info-table-preview #inspectorContent .category-focus-grid > div,
.app-shell.info-table-preview #inspectorContent .category-status-strip > div,
.app-shell.info-table-preview #inspectorContent .category-focus-section-grid > div,
.app-shell.info-table-preview #inspectorContent .detail-visual-card,
.app-shell.info-table-preview #inspectorContent .strategic-area-overview-grid div {
  border-top-color: #edf2f8;
}

.app-shell.info-table-preview #inspectorContent .category-focus-grid > div.is-featured,
.app-shell.info-table-preview #inspectorContent .category-status-strip > div.is-featured,
.app-shell.info-table-preview #inspectorContent .preview-table-row:first-of-type {
  background: #f8fbff;
}

.app-shell.info-table-preview #inspectorContent .preview-table-row {
  border-top-color: #edf2f8;
  background: #ffffff;
}

.app-shell.info-table-preview #inspectorContent .preview-table-row:nth-child(even) {
  background: #fbfdff;
}

.app-shell.info-table-preview #inspectorContent .preview-table-row:hover {
  background: #f3f8ff;
}

.app-shell.info-table-preview #inspectorContent .preview-table-label {
  color: #53657e;
}

.app-shell.info-table-preview #inspectorContent .preview-table-value {
  color: #0f172a;
}

.app-shell.info-table-preview #inspectorContent .preview-table-note {
  color: #718096;
}

.app-shell.info-table-preview #inspectorContent .preview-table-row.is-narrative {
  background:
    linear-gradient(90deg, rgba(239, 246, 255, 0.72), #ffffff 70%);
}

.app-shell.info-table-preview #inspectorContent .preview-table-row.is-narrative .preview-table-value {
  color: #17325e;
}

.app-shell.info-table-preview #inspectorContent .preview-table-row.is-narrative .preview-table-note {
  color: #65758b;
}

.app-shell.info-table-preview #inspectorContent .preview-category-health_welfare_care .preview-table-row {
  grid-template-columns: minmax(132px, 0.48fr) minmax(112px, max-content) minmax(150px, 0.56fr);
}

.app-shell.info-table-preview #inspectorContent .preview-category-health_welfare_care .preview-table-label {
  white-space: normal;
  line-height: 1.22;
}

.app-shell.info-table-preview #inspectorContent .preview-category-health_welfare_care .preview-table-value {
  font-size: 13px;
}

.app-shell.info-table-preview #inspectorContent .preview-category-health_welfare_care .preview-table-note {
  display: -webkit-box;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.app-shell.info-table-preview #inspectorContent .preview-category-health_welfare_care .preview-table-row.is-narrative {
  grid-template-columns: minmax(132px, 0.42fr) minmax(0, 1fr);
}

.app-shell.info-table-preview #inspectorContent .preview-table-row.is-missing .preview-table-value,
.app-shell.info-table-preview #inspectorContent .preview-table-row.is-missing .preview-table-note {
  color: #9aa8ba;
}

.app-shell.info-table-preview #inspectorContent .preview-table-row.is-search-supplement .preview-table-value,
.app-shell.info-table-preview #inspectorContent .preview-table-link {
  color: var(--preview-danger);
}

.app-shell.info-table-preview #inspectorContent .category-source-button,
.app-shell.info-table-preview #inspectorContent .detail-section-link {
  border-color: #d2ddec !important;
  background: #ffffff !important;
  color: #31527f !important;
}

.app-shell.info-table-preview #inspectorContent .preview-source-title + .preview-data-table {
  border-color: #cbd6e5;
  background: #fbfcfe;
}

.app-shell.info-table-preview #inspectorContent .preview-source-title + .preview-data-table .preview-table-section {
  background: #eef3f9;
}

.app-shell.info-table-preview #inspectorContent .risk-item .bar-track {
  background: #e4ebf5;
}

.app-shell.info-table-preview #inspectorContent .risk-item .bar-fill {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

/* Keep preview table section headers left-aligned after the color treatment. */
.app-shell.info-table-preview #inspectorContent .preview-data-table > .preview-table-section {
  justify-content: flex-start;
  text-align: left;
}

.app-shell.info-table-preview #inspectorContent .preview-data-table > .preview-table-section::before {
  flex: 0 0 4px;
}

.app-shell.info-table-preview #inspectorContent .preview-data-table > .preview-table-root-section::before {
  flex-basis: 6px;
}

.app-shell.info-table-preview #inspectorContent .preview-data-table > .preview-table-section strong {
  flex: 0 1 auto;
  margin-right: auto;
  text-align: left;
}

.app-shell.info-table-preview #inspectorContent .preview-data-table > .preview-table-section .category-source-links {
  flex: 0 0 auto;
  margin-left: auto;
}

/* Source appendix rows use long labels, so keep a dedicated 3-column rhythm. */
.app-shell.info-table-preview #inspectorContent .preview-source-title + .preview-data-table .preview-table-row,
.app-shell.info-table-preview #inspectorContent .preview-source-title + .preview-data-table .preview-table-row.is-narrative {
  grid-template-columns: minmax(174px, 0.72fr) minmax(128px, 0.42fr) minmax(0, 1fr);
  align-items: start;
  gap: 8px 14px;
  padding-block: 9px;
}

.app-shell.info-table-preview #inspectorContent .preview-source-title + .preview-data-table .preview-table-label {
  color: #475569;
  font-size: 11.8px;
  line-height: 1.35;
  white-space: normal;
  word-break: keep-all;
}

.app-shell.info-table-preview #inspectorContent .preview-source-title + .preview-data-table .preview-table-value,
.app-shell.info-table-preview #inspectorContent .preview-source-title + .preview-data-table .preview-table-row.is-narrative .preview-table-value {
  grid-column: auto;
  overflow: visible;
  color: #10233f;
  font-size: 12.8px;
  line-height: 1.35;
  text-align: left;
  text-overflow: clip;
  white-space: normal;
  word-break: keep-all;
}

.app-shell.info-table-preview #inspectorContent .preview-source-title + .preview-data-table .preview-table-note,
.app-shell.info-table-preview #inspectorContent .preview-source-title + .preview-data-table .preview-table-row.is-narrative .preview-table-note {
  grid-column: auto;
  display: block;
  margin-top: 0;
  overflow: visible;
  color: #66758a;
  font-size: 11.4px;
  line-height: 1.35;
  text-align: left;
  text-overflow: clip;
  white-space: normal;
  -webkit-line-clamp: unset;
}

@container (max-width: 530px) {
  #inspectorContent .preview-source-title + .preview-data-table .preview-table-row,
  #inspectorContent .preview-source-title + .preview-data-table .preview-table-row.is-narrative {
    grid-template-columns: minmax(134px, 0.66fr) minmax(104px, 0.44fr) minmax(0, 1fr);
    gap: 7px 10px;
  }

  #inspectorContent .preview-source-title + .preview-data-table .preview-table-label,
  #inspectorContent .preview-source-title + .preview-data-table .preview-table-value,
  #inspectorContent .preview-source-title + .preview-data-table .preview-table-note {
    font-size: 11px;
  }
}

#inspectorContent .operational-decision-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 248, 244, 0.92)),
    #ffffff;
  border: 1px solid rgba(47, 75, 61, 0.18);
  border-left: 4px solid #4f7a48;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(35, 49, 38, 0.08);
  display: grid;
  gap: 10px;
  margin: 12px 0 14px;
  padding: 12px;
}

#inspectorContent .operational-decision-head {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

#inspectorContent .operational-decision-head span {
  color: #557058;
  display: block;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.2;
}

#inspectorContent .operational-decision-head strong {
  color: #17291e;
  display: block;
  font-size: 16px;
  line-height: 1.25;
  margin-top: 3px;
  word-break: keep-all;
}

#inspectorContent .operational-decision-head small {
  color: #5a675d;
  display: block;
  font-size: 11px;
  line-height: 1.38;
  margin-top: 3px;
}

#inspectorContent .operational-decision-head em {
  background: rgba(79, 122, 72, 0.1);
  border: 1px solid rgba(79, 122, 72, 0.16);
  border-radius: 999px;
  color: #315337;
  flex: 0 0 auto;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  line-height: 1;
  padding: 6px 8px;
  white-space: nowrap;
}

#inspectorContent .operational-metric-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#inspectorContent .operational-metric-grid > div,
#inspectorContent .operational-list > div {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(73, 91, 78, 0.13);
  border-radius: 7px;
  min-width: 0;
  padding: 8px;
}

#inspectorContent .operational-metric-grid > div.tone-primary {
  border-color: rgba(55, 100, 162, 0.24);
  background: rgba(239, 246, 255, 0.74);
}

#inspectorContent .operational-metric-grid > div.tone-warn {
  border-color: rgba(182, 112, 54, 0.28);
  background: rgba(255, 247, 237, 0.76);
}

#inspectorContent .operational-metric-grid span,
#inspectorContent .operational-list span {
  color: #647066;
  display: block;
  font-size: 10px;
  font-weight: 820;
  line-height: 1.2;
}

#inspectorContent .operational-metric-grid strong,
#inspectorContent .operational-list strong {
  color: #192c20;
  display: block;
  font-size: 13px;
  line-height: 1.25;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

#inspectorContent .operational-metric-grid small,
#inspectorContent .operational-list small {
  color: #5a665e;
  display: block;
  font-size: 10.2px;
  line-height: 1.34;
  margin-top: 4px;
}

#inspectorContent .operational-decision-columns {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#inspectorContent .operational-decision-columns h4 {
  color: #24372a;
  font-size: 11.5px;
  line-height: 1.25;
  margin: 0 0 6px;
}

#inspectorContent .operational-list {
  display: grid;
  gap: 6px;
}

@container (max-width: 720px) {
  #inspectorContent .operational-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #inspectorContent .operational-decision-columns {
    grid-template-columns: 1fr;
  }
}

@container (max-width: 430px) {
  #inspectorContent .operational-decision-head {
    display: grid;
  }

  #inspectorContent .operational-metric-grid {
    grid-template-columns: 1fr;
  }
}

.category-layer-list {
  align-items: stretch;
  gap: 6px;
}

.category-master-control {
  display: inline-flex;
  align-items: stretch;
  min-width: max-content;
  padding: 3px;
  border: 1px solid color-mix(in srgb, var(--domain-color, #5f7f45) 26%, transparent);
  border-radius: 7px;
  background: rgba(255, 255, 252, 0.82);
}

.category-master-control .category-chip {
  min-width: 76px;
  height: 34px;
  justify-content: center;
  border-left-width: 4px;
  font-weight: 900;
}

.decision-domain-group {
  display: inline-grid;
  grid-template-columns: auto minmax(120px, max-content);
  align-items: stretch;
  gap: 4px;
  min-width: max-content;
  padding: 3px;
  border: 1px solid color-mix(in srgb, var(--domain-color, #5f7f45) 22%, transparent);
  border-radius: 7px;
  background: rgba(255, 255, 252, 0.72);
}

.decision-domain-group.is-active {
  border-color: color-mix(in srgb, var(--domain-color, #5f7f45) 52%, transparent);
  background: color-mix(in srgb, var(--domain-color, #5f7f45) 10%, #ffffff);
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--domain-color, #5f7f45) 62%, transparent);
}

.decision-domain-head {
  display: grid;
  gap: 2px;
  min-width: 70px;
  padding: 4px 7px;
  border: 1px solid color-mix(in srgb, var(--domain-color, #5f7f45) 24%, transparent);
  border-radius: 6px;
  background: rgba(255, 255, 252, 0.88);
  color: #24372a;
  cursor: pointer;
  text-align: left;
}

.decision-domain-head[aria-pressed="true"] {
  background: linear-gradient(180deg, color-mix(in srgb, var(--domain-color, #5f7f45) 84%, #ffffff), var(--domain-color, #5f7f45));
  color: #ffffff;
}

.decision-domain-head span,
.decision-domain-head small {
  overflow: hidden;
  font-size: 7.2px;
  font-weight: 820;
  line-height: 1.05;
  opacity: 0.82;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.decision-domain-head strong {
  overflow: hidden;
  font-size: 9px;
  font-weight: 920;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.domain-detail-stack {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.domain-detail-stack .category-chip {
  height: 26px;
  align-items: center;
  border-left: 3px solid var(--chip-color, #5f7f45);
}

.category-chip.is-active {
  outline: 1px solid color-mix(in srgb, var(--chip-color, #5f7f45) 68%, transparent);
  outline-offset: -1px;
}

#inspectorContent .cluster-insight-card,
#inspectorContent .goal-lens-card {
  display: grid;
  gap: 10px;
  margin: 12px 0 14px;
  padding: 12px;
  border: 1px solid rgba(57, 79, 63, 0.16);
  border-left: 4px solid var(--cluster-color, #4f7a48);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 249, 245, 0.92));
  box-shadow: 0 12px 30px rgba(31, 48, 36, 0.07);
}

#inspectorContent .goal-lens-card {
  --cluster-color: #315f67;
}

#inspectorContent .cluster-insight-head,
#inspectorContent .goal-lens-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

#inspectorContent .cluster-insight-head span,
#inspectorContent .cluster-metric-grid span,
#inspectorContent .cluster-score-grid span,
#inspectorContent .cluster-action-grid span,
#inspectorContent .goal-lens-head span,
#inspectorContent .goal-lens-row span {
  display: block;
  color: #617064;
  font-size: 10px;
  font-weight: 840;
  line-height: 1.2;
}

#inspectorContent .cluster-insight-head strong,
#inspectorContent .goal-lens-head strong {
  display: block;
  margin-top: 3px;
  color: #17291e;
  font-size: 16px;
  line-height: 1.24;
  word-break: keep-all;
}

#inspectorContent .cluster-insight-head small,
#inspectorContent .goal-lens-head small {
  display: block;
  margin-top: 4px;
  color: #627066;
  font-size: 11px;
  line-height: 1.36;
}

#inspectorContent .cluster-insight-head em {
  flex: 0 0 auto;
  padding: 6px 8px;
  border: 1px solid color-mix(in srgb, var(--cluster-color, #4f7a48) 24%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--cluster-color, #4f7a48) 10%, #ffffff);
  color: #263d2b;
  font-size: 10px;
  font-style: normal;
  font-weight: 860;
  white-space: nowrap;
}

#inspectorContent .cluster-metric-grid,
#inspectorContent .cluster-score-grid,
#inspectorContent .cluster-action-grid {
  display: grid;
  gap: 7px;
}

#inspectorContent .cluster-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#inspectorContent .cluster-score-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#inspectorContent .cluster-action-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#inspectorContent .cluster-metric-grid > div,
#inspectorContent .cluster-score-grid > div,
#inspectorContent .cluster-action-grid > div,
#inspectorContent .goal-lens-row {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(70, 91, 76, 0.13);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.74);
}

#inspectorContent .cluster-metric-grid > div.is-featured {
  border-color: color-mix(in srgb, var(--cluster-color, #4f7a48) 34%, transparent);
  background: color-mix(in srgb, var(--cluster-color, #4f7a48) 8%, #ffffff);
}

#inspectorContent .cluster-metric-grid strong,
#inspectorContent .cluster-score-grid strong,
#inspectorContent .cluster-action-grid strong,
#inspectorContent .goal-lens-row strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: #18291f;
  font-size: 13px;
  line-height: 1.24;
}

#inspectorContent .cluster-metric-grid small,
#inspectorContent .cluster-score-grid small,
#inspectorContent .cluster-action-grid small,
#inspectorContent .goal-lens-row small {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: #647166;
  font-size: 10.2px;
  line-height: 1.34;
}

#inspectorContent .cluster-score-grid i {
  display: block;
  height: 4px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--score-color, #4f7a48);
}

#inspectorContent .goal-lens-row-stack {
  display: grid;
  gap: 7px;
}

#inspectorContent .goal-lens-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 8px;
  border-left: 3px solid #6f7f72;
}

#inspectorContent .goal-lens-row.tone-critical {
  border-left-color: #a33f50;
  background: rgba(255, 244, 246, 0.72);
}

#inspectorContent .goal-lens-row.tone-warn {
  border-left-color: #b9793d;
  background: rgba(255, 248, 239, 0.72);
}

#inspectorContent .goal-lens-row.tone-stable {
  border-left-color: #4f7a48;
}

#inspectorContent .goal-lens-row.tone-strong {
  border-left-color: #2f6d43;
  background: rgba(241, 248, 241, 0.72);
}

#inspectorContent .balanced-insight-card,
#inspectorContent .data-diagnostic-card,
#inspectorContent .representative-metric-panel {
  display: grid;
  gap: 11px;
  margin: 12px 0 14px;
  padding: 13px;
  border: 1px solid rgba(57, 79, 63, 0.15);
  border-left: 4px solid var(--insight-color, var(--metric-color, #355b5d));
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 245, 0.93));
  box-shadow: 0 12px 30px rgba(31, 48, 36, 0.07);
}

#inspectorContent .representative-metric-panel {
  --insight-color: var(--metric-color, #355b5d);
}

#inspectorContent .data-diagnostic-card {
  --insight-color: var(--diagnostic-color, #355b5d);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(246, 250, 248, 0.94));
}

#inspectorContent .balanced-insight-head,
#inspectorContent .data-diagnostic-head,
#inspectorContent .representative-metric-head,
#inspectorContent .balanced-insight-section-head,
#inspectorContent .representative-metric-group-head {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

#inspectorContent .balanced-insight-head span,
#inspectorContent .data-diagnostic-head span,
#inspectorContent .data-diagnostic-column > strong,
#inspectorContent .data-diagnostic-row-stack span,
#inspectorContent .balanced-issue-grid span,
#inspectorContent .balanced-axis-grid span,
#inspectorContent .balanced-direction-stack span,
#inspectorContent .balanced-evidence-strip span,
#inspectorContent .representative-metric-head span,
#inspectorContent .representative-metric-grid span {
  color: #617064;
  display: block;
  font-size: 10px;
  font-weight: 840;
  line-height: 1.2;
}

#inspectorContent .balanced-insight-head strong,
#inspectorContent .data-diagnostic-head strong,
#inspectorContent .representative-metric-head strong {
  color: #17291e;
  display: block;
  font-size: 16px;
  line-height: 1.24;
  margin-top: 3px;
  word-break: keep-all;
}

#inspectorContent .balanced-insight-head small,
#inspectorContent .data-diagnostic-head small,
#inspectorContent .representative-metric-head small,
#inspectorContent .representative-metric-group-head span {
  color: #627066;
  display: block;
  font-size: 11px;
  line-height: 1.36;
  margin-top: 4px;
}

#inspectorContent .balanced-insight-head em,
#inspectorContent .representative-metric-head em {
  background: color-mix(in srgb, var(--insight-color, var(--metric-color, #355b5d)) 10%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--insight-color, var(--metric-color, #355b5d)) 24%, transparent);
  border-radius: 999px;
  color: #263d2b;
  flex: 0 0 auto;
  font-size: 10px;
  font-style: normal;
  font-weight: 860;
  padding: 6px 8px;
  white-space: nowrap;
}

#inspectorContent .trust-badge-strip {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
  max-width: 48%;
}

#inspectorContent .indicator-trust-badge {
  align-items: center;
  border: 1px solid rgba(80, 98, 85, 0.18);
  border-radius: 999px;
  display: inline-flex;
  gap: 4px;
  margin-left: 5px;
  padding: 3px 6px;
  color: #294231;
  background: rgba(242, 247, 240, 0.96);
  font-size: 9px;
  font-style: normal;
  font-weight: 880;
  line-height: 1;
  vertical-align: 1px;
  white-space: nowrap;
}

#inspectorContent .indicator-trust-badge strong {
  color: inherit;
  display: inline;
  font-size: 9px;
  line-height: 1;
  margin: 0;
}

#inspectorContent .indicator-trust-badge.trust-official {
  border-color: rgba(47, 111, 67, 0.22);
  background: rgba(239, 248, 241, 0.98);
  color: #255f37;
}

#inspectorContent .indicator-trust-badge.trust-comparable {
  border-color: rgba(49, 95, 103, 0.22);
  background: rgba(239, 247, 249, 0.98);
  color: #315f67;
}

#inspectorContent .indicator-trust-badge.trust-supporting {
  border-color: rgba(136, 110, 61, 0.24);
  background: rgba(250, 246, 235, 0.98);
  color: #775e2b;
}

#inspectorContent .indicator-trust-badge.trust-pending {
  border-color: rgba(174, 106, 47, 0.26);
  background: rgba(255, 247, 237, 0.98);
  color: #995c22;
}

#inspectorContent .indicator-trust-badge.trust-missing {
  border-color: rgba(159, 71, 80, 0.25);
  background: rgba(255, 242, 244, 0.98);
  color: #99414b;
}

#inspectorContent .representative-metric-label {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

#inspectorContent .representative-metric-label .indicator-trust-badge {
  margin-left: 0;
  padding: 2px 5px;
}

#inspectorContent .detail-visual-label .indicator-trust-badge,
#inspectorContent .preview-table-label .indicator-trust-badge {
  margin-left: 4px;
  padding: 2px 5px;
  vertical-align: 1px;
}

#inspectorContent .balanced-issue-grid,
#inspectorContent .balanced-axis-grid,
#inspectorContent .balanced-evidence-strip,
#inspectorContent .representative-metric-grid {
  display: grid;
  gap: 7px;
}

#inspectorContent .balanced-issue-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#inspectorContent .balanced-axis-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#inspectorContent .balanced-evidence-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#inspectorContent .representative-metric-groups {
  display: grid;
  gap: 9px;
}

#inspectorContent .representative-metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  margin-top: 7px;
}

#inspectorContent .balanced-issue-grid > div,
#inspectorContent .balanced-axis-grid > div,
#inspectorContent .balanced-direction-stack > div,
#inspectorContent .balanced-evidence-strip > div,
#inspectorContent .representative-metric-grid > div {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(70, 91, 76, 0.13);
  border-radius: 7px;
  min-width: 0;
  padding: 8px;
}

#inspectorContent .balanced-issue-grid > div,
#inspectorContent .balanced-direction-stack > div {
  border-left: 3px solid rgba(90, 105, 92, 0.34);
}

#inspectorContent .balanced-issue-grid > div.tone-critical,
#inspectorContent .balanced-direction-stack > div.tone-critical {
  background: rgba(255, 244, 246, 0.76);
  border-left-color: #a33f50;
}

#inspectorContent .balanced-issue-grid > div.tone-warn,
#inspectorContent .balanced-direction-stack > div.tone-warn {
  background: rgba(255, 248, 239, 0.76);
  border-left-color: #b9793d;
}

#inspectorContent .balanced-issue-grid > div.tone-primary,
#inspectorContent .balanced-direction-stack > div.tone-primary {
  background: rgba(240, 247, 250, 0.76);
  border-left-color: #3f718c;
}

#inspectorContent .balanced-issue-grid > div.tone-stable,
#inspectorContent .balanced-direction-stack > div.tone-stable {
  background: rgba(241, 248, 241, 0.76);
  border-left-color: #4f7a48;
}

#inspectorContent .balanced-issue-grid strong,
#inspectorContent .balanced-axis-grid strong,
#inspectorContent .balanced-direction-stack strong,
#inspectorContent .balanced-evidence-strip strong,
#inspectorContent .representative-metric-grid strong {
  color: #18291f;
  display: block;
  font-size: 13px;
  line-height: 1.24;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

#inspectorContent .balanced-issue-grid small,
#inspectorContent .balanced-axis-grid small,
#inspectorContent .balanced-direction-stack p,
#inspectorContent .balanced-evidence-strip small,
#inspectorContent .representative-metric-grid small {
  color: #647166;
  display: block;
  font-size: 10.2px;
  line-height: 1.34;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

#inspectorContent .balanced-insight-section {
  border-top: 1px solid rgba(87, 102, 81, 0.13);
  padding-top: 9px;
}

#inspectorContent .balanced-insight-section-head {
  margin-bottom: 7px;
}

#inspectorContent .balanced-insight-section-head strong,
#inspectorContent .representative-metric-group-head strong {
  color: #26392b;
  font-size: 12px;
  line-height: 1.25;
}

#inspectorContent .balanced-insight-section-head span {
  color: #6a7366;
  font-size: 10px;
  font-weight: 700;
  text-align: right;
}

#inspectorContent .balanced-axis-grid i {
  background: var(--axis-color, #4f7a48);
  border-radius: 999px;
  display: block;
  height: 4px;
  margin-top: 7px;
}

#inspectorContent .balanced-direction-stack {
  display: grid;
  gap: 7px;
}

#inspectorContent .balanced-direction-stack > div {
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
}

#inspectorContent .representative-metric-group {
  border-left: 3px solid var(--metric-color, #355b5d);
  padding-left: 9px;
}

#inspectorContent .representative-metric-grid > div.is-featured {
  background: color-mix(in srgb, var(--metric-color, #355b5d) 8%, #ffffff);
  border-color: color-mix(in srgb, var(--metric-color, #355b5d) 28%, rgba(70, 91, 76, 0.13));
}

#inspectorContent .representative-metric-grid > div.is-featured strong {
  color: color-mix(in srgb, var(--metric-color, #355b5d) 68%, #17291e);
}

#inspectorContent .data-diagnostic-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#inspectorContent .data-diagnostic-column {
  border-left: 3px solid color-mix(in srgb, var(--diagnostic-color, #355b5d) 48%, rgba(70, 91, 76, 0.22));
  min-width: 0;
  padding-left: 9px;
}

#inspectorContent .data-diagnostic-column > strong {
  color: color-mix(in srgb, var(--diagnostic-color, #355b5d) 72%, #17291e);
  margin-bottom: 7px;
}

#inspectorContent .data-diagnostic-row-stack {
  display: grid;
  gap: 7px;
}

#inspectorContent .data-diagnostic-row-stack > div {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(70, 91, 76, 0.13);
  border-radius: 7px;
  min-width: 0;
  padding: 8px;
}

#inspectorContent .data-diagnostic-row-stack strong {
  color: #18291f;
  display: block;
  font-size: 13px;
  line-height: 1.24;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

#inspectorContent .data-diagnostic-row-stack small {
  color: #647166;
  display: block;
  font-size: 10.2px;
  line-height: 1.34;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

#inspectorContent .employment-pack-diagnostic {
  border-top: 1px solid rgba(87, 102, 81, 0.13);
  display: grid;
  gap: 8px;
  padding-top: 10px;
}

#inspectorContent .employment-pack-head {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

#inspectorContent .employment-pack-head span,
#inspectorContent .employment-status-grid span,
#inspectorContent .employment-priority-strip span {
  color: #617064;
  display: block;
  font-size: 10px;
  font-weight: 840;
  line-height: 1.2;
}

#inspectorContent .employment-pack-head strong {
  color: #17291e;
  display: block;
  font-size: 13px;
  line-height: 1.24;
  margin-top: 3px;
}

#inspectorContent .employment-pack-head small,
#inspectorContent .employment-status-grid small,
#inspectorContent .employment-priority-strip small {
  color: #647166;
  display: block;
  font-size: 10.2px;
  line-height: 1.34;
  margin-top: 4px;
}

#inspectorContent .employment-pack-head em {
  background: color-mix(in srgb, #a8753b 10%, #ffffff);
  border: 1px solid color-mix(in srgb, #a8753b 24%, transparent);
  border-radius: 999px;
  color: #6f4f1f;
  flex: 0 0 auto;
  font-size: 10px;
  font-style: normal;
  font-weight: 860;
  padding: 6px 8px;
  white-space: nowrap;
}

#inspectorContent .employment-status-grid,
#inspectorContent .employment-priority-strip {
  display: grid;
  gap: 7px;
}

#inspectorContent .employment-status-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#inspectorContent .employment-priority-strip {
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
}

#inspectorContent .employment-status-grid > div,
#inspectorContent .employment-priority-strip > div {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(70, 91, 76, 0.13);
  border-left: 3px solid rgba(90, 105, 92, 0.34);
  border-radius: 7px;
  min-width: 0;
  padding: 8px;
}

#inspectorContent .employment-status-grid > div.trust-official {
  border-left-color: #2f6f43;
}

#inspectorContent .employment-status-grid > div.trust-supporting {
  border-left-color: #8b733d;
}

#inspectorContent .employment-status-grid > div.trust-pending {
  border-left-color: #b9793d;
}

#inspectorContent .employment-status-grid > div.trust-missing {
  border-left-color: #a33f50;
}

#inspectorContent .employment-status-grid strong,
#inspectorContent .employment-priority-strip strong {
  color: #18291f;
  display: block;
  font-size: 12px;
  line-height: 1.24;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  #inspectorContent .balanced-issue-grid,
  #inspectorContent .balanced-axis-grid,
  #inspectorContent .balanced-evidence-strip,
  #inspectorContent .data-diagnostic-grid,
  #inspectorContent .employment-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #inspectorContent .balanced-direction-stack > div {
    grid-template-columns: minmax(0, 1fr);
  }

  #inspectorContent .trust-badge-strip {
    justify-content: flex-start;
    max-width: none;
  }
}

@media (max-width: 620px) {
  #inspectorContent .data-diagnostic-grid,
  #inspectorContent .employment-status-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

#inspectorContent .platform-concept-overview {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--domain-color, #4f7a48) 22%, transparent);
  border-left: 4px solid var(--domain-color, #4f7a48);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--domain-color, #4f7a48) 6%, #ffffff), #ffffff);
  box-shadow: 0 12px 30px rgba(31, 48, 36, 0.07);
}

#inspectorContent .platform-concept-head span,
#inspectorContent .platform-concept-metrics span,
#inspectorContent .concept-domain-card span {
  display: block;
  color: #647166;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
}

#inspectorContent .platform-concept-head strong {
  display: block;
  margin-top: 4px;
  color: #17291e;
  font-size: 16px;
  line-height: 1.25;
  word-break: keep-all;
}

#inspectorContent .platform-concept-head small {
  display: block;
  margin-top: 5px;
  color: #657268;
  font-size: 11px;
  line-height: 1.4;
}

#inspectorContent .platform-concept-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

#inspectorContent .platform-concept-metrics > div {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(70, 91, 76, 0.13);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.74);
}

#inspectorContent .platform-concept-metrics strong {
  display: block;
  margin-top: 4px;
  color: #18291f;
  font-size: 15px;
  line-height: 1.24;
}

#inspectorContent .platform-concept-metrics small {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: #647166;
  font-size: 9.7px;
  line-height: 1.3;
}

#inspectorContent .concept-domain-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

#inspectorContent .concept-domain-card {
  min-width: 0;
  padding: 9px;
  border: 1px solid color-mix(in srgb, var(--domain-color, #4f7a48) 20%, transparent);
  border-left: 3px solid var(--domain-color, #4f7a48);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.76);
}

#inspectorContent .concept-domain-card.is-active {
  background: color-mix(in srgb, var(--domain-color, #4f7a48) 8%, #ffffff);
}

#inspectorContent .concept-domain-card strong {
  display: block;
  margin-top: 4px;
  color: #18291f;
  font-size: 12.5px;
  line-height: 1.25;
}

#inspectorContent .concept-domain-card small {
  display: block;
  margin-top: 4px;
  color: #647166;
  font-size: 9.7px;
  line-height: 1.32;
}

@container (max-width: 720px) {
  #inspectorContent .cluster-metric-grid,
  #inspectorContent .cluster-score-grid,
  #inspectorContent .cluster-action-grid,
  #inspectorContent .platform-concept-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #inspectorContent .goal-lens-row {
    grid-template-columns: 1fr;
  }

  #inspectorContent .concept-domain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container (max-width: 430px) {
  #inspectorContent .cluster-metric-grid,
  #inspectorContent .cluster-score-grid,
  #inspectorContent .cluster-action-grid,
  #inspectorContent .platform-concept-metrics,
  #inspectorContent .concept-domain-grid {
    grid-template-columns: 1fr;
  }
}

/* 2026-05-12 decision workflow upgrade: layered map, accordion report, action workbench. */
.policy-overlay-panel {
  position: absolute;
  z-index: 12;
  right: 14px;
  top: 154px;
  display: grid;
  gap: 6px;
  width: 152px;
  padding: 10px;
  border: 1px solid rgba(42, 59, 49, 0.16);
  border-radius: 8px;
  background: rgba(252, 255, 249, 0.92);
  box-shadow: 0 12px 28px rgba(24, 39, 30, 0.12);
  backdrop-filter: blur(10px);
}

.policy-overlay-head {
  display: grid;
  gap: 2px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(62, 83, 67, 0.12);
}

.policy-overlay-head strong {
  color: #17291e;
  font-size: 12px;
  font-weight: 860;
}

.policy-overlay-head span,
.policy-overlay-panel label {
  color: #5c6d60;
  font-size: 10.5px;
  font-weight: 760;
}

.policy-overlay-panel label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  cursor: pointer;
}

.policy-overlay-panel input {
  width: 12px;
  height: 12px;
  accent-color: #4f7a48;
}

.vacancy-marker,
.tourism-marker,
.safety-marker {
  stroke: #fffaf0;
  stroke-width: 1.4;
  paint-order: stroke;
  cursor: pointer;
}

.vacancy-marker {
  fill: #b85c4a;
}

.tourism-marker {
  fill: #4f7c91;
}

.safety-marker {
  fill: #a33f50;
}

.industrial-complex-marker {
  cursor: pointer;
  outline: none;
  transition: opacity 0.16s ease;
}

.industrial-complex-marker:hover,
.industrial-complex-marker:focus-visible {
  opacity: 0.96;
}

.industrial-complex-halo {
  fill: rgba(15, 23, 42, 0.12);
  stroke: rgba(255, 255, 255, 0.72);
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
}

.industrial-complex-dot {
  stroke: #ffffff;
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}

.industrial-complex-marker.tone-national .industrial-complex-dot {
  fill: #2563eb;
}

.industrial-complex-marker.tone-general .industrial-complex-dot {
  fill: #0f766e;
}

.industrial-complex-marker.tone-urban .industrial-complex-dot {
  fill: #7c3aed;
}

.industrial-complex-marker.tone-agro .industrial-complex-dot {
  fill: #65a30d;
}

.industrial-complex-marker.tone-planned .industrial-complex-dot {
  fill: #f59e0b;
}

.industrial-complex-label {
  fill: #0f172a;
  font-size: 7.4px;
  font-weight: 850;
  letter-spacing: 0;
  dominant-baseline: middle;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.88);
  stroke-width: 2;
}

#inspectorContent .inspector-accordion {
  overflow: hidden;
  border: 1px solid #d9e1ec;
  border-radius: 10px;
  background: #ffffff;
}

#inspectorContent .inspector-accordion + .inspector-accordion {
  margin-top: 4px;
}

#inspectorContent .inspector-accordion > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 11px 14px;
  color: #172033;
  font-size: 14px;
  font-weight: 860;
  cursor: pointer;
  list-style: none;
}

#inspectorContent .inspector-accordion > summary::-webkit-details-marker {
  display: none;
}

#inspectorContent .inspector-accordion > summary::after {
  content: "+";
  color: #66758a;
  font-size: 16px;
  font-weight: 820;
}

#inspectorContent .inspector-accordion[open] > summary {
  border-bottom: 1px solid #e4eaf2;
}

#inspectorContent .inspector-accordion[open] > summary::after {
  content: "-";
}

#inspectorContent .inspector-accordion.tone-action {
  border-left: 4px solid #9a7440;
}

#inspectorContent .inspector-accordion.tone-benchmark {
  border-left: 4px solid #3f718c;
}

#inspectorContent .inspector-accordion-body {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

#inspectorContent .cluster-radar-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(67, 89, 72, 0.12);
  border-radius: 8px;
  background: rgba(248, 251, 247, 0.8);
}

#inspectorContent .cluster-radar-card svg {
  width: 116px;
  height: 116px;
}

#inspectorContent .cluster-radar-ring {
  fill: none;
  stroke: rgba(83, 102, 88, 0.18);
  stroke-width: 0.8;
}

#inspectorContent .cluster-radar-axis {
  stroke: rgba(83, 102, 88, 0.2);
  stroke-width: 0.8;
}

#inspectorContent .cluster-radar-shape {
  fill: color-mix(in srgb, var(--insight-color, #4f7a48) 24%, transparent);
  stroke: var(--insight-color, #4f7a48);
  stroke-width: 2;
}

#inspectorContent .cluster-radar-dot {
  fill: #ffffff;
  stroke: var(--insight-color, #4f7a48);
  stroke-width: 1.6;
}

#inspectorContent .cluster-radar-card text {
  fill: #51645a;
  font-size: 7px;
  font-weight: 760;
  text-anchor: middle;
  dominant-baseline: middle;
}

#inspectorContent .cluster-radar-card strong,
#inspectorContent .policy-action-head strong,
#inspectorContent .peer-benchmark-head strong {
  display: block;
  color: #17291e;
  font-size: 14px;
  font-weight: 860;
}

#inspectorContent .cluster-radar-card small,
#inspectorContent .policy-action-head small,
#inspectorContent .peer-benchmark-head small {
  display: block;
  margin-top: 4px;
  color: #66758a;
  font-size: 11px;
  line-height: 1.35;
}

#inspectorContent .data-reliability-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(78, 98, 84, 0.13);
  border-left: 3px solid #4f7a48;
  border-radius: 8px;
  background: #f8fafc;
}

#inspectorContent .data-reliability-strip.tone-warn {
  border-left-color: #b9793d;
  background: #fff8ef;
}

#inspectorContent .data-reliability-strip.tone-critical {
  border-left-color: #a33f50;
  background: #fff4f6;
}

#inspectorContent .data-reliability-strip span,
#inspectorContent .policy-action-head span,
#inspectorContent .peer-benchmark-head span,
#inspectorContent .what-if-card > span,
#inspectorContent .demographic-trend-card > span {
  display: block;
  color: #617064;
  font-size: 10px;
  font-weight: 840;
}

#inspectorContent .data-reliability-strip strong {
  display: block;
  margin-top: 3px;
  color: #17291e;
  font-size: 13px;
  font-weight: 860;
}

#inspectorContent .data-reliability-strip small {
  grid-column: 1 / -1;
  color: #66758a;
  font-size: 11px;
}

#inspectorContent .balanced-issue-grid button {
  margin-top: 7px;
  min-height: 26px;
  width: 100%;
  border: 1px solid rgba(82, 98, 86, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
  color: #314238;
  font-size: 10px;
  font-weight: 820;
  cursor: pointer;
}

#inspectorContent .policy-action-workbench,
#inspectorContent .peer-benchmark-card {
  display: grid;
  gap: 11px;
  padding: 13px;
  border: 1px solid rgba(72, 91, 77, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

#inspectorContent .policy-action-head,
#inspectorContent .peer-benchmark-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

#inspectorContent .policy-action-head em {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid rgba(154, 116, 64, 0.22);
  border-radius: 999px;
  background: #fff8ef;
  color: #7a5526;
  font-size: 10px;
  font-style: normal;
  font-weight: 840;
}

#inspectorContent .cause-trace-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

#inspectorContent .cause-trace-grid button {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 8px;
  border: 1px solid rgba(72, 91, 77, 0.16);
  border-radius: 7px;
  background: #ffffff;
  color: #17291e;
  text-align: left;
  cursor: pointer;
}

#inspectorContent .cause-trace-grid span,
#inspectorContent .policy-action-foot span,
#inspectorContent .what-if-row-stack span {
  color: #617064;
  font-size: 10px;
  font-weight: 840;
}

#inspectorContent .cause-trace-grid strong,
#inspectorContent .policy-action-foot strong,
#inspectorContent .what-if-row-stack strong {
  color: #17291e;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

#inspectorContent .policy-simulator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 9px;
}

#inspectorContent .what-if-card,
#inspectorContent .demographic-trend-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e0e7ef;
  border-radius: 8px;
  background: #ffffff;
}

#inspectorContent .what-if-card > strong,
#inspectorContent .demographic-trend-card > strong {
  display: block;
  margin-top: 3px;
  color: #17291e;
  font-size: 15px;
  font-weight: 860;
}

#inspectorContent .what-if-card > small,
#inspectorContent .demographic-trend-card > small {
  display: block;
  margin-top: 4px;
  color: #66758a;
  font-size: 11px;
  line-height: 1.35;
}

#inspectorContent .what-if-row-stack {
  display: grid;
  gap: 6px;
  margin-top: 9px;
}

#inspectorContent .what-if-row-stack > div {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(70px, 0.55fr) minmax(0, 1.2fr);
  gap: 7px;
  align-items: center;
  padding-top: 6px;
  border-top: 1px solid #edf1f6;
}

#inspectorContent .what-if-row-stack small {
  color: #66758a;
  font-size: 10.5px;
  line-height: 1.35;
}

#inspectorContent .demographic-trend-card svg {
  width: 100%;
  height: 92px;
  margin-top: 8px;
}

#inspectorContent .demographic-trend-card polyline {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#inspectorContent .demographic-trend-card .trend-youth {
  stroke: #3f718c;
}

#inspectorContent .demographic-trend-card .trend-aging {
  stroke: #a33f50;
}

#inspectorContent .demographic-trend-card line {
  stroke: #dbe3ee;
  stroke-width: 1;
}

#inspectorContent .demographic-trend-card text {
  fill: #718096;
  font-size: 9px;
  font-weight: 760;
}

#inspectorContent .policy-action-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid #edf1f6;
}

#inspectorContent .peer-benchmark-table {
  overflow: hidden;
  border: 1px solid #e0e7ef;
  border-radius: 8px;
}

#inspectorContent .peer-benchmark-row {
  display: grid;
  grid-template-columns: minmax(96px, 0.85fr) repeat(4, minmax(62px, 1fr));
  align-items: center;
  min-height: 38px;
  border-top: 1px solid #edf1f6;
}

#inspectorContent .peer-benchmark-row:first-child {
  border-top: 0;
}

#inspectorContent .peer-benchmark-row span,
#inspectorContent .peer-benchmark-row strong {
  min-width: 0;
  padding: 8px;
  font-size: 11px;
  line-height: 1.25;
}

#inspectorContent .peer-benchmark-row span {
  color: #526075;
  font-weight: 800;
}

#inspectorContent .peer-benchmark-row strong {
  color: #17291e;
  font-weight: 850;
  text-align: right;
}

#inspectorContent .peer-benchmark-header {
  background: #f8fafc;
}

#inspectorContent .peer-benchmark-row strong.tone-critical {
  color: #a33f50;
}

#inspectorContent .peer-benchmark-row strong.tone-warn {
  color: #996123;
}

#inspectorContent .peer-benchmark-row strong.tone-stable {
  color: #2f6d43;
}

#inspectorContent .raw-decision-dashboard {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e8edf3;
  border-radius: 8px;
  background: #f5f7fa;
  box-shadow: none;
}

#inspectorContent .raw-decision-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

#inspectorContent .raw-decision-head > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

#inspectorContent .raw-decision-head span {
  color: #5f6f7d;
  font-size: 10px;
  font-weight: 880;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#inspectorContent .raw-decision-head strong {
  color: #13231d;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
}

#inspectorContent .raw-decision-head small {
  color: #526075;
  font-size: 11px;
  line-height: 1.45;
}

#inspectorContent .raw-decision-head em {
  flex: 0 0 auto;
  max-width: 128px;
  padding: 6px 8px;
  border: 1px solid rgba(53, 91, 93, 0.18);
  border-radius: 999px;
  background: #eef6f6;
  color: #2f5354;
  font-size: 10px;
  font-style: normal;
  font-weight: 860;
  line-height: 1.25;
  text-align: center;
}

#inspectorContent .raw-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#inspectorContent .raw-fact-card {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 6px;
  padding: 11px 11px 10px 13px;
  overflow: hidden;
  border: 1px solid #edf1f5;
  border-left: 4px solid #64748b;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035);
}

#inspectorContent .raw-fact-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

#inspectorContent .raw-fact-top span {
  min-width: 0;
  color: #66758a;
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

#inspectorContent .raw-fact-card strong {
  min-width: 0;
  color: #101828;
  font-family: "Inter", "Roboto", "Segoe UI", "Malgun Gothic", sans-serif;
  font-size: 18px;
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-variant-numeric: tabular-nums lining-nums;
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

#inspectorContent .raw-fact-card small {
  display: flex;
  min-width: 0;
  gap: 4px;
  align-items: center;
  color: #526075;
  font-size: 10.5px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

#inspectorContent .raw-fact-card small i {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 9px;
  line-height: 1;
}

#inspectorContent .raw-fact-card em {
  justify-self: end;
  padding: 3px 6px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-family: "Inter", "Roboto", "Segoe UI", "Malgun Gothic", sans-serif;
  font-size: 9.5px;
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-variant-numeric: tabular-nums lining-nums;
  font-style: normal;
  font-weight: 840;
  line-height: 1.2;
}

#inspectorContent .raw-fact-card.tone-critical {
  border-left-color: #c2414b;
}

#inspectorContent .raw-fact-card.tone-warn {
  border-left-color: #c2872d;
}

#inspectorContent .raw-fact-card.tone-stable {
  border-left-color: #2f77b4;
}

#inspectorContent .raw-fact-card.tone-neutral {
  border-left-color: #7b8ca0;
}

#inspectorContent .raw-fact-card small.trend-up,
#inspectorContent .raw-fact-card small.trend-stable {
  color: #2f6d43;
}

#inspectorContent .raw-fact-card small.trend-down {
  color: #a33f50;
}

#inspectorContent .raw-fact-card small.trend-neutral {
  color: #526075;
}

#inspectorContent .raw-rank-bullet {
  position: relative;
  height: 4px;
  margin-top: 1px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f6;
}

#inspectorContent .raw-rank-bullet::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 22%;
  content: "";
  background: rgba(47, 119, 180, 0.22);
}

#inspectorContent .raw-rank-bullet span {
  position: absolute;
  top: 50%;
  left: var(--rank-position, 50%);
  width: 8px;
  height: 8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #334155;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.22);
  transform: translate(-50%, -50%);
}

#inspectorContent .raw-policy-line {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(148, 91, 28, 0.16);
  border-left: 4px solid #c2872d;
  border-radius: 7px;
  background: #fff7ed;
}

#inspectorContent .raw-policy-line.tone-insight {
  border-color: rgba(44, 76, 122, 0.14);
  border-left-color: #2f77b4;
  background: #f3f6fb;
}

#inspectorContent .raw-policy-line > div {
  display: grid;
  min-width: 0;
  gap: 5px;
}

#inspectorContent .raw-policy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(194, 135, 45, 0.14);
  color: #8a5a1f;
  font-family: "Inter", "Roboto", "Segoe UI", "Malgun Gothic", sans-serif;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

#inspectorContent .raw-policy-line.tone-insight .raw-policy-icon {
  background: rgba(47, 119, 180, 0.13);
  color: #285d8d;
}

#inspectorContent .raw-policy-line div > span {
  color: #66758a;
  font-size: 10px;
  font-weight: 860;
}

#inspectorContent .raw-policy-line strong {
  color: #172033;
  font-size: 13.5px;
  font-weight: 880;
  line-height: 1.35;
}

#inspectorContent .raw-policy-line p,
#inspectorContent .raw-policy-line small {
  color: #526075;
  font-size: 11px;
  line-height: 1.45;
}

#inspectorContent .raw-policy-line p {
  margin: 0;
}

.ai-beta-locked {
  align-content: start;
}

.ai-beta-lock-card {
  min-height: auto;
}

.ai-beta-lock-copy p {
  display: none;
}

@media (max-width: 760px) {
  .policy-overlay-panel {
    position: static;
    width: auto;
    margin: 8px 10px 0;
  }

  #inspectorContent .policy-simulator-grid,
  #inspectorContent .data-reliability-strip,
  #inspectorContent .raw-fact-grid,
  #inspectorContent .raw-decision-head,
  #inspectorContent .cause-trace-grid,
  #inspectorContent .peer-benchmark-row {
    grid-template-columns: 1fr;
  }

  #inspectorContent .raw-decision-head {
    display: grid;
  }

  #inspectorContent .raw-decision-head em {
    max-width: none;
    justify-self: start;
  }

#inspectorContent .cluster-radar-card {
    grid-template-columns: 1fr;
  }
}

/* High-end SaaS tuning pass: blue means reliable/strong, warm colors mean risk. */
:root {
  --stable: #2f77b4;
}

.signal-region-metric.tone-up b {
  color: #2563eb;
}

#inspectorContent .peer-benchmark-row strong.tone-stable,
#inspectorContent .goal-lens-row.tone-stable {
  color: #2563eb;
}

#inspectorContent .goal-lens-row.tone-stable {
  border-left-color: #2f77b4;
}

#inspectorContent .balanced-issue-grid > div.tone-stable,
#inspectorContent .balanced-direction-stack > div.tone-stable {
  border-left-color: #2f77b4;
}

.category-stack-group {
  overflow: visible;
}

.category-layer-list,
.domain-detail-stack {
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  gap: 5px;
  overflow: visible;
}

.category-master-control,
.decision-domain-group {
  border-color: #e2e8f0;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: none;
}

.decision-domain-group {
  grid-template-columns: auto minmax(0, 1fr);
  min-width: min(100%, max-content);
  padding: 2px;
}

.decision-domain-group.is-active {
  border-color: #bfdbfe;
  background: #f8fbff;
  box-shadow: none;
}

.decision-domain-head {
  min-width: 66px;
  border-color: #d7e0ea;
  background: #ffffff;
  color: #1f2a37;
  box-shadow: none;
}

.decision-domain-head[aria-pressed="true"] {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
}

.category-chip,
.domain-detail-stack .category-chip,
.category-master-control .category-chip {
  position: relative;
  height: 24px;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid #d9e2ec;
  border-left-width: 1px;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  box-shadow: none;
  font-size: 11px;
  font-weight: 780;
}

.category-master-control .category-chip {
  height: 28px;
  min-height: 28px;
  font-weight: 900;
}

.category-chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.category-chip:has(input:checked),
.category-chip.is-master:has(input:checked),
.app-shell.info-table-preview .category-chip:has(input:checked),
.app-shell.info-table-preview .category-chip.is-master:has(input:checked) {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.category-chip.is-active {
  outline: 1px solid rgba(37, 99, 235, 0.38);
  outline-offset: 1px;
}

.category-chip:hover,
.category-chip:focus-within {
  border-color: #93c5fd;
  background: #f8fbff;
}

#inspectorContent .raw-fact-card.tone-stable {
  border-left-color: #2f77b4;
}

#inspectorContent .raw-fact-card small.trend-up,
#inspectorContent .raw-fact-card small.trend-stable,
#inspectorContent .raw-fact-gap.trend-up,
#inspectorContent .raw-fact-gap.trend-stable {
  color: #2563eb;
}

#inspectorContent .raw-fact-gap.trend-down {
  color: #b3473f;
}

#inspectorContent .raw-fact-gap.trend-neutral {
  color: #526075;
}

#inspectorContent .raw-fact-gap {
  display: flex;
  min-width: 0;
  gap: 5px;
  align-items: baseline;
  color: #526075;
  line-height: 1.15;
}

#inspectorContent .raw-fact-gap i {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
}

#inspectorContent .raw-fact-gap b {
  min-width: 0;
  color: currentcolor;
  font-family: "Inter", "Roboto", "Segoe UI", "Malgun Gothic", sans-serif;
  font-size: 13px;
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-variant-numeric: tabular-nums lining-nums;
  font-weight: 920;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

#inspectorContent .raw-fact-gap span {
  min-width: 0;
  color: #64748b;
  font-size: 9.5px;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#inspectorContent .raw-fact-meta {
  display: flex;
  min-width: 0;
  gap: 5px;
  align-items: center;
  justify-content: space-between;
}

#inspectorContent .raw-fact-meta span {
  min-width: 0;
  color: #8a97a8;
  font-family: "Inter", "Roboto", "Segoe UI", "Malgun Gothic", sans-serif;
  font-size: 9px;
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-variant-numeric: tabular-nums lining-nums;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#inspectorContent .raw-fact-meta em {
  flex: 0 0 auto;
  justify-self: auto;
  padding: 2px 6px;
  background: #f1f5f9;
  color: #475569;
  font-size: 8.8px;
}

#inspectorContent .raw-fact-meta em.status-up,
#inspectorContent .raw-fact-meta em.status-stable {
  background: #eff6ff;
  color: #1d4ed8;
}

#inspectorContent .raw-fact-meta em.status-down {
  background: #fff1f1;
  color: #b3473f;
}

#inspectorContent .raw-policy-line {
  border-color: rgba(217, 138, 22, 0.22);
  border-left-color: #d98a16;
  background: #fff9e6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

#inspectorContent .raw-policy-line.tone-insight {
  border-color: rgba(47, 119, 180, 0.16);
  border-left-color: #2f77b4;
  background: #f4f8ff;
}

@media (max-width: 760px) {
  .decision-domain-group {
    grid-template-columns: 1fr;
  }

  .category-layer-list,
  .domain-detail-stack {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
}

/* Controller ergonomics pass. */
body,
.app-shell {
  background: #f8fafc;
}

.decision-domain-group {
  grid-template-columns: minmax(112px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 5px;
  border-color: transparent;
  border-radius: 11px;
  background: rgba(248, 250, 252, 0.92);
}

.decision-domain-controller {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  align-items: stretch;
  min-width: 86px;
}

.decision-domain-head {
  min-width: 0;
  min-height: 30px;
  padding: 5px 9px;
  border: 0;
  border-radius: 999px;
  background: #eef2f7;
  color: #334155;
  box-shadow: none;
}

.decision-domain-head strong {
  font-size: 10.5px;
}

.decision-domain-head span {
  display: none;
}

.decision-domain-head[aria-pressed="true"] {
  border: 0;
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.category-chip,
.domain-detail-stack .category-chip,
.category-master-control .category-chip,
.app-shell.info-table-preview .category-chip {
  min-height: 30px;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #eef2f7;
  color: #334155;
  box-shadow: none;
  font-size: 12px;
  font-weight: 820;
  cursor: pointer;
  transition:
    background-color 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.category-chip::before,
.category-chip.is-master::before {
  display: none !important;
  content: none !important;
}

.category-chip span {
  pointer-events: none;
}

.category-chip:has(input:checked),
.category-chip.is-master:has(input:checked),
.app-shell.info-table-preview .category-chip:has(input:checked),
.app-shell.info-table-preview .category-chip.is-master:has(input:checked) {
  border: 0;
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.16);
}

.category-chip:hover,
.category-chip:focus-within {
  background: #e0ecff;
  color: #1d4ed8;
  transform: translateY(-1px);
}

.category-chip:has(input:checked):hover,
.category-chip:has(input:checked):focus-within {
  background: #1d4ed8;
  color: #ffffff;
}

.category-chip input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.domain-detail-stack,
.category-layer-list {
  gap: 6px;
}

.signal-region-metric.tone-down b,
#inspectorContent .raw-fact-gap.trend-down,
#inspectorContent .raw-fact-meta em.status-down {
  color: #dc2626;
}

#inspectorContent .raw-fact-card.tone-critical {
  border-left-color: #dc2626;
}

#inspectorContent .raw-fact-card {
  padding: 14px 14px 13px 16px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.055);
}

.signal-metric-main {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}

.signal-sparkline {
  display: inline-flex;
  width: 32px;
  height: 12px;
  opacity: 0.68;
}

.signal-sparkline svg {
  width: 32px;
  height: 12px;
  overflow: visible;
}

.signal-sparkline polyline {
  fill: none;
  stroke: #94a3b8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.signal-sparkline.tone-down polyline {
  stroke: #dc2626;
}

.signal-sparkline.tone-up polyline {
  stroke: #2563eb;
}

/* Situation strip transparency: definition, source, cause, and drilldown target. */
.situation-strip {
  grid-template-columns: repeat(4, minmax(148px, 1fr));
  gap: 8px;
  max-width: min(780px, calc(100% - 210px));
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.situation-strip[hidden] {
  display: none !important;
}

.signal-tile {
  min-height: 112px;
  padding: 10px 11px 9px;
  border: 1px solid rgba(203, 213, 225, 0.56);
  border-left: 4px solid var(--accent);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 250, 252, 0.78)),
    rgba(255, 255, 255, 0.78);
  box-shadow:
    0 16px 34px rgba(15, 23, 42, 0.105),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px) saturate(1.12);
}

.signal-tile:last-child {
  border-right: 1px solid rgba(203, 213, 225, 0.56);
}

.signal-tile-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.signal-tile-head > span:first-child {
  min-width: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 10.5px;
  font-weight: 860;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-info {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 50%;
  background: rgba(248, 250, 252, 0.92);
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  cursor: help;
}

.signal-info::after {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 20;
  width: 240px;
  padding: 9px 10px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.94);
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.24);
  content: attr(data-tooltip);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.38;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translate(-50%, 4px);
  transition: opacity 120ms ease, transform 120ms ease;
  white-space: pre-line;
}

.signal-info:hover::after,
.signal-info:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.signal-tile strong {
  margin-top: 5px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 920;
  line-height: 1;
}

.signal-tile > small,
.signal-tile-source {
  color: #7c8798;
  font-size: 9.5px;
  font-weight: 720;
}

.signal-tile-source {
  margin-top: 7px !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

.signal-region-list {
  gap: 5px;
  margin-top: 7px;
}

.signal-region-link {
  grid-template-columns: minmax(42px, 0.6fr) minmax(86px, 1fr);
  gap: 3px 7px;
  min-height: 30px;
  padding: 0;
}

.signal-region-name {
  color: #1f2937;
  font-size: 10px;
  font-weight: 880;
}

.signal-region-metric b {
  color: #334155;
  font-size: 10px;
}

.signal-region-metric small {
  font-size: 8.3px;
}

.signal-row-reason {
  grid-column: 1 / -1;
  overflow: hidden;
  color: #64748b;
  font-size: 8.9px;
  font-weight: 720;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signal-scorebar {
  grid-column: 1 / -1;
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.92);
}

.signal-scorebar i {
  display: block;
  width: var(--signal-score, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #dc2626, #f59e0b 52%, #2563eb);
}

.signal-region-list > small {
  color: #7c8798;
  font-size: 8.8px;
}

@media (max-width: 1180px) {
  .situation-strip {
    grid-template-columns: repeat(2, minmax(168px, 1fr));
    max-width: min(520px, calc(100% - 24px));
  }
}

@keyframes rawControlPulse {
  0% {
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.055);
    transform: translateY(0);
  }
  42% {
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.14);
    transform: translateY(-2px);
  }
  100% {
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.055);
    transform: translateY(0);
  }
}

.app-shell.filters-updated #inspectorContent .raw-fact-card,
.app-shell.filters-updated #inspectorContent .raw-policy-line {
  animation: rawControlPulse 420ms ease;
}

@media (max-width: 760px) {
  .decision-domain-group {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .decision-domain-controller {
    min-width: 0;
  }

  .category-chip,
  .domain-detail-stack .category-chip {
    min-width: max-content;
  }
}

/* Dedicated map-side entry for the data catalog. */
.map-data-catalog-dock {
  position: absolute;
  right: 14px;
  bottom: 40px;
  z-index: 13;
  pointer-events: auto;
}

.map-data-catalog-button {
  display: grid;
  gap: 3px;
  min-width: 154px;
  min-height: 50px;
  padding: 10px 13px 10px 15px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-left: 4px solid #2563eb;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.7);
  color: #0f172a;
  box-shadow:
    0 18px 42px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(1.16);
  cursor: pointer;
  text-align: left;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

.map-data-catalog-button span {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.map-data-catalog-button strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 920;
  line-height: 1.1;
}

.map-data-catalog-button:hover,
.map-data-catalog-button:focus-visible {
  border-color: rgba(37, 99, 235, 0.48);
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 20px 46px rgba(37, 99, 235, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  outline: none;
  transform: translateY(-1px);
}

.map-data-catalog-button[aria-pressed="true"] {
  border-color: rgba(37, 99, 235, 0.7);
  background: rgba(239, 246, 255, 0.86);
  color: #1d4ed8;
}

.map-data-catalog-button[aria-pressed="true"] strong {
  color: #1d4ed8;
}

.app-shell.is-map-dragging .map-data-catalog-dock {
  opacity: 0.18;
}

@media (max-width: 900px) {
  .map-data-catalog-dock {
    right: 10px;
    bottom: 104px;
  }
}

@media (max-width: 760px) {
  .map-data-catalog-dock {
    right: 8px;
    bottom: 108px;
  }

  .map-data-catalog-button {
    min-width: 132px;
    min-height: 44px;
    padding: 8px 11px 8px 13px;
    border-radius: 12px;
  }

  .map-data-catalog-button span {
    font-size: 9px;
  }

  .map-data-catalog-button strong {
    font-size: 12px;
  }
}

/* Restored visual evidence deck for the data-first inspector. */
#inspectorContent .info-visual-summary {
  display: grid;
  gap: 12px;
  margin: 12px 0 14px;
  padding: 13px;
  border: 1px solid #dbe6f3;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.94)),
    #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

#inspectorContent .info-visual-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

#inspectorContent .info-visual-summary-head div {
  min-width: 0;
}

#inspectorContent .info-visual-summary-head span {
  display: block;
  color: #2563eb;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

#inspectorContent .info-visual-summary-head strong {
  display: block;
  margin-top: 2px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 920;
  line-height: 1.25;
}

#inspectorContent .info-visual-summary-head small {
  max-width: 260px;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 720;
  line-height: 1.35;
  text-align: right;
}

#inspectorContent .info-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#inspectorContent .info-visual-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e0e8f2;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.045);
}

#inspectorContent .info-visual-tag {
  display: flex;
  align-items: center;
  min-height: 32px;
  padding: 8px 10px;
  border-left: 4px solid var(--detail-accent, #2563eb);
  border-bottom: 1px solid #eef3f8;
  background: #f8fbff;
}

#inspectorContent .info-visual-tag span {
  overflow: hidden;
  color: #334155;
  font-size: 11.5px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#inspectorContent .info-visual-card > .detail-chart,
#inspectorContent .info-visual-card > .detail-chart-set {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

#inspectorContent .info-visual-card > .detail-chart {
  padding: 12px !important;
}

#inspectorContent .info-visual-card > .detail-chart-set {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

#inspectorContent .info-visual-card > .detail-chart-set .detail-chart {
  margin: 0 !important;
  border: 0 !important;
  border-left: 1px solid #eef3f8 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

#inspectorContent .info-visual-card > .detail-chart-set .detail-chart:first-child {
  border-left: 0 !important;
}

#inspectorContent .info-visual-card .donut-chart-body {
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px;
}

#inspectorContent .info-visual-card .donut-ring {
  width: 96px;
}

#inspectorContent .info-visual-card .age-pyramid-axis,
#inspectorContent .info-visual-card .age-pyramid-row {
  grid-template-columns: 36px minmax(0, 1fr) 32px minmax(0, 1fr) 36px;
  gap: 4px;
}

#inspectorContent .info-visual-card .age-pyramid-value {
  font-size: 8.5px;
}

#inspectorContent .info-visual-card .bar-list-row {
  grid-template-columns: minmax(76px, 0.8fr) minmax(0, 1fr) auto;
}

/* Keep cluster selector labels optically centered inside pill controls. */
.decision-domain-controller {
  align-items: stretch;
}

.decision-domain-head,
.category-chip,
.domain-detail-stack .category-chip,
.category-master-control .category-chip,
.app-shell.info-table-preview .category-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
}

.decision-domain-head {
  flex-direction: column;
  gap: 0;
}

.decision-domain-head strong,
.category-chip span {
  display: block;
  line-height: 1;
}

@container (max-width: 560px) {
  #inspectorContent .info-visual-grid {
    grid-template-columns: 1fr;
  }

  #inspectorContent .info-visual-summary-head {
    display: grid;
  }

  #inspectorContent .info-visual-summary-head small {
    max-width: none;
    text-align: left;
  }
}

@container (max-width: 430px) {
  #inspectorContent .info-visual-card > .detail-chart-set,
  #inspectorContent .info-visual-card .donut-chart-body {
    grid-template-columns: 1fr;
  }

  #inspectorContent .info-visual-card > .detail-chart-set .detail-chart {
    border-left: 0 !important;
    border-top: 1px solid #eef3f8 !important;
  }

  #inspectorContent .info-visual-card > .detail-chart-set .detail-chart:first-child {
    border-top: 0 !important;
  }

  #inspectorContent .info-visual-card .donut-ring {
    justify-self: center;
  }
}

/* Keep the top control bar as one fixed work rail; narrow screens scroll horizontally. */
.topbar,
.app-shell.info-table-preview .topbar {
  grid-template-columns: 300px minmax(1180px, max-content) !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-x: contain;
  scrollbar-color: rgba(37, 99, 235, 0.36) transparent;
  scrollbar-width: thin;
}

.topbar::-webkit-scrollbar {
  height: 8px;
}

.topbar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.3);
}

.brand-block,
.app-shell.info-table-preview .brand-block {
  width: 300px !important;
  min-width: 300px !important;
  flex: 0 0 300px;
}

.command-strip,
.app-shell.info-table-preview .command-strip,
.app-shell.info-table-preview .command-strip.command-line {
  width: max-content !important;
  min-width: 1180px !important;
  grid-template-columns: auto minmax(168px, 210px) minmax(260px, 1fr) auto !important;
  grid-template-rows: 25px 34px !important;
}

.category-stack-group {
  overflow: visible !important;
}

.category-layer-list,
.domain-detail-stack {
  flex-wrap: nowrap !important;
  overflow: visible !important;
}

.category-layer-list {
  min-width: max-content;
}

.decision-domain-group {
  grid-template-columns: minmax(86px, auto) minmax(0, max-content) !important;
  min-width: max-content !important;
}

.decision-domain-controller {
  display: block !important;
  min-width: 86px !important;
}

.decision-domain-head {
  width: 100%;
}

@media (max-width: 1240px) {
  .topbar,
  .app-shell.info-table-preview .topbar {
    grid-template-columns: 300px minmax(1180px, max-content) !important;
    padding-inline: 9px !important;
  }

  .brand-block h1,
  .brand-copy h1,
  .app-shell.info-table-preview .brand-block h1,
  .app-shell.info-table-preview .brand-copy h1 {
    max-width: none !important;
    font-size: 22px !important;
  }

  .eyebrow {
    display: block !important;
  }
}

@media (max-width: 760px) {
  .topbar,
  .app-shell.info-table-preview .topbar {
    grid-template-columns: 300px minmax(1180px, max-content) !important;
    align-items: stretch !important;
  }

  .command-strip,
  .app-shell.info-table-preview .command-strip,
  .app-shell.info-table-preview .command-strip.command-line {
    min-width: 1180px !important;
  }
}

/* Info panel polish: let source numbers carry the page. */
#inspectorContent,
.app-shell.info-table-preview #inspectorContent {
  --info-ink: #253141;
  --info-strong: #111827;
  --info-muted: #64748b;
  --info-soft: #f8fafc;
  --info-surface: #ffffff;
  --info-line: #e2e8f0;
  --info-blue: #2563eb;
  --info-blue-soft: #eff6ff;
  --info-blue-line: #bfdbfe;
  --info-warn: #d97706;
  --info-warn-soft: #fffbeb;
  --info-danger: #dc2626;
  --info-danger-soft: #fef2f2;
  --info-coral: #d9827c;
  color: var(--info-ink);
  font-family:
    "Pretendard Variable", "Pretendard", "Inter", "Noto Sans KR", "Segoe UI",
    system-ui, sans-serif;
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-variant-numeric: tabular-nums lining-nums;
}

#inspectorContent *,
.app-shell.info-table-preview #inspectorContent * {
  letter-spacing: 0 !important;
}

.app-shell.info-table-preview #inspectorContent {
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.82), rgba(248, 250, 252, 0.96)),
    var(--info-soft);
}

#inspectorContent .region-head.compact-region-head,
#inspectorContent .raw-decision-dashboard,
#inspectorContent .balanced-insight-card,
#inspectorContent .cluster-insight-card,
#inspectorContent .goal-lens-card,
#inspectorContent .category-focus-card,
#inspectorContent .category-detail-card,
#inspectorContent .score-summary-card,
#inspectorContent .preview-data-table,
#inspectorContent .info-visual-summary,
#inspectorContent .inspector-accordion,
.app-shell.info-table-preview #inspectorContent .region-head.compact-region-head,
.app-shell.info-table-preview #inspectorContent .raw-decision-dashboard,
.app-shell.info-table-preview #inspectorContent .balanced-insight-card,
.app-shell.info-table-preview #inspectorContent .cluster-insight-card,
.app-shell.info-table-preview #inspectorContent .goal-lens-card,
.app-shell.info-table-preview #inspectorContent .category-focus-card,
.app-shell.info-table-preview #inspectorContent .category-detail-card,
.app-shell.info-table-preview #inspectorContent .score-summary-card,
.app-shell.info-table-preview #inspectorContent .preview-data-table,
.app-shell.info-table-preview #inspectorContent .info-visual-summary,
.app-shell.info-table-preview #inspectorContent .inspector-accordion {
  border-color: var(--info-line) !important;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 253, 255, 0.96)),
    var(--info-surface) !important;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.055) !important;
}

#inspectorContent .raw-decision-dashboard,
.app-shell.info-table-preview #inspectorContent .raw-decision-dashboard {
  gap: 14px;
  padding: 16px;
  background: var(--info-soft) !important;
}

#inspectorContent .raw-decision-head span,
#inspectorContent .info-visual-summary-head span,
#inspectorContent .balanced-insight-head span,
.app-shell.info-table-preview #inspectorContent .raw-decision-head span,
.app-shell.info-table-preview #inspectorContent .info-visual-summary-head span,
.app-shell.info-table-preview #inspectorContent .balanced-insight-head span {
  color: var(--info-blue);
  font-size: 10.5px;
  font-weight: 880;
  text-transform: uppercase;
}

#inspectorContent .raw-decision-head strong,
#inspectorContent .info-visual-summary-head strong,
#inspectorContent .balanced-insight-head strong,
.app-shell.info-table-preview #inspectorContent .raw-decision-head strong,
.app-shell.info-table-preview #inspectorContent .info-visual-summary-head strong,
.app-shell.info-table-preview #inspectorContent .balanced-insight-head strong {
  color: var(--info-strong);
  font-size: 17.5px;
  font-weight: 900;
  line-height: 1.24;
}

#inspectorContent .raw-decision-head small,
#inspectorContent .info-visual-summary-head small,
#inspectorContent .balanced-insight-head small,
.app-shell.info-table-preview #inspectorContent .raw-decision-head small,
.app-shell.info-table-preview #inspectorContent .info-visual-summary-head small,
.app-shell.info-table-preview #inspectorContent .balanced-insight-head small {
  color: var(--info-muted);
  font-size: 11.5px;
  line-height: 1.45;
}

#inspectorContent .raw-fact-grid,
.app-shell.info-table-preview #inspectorContent .raw-fact-grid {
  gap: 12px;
}

#inspectorContent .raw-fact-card,
.app-shell.info-table-preview #inspectorContent .raw-fact-card {
  gap: 7px;
  padding: 15px 15px 14px;
  border: 1px solid #e8eef5;
  border-left-width: 4px;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.052);
}

#inspectorContent .raw-fact-card.tone-stable,
.app-shell.info-table-preview #inspectorContent .raw-fact-card.tone-stable {
  border-left-color: var(--info-blue);
}

#inspectorContent .raw-fact-card.tone-warn,
.app-shell.info-table-preview #inspectorContent .raw-fact-card.tone-warn {
  border-left-color: #f59e0b;
}

#inspectorContent .raw-fact-card.tone-critical,
.app-shell.info-table-preview #inspectorContent .raw-fact-card.tone-critical {
  border-left-color: var(--info-danger);
}

#inspectorContent .raw-fact-card.tone-neutral,
.app-shell.info-table-preview #inspectorContent .raw-fact-card.tone-neutral {
  border-left-color: #94a3b8;
}

#inspectorContent .raw-fact-top span,
.app-shell.info-table-preview #inspectorContent .raw-fact-top span {
  color: var(--info-muted);
  font-size: 11px;
  font-weight: 760;
}

#inspectorContent .raw-fact-card strong,
#inspectorContent .preview-table-value,
#inspectorContent .detail-visual-value,
#inspectorContent .compact-score-strip strong,
#inspectorContent .donut-ring strong,
#inspectorContent .bar-list-row strong,
#inspectorContent .age-pyramid-value,
.app-shell.info-table-preview #inspectorContent .raw-fact-card strong,
.app-shell.info-table-preview #inspectorContent .preview-table-value,
.app-shell.info-table-preview #inspectorContent .detail-visual-value,
.app-shell.info-table-preview #inspectorContent .compact-score-strip strong,
.app-shell.info-table-preview #inspectorContent .donut-ring strong,
.app-shell.info-table-preview #inspectorContent .bar-list-row strong,
.app-shell.info-table-preview #inspectorContent .age-pyramid-value {
  color: var(--info-strong);
  font-family:
    "Pretendard Variable", "Pretendard", "Inter", "Roboto", "Noto Sans KR",
    system-ui, sans-serif;
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-variant-numeric: tabular-nums lining-nums;
  font-weight: 900;
}

#inspectorContent .raw-fact-card strong,
.app-shell.info-table-preview #inspectorContent .raw-fact-card strong {
  font-size: 22px;
  line-height: 1.05;
}

#inspectorContent .raw-fact-card small,
.app-shell.info-table-preview #inspectorContent .raw-fact-card small {
  color: var(--info-muted);
  font-size: 11.2px;
}

#inspectorContent .raw-fact-card small.trend-up,
#inspectorContent .raw-fact-card small.trend-stable,
.app-shell.info-table-preview #inspectorContent .raw-fact-card small.trend-up,
.app-shell.info-table-preview #inspectorContent .raw-fact-card small.trend-stable {
  color: var(--info-blue);
}

#inspectorContent .raw-fact-card small.trend-down,
.app-shell.info-table-preview #inspectorContent .raw-fact-card small.trend-down {
  color: var(--info-danger);
}

#inspectorContent .raw-fact-card em,
#inspectorContent .grade-badge,
#inspectorContent .area-badge,
#inspectorContent .rank-pill,
#inspectorContent .indicator-trust-badge,
#inspectorContent .category-source-button,
#inspectorContent .detail-section-link,
.app-shell.info-table-preview #inspectorContent .raw-fact-card em,
.app-shell.info-table-preview #inspectorContent .grade-badge,
.app-shell.info-table-preview #inspectorContent .area-badge,
.app-shell.info-table-preview #inspectorContent .rank-pill,
.app-shell.info-table-preview #inspectorContent .indicator-trust-badge,
.app-shell.info-table-preview #inspectorContent .category-source-button,
.app-shell.info-table-preview #inspectorContent .detail-section-link {
  border-radius: 999px !important;
  background: #f1f5f9 !important;
  color: #475569 !important;
  box-shadow: none !important;
}

#inspectorContent .indicator-trust-badge.trust-official,
.app-shell.info-table-preview #inspectorContent .indicator-trust-badge.trust-official {
  border-color: var(--info-blue-line) !important;
  background: var(--info-blue-soft) !important;
  color: #1d4ed8 !important;
}

#inspectorContent .indicator-trust-badge.trust-comparable,
.app-shell.info-table-preview #inspectorContent .indicator-trust-badge.trust-comparable {
  border-color: #a5f3fc !important;
  background: #ecfeff !important;
  color: #0e7490 !important;
}

#inspectorContent .indicator-trust-badge.trust-pending,
.app-shell.info-table-preview #inspectorContent .indicator-trust-badge.trust-pending {
  border-color: #fde68a !important;
  background: var(--info-warn-soft) !important;
  color: #b45309 !important;
}

#inspectorContent .indicator-trust-badge.trust-missing,
.app-shell.info-table-preview #inspectorContent .indicator-trust-badge.trust-missing {
  border-color: #fecaca !important;
  background: var(--info-danger-soft) !important;
  color: var(--info-danger) !important;
}

#inspectorContent .raw-rank-bullet,
.app-shell.info-table-preview #inspectorContent .raw-rank-bullet {
  height: 5px;
  background: #edf2f7;
}

#inspectorContent .raw-rank-bullet::before,
.app-shell.info-table-preview #inspectorContent .raw-rank-bullet::before {
  background: rgba(37, 99, 235, 0.18);
}

#inspectorContent .raw-rank-bullet span,
.app-shell.info-table-preview #inspectorContent .raw-rank-bullet span {
  background: var(--info-blue);
}

#inspectorContent .balanced-insight-card,
.app-shell.info-table-preview #inspectorContent .balanced-insight-card {
  border-color: #fde68a !important;
  border-left: 4px solid #f59e0b !important;
  background:
    linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(255, 255, 255, 0.96) 60%),
    #ffffff !important;
}

#inspectorContent .balanced-issue-grid > div,
#inspectorContent .goal-lens-row,
.app-shell.info-table-preview #inspectorContent .balanced-issue-grid > div,
.app-shell.info-table-preview #inspectorContent .goal-lens-row {
  border-radius: 12px;
  background: #ffffff;
}

.app-shell.info-table-preview #inspectorContent .preview-data-table {
  overflow: hidden;
  border-radius: 13px;
}

.app-shell.info-table-preview #inspectorContent .preview-table-section {
  min-height: 42px;
  padding: 10px 14px;
  border-color: var(--info-line);
  background: #f8fafc;
}

.app-shell.info-table-preview #inspectorContent .preview-table-section strong {
  color: var(--info-strong);
  font-size: 14.5px;
  font-weight: 860;
}

.app-shell.info-table-preview #inspectorContent .preview-table-row {
  grid-template-columns: minmax(112px, 0.56fr) minmax(118px, max-content) minmax(0, 1fr);
  min-height: 43px;
  gap: 12px;
  padding: 9px 14px;
  border-top-color: #eef2f7;
  background: #ffffff;
}

.app-shell.info-table-preview #inspectorContent .preview-table-row:nth-child(even) {
  background: #fbfdff;
}

.app-shell.info-table-preview #inspectorContent .preview-table-row:hover {
  background: #f3f8ff;
}

.app-shell.info-table-preview #inspectorContent .preview-table-label {
  color: var(--info-muted);
  font-size: 12.2px;
  font-weight: 720;
}

.app-shell.info-table-preview #inspectorContent .preview-table-value {
  color: var(--info-strong);
  font-size: 15.4px;
  font-weight: 900;
}

.app-shell.info-table-preview #inspectorContent .preview-table-note {
  color: #748094;
  font-size: 11.8px;
}

#inspectorContent .info-visual-summary,
.app-shell.info-table-preview #inspectorContent .info-visual-summary {
  gap: 14px;
  margin: 14px 0 16px;
  padding: 16px;
  background: var(--info-soft) !important;
}

#inspectorContent .info-visual-card,
.app-shell.info-table-preview #inspectorContent .info-visual-card {
  border-color: #e5edf6;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

#inspectorContent .info-visual-tag,
.app-shell.info-table-preview #inspectorContent .info-visual-tag {
  border-left-color: var(--info-blue);
  background: #ffffff;
}

#inspectorContent .detail-chart,
.app-shell.info-table-preview #inspectorContent .detail-chart {
  border-color: #e5edf6 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

#inspectorContent .detail-chart-head strong,
#inspectorContent .detail-chart-title strong,
.app-shell.info-table-preview #inspectorContent .detail-chart-head strong,
.app-shell.info-table-preview #inspectorContent .detail-chart-title strong {
  color: var(--info-strong);
  font-size: 14px;
  font-weight: 880;
}

#inspectorContent .detail-chart-head span,
#inspectorContent .detail-chart-head b,
#inspectorContent .detail-chart-foot,
#inspectorContent .detail-chart-title small,
.app-shell.info-table-preview #inspectorContent .detail-chart-head span,
.app-shell.info-table-preview #inspectorContent .detail-chart-head b,
.app-shell.info-table-preview #inspectorContent .detail-chart-foot,
.app-shell.info-table-preview #inspectorContent .detail-chart-title small {
  color: var(--info-muted);
  font-size: 11.5px;
}

#inspectorContent .age-pyramid-chart,
.app-shell.info-table-preview #inspectorContent .age-pyramid-chart {
  --male-color: #4f46e5;
  --female-color: #d9827c;
  background:
    linear-gradient(90deg, rgba(79, 70, 229, 0.055), transparent 49%, rgba(217, 130, 124, 0.06)),
    #ffffff !important;
}

#inspectorContent .age-pyramid-axis,
#inspectorContent .age-pyramid-row b,
#inspectorContent .age-pyramid-value,
.app-shell.info-table-preview #inspectorContent .age-pyramid-axis,
.app-shell.info-table-preview #inspectorContent .age-pyramid-row b,
.app-shell.info-table-preview #inspectorContent .age-pyramid-value {
  color: #7a8598;
}

#inspectorContent .age-pyramid-bar,
.app-shell.info-table-preview #inspectorContent .age-pyramid-bar {
  height: 9px;
  background: rgba(148, 163, 184, 0.13);
}

#inspectorContent .age-pyramid-bar.male span,
.app-shell.info-table-preview #inspectorContent .age-pyramid-bar.male span {
  background: linear-gradient(90deg, #818cf8, #4f46e5);
}

#inspectorContent .age-pyramid-bar.female span,
.app-shell.info-table-preview #inspectorContent .age-pyramid-bar.female span {
  background: linear-gradient(90deg, #d9827c, #f0a39d);
}

#inspectorContent .donut-ring,
.app-shell.info-table-preview #inspectorContent .donut-ring {
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.95);
}

#inspectorContent .donut-ring::before,
.app-shell.info-table-preview #inspectorContent .donut-ring::before {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.82);
}

#inspectorContent .donut-ring span,
#inspectorContent .donut-legend span,
#inspectorContent .donut-legend b,
#inspectorContent .donut-legend em,
#inspectorContent .bar-list-row span,
.app-shell.info-table-preview #inspectorContent .donut-ring span,
.app-shell.info-table-preview #inspectorContent .donut-legend span,
.app-shell.info-table-preview #inspectorContent .donut-legend b,
.app-shell.info-table-preview #inspectorContent .donut-legend em,
.app-shell.info-table-preview #inspectorContent .bar-list-row span {
  color: var(--info-muted);
}

#inspectorContent .bar-list-row i,
.app-shell.info-table-preview #inspectorContent .bar-list-row i {
  height: 9px;
  background: #edf2f7;
}

#inspectorContent .bar-list-row i b,
.app-shell.info-table-preview #inspectorContent .bar-list-row i b {
  background: linear-gradient(90deg, var(--bar-color, var(--info-blue)), color-mix(in srgb, var(--bar-color, var(--info-blue)) 52%, #93c5fd));
}

#inspectorContent .inspector-accordion > summary,
.app-shell.info-table-preview #inspectorContent .inspector-accordion > summary {
  min-height: 46px;
  padding: 12px 15px;
  color: var(--info-strong);
}

@container (max-width: 530px) {
  .app-shell.info-table-preview #inspectorContent .preview-table-row,
  .app-shell.info-table-preview #inspectorContent .preview-table-row.is-narrative {
    grid-template-columns: minmax(96px, 0.62fr) minmax(104px, max-content) minmax(0, 1fr);
    gap: 8px;
    padding-inline: 11px;
  }

  #inspectorContent .raw-fact-card strong,
  .app-shell.info-table-preview #inspectorContent .raw-fact-card strong {
    font-size: 19px;
  }
}

/* Floating command rail and Local Insight product brand. */
.app-shell,
.app-shell.info-table-preview {
  grid-template-rows: minmax(116px, auto) minmax(0, 1fr) 24px !important;
}

.topbar,
.app-shell.info-table-preview .topbar {
  align-self: start;
  gap: 26px !important;
  min-height: 86px !important;
  margin: 16px 14px 0 !important;
  padding: 11px 14px !important;
  border: 0 !important;
  border-radius: 20px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.86)),
    rgba(255, 255, 255, 0.86) !important;
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.05),
    0 20px 44px rgba(15, 23, 42, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
  backdrop-filter: blur(16px) saturate(1.14);
}

.brand-block,
.app-shell.info-table-preview .brand-block {
  justify-content: flex-start !important;
  width: 300px !important;
  min-width: 300px !important;
  min-height: 62px !important;
  height: auto !important;
  gap: 12px !important;
  padding: 4px 2px !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: left !important;
}

.brand-block::before,
.brand-block::after,
.brand-mark,
.brand-mark::before,
.brand-mark::after,
.app-shell.info-table-preview .brand-block::before,
.app-shell.info-table-preview .brand-block::after,
.app-shell.info-table-preview .brand-mark,
.app-shell.info-table-preview .brand-mark::before,
.app-shell.info-table-preview .brand-mark::after {
  display: none !important;
  content: none !important;
}

.brand-block > div,
.brand-copy,
.app-shell.info-table-preview .brand-block > div,
.app-shell.info-table-preview .brand-copy {
  display: grid !important;
  gap: 3px;
  min-width: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.brand-orbit,
.app-shell.info-table-preview .brand-orbit {
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 68% 28%, rgba(124, 58, 237, 0.95) 0 3px, transparent 4px),
    radial-gradient(circle at 30% 66%, rgba(37, 99, 235, 0.9) 0 3px, transparent 4px),
    linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(124, 58, 237, 0.16));
  box-shadow:
    inset 0 0 0 1px rgba(37, 99, 235, 0.2),
    0 10px 24px rgba(37, 99, 235, 0.14);
}

.brand-orbit::before,
.app-shell.info-table-preview .brand-orbit::before {
  content: "";
  position: absolute;
  inset: 12px 10px 11px 12px;
  border-top: 1.5px solid rgba(37, 99, 235, 0.55);
  border-right: 1.5px solid rgba(124, 58, 237, 0.48);
  transform: skew(-18deg) rotate(-8deg);
}

.brand-orbit i,
.app-shell.info-table-preview .brand-orbit i {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow:
    0 0 0 3px rgba(124, 58, 237, 0.22),
    0 0 16px rgba(124, 58, 237, 0.7);
}

.brand-block .eyebrow,
.brand-copy .eyebrow,
.app-shell.info-table-preview .brand-block .eyebrow,
.app-shell.info-table-preview .brand-copy .eyebrow {
  display: block !important;
  margin: 0;
  color: #6b7280 !important;
  font-size: 9.5px !important;
  font-weight: 760 !important;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-block h1,
.brand-copy h1,
.app-shell.info-table-preview .brand-block h1,
.app-shell.info-table-preview .brand-copy h1 {
  display: grid !important;
  gap: 2px;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  color: #2f343b !important;
  font-family:
    "Pretendard Variable", "Pretendard", "Inter", "Noto Sans KR", "Segoe UI",
  system-ui, sans-serif;
  font-size: 24px !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  white-space: normal;
  word-break: keep-all;
}

.brand-block h1 span,
.brand-copy h1 span,
.app-shell.info-table-preview .brand-block h1 span,
.app-shell.info-table-preview .brand-copy h1 span {
  display: block;
  white-space: nowrap;
}

.brand-block .brand-name,
.brand-copy .brand-name,
.app-shell.info-table-preview .brand-block .brand-name,
.app-shell.info-table-preview .brand-copy .brand-name {
  color: #111827 !important;
  font-weight: 720 !important;
}

.brand-block .brand-product,
.brand-copy .brand-product,
.app-shell.info-table-preview .brand-block .brand-product,
.app-shell.info-table-preview .brand-copy .brand-product {
  color: #2563eb !important;
  font-weight: 900 !important;
}

.brand-subtitle,
.app-shell.info-table-preview .brand-subtitle {
  margin: 1px 0 0;
  color: #6b7280;
  font-size: 10.5px;
  font-weight: 680;
  line-height: 1.15;
  white-space: nowrap;
}

.brand-block .brand-product em,
.brand-copy .brand-product em,
.app-shell.info-table-preview .brand-block .brand-product em,
.app-shell.info-table-preview .brand-copy .brand-product em {
  color: #2563eb;
  font-style: normal;
  font-weight: 920;
}

.brand-block:hover .brand-product em,
.brand-block:focus-visible .brand-product em {
  color: #1d4ed8;
}

.command-strip,
.app-shell.info-table-preview .command-strip,
.app-shell.info-table-preview .command-strip.command-line {
  align-content: center;
  min-height: 66px !important;
  padding: 8px !important;
  border: 1px solid rgba(203, 213, 225, 0.42) !important;
  border-radius: 16px !important;
  background: rgba(248, 250, 252, 0.58) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 8px 24px rgba(15, 23, 42, 0.04) !important;
  backdrop-filter: blur(12px) saturate(1.08);
}

.nav-group,
.app-shell.info-table-preview .nav-group {
  min-height: 34px;
  padding: 5px 8px !important;
  border-color: transparent !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.7) !important;
  box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.72) !important;
}

.nav-group-title,
.nav-group legend,
.command-strip .nav-group-title,
.command-strip .nav-group legend,
.app-shell.info-table-preview .nav-group-title,
.app-shell.info-table-preview .nav-group legend,
.app-shell.info-table-preview .command-strip .nav-group-title,
.app-shell.info-table-preview .command-strip .nav-group legend {
  color: #475569 !important;
  font-size: 11px !important;
  font-weight: 780 !important;
}

.command-strip select,
.command-strip input,
.command-strip .tool-button,
.command-strip .icon-button,
.category-chip,
.app-shell.info-table-preview .command-strip select,
.app-shell.info-table-preview .command-strip input,
.app-shell.info-table-preview .command-strip .tool-button,
.app-shell.info-table-preview .command-strip .icon-button,
.app-shell.info-table-preview .category-chip,
.app-shell.info-table-preview .tool-button {
  border-radius: 10px !important;
}

.nav-input-shell,
.app-shell.info-table-preview .nav-input-shell {
  position: relative;
  display: flex !important;
  align-items: center;
  min-height: 30px;
}

.nav-input-shell .control-icon,
.app-shell.info-table-preview .nav-input-shell .control-icon {
  position: absolute;
  left: 10px;
  z-index: 1;
  width: 14px;
  height: 14px;
  color: #64748b;
  pointer-events: none;
}

.calendar-icon,
.app-shell.info-table-preview .calendar-icon {
  top: 8px;
  border: 1.6px solid currentColor;
  border-radius: 4px;
}

.calendar-icon::before,
.app-shell.info-table-preview .calendar-icon::before {
  content: "";
  position: absolute;
  left: -1.6px;
  right: -1.6px;
  top: 3px;
  border-top: 1.6px solid currentColor;
}

.detail-icon,
.app-shell.info-table-preview .detail-icon {
  top: 8px;
  border-radius: 4px;
  background:
    linear-gradient(currentColor 0 0) 2px 2px / 10px 1.6px no-repeat,
    linear-gradient(currentColor 0 0) 2px 6px / 8px 1.6px no-repeat,
    linear-gradient(currentColor 0 0) 2px 10px / 11px 1.6px no-repeat;
  box-shadow: inset 0 0 0 1.4px currentColor;
}

.search-icon,
.app-shell.info-table-preview .search-icon {
  top: 8px;
  border: 1.8px solid currentColor;
  border-radius: 999px;
}

.search-icon::after,
.app-shell.info-table-preview .search-icon::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 6px;
  border-top: 1.8px solid currentColor;
  transform: rotate(45deg);
}

.control-field.nav-input-shell::after,
.app-shell.info-table-preview .control-field.nav-input-shell::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.6px solid #64748b;
  border-bottom: 1.6px solid #64748b;
  transform: translateY(-64%) rotate(45deg);
  pointer-events: none;
}

.command-strip .nav-input-shell select,
.command-strip .nav-input-shell input,
.app-shell.info-table-preview .command-strip .nav-input-shell select,
.app-shell.info-table-preview .command-strip .nav-input-shell input {
  height: 30px !important;
  min-width: 100%;
  border: 0 !important;
  border-radius: 10px !important;
  background: #f3f4f6 !important;
  color: #111827 !important;
  font-size: 11.5px !important;
  font-weight: 720 !important;
  box-shadow:
    inset 0 0 0 1px rgba(226, 232, 240, 0.82),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

.command-strip .nav-input-shell select,
.app-shell.info-table-preview .command-strip .nav-input-shell select {
  appearance: none;
  padding: 0 28px 0 31px !important;
}

.command-strip .nav-input-shell input,
.app-shell.info-table-preview .command-strip .nav-input-shell input {
  padding: 0 11px 0 32px !important;
}

.command-strip .nav-input-shell select:focus,
.command-strip .nav-input-shell input:focus,
.app-shell.info-table-preview .command-strip .nav-input-shell select:focus,
.app-shell.info-table-preview .command-strip .nav-input-shell input:focus {
  background: #ffffff !important;
  box-shadow:
    inset 0 0 0 1px rgba(37, 99, 235, 0.32),
    0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

.search-field,
.app-shell.info-table-preview .search-field {
  min-width: 230px !important;
}

.tool-cluster .ai-toggle,
.app-shell.info-table-preview .tool-cluster .ai-toggle {
  min-width: 104px !important;
  height: 30px !important;
  padding: 0 15px !important;
  border: 0 !important;
  border-radius: 11px !important;
  color: #ffffff !important;
  background:
    linear-gradient(135deg, #2563eb 0%, #6d28d9 100%) !important;
  box-shadow:
    0 10px 24px rgba(37, 99, 235, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
  font-size: 11px !important;
  font-weight: 850 !important;
}

.tool-cluster .ai-toggle::before,
.app-shell.info-table-preview .tool-cluster .ai-toggle::before {
  content: none !important;
  display: none !important;
}

.tool-cluster .ai-toggle:hover,
.tool-cluster .ai-toggle[aria-pressed="true"],
.app-shell.info-table-preview .tool-cluster .ai-toggle:hover,
.app-shell.info-table-preview .tool-cluster .ai-toggle[aria-pressed="true"] {
  color: #ffffff !important;
  background:
    linear-gradient(135deg, #1d4ed8 0%, #7c3aed 100%) !important;
  box-shadow:
    0 12px 28px rgba(37, 99, 235, 0.32),
    0 0 0 3px rgba(124, 58, 237, 0.14) !important;
}

@media (max-width: 1240px) {
  .topbar,
  .app-shell.info-table-preview .topbar {
    margin: 14px 10px 0 !important;
    padding-inline: 10px !important;
  }

  .brand-block h1,
  .brand-copy h1,
  .app-shell.info-table-preview .brand-block h1,
  .app-shell.info-table-preview .brand-copy h1 {
    font-size: 21px !important;
  }
}

@media (max-width: 760px) {
  .app-shell,
  .app-shell.info-table-preview {
    grid-template-rows: minmax(112px, auto) minmax(0, 1fr) 30px !important;
  }

  .topbar,
  .app-shell.info-table-preview .topbar {
    grid-template-columns: 300px minmax(1180px, max-content) !important;
    gap: 20px !important;
    margin: 10px 8px 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }
}

/* Navigation row spacing fix: controller chips need a taller second rail. */
.app-shell,
.app-shell.info-table-preview {
  grid-template-rows: minmax(146px, auto) minmax(0, 1fr) 24px !important;
}

.topbar,
.app-shell.info-table-preview .topbar {
  align-items: center !important;
  min-height: 118px !important;
}

.command-strip,
.command-strip.command-line,
.app-shell.info-table-preview .command-strip,
.app-shell.info-table-preview .command-strip.command-line {
  min-height: 96px !important;
  row-gap: 10px !important;
  grid-template-rows: 36px minmax(50px, auto) !important;
  overflow: visible !important;
}

.baseline-group,
.analysis-group,
.search-group,
.tool-cluster {
  min-height: 36px !important;
  align-self: stretch;
}

.category-stack-group {
  min-height: 50px !important;
  align-self: stretch;
  align-items: center !important;
}

.category-layer-list,
.domain-detail-stack {
  align-items: center !important;
}

.decision-domain-group {
  min-height: 40px !important;
}

@media (max-width: 760px) {
  .app-shell,
  .app-shell.info-table-preview {
    grid-template-rows: minmax(142px, auto) minmax(0, 1fr) 30px !important;
  }

  .topbar,
  .app-shell.info-table-preview .topbar {
    min-height: 116px !important;
  }

  .command-strip,
  .command-strip.command-line,
  .app-shell.info-table-preview .command-strip,
  .app-shell.info-table-preview .command-strip.command-line {
    min-height: 94px !important;
    grid-template-rows: 36px minmax(48px, auto) !important;
  }
}

/* Brand rail sizing: give the product name enough presence in the fixed nav. */
.topbar,
.app-shell.info-table-preview .topbar {
  grid-template-columns: 300px minmax(1180px, max-content) !important;
  gap: 22px !important;
}

.brand-block,
.app-shell.info-table-preview .brand-block {
  width: 300px !important;
  min-width: 300px !important;
  flex-basis: 300px !important;
  min-height: 66px !important;
}

.brand-block .eyebrow,
.brand-copy .eyebrow,
.app-shell.info-table-preview .brand-block .eyebrow,
.app-shell.info-table-preview .brand-copy .eyebrow {
  font-size: 9.5px !important;
  font-weight: 760 !important;
}

.brand-block h1,
.brand-copy h1,
.app-shell.info-table-preview .brand-block h1,
.app-shell.info-table-preview .brand-copy h1 {
  display: flex !important;
  align-items: baseline !important;
  gap: 7px !important;
  max-width: 276px !important;
  font-size: 29px !important;
  line-height: 0.98 !important;
  letter-spacing: 0 !important;
}

.brand-block h1 span,
.brand-copy h1 span,
.app-shell.info-table-preview .brand-block h1 span,
.app-shell.info-table-preview .brand-copy h1 span {
  display: inline !important;
}

.brand-subtitle,
.app-shell.info-table-preview .brand-subtitle {
  margin-top: 3px !important;
  font-size: 11.5px !important;
}

@media (max-width: 1240px) {
  .topbar,
  .app-shell.info-table-preview .topbar {
    grid-template-columns: 286px minmax(1180px, max-content) !important;
  }

  .brand-block,
  .app-shell.info-table-preview .brand-block {
    width: 286px !important;
    min-width: 286px !important;
    flex-basis: 286px !important;
  }

  h1,
  .app-shell.info-table-preview .brand-block h1,
  .app-shell.info-table-preview .brand-copy h1 {
    max-width: 264px !important;
    font-size: 27px !important;
  }
}

@media (max-width: 760px) {
  .topbar,
  .app-shell.info-table-preview .topbar {
    grid-template-columns: 286px minmax(1180px, max-content) !important;
  }
}

/* Decision-axis hierarchy: overview, cluster, and detail controls must not read as one flat chip row. */
.category-master-control.is-overview-domain,
.app-shell.info-table-preview .category-master-control.is-overview-domain {
  padding: 4px !important;
  border: 1px solid rgba(37, 99, 235, 0.28) !important;
  border-radius: 13px !important;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(255, 255, 255, 0.92)) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08) !important;
}

.category-master-control.is-overview-domain .category-chip.is-master,
.app-shell.info-table-preview .category-master-control.is-overview-domain .category-chip.is-master {
  min-width: 88px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 15px !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #172554 0%, #2563eb 100%) !important;
  box-shadow:
    0 8px 18px rgba(37, 99, 235, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
  font-size: 12px !important;
  font-weight: 920 !important;
}

.category-master-control.is-overview-domain .category-chip.is-master:not(:has(input:checked)),
.app-shell.info-table-preview .category-master-control.is-overview-domain .category-chip.is-master:not(:has(input:checked)) {
  color: #1d4ed8 !important;
  background: rgba(239, 246, 255, 0.92) !important;
  box-shadow:
    0 6px 14px rgba(37, 99, 235, 0.12),
    inset 0 0 0 1px rgba(37, 99, 235, 0.24) !important;
}

.decision-domain-group.is-cluster-domain,
.app-shell.info-table-preview .decision-domain-group.is-cluster-domain {
  gap: 6px !important;
  min-height: 44px !important;
  padding: 4px !important;
  border: 1px solid color-mix(in srgb, var(--domain-color, #4f7a48) 26%, rgba(148, 163, 184, 0.38)) !important;
  border-radius: 13px !important;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--domain-color, #4f7a48) 8%, #ffffff),
    rgba(255, 255, 255, 0.9)
  ) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08) !important;
}

.decision-domain-group.is-cluster-domain.is-active,
.app-shell.info-table-preview .decision-domain-group.is-cluster-domain.is-active {
  border-color: color-mix(in srgb, var(--domain-color, #4f7a48) 52%, rgba(148, 163, 184, 0.28)) !important;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--domain-color, #4f7a48) 13%, #ffffff),
    rgba(255, 255, 255, 0.94)
  ) !important;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--domain-color, #4f7a48) 16%, transparent) !important;
}

.decision-domain-head.is-cluster-domain,
.app-shell.info-table-preview .decision-domain-head.is-cluster-domain {
  min-width: 94px !important;
  height: 36px !important;
  padding: 0 10px !important;
  border: 1px solid color-mix(in srgb, var(--domain-color, #4f7a48) 66%, rgba(255, 255, 255, 0.48)) !important;
  border-left: 1px solid color-mix(in srgb, var(--domain-color, #4f7a48) 66%, rgba(255, 255, 255, 0.48)) !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--domain-color, #4f7a48) 88%, #1e293b),
    color-mix(in srgb, var(--domain-color, #4f7a48) 72%, #2563eb)
  ) !important;
  box-shadow:
    0 7px 16px color-mix(in srgb, var(--domain-color, #4f7a48) 22%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

.decision-domain-head.is-cluster-domain[aria-pressed="true"],
.app-shell.info-table-preview .decision-domain-head.is-cluster-domain[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--domain-color, #4f7a48) 76%, #ffffff) !important;
  color: #ffffff !important;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--domain-color, #4f7a48) 92%, #0f172a),
    var(--domain-color, #4f7a48)
  ) !important;
  box-shadow:
    0 10px 22px color-mix(in srgb, var(--domain-color, #4f7a48) 32%, transparent),
    0 0 0 3px color-mix(in srgb, var(--domain-color, #4f7a48) 14%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

.decision-domain-head.is-cluster-domain span,
.app-shell.info-table-preview .decision-domain-head.is-cluster-domain span {
  font-size: 7.5px !important;
  font-weight: 820 !important;
  opacity: 0.78;
}

.decision-domain-head.is-cluster-domain strong,
.app-shell.info-table-preview .decision-domain-head.is-cluster-domain strong {
  font-size: 11px !important;
  font-weight: 920 !important;
}

.domain-detail-stack .category-chip,
.app-shell.info-table-preview .domain-detail-stack .category-chip {
  height: 26px !important;
  min-height: 26px !important;
  border-color: rgba(203, 213, 225, 0.9) !important;
  color: #475569 !important;
  background: rgba(255, 255, 255, 0.86) !important;
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.07) !important;
  font-size: 10.5px !important;
  font-weight: 760 !important;
}

.domain-detail-stack .category-chip:has(input:checked),
.domain-detail-stack .category-chip.is-active,
.app-shell.info-table-preview .domain-detail-stack .category-chip:has(input:checked),
.app-shell.info-table-preview .domain-detail-stack .category-chip.is-active {
  border-color: color-mix(in srgb, var(--chip-color, #4f7a48) 42%, rgba(148, 163, 184, 0.42)) !important;
  color: color-mix(in srgb, var(--chip-color, #4f7a48) 72%, #172033) !important;
  background: color-mix(in srgb, var(--chip-color, #4f7a48) 12%, #ffffff) !important;
  box-shadow:
    0 6px 14px color-mix(in srgb, var(--chip-color, #4f7a48) 14%, transparent),
    inset 0 -2px 0 color-mix(in srgb, var(--chip-color, #4f7a48) 48%, transparent) !important;
}

/* Indicator explorer: one detail indicator at a time, with yearly evidence. */
#inspectorContent .indicator-explorer {
  display: grid;
  gap: 12px;
  margin: 10px 0 12px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-left: 4px solid var(--detail-accent);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.94), rgba(255, 255, 255, 0.96));
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

#inspectorContent .indicator-explorer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

#inspectorContent .indicator-explorer-head div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

#inspectorContent .indicator-explorer-head span {
  color: #64748b;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#inspectorContent .indicator-explorer-head strong {
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
}

#inspectorContent .indicator-explorer-head small {
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
}

#inspectorContent .indicator-stepper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: #ffffff;
}

#inspectorContent .indicator-stepper button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

#inspectorContent .indicator-stepper em {
  min-width: 32px;
  color: #475569;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  text-align: center;
}

#inspectorContent .indicator-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

#inspectorContent .indicator-radio-chip {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font: inherit;
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0;
  cursor: pointer;
}

#inspectorContent .indicator-radio-chip.is-active {
  border-color: color-mix(in srgb, var(--detail-accent) 62%, #ffffff);
  background: var(--detail-accent);
  color: #ffffff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--detail-accent) 22%, transparent);
}

#inspectorContent .indicator-explorer-body {
  display: grid;
  grid-template-columns: minmax(150px, 0.78fr) minmax(0, 1.35fr);
  gap: 12px;
  align-items: stretch;
}

#inspectorContent .indicator-value-board {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 12px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

#inspectorContent .indicator-value-board > span {
  color: #64748b;
  font-size: 11px;
  font-weight: 820;
}

#inspectorContent .indicator-value-board > strong {
  color: #0f172a;
  font-size: 22px;
  font-weight: 920;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

#inspectorContent .indicator-value-board > small {
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
}

#inspectorContent .indicator-value-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

#inspectorContent .indicator-value-badges b,
#inspectorContent .indicator-value-board a {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  background: #eef2ff;
  color: #334155;
  font-size: 10px;
  font-weight: 850;
  text-decoration: none;
}

#inspectorContent .indicator-value-board a {
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.28);
}

#inspectorContent .indicator-trend-board {
  display: grid;
  gap: 8px;
  min-width: 0;
}

#inspectorContent .indicator-trend-board .detail-chart {
  margin: 0;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.14) !important;
}

#inspectorContent .indicator-trend-empty {
  display: grid;
  gap: 5px;
  min-height: 118px;
  align-content: center;
  padding: 14px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

#inspectorContent .indicator-trend-empty strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 880;
}

#inspectorContent .indicator-trend-empty span {
  color: #64748b;
  font-size: 11px;
  line-height: 1.5;
}

#inspectorContent .indicator-year-rows {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

#inspectorContent .indicator-year-rows div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px;
  border-radius: 10px;
  background: #f8fafc;
}

#inspectorContent .indicator-year-rows span {
  color: #64748b;
  font-size: 10px;
  font-weight: 820;
}

#inspectorContent .indicator-year-rows strong {
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

#inspectorContent .indicator-year-rows small {
  overflow: hidden;
  color: #64748b;
  font-size: 9.5px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  #inspectorContent .indicator-explorer-body {
    grid-template-columns: 1fr;
  }

  #inspectorContent .indicator-year-rows {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.panel-edge-toggle {
  position: sticky;
  top: 12px;
  left: 10px;
  z-index: 32;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 34px;
  margin: 12px 0 -2px 12px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  color: #334155;
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    color 0.16s ease;
}

.inspector-edge-toggle {
  border-color: rgba(37, 99, 235, 0.24);
  color: #1d4ed8;
}

.ai-edge-toggle {
  border-color: rgba(109, 40, 217, 0.24);
  color: #6d28d9;
}

.panel-edge-toggle:hover,
.panel-edge-toggle:focus-visible {
  transform: translateX(1px);
  border-color: rgba(37, 99, 235, 0.36);
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  outline: none;
}

.app-shell.inspector-collapsed .inspector-edge-toggle,
.app-shell.ai-collapsed .ai-edge-toggle {
  display: none;
}

@media (max-width: 760px) {
  .panel-edge-toggle {
    top: 8px;
    width: 28px;
    height: 32px;
    margin: 8px 0 0 8px;
  }
}

/* 2026-05-13 AI panel recovery: keep the assistant usable on the deployed app.
   The AI drawer is an overlay on desktop/tablet so the map and info grid never
   push it outside the viewport. Mobile keeps the bottom-sheet rules above. */
@media (min-width: 761px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--inspector-width));
    isolation: isolate;
  }

  .ai-panel {
    position: absolute;
    inset: 0 0 0 auto;
    z-index: 88;
    width: min(var(--ai-width), calc(100vw - 32px));
    min-width: min(360px, calc(100vw - 32px));
    max-width: min(560px, calc(100vw - 32px));
    height: auto;
    max-height: none;
    border-left: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 18px 0 0 18px;
    box-shadow:
      -24px 0 46px rgba(15, 23, 42, 0.16),
      inset 1px 0 0 rgba(255, 255, 255, 0.72);
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    transition:
      transform 180ms ease,
      opacity 180ms ease,
      box-shadow 180ms ease;
  }

  .app-shell.ai-collapsed .ai-panel {
    display: block;
    width: min(max(var(--ai-width), 400px), calc(100vw - 32px));
    min-width: min(360px, calc(100vw - 32px));
    max-width: min(560px, calc(100vw - 32px));
    border-left-color: transparent;
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transform: translateX(calc(100% + 24px));
  }

  .app-shell.ai-collapsed #aiPanelContent {
    visibility: hidden;
  }

  .app-shell:not(.ai-collapsed) #aiPanelContent {
    visibility: visible;
  }

  .ai-resize-handle {
    min-height: 100%;
  }
}

/* 2026-05-13 final panel layout: info and AI must coexist, never overlap. */
@media (min-width: 761px) {
  .workspace {
    display: grid;
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, min(var(--inspector-width), 34vw))
      minmax(0, min(var(--ai-width), 32vw));
    overflow: hidden;
    isolation: isolate;
  }

  .ai-panel {
    position: relative;
    inset: auto;
    z-index: 2;
    width: auto;
    min-width: 0;
    max-width: none;
    height: 100%;
    max-height: none;
    border-left: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 0;
    box-shadow: -12px 0 30px rgba(15, 23, 42, 0.08);
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition:
      opacity 160ms ease,
      box-shadow 160ms ease;
  }

  .app-shell.ai-collapsed .ai-panel {
    display: block;
    width: auto;
    min-width: 0;
    max-width: none;
    border-left-color: transparent;
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transform: none;
  }

  .app-shell.ai-collapsed #aiPanelContent {
    visibility: hidden;
  }

  .app-shell:not(.ai-collapsed) #aiPanelContent {
    visibility: visible;
  }
}

/* 2026-05-13 chat-first AI panel: persona buttons above, conversation below. */
.ai-simple-chat.is-chat-first {
  gap: 8px;
}

.ai-chat-toolbar {
  align-items: center;
  justify-content: space-between;
}

.ai-chat-toolbar > div {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.ai-chat-toolbar span {
  color: #2563eb;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-chat-toolbar strong {
  color: #0f172a;
  font-size: 17px;
  font-weight: 880;
  line-height: 1.2;
}

.ai-simple-chat.is-chat-first .ai-scenario-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-simple-chat.is-chat-first .ai-scenario-card {
  flex: 1 1 calc(33.333% - 6px);
  justify-content: center;
  min-height: 34px;
  padding: 7px 8px;
  border-radius: 999px;
  text-align: center;
}

.ai-simple-chat.is-chat-first .ai-scenario-card span {
  display: none;
}

.ai-simple-chat.is-chat-first .ai-scenario-card strong {
  flex: 0 1 auto;
  font-size: 13px;
  white-space: nowrap;
}

.ai-simple-chat.is-chat-first .ai-scenario-card em {
  display: none;
}

.ai-simple-chat.is-chat-first .ai-target-control {
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  padding: 10px;
}

.ai-simple-chat.is-chat-first .ai-target-summary {
  grid-template-columns: auto minmax(0, 1fr);
}

.ai-simple-chat.is-chat-first .ai-target-summary em {
  display: none;
}

.ai-simple-chat.is-chat-first .ai-target-control label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.ai-simple-chat.is-chat-first .ai-target-actions {
  grid-template-columns: minmax(0, 1fr) minmax(82px, auto);
}

.ai-simple-chat.is-chat-first .ai-simple-thread {
  flex: 1 1 auto;
  min-height: 180px;
}

@media (max-width: 1040px) and (min-width: 761px) {
  .ai-simple-chat.is-chat-first .ai-scenario-card {
    flex-basis: calc(50% - 6px);
  }

  .ai-simple-chat.is-chat-first .ai-target-control label,
  .ai-simple-chat.is-chat-first .ai-target-actions {
    grid-template-columns: 1fr;
  }
}

/* 2026-05-13 persona-chat cleanup: compact persona switch + direct chat. */
.ai-simple-chat.is-persona-chat {
  gap: 9px;
}

.ai-simple-chat.is-persona-chat .ai-persona-switch {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.ai-simple-chat.is-persona-chat .ai-scenario-card {
  flex: none;
  display: grid;
  justify-items: center;
  min-height: 42px;
  padding: 7px 5px;
  border-radius: 12px;
  background: #f8fafc;
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.06);
}

.ai-simple-chat.is-persona-chat .ai-scenario-card span {
  display: block;
  padding: 0;
  background: transparent;
  color: #64748b;
  font-size: 9px;
  line-height: 1;
}

.ai-simple-chat.is-persona-chat .ai-scenario-card strong {
  max-width: 100%;
  font-size: 12px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-simple-chat.is-persona-chat .ai-scenario-card.is-active {
  border-color: rgba(37, 99, 235, 0.58);
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.24);
}

.ai-simple-chat.is-persona-chat .ai-scenario-card.is-active span,
.ai-simple-chat.is-persona-chat .ai-scenario-card.is-active strong {
  color: #ffffff;
}

.ai-context-bar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(112px, 0.72fr) minmax(0, 1fr);
  gap: 8px;
  box-sizing: border-box;
  padding: 9px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.055);
}

.ai-persona-current,
.ai-target-now {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ai-persona-current span,
.ai-target-inline span {
  color: #64748b;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ai-persona-current strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 880;
  line-height: 1.18;
}

.ai-persona-current small,
.ai-target-now small {
  color: #64748b;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.2;
}

.ai-target-inline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.ai-target-inline select {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 0 30px 0 10px;
  border: 1px solid rgba(15, 23, 42, 0.11);
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 760;
}

.ai-target-now {
  display: none;
}

.ai-simple-chat.is-persona-chat .ai-simple-thread {
  min-height: 230px;
  padding: 10px;
}

@media (max-width: 1120px) and (min-width: 761px) {
  .ai-simple-chat.is-persona-chat .ai-persona-switch {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ai-context-bar {
    grid-template-columns: 1fr;
  }
}

/* 2026-05-13 AI composer containment: the chat input is a fixed bottom control
   inside the AI panel, while only the message thread scrolls. */
.ai-panel {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.ai-panel > .ai-resize-handle {
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  z-index: 8 !important;
  float: none !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
}

.ai-panel > .ai-edge-toggle {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  z-index: 32 !important;
  margin: 0 !important;
}

#aiPanelContent {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden !important;
  padding: 12px 12px 12px 48px !important;
}

.ai-simple-chat.is-persona-chat {
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.ai-simple-chat.is-persona-chat .ai-chat-toolbar,
.ai-simple-chat.is-persona-chat .ai-persona-switch,
.ai-simple-chat.is-persona-chat .ai-context-bar,
.ai-simple-chat.is-persona-chat .ai-error-banner,
.ai-simple-chat.is-persona-chat .ai-simple-composer {
  flex: 0 0 auto !important;
}

.ai-simple-chat.is-persona-chat .ai-simple-thread {
  flex: 1 1 0 !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
}

.ai-simple-composer {
  position: relative !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 8px !important;
  box-shadow:
    0 -8px 22px rgba(15, 23, 42, 0.07),
    0 10px 24px rgba(18, 35, 42, 0.08) !important;
}

.ai-simple-composer textarea {
  min-height: 60px !important;
  max-height: 96px !important;
  resize: none !important;
}

.ai-composer-actions {
  min-height: 96px !important;
  grid-template-rows: auto auto auto !important;
}

.ai-simple-composer button {
  min-height: 0 !important;
}

@media (max-width: 760px) {
  #aiPanelContent {
    padding: 10px 10px 10px 44px !important;
  }

  .ai-simple-composer {
    padding: 7px !important;
  }

  .ai-simple-composer textarea {
    min-height: 54px !important;
  }

  .ai-composer-actions {
    min-height: 88px !important;
    grid-template-rows: auto auto auto !important;
  }
}

/* 2026-05-13 AI wide workspace: prioritize the chat analyst panel when the
   user expands it. The map is allowed to shrink before the AI panel is capped. */
@media (min-width: 761px) {
  .workspace {
    grid-template-columns:
      minmax(180px, 1fr)
      minmax(0, min(var(--inspector-width), 30vw))
      minmax(0, min(var(--ai-width), 58vw)) !important;
  }

  .app-shell.inspector-collapsed .workspace {
    grid-template-columns:
      minmax(220px, 1fr)
      0
      minmax(0, min(var(--ai-width), 68vw)) !important;
  }

  .app-shell.ai-collapsed .workspace {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(0, min(var(--inspector-width), 34vw))
      0 !important;
  }
}

/* ── 소개 배너 (결과보고서 데모 오버레이) ── */
.intro-banner {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 32, 25, 0.82);
  backdrop-filter: blur(4px);
}
.intro-inner {
  background: var(--panel, #fffefa);
  border: 1px solid var(--border, #d8ddd6);
  border-radius: 12px;
  padding: 2rem 2.5rem 1.75rem;
  max-width: 520px;
  width: 90vw;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
}
.intro-badge {
  display: inline-block;
  background: var(--accent, #4a7c59);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25em 0.75em;
  border-radius: 99px;
  align-self: center;
}
.intro-inner strong {
  font-size: 1.15rem;
  color: var(--text, #162019);
  line-height: 1.4;
}
.intro-inner p {
  font-size: 0.88rem;
  color: var(--muted, #526257);
  line-height: 1.6;
  margin: 0;
}
.intro-start-btn {
  margin-top: 0.5rem;
  align-self: center;
  background: var(--accent, #4a7c59);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.6em 1.6em;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.intro-start-btn:hover { opacity: 0.85; }
