:root {
  color-scheme: light;
  --ink: #08213A;
  --navy: #103F70;
  --harbor: #164C7E;
  --orange: #E88028;
  --orange-dark: #8A4610;
  --orange-wash: #FFF4E9;
  --mist: #F5F8FB;
  --white: #FFFFFF;
  --line: #D4E0EA;
  --line-soft: #EAF0F5;
  --muted: #425A70;
  --muted-soft: #52687A;
  --blue-wash: #EDF4F8;
  --green-wash: #EAF4EF;
  --green-ink: #245A40;
  --shadow: 0 12px 32px rgba(8, 33, 58, .07);
  --font-sans: Avenir, "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html { min-width: 0; overflow-x: clip; background: var(--mist); scroll-behavior: smooth; }
body { min-width: 0; min-height: 100vh; margin: 0; overflow-x: clip; background: var(--mist); line-height: 1.5; }
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; touch-action: manipulation; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 3px solid var(--orange-dark);
  outline-offset: 3px;
}
::selection { color: var(--ink); background: rgba(232, 128, 40, .24); }

.skip-link {
  position: absolute;
  z-index: 50;
  top: 8px;
  left: 8px;
  padding: 9px 13px;
  transform: translateY(-150%);
  border-radius: 4px;
  color: var(--white);
  background: var(--navy);
}
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 10; border-bottom: 1px solid var(--line); background: var(--white); }
.header-inner {
  display: flex;
  width: min(1580px, 100%);
  min-height: 82px;
  align-items: center;
  gap: 23px;
  margin: 0 auto;
  padding: 10px 28px;
}
.brand-lockup {
  display: inline-flex;
  min-width: 0;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}
