:root {
  --ink: #172033;
  --muted: #64748b;
  --paper: #f7f9fc;
  --panel: #ffffff;
  --line: #d8e1ee;
  --blue: #0ea5e9;
  --green: #0f766e;
  --purple: #7c3aed;
  --orange: #f97316;
  --red: #dc2626;
  --charcoal: #243044;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  display: flex;
  flex-direction: column;
}

.app-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 22px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.app-header h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: 0;
}

.app-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.guide-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid #b7d5cf;
  border-radius: 6px;
  background: #eef9f7;
  color: var(--green);
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.guide-link:hover,
.guide-link:focus-visible {
  border-color: var(--green);
  background: #dff4ef;
  outline: none;
}

.pack-status {
  min-width: 250px;
  border: 1px solid var(--line);
  background: #f8fafc;
  padding: 10px 12px;
  font: 12px ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--charcoal);
}

.layout {
  flex: 1;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  min-height: 0;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: #edf3f8;
  padding: 16px;
  overflow: auto;
}

.panel,
.analysis-panel,
.map-stage {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}

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

.panel h2,
.map-head h2,
.map-layer-head h3,
.panel-title h2 {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
}

.meta-list {
  margin: 12px 0 0;
}

.meta-list div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #e7edf5;
}

.meta-list div:last-child {
  border-bottom: 0;
}

dt {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

dd {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}

.scenario-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.scenario-btn {
  width: 100%;
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-radius: 5px;
  background: #fff;
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.scenario-btn strong {
  display: block;
  font-size: 13px;
}

.scenario-btn span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
}

.scenario-btn.active {
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.18);
  background: #f8fbff;
}

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

.outcome-btn {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  padding: 8px;
  text-align: left;
  cursor: pointer;
}

.outcome-btn strong {
  display: block;
  font-size: 12px;
}

.outcome-btn span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
}

.outcome-btn.active {
  border-color: #111827;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px #111827;
}

.outcome-readout {
  margin-top: 10px;
  border: 1px solid #dbe5f0;
  border-left: 5px solid var(--charcoal);
  border-radius: 5px;
  background: #fff;
  padding: 9px;
}

.outcome-readout strong,
.outcome-readout span {
  display: block;
}

.outcome-readout strong {
  font-size: 12px;
}

.outcome-readout span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.outcome-readout .is-triggered {
  color: var(--green);
  font-weight: 800;
}

.outcome-readout .is-muted {
  color: #9a3412;
}

.field {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

select,
button {
  font: inherit;
}

select {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  padding: 0 9px;
}

.animation-readout {
  border: 1px solid #dbe5f0;
  border-left: 4px solid var(--blue);
  border-radius: 5px;
  background: #f8fafc;
  padding: 8px;
  color: #334155;
  font-size: 11px;
  line-height: 1.35;
}

.basis-card {
  margin-top: 10px;
  border: 1px solid #dbe5f0;
  border-left: 5px solid var(--purple);
  border-radius: 5px;
  background: #fff;
  padding: 10px;
}

.basis-card .basis-kicker {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 800;
}

.basis-card strong {
  display: block;
  font-size: 12px;
  line-height: 1.3;
}

.basis-card p {
  margin: 7px 0 0;
  color: #334155;
  font-size: 11px;
  line-height: 1.4;
}

.basis-card dl {
  margin: 8px 0 0;
  display: grid;
  gap: 6px;
}

.basis-card dl div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
}

.basis-card dt {
  font-size: 10px;
}

.basis-card dd {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}

.walkthrough-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.walkthrough-btn {
  width: 100%;
  min-height: 42px;
  border: 1px solid #dbe5f0;
  border-left: 5px solid var(--blue);
  border-radius: 5px;
  background: #fff;
  padding: 8px 9px;
  text-align: left;
  cursor: pointer;
}

.walkthrough-btn strong,
.walkthrough-btn span {
  display: block;
}

.walkthrough-btn strong {
  color: var(--ink);
  font-size: 12px;
}

.walkthrough-btn span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.walkthrough-btn.active {
  border-color: #111827;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px #111827;
}

.walkthrough-readout {
  margin-top: 10px;
  border: 1px solid #dbe5f0;
  border-radius: 5px;
  background: #fff;
  padding: 9px;
  color: #334155;
  font-size: 11px;
  line-height: 1.4;
}

.layer-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.layer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.layer-actions button {
  min-height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #ffffff;
  color: #172033;
  padding: 7px 9px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.layer-actions button:hover,
.layer-actions button:focus-visible {
  border-color: #0f766e;
  background: #ecfdf5;
  color: #0f3f3a;
}

.layer-list label {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #dbe5f0;
  border-radius: 5px;
  background: #fff;
  padding: 8px 9px;
  color: #334155;
  font-size: 12px;
  cursor: pointer;
}

.layer-list input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--charcoal);
}

.terrain-raster-control {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  border: 1px solid #dbe5f0;
  border-radius: 6px;
  background: #f8fafc;
  padding: 9px;
}

.terrain-raster-control div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.terrain-raster-control label,
.terrain-raster-control output {
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.terrain-raster-control output {
  color: #111827;
}

.terrain-raster-control input {
  width: 100%;
  accent-color: var(--charcoal);
}

.pack-overlay-controls {
  margin-top: 10px;
  border: 1px solid #dbe5f0;
  border-radius: 6px;
  background: #f8fafc;
  padding: 9px;
}

.pack-overlay-controls.is-disabled {
  opacity: 0.72;
}

.pack-overlay-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.pack-overlay-head div {
  display: flex;
  gap: 6px;
}

.pack-overlay-head button {
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  color: #172033;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.pack-overlay-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.pack-overlay-list label {
  min-height: 31px;
  display: grid;
  grid-template-columns: 16px 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid #dbe5f0;
  border-radius: 5px;
  background: #ffffff;
  padding: 7px 8px;
  color: #334155;
  font-size: 11px;
  cursor: pointer;
}

.pack-overlay-list label.is-active {
  border-color: #111827;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.06);
}

.pack-overlay-list input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--charcoal);
}

.pack-overlay-list i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.pack-overlay-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pack-overlay-list b {
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  padding: 2px 6px;
  font-size: 9px;
  text-transform: uppercase;
}

.qa-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.qa-list li,
.qa-item {
  min-width: 0;
  max-width: 100%;
  font-size: 12px;
  color: #334155;
  border-left: 4px solid var(--blue);
  padding-left: 9px;
  overflow-wrap: anywhere;
  word-break: normal;
}

.qa-item strong,
.qa-item span {
  display: block;
}

.qa-item strong {
  font-size: 11px;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  white-space: normal;
}

.qa-item span {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}

.qa-item.caution,
.qa-item.caveat,
.qa-item.planned,
.qa-item.medium {
  border-left-color: var(--orange);
}

.qa-item.fail,
.qa-item.high {
  border-left-color: var(--red);
}

