:root {
  --v2-bg: #03050a;
  --v2-bg-elevated: #070a11;
  --v2-panel: rgba(9, 12, 19, 0.92);
  --v2-panel-strong: rgba(13, 17, 26, 0.96);
  --v2-text: #f5f7fb;
  --v2-muted: rgba(193, 201, 217, 0.72);
  --v2-faint: rgba(148, 160, 184, 0.62);
  --v2-line: rgba(255, 255, 255, 0.1);
  --v2-line-soft: rgba(255, 255, 255, 0.08);
  --v2-red: #ff3347;
  --v2-red-strong: #ff1e35;
  --v2-red-soft: rgba(255, 51, 71, 0.14);
  --v2-amber: #e2b261;
  --v2-green: #74d29d;
  --v2-blue: #79a7ff;
  --v2-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --v2-radius: 8px;
  --v2-font:
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    "Segoe UI",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body[data-page="redveil-v2"] {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  color: var(--v2-text);
  font-family: var(--v2-font);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255, 51, 71, 0.05), transparent 280px),
    linear-gradient(115deg, #03050a 0%, #060b15 44%, #05070d 100%);
}

body[data-page="redveil-v2"]::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.82), transparent 78%);
}

body[data-page="redveil-v2"] a {
  color: inherit;
}

body[data-page="redveil-v2"] a:focus-visible,
body[data-page="redveil-v2"] button:focus-visible {
  outline: 2px solid var(--v2-red);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-140%);
  border: 1px solid var(--v2-line);
  border-radius: var(--v2-radius);
  padding: 10px 12px;
  color: var(--v2-text);
  background: #090d16;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.v2-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  width: min(1480px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 12px;
}

.v2-sidebar,
.v2-topbar,
.v2-panel,
.v2-hero-panel {
  border: 1px solid var(--v2-line);
  border-radius: var(--v2-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    var(--v2-panel);
  box-shadow: var(--v2-shadow);
}

.v2-sidebar {
  position: sticky;
  top: 12px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: calc(100vh - 24px);
  padding: 12px 9px;
  box-shadow: none;
}

.v2-brand {
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--v2-text);
  text-decoration: none;
  text-align: center;
}

.v2-brand img {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--v2-radius);
  object-fit: cover;
  background: #05070c;
}

.v2-brand span {
  min-width: 0;
}

.v2-brand small {
  display: none;
}

.v2-brand small,
.v2-eyebrow,
.v2-section-label,
.v2-sidebar-status span,
.v2-topbar-title span,
.v2-hero-metrics dt,
.v2-panel-meta {
  display: block;
  color: var(--v2-faint);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.v2-brand strong {
  display: block;
  margin-top: 0;
  color: var(--v2-text);
  font-size: 0.82rem;
}

.v2-side-nav {
  display: grid;
  gap: 7px;
  margin-top: 24px;
}

.v2-side-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: var(--v2-radius);
  padding: 8px 6px;
  color: var(--v2-muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.18;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.v2-side-nav a:hover,
.v2-side-nav a.is-active {
  border-color: rgba(255, 51, 71, 0.3);
  color: #fff;
  background: rgba(255, 51, 71, 0.09);
}

.v2-side-nav a.is-active {
  box-shadow: inset 3px 0 0 var(--v2-red);
}

.v2-sidebar-status {
  display: none;
}

.v2-sidebar-status strong {
  display: block;
  margin-top: 6px;
  font-size: 0.96rem;
}

.v2-sidebar-status p {
  margin: 8px 0 0;
  color: var(--v2-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.v2-workspace {
  min-width: 0;
}

.v2-topbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-bottom: 12px;
  padding: 8px 10px;
  background:
    linear-gradient(90deg, rgba(255, 51, 71, 0.045), transparent 38%),
    var(--v2-panel-strong);
  box-shadow: none;
}

.v2-topbar-title,
.v2-topbar-nav,
.v2-status-pills {
  min-width: 0;
}

.v2-topbar-title strong {
  display: block;
  margin-top: 2px;
  font-size: 0.88rem;
}

.v2-topbar-nav,
.v2-status-pills {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.v2-topbar-nav a,
.v2-status-pills span {
  border: 1px solid var(--v2-line-soft);
  border-radius: var(--v2-radius);
  padding: 6px 8px;
  color: var(--v2-muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.035);
}

.v2-topbar-nav a:hover {
  border-color: rgba(255, 51, 71, 0.26);
  color: var(--v2-text);
}

.v2-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  grid-template-areas:
    "hero hero"
    "map side"
    "candidates workflow";
  gap: 12px;
  min-width: 0;
}

.v2-hero-panel {
  grid-area: hero;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(240px, 0.32fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 14px 16px;
  background:
    linear-gradient(90deg, rgba(255, 51, 71, 0.055), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    var(--v2-panel);
  box-shadow: none;
}

.v2-hero-copy {
  min-width: 0;
}

.v2-hero-copy h1 {
  max-width: 760px;
  margin: 4px 0 0;
  color: #fff;
  font-size: 1.9rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.v2-hero-copy p:not(.v2-eyebrow) {
  max-width: 760px;
  margin: 7px 0 0;
  color: var(--v2-muted);
  font-size: 0.91rem;
  line-height: 1.56;
}

.v2-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.v2-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid var(--v2-line);
  border-radius: var(--v2-radius);
  padding: 8px 11px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.v2-button-primary {
  border-color: rgba(255, 51, 71, 0.62);
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 51, 71, 0.92), rgba(181, 20, 39, 0.9));
  box-shadow: 0 10px 24px rgba(255, 30, 53, 0.14);
}

.v2-button-secondary {
  color: var(--v2-text);
  background: rgba(255, 255, 255, 0.045);
}

.v2-button:hover {
  transform: translateY(-1px);
}

.v2-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
  margin: 0;
}

.v2-hero-metrics div {
  min-width: 0;
  border: 1px solid var(--v2-line-soft);
  border-radius: var(--v2-radius);
  padding: 9px;
  background: rgba(255, 255, 255, 0.035);
}

.v2-hero-metrics dd {
  margin: 4px 0 0;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 900;
}

.v2-panel {
  min-width: 0;
  padding: 14px;
}

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

.v2-panel-head h2 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.3;
}

.v2-panel-head-compact {
  margin-bottom: 10px;
}

.v2-selected-node,
.v2-panel-meta {
  flex: 0 1 auto;
  border: 1px solid var(--v2-line-soft);
  border-radius: var(--v2-radius);
  padding: 8px 10px;
  color: var(--v2-muted);
  background: rgba(255, 255, 255, 0.04);
}

.v2-map-panel {
  grid-area: map;
  min-height: 720px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 24%),
    linear-gradient(90deg, rgba(255, 51, 71, 0.035), transparent 36%),
    var(--v2-panel);
}

.v2-map-canvas {
  position: relative;
  min-height: 625px;
  border: 1px solid var(--v2-line-soft);
  border-radius: var(--v2-radius);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 74px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 68px),
    #070b13;
}

.v2-map-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 51, 71, 0.1);
  box-shadow: inset 0 0 70px rgba(255, 51, 71, 0.06);
}

.v2-risk-map-svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 625px;
}

.v2-map-grid-fill {
  fill: url("#v2-map-grid");
  opacity: 0.42;
}

.v2-map-grid-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.055);
  stroke-width: 1;
}

.v2-map-core {
  fill: url("#v2-map-core");
}

.v2-map-river {
  fill: none;
  stroke: rgba(112, 169, 220, 0.2);
  stroke-linecap: round;
  stroke-width: 32;
}

.v2-grid-risk-layer {
  opacity: 0.96;
}

.v2-grid-cell {
  opacity: var(--grid-opacity, 0.28);
  stroke: rgba(255, 255, 255, 0.075);
  stroke-width: 0.8;
}

.v2-grid-cell.is-high {
  fill: rgba(184, 47, 62, 0.72);
  stroke: rgba(255, 51, 71, 0.18);
}

.v2-grid-cell.is-watch {
  fill: rgba(174, 132, 61, 0.66);
  stroke: rgba(226, 178, 97, 0.16);
}

.v2-grid-cell.is-low {
  fill: rgba(72, 118, 120, 0.62);
  stroke: rgba(116, 210, 157, 0.13);
}

.v2-grid-cell.is-selected-near {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1.1;
}

.v2-map-road-lines path {
  fill: none;
  stroke: rgba(218, 226, 242, 0.12);
  stroke-dasharray: 9 11;
  stroke-linecap: round;
  stroke-width: 1.1;
}

.v2-map-scan-lines path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-dasharray: 5 13;
  stroke-linecap: round;
  stroke-width: 1.1;
}

