/* ==========================================================================
   VELA — dashboard / console
   ========================================================================== */

.dash-page {
  background: var(--paper);
}
.dash-hero {
  border-bottom: 1px solid var(--line);
}
.dash-hero .display {
  max-width: 16ch;
}
.dash-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(36px, 4vw, 52px);
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--muted);
}
.dash-hero__meta b {
  color: var(--ink);
  font-weight: 600;
}

.dash-section {
  padding-block: clamp(28px, 4vw, 52px) clamp(56px, 7vw, 96px);
}

.dash-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.scenarios {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}
.scenario {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: left;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease),
    color var(--fast) var(--ease);
}
.scenario .s-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--state, var(--unknown));
}
.scenario .s-label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  white-space: nowrap;
}
.scenario .s-sub {
  display: block;
  font-family: var(--mono);
  font-size: 0.4375rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
.scenario:hover {
  border-color: var(--ink);
}
.scenario[aria-checked="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.scenario[aria-checked="true"] .s-sub {
  color: #97A6B8;
}
.scenario[data-scenario="normal"] {
  --state: var(--data);
}
.scenario[data-scenario="watch"] {
  --state: var(--amber);
}
.scenario[data-scenario="inspect-b"],
.scenario[data-scenario="inspect-d"] {
  --state: var(--signal);
}
.scenario[data-scenario="unknown"] {
  --state: var(--unknown);
}
.dash-tools {
  display: flex;
  gap: 8px;
  flex: none;
}
.dash-tools .btn {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 0.7rem;
}
.dash-tools .btn[disabled] {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

/* frame ------------------------------------------------------------------ */
.dash-frame {
  background: var(--console);
  border: 1px solid rgba(120, 170, 220, 0.22);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px -50px rgba(6, 18, 36, 0.8);
  color: var(--console-text);
  overflow: hidden;
  min-width: 0;
}
.dash-chrome {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 11px 16px;
  background: #06111F;
  border-bottom: 1px solid var(--console-line);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--console-muted);
}
.dash-chrome__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--console-text);
  font-weight: 500;
}
.dash-chrome__brand i {
  width: 6px;
  height: 8px;
  background: var(--accent-bright);
  clip-path: var(--star-clip);
}
.dash-chrome__sep {
  width: 1px;
  height: 12px;
  background: var(--console-line);
}
.dash-chrome__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.dash-chrome__meta b {
  color: var(--console-text);
  font-weight: 500;
}
.replay-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 7px;
  border: 1px solid var(--amber-bright);
  color: var(--amber-bright);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
}
.replay-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}
.dash-tabs {
  display: flex;
  border-bottom: 1px solid var(--console-line);
  overflow-x: auto;
  scrollbar-width: none;
}
.dash-tabs::-webkit-scrollbar {
  display: none;
}
.dash-tab {
  position: relative;
  flex: none;
  padding: 13px 18px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--console-muted);
  border-right: 1px solid var(--console-line);
  white-space: nowrap;
}
.dash-tab:hover {
  color: var(--console-text);
}
.dash-tab[aria-selected="true"] {
  color: var(--console-text);
  background: var(--console-2);
}
.dash-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--data-bright);
}
.dash-tab .tab-count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 4px;
  border: 1px solid var(--console-line);
  font-size: 0.4375rem;
  color: var(--console-muted);
}

.dash-views {
  padding: 1px;
  background: var(--console-line);
}
.dash-view {
  display: none;
}
.dash-view.is-active {
  display: block;
  animation: view-in 260ms var(--ease);
}
@keyframes view-in {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}

