/* Deadlock Coach app layer. The kit (assets/system.css, from tasteskill) gives the tokens, type scale,
   buttons, nav, card and focus ring; this file only lays out the app screens with those tokens.
   Palette: lunar-grey-bronze (dealt). Type: Host Grotesk for words, JetBrains Mono for figures. */

:root {
  /* states: green and red keep the project's display rule (win rates of 50% or more are green) */
  --good: #7cc290; --bad: #ec8572; --warn: #d8b46f;
  --good-bg: color-mix(in oklab, var(--good) 14%, transparent);
  --bad-bg: color-mix(in oklab, var(--bad) 14%, transparent);
  --warn-bg: color-mix(in oklab, var(--warn) 14%, transparent);
  /* chart series: you are bronze, the ranks are greys, Eternus is a cool slate, dashed */
  --c-me: #c9a688; --c-rank: #8f8f8f; --c-above: #dadada; --c-eternus: #6f8796;
  --cell: color-mix(in oklab, var(--ink) 5%, transparent);
  --raise: #171717;
  --card-pad: 24px;
  --scope: 64px;
}

body { font-variant-numeric: tabular-nums; }
.num, td.r, .kpi .v, .t-stat { font-family: var(--font-mono); font-feature-settings: "zero" 0; letter-spacing: -0.02em; }

/* (the top bar is gone: the side menu and its phone bar are at the end of this file) */
.wrap { width: min(100% - 2 * var(--gut), 1180px); margin-inline: auto; }

.banner { border: 1px solid color-mix(in oklab, var(--warn) 45%, transparent); background: var(--warn-bg); color: var(--ink);
  border-radius: var(--r-md); padding: var(--s-4) var(--s-5); margin-bottom: var(--s-5); font-size: var(--t-small); }
.banner code, .state code { font-family: var(--font-mono); font-size: 13px; color: var(--c-me); }
#acctMsg:empty { display: none; }

/* ---------- states: loading, empty, no file ---------- */
.state { border: 1px dashed var(--line-strong); border-radius: var(--r-lg); padding: var(--s-8) var(--s-6); display: grid; gap: var(--s-3); justify-items: start; }
.state h2 { font-size: var(--t-h3); }
.state input[type=file] { font-size: var(--t-small); color: var(--muted); }
.empty { color: var(--muted); font-size: var(--t-small); padding: var(--s-4) 0; }

/* ---------- the filter row: hero and window, held under the bar while you read ---------- */
.scopebar { position: sticky; top: 0; z-index: 20; background: var(--bg); display: flex; align-items: center; gap: var(--s-4) var(--s-5);
  flex-wrap: wrap; min-height: var(--scope); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); margin-bottom: var(--s-7); }
.scopebar .f { display: flex; align-items: center; gap: var(--s-3); }
.scopebar label, .scopebar .lab { font-size: var(--t-label); font-weight: 500; color: var(--muted); }
.scopebar select { font: 500 var(--t-small)/1 var(--font-text); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong);
  height: var(--btn-h-sm); padding: 0 var(--s-6) 0 var(--s-3); border-radius: var(--r-sm); appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%238f8f8f' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 12px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); }
.chip { font: 500 var(--t-small)/1 var(--font-text); color: var(--muted); background: none; border: 0; border-radius: calc(var(--r-sm) - 3px);
  height: 30px; padding: 0 var(--s-3); cursor: pointer; transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.chip:hover { color: var(--ink); }
.chip.on { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
@media (max-width: 639px) {
  .scopebar { position: static; margin-bottom: var(--s-6); }
  .scopebar .f { width: 100%; }
  .scopebar select { flex: 1; height: 44px; }
  .seg { flex: 1; } .chip { flex: 1; height: 38px; padding: 0 var(--s-2); }
}

/* ---------- headings and blocks ---------- */
.view-head { display: grid; gap: var(--s-4); margin-bottom: var(--s-7); }
.view-head h1 { font-size: clamp(38px, 2.4vw + 22px, 56px); }
.view-head .sub { color: var(--muted); font-size: var(--t-lead); max-width: 62ch; }
.block { margin-top: var(--s-9); }
.block__head { display: grid; gap: var(--s-2); margin-bottom: var(--s-6); max-width: 62ch; }
.block__head h2 { font-size: clamp(28px, 1vw + 22px, 36px); }
.block__head p { color: var(--muted); }
.block__head .step { font: 500 var(--t-label)/1 var(--font-mono); color: var(--c-me); }
.block--band { position: relative; padding-block: var(--s-8); }
.block--band::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); background: var(--raise); border-block: 1px solid var(--line); z-index: -1; }
.stack { display: grid; gap: var(--s-5); }
.cgrid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-5); }
.cgrid > * { grid-column: span 12; }
@media (min-width: 1024px) {
  .cgrid > .w-6 { grid-column: span 6; } .cgrid > .w-4 { grid-column: span 4; }
  .cgrid > .w-7 { grid-column: span 7; } .cgrid > .w-5 { grid-column: span 5; }
}
@media (min-width: 640px) and (max-width: 1023px) { .cgrid > .w-4 { grid-column: span 6; } }