.v2-map-scan-label text {
  fill: rgba(193, 201, 217, 0.5);
  font-family: var(--v2-font);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.v2-map-cells {
  isolation: isolate;
}

.v2-map-cell {
  cursor: pointer;
  outline: none;
}

.v2-map-cell polygon {
  fill: rgba(24, 31, 43, 0.42);
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1.2;
  transition:
    fill 150ms ease,
    stroke 150ms ease,
    stroke-width 150ms ease,
    filter 150ms ease,
    transform 150ms ease;
}

.v2-map-cell.is-high polygon {
  fill: rgba(119, 31, 42, 0.36);
  stroke: rgba(255, 51, 71, 0.48);
}

.v2-map-cell.is-watch polygon {
  fill: rgba(103, 82, 45, 0.34);
  stroke: rgba(226, 178, 97, 0.44);
}

.v2-map-cell.is-low polygon {
  fill: rgba(34, 69, 67, 0.28);
  stroke: rgba(116, 210, 157, 0.34);
}

.v2-map-cell:hover polygon,
.v2-map-cell:focus-visible polygon {
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1.8;
  filter: drop-shadow(0 0 13px rgba(255, 255, 255, 0.08));
}

.v2-map-cell.is-selected polygon {
  fill: rgba(145, 32, 48, 0.62);
  stroke: rgba(255, 51, 71, 0.88);
  stroke-width: 2.2;
  filter: drop-shadow(0 0 12px rgba(255, 51, 71, 0.22));
}

.v2-map-cell-label,
.v2-map-cell-score {
  pointer-events: none;
  fill: rgba(245, 247, 251, 0.84);
  font-family: var(--v2-font);
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.58);
}

.v2-map-cell-label {
  font-size: 14px;
}

.v2-map-cell-score {
  fill: rgba(193, 201, 217, 0.7);
  font-size: 11px;
}

.v2-map-cell.is-selected .v2-map-cell-label,
.v2-map-cell.is-selected .v2-map-cell-score {
  fill: #fff;
}

.v2-map-target {
  pointer-events: none;
}

.v2-map-target circle,
.v2-map-target line {
  fill: none;
  stroke: rgba(255, 51, 71, 0.82);
  stroke-linecap: round;
  stroke-width: 1.4;
}

.v2-map-target circle {
  stroke-dasharray: 5 7;
  opacity: 0.86;
}

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

.v2-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--v2-line-soft);
  border-radius: var(--v2-radius);
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.035);
}

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

.legend-high {
  background: var(--v2-red);
  box-shadow: 0 0 18px rgba(255, 51, 71, 0.36);
}

.legend-watch {
  background: var(--v2-amber);
}

.legend-low {
  background: var(--v2-green);
}

.v2-side-stack {
  grid-area: side;
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.v2-risk-index,
.v2-top-signal {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(9, 12, 19, 0.78);
  box-shadow: none;
}

.v2-score-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
}

.v2-score-row strong {
  color: var(--v2-red);
  font-size: 4.85rem;
  line-height: 0.96;
  text-shadow: 0 0 24px rgba(255, 51, 71, 0.16);
}

.v2-score-row span {
  color: var(--v2-faint);
  font-size: 1.05rem;
  font-weight: 800;
}

.v2-risk-index p,
.v2-top-signal p,
.v2-workflow-card p,
.v2-noscript {
  color: var(--v2-muted);
  line-height: 1.65;
}

.v2-risk-index p,
.v2-top-signal p {
  margin: 10px 0 0;
  font-size: 0.88rem;
}

.v2-risk-meter {
  height: 8px;
  margin-top: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
}

.v2-risk-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 51, 71, 0.68), var(--v2-red));
}

.v2-top-signal strong {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: 1.18rem;
}

.v2-top-signal {
  border-color: rgba(255, 51, 71, 0.14);
}

.v2-candidate-panel {
  grid-area: candidates;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(9, 12, 19, 0.76);
  box-shadow: none;
}

.v2-candidate-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--v2-line-soft);
  border-radius: var(--v2-radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.018);
}

.v2-candidate-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 72px 88px 92px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid var(--v2-line-soft);
  border-radius: 0;
  padding: 11px 13px;
  background: transparent;
}

.v2-candidate-row:last-child {
  border-bottom: 0;
}

.v2-candidate-row.is-high {
  box-shadow: inset 3px 0 0 rgba(255, 51, 71, 0.34);
}

.v2-candidate-rank {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--v2-line-soft);
  border-radius: var(--v2-radius);
  color: var(--v2-muted);
  font-size: 0.82rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.04);
}

.v2-candidate-name {
  min-width: 0;
  color: #fff;
  font-weight: 900;
}

.v2-candidate-sub {
  display: block;
  margin-top: 2px;
  color: var(--v2-faint);
  font-size: 0.78rem;
  font-weight: 700;
}

.v2-candidate-score {
  color: var(--v2-red);
  font-size: 1.08rem;
  font-weight: 900;
  text-align: right;
}

.v2-candidate-status,
.v2-candidate-rent {
  justify-self: end;
  border: 1px solid var(--v2-line-soft);
  border-radius: var(--v2-radius);
  padding: 7px 8px;
  color: var(--v2-muted);
  font-size: 0.78rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.035);
}

.v2-candidate-status.is-high {
  border-color: rgba(255, 51, 71, 0.38);
  color: #fff;
  background: rgba(255, 51, 71, 0.12);
}

.v2-candidate-status.is-watch {
  border-color: rgba(226, 178, 97, 0.28);
  color: #f3d49b;
}

.v2-candidate-status.is-low {
  border-color: rgba(116, 210, 157, 0.24);
  color: #a9e7c3;
}

.v2-workflow-panel {
  grid-area: workflow;
  opacity: 0.78;
  background: rgba(9, 12, 19, 0.62);
  box-shadow: none;
}

.v2-workflow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
}

.v2-workflow-card {
  display: block;
  min-width: 0;
  min-height: auto;
  border: 1px solid var(--v2-line-soft);
  border-radius: var(--v2-radius);
  padding: 9px 10px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.035);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.v2-workflow-card:hover {
  border-color: rgba(255, 51, 71, 0.26);
  background: rgba(255, 51, 71, 0.07);
  transform: translateY(-1px);
}

.v2-workflow-card span {
  color: var(--v2-red);
  font-size: 0.74rem;
  font-weight: 900;
}

.v2-workflow-card strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 0.9rem;
}

.v2-workflow-card p {
  margin: 4px 0 0;
  font-size: 0.76rem;
  line-height: 1.46;
}

.v2-noscript {
  margin: 0;
}

/* Premium map-first polish */
body[data-page="redveil-v2"] {
  background:
    radial-gradient(circle at 52% -8%, rgba(255, 51, 71, 0.105), transparent 30%),
    radial-gradient(circle at 100% 18%, rgba(121, 167, 255, 0.06), transparent 24%),
    linear-gradient(115deg, #020408 0%, #050914 46%, #03050a 100%);
}

.v2-shell {
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  width: min(1540px, 100%);
  padding: 14px;
}

.v2-sidebar {
  top: 14px;
  height: calc(100vh - 28px);
  border-color: rgba(255, 255, 255, 0.085);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 34%),
    rgba(8, 11, 18, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 16px 42px rgba(0, 0, 0, 0.2);
}

.v2-brand img {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 4px rgba(255, 51, 71, 0.035);
}

.v2-brand strong {
  color: rgba(245, 247, 251, 0.92);
}

.v2-side-nav a {
  border-color: rgba(255, 255, 255, 0.045);
  background: rgba(255, 255, 255, 0.018);
}

.v2-side-nav a:hover,
.v2-side-nav a.is-active {
  border-color: rgba(255, 51, 71, 0.28);
  background: rgba(255, 51, 71, 0.08);
}

.v2-topbar {
  min-height: 48px;
  border-color: rgba(255, 255, 255, 0.085);
  background:
    linear-gradient(90deg, rgba(255, 51, 71, 0.045), transparent 32%),
    rgba(8, 11, 18, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.v2-topbar-title span,
.v2-status-pills span,
.v2-topbar-nav a {
  color: rgba(193, 201, 217, 0.62);
}

.v2-dashboard {
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 14px;
}

.v2-hero-panel {
  padding: 16px 18px;
  border-color: rgba(255, 255, 255, 0.085);
  background:
    linear-gradient(90deg, rgba(255, 51, 71, 0.052), transparent 38%),
    rgba(8, 11, 18, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.v2-hero-copy h1 {
  font-size: 2.08rem;
  line-height: 1.16;
}

.v2-hero-copy p:not(.v2-eyebrow) {
  color: rgba(207, 214, 228, 0.74);
  font-size: 0.95rem;
}

.v2-map-panel {
  min-height: 780px;
  border-color: rgba(255, 255, 255, 0.105);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 22%),
    rgba(7, 10, 17, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.018),
    0 28px 78px rgba(0, 0, 0, 0.34);
}

.v2-map-panel .v2-panel-head h2 {
  font-size: 1.28rem;
}

.v2-selected-node {
  border-color: rgba(255, 51, 71, 0.24);
  color: rgba(245, 247, 251, 0.9);
  background: rgba(255, 51, 71, 0.065);
}

.v2-map-canvas {
  min-height: 680px;
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 36%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.021) 0 1px, transparent 1px 74px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 68px),
    #060a12;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.026),
    inset 0 -44px 70px rgba(0, 0, 0, 0.25),
    0 18px 42px rgba(0, 0, 0, 0.3);
}

.v2-map-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 5, 10, 0.3), transparent 18%, transparent 78%, rgba(3, 5, 10, 0.38)),
    linear-gradient(90deg, rgba(3, 5, 10, 0.28), transparent 16%, transparent 84%, rgba(3, 5, 10, 0.28));
}

