:root {
  color-scheme: light;
  --page: #9da8b6;
  --page-deep: #8e9aaa;
  --canvas: #eef5ff;
  --canvas-blue: #dfeaff;
  --canvas-warm: #f7fbff;
  --panel: rgba(247, 251, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --panel-blue: rgba(219, 232, 252, 0.64);
  --line: rgba(255, 255, 255, 0.78);
  --line-blue: rgba(59, 89, 171, 0.18);
  --line-strong: rgba(42, 80, 180, 0.36);
  --text: #05092d;
  --muted: #34435a;
  --muted-2: #5f6e84;
  --primary: #2640d8;
  --primary-dark: #1730ad;
  --primary-soft: #789bff;
  --reference-blue: #11354d;
  --action: #2d57ff;
  --good: #118a64;
  --warn: #b87614;
  --bad: #d54565;
  --info: #1476a8;
  --focus: #2448f2;
  --shadow: 0 30px 90px rgba(52, 73, 112, 0.18);
  --shadow-soft: 0 16px 45px rgba(62, 82, 124, 0.13);
  --button-shadow: 0 16px 30px rgba(37, 64, 190, 0.24);
  --radius: 8px;
  --radius-sm: 6px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 26%),
    var(--page);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 8%, rgba(255, 255, 255, 0.3), transparent 26%),
    radial-gradient(circle at 78% 16%, rgba(205, 222, 255, 0.54), transparent 24%);
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(36, 72, 242, 0.58);
  outline-offset: 3px;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1740px, calc(100vw - 96px));
  margin: 0 auto;
  padding: 56px 0;
}

.hero-panel {
  display: block;
  margin-bottom: 22px;
}

.control-card,
.experience-frame,
.control-sidebar,
.panel-card,
.summary-card,
.filter-panel,
.timeline-panel,
.data-section,
.decision-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(231, 240, 255, 0.68)),
    var(--panel);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(24px);
}

.control-card {
  position: relative;
  overflow: hidden;
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(225, 236, 255, 0.82)),
    radial-gradient(circle at 88% 16%, rgba(93, 130, 255, 0.28), transparent 34%),
    linear-gradient(90deg, rgba(17, 53, 77, 0.08), transparent 42%),
    var(--canvas);
  box-shadow:
    0 34px 90px rgba(52, 73, 112, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(48, 78, 133, 0.08);
}

.experience-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent calc(74% - 1px), rgba(255, 255, 255, 0.72) calc(74% - 1px), rgba(255, 255, 255, 0.72) 74%, transparent 74%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.64) 0 1px, transparent 1px);
}

.eyebrow,
.summary-card span,
.metric span {
  display: block;
  margin: 0;
  color: var(--primary-dark);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.selector-control {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(38, 64, 216, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(239, 246, 255, 0.8));
  box-shadow:
    0 18px 42px rgba(68, 91, 137, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.selector-control::before,
.selector-control::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.selector-control::before {
  right: 34px;
  bottom: 36px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(45, 87, 255, 0.98), rgba(23, 48, 173, 0.98));
  box-shadow:
    0 16px 28px rgba(37, 64, 190, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.selector-control::after {
  right: 52px;
  bottom: 54px;
  width: 12px;
  height: 12px;
  border-right: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  transform: rotate(45deg);
  transform-origin: center;
}

.control-card label,
.field label,
.timeline-panel label,
.compare-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted-2);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

select,
input[type="search"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(42, 80, 180, 0.18);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 255, 0.86));
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

select:hover,
input[type="search"]:hover {
  border-color: rgba(42, 80, 180, 0.34);
}

select:focus,
input[type="search"]:focus {
  border-color: rgba(36, 72, 242, 0.64);
  box-shadow: 0 0 0 4px rgba(36, 72, 242, 0.12);
}

#experienceSelect {
  min-height: 76px;
  appearance: none;
  padding: 0 96px 0 20px;
  border: 1px solid rgba(38, 64, 216, 0.34);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 850;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(228, 238, 255, 0.96));
  box-shadow:
    0 14px 28px rgba(65, 86, 130, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

#experienceSelect:hover {
  border-color: rgba(38, 64, 216, 0.48);
  box-shadow:
    0 18px 34px rgba(65, 86, 130, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

#experienceSelect:focus {
  border-color: rgba(36, 72, 242, 0.72);
  box-shadow:
    0 0 0 4px rgba(36, 72, 242, 0.14),
    0 18px 34px rgba(65, 86, 130, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.control-sidebar select,
.control-sidebar input[type="search"] {
  min-height: 40px;
  padding: 0 11px;
  border-color: rgba(42, 80, 180, 0.14);
  color: #101936;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.74);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
}

.mode-card-grid {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
  gap: 12px;
  padding-top: 4px;
}

.mode-card {
  min-height: 104px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  border: 1px solid rgba(42, 80, 180, 0.16);
  border-radius: var(--radius);
  padding: 14px;
  color: var(--text);
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(232, 241, 255, 0.74));
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(59, 82, 130, 0.08);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.mode-card:hover,
.mode-card.is-active {
  transform: translateY(-2px);
  border-color: rgba(38, 64, 216, 0.42);
  background:
    linear-gradient(145deg, rgba(72, 96, 224, 0.96), rgba(24, 49, 172, 0.96));
  box-shadow: var(--button-shadow);
}

.mode-card span {
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 900;
}

.mode-card strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
}

.mode-card small {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.mode-card:hover span,
.mode-card:hover strong,
.mode-card:hover small,
.mode-card.is-active span,
.mode-card.is-active strong,
.mode-card.is-active small {
  color: #ffffff;
}

.experience-frame {
  position: relative;
  min-height: 790px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(225, 236, 255, 0.74)),
    var(--canvas);
  box-shadow: var(--shadow);
}

.map-root,
.loading-card {
  min-height: 790px;
}

.loading-card {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.experience {
  position: relative;
  min-height: 790px;
  padding: 18px;
  overflow: hidden;
}

.experience-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 470px);
  gap: 18px;
  align-items: stretch;
  min-height: 754px;
}

.stage {
  position: relative;
  min-height: 754px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 18%, rgba(183, 207, 255, 0.48), transparent 32%),
    linear-gradient(145deg, #f7fbff, #dce9fb);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 22px 60px rgba(48, 70, 111, 0.16);
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.62) 0 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.62) 0 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: 0.28;
  z-index: 1;
}