/* ---------- card ---------- */
.card { gap: var(--s-3); }
.card > h3 { font-size: var(--t-card); }
.card .q { color: var(--muted); font-size: var(--t-small); margin-top: calc(-1 * var(--s-2)); max-width: 62ch; }
.card .note { color: var(--muted); font-size: var(--t-small); margin-top: auto; padding-top: var(--s-4); max-width: 80ch; }
.card h4 { font-size: var(--t-small); font-weight: 500; color: var(--muted); margin-top: var(--s-3); }
.card svg[role=img] { margin-top: var(--s-2); overflow: visible; }

/* ---------- headline numbers ---------- */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.kpi { padding: var(--s-5); display: grid; gap: var(--s-2); align-content: start; min-width: 0; }
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi .l { font-size: var(--t-label); font-weight: 500; color: var(--muted); }
.kpi .v { font-size: var(--t-stat); line-height: 1; }
.kpi .f { font-size: 13px; color: var(--muted); line-height: 1.45; }
.kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi:nth-child(3n + 1) { border-left: 0; }
  .kpi:nth-child(n + 4) { border-top: 1px solid var(--line); }
}
@media (max-width: 639px) {
  .kpis, .kpis--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: var(--s-4); }
  .kpi:nth-child(3n + 1) { border-left: 1px solid var(--line); }
  .kpi:nth-child(odd) { border-left: 0; }
  .kpi:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .kpis--3 .kpi:last-child { grid-column: span 2; }
}

/* ---------- tables ---------- */
.scroll { overflow-x: auto; margin-inline: calc(-1 * var(--card-pad)); padding-inline: var(--card-pad); }
table { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
th { text-align: left; font-weight: 500; font-size: var(--t-label); color: var(--muted); padding: var(--s-3) var(--s-3); border-bottom: 1px solid var(--line-strong); white-space: nowrap; vertical-align: bottom; }
th small { display: block; font-weight: 400; color: var(--muted); }
th.sort { cursor: pointer; } th.sort:hover { color: var(--ink); }
td { padding: var(--s-3); border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
tbody tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; transition: background-color var(--dur) var(--ease); }
tr.click:hover td { background: var(--cell); }
tr.sel td { background: color-mix(in oklab, var(--accent) 12%, transparent); }
tr.sel td:first-child { box-shadow: inset 2px 0 0 var(--accent); padding-left: var(--s-3); }
tr.low td { opacity: .5; }
.r { text-align: right; }
td b { font-weight: 500; color: var(--ink); }
td.dim, .dimtxt { color: var(--muted); }
.good { color: var(--good); } .warn { color: var(--warn); } .bad { color: var(--bad); }
.n { color: var(--muted); font-size: 13px; margin-left: var(--s-1); font-family: var(--font-text); }

/* standing tags */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 var(--s-2); border-radius: 6px; font: 500 13px/1 var(--font-text); white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag--good { background: var(--good-bg); color: var(--good); }
.tag--warn { background: var(--warn-bg); color: var(--warn); }
.tag--bad { background: var(--bad-bg); color: var(--bad); }
.tag--dim { background: var(--cell); color: var(--muted); }
/* a comparison on fewer than 10 games (app.js smallTag): dashed, so it reads as "rough", not as good or bad */
.tag--small { height: 20px; margin-left: var(--s-1); padding: 0 6px; border: 1px dashed var(--warn); background: transparent; color: var(--warn); font-size: 12px; cursor: help; }
.tag--small::before { display: none; }
.small-note { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-3); color: var(--muted); font-size: var(--t-small); }
.small-note .tag--small { margin-left: 0; }
.ranktbl--small tbody td:nth-child(n+5) { opacity: .6; }
.ng-small { color: var(--warn); border-bottom: 1px dashed currentColor; cursor: help; }

/* the rank table: you against your rank and the rank above, drawn on one line */
.ranktbl td:first-child { color: var(--ink); }
.rtrack { position: relative; display: block; width: 200px; height: 20px; }
.rtrack::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; border-radius: 2px; background: var(--line-strong); }
.rtrack i { position: absolute; top: 4px; width: 2px; height: 12px; border-radius: 2px; transform: translateX(-50%); }
.rtrack i.me { top: 3px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--card); }
.legend { display: flex; gap: var(--s-2) var(--s-5); flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: var(--s-2); }
.legend span { display: inline-flex; align-items: center; gap: var(--s-2); }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sw--line { height: 2px; width: 14px; border-radius: 0; }
.sw--dash { height: 0; width: 14px; border-top: 2px dashed var(--c-eternus); background: none !important; }

/* ---------- small charts ---------- */
.form { display: flex; gap: 3px; flex-wrap: wrap; }
.form i { flex: 1 0 8px; max-width: 16px; height: 28px; border-radius: 3px; display: block; }
.heat { display: grid; gap: 3px; font-size: 13px; }
.heat .c { height: 22px; border-radius: 3px; }
.heat .h { color: var(--muted); text-align: left; font-family: var(--font-mono); font-size: 12px; }
.heat .d { color: var(--muted); display: flex; align-items: center; }
@media (max-width: 639px) { .heat { gap: 2px; } .heat .c { height: 16px; border-radius: 2px; } .heat .h { font-size: 10px; } }