.v2-map-canvas::after {
  z-index: 3;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.026),
    inset 0 0 74px rgba(255, 51, 71, 0.045);
}

.v2-risk-map-svg {
  min-height: 680px;
}

.v2-map-cell-label {
  font-size: 15px;
}

.v2-map-cell-score {
  font-size: 11.5px;
}

.v2-risk-index,
.v2-top-signal {
  padding: 18px;
  border-color: rgba(255, 255, 255, 0.095);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.046), transparent 42%),
    rgba(8, 11, 18, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 42px rgba(0, 0, 0, 0.2);
}

.v2-score-row {
  margin-top: 12px;
  padding: 6px 0 2px;
}

.v2-score-row strong {
  font-size: 5.35rem;
  font-variant-numeric: tabular-nums;
}

.v2-risk-meter {
  height: 10px;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(90deg, rgba(116, 210, 157, 0.16), rgba(226, 178, 97, 0.15), rgba(255, 51, 71, 0.16)),
    rgba(255, 255, 255, 0.045);
}

.v2-risk-meter span {
  background: linear-gradient(90deg, rgba(255, 51, 71, 0.54), rgba(255, 51, 71, 0.88));
  box-shadow: 0 0 18px rgba(255, 51, 71, 0.18);
}

.v2-top-signal strong {
  margin-top: 12px;
  font-size: 1.28rem;
}

.v2-top-signal p {
  border-left: 2px solid rgba(255, 51, 71, 0.38);
  padding: 10px 0 10px 12px;
  background: linear-gradient(90deg, rgba(255, 51, 71, 0.045), transparent 70%);
}

.v2-candidate-panel {
  padding: 17px;
  border-color: rgba(255, 255, 255, 0.092);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%),
    rgba(8, 11, 18, 0.78);
}

.v2-candidate-list {
  border-color: rgba(255, 255, 255, 0.095);
}

.v2-candidate-header,
.v2-candidate-row {
  display: grid;
  grid-template-columns: 52px minmax(108px, 0.86fr) minmax(210px, 1.25fr) 76px 92px 92px;
  align-items: center;
  gap: 12px;
}

.v2-candidate-header {
  min-width: 0;
  padding: 9px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.085);
  color: rgba(148, 160, 184, 0.7);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.024);
}

.v2-candidate-row {
  grid-template-columns: 52px minmax(108px, 0.86fr) minmax(210px, 1.25fr) 76px 92px 92px;
  min-height: 58px;
  padding: 12px 13px;
}

.v2-candidate-row:hover {
  background: rgba(255, 255, 255, 0.026);
}

.v2-candidate-name {
  font-size: 0.95rem;
}

.v2-candidate-signal {
  min-width: 0;
  color: rgba(193, 201, 217, 0.7);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.42;
}

.v2-candidate-score {
  font-variant-numeric: tabular-nums;
}

.v2-workflow-panel {
  opacity: 0.7;
  border-color: rgba(255, 255, 255, 0.075);
}

.v2-workflow-card {
  background: rgba(255, 255, 255, 0.022);
}

@media (max-width: 1180px) {
  .v2-dashboard {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "hero"
      "map"
      "side"
      "candidates"
      "workflow";
  }

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

  .v2-hero-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .v2-hero-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .v2-shell {
    grid-template-columns: minmax(0, 1fr);
    padding: 10px;
  }

  .v2-sidebar {
    position: static;
    height: auto;
    padding: 9px;
  }

  .v2-brand {
    display: flex;
    justify-content: center;
  }

  .v2-brand img {
    width: 34px;
    height: 34px;
  }

  .v2-side-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin-top: 9px;
  }

  .v2-side-nav a {
    justify-content: center;
    min-height: 36px;
    padding: 8px 5px;
    font-size: 0.72rem;
    line-height: 1.18;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .v2-sidebar-status {
    display: none;
  }

  .v2-topbar {
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: 10px;
    padding: 8px 10px;
  }

  .v2-topbar-nav,
  .v2-status-pills {
    display: none;
  }

  .v2-map-panel {
    min-height: auto;
  }

  .v2-map-canvas {
    min-height: 360px;
  }

  .v2-risk-map-svg {
    min-height: 360px;
  }
}

@media (max-width: 700px) {
  .v2-shell {
    gap: 8px;
  }

  .v2-hero-panel,
  .v2-panel {
    padding: 12px;
  }

  .v2-hero-copy h1 {
    font-size: 1.55rem;
  }

  .v2-side-stack,
  .v2-workflow-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .v2-hero-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .v2-hero-actions,
  .v2-hero-metrics {
    display: none;
  }

  .v2-button {
    width: 100%;
  }

  .v2-panel-head {
    display: grid;
  }

  .v2-selected-node,
  .v2-panel-meta {
    justify-self: start;
  }

  .v2-map-canvas {
    min-height: 390px;
  }

  .v2-risk-map-svg {
    min-height: 390px;
  }

  .v2-grid-risk-layer {
    opacity: 0.72;
  }

  .v2-map-cell-label {
    font-size: 13px;
  }

  .v2-map-cell-score {
    font-size: 11px;
  }

  .v2-score-row strong {
    font-size: 3.35rem;
  }

  .v2-candidate-row {
    grid-template-columns: 34px minmax(0, 1fr) 56px;
    gap: 8px;
  }

  .v2-candidate-header {
    display: none;
  }

  .v2-candidate-signal {
    grid-column: 2 / -1;
    font-size: 0.78rem;
  }

  .v2-candidate-status,
  .v2-candidate-rent {
    justify-self: start;
    grid-column: 2 / -1;
  }

  .v2-candidate-rent {
    margin-top: -2px;
  }
}

@media (max-width: 430px) {
  .v2-side-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .v2-topbar-nav a,
  .v2-status-pills span {
    padding: 7px 8px;
    font-size: 0.74rem;
  }

  .v2-hero-copy h1 {
    font-size: 1.45rem;
  }

  .v2-hero-copy p:not(.v2-eyebrow) {
    font-size: 0.92rem;
  }

  .v2-grid-risk-layer {
    opacity: 0.62;
  }

  .v2-map-scan-label {
    opacity: 0.72;
  }
}

/* Bold command-center redesign */
body[data-page="redveil-v2"] {
  background:
    radial-gradient(circle at 38% -12%, rgba(255, 51, 71, 0.16), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(83, 129, 210, 0.075), transparent 24%),
    linear-gradient(120deg, #010207 0%, #050915 48%, #020308 100%);
}

.v2-shell {
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 18px;
  width: min(1720px, 100%);
  padding: 18px;
}

.v2-sidebar {
  top: 18px;
  height: calc(100vh - 36px);
  padding: 18px 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.052), transparent 34%),
    linear-gradient(90deg, rgba(255, 51, 71, 0.042), transparent 72%),
    rgba(7, 10, 17, 0.92);
}

.v2-brand {
  gap: 10px;
}

.v2-brand img {
  width: 54px;
  height: 54px;
}

.v2-brand strong {
  font-size: 0.92rem;
}

.v2-side-nav {
  gap: 10px;
  margin-top: 34px;
}

.v2-side-nav a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  min-height: 54px;
  padding: 9px 10px;
  text-align: left;
  background: rgba(255, 255, 255, 0.026);
}

.v2-side-nav a span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  color: rgba(193, 201, 217, 0.7);
  font-size: 0.64rem;
  font-weight: 900;
}

.v2-side-nav a strong {
  color: rgba(230, 235, 245, 0.82);
  font-size: 0.78rem;
}

.v2-side-nav a.is-active {
  border-color: rgba(255, 51, 71, 0.46);
  background:
    linear-gradient(90deg, rgba(255, 51, 71, 0.18), rgba(255, 51, 71, 0.045)),
    rgba(255, 255, 255, 0.03);
  box-shadow:
    inset 3px 0 0 var(--v2-red),
    0 14px 28px rgba(255, 51, 71, 0.08);
}

