/* #picks, the home "Today's picks" block, the match page's verdict and the predictions record: prediction cards,
   verdict chips (words + colour, never colour alone), compact game rows and the All / Value / Close switch.
   Tokens only (both themes come from app.css and predictor.css); no inline styles (CSP). */

/* ---------------------------------------------------------------- verdict chip */
.vchip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font: 800 .7rem var(--sans); letter-spacing: .02em;
  white-space: nowrap; border: 1px solid transparent; line-height: 1.3; }
.vchip b { font-weight: 900; }
.vchip.v-value { background: var(--best-bg); color: var(--best); border-color: var(--best); }
.vchip.v-close { background: var(--warn-bg); color: var(--warn); }
.vchip.v-none { background: var(--surface-2); color: var(--muted); }
.vchip.v-unrated { background: transparent; color: var(--muted); border-color: var(--line); border-style: dashed; }

/* ---------------------------------------------------------------- prediction card */
.pk { display: grid; gap: 8px; align-content: start; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.pk > * { min-width: 0; }
.pk-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: .74rem; color: var(--muted); min-width: 0; }
.pk-top .tip-comp { text-decoration: none; } .pk-top .tip-comp:hover { color: var(--accent); text-decoration: underline; }
.pk-teams { margin: 0; font-size: 1.02rem; font-weight: 850; letter-spacing: -.01em; overflow-wrap: anywhere; }
.pk-teams a { color: var(--text); text-decoration: none; } .pk-teams a:hover { color: var(--accent); text-decoration: underline; }
.pk-pred { margin: 0; font-size: .88rem; color: var(--muted); } .pk-pred b { color: var(--text); font-weight: 800; }
.pk-pred b.pos { color: var(--good); } .pk-pred b.warn { color: var(--warn); } .pk-pred b.neg { color: var(--bad); }
.pk-verdict { display: grid; gap: 5px; justify-items: start; padding: 8px 10px; border-radius: 9px; background: var(--surface-2); border-left: 4px solid var(--line); }
.pk-verdict p { margin: 0; font-size: .84rem; line-height: 1.45; overflow-wrap: anywhere; }
.pk-verdict.v-value { border-left-color: var(--best); background: var(--best-bg); }
.pk-verdict.v-close { border-left-color: var(--warn); }
.pk-verdict.v-none { border-left-color: var(--line); }
.pk-verdict.v-unrated { border-left-color: var(--muted); }
.pk-odds { display: grid; gap: 6px; }
.pk-odds-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pk-odds-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pk-odds .ob { min-width: 0; width: 100%; }
.pk-why { margin: 0; padding-left: 18px; display: grid; gap: 3px; font-size: .84rem; line-height: 1.4; }
.pk-why li::marker { color: var(--best); } .pk-why .pk-watch::marker { color: var(--warn); }
.pk-meta { margin: 0; font-size: .74rem; color: var(--muted); overflow-wrap: anywhere; }
.pk-adv[open] { gap: 8px; }
.pk-adv .note { margin: 0; }
.pk-tbl th, .pk-tbl td { padding: 6px 8px; }

/* ---------------------------------------------------------------- #picks page */
.pk-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.pk-counts { margin: 0 0 4px; font-size: .86rem; color: var(--muted); font-weight: 650; }
.pk-filters { align-items: center; }
.pk-seg { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); max-width: 100%; }
.pk-seg button { font: 750 .84rem var(--sans); color: var(--muted); background: none; border: 0; border-radius: 8px; padding: 7px 13px; min-height: 36px; cursor: pointer; white-space: nowrap; }
.pk-seg button:hover { color: var(--text); }
.pk-seg button[aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent), var(--shadow); }
.pk-seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.picks .pk-out { display: grid; gap: 18px; min-width: 0; }
.picks .pk-out > * { min-width: 0; }
.pk-more { margin: 0; text-align: center; }
.pk-list .pr-h { font-size: .98rem; }
.pk-row { grid-template-columns: 62px minmax(0, 1fr) auto; }
.pk-rp { font-size: .8rem; color: var(--muted); font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-rside { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.pk-rside .ob { width: 84px; flex: none; }
.pk-unp { padding-top: 10px; }
.pk-unl { list-style: none; margin: 0; padding: 0; display: grid; }
.pk-unl li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 4px 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.pk-unl li > * { min-width: 0; overflow-wrap: anywhere; }
.pk-unt { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- match page: our call, on the dark header */
.mh-call { display: grid; gap: 5px; justify-items: start; padding: 9px 11px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid var(--nav-line); }
.mh-call-h { font-size: .68rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; color: var(--nav-muted); }
.mh-call p { margin: 0; font-size: .88rem; line-height: 1.45; color: var(--nav-ink); overflow-wrap: anywhere; }
.mh-call .vchip.v-none, .mh-call .vchip.v-unrated { background: transparent; color: var(--nav-muted); border-color: var(--nav-line); }

/* ---------------------------------------------------------------- #record: the predictions ledger */
.pk-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pk-kpis .k { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); min-width: 0; }
.pk-kpis b { display: block; font-size: 1.5rem; font-weight: 850; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pk-kpis span { font-size: .78rem; color: var(--muted); }
.pk-kpis .cell-sub { margin-top: 2px; }

/* ---------------------------------------------------------------- phone */
@media (max-width: 899px) {
  .pk-row { grid-template-columns: 54px minmax(0, 1fr); }
  .pk-rside { grid-column: 2; justify-content: space-between; }
}
@media (max-width: 480px) {
  .pk { padding: 11px 12px; }
  .pk-seg { display: flex; width: 100%; }
  .pk-seg button { flex: 1 1 auto; padding: 7px 8px; }
  .pk-filters .fl { width: 100%; } .pk-filters .fl select { flex: 1; max-width: none; width: 100%; }
  .pk-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pk-kpis .k:first-child { grid-column: 1 / -1; }
  .pk-kpis b { font-size: 1.3rem; }
  .pk-unl li { grid-template-columns: minmax(0, 1fr); }
}
/* our own model (results only): the headline prediction when it covers the game */
.pk-model { margin: 2px 0 4px; padding: 8px 10px; border-radius: 10px; background: var(--row-alt); border: 1px solid var(--line); }
.pk-model p { margin: 0; font-size: .9rem; color: var(--text); overflow-wrap: anywhere; }
.pk-model b { font-weight: 800; }
.pk-model .pk-mt, .mh-model .pk-mt { margin-top: 3px; font-size: .74rem; color: var(--muted); }
.pk-mlab { display: inline-block; margin-right: 6px; padding: 1px 7px; border-radius: 999px; font-size: .68rem; font-weight: 800;
  letter-spacing: .02em; text-transform: uppercase; background: var(--sel-bg); color: var(--sel-ink); }
.pk-model-big p:first-child { font-size: 1.02rem; }
.pk-model-wait { font-size: .8rem; color: var(--muted); }
.mh-model { margin: 8px 0; }
.pk-rm { font-weight: 800; color: var(--text); }
.mh .mh-model > .pk-mt { color: var(--nav-muted); }