.brand-logo { display: block; width: 172px; max-width: 38vw; height: auto; object-fit: contain; }
.brand-divider { width: 1px; height: 38px; flex: 0 0 1px; background: var(--line); }
.product-lockup { display: grid; gap: 1px; white-space: nowrap; }
.product-kicker { color: var(--muted-soft); font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.product-lockup strong { color: var(--ink); font-size: 13px; font-weight: 750; line-height: 1.25; }
.primary-nav { display: flex; min-width: 0; flex: 1 1 auto; align-items: stretch; justify-content: center; gap: 2px; }
.primary-nav button {
  min-height: 47px;
  padding: 0 10px;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.primary-nav button:hover { color: var(--navy); background: var(--blue-wash); }
.primary-nav button[aria-current="page"] { border-bottom-color: var(--orange); color: var(--navy); }
.header-status { display: grid; justify-items: end; gap: 4px; flex: 0 0 auto; }
.demo-chip { display: inline-flex; min-height: 26px; align-items: center; gap: 7px; padding: 4px 9px; border: 1px solid #F0C69F; border-radius: 4px; color: var(--orange-dark); background: var(--orange-wash); font-size: 10px; font-weight: 850; letter-spacing: .04em; }
.status-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--orange); }
.read-only-label { color: var(--muted); font-size: 10px; white-space: nowrap; }
.menu-toggle { display: none; min-height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 4px; color: var(--navy); background: var(--white); font-size: 12px; font-weight: 750; }

.page-shell { width: min(1580px, 100%); min-height: calc(100vh - 160px); margin: 0 auto; padding: 20px 30px 46px; }
.demo-banner { display: flex; min-height: 58px; align-items: center; gap: 12px; padding: 10px 16px; border: 1px solid #F0C69F; border-left: 3px solid var(--orange); border-radius: 5px; background: var(--orange-wash); }
.banner-icon { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; border-radius: 50%; color: var(--navy); background: #E3EEF5; font-size: 13px; font-weight: 850; }
.demo-banner > div { min-width: 0; flex: 1; }
.demo-banner strong { color: var(--ink); font-size: 12px; }
.demo-banner p { margin: 2px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.sample-label { padding: 4px 7px; border: 1px solid #C8D9E5; border-radius: 3px; color: var(--harbor); background: var(--white); font-size: 9px; font-weight: 850; letter-spacing: .07em; }
.page-content { padding: 27px 0 0; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 0 0 22px; }
.page-heading > div { max-width: 840px; }
.eyebrow { margin: 0 0 6px; color: var(--harbor); font-size: 10px; font-weight: 850; letter-spacing: .11em; line-height: 1.4; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; color: var(--ink); font-size: clamp(28px, 3vw, 39px); font-weight: 760; letter-spacing: -.025em; line-height: 1.12; }
.page-intro { max-width: 78ch; margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
h2 { margin: 0; color: var(--ink); font-size: 18px; font-weight: 740; letter-spacing: -.01em; line-height: 1.3; }
h3 { margin: 0; color: var(--ink); font-size: 15px; font-weight: 750; line-height: 1.4; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi-card { display: grid; min-height: 112px; align-content: start; gap: 3px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); box-shadow: 0 4px 14px rgba(8, 33, 58, .025); }
.kpi-card > span { color: var(--muted); font-size: 11px; font-weight: 700; }
.kpi-card > strong { color: var(--navy); font-size: 28px; font-weight: 780; line-height: 1.2; }
.kpi-card small { color: var(--muted-soft); font-size: 10px; line-height: 1.4; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 14px; margin-bottom: 14px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--white); box-shadow: 0 4px 14px rgba(8, 33, 58, .025); }
.overview-grid > .panel, .featured-panel, .table-panel, .filter-panel, .controls-panel { padding: 19px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.panel-heading .eyebrow { margin-bottom: 3px; }
.panel-note { color: var(--muted-soft); font-size: 10px; white-space: nowrap; }
.port-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.port-tile { display: grid; min-width: 0; align-content: start; gap: 4px; padding: 11px 10px; border: 1px solid var(--line); border-radius: 5px; text-align: left; background: var(--white); transition: border-color .16s ease, background .16s ease; }
.port-tile:hover { border-color: var(--harbor); background: var(--blue-wash); }
.port-code { color: var(--orange-dark); font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.port-name { color: var(--ink); font-size: 12px; font-weight: 750; }
.port-country, .port-count { color: var(--muted); font-size: 10px; }
.port-count { margin-top: 4px; color: var(--harbor); font-weight: 700; }
.panel-footnote { margin: 15px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.workflow-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.workflow-list li { display: flex; align-items: start; gap: 11px; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.workflow-list li:first-child { border-top: 0; padding-top: 0; }
.step-index { display: grid; width: 27px; height: 27px; flex: 0 0 27px; place-items: center; border: 1px solid #F0C69F; border-radius: 50%; color: var(--orange-dark); background: var(--orange-wash); font-size: 9px; font-weight: 850; }
.workflow-list strong { color: var(--ink); font-size: 11px; }
.workflow-list p { margin: 2px 0 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.featured-panel { margin-top: 0; }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.case-card { display: flex; min-width: 0; flex-direction: column; padding: 15px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.case-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.case-id { color: var(--muted-soft); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; letter-spacing: .02em; }
.case-card .eyebrow { margin-bottom: 4px; }
.case-card h3 { margin-bottom: 5px; }
.case-project { margin: 0 0 10px; color: var(--muted); font-size: 11px; }
.stage-badge { display: inline-flex; min-height: 22px; align-items: center; padding: 3px 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); background: var(--mist); font-size: 9px; font-weight: 800; white-space: nowrap; }
.stage-neutral { color: var(--harbor); border-color: #C8D9E5; background: var(--blue-wash); }
.stage-review { color: var(--orange-dark); border-color: #F0C69F; background: var(--orange-wash); }
.stage-qualified { color: var(--navy); border-color: #9FBBD0; background: #E2EEF5; }
.stage-proposal { color: var(--green-ink); border-color: #C4DFCF; background: var(--green-wash); }
.card-meta { display: grid; gap: 7px; margin: auto 0 13px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.card-meta div { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; }
.card-meta dt, .entity-grid dt, .source-meta dt { color: var(--muted-soft); font-size: 10px; }
.card-meta dd, .entity-grid dd, .source-meta dd { margin: 0; color: var(--ink); font-size: 10px; font-weight: 700; text-align: right; }
.button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 8px; padding: 0 13px; border: 1px solid transparent; border-radius: 4px; font-size: 11px; font-weight: 750; text-decoration: none; transition: background .16s ease, border-color .16s ease, color .16s ease; }
.button-primary { color: var(--white); border-color: var(--navy); background: var(--navy); }
.button-primary:hover { border-color: var(--harbor); background: var(--harbor); }
.button-secondary { color: var(--harbor); border-color: var(--line); background: var(--blue-wash); }
.button-secondary:hover { border-color: var(--harbor); background: #E2EEF5; }
.button-quiet { color: var(--harbor); border-color: var(--line); background: var(--white); }
.button-quiet:hover { border-color: var(--harbor); background: var(--mist); }
.text-button { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; color: var(--harbor); background: transparent; font-size: 11px; font-weight: 750; }
.text-button:hover { color: var(--orange-dark); }
.read-only-chip { display: inline-flex; min-height: 28px; align-items: center; padding: 4px 9px; border: 1px solid var(--line); border-radius: 4px; color: var(--harbor); background: var(--white); font-size: 10px; font-weight: 750; white-space: nowrap; }

.filter-panel { margin-bottom: 19px; }
.filter-fields { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(180px, .65fr) auto; align-items: end; gap: 12px; }
.field { display: grid; gap: 6px; color: var(--ink); font-size: 11px; font-weight: 750; }
.field input, .field select { width: 100%; min-height: 39px; padding: 0 11px; border: 1px solid #BCCCD8; border-radius: 4px; color: var(--ink); background: var(--white); font-size: 12px; }
.field input::placeholder { color: var(--muted-soft); }
.field-note { margin: 11px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.filter-reset { min-height: 39px; }
.results-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.results-heading h2 { font-size: 16px; }
.results-heading span { color: var(--muted); font-size: 11px; }
.empty-state { grid-column: 1 / -1; padding: 28px; border: 1px dashed var(--line); border-radius: 5px; color: var(--muted); background: var(--white); }
.empty-state strong { color: var(--ink); }
.empty-state p { margin: 6px 0 0; font-size: 11px; }

.table-panel { padding: 0; overflow: hidden; }
.table-scroll { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
caption { padding: 14px 18px 10px; color: var(--muted); font-size: 10px; text-align: left; }
th, td { padding: 11px 14px; border-top: 1px solid var(--line-soft); vertical-align: top; font-size: 10px; line-height: 1.5; }
thead th { color: var(--muted); background: var(--mist); font-weight: 800; }
tbody th { min-width: 155px; color: var(--ink); font-weight: 750; }
td { color: var(--muted); }
.table-panel > .panel-footnote { padding: 0 18px 17px; }

.flow-note { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px; margin: 0 0 13px; padding: 12px 15px; border-left: 3px solid var(--orange); background: var(--orange-wash); }
.flow-note strong { color: var(--ink); font-size: 11px; }
.flow-note span { color: var(--muted); font-size: 10px; }
.assignment-list { display: grid; gap: 12px; }
.assignment-card { padding: 17px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); }
.assignment-heading { display: flex; align-items: start; justify-content: space-between; gap: 15px; margin-bottom: 13px; }
.assignment-heading h3 { margin: 4px 0; }
.assignment-heading p { margin: 0; color: var(--muted); font-size: 10px; }
.assignment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 11px; }
.assignment-grid > div { display: grid; align-content: start; gap: 4px; min-height: 54px; padding: 9px; border: 1px solid var(--line-soft); border-radius: 4px; background: var(--mist); }
.assignment-grid span { color: var(--muted-soft); font-size: 9px; }
.assignment-grid strong { color: var(--ink); font-size: 10px; }
.economic-states { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 16px 18px 0; }
.economic-states > div { display: grid; gap: 3px; }
.economic-states span { color: var(--muted); font-size: 10px; }
.economic-states strong { color: var(--navy); font-size: 14px; }
.ledger-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-bottom: 13px; }
.ledger-summary > div { display: grid; gap: 3px; padding: 15px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); }
.ledger-summary span { color: var(--muted); font-size: 10px; font-weight: 700; }
.ledger-summary strong { color: var(--navy); font-size: 22px; }
.ledger-summary small { color: var(--muted-soft); font-size: 9px; }
.ledger-emphasis th, .ledger-emphasis td { color: var(--navy); background: var(--blue-wash); font-weight: 800; }

.source-card { display: flex; gap: 16px; padding: 20px; }
.source-icon { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border: 1px solid #C8D9E5; border-radius: 6px; color: var(--harbor); background: var(--blue-wash); font-size: 16px; font-weight: 850; }
.source-copy { min-width: 0; }
.source-copy .eyebrow { margin-bottom: 4px; }
.source-copy h2 { margin-bottom: 6px; }
.source-copy > p:not(.eyebrow) { max-width: 75ch; margin-bottom: 14px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.source-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 22px; margin: 0; }
.source-meta div { display: flex; justify-content: space-between; gap: 10px; }
.source-boundary { display: flex; gap: 9px; margin-top: 13px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); }
.source-boundary .status-dot { margin-top: 5px; }
.source-boundary strong { font-size: 11px; }
.source-boundary p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.controls-panel { margin-bottom: 13px; }
.control-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.control-row { display: flex; align-items: start; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line-soft); }
.control-mark { color: var(--harbor); font-weight: 900; }
.control-row strong { color: var(--ink); font-size: 11px; }
.control-row p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.release-note { padding: 14px 16px; border: 1px solid #F0C69F; border-left: 3px solid var(--orange); border-radius: 4px; background: var(--orange-wash); }
.release-note strong { color: var(--ink); font-size: 11px; }
.release-note p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }

.notice { margin-bottom: 14px; padding: 10px 13px; border: 1px solid #C8D9E5; border-left: 3px solid var(--harbor); border-radius: 4px; color: var(--ink); background: var(--blue-wash); font-size: 11px; }
.notice[hidden] { display: none; }
.detail-dialog { width: min(760px, calc(100% - 26px)); max-width: none; max-height: min(88vh, 900px); padding: 0; overflow: auto; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--white); box-shadow: var(--shadow); }
.detail-dialog::backdrop { background: rgba(8, 33, 58, .48); }
.dialog-toolbar { position: sticky; z-index: 1; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 12px 17px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .98); }
.dialog-toolbar .eyebrow { margin: 0; }
.icon-button { display: grid; width: 33px; height: 33px; place-items: center; border: 1px solid var(--line); border-radius: 4px; color: var(--harbor); background: var(--white); font-size: 22px; line-height: 1; }
.icon-button:hover { border-color: var(--harbor); background: var(--blue-wash); }
.detail-content { padding: 19px; }
.detail-title-row { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.detail-title-row .eyebrow { margin-bottom: 4px; }
.detail-title-row h2 { max-width: 540px; font-size: 21px; }
.detail-content > .case-id { display: block; margin: 9px 0 16px; }
.detail-section { padding: 14px 0; border-top: 1px solid var(--line-soft); }
.detail-section h3 { margin-bottom: 9px; font-size: 12px; }
.detail-section p { margin: 0 0 7px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.entity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.entity-grid > div { display: grid; gap: 3px; padding: 9px; border: 1px solid var(--line-soft); border-radius: 4px; background: var(--mist); }
.entity-grid dd { text-align: left; }
.source-inline { color: var(--harbor) !important; font-size: 10px !important; }
.unknown-list { display: grid; gap: 5px; margin: 0; padding-left: 18px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.status-chain { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.status-chain span { padding: 8px; border: 1px solid var(--line-soft); border-radius: 4px; color: var(--muted); background: var(--mist); font-size: 10px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.inline-note { margin: 0 !important; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--mist); }
.qualification-action { display: grid; justify-items: start; gap: 9px; }
.qualification-action p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.site-footer { border-top: 1px solid var(--line); background: var(--white); }
.footer-inner { display: flex; width: min(1580px, 100%); justify-content: space-between; gap: 12px; margin: 0 auto; padding: 15px 30px 18px; color: var(--muted); font-size: 9px; }

@media (max-width: 1220px) {
  .header-inner { gap: 14px; padding-right: 20px; padding-left: 20px; }
  .brand-logo { width: 145px; }
  .brand-lockup { gap: 9px; }
  .primary-nav button { padding-right: 7px; padding-left: 7px; font-size: 10px; }
  .read-only-label { display: none; }
}

@media (max-width: 980px) {
  .header-inner { min-height: 76px; flex-wrap: wrap; justify-content: space-between; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .header-status { margin-left: auto; }
  .primary-nav { display: none; width: 100%; flex: 0 0 100%; flex-wrap: wrap; justify-content: flex-start; order: 5; padding-top: 7px; border-top: 1px solid var(--line-soft); }
  .primary-nav.is-open { display: flex; }
  .primary-nav button { min-height: 39px; font-size: 11px; }
  .overview-grid { grid-template-columns: 1fr; }
  .port-grid { grid-template-columns: repeat(5, minmax(100px, 1fr)); overflow-x: auto; padding-bottom: 4px; }
}

@media (max-width: 720px) {
  .page-shell { padding: 14px 16px 36px; }
  .demo-banner { align-items: start; padding: 10px; }
  .sample-label { align-self: center; }
  .page-content { padding-top: 19px; }
  .page-heading { align-items: start; flex-direction: column; gap: 12px; margin-bottom: 17px; }
  .page-heading > .button, .page-heading > .read-only-chip { align-self: flex-start; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi-card { min-height: 98px; padding: 12px; }
  .kpi-card > strong { font-size: 24px; }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-fields { grid-template-columns: 1fr; }
  .filter-reset { justify-self: start; }
  .assignment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .control-list { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; padding: 13px 16px 17px; }
}

@media (max-width: 520px) {
  .header-inner { gap: 8px; padding: 9px 13px; }
  .brand-logo { width: 110px; }
  .brand-divider { height: 31px; }
  .brand-lockup { gap: 7px; }
  .product-lockup { max-width: 104px; white-space: normal; }
  .product-lockup strong { font-size: 11px; }
  .product-kicker { font-size: 8px; }
  .header-status { min-height: 25px; }
  .demo-chip { min-height: 23px; font-size: 9px; }
  .menu-toggle { min-height: 34px; padding: 0 8px; font-size: 10px; }
  .page-shell { padding-right: 12px; padding-left: 12px; }
  .demo-banner { gap: 8px; }
  .demo-banner p { font-size: 10px; }
  .sample-label { display: none; }
  .case-grid { grid-template-columns: 1fr; }
  .port-grid { grid-template-columns: repeat(5, 105px); }
  .overview-grid > .panel, .featured-panel, .table-panel, .filter-panel, .controls-panel { padding: 14px; }
  .featured-panel { padding: 14px !important; }
  .panel-heading { align-items: start; }
  .panel-heading h2 { font-size: 16px; }
  .assignment-heading { flex-direction: column; }
  .assignment-grid { grid-template-columns: 1fr 1fr; }
  .ledger-summary { grid-template-columns: 1fr; gap: 8px; }
  .ledger-summary > div { padding: 12px; }
  .ledger-summary strong { font-size: 19px; }
  .economic-states { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px 13px 0; }
  .source-card { padding: 14px; }
  .source-meta { grid-template-columns: 1fr; }
  .source-meta dd { text-align: left; }
  .detail-content { padding: 14px; }
  .detail-title-row { flex-direction: column; }
  .entity-grid, .status-chain { grid-template-columns: 1fr; }
  .footer-inner { overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