.drow { display: grid; grid-template-columns: 120px 1fr 64px 150px; gap: var(--s-3); align-items: center; font-size: var(--t-small); padding: var(--s-1) 0; }
.drow.dim { opacity: .45; }
.drow .dl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drow .dv { text-align: right; font-family: var(--font-mono); } .drow .dn { color: var(--muted); font-size: 13px; }
.dbar { position: relative; height: 16px; display: block; }
.dbar .axis { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line-strong); }
.dbar i { position: absolute; top: 3px; height: 10px; border-radius: 3px; }
.grp { margin-bottom: var(--s-4); } .gl { font-size: var(--t-small); color: var(--ink); margin-bottom: var(--s-1); }
.hb { position: relative; height: 18px; margin: 3px 0; background: var(--cell); border-radius: 4px; }
.hb i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.hb span { position: absolute; left: var(--s-2); top: 0; font: 500 12px/18px var(--font-mono); color: var(--bg); mix-blend-mode: normal; }
.hb i[style*="--c-eternus"] + span, .hb i[style*="--c-rank"] + span { color: var(--ink); }
@media (max-width: 639px) { .drow { grid-template-columns: 90px 1fr 56px; } .drow .dn { display: none; } }

/* phase and lane tiles: the inner tile is a flat cell, not a second box */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.tile2 { padding: var(--s-5) var(--s-5) 0 0; display: grid; gap: var(--s-1); align-content: start; font-size: var(--t-small); }
.tile2 + .tile2 { padding-left: var(--s-5); border-left: 1px solid var(--line); }
.tile2 .tt { font-size: var(--t-body); font-weight: 500; display: flex; gap: var(--s-2); align-items: center; flex-wrap: wrap; margin-bottom: var(--s-2); }
.tile2 .big { font: 400 var(--t-h3)/1.1 var(--font-mono); letter-spacing: -0.02em; }
.tile2 .muted { color: var(--muted); }
@media (max-width: 639px) {
  .tiles { grid-template-columns: 1fr; }
  .tile2, .tile2 + .tile2 { padding: var(--s-4) 0; border-left: 0; }
  .tile2 + .tile2 { border-top: 1px solid var(--line); }
}

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }
.items { font-size: var(--t-small); }
.items li { display: flex; justify-content: space-between; gap: var(--s-3); padding: var(--s-2) 0; border-bottom: 1px solid var(--line); }
.items li > span:last-child { font-family: var(--font-mono); font-size: 13px; text-align: right; }
@media (max-width: 639px) { .cols { grid-template-columns: 1fr; } }

/* ---------- coach view ---------- */
.hero.hero--coach { padding: var(--s-6) 0 var(--s-4); }
.hero--coach .hero__c { display: grid; justify-items: center; text-align: center; gap: var(--s-4); max-width: 880px; margin-inline: auto; }
.hero--coach h1 { font-size: clamp(38px, 3.24vw + 25.4px, 72px); line-height: 1.02; max-width: 16ch; }
.hero--coach h1 em { font-style: normal; color: var(--c-me); }
.hero--coach .hero__lead { max-width: 56ch; color: var(--muted); font-size: var(--t-lead); }
.hero--coach .btn-row { display: flex; gap: var(--s-4); justify-content: center; flex-wrap: wrap; }
.coach-window { margin-top: var(--s-7); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--raise);
  display: grid; grid-template-columns: 7fr 5fr; overflow: hidden; }
.coach-window > div { padding: var(--s-6); min-width: 0; }
.coach-window > div + div { border-left: 1px solid var(--line); background: var(--card); }

@media (max-width: 1023px) { .coach-window { grid-template-columns: 1fr; } .coach-window > div + div { border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 639px) { .coach-window > div { padding: var(--s-5) var(--s-4); } }

.gaps { display: grid; gap: var(--s-4); }
.gap { display: grid; grid-template-columns: 24px 1fr auto; gap: var(--s-1) var(--s-3); align-items: baseline; }
.gap .i { font: 500 13px/1 var(--font-mono); color: var(--muted); }
.gap .nm { font-size: var(--t-body); }
.gap .pc { font: 500 var(--t-small)/1 var(--font-mono); }
.gap .bar { grid-column: 2 / -1; height: 6px; border-radius: 3px; background: var(--cell); position: relative; }
.gap .bar i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--c-rank); }
.gap.top .nm { font-weight: 500; }
.gap.top .bar i { background: var(--c-me); }
.gap.top .pc { color: var(--c-me); }
.gap .n { grid-column: 2 / -1; margin: 0; }