.stage > canvas,
.stage > svg {
  position: relative;
  z-index: 0;
}

.map-canvas,
.map-svg {
  width: 100%;
  height: 100%;
  display: block;
  min-height: 754px;
}

.map-svg {
  touch-action: none;
}

.control-sidebar {
  position: sticky;
  top: 18px;
  align-self: start;
  max-height: calc(100vh - 36px);
  --sidebar-scroll-thumb-y: 14px;
  --sidebar-scroll-thumb-height: 84px;
  display: grid;
  gap: 16px;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  padding: 16px 26px 16px 16px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(250, 253, 255, 0.86), rgba(231, 240, 255, 0.74));
  box-shadow:
    0 18px 48px rgba(61, 79, 118, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  scrollbar-color: rgba(75, 95, 132, 0.62) rgba(255, 255, 255, 0.48);
  scrollbar-width: thin;
}

.control-sidebar::before,
.control-sidebar::after {
  content: "";
  position: absolute;
  right: 8px;
  width: 5px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 5;
}

.control-sidebar::after {
  top: 14px;
  bottom: 14px;
  background: rgba(17, 53, 77, 0.13);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.54),
    0 0 0 1px rgba(83, 103, 133, 0.07);
}

.control-sidebar::before {
  top: var(--sidebar-scroll-thumb-y);
  height: var(--sidebar-scroll-thumb-height);
  background: linear-gradient(180deg, rgba(31, 82, 111, 0.86), rgba(61, 87, 177, 0.82));
  box-shadow: 0 8px 18px rgba(48, 77, 128, 0.24);
}

.control-sidebar > * {
  min-width: 0;
}

.control-sidebar::-webkit-scrollbar {
  width: 10px;
}

.control-sidebar::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.control-sidebar::-webkit-scrollbar-thumb {
  border: 2px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: rgba(75, 95, 132, 0.62);
  background-clip: padding-box;
}

.control-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(45, 65, 104, 0.76);
  background-clip: padding-box;
}

.control-sidebar .eyebrow,
.control-sidebar .summary-card span,
.control-sidebar .metric span {
  color: #55677c;
  font-weight: 620;
}

.experience-topline {
  display: grid;
  gap: 12px;
  padding: 2px 2px 0;
}

.experience-topline h2,
.data-section h3,
.decision-card h3,
.panel-card h3 {
  margin: 4px 0 0;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: 0;
  font-weight: 650;
}

.experience-topline h2 {
  margin-top: 3px;
  font-size: 1.22rem;
  font-weight: 620;
}

.experience-topline p,
.data-section p,
.timeline-panel p,
.panel-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.48;
}

.experience-actions,
.toolbar-group,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.experience-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.experience-actions .pill-button,
.experience-actions .toggle-control {
  width: 100%;
  justify-content: center;
}

