:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #101827;
  color: #f3f6fc;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at 85% -15%, #294869 0, transparent 40%),
              radial-gradient(circle at -10% 95%, #173b41 0, transparent 38%),
              #101827;
}

.page-shell { max-width: 1120px; margin: 0 auto; padding: 64px 24px 36px; }
.page-header { margin-bottom: 34px; }
.eyebrow, .card-kicker { margin: 0 0 12px; color: #7bc9c2; font-size: .77rem; font-weight: 750; letter-spacing: .17em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2.7rem, 7vw, 5.2rem); letter-spacing: -.055em; line-height: 1.05; }
.intro { max-width: 660px; margin: 18px 0 24px; color: #b7c6d8; font-size: 1.1rem; line-height: 1.6; }
.intro strong { color: #fff; }
.update-bar { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 8px 13px; border: 1px solid #365263; border-radius: 999px; color: #d1e1e9; background: #192b3a; font-size: .88rem; }
.pulse { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #75dfc1; box-shadow: 0 0 0 4px #75dfc120; }
.warning { color: #ffd09c; }
.cycle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cycle-card { padding: 30px; border: 1px solid #30445a; border-radius: 22px; background: linear-gradient(145deg, #1c2d43, #172436); box-shadow: 0 18px 45px #050b1660; }
.card-heading { margin-bottom: 25px; }
.card-kicker { color: #90aeca; }
h2 { margin: 0; font-size: 1.75rem; letter-spacing: -.025em; }
.metric { padding: 20px 0; border-top: 1px solid #35485b; }
.metric-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 9px; color: #c3d1df; font-size: .96rem; }
.metric-value { display: block; color: #fff; font-size: clamp(2.2rem, 4vw, 3.2rem); font-variant-numeric: tabular-nums; letter-spacing: -.045em; line-height: 1.1; }
.metric small { display: block; margin-top: 7px; color: #9db0c1; font-size: .84rem; }
.badge { flex: none; padding: 5px 9px; border-radius: 999px; background: #314153; color: #d4deea; font-size: .72rem; font-weight: 700; }
.badge.met { background: #15483e; color: #9cf0d1; }
.badge.unmet { background: #5c3b2b; color: #ffd4b4; }
.standing { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 7px; padding-top: 25px; border-top: 1px solid #35485b; }
.standing div { display: flex; flex-direction: column; gap: 7px; }
.standing span { color: #a5b9cc; font-size: .86rem; }
.standing strong { color: #f3f6fc; font-size: 1.12rem; font-variant-numeric: tabular-nums; }
footer { display: flex; justify-content: space-between; gap: 15px; margin-top: 27px; color: #9eb0c2; font-size: .82rem; }
footer p { margin: 0; }
a { color: #9be4d7; }
a:hover { color: #d2fff5; }

.targets-card { margin-top: 20px; padding: 30px; border: 1px solid #30445a; border-radius: 22px; background: #18283b; box-shadow: 0 18px 45px #050b1660; }
.targets-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.targets-heading h2 { font-size: 1.8rem; }
.targets-heading #target-summary { max-width: 670px; margin: 12px 0 0; color: #d1dfed; line-height: 1.55; }
.targets-heading .target-note { max-width: 670px; margin: 12px 0 0; color: #9eb2c5; font-size: .85rem; line-height: 1.55; }
.filter-label { display: flex; flex-direction: column; gap: 8px; min-width: 250px; color: #aec1d4; font-size: .82rem; }
.filter-label input { width: 100%; padding: 11px 13px; border: 1px solid #466077; border-radius: 9px; outline: none; background: #101d2d; color: #fff; font: inherit; font-size: .92rem; }
.filter-label input:focus { border-color: #78ddca; box-shadow: 0 0 0 3px #78ddca30; }
.filter-label input::placeholder { color: #8196aa; }
.result-count { margin: 25px 0 9px; color: #9fb4c8; font-size: .8rem; }
.table-wrap { max-height: 490px; overflow: auto; border: 1px solid #344a61; border-radius: 11px; }
table { width: 100%; min-width: 610px; border-collapse: separate; border-spacing: 0; font-size: .88rem; }
caption { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
th { position: sticky; top: 0; z-index: 1; padding: 13px 16px; background: #243b51; color: #dceaf5; text-align: left; font-size: .78rem; letter-spacing: .03em; }
td { padding: 11px 16px; border-top: 1px solid #304358; color: #e4ecf5; }
tbody tr:nth-child(even) { background: #ffffff06; }
tbody tr:hover { background: #ffffff10; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.category-cell { color: #a9c2d7; white-space: nowrap; }
.needed-cell { color: #a1ead7; font-weight: 750; }

@media (max-width: 730px) {
  .page-shell { padding: 40px 16px 28px; }
  .cycle-grid { grid-template-columns: 1fr; }
  .cycle-card { padding: 23px; }
  .targets-card { padding: 23px; }
  .targets-heading { flex-direction: column; align-items: stretch; }
  .filter-label { min-width: 0; }
  footer { flex-direction: column; }
}
