/* AI-use statistics page: stat tiles, horizontal share bars and per-day column charts.
   Colours follow the site palette (web/styles/layout.css); one hue per chart, no external resources. */
:root { --bg: #eef1ee; --panel: #fff; --ink: #17242b; --muted: #56656c; --line: #cfd8d5; --bar: #2f5d50;
  --bar2: #1f7fa8; font: 16px/1.5 system-ui, "Sukhumvit Set", sans-serif; color: var(--ink); background: var(--bg); }
@media (prefers-color-scheme: dark) { :root { --bg: #111719; --panel: #182125; --ink: #e4ebe8; --muted: #9aaaa9;
  --line: #2c3a3e; --bar: #7fb8a3; --bar2: #3b93c4; color-scheme: dark; } }
body { margin: 0; }
header, main { max-width: 64rem; margin: auto; padding: 1rem; }
a { color: var(--bar); }
h1 { font-size: 1.7rem; margin: .5rem 0 .2rem; }
h2 { font-size: 1.2rem; margin: 1.6rem 0 .6rem; }
[lang="en"] { color: var(--muted); font-weight: 400; font-size: .85em; }
.meta, figcaption, .note { color: var(--muted); font-size: .9rem; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(10rem, 40vw), 1fr)); gap: .6rem; margin: 0; }
.tiles div { background: var(--panel); border: 1px solid var(--line); border-radius: .5rem; padding: .7rem .9rem; }
.tiles dt { font-size: .85rem; color: var(--muted); }
.tiles dd { margin: .2rem 0 0; font-size: 1.8rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.tiles dd small { display: block; font-size: .8rem; font-weight: 400; color: var(--muted); }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); gap: 1rem; }
figure { margin: 0 0 1rem; background: var(--panel); border: 1px solid var(--line); border-radius: .5rem;
  padding: .8rem; }
.bars .row { display: grid; grid-template-columns: minmax(5rem, 11rem) 1fr 3rem; align-items: center; gap: .5rem;
  margin: .35rem 0; font-size: .85rem; }
.bars .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars .value { text-align: right; font-variant-numeric: tabular-nums; }
.bars svg, .daily { display: block; width: 100%; }
.bars rect { fill: var(--bar); }
.daily rect.mark { fill: var(--bar2); }
.daily rect.hit { fill: transparent; }
.daily g:hover .mark, .bars .row:hover rect { opacity: .75; }
.daily text { fill: var(--muted); font-size: 10px; }
.daily line { stroke: var(--line); }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; background: var(--panel); }
th, td { padding: .4rem .6rem; border-bottom: 1px solid var(--line); text-align: left; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
#message.error { color: #b3401a; }
