/* Training Days · app de campo
   Feita para usar no telemóvel, ao ar livre: contraste alto, alvos de toque grandes, sem dependências. */
:root {
  --bg: #f3f3f1;
  --surface: #ffffff;
  --surface-2: #e9e9e6;
  --line: #d6d6d2;
  --fg: #111111;
  --muted: #5f5f5a;
  --brand: #111111;
  --brand-ink: #ffffff;
  --brand-soft: #e4e4e0;
  --bar: #0b0b0b;
  --bar-ink: #ffffff;
  --ok: #157a3f;   --ok-soft: #d9f0e1;
  --warn: #a8640b; --warn-soft: #faecd4;
  --bad: #b3261e;  --bad-soft: #f8dcd9;
  --info: #285e94; --info-soft: #dce8f5;
  --match: #b45309; --match-soft: #fbe7d3;
  --r: 4px;
  --silver: #c0c0bf;
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Oswald", "Arial Narrow", "Roboto Condensed", var(--font);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d0d; --surface: #171717; --surface-2: #222222; --line: #333333;
    --fg: #f1f1ee; --muted: #a3a39d; --brand: #f1f1ee; --brand-ink: #0d0d0d; --brand-soft: #2a2a2a;
    --bar: #000000; --bar-ink: #ffffff;
    --ok: #4fc47f; --ok-soft: #173826; --warn: #e2a64b; --warn-soft: #3a2c15; --bad: #f08a80; --bad-soft: #3d1f1c;
    --info: #86b4e3; --info-soft: #1b2a3a; --match: #f0a35a; --match-soft: #3a2615;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--fg); font: 16px/1.4 var(--font);
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(68px + env(safe-area-inset-bottom));
}
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- topo e navegação ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 10px max(14px, env(safe-area-inset-left));
  background: var(--bar); color: var(--bar-ink);
}
/* faixa axadrezada por baixo da barra (o xadrez do clube como detalhe) */
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px;
  background: repeating-conic-gradient(#0b0b0b 0 25%, #ffffff 0 50%) 0 0 / 8px 8px;
  border-bottom: 1px solid #0b0b0b;
}
.crest {
  width: 36px; height: 36px; flex: none; border-radius: 50%;
  display: grid; place-items: center; text-decoration: none;
  background: #ffffff; color: #0b0b0b; border: 2px solid #ffffff;
  font: 700 14px var(--display); letter-spacing: .02em;
}
#teamSelect {
  flex: 1; min-width: 0; border: 0; border-radius: 8px; padding: 8px 10px;
  background: rgba(255,255,255,.14); color: var(--bar-ink); font-weight: 600;
}
#teamSelect option { color: #111111; background: #ffffff; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; font-size: 24px; line-height: 1; padding: 4px 8px; border-radius: 8px; }
.menu summary::-webkit-details-marker { display: none; }
.menu-pop {
  position: absolute; right: 0; top: 40px; min-width: 220px; z-index: 20;
  background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 8px; display: flex; flex-direction: column; gap: 2px;
}
.menu-pop > * { padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--fg); }
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-2); }
.menu-pop form { padding: 0; }
.menu-pop button { width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 8px; cursor: pointer; color: var(--bad); }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 10px;
  text-decoration: none; color: var(--muted); font: 500 12px var(--display); text-transform: uppercase; letter-spacing: .06em;
}
.tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.tabbar a.on { color: var(--brand); }

main#view {
  max-width: 720px; margin: 0 auto;
  padding: 24px max(14px, env(safe-area-inset-right)) 24px max(14px, env(safe-area-inset-left));
  display: flex; flex-direction: column; gap: 14px;
}
.loading { color: var(--muted); text-align: center; padding: 40px 0; }