.steps { counter-reset: s; display: grid; }
.steps a { display: grid; grid-template-columns: 28px 1fr; gap: 2px var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); transition: color var(--dur) var(--ease); }
.steps a:last-child { border-bottom: 0; }
.steps a:hover .st { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.steps .k { grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font: 500 12px/1 var(--font-mono); color: var(--muted); }
.steps .st { font-weight: 500; }
.steps .sv { font-size: var(--t-small); color: var(--muted); }

.callout { font-size: var(--t-lead); line-height: 1.5; padding: var(--s-5) var(--s-6); border-radius: var(--r-md); background: var(--raise);
  border: 1px solid var(--line); border-left: 3px solid var(--c-me); max-width: 72ch; }
.verdict { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.verdict .tag { height: 32px; font-size: var(--t-small); padding: 0 var(--s-3); }

.foot { border-top: 1px solid var(--line); padding: var(--s-6) 0; }

@media (max-width: 639px) {
  .block { margin-top: var(--s-8); }
  .block--band { padding-block: var(--s-7); }
  .rtrack { width: 120px; }
}
.grps { columns: 2 320px; column-gap: var(--s-7); margin-top: var(--s-3); }
.grps .grp { break-inside: avoid; }

@media (max-width: 639px) {
  .scopebar label, .scopebar .lab { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .chip { white-space: nowrap; font-size: 13px; }
  .scopebar { gap: var(--s-2); }
}
.hero--coach .pill { height: auto; min-height: 32px; padding-block: 6px; text-align: center; line-height: 1.35; }

/* read text at 7:1 or more; grey stays for labels and meta */
:root { --read: color-mix(in oklab, var(--ink) 80%, var(--bg)); }
.hero--coach .hero__lead, .view-head .sub, .block__head p, .card .q { color: var(--read); }
.wlabel { font-size: var(--t-label); font-weight: 500; color: var(--muted); margin-bottom: var(--s-4); }
.foot { order: 3; color: var(--muted); margin-top: var(--s-9); padding-top: var(--s-6); border-top: 1px solid var(--line); }
@media (max-width: 1279px) { .rtrack { width: 140px; } .ranktbl th, .ranktbl td { padding-inline: var(--s-2); } }
/* grouped bars: the value sits after its bar, in ink on the ground */
.hb { background: none; }
.hb span { left: auto; color: var(--read); }
.hb i[style*="--c-eternus"] + span, .hb i[style*="--c-rank"] + span { color: var(--read); }
.foot { color: var(--read); }
/* grouped bars, final: the bar in a track, the value in a fixed column on the right, so every value lines up */
.hb { display: grid; grid-template-columns: 1fr 64px; gap: var(--s-3); align-items: center; height: auto; margin: 4px 0; }
.hb .tr { position: relative; display: block; height: 12px; border-radius: 3px; background: var(--cell); }
.hb .tr i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; }
.hb .v { position: static; font: 500 13px/1.2 var(--font-mono); color: var(--read); text-align: right; }
.hb .v { text-align: left; }

/* ---------- in-game pictures ---------- */
.rk { width: 22px; height: 22px; object-fit: contain; flex: none; display: inline-block; vertical-align: middle; }
.thb { display: inline-flex; align-items: center; gap: 6px; }
.thb .rk { width: 18px; height: 18px; }
.hcell { display: inline-flex; align-items: center; gap: var(--s-3); }
.hface { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: var(--cell); flex: none; display: inline-block; }
.hface img { width: 100%; height: 100%; object-fit: cover; }
.it { display: inline-flex; align-items: center; gap: var(--s-2); }
.ico { width: 24px; height: 24px; object-fit: contain; flex: none; border-radius: 4px; background: var(--cell); padding: 2px; }
.drow .dl { display: flex; align-items: center; gap: var(--s-2); }
.drow .dl img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; }
.view-head { --hero: var(--c-me); grid-template-columns: auto 1fr; column-gap: var(--s-6); align-items: end; }
.view-head > :not(.vh-art) { grid-column: 1 / -1; }
.view-head:has(.vh-art) > h1, .view-head:has(.vh-art) > .sub { grid-column: 2; }
.vh-art { grid-row: 1 / span 2; width: 96px; aspect-ratio: 280 / 380; border-radius: var(--r-md); overflow: hidden;
  background: linear-gradient(180deg, color-mix(in oklab, var(--hero) 55%, var(--bg)), color-mix(in oklab, var(--hero) 15%, var(--bg))); }
.vh-art img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 639px) { .vh-art { width: 72px; } }

/* ---------- Coach Overview: before your match ---------- */
.ov { --hero: var(--c-me); position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-7) var(--s-7) var(--s-6);
  background: radial-gradient(120% 70% at 0% 0%, color-mix(in oklab, var(--hero) 16%, transparent), transparent 60%), var(--raise);
  display: grid; gap: var(--s-5); }
.ov-head { display: grid; gap: var(--s-2); }
.ov-head h1 { font-size: clamp(34px, 1.8vw + 22px, 48px); }
.ov-head .wlabel { margin: 0; color: var(--c-me); font-family: var(--font-mono); }
.ov-head .sub { color: var(--read); }
.ov-heroes { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.ov-hero { --hero: var(--c-me); position: relative; width: 84px; padding: var(--s-2) var(--s-1); display: grid; justify-items: center; gap: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--muted); cursor: pointer; font: 500 13px/1.2 var(--font-text);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.ov-hero:hover { color: var(--ink); border-color: var(--line-strong); transform: translateY(-2px); }
.ov-hero.on { color: var(--ink); border-color: var(--hero); box-shadow: inset 0 0 0 1px var(--hero), 0 0 24px -8px var(--hero); }
.ov-hero.few:not(.on) { opacity: .55; }
.ov-hero .face { position: relative; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: color-mix(in oklab, var(--hero) 30%, var(--surface)); }
.ov-hero .face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ov-hero .ini { font: 500 13px/1 var(--font-text); color: var(--ink); }
.ov-hero .nm { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-inline: 2px; }
.ov-hero .ct { position: absolute; top: 4px; right: 6px; font: 500 11px/1 var(--font-mono); color: var(--muted); }

.ov-main { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s-5); align-items: stretch; }
.ov-id { --hero: var(--c-me); display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--card); }
.ov-art { aspect-ratio: 280 / 330; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(90% 70% at 50% 30%, color-mix(in oklab, var(--hero) 60%, var(--bg)), color-mix(in oklab, var(--hero) 12%, var(--bg)) 75%); }
.ov-art img.art { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.ov-art .ini { font: 500 40px/1 var(--font-display); color: var(--ink); }
.ov-idtext { padding: var(--s-4) var(--s-5) var(--s-5); display: grid; gap: var(--s-1); align-content: start; border-top: 2px solid var(--hero); }
.ov-idtext h2 { font-size: var(--t-h3); }
.ov-idtext p { color: var(--read); font-size: var(--t-small); }
.ov-rank { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-2); }
.ov-rank .rk { width: 40px; height: 40px; }
.ov-rank span { display: grid; color: var(--ink); font-weight: 500; }
.ov-rank small { color: var(--muted); font-weight: 400; font-size: 13px; }