.experience-actions [data-action="export-report"] {
  grid-column: 1 / -1;
}

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

.summary-card {
  min-height: 84px;
  display: grid;
  align-content: space-between;
  padding: 12px;
  border-radius: var(--radius);
  border-color: rgba(42, 80, 180, 0.11);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.summary-card:hover {
  border-color: rgba(38, 64, 216, 0.2);
  background: rgba(255, 255, 255, 0.76);
}

.summary-card strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 620;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.filter-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 10px;
  padding: 15px;
  border-radius: var(--radius);
  border-color: rgba(42, 80, 180, 0.11);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: none;
  align-items: end;
}

.field-search,
.filter-panel > button[type="reset"] {
  grid-column: 1 / -1;
}

.field {
  min-width: 0;
}

.timeline-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 14px 15px;
  border-radius: var(--radius);
  border-color: rgba(42, 80, 180, 0.11);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: none;
}

.timeline-summary {
  grid-column: 1 / -1;
  min-width: 0;
  margin-top: 0;
}

.side-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.panel-card {
  padding: 14px;
  border-radius: var(--radius);
  border-color: rgba(42, 80, 180, 0.11);
  background: rgba(255, 255, 255, 0.54);
  box-shadow: none;
}

.panel-card-accent {
  border-color: rgba(38, 64, 216, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(225, 236, 255, 0.62));
}

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

.metric {
  border: 1px solid rgba(42, 80, 180, 0.1);
  border-radius: var(--radius-sm);
  padding: 9px;
  background: rgba(255, 255, 255, 0.58);
}

.metric strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 620;
  overflow-wrap: anywhere;
}

.chip-row {
  margin-top: 10px;
}

.chip,
.status-badge,
.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  border: 1px solid rgba(42, 80, 180, 0.18);
  border-radius: var(--radius-sm);
  padding: 5px 8px;
  color: #10213c;
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 650;
}

.chip-critical,
.status-critical {
  border-color: rgba(213, 69, 101, 0.36);
  color: #8f1634;
  background: rgba(255, 111, 136, 0.16);
}

.chip-high,
.status-high {
  border-color: rgba(184, 118, 20, 0.38);
  color: #764905;
  background: rgba(255, 209, 102, 0.22);
}

.chip-medium,
.status-medium {
  border-color: rgba(20, 118, 168, 0.34);
  color: #064e78;
  background: rgba(103, 215, 255, 0.18);
}

.chip-low,
.status-low {
  border-color: rgba(17, 138, 100, 0.34);
  color: #065f46;
  background: rgba(52, 214, 163, 0.18);
}

.toolbar {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 5;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.toolbar > * {
  pointer-events: auto;
}

.toolbar-group {
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 10px 28px rgba(58, 78, 118, 0.12);
  backdrop-filter: blur(16px);
}

.pill-button {
  min-height: 36px;
  border: 1px solid rgba(38, 64, 216, 0.18);
  border-radius: var(--radius-sm);
  padding: 8px 11px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(232, 241, 255, 0.78));
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 650;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

.pill-button:hover,
.pill-button[aria-pressed="true"] {
  transform: translateY(-1px);
  border-color: rgba(38, 64, 216, 0.36);
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(72, 96, 224, 0.96), rgba(24, 49, 172, 0.96));
  box-shadow: var(--button-shadow);
}

.toggle-control {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(38, 64, 216, 0.18);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
}

.toggle-control input {
  accent-color: var(--primary);
}

.land-layer path,
.atlas-land path {
  fill: rgba(255, 255, 255, 0.28);
  stroke: rgba(255, 255, 255, 0.42);
}

.region-button,
.risk-node,
.hub-node,
[data-connection] {
  cursor: pointer;
  transition: opacity 160ms ease, transform 160ms ease, filter 160ms ease;
}

.region-button:hover,
.risk-node:hover,
.hub-node:hover {
  filter: brightness(1.12) saturate(1.08);
}

.tooltip {
  position: absolute;
  z-index: 10;
  pointer-events: none;
  width: min(340px, calc(100% - 28px));
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: var(--radius);
  padding: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 58px rgba(48, 68, 105, 0.24);
  transform: translate(-50%, calc(-100% - 16px));
  opacity: 1;
  backdrop-filter: blur(18px);
}

.tooltip[hidden] {
  display: block;
  opacity: 0;
  visibility: hidden;
}

.tooltip strong {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
}

.tooltip span {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.35;
}

.decision-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.decision-card {
  min-width: 0;
  padding: 14px;
  border-radius: var(--radius);
  border-color: rgba(42, 80, 180, 0.11);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: none;
}