.v2-side-nav a.is-active span {
  border-color: rgba(255, 51, 71, 0.6);
  color: #fff;
  background: rgba(255, 51, 71, 0.22);
}

.v2-topbar {
  min-height: 50px;
  margin-bottom: 18px;
  padding: 9px 12px;
}

.v2-dashboard {
  grid-template-columns: minmax(0, 1fr) 390px;
  grid-template-areas:
    "hero side"
    "map side"
    "candidates workflow";
  gap: 18px;
}

.v2-hero-panel {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.5fr) auto;
  align-items: stretch;
  padding: 22px;
  min-height: 178px;
  background:
    linear-gradient(90deg, rgba(255, 51, 71, 0.11), transparent 46%),
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.07), transparent 28%),
    rgba(8, 11, 18, 0.86);
}

.v2-hero-copy h1 {
  max-width: 880px;
  font-size: clamp(2.15rem, 3vw, 3.35rem);
  line-height: 1.1;
}

.v2-hero-copy p:not(.v2-eyebrow) {
  max-width: 760px;
  margin-top: 12px;
  font-size: 1.02rem;
}

.v2-mission-strip {
  align-self: stretch;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.v2-mission-strip div {
  display: grid;
  align-content: center;
  padding: 15px 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent),
    rgba(255, 255, 255, 0.035);
}

.v2-mission-strip dd {
  font-size: 1.2rem;
}

.v2-hero-actions {
  display: grid;
  align-content: center;
  min-width: 160px;
}

.v2-button {
  min-height: 42px;
}

.v2-map-panel {
  min-height: 900px;
  padding: 22px;
}

.v2-map-command-head {
  align-items: center;
  margin-bottom: 16px;
}

.v2-map-command-head h2 {
  font-size: clamp(1.35rem, 1.8vw, 1.8rem);
}

.v2-map-command-head p {
  margin: 7px 0 0;
  color: rgba(193, 201, 217, 0.68);
  font-size: 0.9rem;
}

.v2-map-command-status {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.v2-map-command-status span {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--v2-radius);
  padding: 6px 8px;
  color: rgba(193, 201, 217, 0.62);
  font-size: 0.68rem;
  font-weight: 900;
}

.v2-map-screen {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--v2-radius);
  overflow: hidden;
  background: rgba(2, 4, 9, 0.66);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 70px rgba(0, 0, 0, 0.34);
}

.v2-map-screenbar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.028);
}

.v2-map-screenbar span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.v2-map-screenbar span:first-child {
  background: rgba(255, 51, 71, 0.72);
}

.v2-map-screenbar strong {
  margin-left: 8px;
  color: rgba(193, 201, 217, 0.55);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
}

.v2-map-canvas {
  min-height: 760px;
  border: 0;
  border-radius: 0;
}

.v2-risk-map-svg {
  min-height: 760px;
}

.v2-side-stack {
  gap: 16px;
}

.v2-risk-index,
.v2-top-signal,
.v2-decision-card {
  padding: 22px;
}

.v2-risk-index {
  min-height: 310px;
  border-color: rgba(255, 51, 71, 0.18);
}

.v2-score-row strong {
  font-size: clamp(5.8rem, 7.6vw, 7.1rem);
}

.v2-risk-index p,
.v2-top-signal p,
.v2-decision-card p {
  font-size: 0.94rem;
}

.v2-top-signal {
  min-height: 230px;
}

.v2-decision-card {
  min-height: 190px;
  border-color: rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(8, 11, 18, 0.72);
}

.v2-decision-card strong {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: 1.1rem;
}

.v2-decision-card p {
  margin: 10px 0 0;
  color: rgba(193, 201, 217, 0.7);
  line-height: 1.62;
}

.v2-candidate-panel {
  padding: 22px;
}

.v2-candidate-list {
  display: grid;
  gap: 10px;
  border: 0;
  overflow: visible;
  background: transparent;
}

.v2-candidate-header {
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: var(--v2-radius);
  background: rgba(255, 255, 255, 0.026);
}

.v2-candidate-row {
  min-height: 78px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--v2-radius);
  padding: 15px 16px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.038), transparent 34%),
    rgba(255, 255, 255, 0.018);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.v2-candidate-row:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.v2-candidate-rank {
  width: 38px;
  height: 38px;
  color: #fff;
}

.v2-candidate-name {
  font-size: 1.02rem;
}

.v2-candidate-signal {
  font-size: 0.88rem;
}

.v2-workflow-panel {
  align-self: start;
  padding: 18px;
}

.v2-workflow-grid {
  gap: 9px;
}

.v2-workflow-card {
  padding: 12px;
}