.ov-gaps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.ov-gap { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); min-width: 0; }
.ov-gap.top { border-color: color-mix(in oklab, var(--bad) 45%, var(--line)); }
.ov-row { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.ov-row h3 { font: 500 var(--t-card)/1.25 var(--font-text); letter-spacing: -0.01em; flex: 1 1 120px; min-width: 0; }
.ov-num { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font: 500 13px/1 var(--font-mono); color: var(--muted); }
.ov-gap.top .ov-num { background: var(--bad); border-color: var(--bad); color: var(--bg); }
.ov-what { color: var(--read); font-size: var(--t-small); }
.ov-bars { display: grid; gap: var(--s-2); margin-top: var(--s-1); }
.ov-bar { display: grid; grid-template-columns: 104px minmax(0, 1fr) 64px; gap: var(--s-3); align-items: center; font-size: 13px; }
.ov-bar .who { display: inline-flex; align-items: center; gap: 6px; color: var(--read); min-width: 0; overflow: hidden; white-space: nowrap; }
.ov-bar .who .rk { width: 18px; height: 18px; }
.ov-bar .tr { height: 10px; border-radius: 3px; background: var(--cell); position: relative; }
.ov-bar .tr i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--c-rank); }
.ov-bar.r2 .tr i { background: var(--c-above); }
.ov-bar.me .who { color: var(--ink); font-weight: 500; }
.ov-bar.me .tr i { background: var(--c-me); }
.ov-bar .v { font: 500 var(--t-small)/1 var(--font-mono); text-align: left; }
.ov-bar.me .v { color: var(--c-me); }
.ov-cue { margin-top: auto; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--raise); border-left: 3px solid var(--c-me); font-size: var(--t-small); line-height: 1.5; color: var(--read); }
.ov-cue b { display: block; color: var(--ink); font-weight: 500; margin-top: 2px; }
.ov .note { color: var(--muted); font-size: var(--t-small); margin: 0; padding: 0; }
@media (max-width: 1279px) { .ov-gaps { grid-template-columns: 1fr; } .ov-main { grid-template-columns: 220px minmax(0, 1fr); } }
@media (max-width: 1023px) {
  .ov { padding: var(--s-6) var(--s-5); }
  .ov-main { grid-template-columns: 1fr; }
  .ov-id { grid-template-columns: 120px 1fr; grid-template-rows: none; }
  .ov-art { aspect-ratio: auto; height: 100%; min-height: 150px; }
  .ov-idtext { border-top: 0; border-left: 2px solid var(--hero); align-content: center; }
}
@media (max-width: 639px) {
  .ov { padding: var(--s-5) var(--s-4); }
  .ov-heroes { flex-wrap: nowrap; overflow-x: auto; padding-bottom: var(--s-1); scrollbar-width: none; }
  .ov-hero { flex: none; width: 76px; }
  .ov-id { grid-template-columns: 96px 1fr; }
  .ov-gap { padding: var(--s-4); }
  .ov-bar { grid-template-columns: 92px minmax(0, 1fr) 56px; }
}

