:root {
  color-scheme: light;
  --ink: #202e28;
  --muted: #596962;
  --accent: #215e4b;
  --line: #cdd5cd;
  color: var(--ink);
  background: #f8f9f4;
  font-family: "Instrument Sans", "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(1050px, calc(100% - 64px)); margin: clamp(18px, 4.5vh, 52px) auto 18px; }
header, .toolbar, footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
header { border-top: 4px solid var(--accent); padding: 22px 0 18px; }
h1 { margin: 0; font-size: clamp(28px, 3.1vw, 40px); font-weight: 650; letter-spacing: -.055em; line-height: 1.12; }
a { color: var(--accent); text-underline-offset: 3px; }
#board, #refresh { font-size: 13px; font-weight: 600; }
.toolbar { margin-bottom: 17px; }
.periods { display: inline-flex; gap: 2px; border: 1px solid var(--line); border-radius: 6px; padding: 3px; }
button { background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
.periods button { border: 0; border-radius: 3px; padding: 5px 11px; font-size: 13px; line-height: 19px; white-space: nowrap; }
.periods button[aria-pressed="true"] { color: white; background: var(--accent); }
button:focus-visible, a:focus-visible { outline: 2px solid #327d63; outline-offset: 3px; }
#range, footer { color: var(--muted); font-size: 12px; }
table { width: 100%; border-spacing: 0; table-layout: fixed; }
th, td { text-align: left; }
thead th { font-size: 12px; color: var(--muted); font-weight: 600; border-block: 1px solid var(--line); padding: 10px 0; }
thead th:first-child { width: 34%; }
thead th:nth-child(2), thead th:nth-child(3) { width: 16%; }
abbr { text-decoration: none; }
tbody th, tbody td { border-bottom: 1px solid var(--line); padding: clamp(10px, 1.8vh, 18px) 0; }
tbody th { font-weight: 600; padding-right: 8px; }
.site-name { color: var(--ink); text-decoration: none; font-size: clamp(15px, 1.6vw, 19px); }
.domain { display: block; width: fit-content; font-size: 12px; font-weight: 400; color: var(--muted); text-decoration: none; margin-top: 3px; }
.site-name:hover, .domain:hover { text-decoration: underline; }
.metric { font-size: clamp(20px, 2.25vw, 30px); font-weight: 570; letter-spacing: -.035em; line-height: 1; }
.trend { height: 37px; display: flex; align-items: flex-end; gap: clamp(1px, .4vw, 4px); border-bottom: 1px solid #a0b7a9; }
.bar { flex: 1 1 0; min-width: 0; background: #6b9e84; border-radius: 2px 2px 0 0; }
.bar:last-child { background: #28684e; }
.bar:hover { background: #174e38; }
.unavailable { color: #8a4633; font-size: 12px; }
footer { margin-top: 14px; }
#refresh { border: 0; padding: 3px 0; text-decoration: underline; text-underline-offset: 3px; color: var(--accent); }
@media (max-width: 640px) {
  main { width: calc(100% - 28px); }
  header { padding: 17px 0; }
  .toolbar { flex-wrap: wrap; justify-content: flex-start; gap: 7px 15px; }
  thead th:first-child { width: 30%; }
  thead th:nth-child(2), thead th:nth-child(3) { width: 18%; }
  thead th { font-size: 11px; }
  tbody th, tbody td { padding-block: 14px; }
  .site-name { font-size: 14px; }
  .domain { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
  .metric { font-size: clamp(14px, 4.3vw, 21px); }
  .trend { height: 28px; gap: 1px; }
}