/* grid & panels ---------------------------------------------------------- */
.d-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1px;
  background: var(--console-line);
}
.d-panel {
  background: var(--console-2);
  padding: 16px 18px;
  min-width: 0;
}
.d-panel--flush {
  padding: 0;
}
.d-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.d-label {
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--console-muted);
}
.d-label--bright {
  color: var(--console-text);
}
.d-meta {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  color: #7A8CA3;
  font-variant-numeric: tabular-nums;
}
.d-value {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.d-rule {
  border: 0;
  border-top: 1px solid var(--console-line);
  margin: 13px 0;
}

/* dashboard state tokens */
.dash-frame [data-state="normal"] {
  --state: var(--data-bright);
  --state-bg: rgba(92, 198, 242, 0.12);
}
.dash-frame [data-state="watch"] {
  --state: var(--amber-bright);
  --state-bg: rgba(224, 161, 58, 0.12);
}
.dash-frame [data-state="inspect"] {
  --state: var(--signal-bright);
  --state-bg: rgba(255, 91, 43, 0.12);
}
.dash-frame [data-state="unknown"] {
  --state: var(--unknown-bright);
  --state-bg: rgba(154, 169, 189, 0.12);
}
.d-state-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  border: 1px solid var(--state);
  background: var(--state-bg);
  color: var(--state);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
}
.d-state-chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.dash-frame[data-state="normal"] {
  --state: var(--data-bright);
  --state-bg: rgba(92, 198, 242, 0.12);
}
.dash-frame[data-state="watch"] {
  --state: var(--amber-bright);
  --state-bg: rgba(224, 161, 58, 0.12);
}
.dash-frame[data-state="inspect"] {
  --state: var(--signal-bright);
  --state-bg: rgba(255, 91, 43, 0.12);
}
.dash-frame[data-state="unknown"] {
  --state: var(--unknown-bright);
  --state-bg: rgba(154, 169, 189, 0.12);
}
.event-log .e-state[data-state="normal"] {
  --state: var(--data-bright);
}
.event-log .e-state[data-state="watch"] {
  --state: var(--amber-bright);
}
.event-log .e-state[data-state="inspect"] {
  --state: var(--signal-bright);
}
.event-log .e-state[data-state="unknown"] {
  --state: var(--unknown-bright);
}

/* overview --------------------------------------------------------------- */
.ov-state {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
}
.ov-priority {
  grid-column: span 4;
}
.ov-health {
  grid-column: span 4;
}
.ov-map {
  grid-column: span 7;
  padding: 12px 14px 8px;
}
.ov-zones {
  grid-column: span 5;
}
.ov-pressure {
  grid-column: span 7;
}
.ov-event {
  grid-column: span 5;
}
.ov-state__name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 8px;
  font-family: var(--sans);
  font-size: clamp(1.8rem, 2.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--state);
}
.ov-state__name .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 14%, transparent);
}
.ov-state__desc {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #B4C2D3;
  max-width: 34ch;
}
.ov-action {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--console-line);
}
.ov-action .d-label {
  margin-bottom: 6px;
}
.ov-action p {
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--console-text);
}
.ov-priority__region {
  font-family: var(--sans);
  font-size: clamp(1.8rem, 2.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--console-text);
  margin: 9px 0 4px;
}
.ov-priority__region.is-signal {
  color: var(--signal-bright);
}
.ov-priority__region.is-muted {
  color: #687B92;
}
.ov-priority__sub {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  color: var(--console-muted);
  text-transform: uppercase;
}
.ov-priority__evidence {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--console-line);
  font-size: 0.82rem;
  line-height: 1.5;
  color: #A9B7C8;
}
.confidence {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.confidence .bars {
  display: flex;
  gap: 2px;
}
.confidence .bars i {
  width: 14px;
  height: 4px;
  background: #1B2C44;
}
.confidence .bars i.on {
  background: var(--state, var(--data-bright));
}
.confidence span {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--console-muted);
}
.health-list {
  display: grid;
  gap: 0;
}
.health-row {
  display: grid;
  grid-template-columns: 28px 1fr 62px;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--console-line);
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--console-muted);
}
.health-row:last-child {
  border-bottom: 0;
}
.health-row .ch {
  color: var(--console-text);
}
.health-row .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.health-row .status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--data-bright);
}
.health-row .status.is-offline {
  color: var(--signal-bright);
}
.health-row .status.is-offline::before {
  background: var(--signal-bright);
}
.health-row .status.is-warn {
  color: var(--amber-bright);
}
.health-row .status.is-warn::before {
  background: var(--amber-bright);
}