.decision-card-wide {
  grid-column: auto;
}

.decision-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.decision-note {
  flex: 0 0 auto;
  color: var(--muted-2);
  font-size: 0.72rem;
  font-weight: 650;
}

.preset-grid,
.action-list,
.ranking-list,
.compare-grid {
  display: grid;
  gap: 7px;
}

.preset-grid,
.ranking-list-horizontal {
  grid-template-columns: 1fr;
}

.preset-button,
.action-card,
.ranking-row {
  width: 100%;
  border: 1px solid rgba(42, 80, 180, 0.1);
  border-radius: var(--radius-sm);
  padding: 9px;
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.preset-button:hover,
.action-card:hover,
.ranking-row:hover {
  transform: translateY(-1px);
  border-color: rgba(38, 64, 216, 0.3);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 28px rgba(60, 82, 128, 0.12);
}

.preset-button strong,
.action-card strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 650;
}

.preset-button span,
.action-card span,
.rank-copy small,
.compare-market span,
.job-item span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.36;
}

.compare-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.compare-market {
  border: 1px solid rgba(42, 80, 180, 0.1);
  border-radius: var(--radius-sm);
  padding: 9px;
  background: rgba(255, 255, 255, 0.56);
}

.compare-market strong,
.compare-market span {
  display: block;
}

.compare-market dl {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
}

.compare-market dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.compare-market dt,
.compare-market dd {
  margin: 0;
}

.compare-market dt {
  color: var(--muted);
}

.compare-market dd {
  color: var(--text);
  font-weight: 650;
}

.ranking-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.rank-number {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: var(--radius-sm);
  color: #ffffff;
  background: linear-gradient(145deg, var(--primary-soft), var(--primary-dark));
  font-size: 0.78rem;
  font-weight: 700;
}

.rank-copy strong,
.rank-copy small {
  display: block;
}

.rank-metric {
  color: var(--text);
  font-weight: 650;
}

.job-list {
  display: grid;
  gap: 7px;
}

.job-item {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(42, 80, 180, 0.1);
  border-radius: var(--radius-sm);
  padding: 9px;
  background: rgba(255, 255, 255, 0.58);
}

.data-section {
  min-width: 0;
  margin-top: 18px;
  padding: 15px;
  border-radius: var(--radius);
}

.data-section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 12px;
}

.data-section-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.data-section-actions p {
  max-width: 520px;
  margin: 0;
}

.table-wrap {
  width: 100%;
  min-width: 0;
  max-height: 520px;
  overflow: auto;
  border: 1px solid rgba(42, 80, 180, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
}

.data-table {
  width: 100%;
  min-width: 980px;
  table-layout: fixed;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.72);
}

.data-table th,
.data-table td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(42, 80, 180, 0.11);
  text-align: left;
  vertical-align: middle;
  color: var(--muted);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--text);
  background: rgba(240, 247, 255, 0.98);
}

.data-table th button,
.table-city-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-weight: 850;
  text-align: left;
}

.data-table tbody tr {
  transition: background 140ms ease;
  cursor: pointer;
}

.data-table tbody tr:hover,
.data-table tbody tr.is-selected {
  background: rgba(38, 64, 216, 0.09);
}

.table-city-button {
  color: #10268d;
}

.empty-state {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
}

.svg-legend text {
  letter-spacing: 0;
}

@media (max-width: 1320px) {
  .shell {
    width: min(100vw - 40px, 1740px);
    padding: 28px 0;
  }

  .control-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

}

@media (max-width: 1120px) {
  .experience-grid {
    grid-template-columns: 1fr;
  }

  .control-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 14px;
  }

  .control-sidebar::before,
  .control-sidebar::after {
    display: none;
  }

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

  .field-search,
  .filter-panel > button[type="reset"] {
    grid-column: span 3;
  }

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

@media (max-width: 820px) {
  .shell {
    width: min(100vw - 18px, 1740px);
    padding: 9px 0;
  }

  .control-card,
  .experience,
  .control-sidebar {
    padding: 14px;
  }

  .mode-card-grid,
  .summary-grid,
  .filter-panel,
  .decision-grid,
  .metric-grid,
  .timeline-panel {
    grid-template-columns: 1fr;
  }

  .field-search,
  .filter-panel > button[type="reset"],
  .timeline-summary {
    grid-column: auto;
  }

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

  .toolbar {
    position: static;
    padding: 10px;
    background: rgba(255, 255, 255, 0.72);
  }

  .toolbar-group {
    width: 100%;
  }

  .toolbar .chip {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
