:root {
  --navy: #1F3864; --gold: #B8860B; --light: #F2F2F2;
  --green: #375623; --amber: #BF8F00; --red: #C00000; --black: #000000;
}
* { box-sizing: border-box; }
body { font-family: "Segoe UI", Arial, sans-serif; background: #f6f7f9; color: #222; margin: 0; padding: 24px; }
.wrap { max-width: 1180px; margin: 0 auto; }
h1 { color: var(--navy); font-size: 22px; margin: 0 0 4px; }
h2 { color: var(--navy); font-size: 16px; margin: 24px 0 8px; }
.eyebrow { color: var(--gold); font-weight: 700; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.subtitle { color: #666; font-size: 13px; margin-bottom: 20px; }
.toolbar { display: flex; gap: 12px; align-items: end; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar label { display: block; font-size: 12px; color: #555; margin-bottom: 4px; }
.toolbar select, .toolbar input, .toolbar button, button, input, select {
  padding: 8px 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; font-family: inherit;
}
.toolbar button, .btn { background: var(--navy); color: #fff; border: none; cursor: pointer; font-weight: 600; }
.btn.secondary { background: #fff; color: var(--navy); border: 1px solid var(--navy); }
.card { background: #fff; border-radius: 6px; padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.health-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.health-score { font-size: 30px; font-weight: 800; color: #fff; border-radius: 8px; width: 120px; height: 90px; display: flex; align-items: center; justify-content: center; text-align:center; }
.health-meta { flex: 1; min-width: 260px; }
.health-band { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.health-action { color: #444; font-size: 13px; }
.floor-note { margin-top: 8px; padding: 8px 12px; background: #FDECEC; border-left: 4px solid var(--red); font-size: 13px; color: #7a0000; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #e6e6e6; font-size: 12.5px; vertical-align: top; }
th { background: var(--navy); color: #fff; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
tr:last-child td { border-bottom: none; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.muted { color: #999; font-style: italic; }
.mono { font-family: "Cascadia Code", Consolas, monospace; font-size: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
fieldset { border: 1px solid #e2e2e2; border-radius: 6px; padding: 12px 14px; margin-bottom: 14px; }
legend { color: var(--navy); font-weight: 700; font-size: 13px; padding: 0 6px; }
.field { margin-bottom: 10px; }
.field label { display:block; font-size: 12px; color: #555; margin-bottom: 3px; }
.field input[type=range] { width: 100%; }
.field .val { font-weight: 700; margin-left: 6px; }
.note { font-size: 11px; color: #888; }
a { color: var(--navy); }
.top-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.assumption { background: #FFF7E0; border-left: 4px solid var(--gold); padding: 10px 14px; font-size: 12.5px; color: #6b5000; margin-bottom: 16px; }
.navbar { display: flex; justify-content: space-between; align-items: center; background: var(--navy); padding: 10px 16px; border-radius: 6px; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.navbar-links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-link { color: #cfd8e8; text-decoration: none; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 4px; }
.nav-link:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-link.active { background: #fff; color: var(--navy); }
.navbar-user { color: #cfd8e8; font-size: 12px; }
.navbar-user a { color: #fff; }
.chart-card { background: #fff; border-radius: 6px; padding: 16px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.chart-card canvas { max-height: 320px; }
