/* Analytics (tc-analytics.js), Settings → Notifications / Account (tc-notify.js, tc-account.js) and the Overview checklist. */
.an-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.an-csv{display:inline-flex;align-items:center;padding:6px 12px;border:1px solid var(--bd);border-radius:8px;text-decoration:none;color:var(--fg)}
.an-fig{margin:0}
.an-chart{width:100%;height:auto;aspect-ratio:640/200;display:block;max-height:260px}
.an-grid{stroke:var(--grid,var(--bd));stroke-width:1}
.an-axis{fill:var(--mut);font-size:11px}
.an-line{fill:none;stroke-width:2.25;vector-effect:non-scaling-stroke;stroke-linejoin:round}
/* Series colours — theme tokens only, so light and dark both hold (tuhi-shell.css). s = stroke (lines, keys), f = fill (bars, areas). */
.an-s1,.an-f1{--c:var(--acc)} .an-s2,.an-f2{--c:var(--info)} .an-s3,.an-f3{--c:var(--ok)} .an-s4,.an-f4{--c:var(--warn)}
.an-s5,.an-f5{--c:var(--vio)} .an-s6,.an-f6{--c:var(--err)} .an-s7,.an-f7{--c:var(--mut)}
.an-line{stroke:var(--c)} .an-dot{fill:var(--c)}
rect.an-f1,rect.an-f2,rect.an-f3,rect.an-f4,rect.an-f5,rect.an-f6,rect.an-f7{fill:var(--c)}
.an-area{fill:var(--c);fill-opacity:.55;stroke:var(--c);stroke-width:1.5;vector-effect:non-scaling-stroke}
.an-hit{fill:transparent} .an-col:hover rect:not(.an-hit),.an-hit:hover{opacity:.85} .an-hit:hover{fill:var(--acc-soft)}
.an-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;color:var(--fg-2);margin-top:6px}
.an-key{display:inline-flex;align-items:center;gap:6px}
.an-key i{display:inline-block;width:14px;height:8px;border-radius:2px;background:var(--c,currentColor)}
.an-data{margin-top:8px} .an-data summary{cursor:pointer;color:var(--fg-2);font-size:13px}
.an-note{display:block;margin-top:6px}
.an-mini{height:22px;min-width:90px}
/* KPI row: change against the period before */
.an-kpis{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}
.an-delta{color:var(--mut);font-size:12px} .an-delta.bad{color:var(--err-fg)} .an-delta.good{color:var(--ok-fg)}
.an-meter{display:block;height:6px;border-radius:4px;background:var(--surface-3);overflow:hidden;margin:4px 0}
.an-meter i{display:block;height:100%;background:var(--acc)} .an-meter i.warn{background:var(--warn)} .an-meter i.full{background:var(--err)}
/* ranked horizontal bars */
.an-hb{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.an-hb li{display:grid;grid-template-columns:minmax(120px,1.2fr) 2fr auto;gap:10px;align-items:center}
.an-hb-l{display:flex;flex-direction:column;min-width:0} .an-hb-l b{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.an-hb-t{height:10px;border-radius:5px;background:var(--surface-3);overflow:hidden}
.an-hb-t i{display:block;height:100%;border-radius:5px;background:var(--c)}
.an-hb-v{font-variant-numeric:tabular-nums;text-align:right;min-width:3ch}
.an-sub{margin-top:14px} .an-sub h4{margin:0 0 8px;font-size:13px;font-weight:600;color:var(--fg-2)}
/* hour × weekday */
.an-hm-wrap{overflow-x:auto}
.an-hm{display:grid;grid-template-columns:44px repeat(24,minmax(12px,1fr));gap:2px;min-width:420px;font-size:11px}
.an-hm-h{color:var(--mut);white-space:nowrap;overflow:visible} .an-hm-d{color:var(--mut);align-self:center}
.an-hm-c{position:relative;aspect-ratio:1;border-radius:3px;background:var(--surface-3);overflow:hidden}
.an-hm-c i{position:absolute;inset:0;background:var(--acc)}
/* limits to look at */
.an-alerts{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.an-alerts li{display:flex;flex-direction:column;gap:2px}
/* Phones: every analytics table becomes stacked cards — each cell shows its column's name. */
@media (max-width: 640px){
  .an-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .an-table, .an-table tbody, .an-table tr, .an-table td{display:block;width:100%}
  .an-table tr{border:1px solid var(--bd);border-radius:10px;margin:0 0 10px;padding:6px 10px;background:var(--surface)}
  .an-table td{display:flex;justify-content:space-between;gap:12px;border:0;padding:4px 0;text-align:right}
  .an-table td::before{content:attr(data-label);color:var(--mut);text-align:left;font-size:12px}
  .an-hb li{grid-template-columns:1fr auto;}
  .an-hb-t{grid-column:1 / -1;grid-row:2}
}
/* Notifications */
.nt-list{display:flex;flex-direction:column}
.nt-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--bd)}
.nt-row:last-child{border-bottom:0}
.nt-txt{display:flex;flex-direction:column;gap:2px}
.nt-unseen .n > span:first-child{font-weight:600}
.nt-banner{border-color:var(--warn-bd)}
/* Overview: first-run checklist */
.ob-meta{display:inline-flex;align-items:center;gap:8px}
.ob-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.ob-step{display:flex;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid var(--bd)}
.ob-step:last-child{border-bottom:0}
.ob-mark{flex:none;width:26px;height:26px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--bd-strong);font-size:12px;color:var(--fg-2)}
.ob-done .ob-mark{background:var(--ok-bd);border-color:var(--ok-bd);color:var(--ok-fg)}
.ob-txt{flex:1;display:flex;flex-direction:column;gap:2px}
.ob-done .ob-txt b{text-decoration:line-through;color:var(--fg-2)}
.ob-go{text-decoration:none}
@media (max-width: 640px){ .ob-step{flex-wrap:wrap} .nt-row{align-items:flex-start} }