@media (max-width: 1180px) {
  .v2-shell {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
  }

  .v2-sidebar {
    position: static;
    height: auto;
  }

  .v2-dashboard {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "hero"
      "map"
      "side"
      "candidates"
      "workflow";
  }

  .v2-hero-panel {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 760px) {
  .v2-shell {
    padding: 10px;
  }

  .v2-side-nav a {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .v2-side-nav a span {
    display: none;
  }

  .v2-hero-copy h1 {
    font-size: 1.7rem;
  }

  .v2-mission-strip,
  .v2-hero-actions {
    display: none;
  }

  .v2-map-panel {
    min-height: auto;
    padding: 12px;
  }

  .v2-map-command-head,
  .v2-panel-head {
    display: grid;
  }

  .v2-map-command-status {
    justify-items: start;
  }

  .v2-map-screenbar strong {
    display: none;
  }

  .v2-map-canvas,
  .v2-risk-map-svg {
    min-height: 420px;
  }

  .v2-side-stack {
    grid-template-columns: minmax(0, 1fr);
  }

  .v2-score-row strong {
    font-size: 4.1rem;
  }

  .v2-candidate-header {
    display: none;
  }

  .v2-candidate-row {
    grid-template-columns: 38px minmax(0, 1fr) 58px;
    gap: 8px;
  }

  .v2-candidate-signal,
  .v2-candidate-status,
  .v2-candidate-rent {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

@media (min-width: 981px) {
  .v2-shell {
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 18px;
    width: min(1720px, 100%);
    padding: 18px;
  }

  .v2-sidebar {
    position: sticky;
    top: 18px;
    height: calc(100vh - 36px);
    padding: 18px 13px;
  }

  .v2-dashboard {
    grid-template-columns: minmax(0, 1fr) 390px;
    grid-template-areas:
      "hero side"
      "map side"
      "candidates workflow";
    gap: 18px;
  }

  .v2-hero-panel {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.5fr) auto;
  }

  .v2-side-stack {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
  }

  .v2-workflow-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 981px) and (max-width: 1280px) {
  .v2-shell {
    grid-template-columns: 126px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .v2-sidebar {
    top: 12px;
    height: calc(100vh - 24px);
    padding: 14px 10px;
  }

  .v2-side-nav a {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    min-height: 50px;
    text-align: center;
  }

  .v2-side-nav a span {
    display: none;
  }

  .v2-dashboard {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 12px;
  }

  .v2-hero-panel {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding: 18px;
  }

  .v2-hero-copy h1 {
    font-size: clamp(1.85rem, 2.5vw, 2.3rem);
  }

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

  .v2-hero-actions {
    display: none;
  }

  .v2-map-panel {
    min-height: 820px;
  }

  .v2-map-canvas,
  .v2-risk-map-svg {
    min-height: 690px;
  }

  .v2-risk-index,
  .v2-top-signal,
  .v2-decision-card {
    padding: 18px;
  }

  .v2-score-row strong {
    font-size: 5rem;
  }
}

/* Live risk scan focus system */
.v2-map-screen {
  position: relative;
}

.v2-map-status-strip {
  position: absolute;
  top: 48px;
  left: 14px;
  right: 14px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  pointer-events: none;
}

.v2-map-status-strip span {
  min-height: 25px;
  border: 1px solid rgba(255, 255, 255, 0.092);
  border-radius: 999px;
  padding: 6px 8px;
  color: rgba(193, 201, 217, 0.68);
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  background: rgba(4, 7, 13, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.v2-map-status-strip span:first-child,
.v2-map-status-strip span:nth-child(4) {
  border-color: rgba(255, 51, 71, 0.22);
  color: rgba(255, 218, 222, 0.9);
  background: rgba(255, 51, 71, 0.085);
}

.v2-map-status-strip strong {
  color: #fff;
  font-weight: 900;
}

.v2-map-grid-fill {
  opacity: 0.32;
}

.v2-map-core {
  opacity: 0.78;
}

.v2-grid-risk-layer {
  opacity: 0.58;
}

.v2-grid-cell {
  stroke: transparent;
  stroke-width: 0;
}

.v2-grid-cell.is-high {
  fill: rgba(184, 47, 62, 0.5);
}

.v2-grid-cell.is-watch {
  fill: rgba(174, 132, 61, 0.46);
}

.v2-grid-cell.is-low {
  fill: rgba(72, 118, 120, 0.4);
}

.v2-grid-cell.is-selected-near {
  opacity: calc(var(--grid-opacity, 0.3) + 0.1);
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 0.8;
}

.v2-map-river-bank {
  fill: none;
  stroke: rgba(11, 20, 34, 0.78);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 38;
}

.v2-map-river {
  stroke: rgba(105, 151, 190, 0.24);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 24;
}

.v2-map-road-lines path {
  stroke: rgba(218, 226, 242, 0.1);
}

.v2-map-scan-lines path {
  stroke: rgba(255, 255, 255, 0.052);
}

.v2-map-hotspot-layer,
.v2-map-target {
  pointer-events: none;
}

.v2-map-hotspot {
  opacity: var(--hotspot-opacity, 0.32);
  fill: rgba(255, 51, 71, 0.82);
  filter: drop-shadow(0 0 8px rgba(255, 51, 71, 0.18));
}

.v2-map-hotspot.is-critical {
  fill: rgba(255, 61, 78, 0.92);
}

.v2-map-hotspot.is-selected {
  fill: rgba(255, 92, 105, 0.92);
  filter: drop-shadow(0 0 11px rgba(255, 51, 71, 0.24));
}

.v2-map-risk-pixel {
  opacity: var(--hotspot-opacity, 0.36);
  fill: rgba(255, 98, 112, 0.76);
}

.v2-map-risk-pixel.is-selected {
  fill: rgba(255, 210, 216, 0.82);
}

.v2-map-cell polygon {
  opacity: 0.7;
  stroke: rgba(255, 255, 255, 0.24);
  stroke-width: 1.15;
}

.v2-map-cell.is-high polygon {
  fill: rgba(119, 31, 42, 0.28);
  stroke: rgba(255, 51, 71, 0.4);
}

.v2-map-cell.is-watch polygon {
  fill: rgba(103, 82, 45, 0.26);
  stroke: rgba(226, 178, 97, 0.34);
}

.v2-map-cell.is-low polygon {
  fill: rgba(34, 69, 67, 0.22);
  stroke: rgba(116, 210, 157, 0.28);
}

.v2-map-cell:not(.is-selected) .v2-map-cell-label {
  fill: rgba(230, 235, 245, 0.74);
}

.v2-map-cell:not(.is-selected) .v2-map-cell-score {
  fill: rgba(193, 201, 217, 0.54);
}

.v2-map-cell.is-selected polygon {
  opacity: 1;
  fill: rgba(170, 31, 48, 0.68);
  stroke: rgba(255, 51, 71, 0.98);
  stroke-width: 3;
  filter:
    drop-shadow(0 0 10px rgba(255, 51, 71, 0.26))
    drop-shadow(0 7px 14px rgba(0, 0, 0, 0.28));
}

.v2-map-cell.is-selected .v2-map-cell-label {
  font-size: 16px;
}

.v2-map-cell.is-selected .v2-map-cell-score {
  fill: rgba(255, 225, 229, 0.96);
  font-size: 12.5px;
}

.v2-map-focus-halo {
  fill: rgba(255, 51, 71, 0.13);
  filter: url("#v2-focus-blur");
}

.v2-map-focus-ring {
  fill: none;
  stroke: rgba(255, 51, 71, 0.88);
  stroke-dasharray: 8 7;
  stroke-linecap: round;
  stroke-width: 1.6;
}

.v2-map-focus-ring.is-outer {
  opacity: 0.48;
  stroke: rgba(255, 220, 225, 0.62);
  stroke-dasharray: 2 12;
  stroke-width: 1.2;
}

.v2-map-crosshair line {
  fill: none;
  stroke: rgba(255, 51, 71, 0.76);
  stroke-linecap: round;
  stroke-width: 1.35;
}

.v2-map-focus-core {
  fill: rgba(255, 245, 247, 0.94);
  filter: drop-shadow(0 0 8px rgba(255, 51, 71, 0.62));
}

.v2-selected-district-boundary {
  fill: none;
  stroke: rgba(255, 245, 247, 0.9);
  stroke-linejoin: round;
  stroke-width: 1.3;
}

.v2-selected-district-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 51, 71, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 51, 71, 0.07), transparent 42%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 50%),
    rgba(8, 11, 18, 0.84);
}

.v2-selected-district-panel::before {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(255, 51, 71, 0.16);
  border-radius: 999px;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 12px rgba(255, 51, 71, 0.018),
    0 0 28px rgba(255, 51, 71, 0.055);
}

.v2-selected-district-panel .v2-panel-head,
.v2-selected-district-panel .v2-score-label,
.v2-selected-district-panel .v2-score-row,
.v2-selected-district-panel p,
.v2-selected-district-panel .v2-risk-meter {
  position: relative;
  z-index: 1;
}

.v2-selected-district-panel h2 {
  font-size: 1.42rem;
}

.v2-score-label {
  display: inline-flex;
  margin-top: 6px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 6px 8px;
  color: rgba(193, 201, 217, 0.66);
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.035);
}

.v2-selected-district-panel .v2-score-row {
  margin-top: 10px;
}

.v2-decision-card {
  border-color: rgba(255, 51, 71, 0.14);
}

.v2-decision-card strong {
  display: inline-flex;
  border: 1px solid rgba(255, 51, 71, 0.22);
  border-radius: 999px;
  padding: 8px 10px;
  color: #fff;
  background: rgba(255, 51, 71, 0.08);
}

.v2-top-signal {
  border-color: rgba(255, 255, 255, 0.1);
}

.v2-analyst-note {
  border-left: 2px solid rgba(255, 51, 71, 0.38);
  padding: 11px 0 11px 13px;
  background: linear-gradient(90deg, rgba(255, 51, 71, 0.045), transparent 76%);
}

@media (max-width: 760px) {
  .v2-map-status-strip {
    top: 44px;
    left: 10px;
    right: 10px;
    gap: 5px;
  }

  .v2-map-status-strip span {
    padding: 5px 7px;
    font-size: 0.6rem;
  }

  .v2-map-status-strip span:nth-child(2),
  .v2-map-status-strip span:nth-child(5) {
    display: none;
  }

  .v2-map-hotspot-layer {
    opacity: 0.72;
  }

  .v2-map-focus-ring.is-outer {
    opacity: 0.36;
  }

  .v2-map-crosshair line {
    stroke-width: 1;
  }

  .v2-map-cell.is-selected .v2-map-cell-label {
    font-size: 14px;
  }

  .v2-selected-district-panel::before {
    width: 52px;
    height: 52px;
  }
}

/* Real Seoul boundary map layer */
.v2-map-cell path {
  opacity: 0.72;
  fill: rgba(24, 31, 43, 0.34);
  stroke: rgba(255, 255, 255, 0.24);
  stroke-linejoin: round;
  stroke-width: 1.05;
  vector-effect: non-scaling-stroke;
  transition:
    fill 150ms ease,
    stroke 150ms ease,
    stroke-width 150ms ease,
    filter 150ms ease,
    opacity 150ms ease;
}

.v2-map-cell.is-high path {
  fill: rgba(119, 31, 42, 0.3);
  stroke: rgba(255, 51, 71, 0.42);
}

.v2-map-cell.is-watch path {
  fill: rgba(103, 82, 45, 0.27);
  stroke: rgba(226, 178, 97, 0.35);
}

.v2-map-cell.is-low path {
  fill: rgba(34, 69, 67, 0.23);
  stroke: rgba(116, 210, 157, 0.3);
}

.v2-map-cell:hover path,
.v2-map-cell:focus-visible path {
  opacity: 0.92;
  stroke: rgba(255, 255, 255, 0.42);
  stroke-width: 1.55;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.08));
}

.v2-map-cell.is-selected path {
  opacity: 1;
  fill: rgba(170, 31, 48, 0.7);
  stroke: rgba(255, 51, 71, 0.98);
  stroke-width: 2.2;
  filter:
    drop-shadow(0 0 10px rgba(255, 51, 71, 0.27))
    drop-shadow(0 7px 14px rgba(0, 0, 0, 0.28));
}

.v2-selected-district-boundary {
  vector-effect: non-scaling-stroke;
}

.v2-map-source {
  margin: 10px 0 0;
  color: rgba(148, 160, 184, 0.58);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .v2-map-cell path {
    stroke-width: 0.86;
  }

  .v2-map-cell.is-selected path {
    stroke-width: 1.7;
  }

  .v2-map-source {
    font-size: 0.68rem;
  }
}

/* Clean real Seoul district map */
.v2-map-canvas {
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 51, 71, 0.045), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), transparent 34%),
    #050914;
}

