:root {
  --ink: #17222d;
  --muted: #61707c;
  --paper: #f5f8fa;
  --white: #ffffff;
  --line: #dce5ea;
  --blue: #126a92;
  --blue-soft: #e6f2f7;
  --green: #14745d;
  --green-soft: #e4f3ed;
  --orange: #986018;
  --orange-soft: #fff0de;
  --shadow: 0 10px 28px rgba(24, 47, 63, 0.07);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 254px minmax(0, 1fr); }
.sidebar { background: #1b2b36; color: #eef6f8; padding: 28px 20px 22px; display: flex; flex-direction: column; min-height: 100vh; }
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #54c4d8; color: #bfeaf1; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.eyebrow { margin: 0 0 6px; font-size: 10px; line-height: 1.1; letter-spacing: .13em; text-transform: uppercase; font-weight: 800; color: #9ab0bb; }
.eyebrow.blue { color: var(--blue); }
.sidebar h1 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.sidebar-summary { margin: 30px 0 34px; color: #b6c9d1; font-size: 13px; line-height: 1.6; }
.nav-list { display: grid; gap: 5px; }
.nav-item { border: 0; background: transparent; color: #bfd0d7; min-height: 42px; padding: 0 11px; display: flex; align-items: center; gap: 11px; text-align: left; cursor: pointer; font-size: 13px; }
.nav-item:hover { color: white; background: rgba(255,255,255,.06); }
.nav-item.active { color: white; background: #285163; box-shadow: inset 3px 0 0 #58c8d8; }
.nav-icon { width: 17px; text-align: center; color: #83cfda; font-weight: 800; }
.sidebar-footer { margin-top: auto; border-top: 1px solid rgba(255,255,255,.13); padding-top: 19px; display: grid; gap: 13px; }
.sidebar-stat { display: flex; justify-content: space-between; align-items: baseline; color: #9fb5be; font-size: 12px; }
.sidebar-stat strong { color: #f0fbfd; font-size: 20px; }
.privacy-note { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #a5c1c8; padding-top: 7px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #58c8a8; }

.main-content { min-width: 0; padding: 0 46px 34px; }
.topbar { min-height: 78px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.breadcrumb { margin: 0 0 4px; color: var(--muted); font-size: 12px; }
.breadcrumb span { margin: 0 6px; color: #a4b3ba; }
.breadcrumb strong { color: var(--ink); }
.updated-line { margin: 0; color: #85949d; font-size: 11px; }
.top-actions { display: flex; gap: 8px; }
.button { border: 1px solid transparent; min-height: 36px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; font-size: 12px; font-weight: 750; white-space: nowrap; }
.button-primary { background: var(--blue); color: white; border-color: var(--blue); }
.button-primary:hover { background: #0f5879; }
.button-secondary { background: white; border-color: var(--line); color: var(--blue); }
.button-secondary:hover, .button-quiet:hover { background: var(--blue-soft); }
.button-quiet { background: transparent; border-color: var(--line); color: var(--muted); }

.page-intro { padding: 42px 0 22px; display: flex; justify-content: space-between; align-items: end; gap: 28px; }
.page-intro h2 { margin: 0; font-size: clamp(26px, 3vw, 37px); letter-spacing: -.04em; line-height: 1.1; }
.page-description { max-width: 760px; margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.source-rule { flex: 0 0 285px; border-left: 3px solid #54c4d8; background: var(--blue-soft); padding: 12px 16px; color: #345a68; font-size: 12px; line-height: 1.4; }
.rule-icon { color: var(--green); font-weight: 900; font-size: 18px; float: left; margin-right: 9px; }

.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.metric-card { min-height: 112px; background: var(--white); border: 1px solid var(--line); padding: 16px 18px; box-shadow: var(--shadow); border-top: 3px solid var(--blue); }
.metric-card.accent-green { border-top-color: var(--green); }
.metric-card.accent-orange { border-top-color: #de9a42; }
.metric-card.accent-blue { border-top-color: #54c4d8; }
.metric-label { display: block; color: var(--muted); font-size: 11px; font-weight: 750; }
.metric-card strong { display: block; margin-top: 11px; font-size: 29px; line-height: 1; letter-spacing: -.04em; }
.metric-note { display: block; margin-top: 8px; color: #88969e; font-size: 11px; }

.assistant-strip { background: var(--white); border: 1px solid var(--line); padding: 14px 16px; display: grid; grid-template-columns: 210px minmax(240px, 1fr) minmax(240px, .95fr); gap: 17px; align-items: center; box-shadow: var(--shadow); margin-bottom: 19px; }
.assistant-copy { display: flex; gap: 10px; align-items: center; }
.assistant-copy h3 { margin: 0; font-size: 15px; }
.assistant-icon { width: 32px; height: 32px; display: grid; place-items: center; background: var(--ink); color: #bfeaf1; font-weight: 850; font-size: 15px; }
.assistant-form { display: flex; gap: 7px; }
.assistant-form input, .search-wrap input, select { width: 100%; min-width: 0; min-height: 36px; border: 1px solid var(--line); background: #fbfdfe; color: var(--ink); padding: 0 11px; outline: none; }
.assistant-form input:focus, .search-wrap input:focus, select:focus { border-color: #59b5c5; box-shadow: 0 0 0 2px rgba(84,196,216,.16); }
.assistant-answer { color: var(--muted); font-size: 12px; line-height: 1.45; }
.assistant-answer strong { color: var(--ink); }
.assistant-answer a { color: var(--blue); font-weight: 750; }

.manager-view { display: grid; gap: 15px; margin-bottom: 20px; }
.manager-view[hidden] { display: none; }
.manager-hero { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 22px; align-items: end; padding: 20px 0 4px; }
.manager-hero h3 { margin: 0; font-size: 25px; letter-spacing: -.03em; }
.manager-hero p:not(.eyebrow) { max-width: 830px; margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.manager-rule { border-left: 3px solid var(--green); background: var(--green-soft); padding: 13px 16px; color: #356453; font-size: 12px; line-height: 1.45; }
.manager-rule strong, .manager-rule span { display: block; }
.manager-rule span { margin-top: 4px; }
.manager-conclusion { border: 1px solid #b8dce7; border-left: 4px solid var(--blue); background: var(--blue-soft); padding: 16px 19px; }
.manager-conclusion h4 { margin: 0; color: var(--ink); font-size: 17px; letter-spacing: -.02em; }
.manager-conclusion p:last-child { max-width: 900px; margin: 6px 0 0; color: #3b5f6c; font-size: 12px; line-height: 1.5; }
.benchmark-heading { display: flex; justify-content: space-between; align-items: end; gap: 15px; padding-top: 4px; }
.benchmark-heading h4 { margin: 0; font-size: 18px; }
.benchmark-wrap { overflow: auto; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.benchmark-table { width: 100%; min-width: 1380px; border-collapse: collapse; font-size: 12px; }
.benchmark-table th { position: static; }
.benchmark-table td { padding: 13px 12px; }
.benchmark-table td:nth-child(1) { width: 18%; }
.benchmark-table td:nth-child(2) { width: 23%; }
.benchmark-table td:nth-child(3), .benchmark-table td:nth-child(4), .benchmark-table td:nth-child(5) { min-width: 145px; }
.tier-money { min-width: 125px; }
.tier-money strong, .tier-money small { display: block; }
.tier-money strong { color: var(--ink); font-size: 12px; white-space: nowrap; }
.tier-money small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.3; white-space: nowrap; }
.not-stated { color: #8b999f; font-size: 11px; font-style: italic; }
.range-key { display: flex; gap: 10px; align-items: baseline; padding: 10px 13px; border: 1px solid var(--line); border-top: 0; background: #fbfdfe; color: var(--muted); font-size: 11px; line-height: 1.45; }
.range-key strong { flex: 0 0 auto; color: var(--blue); font-size: 11px; }
.range-key b { color: var(--ink); }
.evidence-legend { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); gap: 10px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); }
.evidence-legend > div { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-content: start; }
.evidence-legend .eyebrow { grid-column: 1 / -1; }
.evidence-legend strong { color: var(--blue); font-size: 18px; line-height: 1.1; }
.evidence-legend span { color: var(--muted); font-size: 10px; line-height: 1.4; }
.manager-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 15px; }
.manager-panel { background: var(--white); border: 1px solid var(--line); padding: 16px 18px; box-shadow: var(--shadow); }
.manager-panel h4 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.manager-panel > p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.scope-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 13px; }
.scope-links a { display: block; border-left: 2px solid #54c4d8; background: #f4fafb; padding: 10px 11px; text-decoration: none; }
.scope-links a:hover { background: var(--blue-soft); }
.scope-links strong, .scope-links span { display: block; }
.scope-links strong { color: var(--blue); font-size: 12px; }
.scope-links span { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.discipline-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.discipline-list li { display: grid; grid-template-columns: 155px 1fr; gap: 8px; padding-top: 8px; border-top: 1px solid #e8eef1; }
.discipline-list strong { font-size: 11px; }
.discipline-list span { color: var(--muted); font-size: 11px; line-height: 1.4; }
.market-lanes { background: var(--white); border: 1px solid var(--line); padding: 16px 18px; box-shadow: var(--shadow); }
.market-lanes h4 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.lane-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 13px; }
.lane-grid > div { border-top: 2px solid #c9dde3; padding: 9px 9px 4px; }
.lane-grid strong, .lane-grid span { display: block; }
.lane-grid strong { color: var(--ink); font-size: 11px; }
.lane-grid span { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }

.grade-badge { display: inline-flex; min-width: 23px; justify-content: center; padding: 4px 6px; border: 1px solid; font-size: 10px; font-weight: 850; line-height: 1; }
.grade-a { color: var(--green); background: var(--green-soft); border-color: #b9dfd0; }
.grade-b { color: var(--blue); background: var(--blue-soft); border-color: #b8dce7; }
.grade-c { color: var(--orange); background: var(--orange-soft); border-color: #f0d6b5; }
.grade-d { color: #785a46; background: #f4eee8; border-color: #dfcbbb; }
.grade-basis { display: block; max-width: 170px; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.source-warning { display: flex; gap: 6px; max-width: 270px; margin-top: 6px; color: #7a5c3a; font-size: 10px; line-height: 1.35; }
.source-warning span { flex: 0 0 14px; display: inline-grid; place-items: center; width: 14px; height: 14px; background: var(--orange-soft); color: var(--orange); border: 1px solid #f0d6b5; font-weight: 900; }

.controls { display: grid; grid-template-columns: minmax(220px, 1fr) 145px 165px auto; gap: 9px; align-items: end; margin-bottom: 21px; }
.search-wrap { position: relative; }
.search-wrap input { padding-left: 32px; }
.search-icon { position: absolute; left: 11px; top: 9px; color: var(--blue); font-weight: 800; }
.select-wrap { display: grid; gap: 5px; }
.select-wrap span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
select { appearance: auto; }

.table-section { background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.table-heading { padding: 18px 19px 14px; display: flex; justify-content: space-between; align-items: end; gap: 15px; border-bottom: 1px solid var(--line); }
.table-heading h3, .downloads h3 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.result-count { color: var(--muted); font-size: 11px; font-weight: 750; }
.table-wrap { overflow: auto; max-height: 620px; }
table { width: 100%; min-width: 1080px; border-collapse: collapse; font-size: 12px; }
th { position: sticky; top: 0; z-index: 1; background: #edf4f6; color: #46606c; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; text-align: left; padding: 10px 12px; border-bottom: 1px solid #cddde3; white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid #e8eef1; vertical-align: top; line-height: 1.4; }
tbody tr:hover { background: #f8fbfc; }
.id-label { color: var(--blue); font-weight: 850; font-size: 11px; }
.role-title { font-weight: 780; color: var(--ink); max-width: 250px; }
.role-location { margin-top: 3px; color: var(--muted); font-size: 11px; }
.money-source strong, .money-rwf strong { display: block; color: var(--ink); font-size: 12px; }
.money-source small, .money-rwf small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.money-source a { color: var(--blue); font-size: 10px; font-weight: 800; text-decoration: none; }
.money-source a:hover { text-decoration: underline; }
.badge { display: inline-flex; align-items: center; padding: 4px 7px; border: 1px solid var(--line); font-size: 10px; font-weight: 780; line-height: 1.25; }
.badge.official { background: var(--green-soft); color: var(--green); border-color: #b9dfd0; }
.badge.secondary { background: var(--orange-soft); color: var(--orange); border-color: #f0d6b5; }
.badge.direct { background: var(--blue-soft); color: var(--blue); border-color: #b8dce7; }
.status-text { max-width: 260px; color: var(--muted); font-size: 11px; }
.open-source { color: var(--blue); font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.open-source:hover { text-decoration: underline; }
.empty-state { padding: 35px 20px; text-align: center; color: var(--muted); }

.downloads { margin-top: 20px; padding: 19px; background: var(--white); border: 1px solid var(--line); display: grid; grid-template-columns: .85fr 1.15fr; gap: 30px; align-items: center; }
.downloads p:not(.eyebrow) { color: var(--muted); max-width: 500px; font-size: 12px; line-height: 1.5; }
.download-list { display: grid; gap: 7px; }
.download-item { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); text-decoration: none; }
.download-item:hover { background: var(--blue-soft); border-color: #9bcbd8; }
.file-icon { color: var(--green); font-size: 10px; font-weight: 900; }
.download-item strong, .download-item small { display: block; }
.download-item strong { font-size: 12px; }
.download-item small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.download-arrow { color: var(--blue); font-weight: 900; }
.site-footer { display: flex; justify-content: space-between; gap: 15px; padding: 22px 2px 0; color: #7b8a93; font-size: 10px; }
.signals-panel { margin-top: 18px; padding: 19px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); }
.signals-panel h4 { margin: 0; font-size: 18px; }
.signals-panel p:not(.eyebrow) { max-width: 760px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.signals-panel .table-wrap { margin-top: 15px; max-height: 420px; }
.site-footer a { color: var(--blue); text-decoration: none; font-weight: 750; }
.site-footer a:hover { text-decoration: underline; }
.footer-sep { padding: 0 6px; color: #b3c0c5; }

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 205px minmax(0, 1fr); }
  .main-content { padding: 0 26px 30px; }
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assistant-strip { grid-template-columns: 1fr 1.2fr; }
  .assistant-answer { grid-column: 1 / -1; }
  .downloads { grid-template-columns: 1fr; }
  .manager-hero, .manager-grid { grid-template-columns: 1fr; }
  .evidence-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { min-height: unset; padding: 16px; }
  .sidebar-summary, .sidebar-footer { display: none; }
  .nav-list { margin-top: 16px; display: flex; overflow: auto; gap: 5px; }
  .nav-item { flex: 0 0 auto; min-height: 36px; }
  .main-content { padding: 0 14px 24px; }
  .topbar { min-height: 68px; align-items: flex-start; padding: 14px 0; }
  .top-actions { gap: 5px; }
  .top-actions .button-secondary { display: none; }
  .page-intro { display: block; padding: 28px 0 18px; }
  .source-rule { margin-top: 18px; }
  .metrics-grid { gap: 7px; }
  .metric-card { min-height: 96px; padding: 12px; }
  .metric-card strong { font-size: 24px; }
  .metric-note { font-size: 10px; }
  .assistant-strip { display: block; }
  .assistant-form { margin-top: 12px; }
  .assistant-answer { margin-top: 12px; }
  .manager-hero { display: block; }
  .manager-rule { margin-top: 15px; }
  .evidence-legend { grid-template-columns: 1fr; }
  .scope-links { grid-template-columns: 1fr; }
  .lane-grid { grid-template-columns: 1fr; }
  .discipline-list li { grid-template-columns: 1fr; gap: 3px; }
  .controls { grid-template-columns: 1fr 1fr; }
  .search-wrap { grid-column: 1 / -1; }
  .controls .button { grid-column: 2; }
  .site-footer { display: block; line-height: 1.7; }
  .site-footer > span { display: block; }
}
