:root {
  color-scheme: light;
  --ink: #182b36;
  --muted: #516773;
  --edge: #dbe5e8;
  --green: #086c62;
  --red: #ac3d47;
  --blue: #426989;
  font: 16px/1.5 system-ui, sans-serif;
  color: var(--ink);
  background: #f3f7f8;
}
* { box-sizing: border-box; }
body { margin: 0; }
header { display: flex; align-items: center; gap: .8rem; padding: 1.1rem max(5vw, calc((100vw - 1300px)/2)); background: #142e3a; color: white; }
header span { color: #b7e9dd; font-size: .85rem; }
header a { margin-left: auto; color: white; }
main { width: min(90%, 1300px); margin: 2rem auto 4rem; }
.intro { border-bottom: 1px solid var(--edge); padding-bottom: 1rem; }
h1, h2, p { margin: 0 0 .45rem; }
h1 { font-size: clamp(2rem,4vw,3.55rem); letter-spacing: -.05em; line-height: 1.05; }
h2 { font-size: 1.3rem; letter-spacing: -.025em; }
p, figcaption, li { color: var(--muted); }
.eyebrow { font-size: .82rem; font-weight: 720; color: var(--green); }
.filters, .heading, .tabs { display: flex; flex-wrap: wrap; align-items: end; gap: .7rem; }
.filters { margin: 1rem 0; }
.heading { justify-content: space-between; align-items: center; }
label { display: grid; gap: .2rem; font-size: .82rem; font-weight: 650; max-width: 100%; }
select, input, button { font: inherit; color: inherit; background: white; border: 1px solid #b6c8cf; border-radius: .4rem; padding: .48rem .7rem; max-width: 100%; }
button { cursor: pointer; }
button[aria-pressed=true] { color: white; background: var(--green); border-color: var(--green); }
a { color: var(--green); }
:focus-visible { outline: 3px solid #b17e27; outline-offset: 3px; }
.metrics, .bridge { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.metric, .card { padding: clamp(.85rem,2vw,1.35rem); background: white; border: 1px solid var(--edge); border-radius: .72rem; }
.card { margin-top: 1rem; }
.metric strong, .bridge strong { display: block; font-size: clamp(1.05rem,2.4vw,1.85rem); font-variant-numeric: tabular-nums; }
.metric span, .bridge span { font-size: .84rem; color: var(--muted); }
.bridge { margin-top: .8rem; }
.bridge > div { background: #eff5f5; border-radius: .4rem; padding: .65rem .8rem;}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
th, td { padding: .6rem .48rem; border-bottom: 1px solid var(--edge); text-align: left; }
th { color: var(--muted); font-size: .78rem; }
td small { display: block; color: var(--muted); }
.good, .own { color: var(--green); }
.bad { color: var(--red); }
.peer { color: var(--blue); margin-left: .5rem; }
.account { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1rem; align-items: center; }
figure { margin: 0; text-align: center; }
svg { width: 100%; max-height: 365px; }
#identity { margin-top: .55rem; }
#customer { scroll-margin-top: 1rem; }
@media (max-width: 900px) { .account { grid-template-columns: 1fr; } }
@media (max-width: 580px) { .metrics, .bridge { grid-template-columns: repeat(2, 1fr); } .filters > label { width: 100%; } }
#waterfall { margin-top: 1rem; text-align: center; }
#waterfall svg { max-width: 760px; }
header nav { display: flex; gap: 1rem; margin-left: auto; }
#sales-status { margin-top: .65rem; }
#sales-detail h3 { margin-bottom: .35rem; font-size: 1rem; }
#sales-detail tfoot { font-weight: 700; }