/* map panel */
.ov-map .structure-map {
  max-height: 300px;
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 4px;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  color: var(--console-muted);
}
.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.map-legend i {
  width: 6px;
  height: 6px;
  border: 1px solid var(--data-bright);
  border-radius: 50%;
}
.map-legend .active i {
  border-color: var(--signal-bright);
  background: var(--signal-bright);
}
.map-legend .offline i {
  border-style: dashed;
  border-color: var(--signal-bright);
}

/* zone bars */
.d-zones {
  display: grid;
  gap: 9px;
}
.d-zone {
  display: grid;
  grid-template-columns: 22px 1fr 52px;
  gap: 10px;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--console-muted);
}
.d-zone .z-name {
  color: var(--console-text);
}
.d-zone .z-bar {
  height: 6px;
  background: #132741;
  position: relative;
  overflow: hidden;
}
.d-zone .z-bar i {
  position: absolute;
  inset: 0;
  width: 100%;
  transform: scaleX(var(--s, 0.04));
  transform-origin: left center;
  background: #2F4560;
  transition: transform 520ms var(--ease), background-color 520ms var(--ease);
}
.d-zone .z-val {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.d-zone.is-active {
  color: var(--signal-bright);
}
.d-zone.is-active .z-name {
  color: var(--signal-bright);
}
.d-zone.is-active .z-bar i {
  background: var(--signal-bright);
}

/* charts */
.chart {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.chart .c-grid {
  stroke: #152A42;
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
}
.chart .c-axis {
  fill: #687B92;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.04em;
}
.chart .c-line {
  fill: none;
  stroke: var(--data-bright);
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.chart .c-line--baseline {
  stroke: #52667F;
  stroke-dasharray: 3 4;
  stroke-width: 0.9;
}
.chart .c-line--pressure {
  stroke: var(--data-bright);
}
.chart .c-area {
  fill: rgba(92, 198, 242, 0.08);
}
.chart .c-dot {
  fill: var(--data-bright);
  stroke: var(--console);
  stroke-width: 1.5;
}
.chart .c-dot--signal {
  fill: var(--signal-bright);
  stroke: var(--console);
}
.chart .c-line--signal {
  stroke: var(--signal-bright);
}
.chart .c-area--signal {
  fill: rgba(255, 91, 43, 0.08);
}
.chart .c-label-signal {
  fill: var(--signal-bright);
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  color: var(--console-muted);
}
.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chart-legend i {
  width: 12px;
  height: 2px;
  background: var(--data-bright);
}
.chart-legend i.is-dashed {
  background: repeating-linear-gradient(to right, #52667F 0 3px, transparent 3px 6px);
}
.chart-legend i.is-signal {
  background: var(--signal-bright);
}

.event-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.event-card__time {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--data-bright);
  margin-bottom: 8px;
}
.event-card__text {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--console-text);
}
.event-card__sub {
  margin-top: 8px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #A0AFC1;
}
.event-card__foot {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  color: #7A8CA3;
}
.dash-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 16px;
  border-top: 1px solid var(--console-line);
  background: #06111F;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  color: #6F8197;
}
.dash-foot .dot {
  color: var(--signal-bright);
}

/* structure view --------------------------------------------------------- */
.st-map {
  grid-column: span 7;
  padding: 14px;
}
.st-evidence {
  grid-column: span 5;
}
.st-pressure {
  grid-column: span 7;
}
.st-channels {
  grid-column: span 5;
}
.st-waves {
  grid-column: span 12;
  padding: 14px 18px;
}
.st-map .structure-map {
  max-height: 360px;
}
.evidence-list {
  list-style: none;
  display: grid;
  gap: 0;
}
.evidence-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--console-line);
  font-size: 0.82rem;
  line-height: 1.45;
  color: #A9B7C8;
}
.evidence-list li:last-child {
  border-bottom: 0;
}
.evidence-list .mark {
  font-family: var(--mono);
  font-size: 0.625rem;
  color: var(--data-bright);
  padding-top: 2px;
}
.evidence-list .mark.is-signal {
  color: var(--signal-bright);
}
.rank-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--console-muted);
}
.rank-table th {
  text-align: left;
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7A8CA3;
  padding: 0 0 7px;
  border-bottom: 1px solid var(--console-line);
}
.rank-table td {
  padding: 7px 0;
  border-bottom: 1px solid var(--console-line);
}
.rank-table tr:last-child td {
  border-bottom: 0;
}
.rank-table td:last-child,
.rank-table th:last-child {
  text-align: right;
}
.rank-table tr.is-active td {
  color: var(--signal-bright);
}
.rank-table .z {
  color: var(--console-text);
  font-weight: 500;
}
.rank-table tr.is-active .z {
  color: var(--signal-bright);
}
.wave-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--console-line);
  margin-top: 12px;
}
.wave {
  background: var(--console);
  padding: 12px;
  min-width: 0;
}
.wave__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.wave__name {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--console-text);
}
.wave__delta {
  font-family: var(--mono);
  font-size: 0.625rem;
  color: var(--console-muted);
}
.wave.is-active .wave__name,
.wave.is-active .wave__delta {
  color: var(--signal-bright);
}
.wave.is-offline .wave__name {
  color: var(--signal-bright);
}
.wave svg {
  width: 100%;
  height: 54px;
  display: block;
  overflow: visible;
}
.wave .w-line {
  fill: none;
  stroke: #5CC6F2;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.wave.is-active .w-line {
  stroke: var(--signal-bright);
}
.wave .w-baseline {
  stroke: #465C78;
  stroke-width: 0.7;
  stroke-dasharray: 2 3;
  vector-effect: non-scaling-stroke;
}
.wave .w-offline {
  stroke: #2F4560;
  stroke-dasharray: 3 4;
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
}
.wave__note {
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 0.4375rem;
  letter-spacing: 0.05em;
  color: #7A8CA3;
}
.wave__note.is-signal {
  color: var(--signal-bright);
}

