:root {
  color-scheme: light;
  --paper: #f4f6fa;
  --navy: #15264a;
  --ink: #1b2940;
  --muted: #52617a;
  --line: #d9e1ec;
  --accent: #2651b1;
  font-family: Inter, 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #8961b6; outline-offset: 3px; }
[hidden] { display: none !important; }
.skip { position: absolute; top: .5rem; left: .5rem; color: var(--navy); background: white; padding: .6rem; transform: translateY(-180%); }
.skip:focus { transform: none; z-index: 1; }
.topbar { min-height: 66px; background: var(--navy); color: white; display: flex; flex-wrap: wrap; gap: .25rem 2rem; align-items: center; justify-content: space-between; padding-inline: max(1rem, calc((100% - 1216px) / 2)); }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: white; text-decoration: none; font-weight: 650; letter-spacing: -.015em; min-height: 46px; }
.brand span { background: #e6ebff; color: var(--navy); padding: .29rem .41rem; border-radius: .3rem; font-weight: 800; font-size: .86rem; letter-spacing: .02em; }
.topbar nav { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .5rem; }
.topbar nav a, .quiet { color: #e1e8ff; text-decoration: none; padding: .65rem; border-radius: .4rem; }
.topbar nav a[aria-current], .topbar nav a:hover, .quiet:hover { background: #2d4169; color: #fff; }
.shell { width: min(1216px, calc(100% - 2rem)); margin: 0 auto; padding: clamp(1.35rem, 4vw, 3rem) 0; }
.heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem; margin-bottom: 1.35rem; }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.15rem); letter-spacing: -.055em; line-height: 1.06; }
h2 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 .4rem; letter-spacing: -.025em; }
p { margin: 0 0 .7rem; line-height: 1.5; color: var(--muted); }
.label { color: #415786; font-weight: 700; font-size: .75rem; letter-spacing: .10em; text-transform: uppercase; margin-bottom: .55rem; }
.freshness { display: grid; gap: .23rem; color: var(--muted); font-size: .81rem; }
.freshness strong { color: var(--navy); font-weight: 650; }
.card { min-width: 0; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: clamp(.9rem, 2.3vw, 1.45rem); margin-bottom: .95rem; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; }
.page-select { flex: 1 1 220px; min-width: 0; }
label { display: grid; gap: .35rem; font-weight: 650; font-size: .86rem; }
input, select, button { font: inherit; min-height: 44px; padding: .55rem .7rem; border-radius: .43rem; }
input, select { max-width: 100%; width: 100%; border: 1px solid #aab9ce; color: var(--ink); background: #fff; }
button { cursor: pointer; border: 1px solid transparent; background: var(--accent); color: white; font-weight: 650; font-size: .89rem; }
button:hover { background: #1b3d8b; }
button.quiet { background: transparent; }
button.outline { color: var(--accent); background: #fff; border-color: #aab9ce; }
button.outline:hover { background: #eef3ff; }
button.stop { color: #984042; }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .95rem; }
.metric h2 { font-size: .86rem; color: var(--muted); font-weight: 650; }
.metric strong { display: block; color: var(--navy); font-size: clamp(1.6rem, 5vw, 2.55rem); line-height: 1.15; margin: .25rem 0 .32rem; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; letter-spacing: -.045em; }
.metric span, .section-heading p, .report-foot, .help { color: var(--muted); font-size: .83rem; }
.section-heading { margin-bottom: .55rem; }
.section-heading p { overflow-wrap: anywhere; }
.legend { display: flex; gap: .75rem; flex-wrap: wrap; font-size: .82rem; }
.legend span::before { content: ''; display: inline-block; width: .58rem; height: .58rem; border-radius: 50%; margin-right: .35rem; }
.legend .ga-source::before { background: #71519e; }
.legend .wp-source::before { background: #2955b4; }
.ga-breakdown { display: block; color: var(--muted); }
canvas { width: 100%; height: 250px; display: block; }
.daily-data { border-top: 1px solid var(--line); margin-top: .65rem; padding-top: .65rem; }
.daily-data summary { cursor: pointer; color: var(--accent); font-size: .88rem; padding: .45rem 0; }
.table-wrap { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
td, th { padding: .7rem .55rem; border-bottom: 1px solid #e8edf5; text-align: left; }
thead th { background: #f2f5fa; color: #425570; }
tbody th { font-weight: 600; overflow-wrap: anywhere; min-width: 8rem; }
.number { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.selected { background: #eef3ff; }
.share { display: flex; gap: .4rem; align-items: center; white-space: nowrap; }
meter { width: clamp(2.3rem, 10vw, 9rem); height: .75rem; accent-color: var(--accent); }
meter::-webkit-meter-bar { background: #e4eaf7; border: 0; }
meter::-webkit-meter-optimum-value { background: #5676c8; }
meter::-moz-meter-bar { background: #5676c8; }
.empty { padding: 1rem 0; }
.auth { width: min(438px, calc(100% - 2rem)); margin: clamp(2rem, 11vh, 8rem) auto 2rem; }
.auth-card { padding: clamp(1.25rem, 5vw, 2.25rem); }
.auth-card h1 { font-size: clamp(1.8rem, 6vw, 2.45rem); margin-bottom: .65rem; }
.stack { display: grid; gap: .8rem; margin: 1.15rem 0; }
.stack .help { margin: -.45rem 0 0; }
.notice { background: #eef4ff; padding: .72rem .85rem; border: 1px solid #cbdaf7; border-radius: .45rem; color: var(--navy); }
.error { background: #fff2f0; border-color: #e9b9b9; color: #80272a; }
.member-actions { display: flex; gap: .35rem; }
@media (max-width: 560px) {
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; }
  .metrics .metric:last-child { grid-column: 1 / -1; }
  .metrics .card { margin-bottom: 0; }
  .metrics { margin-bottom: .95rem; }
  .filters label { flex: 1 1 8.5rem; }
  .filters .page-select { flex-basis: 100%; }
  .filters button { width: 100%; }
  table { font-size: .81rem; }
  .share meter { display: none; }
}
