:root {
  --page: #f2f5f4;
  --surface: #ffffff;
  --surface-soft: #f7f9f8;
  --ink: #17211e;
  --muted: #68746f;
  --line: #dce4e0;
  --brand: #16815c;
  --brand-dark: #102f27;
  --brand-soft: #e7f4ee;
  --lime: #c9ef54;
  --blue: #3975a8;
  --blue-soft: #eaf2f8;
  --amber: #b97823;
  --amber-soft: #fff2dc;
  --coral: #b94f58;
  --coral-soft: #fbeaec;
  --violet: #7462a5;
  --violet-soft: #f0edfa;
  --shadow: 0 12px 34px rgba(26, 44, 37, .07);
  color: var(--ink);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

button, input, select { font: inherit; }
button { letter-spacing: 0; }

.report-hero {
  background: linear-gradient(128deg, #102821 0%, #174f3f 70%, #1d6c50 100%);
  color: #fff;
}

.hero-inner,
.nav-inner,
.report-main,
.report-footer {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
}

.hero-inner { padding: 28px 0 26px; }

.hero-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.brand-lockup {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: var(--lime);
  font-size: 15px;
  font-weight: 900;
}

.brand-copy strong,
.brand-copy span { display: block; }
.brand-copy strong { font-size: 16px; }
.brand-copy span { margin-top: 2px; color: #bed0c9; font-size: 13px; }

.hero-status {
  display: flex;
  max-width: 360px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: #d7e5df;
  font-size: 13px;
}

.hero-status::before {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(201,239,84,.13);
  content: "";
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-top: 42px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #a9e9cb;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 900px;
  margin-bottom: 0;
  font-size: 54px;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-summary {
  margin: 0;
  color: #d3e1dc;
  font-size: 17px;
  line-height: 1.55;
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
}

.hero-kpi {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}

.hero-kpi span,
.hero-kpi strong,
.hero-kpi small { display: block; }
.hero-kpi span { color: #bed0c9; font-size: 13px; }
.hero-kpi strong { margin-top: 6px; font-size: 31px; line-height: 1.08; }
.hero-kpi small { margin-top: 5px; color: #d5e2dd; font-size: 12px; line-height: 1.35; }

.report-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(242,245,244,.94);
  backdrop-filter: blur(16px);
}

.nav-inner {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tabs {
  display: flex;
  min-width: 0;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab-button,
.segment-button,
.icon-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.tab-button {
  min-height: 40px;
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.tab-button:hover,
.tab-button[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(23,33,30,.06);
}

.nav-tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.nav-tools label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

select,
.table-search {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: var(--surface);
  color: var(--ink);
}

select {
  min-width: 132px;
  appearance: none;
  padding: 8px 34px 8px 11px;
  background-image: linear-gradient(45deg, transparent 50%, #6b7772 50%), linear-gradient(135deg, #6b7772 50%, transparent 50%);
  background-position: calc(100% - 15px) 16px, calc(100% - 10px) 16px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

select:focus,
.table-search:focus { border-color: #77b59c; box-shadow: 0 0 0 3px rgba(22,129,92,.1); }

.back-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.back-link:hover { border-color: #98bcae; color: var(--brand); }

.report-main { padding: 28px 0 64px; }

.report-panel[hidden] { display: none; }
.report-panel { animation: panel-in .18s ease-out; }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 16px;
}

.section-head + .grid,
.section-head + .card { margin-bottom: 28px; }

h2 { margin-bottom: 0; font-size: 34px; line-height: 1.12; letter-spacing: 0; }
h3 { margin-bottom: 6px; font-size: 19px; line-height: 1.2; letter-spacing: 0; }
.section-note { max-width: 620px; margin: 0; color: var(--muted); font-size: 14px; text-align: right; }

.insight-banner {
  display: grid;
  grid-template-columns: minmax(180px, .38fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 16px;
  padding: 18px 20px;
  border: 1px solid #c8dfd4;
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  background: var(--brand-soft);
}

.insight-banner strong { font-size: 18px; }
.insight-banner p { margin: 0; color: #486157; font-size: 15px; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); }
.grid-equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack { display: grid; gap: 16px; }

.card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  min-height: 48px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

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

.status-pill,
.value-pill {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.status-pill { background: var(--brand-soft); color: #126a4b; }
.status-pill.warn { background: var(--amber-soft); color: #895716; }
.status-pill.risk { background: var(--coral-soft); color: #963f47; }
.status-pill.info { background: var(--blue-soft); color: #2f648d; }

.chart-frame {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid #e9eeeb;
  border-radius: 8px;
  background: #fbfcfb;
}

.chart-frame svg { display: block; width: 100%; height: 300px; }
.chart-grid { stroke: #e3e9e6; stroke-width: 1; }
.axis-text { fill: #74807b; font-size: 12px; }
.chart-line { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-line.secondary { stroke: var(--blue); }
.chart-area { fill: rgba(22,129,92,.09); }
.chart-dot { fill: var(--brand); stroke: #fff; stroke-width: 3; }
.chart-dot.secondary { fill: var(--blue); }
.chart-label { fill: #30594a; font-size: 11px; font-weight: 800; paint-order: stroke; stroke: #fff; stroke-width: 4; stroke-linejoin: round; }
.chart-bar { fill: #9dcfba; }
.chart-bar.secondary { fill: #7fa6c5; }
.chart-bar.highlight { fill: var(--brand); }
.chart-bar.warn { fill: #d5a65e; }
.chart-bar.risk { fill: #d47a82; }

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

.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; background: var(--brand); }
.legend i.blue { background: var(--blue); }
.legend i.amber { background: var(--amber); }
.legend i.coral { background: var(--coral); }

.metric-list { display: grid; gap: 9px; }
.metric-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
  padding: 11px 12px;
  border: 1px solid #e7ece9;
  border-radius: 8px;
  background: var(--surface-soft);
}

.metric-row b { font-size: 14px; }
.metric-row strong { font-size: 16px; }
.metric-row small { color: var(--muted); font-size: 12px; }
.metric-row .mini-track { grid-column: 1 / -1; }

.mini-track { height: 7px; overflow: hidden; border-radius: 99px; background: #e8eeeb; }
.mini-track i { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.mini-track i.blue { background: var(--blue); }
.mini-track i.amber { background: var(--amber); }
.mini-track i.coral { background: var(--coral); }
.mini-track i.violet { background: var(--violet); }

.summary-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.summary-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.summary-card span,
.summary-card strong,
.summary-card small { display: block; }
.summary-card span { color: var(--muted); font-size: 12px; }
.summary-card strong { margin: 8px 0 5px; font-size: 23px; line-height: 1.1; }
.summary-card small { color: var(--muted); font-size: 12px; line-height: 1.35; }

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.table-toolbar p { margin: 0; color: var(--muted); font-size: 13px; }
.table-search { width: min(320px, 100%); padding: 8px 11px; }

.table-shell { overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  background: #f6f8f7;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
}

td { padding: 12px; border-bottom: 1px solid #e9eeeb; vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f8fbfa; }
.num-cell { text-align: right; white-space: nowrap; }
.cell-title { display: block; font-weight: 750; }
.cell-note { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }

.segment-control {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf2ef;
}

.segment-button { min-height: 32px; padding: 6px 10px; border-radius: 6px; font-size: 13px; font-weight: 700; }
.segment-button:hover,
.segment-button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 6px rgba(23,33,30,.08); }

.priority-list { display: grid; gap: 10px; }
.priority-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.priority-index { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-weight: 850; }
.priority-item h3 { margin: 0; font-size: 16px; }
.priority-item p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.quote-list { display: grid; gap: 9px; }
.quote-item { padding: 13px 14px; border-left: 4px solid #bfd9ce; border-radius: 0 8px 8px 0; background: #f7f9f8; color: #41504a; font-size: 14px; }

.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.topic-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.topic-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.topic-card h3 { margin: 0; font-size: 17px; }
.topic-card p { margin: 10px 0 0; color: var(--muted); font-size: 13px; }

.scenario-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.scenario-card { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.scenario-card strong { display: block; font-size: 22px; }
.scenario-card span { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }

.empty-row[hidden] { display: none; }
.empty-row td { padding: 28px; color: var(--muted); text-align: center; }

.report-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.report-footer a { color: var(--brand); font-weight: 700; text-decoration: none; }

@media (max-width: 1080px) {
  h1 { font-size: 46px; }
  .hero-copy { grid-template-columns: 1fr; gap: 18px; }
  .hero-kpis, .summary-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2, .grid-equal { grid-template-columns: 1fr; }
  .grid-3, .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .hero-inner, .nav-inner, .report-main, .report-footer { width: min(100% - 24px, 1440px); }
  .hero-inner { padding-top: 18px; }
  .hero-top { display: grid; }
  .hero-status { max-width: none; }
  .hero-copy { margin-top: 28px; }
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }
  .hero-kpi strong { font-size: 24px; }
  .hero-kpis { grid-template-columns: 1fr 1fr; }
  .nav-inner { align-items: stretch; flex-direction: column; padding: 8px 0; }
  .nav-tools { justify-content: space-between; }
  .nav-tools label { display: none; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .section-note { text-align: left; }
  .insight-banner { grid-template-columns: 1fr; gap: 7px; }
  .grid-3, .grid-4, .topic-grid, .scenario-grid { grid-template-columns: 1fr; }
  .chart-frame, .chart-frame svg { min-height: 250px; height: 250px; }
  .table-toolbar { align-items: stretch; flex-direction: column; }
  .table-search { width: 100%; }
  .priority-item { grid-template-columns: 42px minmax(0, 1fr); }
  .priority-item .status-pill { grid-column: 2; justify-self: start; }
  .report-footer { flex-direction: column; }
}

@media (max-width: 460px) {
  body { font-size: 16px; }
  .hero-kpis, .summary-cards { grid-template-columns: 1fr; }
  .nav-tools select { min-width: 0; max-width: 150px; }
  .back-link { padding-inline: 9px; }
  .card { padding: 15px; }
  .segment-control { width: 100%; overflow-x: auto; }
  .segment-button { flex: 1 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .report-panel { animation: none; }
}
