/* /dashboard: stat tiles, inline SVG bar charts (one series each), cards. Dark theme tokens from styles.css. */
.dash-hero .section-label { display: flex; align-items: center; gap: 8px; }
.dash-live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(126, 224, 198, 0.6); animation: dash-pulse 2s infinite; }
@keyframes dash-pulse { 70% { box-shadow: 0 0 0 8px rgba(126, 224, 198, 0); } 100% { box-shadow: 0 0 0 0 rgba(126, 224, 198, 0); } }
@media (prefers-reduced-motion: reduce) { .dash-live { animation: none; } }
.dash-formats { color: var(--muted); font-size: 0.92rem; }
.dash-formats a { color: var(--accent); }
.dash { padding-top: 0; }
.dash-h { font-size: 1.05rem; letter-spacing: 0.01em; color: var(--muted); font-weight: 600; margin: 28px 0 12px; }
.dash-h-in { margin-top: 0; color: var(--text); }
.dash-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dash-tiles-sm { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px; }
.dash-tile { position: relative; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 12px; overflow: hidden; }
.dash-tiles-sm .dash-tile { background: var(--bg-elev); }
.dash-tile-label { margin: 0; color: var(--muted); font-size: 0.82rem; }
.dash-tile-value { margin: 4px 0 2px; font-size: 2rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.dash-tiles-sm .dash-tile-value { font-size: 1.5rem; }
.dash-tile-sub { margin: 0; color: var(--quiet); font-size: 0.78rem; }
.dash-spark { display: block; width: 100%; height: 28px; margin-top: 10px; }
.dash-spark rect { fill: rgba(126, 224, 198, 0.28); }
.dash-spark rect.now { fill: var(--accent); }
.dash-note { color: var(--quiet); font-size: 0.84rem; margin: 6px 0 12px; }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dash-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 0; min-width: 0; }
.dash-card figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-weight: 600; margin-bottom: 6px; }
.dash-card-note { color: var(--quiet); font-weight: 400; font-size: 0.8rem; }
.dash-chart { display: block; width: 100%; height: 120px; margin-top: 8px; }
.dash-axis-labels { display: flex; justify-content: space-between; color: var(--quiet); font-size: 0.75rem; margin-top: 4px; }
.dash-today { color: var(--accent); font-weight: 600; font-size: 0.85rem; margin-left: 6px; }
.dash-bar { fill: rgba(126, 224, 198, 0.55); }
.dash-bar-today { fill: var(--accent); }
.dash-hit { fill: transparent; }
.dash-mark:hover .dash-bar { fill: var(--accent); }
.dash-mark:hover .dash-hit { fill: rgba(255, 255, 255, 0.04); }
.dash-axis { stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dash-tick, .dash-val { fill: var(--quiet); font-size: 11px; }
.dash-val { fill: var(--text); font-weight: 600; }
.dash-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.dash-meter { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 6px 0 0; }
.dash-meter span { display: block; height: 100%; min-width: 4px; border-radius: 999px; background: var(--accent); }
.dash-list { list-style: none; padding: 0; margin: 4px 0 8px; font-size: 0.88rem; }
.dash-list li { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px solid var(--line); }
.dash-num { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }
.dash-pop { list-style: none; counter-reset: pop; padding: 0; margin: 0 0 8px; }
.dash-pop li { counter-increment: pop; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 3.2em; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.dash-pop li a { text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-pop li a::before { content: counter(pop) ". "; color: var(--quiet); }
.dash-pop li a:hover { color: var(--accent); }
.dash-hbar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.dash-hbar span { display: block; height: 100%; background: rgba(126, 224, 198, 0.7); border-radius: 999px; }
.dash-pop .dash-num { text-align: right; }
.dash-empty { color: var(--quiet); }
/* Popular tools windows: radio tabs, no JavaScript. */
.dash-pop-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.dash-pop-radio { position: absolute; opacity: 0; pointer-events: none; }
.dash-pop-tabs label { border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 12px; font-size: 0.85rem; color: var(--muted); cursor: pointer; }
.dash-pop-tabs label:hover { color: var(--text); }
.dash-pop-radio:checked + label { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 600; }
.dash-pop-radio:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.dash-pop-panels { flex-basis: 100%; margin-top: 10px; }
.dash-pop-panel { display: none; }
#pop-today:checked ~ .dash-pop-panels #pop-panel-today,
#pop-week:checked ~ .dash-pop-panels #pop-panel-week,
#pop-month:checked ~ .dash-pop-panels #pop-panel-month,
#pop-all:checked ~ .dash-pop-panels #pop-panel-all { display: block; }
.dash-table { margin-top: 12px; }
.dash-table summary { cursor: pointer; font-weight: 600; }
@media (max-width: 760px) {
  .dash-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-tiles-sm { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash-tile-value { font-size: 1.6rem; }
  .dash-tiles-sm .dash-tile-value { font-size: 1.25rem; }
  .dash-tiles-sm .dash-tile { padding: 10px; }
  .dash-grid, .dash-two { grid-template-columns: 1fr; }
  .dash-pop li { grid-template-columns: minmax(0, 1.8fr) minmax(0, 0.7fr) 3em; }
}

/* Where traffic comes from */
.dash-sources { margin-top: 12px; }
.dash-src-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 20px; }
.dash-src .dash-pop li { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr) 3.4em; font-size: 0.85rem; padding: 5px 0; }
.dash-src-key { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-src .dash-list li { gap: 8px; }
@media (max-width: 980px) { .dash-src-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .dash-src-grid { grid-template-columns: 1fr; } }