.v2-map-canvas::before {
  background:
    linear-gradient(180deg, rgba(3, 5, 10, 0.22), transparent 16%, transparent 82%, rgba(3, 5, 10, 0.32)),
    linear-gradient(90deg, rgba(3, 5, 10, 0.24), transparent 14%, transparent 86%, rgba(3, 5, 10, 0.24));
}

.v2-map-grid-fill,
.v2-grid-risk-layer,
.v2-grid-cell,
.v2-map-scan-lines,
.v2-map-scan-label,
.v2-map-hotspot-layer,
.v2-map-hotspot,
.v2-map-risk-pixel,
.v2-map-road-lines {
  display: none;
}

.v2-map-districts {
  isolation: isolate;
}

.v2-map-district {
  cursor: pointer;
  outline: none;
}

.v2-map-district path {
  opacity: 0.82;
  fill: rgba(24, 31, 43, 0.34);
  stroke: rgba(255, 255, 255, 0.26);
  stroke-linejoin: round;
  stroke-width: 1.05;
  vector-effect: non-scaling-stroke;
  transition:
    fill 150ms ease,
    stroke 150ms ease,
    stroke-width 150ms ease,
    filter 150ms ease,
    opacity 150ms ease;
}

.v2-map-district.is-high path {
  fill: rgba(121, 29, 42, 0.38);
  stroke: rgba(255, 51, 71, 0.45);
}

.v2-map-district.is-watch path {
  fill: rgba(106, 81, 43, 0.32);
  stroke: rgba(226, 178, 97, 0.38);
}

.v2-map-district.is-low path {
  fill: rgba(37, 71, 70, 0.28);
  stroke: rgba(116, 210, 157, 0.32);
}

.v2-map-district:hover path,
.v2-map-district:focus-visible path {
  opacity: 0.96;
  stroke: rgba(255, 255, 255, 0.48);
  stroke-width: 1.55;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.08));
}

.v2-map-district.is-selected path {
  opacity: 1;
  fill: rgba(177, 31, 49, 0.74);
  stroke: rgba(255, 51, 71, 0.98);
  stroke-width: 2.25;
  filter:
    drop-shadow(0 0 10px rgba(255, 51, 71, 0.27))
    drop-shadow(0 7px 14px rgba(0, 0, 0, 0.28));
}

.v2-map-district-label,
.v2-map-district-score {
  pointer-events: none;
  fill: rgba(245, 247, 251, 0.84);
  font-family: var(--v2-font);
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.72);
}

.v2-map-district-label {
  font-size: 12.2px;
}

.v2-map-district-score {
  fill: rgba(193, 201, 217, 0.64);
  font-size: 9.8px;
}

.v2-map-district:not(.is-selected) .v2-map-district-label {
  fill: rgba(230, 235, 245, 0.72);
}

.v2-map-district:not(.is-selected) .v2-map-district-score {
  fill: rgba(193, 201, 217, 0.52);
}

.v2-map-district.is-selected .v2-map-district-label {
  fill: #fff;
  font-size: 13.5px;
}

.v2-map-district.is-selected .v2-map-district-score {
  fill: rgba(255, 225, 229, 0.96);
  font-size: 10.8px;
}

.v2-map-unavailable {
  fill: rgba(193, 201, 217, 0.68);
  font-family: var(--v2-font);
  font-size: 14px;
  font-weight: 900;
}

@media (max-width: 760px) {
  .v2-map-district path {
    stroke-width: 0.82;
  }

  .v2-map-district.is-selected path {
    stroke-width: 1.65;
  }

  .v2-map-district-label {
    font-size: 9.6px;
  }

  .v2-map-district-score {
    display: none;
  }

  .v2-map-district:not(.is-selected) .v2-map-district-label {
    opacity: 0.58;
  }

  .v2-map-district.is-selected .v2-map-district-label {
    opacity: 1;
    font-size: 11.2px;
  }
}

/* V2 Korean map dashboard polish */
body[data-page="redveil-v2"] {
  --v2-radius: 14px;
  background:
    radial-gradient(circle at 42% -12%, rgba(255, 51, 71, 0.17), transparent 27%),
    radial-gradient(circle at 96% 28%, rgba(83, 129, 210, 0.075), transparent 24%),
    linear-gradient(120deg, #010207 0%, #050915 48%, #020308 100%);
}

.v2-sidebar,
.v2-topbar,
.v2-panel,
.v2-hero-panel {
  border-color: rgba(255, 255, 255, 0.095);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 22px 56px rgba(0, 0, 0, 0.28);
}

.v2-sidebar-status {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: var(--v2-radius);
  background:
    linear-gradient(180deg, rgba(255, 51, 71, 0.07), transparent),
    rgba(255, 255, 255, 0.025);
}

.v2-sidebar-status strong,
.v2-sidebar-status p {
  margin: 0;
}

.v2-sidebar-status p {
  font-size: 0.72rem;
  line-height: 1.55;
}

.v2-side-nav a,
.v2-button,
.v2-topbar-nav a,
.v2-workflow-card,
.v2-decision-actions a,
.v2-candidate-cta {
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.v2-side-nav a:hover,
.v2-side-nav a:focus-visible,
.v2-workflow-card:hover,
.v2-workflow-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 51, 71, 0.42);
  background: rgba(255, 51, 71, 0.09);
}

.v2-topbar-title strong {
  color: rgba(245, 247, 251, 0.92);
}

.v2-status-pills span {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
}

.v2-dashboard {
  grid-template-areas:
    "hero side"
    "map side"
    "candidates workflow"
    "limitations limitations";
}

.v2-hero-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 51, 71, 0.16);
}

.v2-hero-panel::after {
  content: "";
  position: absolute;
  inset: -30% auto auto 28%;
  width: 48%;
  height: 180%;
  background: radial-gradient(circle, rgba(255, 51, 71, 0.11), transparent 66%);
  pointer-events: none;
}

.v2-hero-panel > * {
  position: relative;
  z-index: 1;
}

.v2-hero-copy h1 {
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.v2-hero-copy p:not(.v2-eyebrow),
.v2-panel-head p {
  text-wrap: pretty;
}

.v2-mission-strip dd {
  color: #fff;
  font-size: 1.12rem;
}

.v2-button:hover,
.v2-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 51, 71, 0.58);
  box-shadow: 0 13px 28px rgba(255, 30, 53, 0.14);
}

.v2-map-panel {
  border-color: rgba(255, 255, 255, 0.11);
  background:
    radial-gradient(circle at 48% 38%, rgba(255, 51, 71, 0.05), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 24%),
    rgba(7, 10, 17, 0.9);
}

.v2-map-screen {
  border-radius: calc(var(--v2-radius) + 2px);
}

.v2-map-district {
  transition: opacity 160ms ease;
}

.v2-map-districts:has(.v2-map-district:hover) .v2-map-district:not(:hover):not(.is-selected) {
  opacity: 0.62;
}

.v2-map-district:hover path,
.v2-map-district:focus-visible path {
  opacity: 1;
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: 1.9;
  filter:
    drop-shadow(0 0 13px rgba(255, 255, 255, 0.13))
    drop-shadow(0 6px 12px rgba(0, 0, 0, 0.22));
}

.v2-map-district:focus-visible path {
  stroke: rgba(255, 220, 225, 0.96);
}

.v2-map-district.is-selected path {
  stroke-width: 2.6;
  filter:
    drop-shadow(0 0 17px rgba(255, 51, 71, 0.38))
    drop-shadow(0 9px 18px rgba(0, 0, 0, 0.32));
}

.v2-map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
}

.v2-map-legend {
  margin-top: 0;
}

.v2-map-help {
  margin: 0;
  color: rgba(148, 160, 184, 0.66);
  font-size: 0.72rem;
  font-weight: 700;
}

.v2-selected-node {
  border-color: rgba(255, 51, 71, 0.28);
  color: #fff;
  background: rgba(255, 51, 71, 0.1);
}

.v2-risk-index,
.v2-top-signal,
.v2-decision-card {
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.v2-risk-index:hover,
.v2-top-signal:hover,
.v2-decision-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.v2-tier-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--v2-line-soft);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--v2-muted);
  font-size: 0.68rem;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.035);
}

.v2-tier-badge.is-high {
  border-color: rgba(255, 51, 71, 0.36);
  color: #ffadb6;
  background: rgba(255, 51, 71, 0.12);
}

.v2-tier-badge.is-watch {
  border-color: rgba(226, 178, 97, 0.32);
  color: #f3d49b;
  background: rgba(226, 178, 97, 0.1);
}

.v2-tier-badge.is-low {
  border-color: rgba(116, 210, 157, 0.28);
  color: #a9e7c3;
  background: rgba(116, 210, 157, 0.08);
}

.v2-tier-badge.is-unavailable {
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--v2-muted);
  background: rgba(255, 255, 255, 0.045);
}

.v2-risk-meter {
  position: relative;
  overflow: visible;
}