.rk { max-width: none; min-width: 0; }
img.rk { flex-shrink: 0; }
/* gap card bars: label and value on one line, the bar full width under them */
.ov-bar { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; column-gap: var(--s-3); }
.ov-bar .tr { grid-column: 1 / -1; grid-row: 2; height: 8px; }
.ov-bars { gap: var(--s-3); }
@media (max-width: 639px) { .ov-bar { grid-template-columns: minmax(0, 1fr) auto; } }
/* the pre-game answer fits the first screen at 1440x900 */
.ov { padding: var(--s-6) var(--s-6) var(--s-5); gap: var(--s-4); }
.ov-head h1 { font-size: clamp(30px, 1.2vw + 22px, 40px); }
.ov-art { aspect-ratio: 280 / 290; }
@media (max-width: 1023px) { .ov-art { aspect-ratio: auto; } }
.scopebar { margin-bottom: var(--s-5); }
@media (max-width: 639px) {
  .ov { gap: var(--s-3); }
  .ov-head .sub { font-size: var(--t-small); }
  .ov-id { grid-template-columns: 72px 1fr; }
  .ov-art { min-height: 0; height: 96px; }
  .ov-idtext { padding: var(--s-3) var(--s-4); gap: 0; }
  .ov-idtext h2 { font-size: 20px; }
  .ov-rank { margin-top: var(--s-1); }
  .ov-rank .rk { width: 28px; height: 28px; }
  .ov-rank span { display: flex; gap: 6px; align-items: baseline; }
}
.ov-art { display: block; position: relative; }
.ov-art img.art { position: absolute; inset: 0; display: block; }
.ov-art .ini { position: absolute; inset: 0; display: grid; place-items: center; }
@media (max-width: 639px) { .ov-rank span { white-space: nowrap; } .ov-rank small { display: none; } }
.face:has(img) .ini { display: none; }
.ov-hname { font: var(--display-weight) var(--t-h3)/1.2 var(--font-display); letter-spacing: var(--display-tracking); color: var(--ink) !important; font-size: var(--t-h3) !important; }
@media (max-width: 639px) { .ov-hname { font-size: 20px !important; } }
.hface--all { display: inline-grid; place-items: center; font: 500 11px/1 var(--font-text); color: var(--ink); }
tr.sel td:first-child { padding-left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ov-gaps { position: relative; }

/* death and kill maps */
.map-seg { margin-bottom: var(--s-4); }
.map-wrap { position: relative; aspect-ratio: 1; width: 100%; max-width: 620px; margin: 0 auto; border-radius: var(--r-md); overflow: hidden; background: #0b0b0b; }
.heatmap { display: block; width: 100%; height: 100%; }
.heatmap .map-img { filter: brightness(2.4); opacity: 0.5; }
.heatmap .heat { mix-blend-mode: screen; }
.map-count { margin-top: var(--s-3); font-size: var(--t-small); color: var(--muted); text-align: center; }
.map-count b { font-family: var(--font-mono); color: var(--ink); font-weight: 500; }
.regionmap .rlabels text { font: 600 3.2px var(--font-mono); fill: #fff; text-anchor: middle; dominant-baseline: middle; paint-order: stroke; stroke: rgba(0,0,0,.75); stroke-width: .7px; }
.regionmap .redges { fill: none; stroke: rgba(10,10,10,.85); stroke-width: .35px; }
.map-note { margin-top: var(--s-3); }

/* match history */
.mtable td, .mtable th { white-space: nowrap; }
.mtable tr.mopen td { background: var(--surface); padding: var(--s-4) var(--s-5); white-space: normal; }
.mdetail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); }
.mdetail h4 { margin: 0 0 var(--s-2); font-size: var(--t-small); color: var(--muted); font-weight: 500; }
.mdetail p { margin: 0 0 var(--s-3); }
.mbuild { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; margin: 0; }
.mbuild li { display: flex; flex-direction: column; align-items: center; gap: 2px; font: 400 11px/1 var(--font-mono); color: var(--muted); }
.mbuild .mi { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--bg); }
.mbuild .mi--txt { display: grid; place-items: center; font-size: 12px; color: var(--ink); }
.mphases div { margin-bottom: 4px; }
.mphases b { display: inline-block; width: 44px; font-weight: 500; }
.more { margin-top: var(--s-4); text-align: center; }
@media (max-width: 760px) { .mdetail { grid-template-columns: 1fr; } }
.insights { list-style: none; padding: 0; margin: 0 0 var(--s-4); display: grid; gap: var(--s-2); }
.insights li { padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); background: var(--bg); border-left: 3px solid var(--line-strong); }
.insights li.good { border-left-color: var(--good); }
.insights li.bad { border-left-color: var(--bad); }
.map-filters { display: flex; flex-wrap: wrap; gap: var(--s-3); }


/* ---------- navigation: a left side menu (docs/design/navigation/README.md) ----------
   Desktop: the menu is fixed on the left; every view is one line in it, grouped like the coach (Coach, Your gaps,
   Your games), with the account box at its foot. Under 1024 px it becomes a drawer, and a bottom bar holds the
   three groups plus Menu; the views of the current group sit as a row of links at the top of the page. */
:root { --side: 232px; --tabbar: 64px; --nav: 0px; }
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 40; display: flex; flex-direction: column; gap: var(--s-5);
  padding: var(--s-5) var(--s-3) var(--s-4); background: var(--raise); border-right: 1px solid var(--line); overflow-y: auto; overscroll-behavior: contain; }
.side__logo { font: var(--display-weight) 19px/1.1 var(--font-display); letter-spacing: var(--display-tracking); color: var(--ink); padding: var(--s-1) var(--s-3); text-decoration: none; }
.side__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side__group { font: 500 var(--t-label)/1 var(--font-mono); color: var(--muted); padding: 0 var(--s-3); margin: var(--s-5) 0 var(--s-2); }
.side__group:first-child { margin-top: 0; }
.side__link { display: flex; align-items: center; min-height: 36px; padding: 0 var(--s-3); border-radius: var(--r-sm); color: var(--read);
  font: 500 var(--t-small)/1.2 var(--font-text); text-decoration: none; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.side__link:hover { background: var(--cell); color: var(--ink); }
.side__link[aria-current="page"] { color: var(--ink); background: color-mix(in oklab, var(--c-me) 13%, transparent); box-shadow: inset 2px 0 0 var(--c-me); }
.side .acct { margin-top: auto; display: grid; gap: var(--s-2); padding: var(--s-4) var(--s-3) 0; border-top: 1px solid var(--line); }
.acct label { font-size: var(--t-label); font-weight: 500; color: var(--muted); }
.acct input { font: 400 var(--t-small)/1 var(--font-mono); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong);
  height: var(--btn-h-sm); padding: 0 var(--s-3); border-radius: var(--r-sm); width: 100%; min-width: 0; }
