/* Usage dashboard (admin.html). Colors only via theme tokens. */
.admin { padding-top: 20px; padding-bottom: 48px; }
.admin a { color: var(--accent); }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 8px 0 4px; }
.admin-status { color: var(--muted); font-size: 14px; margin: 0 0 16px; min-height: 21px; }
.admin-status.error { color: var(--late); }
.admin h2 { font-size: 17px; margin-bottom: 10px; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.tile h2 { font: 600 13px/1.3 var(--sans); color: var(--muted); letter-spacing: .03em; text-transform: uppercase; margin-bottom: 6px; }
.tile .big { font: 600 30px/1.1 var(--serif); margin: 0; font-variant-numeric: tabular-nums; }
.tile .sub { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.tile .pair { display: flex; gap: 14px; }
.tile .pair p { margin: 0; }
.tile .pair .big { font-size: 26px; }
.tile .pair .label { color: var(--muted); font-size: 12px; line-height: 1.3; }

.chart-card { padding: 18px 16px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart { position: relative; touch-action: pan-y; }
.chart svg { display: block; width: 100%; overflow: visible; }
.seg-in { fill: var(--accent); }
.seg-anon { fill: url(#hatch); stroke: var(--accent); stroke-width: 1; }
#hatch line { stroke: var(--accent); stroke-width: 2; }
.defs { position: absolute; width: 0; height: 0; }
.grid line { stroke: var(--line); stroke-width: 1; }
.axis text { fill: var(--muted); font: 11px var(--sans); font-variant-numeric: tabular-nums; }
.hit { fill: transparent; cursor: default; }
.hit.on { fill: var(--accent-soft); }
.tip { position: absolute; top: 0; pointer-events: none; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: 13px; line-height: 1.4; white-space: nowrap; box-shadow: 0 4px 14px rgb(0 0 0 / .12); }
.tip b { font-weight: 600; }
.tip .muted { color: var(--muted); }

details { margin-top: 10px; font-size: 14px; }
summary { color: var(--accent); cursor: pointer; }
.table-wrap { overflow-x: auto; margin-top: 8px; }
.admin table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
.admin th, .admin td { text-align: left; padding: 7px 8px 7px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin th { color: var(--muted); font-weight: 600; font-size: 12px; }
.admin td.num, .admin th.num { text-align: right; }
.admin td.email { white-space: normal; overflow-wrap: anywhere; min-width: 110px; }
.admin tr > :last-child { padding-right: 0; }
.admin .fine { color: var(--muted); font-size: 13px; line-height: 1.5; }