/* health view ------------------------------------------------------------ */
.h-events {
  grid-column: span 7;
}
.h-health {
  grid-column: span 5;
}
.h-unknown {
  grid-column: span 12;
}
.h-provenance {
  grid-column: span 12;
}
.event-log {
  list-style: none;
  border-top: 1px solid var(--console-line);
}
.event-log li {
  display: grid;
  grid-template-columns: 58px 74px 1fr;
  gap: 12px;
  align-items: start;
  padding: 11px 0;
  border-bottom: 1px solid var(--console-line);
  font-size: 0.82rem;
  line-height: 1.4;
  color: #A9B7C8;
}
.event-log li:last-child {
  border-bottom: 0;
}
.event-log .t {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  color: #7A8CA3;
  padding-top: 3px;
}
.event-log .e-state {
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--state, var(--console-muted));
  padding-top: 3px;
}
.event-log .e-text b {
  color: var(--console-text);
  font-weight: 500;
}
.health-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--console-muted);
}
.health-table th {
  text-align: left;
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #7A8CA3;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--console-line);
}
.health-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--console-line);
}
.health-table tr:last-child td {
  border-bottom: 0;
}
.health-table td:nth-child(n + 3) {
  text-align: right;
}
.health-table th:nth-child(n + 3) {
  text-align: right;
}
.health-table .ok {
  color: var(--data-bright);
}
.health-table .bad {
  color: var(--signal-bright);
}
.health-table .warn {
  color: var(--amber-bright);
}
.unknown-box {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--console-line);
  background: #081628;
}
.unknown-box .mark {
  width: 34px;
  height: 34px;
  border: 1px solid var(--unknown-bright);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--unknown-bright);
}
.unknown-box h3 {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--console-text);
  margin-bottom: 4px;
}
.unknown-box p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #A9B7C8;
  max-width: 80ch;
}
.unknown-box.is-active {
  border-color: var(--signal-bright);
}
.unknown-box.is-active .mark {
  border-color: var(--signal-bright);
  color: var(--signal-bright);
}
.provenance {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.05em;
  color: #7A8CA3;
}
.provenance b {
  color: #A9B7C8;
  font-weight: 500;
}

