<title>cctop — analytics</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="color-scheme" content="light dark">
<style>__CCTOP_CSS__
.back { font-size: 13px; color: var(--dim); text-decoration: none; }
.back:hover { color: var(--accent); }
#updated { font-size: 12px; }
.tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); margin-bottom: 14px; }
.tile { padding: 12px 14px; }
.tile .k { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.tile .v { font-family: var(--mono); font-size: 21px; font-weight: 600; margin-top: 3px; font-variant-numeric: tabular-nums; }
.tile .n { font-size: 11px; color: var(--faint); margin-top: 2px; }
.tile.warn .v { color: var(--amber); }
.tile.bad .v { color: var(--red); }
.controls { display: flex; gap: 8px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
select {
padding: 7px 9px; font: inherit; font-size: 13px; cursor: pointer;
background: var(--panel); color: var(--dim);
border: 1px solid var(--line); border-radius: 8px; max-width: 46vw;
}
section.block { margin-bottom: 26px; }
section.block > h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em;
color: var(--faint); margin-bottom: 9px; }
section.block > .note { font-size: 12px; color: var(--faint); margin: -4px 0 9px; max-width: 62ch; }
.pad { padding: 12px 14px; }
svg { display: block; max-width: 100%; }
.axis { fill: var(--faint); font-size: 10px; font-family: var(--mono); }
.gridline { stroke: var(--line); stroke-width: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 11px; font-size: 12px; }
.legend .item { display: flex; align-items: center; gap: 6px; }
.legend .swatch { width: 9px; height: 9px; border-radius: 2px; flex: 0 0 9px; }
.legend .amt { color: var(--faint); font-family: var(--mono); }
.heat { display: grid; grid-template-columns: 30px repeat(24, minmax(8px, 1fr));
gap: 2px; align-items: center; }
.heat .hl { font-size: 10px; color: var(--faint); font-family: var(--mono); }
.heat .hh { font-size: 9px; color: var(--faint); font-family: var(--mono); text-align: center; }
.heat .hc { aspect-ratio: 1; min-height: 10px; border-radius: 2px; }
.wr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(60px, 140px) auto;
gap: 10px; align-items: center; padding: 4px 0; }
.wr .wp { font-family: var(--mono); font-size: 12px; color: var(--dim);
overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wr .wb { height: 8px; border-radius: 4px; background: var(--bg); overflow: hidden; }
.wr .wb i { display: block; height: 100%; background: var(--accent); }
.wr .wn { font-family: var(--mono); font-size: 12px; color: var(--faint);
text-align: right; font-variant-numeric: tabular-nums; }
.decks { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.decks h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
color: var(--faint); margin: 0; padding: 11px 14px 3px; }
.decks table { font-size: 12.5px; }
.decks td { padding: 5px 10px; }
.decks .card { padding-bottom: 6px; }
.sess td a { display: inline-block; max-width: 46ch; overflow: hidden;
text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom;
text-decoration: none; }
.sess td a:hover { color: var(--accent); }
footer { margin-top: 24px; font-size: 12px; color: var(--faint); display: grid; gap: 4px; }
</style>
<style>
@media (max-width: 700px) {
.controls select { flex: 1 1 140px; max-width: none; }
.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile .v { font-size: 18px; }
.decks { grid-template-columns: 1fr; }
.heat { min-width: 560px; }
.scroll-x > svg { min-width: 620px; height: auto; }
.sess td a { max-width: 28ch; }
.wr { grid-template-columns: minmax(0, 1fr) 60px auto; }
}
</style>
<script>__CCTOP_THEME_JS__</script>
<div class="wrap">
<header class="top">
<h1>cctop<span class="v mono">__CCTOP_VERSION__</span></h1>
<a class="back" id="back" href="/">← dashboard</a>
<div class="spacer"></div>
<span class="faint" id="updated">reading…</span>
</header>
<div id="banners"></div>
<div class="tiles" id="kpis"></div>
<div class="controls">
<select id="f-provider" title="Which agent harness"></select>
<select id="f-project" title="Which project"></select>
<select id="f-model" title="Which model"></select>
<select id="f-who" title="Whose sessions — user, account or machine"></select>
<select id="f-range" title="How far back">
<option value="24h">Last 24h</option>
<option value="7d">Last 7 days</option>
<option value="30d" selected>Last 30 days</option>
<option value="all">All time</option>
</select>
</div>
<main id="main"><div class="empty">Reading the sessions…</div></main>
<footer id="foot"></footer>
</div>
<script>
__CCTOP_ANALYTICS_JS__</script>