:root {
  --ink: #152943;
  --muted: #52647a;
  --navy: #145cab;
  --blue: #185b9a;
  --line: #dbe5ec;
  --lilac: #e8f4ff;
}
body { background: #f2f6fa }
.shell .wrap { max-width: 1680px; padding-top: 20px }
.masthead { background: #122840; border-color: #29455e }
.mast-inner { max-width: 1680px; min-height: 62px; gap: clamp(12px,2.6vw,42px) }
.masthead .brand, .masthead a, .masthead button { color: #e8f3fb }
.mast-tools { font-size: 13px }
.mast-tools a { padding: 6px 2px; text-decoration-color: #8fa7bd; text-underline-offset: 4px }
.masthead .main-nav button:hover, .masthead .mast-tools button:hover { background: #203e59 }
.masthead .main-nav button.active, .masthead .mast-tools button.active { background: #284b69; color: #fff }
.hero { min-height: 116px; padding: 20px 27px; border: 0; background: linear-gradient(105deg,#132f50,#204a70 60%,#48648e); border-radius: 14px }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg,#132f50 10%,transparent 73%) }
.hero h1 { color: white; font-size: clamp(30px,3vw,48px); margin: 0 0 7px; letter-spacing: -.048em; font-weight: 720 }
#tagline { color: #dfecf8; font-size: 15px; line-height: 1.5 }
.hero-art { width: min(54%,700px); height: 245%; right: 0; object-fit: cover; opacity: .78; object-position: center 49% }
.metrics { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 13px 0 }
.metric, .metric:nth-child(n) { min-height: 73px; border-radius: 11px; background: #fff; border-color: var(--line); padding: 11px 14px; box-shadow: 0 2px 4px #1d3b5410 }
.metric strong { font-size: clamp(24px,2vw,35px) }
.metric label { color: #52647a; font-size: 12px }
.metric .tile { width: 36px; height: 36px; background: #e7f2ff; color: #1c5b96 }
.metric .tile.mint { background: #dcf5ec; color: #147457 }
.metric .tile.purple { background: #f0eafa; color: #714b9a }
.metric .tile.amber { background: #fff1da; color: #8b5415 }
.workspace-grid { display: grid; grid-template-columns: minmax(217px,245px) minmax(0,1fr); gap: 12px; align-items: start }
.filter-rail { max-height: calc(100vh - 24px); overflow: auto; position: sticky; top: 12px; scrollbar-width: thin }
.filter-heading { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line) }
.filter-heading h2 { font-size: 16px }
.filter-heading .minor { min-height: 28px; font-size: 12px }
.filter-rail .filters { display: block; padding: 12px 14px 15px }
.filter-rail .base-filters, .filter-rail .extra-filters { display: grid; grid-template-columns: minmax(0,1fr); align-items: initial; gap: 10px; width: 100%; margin: 0 }
.filter-rail .extra-filters { margin-top: 11px }
.filter-rail .extra-filters[hidden] { display: none }
.filter-rail label { min-width: 0; color: var(--muted); font-size: 12px; font-weight: 650 }
.filter-rail select, .filter-rail input { min-width: 0; width: 100%; max-width: none; min-height: 35px; background: #f7fafe; color: var(--ink); font-size: 13px; border-color: var(--line) }
.filter-rail #more-filters { width: 100%; justify-content: space-between; margin-top: 1px; font-size: 12px }
.filter-rail #more-filters::after { content: '+'; font-weight: 750; font-size: 16px; line-height: 1 }
.filter-rail #more-filters[aria-expanded=true]::after { content: '−' }
.directory { min-width: 0 }
.sectiontop { padding: 12px 16px }
.sectiontop h2 { font-size: 24px; margin: 0 }
.searchrow { margin-inline: 16px }
.primary:hover { background: #0e4686 }
.presets { display: flex; flex-wrap: wrap; gap: 7px; padding: 11px 16px 5px }
.presets[hidden] { display: none }
.presets button { min-height: 28px; border: 1px solid var(--line); border-radius: 20px; padding: 3px 10px; background: #f5f9fc; color: #304d68; font-size: 12px; font-weight: 650 }
.presets button[aria-pressed=true] { background: #dceefb; border-color: #aecfea; color: #124f8d }
#chips, #worktools { padding-inline: 16px }
#graphs { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 0; padding: 9px 13px; background: #f6f9fc; border-block: 1px solid var(--line) }
#graphs[hidden] { display: none }
#graphs .viz { min-height: 121px; padding: 9px 10px; border-color: var(--line); border-radius: 9px }
#graphs .chart-title { margin-bottom: 6px }
#graphs .chart-title h3 { font-size: 13px }
#graphs .chart-title small { display: none }
#graphs .viz:last-child { grid-column: auto }
#graphs .donut { width: 67px }
#graphs .ring-grid { grid-template-columns: minmax(50px,69px) 1fr; gap: 5px }
#graphs .legenditem { gap: 4px }
#graphs .hbar { gap: 6px }
.tablewrap th { background: #eef5fa; color: #3b526b; text-transform: none; letter-spacing: 0 }
.tablewrap tbody tr:nth-child(even) { background: #fbfdff }
.tablewrap tbody tr:hover { background: #eef7ff }
.tablewrap th, .tablewrap td { padding-inline: 12px }
.tablewrap td:first-child { min-width: 210px }
.verification-pill { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; border-radius: 20px; padding: 3px 8px; background: #eef3f8; color: #4b6079; font-size: 11px; font-weight: 650 }
.verification-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #7289a2 }
.verification-pill.checked { background: #e0f7ed; color: #176748 }
.verification-pill.checked::before { background: #21845b }
@media (max-width:1040px) {
  .workspace-grid { grid-template-columns: minmax(190px,218px) minmax(0,1fr) }
  #graphs { grid-template-columns: repeat(2,minmax(0,1fr)) }
  #graphs .viz:last-child { grid-column: 1/-1 }
}
@media (max-width:760px) {
  .mast-inner { flex-wrap: wrap; gap: 6px 12px }
  .mast-tools { display: flex; order: 2; margin-left: 0; gap: 12px }
  .main-nav { order: 3 }
  .shell .wrap { padding-top: 12px }
  .hero { padding: 17px 15px }
  .hero-copy { max-width: 82% }
  .hero-art { width: 65% }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin: 9px 0 }
  .metric, .metric:nth-child(n) { padding: 9px; min-height: 64px }
  .workspace-grid { grid-template-columns: minmax(0,1fr); gap: 8px }
  .filter-rail { position: static; max-height: none }
  .filter-rail .base-filters, .filter-rail .extra-filters { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px }
  .filter-rail #more-filters { grid-column: 1/-1 }
}
@media (max-width:490px) {
  #graphs { grid-template-columns: minmax(0,1fr) }
  .hero-art { opacity: .46 }
  .metric .tile { width: 30px; height: 30px }
}
.filter-rail select[multiple] { height: 105px; padding: 4px }
.filterchip { background: #e6f1fb; color: #215486 }
.clearfilters { color: #215486 }