.v2-risk-meter::after {
  content: "";
  position: absolute;
  inset: -4px 30% -4px auto;
  width: 1px;
  background: rgba(255, 255, 255, 0.26);
}

.v2-risk-meter span {
  transition: width 240ms ease, background 180ms ease, box-shadow 180ms ease;
}

.v2-risk-meter span.is-watch {
  background: linear-gradient(90deg, rgba(226, 178, 97, 0.55), var(--v2-amber));
  box-shadow: 0 0 18px rgba(226, 178, 97, 0.17);
}

.v2-risk-meter span.is-low {
  background: linear-gradient(90deg, rgba(116, 210, 157, 0.48), var(--v2-green));
  box-shadow: 0 0 18px rgba(116, 210, 157, 0.15);
}

.v2-selected-actions,
.v2-decision-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.v2-selected-actions .v2-button {
  min-height: 40px;
  padding: 8px 9px;
  font-size: 0.75rem;
  text-align: center;
}

.v2-decision-actions a,
.v2-candidate-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 8px 10px;
  color: rgba(230, 235, 245, 0.82);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.035);
}

.v2-decision-actions a:hover,
.v2-decision-actions a:focus-visible,
.v2-candidate-cta:hover,
.v2-candidate-cta:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 51, 71, 0.38);
  color: #fff;
  background: rgba(255, 51, 71, 0.09);
}

.v2-candidate-panel .v2-panel-head p:not(.v2-section-label) {
  margin: 7px 0 0;
  color: var(--v2-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.v2-candidate-row {
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.v2-candidate-row:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(90deg, rgba(255, 51, 71, 0.065), transparent 42%),
    rgba(255, 255, 255, 0.025);
}

.v2-candidate-gap {
  justify-self: end;
  border: 1px solid rgba(116, 210, 157, 0.22);
  border-radius: var(--v2-radius);
  padding: 7px 8px;
  color: #a9e7c3;
  font-size: 0.78rem;
  font-weight: 900;
  background: rgba(116, 210, 157, 0.07);
}

.v2-candidate-gap.is-higher {
  border-color: rgba(226, 178, 97, 0.26);
  color: #f3d49b;
  background: rgba(226, 178, 97, 0.08);
}

.v2-candidate-cta {
  justify-self: start;
  margin-top: 14px;
}

.v2-candidate-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--v2-radius);
  color: var(--v2-muted);
  font-size: 0.82rem;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.025);
}

.v2-workflow-panel {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(8, 11, 18, 0.78);
}

.v2-workflow-card {
  padding: 13px;
}

.v2-workflow-card strong {
  font-size: 0.92rem;
}

.v2-limitations-panel {
  grid-area: limitations;
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 28px;
  align-items: center;
  padding: 20px 22px;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(255, 51, 71, 0.055), transparent 46%),
    rgba(8, 11, 18, 0.68);
}

.v2-limitations-panel h2 {
  margin: 5px 0 0;
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.45;
}

.v2-limitations-panel > p {
  margin: 0;
  color: var(--v2-muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

@media (max-width: 1180px) {
  .v2-dashboard {
    grid-template-areas:
      "hero"
      "map"
      "side"
      "candidates"
      "workflow"
      "limitations";
  }

  .v2-sidebar-status {
    display: none;
  }

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

  .v2-selected-actions,
  .v2-decision-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .v2-side-nav {
    display: flex;
    max-width: 100%;
    padding-bottom: 3px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .v2-side-nav a {
    flex: 1 0 108px;
  }

  .v2-map-footer {
    display: grid;
  }

  .v2-side-stack {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .v2-limitations-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}

@media (max-width: 760px) {
  .v2-shell {
    padding: 8px;
  }

  .v2-sidebar {
    padding: 9px;
  }

  .v2-side-nav a {
    flex-basis: 96px;
  }

  .v2-map-command-status {
    width: 100%;
  }

  .v2-selected-node {
    max-width: 100%;
  }

  .v2-map-canvas,
  .v2-risk-map-svg {
    min-height: 460px;
  }

  .v2-map-help {
    display: none;
  }

  .v2-selected-actions,
  .v2-decision-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .v2-candidate-gap {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

@media (max-width: 430px) {
  .v2-brand {
    justify-content: flex-start;
  }

  .v2-map-canvas,
  .v2-risk-map-svg {
    min-height: 410px;
  }

  .v2-map-status-strip span:nth-child(2),
  .v2-map-status-strip span:nth-child(5) {
    display: none;
  }

  .v2-limitations-panel {
    padding: 16px;
  }
}

/* Priority layout refinement: horizontal hero and aligned map row */
.v2-dashboard {
  grid-template-areas:
    "hero hero"
    "map side"
    "candidates workflow"
    "limitations limitations";
  align-items: start;
}

.v2-hero-panel {
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.62fr);
  gap: clamp(24px, 3vw, 52px);
  align-items: center;
  min-height: 0;
  padding: 24px 26px;
}

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

.v2-hero-copy h1 {
  font-size: clamp(2.1rem, 3vw, 3.25rem);
}

.v2-hero-copy p:not(.v2-eyebrow) {
  max-width: 760px;
  margin-top: 10px;
}

.v2-hero-command {
  display: grid;
  gap: 10px;
  align-self: stretch;
  align-content: center;
  min-width: 0;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.v2-mission-strip {
  align-self: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.v2-mission-strip div {
  display: grid;
  align-content: center;
  min-height: 68px;
  padding: 10px 11px;
  border-color: rgba(255, 255, 255, 0.085);
  background: rgba(255, 255, 255, 0.032);
}

.v2-mission-strip dt {
  color: rgba(193, 201, 217, 0.58);
  font-size: 0.64rem;
}

.v2-mission-strip dd {
  margin-top: 5px;
  font-size: 1.05rem;
  line-height: 1.1;
}

.v2-hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.v2-hero-actions .v2-button {
  min-height: 40px;
  padding: 8px 10px;
  text-align: center;
}

.v2-map-panel,
.v2-side-stack {
  align-self: start;
  margin-top: 0;
}

.v2-side-stack {
  grid-template-columns: minmax(0, 1fr);
}

.v2-selected-district-panel {
  margin-top: 0;
}

@media (max-width: 1180px) {
  .v2-dashboard {
    grid-template-areas:
      "hero"
      "map"
      "side"
      "candidates"
      "workflow"
      "limitations";
  }

  .v2-hero-panel {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.62fr);
    gap: 24px;
    padding: 22px;
  }

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

@media (max-width: 900px) {
  .v2-hero-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .v2-hero-command {
    padding: 16px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 0;
  }

  .v2-side-stack {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .v2-hero-panel {
    padding: 18px;
  }

  .v2-mission-strip,
  .v2-hero-actions {
    display: grid;
  }

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

  .v2-mission-strip div {
    min-height: 62px;
    padding: 9px;
  }

  .v2-mission-strip dt {
    font-size: 0.58rem;
  }

  .v2-mission-strip dd {
    font-size: 0.9rem;
  }
}

@media (max-width: 520px) {
  .v2-mission-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v2-mission-strip div:last-child {
    grid-column: 1 / -1;
  }

  .v2-hero-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Sidebar module refinement */
.v2-sidebar {
  display: grid;
  align-self: start;
  gap: 12px;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.v2-sidebar-primary,
.v2-sidebar-status {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: var(--v2-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 38%),
    linear-gradient(90deg, rgba(255, 51, 71, 0.035), transparent 76%),
    rgba(7, 10, 17, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 18px 42px rgba(0, 0, 0, 0.24);
}

.v2-sidebar-primary {
  padding: 16px 12px;
}

.v2-sidebar-status {
  display: grid;
  gap: 5px;
  margin-top: 0;
  padding: 12px;
  border-color: rgba(255, 255, 255, 0.085);
  background:
    linear-gradient(135deg, rgba(255, 51, 71, 0.075), transparent 58%),
    rgba(9, 12, 20, 0.88);
}

.v2-sidebar-status span {
  color: rgba(255, 126, 139, 0.72);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
}

.v2-sidebar-status strong {
  color: rgba(245, 247, 251, 0.94);
  font-size: 0.86rem;
  line-height: 1.25;
}

.v2-sidebar-status p {
  color: rgba(193, 201, 217, 0.62);
  font-size: 0.69rem;
  line-height: 1.5;
  text-wrap: pretty;
}

@media (max-width: 1180px) {
  .v2-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .v2-sidebar {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
    align-items: stretch;
  }

  .v2-sidebar-primary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 12px;
  }

  .v2-brand {
    display: flex;
    justify-content: flex-start;
    text-align: left;
  }

  .v2-side-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin-top: 0;
  }

  .v2-side-nav a {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    min-height: 42px;
    padding: 7px 5px;
    text-align: center;
  }

  .v2-side-nav a span {
    display: none;
  }

  .v2-sidebar-status {
    align-content: center;
  }
}

@media (max-width: 900px) {
  .v2-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  .v2-sidebar-primary {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .v2-side-nav {
    margin-top: 0;
  }

  .v2-sidebar-status {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 10px;
    align-items: baseline;
    padding: 11px 12px;
  }

  .v2-sidebar-status p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 430px) {
  .v2-sidebar-primary {
    padding: 11px;
  }

  .v2-sidebar-status {
    grid-template-columns: minmax(0, 1fr);
  }

  .v2-sidebar-status p {
    grid-column: auto;
  }
}

/* V2 district report page */
.v2-report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  grid-template-areas:
    "summary score"
    "factors factors"
    "pause alternatives"
    "memo alternatives"
    "limitations limitations";
  gap: 18px;
  min-width: 0;
}

.v2-report-layout > .v2-panel {
  padding: 20px;
}

.v2-report-summary {
  grid-area: summary;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
  gap: 24px;
  align-items: center;
  border-color: rgba(255, 51, 71, 0.18);
  background:
    linear-gradient(105deg, rgba(255, 51, 71, 0.12), transparent 48%),
    radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.065), transparent 34%),
    rgba(8, 11, 18, 0.88);
}

.v2-report-summary-copy h1 {
  margin: 6px 0 0;
  color: #fff;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.v2-report-summary-copy > p:not(.v2-section-label) {
  max-width: 830px;
  margin: 12px 0 0;
  color: rgba(193, 201, 217, 0.76);
  font-size: 0.96rem;
  line-height: 1.68;
  text-wrap: pretty;
}

.v2-report-summary-copy .v2-report-advisory {
  color: rgba(255, 176, 185, 0.76);
  font-size: 0.78rem;
}

.v2-report-summary-actions {
  display: grid;
  align-content: center;
  gap: 9px;
  min-width: 0;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.v2-report-summary-actions .v2-tier-badge,
.v2-report-summary-actions .v2-panel-meta {
  justify-self: stretch;
  text-align: center;
}

.v2-report-summary-actions .v2-button {
  text-align: center;
}

.v2-report-score {
  grid-area: score;
  align-self: stretch;
  border-color: rgba(255, 51, 71, 0.2);
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 51, 71, 0.13), transparent 38%),
    rgba(8, 11, 18, 0.88);
}

.v2-report-score .v2-score-row strong {
  font-size: clamp(4.4rem, 7vw, 6.6rem);
}

.v2-report-score-meta {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
}

.v2-report-score-meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  padding-top: 8px;
}

.v2-report-score-meta dt {
  color: var(--v2-faint);
  font-size: 0.7rem;
  font-weight: 800;
}

.v2-report-score-meta dd {
  margin: 0;
  color: rgba(245, 247, 251, 0.9);
  font-size: 0.74rem;
  font-weight: 800;
  text-align: right;
}

.v2-report-factors {
  grid-area: factors;
}

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

.v2-report-factor-card {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: var(--v2-radius);
  padding: 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(255, 255, 255, 0.022);
}

.v2-report-factor-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.v2-report-factor-head strong {
  color: rgba(245, 247, 251, 0.92);
  font-size: 0.8rem;
}

.v2-report-factor-head span {
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}

.v2-report-factor-bar {
  height: 5px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
}

.v2-report-factor-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 51, 71, 0.48), var(--v2-red));
}

.v2-report-factor-bar span.is-watch {
  background: linear-gradient(90deg, rgba(226, 178, 97, 0.48), var(--v2-amber));
}

.v2-report-factor-bar span.is-low {
  background: linear-gradient(90deg, rgba(116, 210, 157, 0.42), var(--v2-green));
}

.v2-report-factor-card p {
  margin: 11px 0 0;
  color: rgba(193, 201, 217, 0.62);
  font-size: 0.71rem;
  line-height: 1.55;
}

.v2-report-pause {
  grid-area: pause;
}

.v2-report-numbered-list,
.v2-report-checklist {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.v2-report-numbered-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--v2-radius);
  padding: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.v2-report-numbered-list span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 51, 71, 0.32);
  border-radius: 999px;
  color: rgba(255, 176, 185, 0.88);
  font-size: 0.68rem;
  font-weight: 900;
  background: rgba(255, 51, 71, 0.08);
}

