/* Tore's pages: Visits (stats/) and Feedback (feedback/), on top of
   launcher.css. Theme tokens only. */

.hero h1 { margin-top: 0.4rem; }
.tool h3 { display: flex; justify-content: space-between; align-items: center; gap: 0.4rem 0.8rem; flex-wrap: wrap; }
.tool h3 small { font-size: 0.8rem; color: var(--text-dim); font-weight: 500; }
#course { margin: 0 0 0.8rem; }

/* Visits (stats/), redone 20 Oct 2026 after the IA Mechanics one: one app (or all) on one day, said in the bar of pills under the title,
   each with a ✕; the course is the segmented control above it */
.lens { position: sticky; top: 0; z-index: 5; display: flex; gap: 0.45rem; flex-wrap: wrap; align-items: center; margin: 0 -0.3rem 0.6rem;
  padding: 0.5rem 0.3rem; background: color-mix(in srgb, var(--bg-page) 92%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.vpill { display: inline-flex; align-items: center; gap: 0.4em; min-height: 36px; padding: 0.2em 0.8em; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--bg-raised); color: var(--text-dim); font: 600 0.88rem var(--font-ui); white-space: nowrap; max-width: 100%; cursor: pointer; }
.vpill img { width: 20px; height: 20px; border-radius: 5px; display: block; }
.vpill .t { overflow: hidden; text-overflow: ellipsis; }
.vpill.on { border-color: var(--trace-hot); color: var(--text); background: color-mix(in srgb, var(--trace-hot) 10%, var(--bg-raised)); }
.vpill.on::after { content: '✕'; font-size: 0.85em; color: var(--text-dim); margin-left: 0.15em; }
.vpill.quiet { cursor: default; }

.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; margin: 0 0 1.2rem; }
.num { padding: 0.7rem 0.9rem; min-width: 0; }
.num b { display: block; font: 700 clamp(1.5rem, 7vw, 2.2rem)/1.1 var(--font-mono); color: var(--text); }
.num span { color: var(--text-faint); font-size: 0.8rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dash { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 1rem; }
.dash > .panel { margin: 0 0 1rem; min-width: 0; padding: 0.8rem 0.95rem 0.9rem; scroll-margin-top: 4rem; }
@media (min-width: 900px) { .dash { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .dash > .wide { grid-column: 1 / -1; } }
.legend { display: flex; gap: 0.9rem; flex-wrap: wrap; font-size: 0.78rem; color: var(--text-dim); margin: 0 0 0.2rem; }
.legend i { display: inline-block; width: 0.8em; height: 0.8em; border-radius: 3px; margin-right: 0.35em; vertical-align: -0.05em; }

.chart { width: 100%; display: block; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.chart text { font: 11px var(--font-mono); fill: var(--text-faint); }
.chart .b1 { fill: var(--trace-main); } .chart .b2 { fill: var(--trace-ghost); }
.chart .p1 { fill: var(--trace-hot); } .chart .p2 { fill: color-mix(in srgb, var(--trace-hot) 40%, transparent); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .tick.k3, .chart .lec.k3, .k3 { fill: var(--accent); color: var(--accent); }
.chart .tick.k4, .chart .lec.k4, .k4 { fill: var(--ink-orange); color: var(--ink-orange); }
.chart .lec { font-weight: 700; }
.chart text.val { fill: var(--text); font-weight: 700; font-size: 12px; paint-order: stroke; stroke: var(--bg-panel); stroke-width: 3px; stroke-linejoin: round; }
.chart .slot { fill: var(--accent-dim); }
.chart .out { stroke: var(--text); stroke-width: 1.5; }
.chart text.outt { fill: var(--text); font-weight: 700; }
.chart .hit { fill: transparent; cursor: pointer; outline: none; }
.chart .hit:focus-visible { fill: var(--accent-dim); }
.chart .hov { fill: color-mix(in srgb, var(--text) 7%, transparent); }
/* what the chart is saying: the day, hour or square under the finger, or the one picked */
.say { min-height: 2.7em; margin: 0.35rem 0 0; font-size: 0.88rem; line-height: 1.4; color: var(--text); }
.say b { font-family: var(--font-mono); font-weight: 600; }
.say .bits { color: var(--text-dim); }

table.apps { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.apps th { font-size: 0.78rem; font-weight: 600; color: var(--text-faint); text-align: right; padding: 0.2rem 0.3rem 0.4rem; white-space: nowrap; }
table.apps th:first-child { text-align: left; }
table.apps td { padding: 0.35rem 0.3rem; border-top: 1px solid var(--line); text-align: right; font-family: var(--font-mono); color: var(--text-dim); }
table.apps td:first-child { text-align: left; font-family: var(--font-ui); color: var(--text); }
table.apps tr.arow { cursor: pointer; }
table.apps tr.arow:hover td { background: color-mix(in srgb, var(--text) 4%, transparent); }
table.apps tr.arow.picked td { background: color-mix(in srgb, var(--trace-hot) 10%, transparent); }
table.apps tr.arow.picked td:first-child { box-shadow: inset 3px 0 0 var(--trace-hot); }
table.apps tr.later td { color: var(--text-faint); cursor: default; }
table.apps td.when { font-family: var(--font-ui); font-size: 0.8rem; }
.who { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.who .ic, .msg .ic { width: 28px; height: 28px; flex: none; display: grid; place-items: center; }
.who .ic img, .msg .ic img { width: 26px; height: 26px; border-radius: 6px; display: block; }
.who .nm { display: block; min-width: 0; }
.who .nm em { display: block; height: 3px; border-radius: 2px; background: var(--trace-ghost); margin-top: 3px; }
tr.picked .who .nm em { background: color-mix(in srgb, var(--trace-hot) 50%, transparent); }

/* app × day: one row an app, one square a day, darker = more; on a phone the name sits over its row so the squares get the width */
.heat { --lw: 0px; position: relative; }
.hrow { display: grid; grid-template-columns: minmax(0, 1fr) 2.8em; grid-template-areas: "n t" "c t"; column-gap: 0.4rem; align-items: center; }
.hrow + .hrow { margin-top: 4px; }
.hname { grid-area: n; display: flex; align-items: center; gap: 0.3rem; min-width: 0; height: 22px; padding: 0; border: 0; background: none; color: var(--text); font: 600 0.8rem var(--font-ui); text-align: left; cursor: pointer; }
.hname img { width: 18px; height: 18px; border-radius: 4px; display: block; flex: none; }
.hname .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hrow.picked .hname { color: var(--trace-hot); font-weight: 700; }
.cells { grid-area: c; display: flex; gap: 1px; height: 22px; }
.cells i { flex: 1 1 0; min-width: 0; border-radius: 2px; background: color-mix(in srgb, var(--trace-main) var(--s, 0%), var(--bg-inset)); cursor: pointer; }
.cells i.d { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--trace-hot) 55%, transparent); }
.cells i.on { box-shadow: inset 0 0 0 2px var(--trace-hot); }
.cells i.hv { box-shadow: inset 0 0 0 2px var(--text); }
.htot { grid-area: t; align-self: end; line-height: 22px; font: 600 0.8rem var(--font-mono); text-align: right; color: var(--text-dim); }
.hax { grid-area: c; position: relative; height: 15px; font: 10.5px var(--font-mono); color: var(--text-faint); }
.hax span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.hax .lec { font-weight: 700; }
@media (min-width: 600px) {
  .heat { --lw: 160px; }
  .hrow { grid-template-columns: var(--lw) minmax(0, 1fr) 2.8em; grid-template-areas: "n c t"; }
  .hrow + .hrow { margin-top: 3px; }
  .hname { height: 26px; font-size: 0.82rem; gap: 0.35rem; } .hname img { width: 22px; height: 22px; }
  .cells { height: 26px; } .htot { align-self: center; line-height: 1.2; }
}

/* where from (shared/js/site/where.js): a town or country a line, a bar, the number, and how it came */
.wsum { font-size: 0.88rem; margin: 0 0 0.6rem; color: var(--text); line-height: 1.45; }
.wsum b { font-family: var(--font-mono); }
.wsum .dim { color: var(--text-dim); }
.wlist { display: grid; grid-template-columns: minmax(0, 1fr) minmax(60px, 32%) 3em; gap: 0.45rem 0.6rem; align-items: center; }
.wlist .wn { min-width: 0; font-size: 0.9rem; line-height: 1.25; color: var(--text); }
.wlist .wn small { display: block; color: var(--text-faint); font-size: 0.75rem; }
.wlist .wb { height: 10px; border-radius: 3px; background: var(--bg-inset); position: relative; overflow: hidden; }
.wlist .wb i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--trace-main); }
.wlist .wc { text-align: right; font: 600 0.9rem var(--font-mono); color: var(--text); }
.wlist .fold .wn, .wlist .wn.fold { color: var(--text-dim); }

.foot { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.err { color: var(--danger); font-weight: 600; }

/* feedback */
.signin, .filters { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin: 0 0 1rem; }
.filters select { width: auto; min-width: 11rem; }
.msg { padding: 0.8rem 0.95rem; margin: 0 0 0.75rem; border-left: 3px solid var(--accent); }
.msg.done { opacity: 0.55; border-left-color: var(--line); }
.msg .head { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--text-dim); }
.msg .head b { color: var(--text); font-size: 0.98rem; }
.msg .head .tag { margin-left: 0.2rem; }
.msg .text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0.55rem 0; font-size: 1.02rem; line-height: 1.45; color: var(--text); }
.msg .acts { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.msg .contact { margin-left: auto; font-size: 0.88rem; }
.msg .contact a { color: var(--accent); }
.none { color: var(--text-dim); padding: 1rem 0; }