/* ---------- tipografia ---------- */
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font: 600 26px/1.1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
h2 { font: 500 15px var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.head .sub { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* ---------- botões e campos ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border-radius: 2px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--fg); text-decoration: none;
  font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: .05em;
}
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.match { background: var(--match); border-color: var(--match); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.danger-ghost { background: transparent; color: var(--bad); }
.btn.small { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn.big { min-height: 52px; font-size: 17px; width: 100%; }
.btn:disabled { opacity: .5; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.row-btns .btn { flex: 1; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  min-height: 46px; padding: 10px 12px; border-radius: 3px; border: 1px solid var(--line);
  background: var(--surface); color: var(--fg); font-weight: 400; font-size: 16px; width: 100%; min-width: 0;
}
.field textarea { min-height: 84px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.error { color: var(--bad); margin: 0; font-size: 14px; }

.seg { display: flex; background: var(--surface-2); border-radius: 3px; padding: 3px; gap: 3px; }
.seg button { flex: 1; min-height: 38px; border: 0; border-radius: 2px; background: transparent; font: 500 14px var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* ---------- cartões e listas ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.card.pad { padding: 14px; }
.list { list-style: none; margin: 0; padding: 0; }
.item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border-top: 1px solid var(--line); text-decoration: none; color: inherit;
}
.list > :first-child .item, .list > .item:first-child { border-top: 0; }
.item .grow { flex: 1; min-width: 0; }
.item .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .m { font-size: 13px; color: var(--muted); }
.date-chip {
  width: 48px; flex: none; text-align: center; border-radius: 2px; padding: 5px 0;
  background: var(--brand-soft); color: var(--fg);
}
.date-chip.match { background: var(--match-soft); color: var(--match); }
.date-chip b { display: block; font: 700 20px/1 var(--display); }
.date-chip span { font-size: 11px; text-transform: uppercase; font-weight: 700; letter-spacing: .04em; }
.pill { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 2px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.info { background: var(--info-soft); color: var(--info); }
.pill.match { background: var(--match-soft); color: var(--match); }
.empty { text-align: center; color: var(--muted); padding: 28px 16px; }
.empty b { display: block; color: var(--fg); font-size: 17px; margin-bottom: 4px; }

.shirt {
  width: 34px; height: 34px; flex: none; border-radius: 2px; display: grid; place-items: center;
  background: var(--surface-2); font: 700 17px var(--display); font-variant-numeric: tabular-nums;
}

/* ---------- presenças ---------- */
.counts { display: flex; gap: 6px; flex-wrap: wrap; }
.roster { display: flex; flex-direction: column; gap: 8px; }
.pl {
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; min-height: 58px;
  background: var(--surface); border: 2px solid var(--line); border-radius: var(--r);
  user-select: none; -webkit-user-select: none;
}
.pl .main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; min-height: 44px; }
.pl .who { flex: 1; min-width: 0; }
.pl .nm { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl .nt { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl .st { margin-left: auto; flex: none; }
.pl .more { width: 40px; height: 40px; border-radius: 8px; border: 0; background: var(--surface-2); cursor: pointer; font-size: 18px; flex: none; }
.pl[data-s="present"] { border-color: var(--ok); background: color-mix(in srgb, var(--ok-soft) 55%, var(--surface)); }
.pl[data-s="late"] { border-color: var(--warn); }
.pl[data-s="absent"] { border-color: var(--bad); background: color-mix(in srgb, var(--bad-soft) 45%, var(--surface)); }
.pl[data-s="excused"] { border-color: var(--warn); }
.pl[data-s="injured"], .pl[data-s="sick"] { border-color: var(--info); }
.pl.off { opacity: .55; }
.med { color: var(--bad); font-weight: 700; font-size: 12px; }

.savebar { position: sticky; top: calc(64px + env(safe-area-inset-top)); z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: var(--bg); padding: 6px 0; }
.saved { font-size: 13px; color: var(--muted); }
.saved.dirty { color: var(--warn); }
.saved.err { color: var(--bad); font-weight: 600; }

/* ---------- dados de jogo ---------- */
.score { display: flex; align-items: center; justify-content: center; gap: 14px; }
.score input { width: 72px; height: 64px; text-align: center; font: 700 34px var(--display); border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.score .vs { font: 700 26px var(--display); color: var(--muted); }
.stat { padding: 12px; display: grid; gap: 10px; }
.stat .top { display: flex; align-items: center; gap: 10px; }
.stat .controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.stepper { min-width: 0; display: flex; align-items: center; justify-content: space-between; background: var(--surface-2); border-radius: 10px; padding: 2px; }
.stepper button { width: 34px; height: 40px; flex: none; border: 0; background: var(--surface); border-radius: 8px; font-size: 20px; cursor: pointer; }
.stepper .v { text-align: center; min-width: 0; flex: 1; font: 700 18px var(--display); font-variant-numeric: tabular-nums; }
.stepper .v small { display: block; font: 600 9px var(--font); overflow: hidden; text-overflow: ellipsis; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.toggle { min-height: 36px; padding: 0 12px; border-radius: 2px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 13px; cursor: pointer; }
.toggle[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .toggle { min-height: 40px; font-size: 14px; }
.stars { display: flex; gap: 4px; }
.stars button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer; }
.stars button.on { background: var(--warn); border-color: var(--warn); color: #fff; }

/* ---------- jogador ---------- */
.hero { display: flex; gap: 14px; align-items: center; }
.hero .shirt { width: 56px; height: 56px; font-size: 28px; border-radius: 14px; background: var(--brand); color: var(--brand-ink); }
.alert { border-radius: var(--r); padding: 12px 14px; background: var(--bad-soft); color: var(--bad); font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.kpi { padding: 12px 14px; }
.kpi .k { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.kpi .v { font: 700 30px/1.05 var(--display); font-variant-numeric: tabular-nums; }
.kpi .n { font-size: 13px; color: var(--muted); }
.meter { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; background: var(--ok); }
.meter i.warn { background: var(--warn); } .meter i.bad { background: var(--bad); }
.goal { padding: 12px 14px; display: grid; gap: 6px; border-top: 1px solid var(--line); }
.goal:first-child { border-top: 0; }
.goal .gt { font-weight: 600; }
.goal select { min-height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); padding: 0 8px; }
.evalbars { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: center; font-size: 13px; }
.evalbars .bar { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.evalbars .bar i { display: block; height: 100%; background: var(--brand); }
.dots { display: flex; gap: 4px; flex-wrap: wrap; }
.dot { width: 14px; height: 14px; border-radius: 4px; background: var(--surface-2); }
.dot.present, .dot.late { background: var(--ok); } .dot.absent { background: var(--bad); }
.dot.excused { background: var(--warn); } .dot.injured, .dot.sick { background: var(--info); }
.contact { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); }
.contact:first-child { border-top: 0; }
.contact .phone { font-variant-numeric: tabular-nums; user-select: all; }

/* ---------- folha (bottom sheet) e toast ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 30; background: rgba(8,14,10,.5);
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet .panel {
  width: min(720px, 100%); max-height: 90vh; overflow-y: auto;
  background: var(--bg); border-radius: 6px 6px 0 0;
  padding: 18px max(16px, env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  display: flex; flex-direction: column; gap: 14px;
}
.sheet .grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: -6px auto 0; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choices button { min-height: 52px; border-radius: 10px; border: 2px solid var(--line); background: var(--surface); font-weight: 600; cursor: pointer; }
.choices button.on { border-color: var(--brand); background: var(--brand-soft); }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 40;
  bottom: calc(80px + env(safe-area-inset-bottom)); max-width: calc(100% - 32px);
  background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600;
}

/* ---------- login ---------- */
body.login { min-height: 100vh; display: grid; place-items: center; padding: 20px max(16px, env(safe-area-inset-left)); }
.login-card { width: min(380px, 100%); display: flex; flex-direction: column; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .crest { width: 52px; height: 52px; font-size: 17px; background: #0b0b0b; color: #ffffff; border: 0; box-shadow: inset 0 0 0 3px #ffffff, 0 0 0 2px #0b0b0b; }
body.login::before { content: ""; position: fixed; inset: 0 0 auto; height: 14px; background: repeating-conic-gradient(#0b0b0b 0 25%, #ffffff 0 50%) 0 0 / 14px 14px; }
.brand strong { display: block; font: 700 24px/1 var(--display); }
.brand small { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .sheet .panel { animation: up .18s ease-out; }
  @keyframes up { from { transform: translateY(30px); opacity: .6; } }
}

/* assinatura do clube, discreta */
.signature { font: 600 13px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--silver); }

/* ---------- jogo ao vivo ---------- */
body.live-mode .tabbar { display: none; }
body.live-mode { padding-bottom: env(safe-area-inset-bottom); }
.live-top { display: flex; justify-content: space-between; align-items: center; }
.live-board { display: flex; flex-direction: column; gap: 12px; background: var(--bar); color: var(--bar-ink); border-color: var(--bar); }
.live-board .btn:not(.primary):not(.match) { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.live-board .btn.primary { background: #fff; color: #0b0b0b; border-color: #fff; }
.live-score { display: flex; align-items: center; justify-content: center; gap: 18px; text-align: center; }
.live-score b { display: block; font: 700 56px/1 var(--display); }
.live-score span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .75; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-score i { font: 700 34px var(--display); opacity: .5; font-style: normal; }
.live-clock { display: flex; flex-direction: column; align-items: center; gap: 0; }
.live-clock .per { font: 500 13px var(--display); text-transform: uppercase; letter-spacing: .1em; opacity: .8; }
.live-clock b { font: 600 64px/1.05 var(--display); letter-spacing: .02em; }
.live-clock .tgt { font-size: 12px; opacity: .6; }
.live-clock.over b { color: #f0a35a; }
.live-actions .btn { min-height: 54px; font-size: 16px; }
.lgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .lgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lp { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 6px 8px; text-align: left; cursor: pointer;
  border: 2px solid var(--line); border-radius: var(--r); background: var(--surface); user-select: none; -webkit-user-select: none; min-width: 0; }
.lp.in { border-color: var(--ok); background: color-mix(in srgb, var(--ok-soft) 55%, var(--surface)); }
.lp.sel { border-color: var(--match); box-shadow: 0 0 0 3px var(--match-soft); background: var(--match-soft); }
.lp .nm { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp .nm .g { font-size: 11px; }
.lp .mins { flex: none; font: 600 15px var(--display); color: var(--muted); }
.live-hint { font-size: 13px; text-align: center; padding: 4px 0; }
.linkish { background: none; border: 0; padding: 0; color: var(--match); font-weight: 700; text-decoration: underline; cursor: pointer; }
.linkish.inv { color: var(--bg); margin-left: 10px; }
.tl { width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; cursor: pointer; font-size: 14px; }
.tl .tm { flex: none; width: 64px; font: 600 13px var(--display); color: var(--muted); }
.tl .up { color: var(--ok); } .tl .down { color: var(--bad); }
table.sum { width: 100%; border-collapse: collapse; font-size: 14px; }
table.sum th { text-align: left; font: 500 12px var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.sum td { padding: 8px 10px; border-top: 1px solid var(--line); }
table.sum td.num, table.sum th:not(:first-child) { text-align: right; }
table.sum tr.off td { color: var(--muted); }
.controls.ro .stepper { justify-content: center; min-height: 44px; }

/* ---------- análise de vídeo (pensada para o computador) ---------- */
body.video-mode .tabbar { display: none; }
body.video-mode { padding-bottom: 0; }
body.video-mode main#view { max-width: 1280px; }
.v-top { display: flex; justify-content: space-between; align-items: center; }
.v-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 980px) { .v-grid { grid-template-columns: minmax(0, 1fr) 340px; } .v-side { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; } }
.v-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.v-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.v-player { position: relative; background: #000; border-radius: var(--r); aspect-ratio: 16 / 9; overflow: hidden; }
.v-player video { width: 100%; height: 100%; display: block; background: #000; }
.v-open { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: pointer; background: var(--surface-2); padding: 20px; text-align: center; }
.v-open .btn { width: auto; }
.v-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v-bar input[type=range] { flex: 1; min-width: 160px; accent-color: var(--brand); }
.v-time { font: 600 18px var(--display); min-width: 58px; }
.v-rate { display: flex; background: var(--surface-2); border-radius: 3px; padding: 2px; gap: 2px; }
.v-rate button { border: 0; background: transparent; padding: 6px 9px; border-radius: 2px; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--muted); }
.v-rate button[aria-pressed="true"] { background: var(--surface); color: var(--fg); }
.v-sync { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.warn-t { color: var(--warn); font-weight: 600; }
.v-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.v-actions .btn { min-height: 52px; padding: 0 12px; font-size: 15px; justify-content: flex-start; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.key { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; margin-right: 8px; border: 1px solid currentColor; border-radius: 3px; font: 700 12px var(--font); opacity: .7; flex: none; }
.v-step { position: absolute; left: 10px; right: 10px; bottom: 10px; max-height: 75%; overflow: auto; z-index: 2; border: 2px solid var(--match); display: flex; flex-direction: column; gap: 10px; background: color-mix(in srgb, var(--surface) 94%, transparent); }
.v-step-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.v-step-h .linkish { margin-left: auto; }
.v-digits { font: 700 20px var(--display); color: var(--match); min-width: 24px; }
.v-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.v-picks .btn { justify-content: flex-start; gap: 8px; text-transform: none; letter-spacing: 0; font-family: var(--font); font-weight: 600; }
.v-picks .btn b { font: 700 18px var(--display); min-width: 24px; }
.v-help { margin: 0; }
.v-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.v-kpis .kpi .v { font-size: 24px; }
.v-log .item { padding: 8px 10px; font-size: 14px; gap: 8px; }
.v-row.live { color: var(--muted); background: var(--surface-2); }
.v-row .more { width: 32px; height: 32px; border-radius: 6px; border: 0; background: var(--surface-2); cursor: pointer; flex: none; }
.v-jump { flex: none; border: 0; background: none; padding: 0; font: 600 13px var(--display); color: var(--match); cursor: pointer; text-decoration: underline; width: 58px; text-align: left; }
.v-jump:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.v-row .up { color: var(--ok); } .v-row .down { color: var(--bad); }
.scroll-x { overflow-x: auto; }
table.sum.wide { min-width: 640px; }
table.sum a { color: inherit; font-weight: 600; }

.live-more { gap: 6px; }
.live-more .btn { flex: 1 1 auto; min-height: 42px; text-transform: none; letter-spacing: 0; font-family: var(--font); font-weight: 600; font-size: 14px; }
.cardi { display: inline-block; width: 11px; height: 15px; border-radius: 2px; margin-right: 6px; vertical-align: -2px; }
.cardi.y { background: #f2c200; } .cardi.r { background: #d0262a; }
.choices button.muted { opacity: .65; }