.integrity-summary {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.integrity-card {
  min-width: 0;
  border: 1px solid #dbe5f0;
  border-left: 4px solid var(--green);
  border-radius: 5px;
  background: #ffffff;
  padding: 8px;
}

.integrity-card.caution {
  border-left-color: var(--orange);
}

.integrity-card span,
.integrity-card strong,
.integrity-card em {
  display: block;
}

.integrity-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.integrity-card strong {
  margin-top: 2px;
  color: #111827;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.integrity-card em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.source-ledger {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.freshness-summary {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.freshness-card {
  min-width: 0;
  border: 1px solid #dbe5f0;
  border-left: 4px solid var(--green);
  border-radius: 5px;
  background: #ffffff;
  padding: 8px;
}

.freshness-card.due {
  border-left-color: #f59e0b;
  background: #fffaf0;
}

.freshness-card.stale {
  border-left-color: var(--red);
  background: #fff7f7;
}

.freshness-card span,
.freshness-card strong,
.freshness-card em {
  display: block;
}

.freshness-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.freshness-card strong {
  margin-top: 2px;
  color: #111827;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.freshness-card em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.freshness-ledger {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.freshness-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  column-gap: 7px;
  row-gap: 2px;
  align-items: start;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  background: #f8fafc;
  padding: 7px;
}

.freshness-row b {
  grid-row: span 2;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  padding: 3px 5px;
  font-size: 9px;
  text-align: center;
  text-transform: uppercase;
}

.freshness-row.due b,
.freshness-row.event b {
  background: #ffedd5;
  color: #9a3412;
}

.freshness-row.stale b,
.freshness-row.missing b {
  background: #fee2e2;
  color: #991b1b;
}

.freshness-row span,
.freshness-row em {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.freshness-row span {
  color: #172033;
  font-size: 11px;
}

.freshness-row em {
  grid-column: 2 / 4;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.freshness-row a {
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.source-row {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  column-gap: 7px;
  row-gap: 2px;
  align-items: start;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  background: #f8fafc;
  padding: 7px;
}

.source-row b {
  grid-row: span 2;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  padding: 3px 5px;
  font-size: 9px;
  text-align: center;
  text-transform: uppercase;
}

.source-row.pending b,
.source-row.derived b {
  background: #ffedd5;
  color: #9a3412;
}

.source-row span,
.source-row em {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.source-row span {
  color: #172033;
  font-size: 11px;
}

.source-row em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.workspace {
  padding: 16px;
  overflow: auto;
}

.workspace-tabs {
  position: sticky;
  top: 0;
  z-index: 500;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -16px -16px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 249, 252, 0.96);
  padding: 12px 16px;
}

.workspace-tab {
  min-height: 36px;
  border: 1px solid #c8d7e8;
  border-radius: 6px;
  background: #ffffff;
  color: #243044;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.workspace-tab:hover,
.workspace-tab:focus-visible {
  border-color: var(--green);
  outline: none;
}

.workspace-tab.active {
  border-color: var(--green);
  background: #dff4ef;
  color: #0d5f59;
}

.workspace-view[hidden] {
  display: none !important;
}

.walkthrough-panel {
  border-left: 5px solid var(--green);
}

.walkthrough-guide-hero,
.walkthrough-current-state,
.walkthrough-snapshot-grid {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.walkthrough-guide-hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(240px, .6fr);
}

.walkthrough-current-state {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.walkthrough-snapshot-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.walkthrough-guide-hero > div,
.walkthrough-current-state > div,
.walkthrough-snapshot-card,
.walkthrough-guide-step,
.walkthrough-guide-close {
  border: 1px solid #dbe5f0;
  border-radius: 6px;
  background: #ffffff;
}

.walkthrough-guide-hero > div,
.walkthrough-current-state > div {
  border-left: 5px solid var(--green);
  background: #f8fafc;
  padding: 10px;
}

.walkthrough-guide-hero .blocked {
  border-left-color: var(--orange);
  background: #fff8ed;
}

.walkthrough-guide-hero strong,
.walkthrough-guide-hero span,
.walkthrough-current-state strong,
.walkthrough-current-state span,
.walkthrough-snapshot-card b,
.walkthrough-snapshot-card strong,
.walkthrough-snapshot-card span,
.walkthrough-guide-close strong,
.walkthrough-guide-close span {
  display: block;
}

.walkthrough-guide-hero strong,
.walkthrough-current-state strong,
.walkthrough-guide-close strong {
  color: #111827;
  font-size: 13px;
  line-height: 1.2;
}

.walkthrough-guide-hero span,
.walkthrough-current-state span,
.walkthrough-guide-close span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.walkthrough-snapshot-card {
  display: grid;
  gap: 7px;
  min-height: 112px;
  border-left: 5px solid var(--orange);
  background: #fff8ed;
  padding: 9px;
}

.walkthrough-snapshot-card.ready {
  border-left-color: var(--green);
  background: #ecfdf5;
}

.walkthrough-snapshot-card.partial {
  border-left-color: var(--blue);
  background: #eff6ff;
}

.walkthrough-snapshot-card.blocked {
  border-left-color: var(--orange);
  background: #fff8ed;
}

.walkthrough-snapshot-card b {
  width: fit-content;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  padding: 4px 8px;
  font-size: 9px;
  line-height: 1;
  text-transform: uppercase;
}

.walkthrough-snapshot-card.ready b {
  background: #dcfce7;
  color: #166534;
}

.walkthrough-snapshot-card.partial b {
  background: #dbeafe;
  color: #1d4ed8;
}

.walkthrough-snapshot-card strong {
  color: #111827;
  font-size: 12px;
  line-height: 1.2;
}

.walkthrough-snapshot-card span {
  color: #475569;
  font-size: 11px;
  line-height: 1.35;
}

.walkthrough-guide-flow {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.walkthrough-guide-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-left: 5px solid var(--green);
  padding: 10px;
}

.walkthrough-guide-step b {
  border-radius: 999px;
  background: #dff4ef;
  color: #0d5f59;
  padding: 8px 0;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.walkthrough-guide-step strong,
.walkthrough-guide-step p,
.walkthrough-guide-step span {
  display: block;
}

.walkthrough-guide-step strong {
  color: #111827;
  font-size: 13px;
  line-height: 1.2;
}

.walkthrough-guide-step p {
  margin: 5px 0 0;
  color: #334155;
  font-size: 12px;
  line-height: 1.35;
}

.walkthrough-guide-step span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.walkthrough-guide-step button {
  min-height: 34px;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  background: #e0f2fe;
  color: #075985;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}

.walkthrough-guide-step button:hover {
  background: #bae6fd;
}

.walkthrough-guide-close {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  margin-top: 12px;
  border-color: #f3caa4;
  border-left: 5px solid var(--orange);
  background: #fff8ed;
  padding: 10px;
}

.trust-board-panel {
  border-left: 5px solid var(--charcoal);
}

.trust-hero,
.claim-ladder,
.trust-action-strip,
.evidence-passport-grid {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.trust-hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(210px, .45fr);
}

.trust-hero > div,
.trust-current-claim,
.trust-no-fake {
  border: 1px solid #dbe5f0;
  border-left: 5px solid var(--green);
  border-radius: 6px;
  background: #f8fafc;
  padding: 10px;
}

.trust-current-claim {
  border-left-color: var(--blue);
  background: #eff6ff;
}

.trust-hero strong,
.trust-hero span,
.trust-current-claim strong,
.trust-current-claim span,
.trust-current-claim em,
.trust-no-fake strong,
.trust-no-fake span {
  display: block;
}

.trust-hero strong,
.trust-current-claim strong,
.trust-no-fake strong {
  color: #111827;
  font-size: 13px;
  line-height: 1.2;
}

.trust-hero span,
.trust-current-claim em,
.trust-no-fake span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.trust-current-claim span {
  color: #075985;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.trust-current-claim strong {
  margin-top: 4px;
  font-size: 24px;
}

.claim-ladder {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  align-items: stretch;
}

.claim-level-card {
  display: grid;
  grid-template-rows: auto auto auto 8px minmax(48px, 1fr);
  gap: 8px;
  min-height: 178px;
  border: 1px solid #dbe5f0;
  border-top: 5px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  padding: 10px;
}

.claim-level-card.open {
  border-top-color: var(--green);
  background: #ecfdf5;
}

.claim-level-card.current {
  border-top-color: var(--blue);
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.14);
}

.claim-level-card.blocked {
  border-top-color: var(--orange);
  background: #fff8ed;
}

.claim-level-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.claim-level-card b,
.claim-level-card span {
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 9px;
  line-height: 1;
  text-transform: uppercase;
}

.claim-level-card b {
  background: #e2e8f0;
  color: #334155;
}

.claim-level-card span {
  background: #f8fafc;
  color: #475569;
  font-weight: 900;
}

.claim-level-card.current span {
  background: #dbeafe;
  color: #1d4ed8;
}

.claim-level-card.open span {
  background: #dcfce7;
  color: #166534;
}

.claim-level-card.blocked span {
  background: #ffedd5;
  color: #9a3412;
}

.claim-level-card strong,
.claim-level-card p,
.claim-level-card small {
  display: block;
}

.claim-level-card strong {
  color: #111827;
  font-size: 13px;
  line-height: 1.2;
}

.claim-level-card p,
.claim-level-card small {
  margin: 0;
  color: #475569;
  font-size: 11px;
  line-height: 1.35;
}

.claim-level-card i {
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: #dbe5f0;
}

.claim-level-card em {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.claim-level-card.current em {
  background: var(--blue);
}

.claim-level-card.blocked em {
  background: var(--orange);
}

.trust-action-strip {
  grid-template-columns: repeat(3, auto) minmax(0, 1fr);
  align-items: center;
  border: 1px solid #dbe5f0;
  border-radius: 6px;
  background: #ffffff;
  padding: 10px;
}

.trust-action-strip button {
  min-height: 34px;
  border: 1px solid #c8d7e8;
  border-radius: 5px;
  background: #ffffff;
  color: #172033;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.trust-action-strip button:hover,
.trust-action-strip button:focus-visible {
  border-color: var(--green);
  background: #eef9f7;
  outline: none;
}

.trust-action-strip span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.evidence-passport-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.evidence-passport-card {
  border: 1px solid #dbe5f0;
  border-left: 5px solid var(--charcoal);
  border-radius: 6px;
  background: #ffffff;
  padding: 10px;
}

.evidence-passport-card.ready {
  border-left-color: var(--green);
}

.evidence-passport-card.partial,
.evidence-passport-card.screening {
  border-left-color: var(--blue);
}

.evidence-passport-card.pending,
.evidence-passport-card.missing {
  border-left-color: var(--orange);
  background: #fff8ed;
}

.passport-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.passport-card-head strong {
  color: #111827;
  font-size: 13px;
  line-height: 1.2;
}

.passport-card-head b {
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  padding: 4px 7px;
  font-size: 9px;
  line-height: 1;
  text-transform: uppercase;
}

.evidence-passport-card.ready .passport-card-head b {
  background: #dcfce7;
  color: #166534;
}

.evidence-passport-card.partial .passport-card-head b,
.evidence-passport-card.screening .passport-card-head b {
  background: #dbeafe;
  color: #1d4ed8;
}

.evidence-passport-card.pending .passport-card-head b,
.evidence-passport-card.missing .passport-card-head b {
  background: #ffedd5;
  color: #9a3412;
}

.evidence-passport-card dl {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
}

.evidence-passport-card dl div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 8px;
}

.evidence-passport-card dt {
  color: #64748b;
  font-size: 9px;
  font-weight: 900;
}

.evidence-passport-card dd {
  min-width: 0;
  color: #334155;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.trust-no-fake {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  margin-top: 12px;
  border-left-color: var(--orange);
  background: #fff8ed;
}

.trust-no-fake strong {
  font-size: 12px;
  text-transform: uppercase;
}

.trust-no-fake span {
  color: #7c2d12;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.decision-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.decision-card {
  min-height: 82px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--blue);
  border-radius: 6px;
  background: #ffffff;
  padding: 12px;
}

.decision-card.terrain {
  border-left-color: #f59e0b;
}

.decision-card.action {
  border-left-color: var(--green);
}

.decision-card.action.hot {
  border-left-color: var(--red);
  background: #fff7f7;
}

.decision-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.15;
}

.decision-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.monthly-rainfall-panel {
  min-height: 0;
  margin-bottom: 14px;
}

.monthly-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.monthly-stat {
  min-height: 76px;
  border: 1px solid #dbe5f0;
  border-left: 5px solid var(--green);
  border-radius: 6px;
  background: #f8fafc;
  padding: 10px;
}

.monthly-stat.caution {
  border-left-color: var(--orange);
  background: #fff8ed;
}

.monthly-stat span,
.monthly-stat strong,
.monthly-stat em {
  display: block;
}

.monthly-stat span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.monthly-stat strong {
  margin-top: 3px;
  color: #111827;
  font-size: 18px;
  line-height: 1.15;
}

.monthly-stat em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.3;
}

.monthly-chart {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 7px 12px;
  margin-top: 12px;
}

.monthly-bar {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 74px;
  gap: 8px;
  align-items: center;
  min-height: 28px;
}

.monthly-bar span,
.monthly-bar b {
  color: #334155;
  font-size: 11px;
  line-height: 1.1;
}

.monthly-bar span {
  font-weight: 800;
}

.monthly-bar b {
  text-align: right;
}

.monthly-bar i {
  display: block;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.monthly-bar em {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #0f766e);
}

.monthly-bar.unavailable em {
  width: 100%;
  background: repeating-linear-gradient(45deg, #cbd5e1, #cbd5e1 4px, #e2e8f0 4px, #e2e8f0 8px);
}

.monthly-bar.unavailable b {
  color: #9a3412;
}

.monthly-source-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  margin-top: 10px;
  border: 1px solid #dbe5f0;
  border-left: 5px solid var(--green);
  border-radius: 6px;
  background: #f8fafc;
  padding: 9px 10px;
  color: #334155;
  font-size: 12px;
  line-height: 1.35;
}

.monthly-source-note.caution {
  grid-template-columns: minmax(0, 1fr);
  border-left-color: var(--orange);
  background: #fff8ed;
  color: #7c2d12;
}

.monthly-source-note strong {
  color: #111827;
  white-space: nowrap;
}

.monthly-source-note a {
  color: #075985;
  font-weight: 800;
}

.nrfa-flow-panel {
  min-height: 0;
  margin-bottom: 14px;
}

.official-flood-panel {
  min-height: 0;
  margin-bottom: 14px;
}

.rofsw-hazard-panel {
  min-height: 0;
  margin-bottom: 14px;
}

.channel-network-panel {
  min-height: 0;
  margin-bottom: 14px;
}

.terrain-truth-panel {
  min-height: 0;
  margin: 14px 0;
}

.terrain-truth-intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.terrain-truth-intro div {
  border: 1px solid #dbe5f0;
  border-left: 5px solid #92400e;
  border-radius: 6px;
  background: #fffdf5;
  padding: 10px;
}

.terrain-truth-intro div:last-child {
  border-left-color: #0f766e;
  background: #f2fbf8;
}

.terrain-truth-intro strong,
.terrain-truth-intro span {
  display: block;
}

.terrain-truth-intro strong {
  color: #111827;
  font-size: 13px;
}

.terrain-truth-intro span {
  margin-top: 5px;
  color: #475569;
  font-size: 12px;
  line-height: 1.4;
}

.terrain-truth-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  margin-top: 10px;
}

.terrain-truth-actions button {
  min-height: 42px;
  border: 0;
  border-radius: 5px;
  background: #78350f;
  color: #ffffff;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.terrain-truth-actions button:hover {
  background: #5f290c;
}

.terrain-truth-actions span {
  display: flex;
  align-items: center;
  border: 1px solid #dbe5f0;
  border-radius: 5px;
  background: #f8fafc;
  color: #475569;
  padding: 9px 10px;
  font-size: 12px;
  line-height: 1.35;
}

.terrain-truth-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.terrain-truth-metric {
  min-height: 80px;
  border: 1px solid #dbe5f0;
  border-left: 5px solid #0f766e;
  border-radius: 6px;
  background: #f8fafc;
  padding: 10px;
}

.terrain-truth-metric.watch {
  border-left-color: #f59e0b;
  background: #fff8ed;
}

.terrain-truth-metric span,
.terrain-truth-metric strong,
.terrain-truth-metric em {
  display: block;
}

.terrain-truth-metric span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.terrain-truth-metric strong {
  margin-top: 3px;
  color: #111827;
  font-size: 20px;
  line-height: 1.15;
}

.terrain-truth-metric em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.terrain-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.terrain-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 8px;
  align-items: start;
  border: 1px solid #dbe5f0;
  border-radius: 5px;
  background: #ffffff;
  padding: 9px;
}

.terrain-status b {
  grid-row: span 2;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  padding: 3px 7px;
  font-size: 9px;
  text-transform: uppercase;
  white-space: nowrap;
}

.terrain-status.pending b {
  background: #ffedd5;
  color: #9a3412;
}

.terrain-status.blocked b {
  background: #fee2e2;
  color: #991b1b;
}

.terrain-status strong {
  color: #172033;
  font-size: 12px;
}

.terrain-status span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.terrain-profile-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.terrain-profile-card {
  border: 1px solid #dbe5f0;
  border-left: 5px solid #64748b;
  border-radius: 6px;
  background: #ffffff;
  padding: 11px;
}

.terrain-profile-card.active {
  border-left-color: var(--red);
  background: #fff7f7;
}

.terrain-profile-card.watch {
  border-left-color: #f59e0b;
  background: #fffaf0;
}

.terrain-profile-card.later {
  border-left-color: #7c3aed;
}

.terrain-profile-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.terrain-profile-head strong,
.terrain-profile-head span {
  display: block;
}

.terrain-profile-head strong {
  color: #111827;
  font-size: 13px;
}

.terrain-profile-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.terrain-profile-head b {
  border-radius: 999px;
  background: #fef3c7;
  color: #78350f;
  padding: 4px 8px;
  font-size: 10px;
  white-space: nowrap;
}

.terrain-profile-track {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 58px;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.terrain-profile-track i {
  position: relative;
  display: block;
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.terrain-profile-track i::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(127, 29, 29, 0.16), rgba(14, 165, 233, 0.18));
}

.terrain-profile-track i em {
  position: relative;
  z-index: 1;
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7f1d1d, #075985);
}

.terrain-profile-point {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  color: #ffffff;
  line-height: 1;
}

.terrain-profile-point.high {
  background: #7f1d1d;
}

.terrain-profile-point.low {
  background: #075985;
}

.terrain-profile-point b,
.terrain-profile-point span {
  display: block;
}

.terrain-profile-point b {
  font-size: 13px;
}

.terrain-profile-point span {
  font-size: 10px;
  font-weight: 800;
}

.terrain-profile-bars {
  margin-top: 10px;
}

.terrain-profile-card p,
.terrain-truth-note {
  margin: 10px 0 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.4;
}

.terrain-truth-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border: 1px solid #dbe5f0;
  border-left: 5px solid #0f766e;
  border-radius: 6px;
  background: #f8fafc;
  padding: 10px;
}

.terrain-truth-note.caution {
  grid-template-columns: minmax(0, 1fr);
  border-left-color: var(--orange);
  background: #fff8ed;
}

.flow-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.flow-stat,
.flow-pending {
  min-height: 76px;
  border: 1px solid #dbe5f0;
  border-left: 5px solid var(--green);
  border-radius: 6px;
  background: #f8fafc;
  padding: 10px;
}

.flow-stat.caution,
.flow-pending {
  border-left-color: var(--orange);
  background: #fff8ed;
}

.flow-stat span,
.flow-stat strong,
.flow-stat em,
.flow-pending strong,
.flow-pending span {
  display: block;
}

.flow-stat span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.flow-stat strong {
  margin-top: 3px;
  color: #111827;
  font-size: 18px;
  line-height: 1.15;
}

.flow-stat em,
.flow-pending span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.flow-pending strong {
  width: fit-content;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  padding: 3px 7px;
  font-size: 10px;
  text-transform: uppercase;
}

.flow-chart {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 7px 12px;
  margin-top: 12px;
}

.flow-month {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 82px;
  gap: 8px;
  align-items: center;
  min-height: 28px;
}

.flow-month span,
.flow-month b {
  color: #334155;
  font-size: 11px;
  line-height: 1.1;
}

.flow-month span {
  font-weight: 800;
}

.flow-month b {
  text-align: right;
}

.flow-month i {
  display: block;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.flow-month em {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #0f766e);
}

.flow-month.unavailable em {
  width: 100%;
  background: repeating-linear-gradient(45deg, #cbd5e1, #cbd5e1 4px, #e2e8f0 4px, #e2e8f0 8px);
}

.flow-source-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  margin-top: 10px;
  border: 1px solid #dbe5f0;
  border-left: 5px solid var(--green);
  border-radius: 6px;
  background: #f8fafc;
  padding: 9px 10px;
  color: #334155;
  font-size: 12px;
  line-height: 1.35;
}

.flow-source-note.caution {
  grid-template-columns: minmax(0, 1fr);
  border-left-color: var(--orange);
  background: #fff8ed;
  color: #7c2d12;
}

.flow-source-note strong {
  color: #111827;
  white-space: nowrap;
}

.flow-source-note a {
  color: #075985;
  font-weight: 800;
}

.official-flood-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.official-flood-card {
  min-height: 76px;
  border: 1px solid #dbe5f0;
  border-left: 5px solid #2563eb;
  border-radius: 6px;
  background: #f8fafc;
  padding: 10px;
}

.official-flood-card.caution {
  border-left-color: var(--orange);
  background: #fff8ed;
}

.official-flood-card span,
.official-flood-card strong,
.official-flood-card em {
  display: block;
}

.official-flood-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.official-flood-card strong {
  margin-top: 3px;
  color: #111827;
  font-size: 18px;
  line-height: 1.15;
}

.official-flood-card em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.3;
}

.official-flood-actions,
.official-flood-note {
  margin-top: 10px;
  border: 1px solid #dbe5f0;
  border-left: 5px solid #2563eb;
  border-radius: 6px;
  background: #f8fafc;
  padding: 9px 10px;
  color: #334155;
  font-size: 12px;
  line-height: 1.35;
}

.official-flood-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.official-flood-actions button {
  border: 1px solid #93c5fd;
  border-radius: 4px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.official-flood-actions a {
  color: #075985;
  font-weight: 800;
}

.official-flood-note.caution {
  border-left-color: var(--orange);
  background: #fff8ed;
  color: #7c2d12;
}

.rofsw-hazard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.rofsw-hazard-card {
  min-height: 76px;
  border: 1px solid #dbe5f0;
  border-left: 5px solid #cc79a7;
  border-radius: 6px;
  background: #f8fafc;
  padding: 10px;
}

.rofsw-hazard-card.screening,
.rofsw-hazard-card.caution {
  border-left-color: var(--orange);
  background: #fff8ed;
}

.rofsw-hazard-card span,
.rofsw-hazard-card strong,
.rofsw-hazard-card em {
  display: block;
}

.rofsw-hazard-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.rofsw-hazard-card strong {
  margin-top: 3px;
  color: #111827;
  font-size: 18px;
  line-height: 1.15;
}

.rofsw-hazard-card em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.3;
}

.rofsw-hazard-actions,
.rofsw-hazard-note {
  margin-top: 10px;
  border: 1px solid #dbe5f0;
  border-left: 5px solid #cc79a7;
  border-radius: 6px;
  background: #f8fafc;
  padding: 9px 10px;
  color: #334155;
  font-size: 12px;
  line-height: 1.35;
}

.rofsw-hazard-actions {
  display: grid;
  grid-template-columns: auto auto minmax(220px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.rofsw-hazard-actions button {
  border: 1px solid #f0abfc;
  border-radius: 4px;
  background: #fdf4ff;
  color: #86198f;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.rofsw-hazard-actions label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.rofsw-hazard-actions select {
  width: 100%;
  min-width: 0;
  border-color: #f5d0fe;
  background: #ffffff;
}

.rofsw-hazard-actions a {
  color: #075985;
  font-weight: 800;
}

.rofsw-hazard-note.caution {
  border-left-color: var(--orange);
  background: #fff8ed;
  color: #7c2d12;
}

.channel-network-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.channel-network-card {
  min-height: 76px;
  border: 1px solid #dbe5f0;
  border-left: 5px solid #0369a1;
  border-radius: 6px;
  background: #f8fafc;
  padding: 10px;
}

.channel-network-card.screening,
.channel-network-card.caution {
  border-left-color: var(--orange);
  background: #fff8ed;
}

.channel-network-card span,
.channel-network-card strong,
.channel-network-card em {
  display: block;
}

.channel-network-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.channel-network-card strong {
  margin-top: 3px;
  color: #111827;
  font-size: 18px;
  line-height: 1.15;
}

.channel-network-card em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.3;
}

.channel-network-actions,
.channel-network-note {
  margin-top: 10px;
  border: 1px solid #dbe5f0;
  border-left: 5px solid #0369a1;
  border-radius: 6px;
  background: #f8fafc;
  padding: 9px 10px;
  color: #334155;
  font-size: 12px;
  line-height: 1.35;
}

.channel-network-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.channel-network-actions button {
  border: 1px solid #7dd3fc;
  border-radius: 4px;
  background: #f0f9ff;
  color: #075985;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.channel-network-actions a {
  color: #075985;
  font-weight: 800;
}

.channel-network-note.caution {
  border-left-color: var(--orange);
  background: #fff8ed;
  color: #7c2d12;
}

.action-board {
  min-height: 0;
  margin-bottom: 14px;
}

.action-brief {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr) max-content;
  gap: 10px;
  align-items: center;
  border: 1px solid #dbe5f0;
  border-left: 6px solid var(--green);
  border-radius: 6px;
  background: #f8fafc;
  padding: 10px;
}

.action-brief.hot {
  border-left-color: var(--red);
  background: #fff7f7;
}

.action-brief.watch {
  border-left-color: var(--orange);
  background: #fff8ed;
}

.action-brief strong,
.action-brief span,
.action-brief em {
  display: block;
}

.action-brief strong {
  color: #111827;
  font-size: 16px;
  line-height: 1.15;
}

.action-brief span {
  color: #334155;
  font-size: 12px;
  line-height: 1.35;
}

.action-brief em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  text-align: right;
  white-space: nowrap;
}

.action-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.action-card {
  min-height: 196px;
  display: grid;
  grid-template-rows: auto auto auto minmax(48px, 1fr) auto auto;
  gap: 6px;
  border: 1px solid #dbe5f0;
  border-left: 5px solid #94a3b8;
  border-radius: 6px;
  background: #ffffff;
  padding: 10px;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.action-card:hover {
  background: #f8fafc;
}

.action-card:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.35);
  outline-offset: 2px;
}

.action-card.active {
  border-left-color: var(--red);
}

.action-card.watch {
  border-left-color: var(--orange);
}

.action-card.later {
  border-left-color: var(--purple);
}

.action-status {
  width: fit-content;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.action-card.active .action-status {
  background: #fee2e2;
  color: #991b1b;
}

.action-card.watch .action-status {
  background: #ffedd5;
  color: #9a3412;
}

.action-card strong {
  font-size: 13px;
  line-height: 1.22;
}

.action-card em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.25;
}

.action-card p {
  margin: 0;
  color: #334155;
  font-size: 12px;
  line-height: 1.35;
}

.action-why {
  border-top: 1px solid #e2e8f0;
  padding-top: 6px;
}

.action-why b,
.action-why span {
  display: block;
}

.action-why b {
  color: #111827;
  font-size: 10px;
  text-transform: uppercase;
}

.action-why span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.impact-matrix-panel {
  min-height: 0;
  margin-bottom: 14px;
}

.impact-matrix {
  display: grid;
  grid-template-columns: minmax(118px, 0.75fr) repeat(var(--outcome-count), minmax(96px, 1fr));
  gap: 6px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.impact-corner,
.impact-head,
.impact-scenario,
.impact-cell {
  min-height: 58px;
  border: 1px solid #dbe5f0;
  border-radius: 5px;
  background: #ffffff;
  padding: 8px;
}

.impact-corner {
  display: grid;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.impact-head strong,
.impact-head span,
.impact-scenario strong,
.impact-scenario span,
.impact-cell strong,
.impact-cell span {
  display: block;
}

.impact-head strong,
.impact-scenario strong,
.impact-cell strong {
  font-size: 12px;
  line-height: 1.2;
}

.impact-head span,
.impact-scenario span,
.impact-cell span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}

.impact-scenario {
  border-left: 5px solid var(--blue);
}

.impact-cell {
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.impact-cell:hover {
  border-color: #facc15;
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

.impact-cell.active {
  border-left: 5px solid var(--red);
  background: #fff7f7;
}

.impact-cell.watch {
  border-left: 5px solid var(--orange);
  background: #fff8ed;
}

.impact-cell.later {
  border-left: 5px solid var(--purple);
  background: #faf5ff;
}

.impact-cell.monitor {
  border-left: 5px solid #94a3b8;
}

.impact-cell.selected {
  outline: 3px solid rgba(14, 165, 233, 0.35);
  outline-offset: 1px;
}

.impact-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.model-readiness-panel {
  margin-bottom: 14px;
}

.readiness-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.readiness-summary div {
  min-height: 72px;
  border: 1px solid #dbe5f0;
  border-left: 5px solid var(--green);
  border-radius: 6px;
  background: #f8fafc;
  padding: 10px;
}

.readiness-summary div.blocked {
  border-left-color: var(--orange);
  background: #fff8ed;
}

.readiness-summary strong,
.readiness-summary span {
  display: block;
}

.readiness-summary strong {
  font-size: 14px;
  line-height: 1.2;
}

.readiness-summary span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.readiness-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.readiness-row {
  min-height: 146px;
  display: grid;
  grid-template-rows: minmax(42px, auto) auto auto minmax(36px, 1fr);
  gap: 7px;
  border: 1px solid #dbe5f0;
  border-left: 5px solid #94a3b8;
  border-radius: 6px;
  background: #ffffff;
  padding: 10px;
}

.readiness-row.ready {
  border-left-color: var(--green);
}

.readiness-row.partial,
.readiness-row.screening {
  border-left-color: var(--orange);
}

.readiness-row.pending,
.readiness-row.missing {
  border-left-color: #94a3b8;
}

.readiness-row strong,
.readiness-row span,
.readiness-row b,
.readiness-row p {
  display: block;
}

.readiness-row strong {
  font-size: 12px;
  line-height: 1.25;
}

.readiness-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

.readiness-row b {
  width: fit-content;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  padding: 3px 7px;
  font-size: 9px;
  text-transform: uppercase;
}

.readiness-row.ready b {
  background: #dcfce7;
  color: #166534;
}

.readiness-row.partial b,
.readiness-row.screening b {
  background: #ffedd5;
  color: #9a3412;
}

.readiness-row i {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.readiness-row em {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.readiness-row.partial em,
.readiness-row.screening em {
  background: var(--orange);
}

.readiness-row.pending em,
.readiness-row.missing em {
  background: #94a3b8;
}

.readiness-row p {
  margin: 0;
  color: #334155;
  font-size: 11px;
  line-height: 1.35;
}

.next-data-targets {
  margin-top: 10px;
  border: 1px solid #dbe5f0;
  border-radius: 6px;
  background: #f8fafc;
  padding: 10px 12px;
}

.next-data-targets strong,
.next-data-targets span {
  display: block;
}

.next-data-targets strong {
  font-size: 12px;
  text-transform: uppercase;
}

.next-data-targets span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.runoff-contract-panel {
  margin-bottom: 14px;
}

.contract-kicker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.32fr);
  gap: 10px;
  align-items: stretch;
  margin-top: 10px;
}

.contract-kicker > div {
  border: 1px solid #dbe5f0;
  border-left: 5px solid var(--charcoal);
  border-radius: 6px;
  background: #f8fafc;
  padding: 10px;
}

.contract-kicker strong,
.contract-kicker span,
.contract-meter b {
  display: block;
}

.contract-kicker strong {
  font-size: 14px;
  line-height: 1.2;
}

.contract-kicker span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.contract-meter b {
  color: #172033;
  font-size: 12px;
  line-height: 1.2;
}

.contract-meter i,
.contract-gate i,
.contract-requirement i {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.contract-meter i {
  margin-top: 12px;
}

.contract-meter em,
.contract-gate em,
.contract-requirement em {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.contract-gates {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.contract-gate {
  min-height: 156px;
  display: grid;
  grid-template-rows: auto auto minmax(34px, auto) auto minmax(34px, 1fr);
  gap: 7px;
  border: 1px solid #dbe5f0;
  border-left: 5px solid var(--green);
  border-radius: 6px;
  background: #ffffff;
  padding: 10px;
}

.contract-gate.blocked {
  border-left-color: var(--orange);
}

.contract-gate b,
.contract-requirement b {
  width: fit-content;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  padding: 3px 7px;
  font-size: 9px;
  text-transform: uppercase;
}

.contract-gate.blocked b,
.contract-requirement.pending b,
.contract-requirement.missing b {
  background: #ffedd5;
  color: #9a3412;
}

.contract-gate.blocked em,
.contract-requirement.pending em,
.contract-requirement.missing em {
  background: var(--orange);
}

.contract-gate strong,
.contract-gate span,
.contract-gate p,
.contract-requirement strong,
.contract-requirement span,
.contract-requirement p,
.contract-requirement small {
  display: block;
}

.contract-gate strong,
.contract-requirement strong {
  font-size: 12px;
  line-height: 1.25;
}

.contract-gate span,
.contract-requirement span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.contract-gate p,
.contract-requirement p {
  margin: 0;
  color: #334155;
  font-size: 11px;
  line-height: 1.35;
}

.contract-requirements {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.contract-requirement {
  min-height: 172px;
  display: grid;
  grid-template-rows: minmax(40px, auto) auto auto minmax(42px, 1fr) auto;
  gap: 7px;
  border: 1px solid #dbe5f0;
  border-left: 5px solid #94a3b8;
  border-radius: 6px;
  background: #ffffff;
  padding: 10px;
}

.contract-requirement.ready {
  border-left-color: var(--green);
}

.contract-requirement.partial,
.contract-requirement.screening {
  border-left-color: var(--orange);
}

.contract-requirement.partial b,
.contract-requirement.screening b {
  background: #ffedd5;
  color: #9a3412;
}

.contract-requirement.partial em,
.contract-requirement.screening em {
  background: var(--orange);
}

.contract-requirement small {
  min-height: 28px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

.data-needed-panel {
  border-left: 5px solid var(--green);
}

.data-needed-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(220px, .34fr);
  gap: 10px;
  margin-top: 10px;
}

.data-needed-hero > div,
.data-needed-strip > div,
.data-needed-preflight,
.data-needed-freshness,
.data-needed-group,
.data-needed-no-fake {
  border: 1px solid #dbe5f0;
  border-radius: 6px;
  background: #ffffff;
}

.data-needed-hero > div,
.data-needed-strip > div {
  border-left: 5px solid var(--green);
  background: #f8fafc;
  padding: 10px;
}

.data-needed-hero strong,
.data-needed-hero span,
.data-needed-strip strong,
.data-needed-strip span,
.data-needed-freshness b,
.data-needed-freshness strong,
.data-needed-freshness span,
.data-needed-group-head strong,
.data-needed-group-head span,
.data-needed-row strong,
.data-needed-row span,
.data-needed-row b,
.data-needed-row p,
.data-needed-row em,
.data-needed-preflight strong,
.data-needed-preflight span,
.data-needed-preflight b,
.data-needed-preflight p,
.data-needed-preflight em,
.data-needed-no-fake strong,
.data-needed-no-fake span {
  display: block;
}

.data-needed-hero strong,
.data-needed-strip strong,
.data-needed-preflight strong,
.data-needed-group-head strong {
  color: #111827;
  font-size: 13px;
  line-height: 1.2;
}

.data-needed-hero span,
.data-needed-strip span,
.data-needed-preflight span,
.data-needed-group-head span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.data-needed-meter i {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbe5f0;
  margin-top: 12px;
}

.data-needed-meter em {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.data-needed-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.data-needed-strip .blocked {
  border-left-color: var(--orange);
  background: #fff8ed;
}

.data-needed-preflight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: start;
  margin-top: 10px;
  border-left: 5px solid #0f766e;
  background: #f8fafc;
  padding: 10px;
}

.data-needed-preflight.screening_only,
.data-needed-preflight.context_only,
.data-needed-preflight.missing {
  border-left-color: var(--orange);
  background: #fff8ed;
}

.data-needed-preflight b {
  width: fit-content;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  padding: 4px 8px;
  font-size: 9px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-needed-preflight.screening_only b,
.data-needed-preflight.context_only b,
.data-needed-preflight.missing b {
  background: #ffedd5;
  color: #9a3412;
}

.data-needed-preflight p,
.data-needed-preflight em {
  grid-column: 1 / -1;
  margin: 0;
  color: #334155;
  font-size: 11px;
  line-height: 1.35;
}

.data-needed-preflight em {
  color: #7c2d12;
  font-style: normal;
  font-weight: 800;
}

.data-needed-freshness-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.data-needed-freshness {
  border-left: 5px solid var(--green);
  padding: 10px;
}

.data-needed-freshness.stale,
.data-needed-freshness.missing {
  border-left-color: var(--red);
  background: #fff7f7;
}

.data-needed-freshness.event,
.data-needed-freshness.due {
  border-left-color: var(--orange);
  background: #fff8ed;
}

.data-needed-freshness b {
  width: fit-content;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  padding: 3px 7px;
  font-size: 9px;
  text-transform: uppercase;
}

.data-needed-freshness.stale b,
.data-needed-freshness.missing b {
  background: #fee2e2;
  color: #991b1b;
}

.data-needed-freshness.event b,
.data-needed-freshness.due b {
  background: #ffedd5;
  color: #9a3412;
}

.data-needed-freshness strong {
  margin-top: 7px;
  color: #111827;
  font-size: 13px;
  line-height: 1.2;
}

.data-needed-freshness span {
  margin-top: 5px;
  color: #475569;
  font-size: 11px;
  line-height: 1.35;
}

.data-needed-groups {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.data-needed-group {
  border-left: 5px solid var(--green);
  padding: 10px;
}

.data-needed-group.partial,
.data-needed-group.blocked {
  border-left-color: var(--orange);
}

.data-needed-group-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.data-needed-group-head b {
  width: fit-content;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  padding: 4px 8px;
  font-size: 10px;
  text-transform: uppercase;
}

.data-needed-group.partial .data-needed-group-head b,
.data-needed-group.blocked .data-needed-group-head b {
  background: #ffedd5;
  color: #9a3412;
}

.data-needed-row-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.data-needed-row {
  display: grid;
  grid-template-rows: minmax(40px, auto) auto minmax(48px, 1fr) auto;
  gap: 7px;
  min-height: 164px;
  border: 1px solid #dbe5f0;
  border-left: 5px solid #94a3b8;
  border-radius: 6px;
  background: #f8fafc;
  padding: 9px;
}

.data-needed-row.ready {
  border-left-color: var(--green);
}

.data-needed-row.partial,
.data-needed-row.screening,
.data-needed-row.pending,
.data-needed-row.missing {
  border-left-color: var(--orange);
}

.data-needed-row strong {
  color: #111827;
  font-size: 12px;
  line-height: 1.2;
}

.data-needed-row span,
.data-needed-row em {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.data-needed-row b {
  width: fit-content;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  padding: 3px 7px;
  font-size: 9px;
  line-height: 1;
  text-transform: uppercase;
}

.data-needed-row.partial b,
.data-needed-row.screening b,
.data-needed-row.pending b,
.data-needed-row.missing b {
  background: #ffedd5;
  color: #9a3412;
}

.data-needed-row p {
  margin: 0;
  color: #334155;
  font-size: 11px;
  line-height: 1.35;
}

.data-needed-no-fake {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  margin-top: 12px;
  border-color: #f3caa4;
  border-left: 5px solid var(--orange);
  background: #fff8ed;
  padding: 10px;
}

.data-needed-no-fake strong {
  color: #111827;
  font-size: 12px;
  text-transform: uppercase;
}

.data-needed-no-fake span {
  color: #7c2d12;
  font-size: 12px;
  line-height: 1.35;
}

.site-evidence-panel {
  border-left: 5px solid var(--green);
}

.site-evidence-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(220px, .34fr);
  gap: 10px;
  margin-top: 10px;
}

.site-evidence-hero > div,
.site-evidence-strip > div,
.site-evidence-file,
.site-evidence-check-group,
.site-evidence-no-fake {
  border: 1px solid #dbe5f0;
  border-radius: 6px;
  background: #ffffff;
}

.site-evidence-hero > div,
.site-evidence-strip > div {
  border-left: 5px solid var(--green);
  background: #f8fafc;
  padding: 10px;
}

.site-evidence-hero > div.pending,
.site-evidence-hero > div.missing,
.site-evidence-strip .blocked {
  border-left-color: var(--orange);
  background: #fff8ed;
}

.site-evidence-hero strong,
.site-evidence-hero span,
.site-evidence-strip strong,
.site-evidence-strip span,
.site-evidence-file strong,
.site-evidence-file span,
.site-evidence-file b,
.site-evidence-file p,
.site-evidence-check-group strong,
.site-evidence-check-group span,
.site-evidence-no-fake strong,
.site-evidence-no-fake span {
  display: block;
}

.site-evidence-hero strong,
.site-evidence-strip strong,
.site-evidence-check-group strong {
  color: #111827;
  font-size: 13px;
  line-height: 1.2;
}

.site-evidence-hero span,
.site-evidence-strip span,
.site-evidence-check-group span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.site-evidence-strip {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.2fr) minmax(0, 1.4fr);
  gap: 10px;
  margin-top: 10px;
}

.site-evidence-files {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.site-evidence-validation {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.site-evidence-validation-card {
  display: grid;
  gap: 7px;
  min-height: 118px;
  border: 1px solid #dbe5f0;
  border-left: 5px solid var(--orange);
  border-radius: 6px;
  background: #fff8ed;
  padding: 9px;
}

.site-evidence-validation-card.screening {
  border-left-color: var(--blue);
  background: #f0f9ff;
}

.site-evidence-validation-card.missing {
  border-left-color: var(--red);
  background: #fff7f7;
}

.site-evidence-validation-card b,
.site-evidence-validation-card strong,
.site-evidence-validation-card span {
  display: block;
}

.site-evidence-validation-card b {
  width: fit-content;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  padding: 4px 8px;
  font-size: 9px;
  line-height: 1;
  text-transform: uppercase;
}

.site-evidence-validation-card.screening b {
  background: #dbeafe;
  color: #1d4ed8;
}

.site-evidence-validation-card.missing b {
  background: #fee2e2;
  color: #991b1b;
}

.site-evidence-validation-card strong {
  color: #111827;
  font-size: 12px;
  line-height: 1.2;
}

.site-evidence-validation-card span {
  color: #475569;
  font-size: 11px;
  line-height: 1.35;
}

.site-evidence-method {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  border: 1px solid #dbe5f0;
  border-left: 5px solid var(--blue);
  border-radius: 6px;
  background: #f8fafc;
  padding: 10px;
}

.site-evidence-method > div:first-child strong,
.site-evidence-method > div:first-child span,
.site-evidence-step b,
.site-evidence-step strong,
.site-evidence-step span {
  display: block;
}

.site-evidence-method > div:first-child strong {
  color: #111827;
  font-size: 13px;
}

.site-evidence-method > div:first-child span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.site-evidence-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 8px;
}

.site-evidence-step {
  border: 1px solid #dbe5f0;
  border-radius: 6px;
  background: #ffffff;
  padding: 9px;
}

.site-evidence-step b {
  color: var(--blue);
  font-size: 11px;
  line-height: 1;
}

.site-evidence-step strong {
  margin-top: 7px;
  color: #111827;
  font-size: 12px;
  line-height: 1.2;
}

.site-evidence-step span {
  margin-top: 6px;
  color: #475569;
  font-size: 11px;
  line-height: 1.35;
}

.site-evidence-file {
  display: grid;
  grid-template-rows: minmax(50px, auto) auto minmax(54px, 1fr);
  gap: 8px;
  border-left: 5px solid var(--orange);
  background: #fff8ed;
  padding: 10px;
}

.site-evidence-file.screening {
  border-left-color: var(--blue);
  background: #f0f9ff;
}

.site-evidence-file strong {
  color: #111827;
  font-size: 12px;
  line-height: 1.2;
}

.site-evidence-file span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.site-evidence-file b {
  width: fit-content;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
  padding: 4px 8px;
  font-size: 9px;
  line-height: 1;
  text-transform: uppercase;
}

.site-evidence-file.screening b {
  background: #dbeafe;
  color: #1d4ed8;
}

.site-evidence-file p {
  margin: 0;
  color: #334155;
  font-size: 11px;
  line-height: 1.35;
}

.site-evidence-observation-sheet {
  display: grid;
  grid-template-columns: minmax(190px, .45fr) minmax(190px, .5fr) minmax(210px, .55fr);
  gap: 10px;
  margin-top: 12px;
  border: 1px solid #dbe5f0;
  border-left: 5px solid var(--green);
  border-radius: 6px;
  background: #f8fafc;
  padding: 10px;
}

.site-evidence-observation-sheet strong,
.site-evidence-observation-sheet span,
.site-evidence-observation-meta b {
  display: block;
}

.site-evidence-observation-sheet strong {
  color: #111827;
  font-size: 13px;
  line-height: 1.2;
}

.site-evidence-observation-sheet span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.site-evidence-observation-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.site-evidence-observation-actions a,
.site-evidence-observation-actions button {
  min-height: 32px;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  background: #dcfce7;
  color: #166534;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.site-evidence-observation-actions a:hover,
.site-evidence-observation-actions button:hover {
  background: #bbf7d0;
}

.site-evidence-observation-actions button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.site-evidence-observation-actions span {
  flex: 1 1 110px;
  margin: 0;
  color: #166534;
  font-size: 11px;
  font-weight: 800;
}

.site-evidence-observation-meta {
  border-left: 1px solid #dbe5f0;
  padding-left: 10px;
}

.site-evidence-observation-meta b {
  color: #111827;
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-evidence-observation-columns {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 2px;
}

.site-evidence-observation-columns code {
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  padding: 4px 7px;
  font-size: 10px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.site-evidence-row-builder {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  border: 1px solid #dbe5f0;
  border-left: 5px solid var(--blue);
  border-radius: 6px;
  background: #f8fafc;
  padding: 10px;
}

.site-evidence-row-builder-head {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.site-evidence-row-builder-head strong,
.site-evidence-row-builder-head span {
  display: block;
}

.site-evidence-row-builder-head strong {
  color: #111827;
  font-size: 13px;
  line-height: 1.2;
}

.site-evidence-row-builder-head span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.site-evidence-row-builder-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.site-evidence-row-builder-actions button {
  min-height: 32px;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  background: #e0f2fe;
  color: #075985;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.site-evidence-row-builder-actions button:hover {
  background: #bae6fd;
}

.site-evidence-row-builder-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 8px;
}

.site-evidence-builder-field {
  display: grid;
  gap: 5px;
}

.site-evidence-builder-field span {
  color: #334155;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-evidence-builder-field input,
.site-evidence-builder-field select,
.site-evidence-builder-field textarea {
  width: 100%;
  min-height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #ffffff;
  color: #172033;
  padding: 7px 8px;
  font: inherit;
  font-size: 11px;
}

.site-evidence-builder-field textarea {
  min-height: 62px;
  resize: vertical;
}

.site-evidence-builder-field.wide {
  grid-column: span 2;
}

.site-evidence-row-output {
  display: grid;
  gap: 7px;
  border: 1px solid #dbeafe;
  border-radius: 6px;
  background: #eff6ff;
  padding: 9px;
}

.site-evidence-row-output span {
  color: #075985;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.site-evidence-row-output code {
  min-height: 28px;
  border-radius: 4px;
  background: #ffffff;
  color: #172033;
  padding: 7px;
  font-size: 10px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.site-evidence-map-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  border: 1px solid #dbe5f0;
  border-left: 5px solid var(--blue);
  border-radius: 6px;
  background: #f8fafc;
  padding: 10px;
}

.site-evidence-map-actions button {
  min-height: 34px;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  background: #e0f2fe;
  color: #075985;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.site-evidence-map-actions button:hover {
  background: #bae6fd;
}

.site-evidence-map-actions span {
  flex: 1 1 260px;
  color: #475569;
  font-size: 11px;
  line-height: 1.35;
}

.site-evidence-checklist {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.site-evidence-check-group {
  border-left: 5px solid var(--green);
  padding: 10px;
}

.site-evidence-check-group ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.site-evidence-check-group li {
  border-radius: 4px;
  background: #ecfdf5;
  color: #14532d;
  padding: 6px 7px;
  font-size: 11px;
  line-height: 1.2;
}

.site-evidence-no-fake {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  margin-top: 12px;
  border-color: #f3caa4;
  border-left: 5px solid var(--orange);
  background: #fff8ed;
  padding: 10px;
}

.site-evidence-no-fake strong {
  color: #111827;
  font-size: 12px;
  text-transform: uppercase;
}

.site-evidence-no-fake span {
  color: #7c2d12;
  font-size: 12px;
  line-height: 1.35;
}

.engine-lab-panel {
  border-left: 5px solid var(--green);
}

.engine-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(220px, .35fr);
  gap: 10px;
  margin-top: 10px;
}

.engine-hero > div,
.engine-claim-strip > div {
  border: 1px solid #dbe5f0;
  border-left: 5px solid var(--green);
  border-radius: 6px;
  background: #f8fafc;
  padding: 10px;
}

.engine-hero strong,
.engine-hero span,
.engine-claim-strip strong,
.engine-claim-strip span,
.engine-file-queue h3,
.engine-file-queue > div > span {
  display: block;
}

.engine-hero strong,
.engine-claim-strip strong {
  color: #111827;
  font-size: 13px;
  line-height: 1.2;
}

.engine-hero span,
.engine-claim-strip span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.engine-meter i,
.engine-gate i {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbe5f0;
}

.engine-meter i {
  margin-top: 12px;
}

.engine-meter em,
.engine-gate em {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.engine-claim-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.engine-claim-strip .blocked {
  border-left-color: var(--orange);
  background: #fff8ed;
}

.engine-stage-grid,
.engine-gate-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.engine-stage-grid {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.engine-gate-grid {
  grid-template-columns: repeat(3, minmax(190px, 1fr));
}

.engine-stage,
.engine-gate {
  border: 1px solid #dbe5f0;
  border-left: 5px solid #94a3b8;
  border-radius: 6px;
  background: #ffffff;
  padding: 10px;
}

.engine-stage.ready,
.engine-gate.open {
  border-left-color: var(--green);
}

.engine-stage.partial,
.engine-stage.screening,
.engine-gate.blocked {
  border-left-color: var(--orange);
}

.engine-stage > div,
.engine-gate > div {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
}

.engine-stage span,
.engine-stage b,
.engine-stage strong,
.engine-stage p,
.engine-stage em,
.engine-gate strong,
.engine-gate b,
.engine-gate span,
.engine-gate p {
  display: block;
}

.engine-stage span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.engine-stage b,
.engine-gate b,
.engine-file-row b {
  width: fit-content;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  padding: 3px 7px;
  font-size: 9px;
  line-height: 1;
  text-transform: uppercase;
}

.engine-stage.partial b,
.engine-stage.screening b,
.engine-stage.pending b,
.engine-stage.missing b,
.engine-gate.blocked b,
.engine-file-row.partial b,
.engine-file-row.screening b,
.engine-file-row.pending b,
.engine-file-row.missing b {
  background: #ffedd5;
  color: #9a3412;
}

.engine-stage strong,
.engine-gate strong {
  margin-top: 8px;
  color: #111827;
  font-size: 13px;
  line-height: 1.2;
}

.engine-stage p,
.engine-stage em,
.engine-gate span,
.engine-gate p {
  margin: 7px 0 0;
  color: #475569;
  font-size: 11px;
  line-height: 1.35;
}

.engine-stage em {
  color: #0f766e;
  font-style: normal;
  font-weight: 800;
}

.engine-gate i {
  margin-top: 10px;
}

.engine-gate.blocked em {
  background: var(--orange);
}

.engine-audit-panel {
  margin-top: 12px;
  border: 1px solid #cbd5e1;
  border-left: 5px solid var(--charcoal);
  border-radius: 6px;
  background: #ffffff;
  padding: 12px;
}

.engine-audit-panel.missing {
  border-left-color: var(--orange);
  background: #fff8ed;
}

.engine-audit-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.engine-audit-head h3,
.engine-audit-head strong,
.engine-audit-head span,
.engine-audit-summary strong,
.engine-audit-summary span,
.engine-audit-gate strong,
.engine-audit-gate span,
.engine-audit-row strong,
.engine-audit-row span,
.engine-audit-row em {
  display: block;
}

.engine-audit-head h3 {
  margin: 0;
  color: #111827;
  font-size: 15px;
  line-height: 1.2;
}

.engine-audit-head span,
.engine-audit-priority > div > span,
.engine-audit-panel > p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.engine-audit-head b,
.engine-audit-gate b,
.engine-audit-row b {
  width: fit-content;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  padding: 4px 8px;
  font-size: 9px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.engine-audit-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, .7fr)) minmax(190px, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.engine-audit-summary > div {
  border: 1px solid #dbe5f0;
  border-radius: 6px;
  background: #f8fafc;
  padding: 9px;
}

.engine-audit-summary .ready {
  border-left: 5px solid var(--green);
}

.engine-audit-summary .limited {
  border-left: 5px solid #f59e0b;
}

.engine-audit-summary .blocked {
  border-left: 5px solid var(--orange);
}

.engine-audit-summary strong {
  color: #111827;
  font-size: 18px;
  line-height: 1;
}

.engine-audit-summary span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
  text-transform: uppercase;
}

.engine-audit-summary i {
  display: block;
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbe5f0;
}

.engine-audit-summary em {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.engine-audit-gates {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.engine-audit-gate {
  border: 1px solid #dbe5f0;
  border-left: 5px solid var(--orange);
  border-radius: 6px;
  background: #fff8ed;
  padding: 9px;
}

.engine-audit-gate.open {
  border-left-color: var(--green);
  background: #f0fdf4;
}

.engine-audit-gate > div {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
}

.engine-audit-gate strong,
.engine-audit-priority > div > strong,
.engine-audit-row strong {
  color: #111827;
  font-size: 12px;
  line-height: 1.2;
}

.engine-audit-gate.open b,
.engine-audit-row.ready b {
  background: #dcfce7;
  color: #166534;
}

.engine-audit-gate.blocked b,
.engine-audit-row.partial b,
.engine-audit-row.screening b,
.engine-audit-row.pending b,
.engine-audit-row.missing b {
  background: #ffedd5;
  color: #9a3412;
}

.engine-audit-gate span,
.engine-audit-row span,
.engine-audit-row em {
  margin-top: 6px;
  color: #475569;
  font-size: 11px;
  line-height: 1.35;
}

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

.engine-audit-priority > div:first-child {
  grid-row: span 3;
  border: 1px solid #dbe5f0;
  border-left: 5px solid var(--charcoal);
  border-radius: 6px;
  background: #f8fafc;
  padding: 9px;
}

.engine-audit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: start;
  border: 1px solid #dbe5f0;
  border-left: 5px solid #94a3b8;
  border-radius: 6px;
  background: #ffffff;
  padding: 9px;
}

.engine-audit-row.ready {
  border-left-color: var(--green);
}

.engine-audit-row.partial,
.engine-audit-row.screening,
.engine-audit-row.pending,
.engine-audit-row.missing {
  border-left-color: var(--orange);
}

.engine-preflight-panel {
  margin-top: 12px;
  border: 1px solid #cbd5e1;
  border-left: 5px solid #0f766e;
  border-radius: 6px;
  background: #ffffff;
  padding: 12px;
}

.engine-preflight-panel.context_only,
.engine-preflight-panel.missing {
  border-left-color: var(--orange);
  background: #fff8ed;
}

.engine-preflight-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.engine-preflight-head h3,
.engine-preflight-head span,
.engine-preflight-headline strong,
.engine-preflight-headline span,
.engine-preflight-metric strong,
.engine-preflight-metric span,
.engine-preflight-metric em,
.engine-preflight-strip strong,
.engine-preflight-strip span,
.engine-preflight-row strong,
.engine-preflight-row span,
.engine-preflight-row p {
  display: block;
}

.engine-preflight-head h3 {
  margin: 0;
  color: #111827;
  font-size: 15px;
  line-height: 1.2;
}

.engine-preflight-head span,
.engine-preflight-headline span,
.engine-preflight-panel > p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.engine-preflight-head b,
.engine-preflight-row b {
  width: fit-content;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  padding: 4px 8px;
  font-size: 9px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.engine-preflight-headline {
  margin-top: 10px;
  border: 1px solid #dbe5f0;
  border-left: 5px solid #0f766e;
  border-radius: 6px;
  background: #f8fafc;
  padding: 9px;
}

.engine-preflight-headline strong {
  color: #111827;
  font-size: 13px;
  line-height: 1.2;
}

.engine-preflight-metrics,
.engine-preflight-strip {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.engine-preflight-metrics {
  grid-template-columns: repeat(4, minmax(130px, 1fr));
}

.engine-preflight-strip {
  grid-template-columns: repeat(3, minmax(120px, 1fr));
}

.engine-preflight-metric,
.engine-preflight-strip > div {
  border: 1px solid #dbe5f0;
  border-left: 5px solid #94a3b8;
  border-radius: 6px;
  background: #ffffff;
  padding: 9px;
}

.engine-preflight-metric.ready,
.engine-preflight-strip .ready {
  border-left-color: var(--green);
}

.engine-preflight-metric.partial,
.engine-preflight-metric.screening,
.engine-preflight-strip .limited {
  border-left-color: #f59e0b;
}

.engine-preflight-strip .blocked {
  border-left-color: var(--orange);
}

.engine-preflight-metric strong,
.engine-preflight-strip strong {
  color: #111827;
  font-size: 18px;
  line-height: 1;
}

.engine-preflight-metric span,
.engine-preflight-strip span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
  text-transform: uppercase;
}

.engine-preflight-metric em {
  margin-top: 5px;
  color: #475569;
  font-size: 11px;
  font-style: normal;
  line-height: 1.3;
}

.engine-preflight-rows {
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.engine-preflight-row {
  border: 1px solid #dbe5f0;
  border-left: 5px solid #94a3b8;
  border-radius: 6px;
  background: #ffffff;
  padding: 9px;
}

.engine-preflight-row.ready {
  border-left-color: var(--green);
}

.engine-preflight-row.partial,
.engine-preflight-row.screening {
  border-left-color: #f59e0b;
}

.engine-preflight-row.blocked,
.engine-preflight-row.pending,
.engine-preflight-row.missing {
  border-left-color: var(--orange);
  background: #fff8ed;
}

.engine-preflight-row.blocked b,
.engine-preflight-row.pending b,
.engine-preflight-row.missing b {
  background: #ffedd5;
  color: #9a3412;
}

.engine-preflight-row.ready b {
  background: #dcfce7;
  color: #166534;
}

.engine-preflight-row strong {
  color: #111827;
  font-size: 12px;
  line-height: 1.2;
}

.engine-preflight-row span,
.engine-preflight-row p {
  margin: 6px 0 0;
  color: #475569;
  font-size: 11px;
  line-height: 1.35;
}

.engine-preflight-row p {
  color: #0f766e;
  font-weight: 800;
}

.engine-file-queue {
  display: grid;
  grid-template-columns: minmax(190px, .6fr) repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.engine-file-queue > div:first-child {
  grid-row: span 3;
  border: 1px solid #dbe5f0;
  border-left: 5px solid var(--charcoal);
  border-radius: 6px;
  background: #f8fafc;
  padding: 10px;
}

.engine-file-queue h3 {
  margin: 0;
  color: #111827;
  font-size: 15px;
  line-height: 1.2;
}

.engine-file-queue > div > span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.engine-file-row {
  display: grid;
  grid-template-columns: minmax(120px, .8fr) minmax(0, 1.2fr) auto;
  gap: 8px;
  align-items: start;
  border: 1px solid #dbe5f0;
  border-left: 5px solid #94a3b8;
  border-radius: 6px;
  background: #ffffff;
  padding: 9px;
}

.engine-file-row.ready {
  border-left-color: var(--green);
}

.engine-file-row.partial,
.engine-file-row.screening,
.engine-file-row.pending,
.engine-file-row.missing {
  border-left-color: var(--orange);
}

.engine-file-row strong,
.engine-file-row span {
  display: block;
}

.engine-file-row strong {
  color: #111827;
  font-size: 12px;
  line-height: 1.2;
}

.engine-file-row span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.engine-no-fake {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  margin-top: 12px;
  border: 1px solid #f3caa4;
  border-left: 5px solid var(--orange);
  border-radius: 6px;
  background: #fff8ed;
  padding: 10px;
}

.engine-no-fake strong {
  color: #111827;
  font-size: 12px;
  text-transform: uppercase;
}

.engine-no-fake span {
  color: #7c2d12;
  font-size: 12px;
  line-height: 1.35;
}

.comparison-panel {
  min-height: 0;
  margin-bottom: 14px;
}

.comparison-summary {
  display: grid;
  gap: 10px;
}

.comparison-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) repeat(4, minmax(120px, 1fr)) 76px;
  gap: 10px;
  align-items: center;
  border: 1px solid #dbe5f0;
  border-left: 6px solid var(--blue);
  border-radius: 6px;
  background: #ffffff;
  padding: 10px;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

.comparison-row.active {
  border-color: #111827;
  background: #f0fdf4;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08);
}

.comparison-row:hover {
  border-color: #facc15;
  background: #fff8d8;
  box-shadow: 0 7px 20px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

.comparison-row.active:hover {
  border-color: #16a34a;
  background: #dcfce7;
}

.comparison-row:focus-visible {
  outline: 3px solid rgba(14, 165, 233, 0.35);
  outline-offset: 2px;
}

.comparison-name strong,
.comparison-name span,
.compare-cell strong,
.compare-cell span {
  display: block;
}

.comparison-name strong {
  font-size: 13px;
}

.comparison-name-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.comparison-name span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.compare-cell strong {
  font-size: 13px;
  line-height: 1.1;
}

.compare-cell span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.compare-track {
  height: 8px;
  margin-top: 7px;
  border-radius: 999px;
  background: #e7edf5;
  overflow: hidden;
}

.compare-fill {
  height: 100%;
  width: var(--fill);
  min-width: 4px;
  border-radius: inherit;
  background: var(--bar-color);
}

.comparison-activate {
  justify-self: end;
  align-self: start;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  color: #172033;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.comparison-row:hover .comparison-activate {
  border-color: #ca8a04;
  background: #fffbeb;
}

.comparison-row.active .comparison-activate {
  border-color: #86efac;
  background: #dcfce7;
  color: #166534;
}

.comparison-interpretation {
  margin-top: 10px;
  border: 1px solid #dbe5f0;
  border-left: 5px solid var(--green);
  border-radius: 6px;
  background: #f8fafc;
  padding: 10px 12px;
  color: #334155;
  font-size: 12px;
  line-height: 1.45;
}

.model-gap-card {
  margin-top: 10px;
  border: 1px solid #fed7aa;
  border-left: 5px solid var(--orange);
  border-radius: 6px;
  background: #fff8ed;
  padding: 10px 12px;
}

.model-gap-card strong,
.model-gap-card span {
  display: block;
}

.model-gap-card strong {
  font-size: 13px;
}

.model-gap-card span {
  margin-top: 5px;
  color: #7c2d12;
  font-size: 12px;
  line-height: 1.45;
}

.runoff-pathway {
  margin-top: 12px;
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
}

.pathway-summary {
  border: 1px solid #dbe5f0;
  border-left: 5px solid var(--green);
  border-radius: 6px;
  background: #f8fafc;
  padding: 10px;
}

.pathway-summary strong,
.pathway-summary span {
  display: block;
}

.pathway-summary strong {
  font-size: 14px;
}

.pathway-summary span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.pathway-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.pathway-steps div {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  background: #ffffff;
  padding: 7px;
}

.pathway-steps b {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--charcoal);
  color: #ffffff;
  font-size: 11px;
}

.pathway-steps span {
  min-width: 0;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
}

.pathway-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.pathway-card {
  border: 1px solid #dbe5f0;
  border-left: 5px solid #94a3b8;
  border-radius: 6px;
  background: #ffffff;
  padding: 10px;
}

.pathway-card.active {
  border-left-color: var(--red);
}

.pathway-card.watch {
  border-left-color: var(--orange);
}

.pathway-card.later {
  border-left-color: var(--purple);
}

.pathway-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.pathway-card-head strong {
  font-size: 12px;
  line-height: 1.25;
}

.pathway-card-head span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  padding: 3px 6px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.pathway-card.active .pathway-card-head span {
  background: #fee2e2;
  color: #991b1b;
}

.pathway-card.watch .pathway-card-head span {
  background: #ffedd5;
  color: #9a3412;
}

.pathway-card p {
  margin: 7px 0 9px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.pathway-bar {
  display: grid;
  grid-template-columns: 86px 76px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.pathway-bar span,
.pathway-bar b {
  font-size: 10px;
}

.pathway-bar span {
  color: var(--muted);
  text-transform: uppercase;
}

.pathway-bar b {
  color: #172033;
  text-align: right;
}

.pathway-bar i {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.pathway-bar em {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: var(--bar-color);
}

.metric {
  min-height: 78px;
  padding: 12px;
  color: white;
  border-radius: 6px;
  overflow: hidden;
}

.metric strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.metric span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  text-transform: uppercase;
  opacity: 0.92;
}

.map-stage {
  padding: 14px;
}

.map-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  gap: 12px;
  align-items: start;
}

.map-canvas-panel {
  min-width: 0;
}

.map-layer-panel {
  max-height: min(66vh, 760px);
  overflow: auto;
  border: 1px solid #dbe5f0;
  border-radius: 6px;
  background: #f8fafc;
  padding: 12px;
}

.map-layer-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.map-layer-head span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.map-layer-panel .layer-list {
  gap: 6px;
}

.map-layer-panel .layer-list label {
  min-height: 32px;
  padding: 7px 8px;
  font-size: 11px;
}

.map-stage.terrain-truth-mode {
  border-color: #9a6b20;
  background:
    linear-gradient(135deg, rgba(250, 204, 21, 0.1), rgba(14, 165, 233, 0.05)),
    #ffffff;
}

.map-head,
.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.map-head p,
.panel-title span {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.map-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: flex-start;
}

.map-focus-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.map-focus-controls button {
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  color: #172033;
  padding: 7px 9px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.map-focus-controls button:hover {
  border-color: #facc15;
  background: #fff8d8;
}

.map-focus-controls button.active {
  border-color: #0f766e;
  background: #dcfce7;
  color: #134e4a;
}

.claim-level-pill {
  min-height: 32px;
  border: 1px solid #cbd5e1;
  border-left: 5px solid var(--charcoal);
  border-radius: 5px;
  background: #ffffff;
  color: #172033;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.claim-level-pill.context {
  border-left-color: var(--charcoal);
}

.claim-level-pill.screening {
  border-left-color: var(--blue);
  background: #eff6ff;
  color: #075985;
}

.claim-level-pill.routed {
  border-left-color: var(--green);
  background: #ecfdf5;
  color: #14532d;
}

.claim-level-pill.quantified,
.claim-level-pill.verified {
  border-left-color: var(--purple);
  background: #f5f3ff;
  color: #4c1d95;
}

.claim-level-pill:hover,
.claim-level-pill:focus-visible {
  border-color: var(--green);
  outline: none;
}

.map-stage.terrain-truth-mode .map-focus-controls button.active {
  border-color: #9a6b20;
  background: #fef3c7;
  color: #78350f;
}

.map-pulse-row {
  display: grid;
  grid-template-columns: minmax(164px, auto) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  margin-bottom: 10px;
}

.map-pulse-btn {
  min-height: 42px;
  border: 0;
  border-radius: 5px;
  background: var(--charcoal);
  color: #ffffff;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.map-pulse-btn:hover {
  background: #111827;
}

.map-pulse-btn.is-running {
  background: var(--red);
}

.map-pulse-row .animation-readout {
  min-height: 42px;
  display: flex;
  align-items: center;
}

.map-readout-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.map-readout-strip div {
  border: 1px solid #dbe5f0;
  border-left: 4px solid var(--green);
  border-radius: 5px;
  background: #f8fbff;
  padding: 9px 10px;
}

.map-readout-strip div:last-child {
  border-left-color: var(--orange);
  background: #fffaf0;
}

.map-readout-strip strong,
.map-readout-strip span {
  display: block;
}

.map-readout-strip strong {
  color: #111827;
  font-size: 12px;
}

.map-readout-strip span {
  margin-top: 3px;
  color: #475569;
  font-size: 12px;
  line-height: 1.35;
}

.confidence-pill {
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--charcoal);
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.visual-qa-pill {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #14532d;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.visual-qa-pill.fixed {
  border-color: #bae6fd;
  background: #eff6ff;
  color: #075985;
}

.visual-qa-pill.partial,
.visual-qa-pill.pending {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

#hydro-map {
  width: 100%;
  height: min(66vh, 760px);
  min-height: 520px;
  display: block;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #d9efe3;
  overflow: hidden;
}

.leaflet-container {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.leaflet-popup-content {
  margin: 10px 12px;
  min-width: 210px;
}

.terrain-tooltip {
  border: 1px solid #92400e;
  border-radius: 4px;
  background: rgba(255, 251, 235, 0.96);
  color: #78350f;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}

.popup-title {
  font-weight: 800;
  margin-bottom: 4px;
}

.popup-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.gauge-marker,
.receptor-marker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  border: 2px solid #fff;
  box-shadow: 0 2px 9px rgba(15, 23, 42, 0.35);
}

.gauge-marker.rain {
  background: var(--blue);
}

.gauge-marker.river {
  background: var(--green);
}

.receptor-marker {
  background: var(--charcoal);
}

.receptor-marker.hot {
  background: var(--red);
}

.terrain-point {
  width: 42px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 5px;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.32);
  line-height: 1;
}

.terrain-point.high {
  background: #7f1d1d;
}

.terrain-point.low {
  background: #075985;
}

.terrain-point strong,
.terrain-point span {
  display: block;
}

.terrain-point strong {
  font-size: 13px;
}

.terrain-point span {
  margin-top: -3px;
  font-size: 9px;
  font-weight: 800;
}

.collection-hotspot {
  width: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 50% 50% 50% 8px;
  background: #0891b2;
  color: #ffffff;
  line-height: 1;
  transform: rotate(-45deg);
  box-shadow: 0 6px 18px rgba(8, 47, 73, 0.32);
}

.collection-hotspot.primary {
  background: #0369a1;
  box-shadow: 0 8px 22px rgba(8, 47, 73, 0.42);
}

.collection-hotspot strong,
.collection-hotspot span {
  display: block;
  transform: rotate(45deg);
}

.collection-hotspot strong {
  font-size: 11px;
  font-weight: 900;
}

.collection-hotspot span {
  margin-top: -4px;
  font-size: 8px;
  font-weight: 800;
}

.pulse-marker {
  width: var(--pulse-size);
  height: var(--pulse-size);
  position: relative;
  border-radius: 50%;
  background: color-mix(in srgb, var(--pulse-color) 78%, white 22%);
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.34), 0 8px 22px rgba(15, 23, 42, 0.35);
}

.pulse-marker::before,
.pulse-marker::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 3px solid var(--pulse-color);
  opacity: 0.72;
  animation: pulse-ring 1.15s ease-out infinite;
}

.pulse-marker::after {
  animation-delay: 0.38s;
}

.pulse-marker span {
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  background: #ffffff;
}

.flow-impact-marker {
  width: 86px;
  min-height: 42px;
  border: 2px solid #ffffff;
  border-radius: 5px;
  background: var(--impact-color);
  color: #ffffff;
  padding: 5px 7px;
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.32);
  animation: impact-pop 1.2s ease-out infinite;
}

.flow-impact-marker strong,
.flow-impact-marker span {
  display: block;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.35);
}

.flow-impact-marker strong {
  font-size: 12px;
}

.flow-impact-marker span {
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.15;
}

.flow-label {
  width: 186px;
  min-height: 34px;
  display: grid;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 5px;
  background: #ffffff;
  color: #172033;
  padding: 6px 9px;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 800;
  white-space: normal;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

@keyframes pulse-ring {
  from {
    transform: scale(0.55);
    opacity: 0.78;
  }

  to {
    transform: scale(1.7);
    opacity: 0;
  }
}

@keyframes impact-pop {
  0% {
    transform: scale(0.96);
  }

  55% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(0.96);
  }
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 9px;
  font-size: 12px;
  color: var(--muted);
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend .legend-note {
  flex-basis: 100%;
  align-items: flex-start;
  border: 1px solid #dbe5f0;
  border-left: 4px solid var(--orange);
  border-radius: 5px;
  background: #fff8ed;
  color: #334155;
  padding: 7px 8px;
  line-height: 1.35;
}

.legend i {
  width: 18px;
  height: 10px;
  display: inline-block;
  border-radius: 2px;
}

.exposure-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.terrain-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.terrain-item {
  border: 1px solid #dbe5f0;
  border-left: 5px solid #111827;
  border-radius: 5px;
  background: #fff;
  padding: 9px;
}

.terrain-item.compact {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  border-left-color: var(--blue);
}

.terrain-item.hotspot,
.terrain-item.hotspot-note {
  border-left-color: #0891b2;
  background: #f0f9ff;
}

.terrain-item.hotspot {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.terrain-item strong {
  display: block;
  font-size: 12px;
}

.terrain-item span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.terrain-item.compact span {
  margin-top: 0;
}

.exposure-item {
  border: 1px solid #dbe5f0;
  border-left: 5px solid var(--green);
  border-radius: 5px;
  background: #fff;
  padding: 9px;
}

.exposure-item.hot {
  border-left-color: var(--red);
  background: #fff7f7;
}

.exposure-item.warn {
  border-left-color: var(--orange);
  background: #fff8ed;
}

.exposure-item strong {
  display: block;
  font-size: 12px;
}

.exposure-item span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
  gap: 14px;
  margin-top: 14px;
}

.analysis-panel {
  padding: 14px;
  min-height: 340px;
}

.chart-panel {
  min-width: 0;
}

#timeseries-chart {
  width: 100%;
  height: auto;
  display: block;
  border-top: 1px solid #eef2f7;
}

.evidence-chain {
  margin: 10px 0 0;
  padding-left: 22px;
}

.evidence-chain li {
  margin: 0 0 14px;
  padding-left: 4px;
}

.evidence-chain strong {
  display: block;
  font-size: 13px;
}

.evidence-chain span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.evidence-chain-detail {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  border-top: 1px solid #e2e8f0;
  padding-top: 12px;
}

.evidence-placeholder {
  border: 1px solid #dbe5f0;
  border-left: 5px solid #94a3b8;
  border-radius: 6px;
  background: #f8fafc;
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.evidence-chain-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #dbe5f0;
  border-left: 5px solid var(--green);
  border-radius: 6px;
  background: #f8fafc;
  padding: 10px;
}

.evidence-chain-heading strong,
.evidence-chain-heading span {
  display: block;
}

.evidence-chain-heading strong {
  font-size: 14px;
}

.evidence-chain-heading span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.evidence-chain-heading button {
  min-height: 34px;
  border: 1px solid #b7d5cf;
  border-radius: 5px;
  background: #eef9f7;
  color: var(--green);
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.evidence-chain-heading button:hover {
  border-color: var(--green);
  background: #dff4ef;
}

.evidence-step-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.evidence-step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border: 1px solid #dbe5f0;
  border-left: 5px solid #94a3b8;
  border-radius: 6px;
  background: #ffffff;
  padding: 9px;
}

.evidence-step.ready {
  border-left-color: var(--green);
}

.evidence-step.active {
  border-left-color: var(--red);
}

.evidence-step.watch {
  border-left-color: var(--orange);
}

.evidence-step.later {
  border-left-color: var(--purple);
}

.evidence-step.monitor,
.evidence-step.hold {
  border-left-color: var(--blue);
}

.evidence-step.pending,
.evidence-step.blocked {
  border-left-color: #475569;
  background: #f8fafc;
}

.evidence-step > b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--charcoal);
  color: #ffffff;
  font-size: 11px;
}

.evidence-step span,
.evidence-step strong,
.evidence-step p {
  display: block;
}

.evidence-step span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.evidence-step strong {
  margin-top: 2px;
  color: #111827;
  font-size: 12px;
  line-height: 1.25;
}

.evidence-step p {
  margin: 5px 0 0;
  color: #475569;
  font-size: 11px;
  line-height: 1.35;
}

.evidence-measures {
  border: 1px solid #dbe5f0;
  border-radius: 6px;
  background: #ffffff;
  padding: 10px;
}

.evidence-measures .pathway-bar {
  grid-template-columns: 132px 82px minmax(0, 1fr);
}

.evidence-chain-use {
  border: 1px solid #fed7aa;
  border-left: 5px solid var(--orange);
  border-radius: 6px;
  background: #fff8ed;
  padding: 10px;
}

.evidence-chain-use strong,
.evidence-chain-use span {
  display: block;
}

.evidence-chain-use strong {
  font-size: 13px;
}

.evidence-chain-use span {
  margin-top: 4px;
  color: #7c2d12;
  font-size: 12px;
  line-height: 1.4;
}

.brief-panel {
  border-left: 5px solid var(--green);
}

.copy-brief-btn {
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  color: #172033;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.copy-brief-btn:hover {
  background: #f8fafc;
}

.current-brief {
  display: grid;
  gap: 9px;
}

.brief-status {
  width: fit-content;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.brief-status.hot {
  background: #fee2e2;
  color: #991b1b;
}

.current-brief strong {
  font-size: 16px;
  line-height: 1.2;
}

.current-brief p {
  margin: 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.4;
}

.current-brief dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.current-brief dl div {
  border-top: 1px solid #e2e8f0;
  padding-top: 8px;
}

.current-brief dt {
  color: #111827;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.current-brief dd {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
}

.brief-copy-status {
  min-height: 16px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.brief-copy-status span {
  display: block;
  margin-bottom: 6px;
}

.brief-copy-status textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 8px;
  color: #172033;
  font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.report-panel {
  border-left: 5px solid var(--charcoal);
}

.report-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.report-snapshot {
  display: grid;
  gap: 9px;
}

.report-kicker {
  width: fit-content;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.report-snapshot strong {
  font-size: 16px;
  line-height: 1.25;
}

.report-snapshot dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.report-snapshot dl div {
  border-top: 1px solid #e2e8f0;
  padding-top: 8px;
}

.report-snapshot dt {
  color: #111827;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.report-snapshot dd {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
}

.visual-briefing-panel {
  border-left: 5px solid var(--green);
}

.visual-briefing-intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.visual-briefing-intro div {
  border: 1px solid #cfe0ed;
  border-left: 5px solid var(--blue);
  border-radius: 6px;
  background: #f8fbff;
  padding: 12px;
}

.visual-briefing-intro div:last-child {
  border-left-color: var(--green);
}

.visual-briefing-intro strong,
.visual-briefing-intro span {
  display: block;
}

.visual-briefing-intro strong {
  font-size: 13px;
}

.visual-briefing-intro span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.visual-mode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.visual-mode-card {
  display: grid;
  grid-template-rows: 118px minmax(0, 1fr);
  min-height: 390px;
  border: 1px solid #cfe0ed;
  border-top: 5px solid var(--blue);
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
}

.visual-mode-card.partial {
  border-top-color: var(--orange);
}

.visual-mode-card.planned {
  border-top-color: var(--purple);
}

.visual-mode-card.blocked {
  border-top-color: var(--red);
}

.visual-mode-preview {
  position: relative;
  min-height: 118px;
  background: #e6eef6;
  overflow: hidden;
}

.visual-mode-preview img {
  width: 100%;
  height: 118px;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
}

.visual-mode-preview.missing {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.28), rgba(15, 118, 110, 0.18)),
    repeating-linear-gradient(45deg, rgba(23, 32, 51, 0.08) 0, rgba(23, 32, 51, 0.08) 1px, transparent 1px, transparent 12px);
}

.visual-mode-preview span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  border-radius: 4px;
  background: rgba(23, 32, 51, 0.82);
  color: #ffffff;
  padding: 4px 6px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.visual-mode-preview.missing span {
  position: static;
  background: rgba(255, 255, 255, 0.86);
  color: #172033;
}

.visual-mode-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px;
}

.visual-mode-body > div:first-child {
  display: grid;
  gap: 8px;
}

.visual-mode-badge {
  width: fit-content;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.visual-mode-card.partial .visual-mode-badge {
  background: #ffedd5;
  color: #9a3412;
}

.visual-mode-card.planned .visual-mode-badge {
  background: #ede9fe;
  color: #5b21b6;
}

.visual-mode-card.blocked .visual-mode-badge {
  background: #fee2e2;
  color: #991b1b;
}

.visual-mode-body strong {
  font-size: 16px;
  line-height: 1.2;
}

.visual-mode-body p {
  margin: 0;
  color: #334155;
  font-size: 12px;
  line-height: 1.42;
}

.visual-mode-body dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.visual-mode-body dl div {
  border-top: 1px solid #e5edf5;
  padding-top: 7px;
}

.visual-mode-body dt {
  color: #111827;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.visual-mode-body dd {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.visual-mode-body button {
  margin-top: auto;
  min-height: 36px;
  border: 1px solid #b7d5cf;
  border-radius: 5px;
  background: #eef9f7;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.visual-mode-body button:hover,
.visual-mode-body button:focus-visible {
  border-color: var(--green);
  background: #dff4ef;
  outline: none;
}

.visual-mode-body button:disabled {
  border-color: #d8e1ee;
  background: #f3f6fa;
  color: #8090a4;
  cursor: not-allowed;
}

.visual-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 10px;
}

.visual-section-title h3 {
  margin: 0;
  font-size: 15px;
}

.visual-section-title span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

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

.visual-card {
  min-height: 260px;
  border: 1px solid #cfe0ed;
  border-left: 5px solid var(--blue);
  border-radius: 6px;
  background: #ffffff;
  padding: 14px;
}

.visual-card.construction {
  border-left-color: var(--orange);
}

.visual-card.evidence {
  border-left-color: var(--green);
}

.visual-card.terrain {
  border-left-color: var(--charcoal);
}

.visual-kicker {
  width: fit-content;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.visual-card.construction .visual-kicker {
  background: #ffedd5;
  color: #9a3412;
}

.visual-card.evidence .visual-kicker {
  background: #dcfce7;
  color: #166534;
}

.visual-card.terrain .visual-kicker {
  background: #e2e8f0;
  color: #1e293b;
}

.visual-card > strong {
  display: block;
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.2;
}

.visual-card p {
  margin: 8px 0 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
}

.visual-card dl {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.visual-card dl div {
  border-top: 1px solid #e2e8f0;
  padding-top: 8px;
}

.visual-card dt {
  color: #111827;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.visual-card dd {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
}

.visual-receptor-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.visual-receptor-list li {
  border: 1px solid #d8e1ee;
  border-left: 5px solid #64748b;
  border-radius: 5px;
  padding: 9px;
}

.visual-receptor-list li.active {
  border-left-color: var(--red);
  background: #fff7f7;
}

.visual-receptor-list li.watch {
  border-left-color: var(--orange);
  background: #fff8ed;
}

.visual-receptor-list li.later {
  border-left-color: var(--purple);
}

.visual-receptor-list strong,
.visual-receptor-list span {
  display: block;
}

.visual-receptor-list strong {
  font-size: 12px;
}

.visual-receptor-list span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.visual-evidence-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.visual-evidence-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto minmax(180px, 1.4fr);
  gap: 10px;
  align-items: center;
  border: 1px solid #d8e1ee;
  border-left: 5px solid var(--green);
  border-radius: 5px;
  padding: 8px;
}

.visual-evidence-row.partial {
  border-left-color: var(--orange);
}

.visual-evidence-row.blocked {
  border-left-color: var(--red);
}

.visual-evidence-row span,
.visual-evidence-row em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.3;
}

.visual-evidence-row strong {
  font-size: 12px;
}

.visual-ladder {
  margin-top: 14px;
  border: 1px solid #cfe0ed;
  border-radius: 6px;
  background: #ffffff;
  padding: 14px;
}

.visual-ladder h3 {
  margin: 0;
  font-size: 15px;
}

.visual-ladder > div:first-child span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.visual-scenario-row {
  display: grid;
  grid-template-columns: 120px minmax(160px, 1fr) 90px 100px;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.visual-scenario-row span {
  display: flex;
  gap: 8px;
  align-items: baseline;
  color: #334155;
  font-size: 12px;
}

.visual-scenario-row span b {
  color: #111827;
}

.visual-scenario-row i {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: #d9e3ee;
  overflow: hidden;
}

.visual-scenario-row i em {
  display: block;
  width: var(--bar);
  height: 100%;
  background: var(--bar-color);
}

.visual-scenario-row strong,
.visual-scenario-row small {
  font-size: 12px;
}

.visual-scenario-row small {
  color: var(--muted);
}

.visual-scenario-row.selected {
  border-radius: 5px;
  background: #f0faf8;
  padding: 8px;
}

.visual-honesty-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  margin-top: 14px;
  border: 1px solid #f3caa4;
  border-left: 5px solid var(--orange);
  border-radius: 6px;
  background: #fff8ed;
  padding: 12px;
}

.visual-honesty-strip strong {
  font-size: 12px;
  text-transform: uppercase;
}

.visual-honesty-strip span {
  color: #7c2d12;
  font-size: 12px;
  line-height: 1.4;
}

.report-briefs-panel {
  border-left: 5px solid var(--purple);
}

.report-brief-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(220px, .34fr);
  gap: 10px;
  margin-top: 10px;
}

.report-brief-intro > div {
  border: 1px solid #dbe5f0;
  border-left: 5px solid var(--green);
  border-radius: 6px;
  background: #f8fafc;
  padding: 10px;
}

.report-brief-intro > div:nth-child(2) {
  border-left-color: var(--orange);
  background: #fff8ed;
}

.report-brief-intro > div:nth-child(3) {
  border-left-color: var(--purple);
}

.report-brief-intro strong,
.report-brief-intro span,
.report-brief-card span,
.report-brief-card b,
.report-brief-card h3,
.report-brief-card p,
.report-brief-card dt,
.report-brief-card dd,
.report-brief-honesty strong,
.report-brief-honesty span {
  display: block;
}

.report-brief-intro strong {
  color: #111827;
  font-size: 13px;
  line-height: 1.2;
}

.report-brief-intro span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.report-builder-panel {
  margin-top: 12px;
  border: 1px solid #dbe5f0;
  border-radius: 6px;
  background: #f8fafc;
  padding: 10px;
}

.report-builder-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.report-builder-head h3,
.report-package-card h3 {
  margin: 0;
}

.report-builder-head h3 {
  color: #111827;
  font-size: 14px;
  line-height: 1.2;
}

.report-builder-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.report-builder-head strong {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  padding: 4px 8px;
  font-size: 10px;
  text-transform: uppercase;
}

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

.report-package-card {
  display: grid;
  gap: 8px;
  align-content: start;
  border: 1px solid #dbe5f0;
  border-left: 4px solid var(--purple);
  border-radius: 6px;
  background: #ffffff;
  padding: 9px;
}

.report-package-card span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.report-package-card h3 {
  color: #111827;
  font-size: 13px;
  line-height: 1.2;
}

.report-package-card p {
  margin: 0;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.report-package-card dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.report-package-card dt {
  color: #0f766e;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.report-package-card dd {
  margin: 2px 0 0;
  color: #334155;
  font-size: 10px;
  line-height: 1.25;
}

.report-package-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.report-package-actions button {
  min-height: 30px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #ffffff;
  color: #172033;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.report-package-actions button:last-child {
  border-color: #b9d6d1;
  background: #eef9f7;
  color: #0f766e;
}

.report-package-actions button:hover,
.report-package-actions button:focus-visible {
  border-color: var(--green);
  background: #dcf5ef;
  outline: none;
}

.report-brief-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.report-brief-card {
  display: grid;
  gap: 10px;
  align-content: start;
  border: 1px solid #dbe5f0;
  border-left: 5px solid #94a3b8;
  border-radius: 6px;
  background: #ffffff;
  padding: 12px;
}

.report-brief-card.ready {
  border-left-color: var(--green);
}

.report-brief-card.partial,
.report-brief-card.screening {
  border-left-color: var(--orange);
}

.report-brief-card.pending,
.report-brief-card.missing {
  border-left-color: #64748b;
}

.report-brief-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.report-brief-head span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.report-brief-head b {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  padding: 4px 7px;
  font-size: 9px;
  text-transform: uppercase;
}

.report-brief-card.partial b,
.report-brief-card.screening b {
  background: #ffedd5;
  color: #9a3412;
}

.report-brief-card.pending b,
.report-brief-card.missing b {
  background: #e2e8f0;
  color: #334155;
}

.report-brief-card h3 {
  margin: 0;
  color: #111827;
  font-size: 17px;
  line-height: 1.15;
}

.report-brief-card p {
  margin: 0;
  color: #172033;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.report-brief-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.report-brief-card dl div {
  border-top: 1px solid #e5edf5;
  padding-top: 8px;
}

.report-brief-card dt {
  color: #0f766e;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.report-brief-card dd {
  margin: 4px 0 0;
  color: #334155;
  font-size: 11px;
  line-height: 1.35;
}

.report-brief-card button {
  justify-self: start;
  min-height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #ffffff;
  color: #172033;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.report-brief-card button:hover,
.report-brief-card button:focus-visible {
  border-color: var(--green);
  background: #eef9f7;
  outline: none;
}

.report-brief-honesty {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin-top: 12px;
  border: 1px solid #fed7aa;
  border-left: 5px solid var(--orange);
  border-radius: 6px;
  background: #fff7ed;
  padding: 10px;
}

.report-brief-honesty strong {
  color: #9a3412;
  font-size: 12px;
}

.report-brief-honesty span {
  color: #334155;
  font-size: 12px;
  line-height: 1.35;
}

.report-figures-panel {
  border-left: 5px solid var(--charcoal);
}

.report-figure-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.report-figure-actions button {
  min-height: 34px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  background: #ffffff;
  color: #172033;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.report-figure-actions button:hover,
.report-figure-actions button:focus-visible {
  border-color: var(--green);
  background: #eef9f7;
  outline: none;
}

.report-figure-intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.report-figure-intro div {
  border: 1px solid #dbe5f0;
  border-left: 5px solid var(--green);
  border-radius: 6px;
  background: #f8fafc;
  padding: 10px;
}

.report-figure-intro div:last-child {
  border-left-color: var(--orange);
  background: #fff8ed;
}

.report-figure-intro strong,
.report-figure-intro span {
  display: block;
}

.report-figure-intro strong {
  font-size: 13px;
}

.report-figure-intro span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.report-figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.report-figure {
  display: grid;
  grid-template-rows: auto auto auto;
  min-height: 0;
  border: 1px solid #cfe0ed;
  border-top: 5px solid var(--blue);
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
}

.report-figure.chain {
  border-top-color: var(--green);
  min-height: 470px;
}

.report-figure.telemetry {
  border-top-color: var(--blue);
}

.report-figure.terrain {
  border-top-color: #92400e;
  min-height: 420px;
}

.report-figure.construction {
  border-top-color: var(--orange);
  min-height: 420px;
}

.figure-head {
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 14px 10px;
}

.figure-head span,
.figure-head strong {
  display: block;
}

.figure-head span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.figure-head strong {
  margin-top: 3px;
  color: #111827;
  font-size: 18px;
  line-height: 1.15;
}

.figure-body {
  min-width: 0;
  padding: 12px 14px;
}

.figure-footer,
.figure-note {
  color: #475569;
  font-size: 11px;
  line-height: 1.35;
}

.figure-footer {
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 9px 14px;
}

.figure-empty {
  border: 1px solid #dbe5f0;
  border-left: 5px solid #94a3b8;
  border-radius: 6px;
  background: #f8fafc;
  padding: 12px;
  color: var(--muted);
  font-size: 12px;
}

.figure-metric-row,
.figure-action-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

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

.figure-metric {
  border: 1px solid #dbe5f0;
  border-left: 5px solid var(--green);
  border-radius: 5px;
  background: #ffffff;
  padding: 8px;
}

.figure-metric.watch,
.figure-metric.later {
  border-left-color: var(--orange);
}

.figure-metric.active {
  border-left-color: var(--red);
}

.figure-metric span,
.figure-metric strong,
.figure-metric em {
  display: block;
}

.figure-metric span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.figure-metric strong {
  margin-top: 3px;
  color: #111827;
  font-size: 17px;
  line-height: 1.1;
}

.figure-metric em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  line-height: 1.25;
}

.figure-timeseries {
  width: 100%;
  height: auto;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  background: #ffffff;
}

.figure-chain-list,
.figure-route-list,
.figure-receptor-list,
.figure-scenario-ladder {
  display: grid;
  gap: 8px;
}

.figure-chain-step {
  display: grid;
  grid-template-columns: 26px minmax(96px, 0.8fr) minmax(0, 1.2fr);
  gap: 8px;
  align-items: start;
  border: 1px solid #dbe5f0;
  border-left: 5px solid #94a3b8;
  border-radius: 5px;
  background: #ffffff;
  padding: 8px;
}

.figure-chain-step.ready {
  border-left-color: var(--green);
}

.figure-chain-step.active {
  border-left-color: var(--red);
}

.figure-chain-step.watch {
  border-left-color: var(--orange);
}

.figure-chain-step.blocked {
  border-left-color: #475569;
  background: #f8fafc;
}

.figure-chain-step b {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: var(--charcoal);
  color: #ffffff;
  font-size: 11px;
}

.figure-chain-step span,
.figure-chain-step strong,
.figure-chain-step em {
  display: block;
}

.figure-chain-step span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.figure-chain-step strong {
  color: #111827;
  font-size: 12px;
  line-height: 1.25;
}

.figure-chain-step em {
  grid-column: 3;
  color: #475569;
  font-size: 11px;
  font-style: normal;
  line-height: 1.3;
}

.figure-route-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(0, 1fr);
  gap: 8px 12px;
  border: 1px solid #dbe5f0;
  border-left: 5px solid #94a3b8;
  border-radius: 5px;
  background: #ffffff;
  padding: 9px;
}

.figure-route-row.active {
  border-left-color: var(--red);
}

.figure-route-row.watch {
  border-left-color: var(--orange);
}

.figure-route-row.later {
  border-left-color: var(--purple);
}

.figure-route-row > div:first-child {
  grid-row: span 2;
}

.figure-route-row strong,
.figure-route-row span {
  display: block;
}

.figure-route-row strong {
  color: #111827;
  font-size: 12px;
  line-height: 1.25;
}

.figure-route-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}

.figure-receptor-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 86px;
  gap: 8px;
  align-items: center;
  border: 1px solid #dbe5f0;
  border-left: 5px solid #94a3b8;
  border-radius: 5px;
  background: #ffffff;
  padding: 8px;
}

.figure-receptor-row.active {
  border-left-color: var(--red);
  background: #fff7f7;
}

.figure-receptor-row.watch {
  border-left-color: var(--orange);
  background: #fff8ed;
}

.figure-receptor-row.later {
  border-left-color: var(--purple);
}

.figure-receptor-row span,
.figure-receptor-row em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.figure-receptor-row strong {
  color: #111827;
  font-size: 12px;
}

.figure-scenario-ladder {
  margin-top: 10px;
  border-top: 1px solid #e2e8f0;
  padding-top: 10px;
}

.report-figure-honesty {
  margin-top: 14px;
}

.report-map-plates {
  margin-top: 16px;
  border-top: 1px solid #dbe5f0;
  padding-top: 14px;
}

.report-map-plate-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.report-map-plate-head h3 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  line-height: 1.15;
}

.report-map-plate-head span,
.report-map-plate-head strong {
  display: block;
}

.report-map-plate-head span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.report-map-plate-head strong {
  min-width: 190px;
  border: 1px solid #dbe5f0;
  border-radius: 5px;
  background: #f8fafc;
  padding: 8px 10px;
  color: #172033;
  font-size: 12px;
  text-align: right;
}

.report-map-plate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.report-figure.map-plate {
  border-top-color: #0f766e;
  min-height: 0;
}

.report-figure.action-map {
  border-top-color: var(--orange);
}

.report-map-frame {
  min-width: 0;
  border: 1px solid #dbe5f0;
  border-radius: 5px;
  overflow: hidden;
  background: #eef3f8;
}

.report-map-svg {
  display: block;
  width: 100%;
  height: auto;
}

.report-map-bg {
  fill: #eef3f8;
}

.report-map-grid-line {
  stroke: #d5e0eb;
  stroke-width: 1;
}

.report-map-zone {
  fill: var(--zone-color);
  fill-opacity: .13;
  stroke: var(--zone-color);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.report-map-contour {
  fill: none;
  stroke: #8b6f47;
  stroke-width: 1;
  stroke-opacity: .4;
  vector-effect: non-scaling-stroke;
}

.report-map-river {
  fill: none;
  stroke: #0b6ea8;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.report-map-flow {
  stroke: #0f766e;
  stroke-width: 5;
  stroke-dasharray: 14 8;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.report-map-high,
.report-map-low,
.report-map-hotspot,
.report-map-gauge {
  stroke: #ffffff;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.report-map-high {
  fill: #92400e;
}

.report-map-low {
  fill: #0b6ea8;
}

.report-map-hotspot {
  fill: #7c3aed;
}

.report-map-gauge {
  fill: #0ea5e9;
}

.report-map-label rect {
  fill: #ffffff;
  stroke: #cbd5e1;
  stroke-width: 1;
  filter: drop-shadow(0 4px 8px rgba(15, 23, 42, .16));
}

.report-map-label text,
.report-map-receptor text {
  fill: #111827;
  font-size: 13px;
  font-weight: 900;
}

.report-map-label.active rect,
.report-map-label.watch rect {
  stroke: var(--red);
}

.report-map-label.hotspot rect {
  stroke: #7c3aed;
}

.report-map-receptor rect {
  fill: #94a3b8;
  stroke: #ffffff;
  stroke-width: 3;
}

.report-map-receptor.active rect {
  fill: var(--red);
}

.report-map-receptor.watch rect {
  fill: var(--orange);
}

.report-map-receptor text {
  paint-order: stroke;
  stroke: #ffffff;
  stroke-width: 4;
}

.report-map-key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 9px;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}

.report-map-key span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.key-dot,
.key-box,
.key-line {
  display: inline-block;
  flex: 0 0 auto;
}

.key-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.key-box {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.key-line {
  width: 24px;
  height: 4px;
  border-radius: 999px;
}

.key-line.flow {
  background: #0f766e;
}

.key-line.river {
  background: #0b6ea8;
}

.key-dot.high {
  background: #92400e;
}

.key-dot.low {
  background: #0b6ea8;
}

.key-dot.hotspot {
  background: #7c3aed;
}

.key-dot.gauge {
  background: #0ea5e9;
}

.key-box.receptor-active {
  background: var(--red);
}

.key-box.receptor-watch {
  background: var(--orange);
}

@media (max-width: 1050px) {
  .app-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    align-items: stretch;
    width: 100%;
  }

  .pack-status {
    flex: 1;
    min-width: 0;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .summary-strip,
  .walkthrough-guide-hero,
  .walkthrough-current-state,
  .walkthrough-snapshot-grid,
  .walkthrough-guide-step,
  .trust-hero,
  .claim-ladder,
  .trust-action-strip,
  .evidence-passport-grid,
  .trust-no-fake,
  .decision-strip,
  .monthly-stat-grid,
  .monthly-chart,
  .flow-stat-grid,
  .flow-chart,
  .official-flood-grid,
  .official-flood-actions,
  .rofsw-hazard-grid,
  .rofsw-hazard-actions,
  .channel-network-grid,
  .channel-network-actions,
  .terrain-truth-intro,
  .terrain-truth-actions,
  .terrain-truth-grid,
  .terrain-status-grid,
  .terrain-profile-list,
  .readiness-summary,
  .readiness-grid,
  .contract-kicker,
  .contract-gates,
  .contract-requirements,
  .data-needed-hero,
  .data-needed-strip,
  .data-needed-preflight,
  .data-needed-freshness-grid,
  .data-needed-row-list,
  .site-evidence-hero,
  .site-evidence-strip,
  .site-evidence-files,
  .site-evidence-observation-sheet,
  .site-evidence-row-builder-head,
  .site-evidence-row-builder-grid,
  .site-evidence-validation,
  .site-evidence-steps,
  .site-evidence-checklist,
  .engine-hero,
  .engine-claim-strip,
  .engine-stage-grid,
  .engine-gate-grid,
  .engine-audit-summary,
  .engine-audit-gates,
  .engine-audit-priority,
  .engine-preflight-metrics,
  .engine-preflight-strip,
  .engine-preflight-rows,
  .engine-file-queue,
  .report-brief-intro,
  .report-package-grid,
  .report-brief-grid,
  .report-figure-intro,
  .report-figure-grid,
  .report-map-plate-grid,
  .figure-metric-row,
  .figure-action-summary,
  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .report-map-plate-head {
    flex-direction: column;
  }

  .report-map-plate-head strong {
    min-width: 0;
    text-align: left;
  }

  .engine-file-queue > div:first-child {
    grid-row: auto;
  }

  .engine-audit-head {
    flex-direction: column;
  }

  .engine-preflight-head {
    flex-direction: column;
  }

  .engine-audit-priority > div:first-child {
    grid-row: auto;
  }

  .engine-audit-row {
    grid-template-columns: 1fr;
  }

  .engine-file-row {
    grid-template-columns: 1fr;
  }

  .walkthrough-guide-step button {
    justify-self: start;
    white-space: normal;
  }

  .site-evidence-builder-field.wide {
    grid-column: auto;
  }

  .report-brief-honesty {
    grid-template-columns: 1fr;
  }

  .action-brief,
  .action-card-grid {
    grid-template-columns: 1fr;
  }

  .action-brief em {
    text-align: left;
    white-space: normal;
  }

  .map-head-actions,
  .map-focus-controls {
    justify-content: flex-start;
  }

  .map-pulse-row {
    grid-template-columns: 1fr;
  }

  .map-readout-strip {
    grid-template-columns: 1fr;
  }

  .map-workbench {
    grid-template-columns: 1fr;
  }

  .map-layer-panel {
    max-height: none;
  }

  .comparison-row {
    grid-template-columns: 1fr;
  }

  .pathway-list,
  .pathway-steps,
  .evidence-chain-heading,
  .evidence-step-grid,
  .visual-briefing-intro,
  .visual-mode-grid,
  .visual-briefing-grid {
    grid-template-columns: 1fr;
  }

  .visual-mode-card {
    min-height: 0;
  }

  .visual-section-title {
    display: block;
  }

  .visual-section-title span {
    display: block;
    margin-top: 4px;
    text-align: left;
  }

  .visual-evidence-row,
  .visual-scenario-row,
  .visual-honesty-strip,
  .figure-chain-step,
  .figure-route-row,
  .figure-receptor-row,
  .evidence-measures .pathway-bar,
  .terrain-truth-note,
  .terrain-status {
    grid-template-columns: 1fr;
  }

  .figure-chain-step em {
    grid-column: auto;
  }
}

@media print {
  body {
    display: block;
    background: #ffffff;
  }

  .app-header,
  .workspace-tabs,
  .sidebar,
  .summary-strip,
  .decision-strip,
  .monthly-rainfall-panel,
  .nrfa-flow-panel,
  .terrain-truth-panel,
  .action-board,
  .impact-matrix-panel,
  .model-readiness-panel,
  .runoff-contract-panel,
  .data-needed-panel,
  .site-evidence-panel,
  .trust-board-panel,
  .engine-lab-panel,
  .comparison-panel,
  .visual-briefing-panel,
  .report-briefs-panel,
  .map-stage,
  .chart-panel,
  .analysis-grid > article:not(.report-panel),
  .report-actions,
  .report-figure-actions,
  .brief-copy-status {
    display: none !important;
  }

  .layout,
  .workspace,
  .analysis-grid {
    display: block;
    padding: 0;
    overflow: visible;
  }

  .analysis-panel,
  .report-panel,
  .report-figures-panel {
    min-height: 0;
    border: 0;
    padding: 0;
  }

  .report-figure-grid {
    display: block;
  }

  .report-map-plates {
    display: none;
  }

  body.print-map-plates .report-figure-intro,
  body.print-map-plates .report-figure-grid,
  body.print-map-plates .panel-title,
  body.print-map-plates .report-map-plate-head,
  body.print-map-plates .report-figure-honesty {
    display: none;
  }

  body.print-map-plates .report-map-plates {
    display: block;
    border-top: 0;
    padding-top: 0;
  }

  body.print-map-plates .report-map-plate-grid {
    display: block;
  }

  body.print-map-plates .report-figure.map-plate {
    break-inside: avoid;
    margin-bottom: 6mm;
  }

  .report-figure {
    break-inside: avoid;
    margin-bottom: 4mm;
  }

  .figure-footer {
    padding: 7px 12px;
  }

  .report-figure-honesty {
    gap: 6px;
    margin-top: 3mm;
    padding: 7px 9px;
  }

  .report-figure-honesty strong,
  .report-figure-honesty span {
    font-size: 10.5px;
    line-height: 1.24;
  }

  .report-snapshot dd {
    color: #172033;
  }
}