.acct input:focus { border-color: var(--action); outline: none; }
.acct__btns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.acct .btn--sm { height: var(--btn-h-sm); justify-content: center; padding-inline: var(--s-2); }
.main { margin-left: var(--side); padding: 0 0 var(--s-9); min-height: 100svh; }
.main > .wrap { padding-top: var(--s-2); }
#acctMsg .banner { margin-top: var(--s-4); }

/* the page head: group, the view's name, its question, then who and which games it covers */
.phead { display: grid; gap: var(--s-2); margin-bottom: var(--s-6); }
.phead .eyebrow { font: 500 var(--t-label)/1 var(--font-mono); color: var(--c-me); }
.phead h1 { font-size: clamp(30px, 1.2vw + 22px, 40px); }
.phead h1:focus, .ov-head h1:focus, .card:focus { outline: none; }
.phead .sub { color: var(--read); max-width: 62ch; }
.phead .scope { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); font-size: var(--t-small); color: var(--muted); margin-top: var(--s-1); }
.phead .scope b { color: var(--ink); font-weight: 500; }
.phead .hface { width: 24px; height: 24px; }
.page > .block:first-child, .page > .kpis:first-child { margin-top: 0; }
.page > .kpis + .kpi-note { margin-bottom: var(--s-5); }
.page .block { margin-top: var(--s-6); }
.page .block__head { margin-bottom: var(--s-4); }
.plan-row { margin-top: var(--s-5); }
.coach-window { margin-top: 0; }
[id] { scroll-margin-top: calc(var(--scope) + var(--s-4)); }

/* cross-links: from a gap to its evidence, from a match to its hero, between neighbouring views */
.xlinks { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); margin-top: var(--s-5); }
.xlink { font: 500 var(--t-small)/1.4 var(--font-text); color: var(--c-me); text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--c-me) 40%, transparent); text-underline-offset: 3px; }
.xlink:hover { text-decoration-color: var(--c-me); }
.ov-gap > .xlink { align-self: flex-start; }
.card .xlinks { margin-top: var(--s-4); }
.gap a.nm { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.gap a.nm:hover { text-decoration-color: var(--c-me); }

/* phone and tablet pieces, hidden on a desktop */
.tabbar, .subnav, .backdrop { display: none; }
.backdrop[hidden] { display: none !important; }

@media (max-width: 1023px) {
  .main { margin-left: 0; padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom) + var(--s-6)); }
  .side { width: min(300px, 86vw); transform: translateX(-102%); transition: transform var(--dur) var(--ease); box-shadow: 0 0 48px rgba(0,0,0,.6); visibility: hidden; }
  body.menu-open .side { transform: none; visibility: visible; }
  body.menu-open { overflow: hidden; }
  .backdrop { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(0,0,0,.55); }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; inset: auto 0 0 0; z-index: 45;
    height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--raise); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { position: relative; display: grid; justify-items: center; align-content: center; gap: 4px; background: none; border: 0; cursor: pointer;
    color: var(--muted); font: 500 12px/1 var(--font-text); text-decoration: none; }
  .tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
  .tabbar [aria-current="page"] { color: var(--ink); }
  .tabbar [aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; border-radius: 0 0 2px 2px; background: var(--c-me); }
  .subnav { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; padding: var(--s-4) 0 var(--s-2); margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); }
  .subnav a { flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 var(--s-4); border-radius: 999px; border: 1px solid var(--line);
    color: var(--read); font: 500 var(--t-small)/1 var(--font-text); text-decoration: none; white-space: nowrap; }
  .subnav a[aria-current="page"] { color: var(--ink); border-color: var(--c-me); background: color-mix(in oklab, var(--c-me) 14%, transparent); }
  .side .acct .btn--sm { height: 40px; }
}
@media (max-width: 639px) {
  .phead { margin-bottom: var(--s-5); }
  .phead h1 { font-size: 28px; }
  [id] { scroll-margin-top: var(--s-4); }
}
/* the part-of-match and side switches wrap on a phone instead of pushing the page wider than the screen */
@media (max-width: 639px) { .map-seg { display: flex; flex-wrap: wrap; width: 100%; } .map-seg .chip { flex: 1 1 auto; } }
.xlink span { white-space: nowrap; }
/* the open drawer sits above the bottom bar, so the account buttons at its foot stay reachable */
@media (max-width: 1023px) {
  .side { z-index: 50; padding-bottom: calc(var(--s-4) + env(safe-area-inset-bottom)); }
  .backdrop { z-index: 47; }
}

/* last 10 games */
.review-sum { text-align: left; }
.rv-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); margin-bottom: var(--s-3); }
.rv-head .hcell img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.rv-head .xlink { margin-left: auto; }
.rv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.rv-cols > div { min-width: 0; }
.rv-cols h4 { margin: 0 0 var(--s-2); }
.insights li.none { border-left-color: var(--line); }
.kpis-row { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-bottom: var(--s-3); }
tr.sum td { border-top: 1px solid var(--line-strong); font-weight: 600; }
@media (max-width: 720px) { .rv-cols { grid-template-columns: 1fr; } .rv-head .xlink { margin-left: 0; } }