/* notes ------------------------------------------------------------------ */
.dash-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.dash-note h3 {
  font-size: 1rem;
  margin-bottom: 9px;
}
.dash-note p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 38ch;
}
.dash-note ol {
  list-style: none;
  counter-reset: q;
  display: grid;
  gap: 8px;
}
.dash-note ol li {
  counter-increment: q;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.dash-note ol li::before {
  content: "0" counter(q);
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--accent-text);
  padding-top: 3px;
}
.dash-note .mono {
  color: var(--accent-text);
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.14em;
}

/* responsive ------------------------------------------------------------- */
@media (max-width: 1100px) {
  .ov-state,
  .ov-priority,
  .ov-health {
    grid-column: span 6;
  }
  .ov-health {
    grid-column: span 12;
  }
  .health-list {
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
  }
  .ov-map,
  .ov-pressure,
  .st-map,
  .st-pressure,
  .h-events {
    grid-column: span 7;
  }
  .ov-zones,
  .ov-event,
  .st-evidence,
  .st-channels,
  .h-health {
    grid-column: span 5;
  }
  .wave-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dash-notes {
    grid-template-columns: 1fr 1fr;
  }
  .dash-notes .dash-note:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .dash-toolbar {
    align-items: stretch;
  }
  .scenarios {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .scenarios::-webkit-scrollbar {
    display: none;
  }
  .scenario {
    flex: none;
  }
  .dash-tools {
    width: 100%;
  }
  .dash-tools .btn {
    flex: 1;
  }
  .dash-chrome {
    gap: 10px;
    font-size: 0.625rem;
    flex-wrap: wrap;
  }
  .dash-chrome__meta {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    padding-top: 7px;
    border-top: 1px solid var(--console-line);
  }
  .d-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .ov-state,
  .ov-priority,
  .ov-health,
  .ov-map,
  .ov-zones,
  .ov-pressure,
  .ov-event,
  .st-map,
  .st-evidence,
  .st-pressure,
  .st-channels,
  .st-waves,
  .h-events,
  .h-health,
  .h-unknown,
  .h-provenance {
    grid-column: span 6;
  }
  .health-list {
    grid-template-columns: 1fr 1fr;
  }
  .event-log li {
    grid-template-columns: 50px 64px 1fr;
    gap: 8px;
  }
  .dash-notes {
    grid-template-columns: 1fr;
  }
  .dash-notes .dash-note:last-child {
    grid-column: auto;
  }
  .dash-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (max-width: 560px) {
  .d-grid {
    grid-template-columns: 1fr;
  }
  .ov-state,
  .ov-priority,
  .ov-health,
  .ov-map,
  .ov-zones,
  .ov-pressure,
  .ov-event,
  .st-map,
  .st-evidence,
  .st-pressure,
  .st-channels,
  .st-waves,
  .h-events,
  .h-health,
  .h-unknown,
  .h-provenance {
    grid-column: span 1;
  }
  .health-list {
    grid-template-columns: 1fr;
  }
  .wave-grid {
    grid-template-columns: 1fr;
  }
  .event-log li {
    grid-template-columns: 48px 1fr;
  }
  .event-log .e-text {
    grid-column: 1 / -1;
  }
  .dash-chrome__meta {
    flex-wrap: wrap;
    gap: 6px 14px;
  }
  .dash-hero__meta {
    gap: 8px 16px;
  }
  .unknown-box {
    grid-template-columns: 1fr;
  }
  .dash-tab {
    padding: 12px 14px;
  }
  .ov-map .structure-map,
  .st-map .structure-map {
    max-height: none;
  }
}