.v2-report-numbered-list p {
  margin: 3px 0 0;
  color: rgba(230, 235, 245, 0.8);
  font-size: 0.82rem;
  line-height: 1.55;
}

.v2-report-alternatives {
  grid-area: alternatives;
  align-self: start;
}

.v2-report-alternative-list {
  display: grid;
  gap: 9px;
}

.v2-report-alternative-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: var(--v2-radius);
  padding: 11px;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.025);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.v2-report-alternative-card:hover,
.v2-report-alternative-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 51, 71, 0.38);
  background: rgba(255, 51, 71, 0.075);
}

.v2-report-alternative-rank {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(116, 210, 157, 0.28);
  border-radius: 999px;
  color: #a9e7c3;
  font-size: 0.68rem;
  font-weight: 900;
  background: rgba(116, 210, 157, 0.07);
}

.v2-report-alternative-copy strong {
  color: #fff;
  font-size: 0.88rem;
}

.v2-report-alternative-copy p {
  margin: 5px 0 0;
  color: rgba(193, 201, 217, 0.64);
  font-size: 0.7rem;
  line-height: 1.5;
}

.v2-report-alternative-score {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 8px;
}

.v2-report-alternative-score strong {
  color: #fff;
  font-size: 1.1rem;
}

.v2-report-alternative-score span {
  color: #a9e7c3;
  font-size: 0.68rem;
  font-weight: 800;
  text-align: right;
}

.v2-report-memo {
  grid-area: memo;
}

.v2-report-decision-question {
  margin: 0 0 12px;
  border-left: 3px solid rgba(255, 51, 71, 0.68);
  padding: 10px 12px;
  color: rgba(245, 247, 251, 0.9);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.55;
  background: rgba(255, 51, 71, 0.055);
}

.v2-report-checklist li {
  position: relative;
  padding: 10px 11px 10px 34px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: var(--v2-radius);
  color: rgba(230, 235, 245, 0.78);
  font-size: 0.79rem;
  line-height: 1.55;
  background: rgba(255, 255, 255, 0.022);
}

.v2-report-checklist li::before {
  content: "✓";
  position: absolute;
  top: 10px;
  left: 12px;
  color: #a9e7c3;
  font-weight: 900;
}

.v2-report-professional-note {
  margin: 12px 0 0;
  color: rgba(193, 201, 217, 0.58);
  font-size: 0.72rem;
  line-height: 1.55;
}

.v2-report-limitations {
  grid-area: limitations;
}

.v2-report-fallback {
  grid-column: 1 / -1;
  padding: 28px;
}

.v2-report-fallback h2 {
  margin: 6px 0 0;
  color: #fff;
}

.v2-report-fallback p:not(.v2-section-label) {
  margin: 10px 0 18px;
  color: var(--v2-muted);
}

@media (max-width: 1180px) {
  .v2-report-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

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

@media (max-width: 900px) {
  .v2-report-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "summary"
      "score"
      "factors"
      "pause"
      "alternatives"
      "memo"
      "limitations";
    gap: 12px;
  }

  .v2-report-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .v2-report-summary-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 0;
  }

  .v2-report-summary-actions .v2-button {
    grid-column: 1 / -1;
  }

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

@media (max-width: 520px) {
  .v2-report-layout > .v2-panel {
    padding: 16px;
  }

  .v2-report-summary-copy h1 {
    font-size: 1.8rem;
  }

  .v2-report-summary-actions,
  .v2-report-factor-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .v2-report-summary-actions .v2-button {
    grid-column: auto;
  }

  .v2-report-score .v2-score-row strong {
    font-size: 4rem;
  }
}

.v2-risk-explanation {
  display: grid;
  gap: 14px;
}

.v2-explanation-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid rgba(255, 51, 71, 0.3);
  border-radius: var(--v2-radius);
  padding: 7px 10px;
  color: #fff;
  font-size: 0.78rem;
  background: rgba(255, 51, 71, 0.12);
}

.v2-explanation-summary {
  margin: 0;
  color: var(--v2-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.v2-explanation-grid {
  display: grid;
  gap: 10px;
}

.v2-explanation-grid section {
  border: 1px solid var(--v2-line-soft);
  border-radius: var(--v2-radius);
  padding: 11px;
  background: rgba(255, 255, 255, 0.028);
}

.v2-explanation-grid h3 {
  margin: 0 0 8px;
  color: var(--v2-text);
  font-size: 0.82rem;
}

.v2-explanation-grid ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.v2-explanation-grid li {
  position: relative;
  padding-left: 13px;
  color: var(--v2-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.v2-explanation-grid li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--v2-red);
}