/* Next game: who the gaps compare you with */
.ov-vs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.ov-vs .vs-who { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--read); font-size: var(--t-small); }
.ov-vs .vs-who > span:last-child { display: grid; }
.ov-vs .vs-who b { color: var(--ink); font-weight: 500; }
.ov-vs small { color: var(--muted); font-size: 12px; }
.ov-vs .rk { width: 32px; height: 32px; }
.ov-vs .hface { width: 32px; height: 32px; }
.ov-vs .hface .ini { font: 500 11px/1 var(--font-text); color: var(--ink); }
.ov-vs .vs-x { font: 500 13px/1 var(--font-mono); color: var(--muted); text-transform: uppercase; }

/* History */
.hist-pick { margin-bottom: var(--s-4); }
.hist-note { margin: 0 0 var(--s-4); }
.hist-now { margin: 0 0 var(--s-2); display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: baseline; font-size: var(--t-small); }
.hist-now b { font: 500 22px/1 var(--font-mono); color: var(--ink); }

/* Time to die: two headline numbers */
.kpis.kpis--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: var(--s-4); }
.kpis.kpis--2 .kpi { border-top: 0; }
.kpis.kpis--2 .kpi + .kpi { border-left: 1px solid var(--line); }

/* you against your rank: the same green and red everywhere */
.hb .v.good, .ov-bar .v.good { color: var(--good); }
.hb .v.bad, .ov-bar .v.bad { color: var(--bad); }

/* You vs your rank: where your typical game sits among games at your rank */
.better { display: inline-flex; align-items: center; gap: var(--s-3); white-space: nowrap; font-size: 13px; }
.btrack { position: relative; display: block; width: 120px; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.btrack .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--muted); border-radius: 4px; }
.btrack .fill.good { background: var(--good); }
.btrack .fill.bad { background: var(--bad); }
.btrack .mid { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--ink); opacity: .5; z-index: 1; }

/* under the Refresh button: the last refresh, or the one running */
.acct__status:empty { display: none; }
.acct__status { display: grid; gap: 6px; font-size: var(--t-label); color: var(--muted); }
.acct__line { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; }
.acct__line b { color: var(--ink); font-weight: 500; }
.acct__line .num { font-family: var(--font-mono); }
.acct__line--note { color: var(--ink); }
.acct__share { justify-self: start; min-height: 32px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.acct__share:hover { color: var(--accent, var(--ink)); }
.acct__took { margin-left: auto; }
.acct__bar { position: relative; display: block; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.acct__bar i { position: absolute; inset: 0 auto 0 0; background: var(--action); border-radius: 2px; transition: width .3s ease; }
.acct__bar--wait i { width: 35% !important; animation: acct-wait 1.2s ease-in-out infinite alternate; }
@keyframes acct-wait { from { left: 0; } to { left: 65%; } }
@media (prefers-reduced-motion: reduce) { .acct__bar--wait i { animation: none; width: 100% !important; opacity: .5; } .acct__bar i { transition: none; } }

/* the site's first screen: one account ID box */
.start { max-width: 560px; margin: var(--s-8) auto 0; }
.start p { margin: 0; color: var(--muted); }
.start .start__note { color: var(--ink); }
.start__row { display: grid; grid-template-columns: 1fr auto; gap: var(--s-2); width: 100%; }
.start input { font: 400 var(--t-body)/1 var(--font-mono); color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong);
  height: var(--btn-h, 44px); padding: 0 var(--s-3); border-radius: var(--r-sm); width: 100%; min-width: 0; }
.start input:focus { border-color: var(--action); outline: none; }

/* the partial-file notice: first thing on every page while a first build is still measuring */
.partial-note { margin: var(--s-4) 0 0; }

/* lane names in their in-game colours */
.lane-name { font-weight: 700; }
.lane-name::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; background: currentColor; vertical-align: 0; }
.lane-york { color: #e8c547; }
.lane-broadway { color: #5b9bff; }
.lane-greenwich { color: #4fc27a; }

/* the cost line, the stale-numbers note, Versus a friend */
.ng-cost { margin: var(--s-3) 0 0; color: var(--muted); font-size: var(--t-small); }
.ng-cost b { color: var(--ink); font-weight: 600; }
.stale-note { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.acct__line--stale { color: var(--warn); }
.vs-form { margin: 0 0 var(--s-4); display: grid; gap: var(--s-2); }
.vs-form input { flex: 1 1 auto; min-width: 0; }

/* players found by Steam name (app.js offerChoices) */
.choices { margin-top: var(--s-3); display: grid; gap: 6px; }
.choices__h { margin: 0 0 2px; font-size: var(--t-small); color: var(--muted); }
.choice { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px; text-align: left; cursor: pointer; font: inherit; color: var(--ink); background: var(--cell); border: 1px solid var(--line); border-radius: 6px; }
.choice:hover, .choice:focus-visible { border-color: var(--c-me); }
.choice img, .choice__ph { flex: none; width: 32px; height: 32px; border-radius: 4px; background: var(--line); object-fit: cover; }
.choice__n { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.choice__n small { color: var(--muted); margin-left: 4px; }
.choice__id { flex: none; font: 12px var(--font-mono); color: var(--muted); }
