:root {
  --navy-950: #031a2e;
  --navy-900: #082d52;
  --navy-800: #0d416f;
  --blue: #129ed8;
  --green: #13843d;
  --yellow: #f4c843;
  --gold: #d1a628;
  --surface: #f3f6f8;
  --ink: #14202b;
  --muted: #607184;
  --border: #dbe3ea;
  --white: #fff;
  --danger: #a73535;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(6, 29, 51, 0.14);
  --max: 1440px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--surface);
}
button,
input,
select {
  font: inherit;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 9999;
  background: #fff;
  color: #000;
  padding: 12px 16px;
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}
.topbar {
  position: fixed;
  z-index: 1000;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 64px);
  background: linear-gradient(
    180deg,
    rgba(3, 26, 46, 0.88),
    rgba(3, 26, 46, 0.38),
    transparent
  );
  transition: 0.35s ease;
  color: #fff;
}
.topbar.is-solid {
  background: rgba(3, 26, 46, 0.96);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.brand img {
  width: 150px;
  height: auto;
  max-height: 54px;
  object-fit: contain;
}
.brand span {
  display: grid;
  line-height: 1.05;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  padding-left: 12px;
}
.brand strong {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.brand small {
  font-size: 0.72rem;
  color: #d5e7f4;
  margin-top: 4px;
}
.topbar nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
.topbar nav a,
.admin-button {
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.88rem;
  background: none;
  border: 0;
  cursor: pointer;
}
.admin-button {
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}
.scroll-story {
  height: 760vh;
  background: var(--navy-950);
  color: #fff;
}
.story-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(
    circle at 65% 46%,
    #155786 0,
    #082d52 30%,
    #031a2e 70%
  );
}
.ambient-grid {
  position: absolute;
  inset: 0;
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(
    90deg,
    transparent,
    black 45%,
    black 85%,
    transparent
  );
}
.story-progress {
  position: absolute;
  z-index: 8;
  right: 30px;
  top: 15%;
  bottom: 15%;
  width: 3px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 10px;
}
.story-progress span {
  display: block;
  width: 100%;
  height: 0;
  background: linear-gradient(var(--blue), var(--yellow), var(--green));
  border-radius: 10px;
}
.story-copy {
  position: absolute;
  z-index: 5;
  left: clamp(24px, 7vw, 110px);
  top: 50%;
  width: min(600px, 50vw);
  transform: translateY(-50%);
}
.story-panel {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  opacity: 0;
  transform: translateY(calc(-50% + 46px));
  pointer-events: none;
}
.story-panel.is-active {
  pointer-events: auto;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 800;
  font-size: 0.72rem;
  color: #8ed8fb;
  margin: 0 0 18px;
}
.eyebrow.dark {
  color: var(--navy-800);
}
.hero-logo {
  width: min(520px, 88%);
  height: auto;
  display: block;
  margin-bottom: 22px;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.28));
}
.hero-logo-gov {
  width: min(180px, 32%);
  margin-bottom: 18px;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.2));
}
.story-panel h1,
.story-panel h2 {
  font-size: clamp(2.7rem, 5.8vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
  margin: 0 0 24px;
}
.story-panel h2 {
  font-size: clamp(2.3rem, 4.4vw, 4.7rem);
  max-width: 720px;
}
.story-panel > p:not(.eyebrow) {
  font-size: clamp(1rem, 1.45vw, 1.3rem);
  line-height: 1.65;
  color: #d5e7f4;
  max-width: 620px;
}
.headline-number {
  display: flex;
  gap: 16px;
  align-items: end;
  margin-top: 32px;
}
.headline-number strong {
  font-size: clamp(3.8rem, 8vw, 8rem);
  letter-spacing: -0.07em;
  line-height: 0.8;
}
.headline-number span {
  color: #b8d2e5;
  max-width: 110px;
  line-height: 1.15;
}
.mini-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 30px;
}
.mini-kpis div {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}
.mini-kpis span {
  display: block;
  color: #b8d2e5;
  font-size: 0.82rem;
}
.mini-kpis strong {
  display: block;
  margin-top: 10px;
  font-size: 1.35rem;
}
.primary-action,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), #0e70a9);
  color: #fff;
  text-decoration: none;
  padding: 14px 22px;
  font-weight: 800;
  cursor: pointer;
}
.primary-action {
  margin-top: 18px;
}
.story-visual {
  position: absolute;
  z-index: 2;
  right: -3%;
  top: 50%;
  width: min(58vw, 900px);
  height: min(80vh, 820px);
  transform: translateY(-50%);
}
.state-seal {
  position: absolute;
  width: min(35vw, 500px);
  max-height: 72vh;
  object-fit: contain;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0.92;
  filter: drop-shadow(0 28px 70px rgba(0, 0, 0, 0.28));
}
.state-seal-iper {
  width: min(46vw, 760px);
  max-height: 58vh;
  background: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.35;
}
.glow-a {
  width: 44%;
  height: 44%;
  background: var(--blue);
  left: 22%;
  top: 17%;
}
.glow-b {
  width: 35%;
  height: 35%;
  background: var(--green);
  right: 8%;
  bottom: 10%;
}
.data-orbit {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  transform: rotate(-12deg) scale(0.82);
  opacity: 0.3;
}
.data-orbit.orbit-two {
  inset: 23%;
  transform: rotate(38deg) scale(1.18);
}
.data-orbit span {
  position: absolute;
  width: 11px;
  height: 11px;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--yellow);
}
.data-orbit span:nth-child(1) {
  left: 8%;
  top: 48%;
}
.data-orbit span:nth-child(2) {
  right: 17%;
  top: 14%;
  background: var(--blue);
}
.data-orbit span:nth-child(3) {
  right: 3%;
  bottom: 26%;
  background: var(--green);
}
.chart-preview {
  position: absolute;
  left: 18%;
  right: 10%;
  bottom: 16%;
  height: 50%;
  display: flex;
  align-items: end;
  gap: 4%;
  opacity: 0;
  transform: translateY(50px);
}
.chart-preview span {
  width: 11%;
  height: var(--h);
  border-radius: 12px 12px 2px 2px;
  background: linear-gradient(180deg, #68d6ff, var(--blue));
  box-shadow: 0 10px 25px rgba(18, 158, 216, 0.2);
}
.chart-preview span:nth-child(3n) {
  background: linear-gradient(180deg, #ffe78b, var(--yellow));
}
.entity-map {
  position: absolute;
  inset: 18%;
  opacity: 0;
  transform: scale(0.75);
}
.entity-map:before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 40% 60% 48% 52%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.entity-map i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow:
    0 0 0 8px rgba(244, 200, 67, 0.15),
    0 0 35px rgba(244, 200, 67, 0.6);
}
.debt-ring {
  position: absolute;
  width: 330px;
  height: 330px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.65);
  border-radius: 50%;
  background: conic-gradient(
    var(--green) 0 38%,
    var(--yellow) 38% 66%,
    var(--blue) 66% 88%,
    rgba(255, 255, 255, 0.12) 88%
  );
  opacity: 0;
}
.debt-ring:after {
  content: "";
  position: absolute;
  inset: 38px;
  background: var(--navy-950);
  border-radius: 50%;
}
.debt-ring strong {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}
.debt-ring span {
  position: absolute;
  z-index: 3;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  top: 20%;
  right: 14%;
}
.scroll-hint {
  position: absolute;
  z-index: 9;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.78rem;
  color: #b8d2e5;
}
.scroll-hint span {
  width: 23px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 99px;
  position: relative;
}
.scroll-hint span:after {
  content: "";
  position: absolute;
  width: 4px;
  height: 7px;
  background: #fff;
  border-radius: 9px;
  left: 50%;
  top: 7px;
  transform: translateX(-50%);
  animation: wheel 1.7s infinite;
}
@keyframes wheel {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 14px);
  }
}
.dashboard {
  background: var(--surface);
  padding: 90px clamp(16px, 4vw, 58px);
}
.dashboard-shell {
  max-width: var(--max);
  margin: auto;
}
.dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 28px;
}
.dashboard-header h2 {
  font-size: clamp(2.1rem, 4vw, 4rem);
  letter-spacing: -0.045em;
  margin: 0 0 8px;
}
.dashboard-header p {
  color: var(--muted);
  margin: 0;
}
.dashboard-actions {
  display: flex;
  gap: 10px;
}
.secondary-button {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 760;
  cursor: pointer;
}
.filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(6, 29, 51, 0.06);
  margin-bottom: 18px;
}
.filters label {
  display: grid;
  gap: 7px;
  color: #405063;
  font-size: 0.76rem;
  font-weight: 800;
}
.filters input,
.filters select,
.admin-dialog input {
  width: 100%;
  border: 1px solid var(--border);
  background: #fbfcfd;
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--ink);
  min-width: 0;
}
.filters label:first-child {
  grid-column: span 2;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0;
}
.kpi-card {
  min-height: 150px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 9px 30px rgba(6, 29, 51, 0.055);
  position: relative;
  overflow: hidden;
}
.kpi-card:after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  right: -40px;
  top: -40px;
  background: rgba(18, 158, 216, 0.08);
}
.kpi-card:nth-child(2):after {
  background: rgba(19, 132, 61, 0.09);
}
.kpi-card:nth-child(3):after {
  background: rgba(244, 200, 67, 0.16);
}
.kpi-card span {
  display: block;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 800;
}
.kpi-card strong {
  display: block;
  font-size: clamp(1.35rem, 2.1vw, 2.15rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
  overflow-wrap: anywhere;
  margin: 20px 0 10px;
}
.kpi-card small {
  color: var(--muted);
  line-height: 1.35;
}
.chart-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 14px;
}
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 10px 35px rgba(6, 29, 51, 0.055);
  min-width: 0;
}
.panel-wide {
  grid-row: span 2;
}
.panel header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}
.chart-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.chart-toggle {
  border: 1px solid var(--border);
  background: #fff;
  color: #405063;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
}
.chart-toggle.ghost {
  background: #f7fafc;
}
.panel h3 {
  margin: 0;
  font-size: 1.15rem;
}
.panel header p {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 5px 0 0;
}
.legend-dot {
  color: var(--muted);
  font-size: 0.8rem;
}
.legend-dot:before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  margin-right: 7px;
}
.chart-box {
  height: 280px;
  margin-top: 18px;
  position: relative;
}
.panel-wide .chart-box {
  height: 520px;
}
.chart-box svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.chart-empty {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  padding: 20px;
}
.axis-label {
  fill: #718195;
  font-size: 11px;
}
.grid-line {
  stroke: #e7edf2;
  stroke-width: 1;
}
.line-path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.area-path {
  fill: url(#areaGradient);
}
.point {
  fill: #fff;
  stroke: var(--blue);
  stroke-width: 3;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.point:hover,
.point:focus {
  transform: scale(1.06);
}
.bar {
  fill: var(--navy-800);
  rx: 7;
  cursor: pointer;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}
.bar:hover,
.bar:focus {
  opacity: 0.9;
}
.monthly-bar {
  fill: #129ed8;
}
.monthly-bar.is-active {
  fill: #0f5c93;
}
.value-label {
  fill: #334255;
  font-size: 12px;
  font-weight: 700;
}
.month-label {
  font-size: 12px;
}
.month-group.is-active .value-label {
  fill: #0f5c93;
}
.bar:nth-of-type(3n) {
  fill: var(--green);
}
.donut-total {
  font-size: 23px;
  font-weight: 800;
  fill: var(--ink);
}
.donut-label {
  font-size: 11px;
  fill: var(--muted);
}
.agency-scroll {
  height: 100%;
  overflow: auto;
  padding-right: 6px;
}
.agency-scroll svg {
  width: 100%;
  height: auto;
  min-height: 100%;
}
.agency-label {
  fill: #415264;
  font-size: 12px;
  font-weight: 700;
}
.agency-track {
  fill: #edf3f7;
}
.agency-bar {
  fill: #174d80;
}
.agency-value {
  fill: #1e2c39;
  font-size: 11px;
  font-weight: 800;
}
.agency-scroll::-webkit-scrollbar {
  width: 8px;
}
.agency-scroll::-webkit-scrollbar-thumb {
  background: #d7e1e9;
  border-radius: 999px;
}
.fund-clean {
  display: grid;
  gap: 16px;
  overflow: auto;
  padding-bottom: 10px;
}

.fund-scroll {
  overflow: auto;
}

.fund-total-card {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f9fbfc;
}
.fund-total-card span {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
}
.fund-total-card strong {
  font-size: 1.7rem;
  letter-spacing: -0.04em;
  line-height: 1;
}
.fund-segment-bar {
  display: flex;
  overflow: hidden;
  height: 18px;
  border-radius: 999px;
  background: #edf3f7;
  border: 1px solid #e4ebf1;
}
.fund-segment-bar span {
  display: block;
  height: 100%;
}
.fund-rows {
  display: grid;
  gap: 10px;
}
.fund-row-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}
.fund-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fund-row-left i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}
.fund-row-left strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.2;
}
.fund-row-left small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 3px;
}
.fund-row-right {
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
}
.table-panel {
  margin-top: 14px;
}
.table-header {
  align-items: center !important;
}
.table-wrap {
  overflow: auto;
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  max-height: 580px;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 840px;
  font-size: 0.82rem;
}
thead {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #edf3f7;
}
th,
td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid #e7edf2;
  white-space: nowrap;
}
th {
  color: #415264;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
tbody tr:hover {
  background: #f7fafc;
}
.status-pill {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: #e6f5eb;
  color: #19703a;
}
.status-pill.pending {
  background: #fff4d7;
  color: #8b6714;
}
.status-pill.overdue {
  background: #fbe7e7;
  color: #9c3434;
}
.optional-column {
  display: none;
}
.show-optional .optional-column {
  display: table-cell;
}
footer {
  background: var(--navy-950);
  color: #d5e7f4;
  padding: 35px clamp(20px, 5vw, 70px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 0.82rem;
}
footer div {
  display: flex;
  align-items: center;
  gap: 14px;
}
footer img {
  width: 45px;
  height: 50px;
  object-fit: contain;
}
.admin-dialog {
  border: 0;
  border-radius: 24px;
  width: min(520px, calc(100% - 28px));
  padding: 0;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
}
.admin-dialog::backdrop {
  background: rgba(1, 15, 27, 0.72);
  backdrop-filter: blur(6px);
}
.admin-dialog form {
  padding: 32px;
  display: grid;
  gap: 16px;
}
.admin-dialog h2 {
  margin: 0;
  font-size: 2rem;
}
.admin-dialog p {
  color: var(--muted);
  line-height: 1.55;
}
.admin-dialog label {
  font-size: 0.8rem;
  font-weight: 800;
  display: grid;
  gap: 7px;
}
.close-dialog {
  position: absolute;
  right: 16px;
  top: 12px;
  border: 0;
  background: none;
  font-size: 2rem;
  color: var(--muted);
  cursor: pointer;
}
.tooltip {
  position: fixed;
  z-index: 5000;
  display: none;
  pointer-events: none;
  background: #071d31;
  color: #fff;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}
@media (max-width: 1100px) {
  .filters {
    grid-template-columns: repeat(4, 1fr);
  }
  .kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .chart-grid {
    grid-template-columns: 1fr;
  }
  .panel-wide {
    grid-row: auto;
  }
  .panel-wide .chart-box {
    height: 420px;
  }
  .story-copy {
    width: 55vw;
  }
  .story-visual {
    right: -15%;
    width: 68vw;
  }
  .topbar nav a {
    display: none;
  }
}
@media (max-width: 720px) {
  .topbar {
    padding: 10px 14px;
  }
  .brand img {
    width: 112px;
    max-height: 42px;
  }
  .brand span {
    display: none;
  }
  .admin-button {
    font-size: 0.76rem;
    padding: 8px 10px;
  }
  .scroll-story {
    height: 680vh;
  }
  .story-copy {
    left: 22px;
    right: 22px;
    width: auto;
    top: auto;
    bottom: 76px;
    transform: none;
  }
  .story-panel {
    top: auto;
    bottom: 0;
    transform: translateY(30px);
  }
  .story-panel h1,
  .story-panel h2 {
    font-size: clamp(2.45rem, 12vw, 4.2rem);
  }
  .hero-logo {
    width: 240px;
  }
  .hero-logo-gov {
    width: 120px;
  }
  .story-visual {
    top: 40%;
    right: -35%;
    width: 130vw;
    height: 62vh;
  }
  .story-progress {
    right: 12px;
    top: 18%;
    bottom: 18%;
  }
  .mini-kpis {
    grid-template-columns: 1fr;
  }
  .mini-kpis div {
    padding: 13px;
  }
  .story-panel > p:not(.eyebrow) {
    font-size: 0.96rem;
  }
  .headline-number strong {
    font-size: 4.3rem;
  }
  .scroll-hint {
    display: none;
  }
  .dashboard {
    padding: 64px 12px;
  }
  .dashboard-header {
    display: block;
  }
  .dashboard-actions {
    margin-top: 18px;
  }
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 13px;
  }
  .filters label:first-child {
    grid-column: span 2;
  }
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .chart-controls {
    justify-content: flex-start;
    margin-top: 10px;
  }
  .chart-box,
  .panel-wide .chart-box {
    height: 340px;
  }
  .fund-total-card {
    display: block;
  }
  .fund-total-card strong {
    display: block;
    margin-top: 8px;
  }
  .fund-row-card {
    display: block;
  }
  .fund-row-right {
    margin-top: 8px;
  }
  .panel {
    padding: 17px;
  }
  .table-header {
    display: block !important;
  }
  .table-header button {
    margin-top: 14px;
  }
  footer {
    display: block;
    text-align: center;
  }
  footer div {
    justify-content: center;
    margin-bottom: 18px;
  }
}
@media (max-width: 420px) {
  .kpi-grid {
    grid-template-columns: 1fr;
  }
  .kpi-card:first-child {
    grid-column: auto;
  }
  .filters {
    grid-template-columns: 1fr;
  }
  .filters label:first-child {
    grid-column: auto;
  }
  .dashboard-actions {
    display: grid;
  }
  .story-visual {
    opacity: 0.78;
  }
  .story-copy {
    bottom: 52px;
  }
  .mini-kpis {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .scroll-story {
    height: auto;
  }
  .story-stage {
    position: relative;
    min-height: 100vh;
  }
  .story-panel {
    display: none;
  }
  .story-panel:first-child {
    display: block;
    opacity: 1;
    transform: none;
    position: relative;
  }
  .story-copy {
    position: relative;
    top: auto;
    transform: none;
    padding-top: 34vh;
  }
  .scroll-hint,
  .story-progress {
    display: none;
  }
}

#dataStatus {
  font-weight: 700;
}
.is-live {
  color: #14743a !important;
}
.is-fallback {
  color: #966d13 !important;
}

@media (max-width: 720px) {
  .state-seal {
    width: min(72vw, 420px);
  }
  .state-seal-iper {
    width: min(100vw, 560px);
    max-height: 32vh;
  }
}
