/* css/repertoire.css - Repertoire check (on top of prepare.css) */
:root { --me: #fbbf24; --opp: #93c5fd; --end: #4ade80; }
#pick { min-width: 280px; max-width: 100%; }
#repInfo b { color: #e6edf3; }
#repInfo:empty { display: none; }
#scope { max-width: 760px; }
#repDlg { width: min(560px, calc(100vw - 24px)); padding: 22px 24px; }
fieldset.side { border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px 10px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin: 0; }
fieldset.side legend { font-size: 12.5px; font-weight: 600; color: #cdd5df; padding: 0 4px; }
fieldset.side label { flex-direction: row; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
fieldset.side small { color: var(--muted); font-size: 12px; }
#chapters { margin-top: 12px; }
#chapters summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--gold); }
#chapters summary small { font-weight: 400; margin-left: 6px; }
#chapters .hint { margin: 8px 0; }
.tablewrap { overflow-x: auto; }
#chTable select { padding: 3px 6px; font-size: 13px; }
#chTable td.det { font-size: 12px; color: var(--muted); white-space: nowrap; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.toolbar .tabs { margin: 4px 0; }
.since { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
/* tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; min-width: 0; }
.tile .big { font-size: 24px; font-weight: 700; margin: 2px 0 4px; }
.tile .big small { font-size: 12.5px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.tile .sl { margin-bottom: 2px; }
.tile .rates { color: var(--muted); }
.tile.k-me { border-left: 3px solid var(--me); }
.tile.k-opp { border-left: 3px solid var(--opp); }
.tile.k-end { border-left: 3px solid var(--end); }
/* kinds */
.kind { font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 1px 8px; border: 1px solid currentColor; white-space: nowrap; }
.kind.me { color: var(--me); } .kind.opp { color: var(--opp); } .kind.end, .kind.full { color: var(--end); }
.note { font-size: 13px; color: #e6edf3; border-left: 3px solid var(--gold); padding: 4px 10px; margin: 6px 0; background: rgba(197,157,95,.06); border-radius: 0 6px 6px 0; }
.lhead b.played { color: #fde68a; }
.lhead b.prepmv { color: #bbf7d0; }
.ladvice .glist button { all: unset; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; width: 100%; font-size: 12.5px;
  padding: 4px 2px; border-top: 1px dashed rgba(255,255,255,.08); }
.ladvice .glist button:hover { background: rgba(255,255,255,.05); }
.ladvice .glist button:focus-visible { outline: 2px solid #ffd60a; }
.ladvice .links { margin-top: 8px; display: flex; gap: 12px; flex-wrap: wrap; }
/* chapters in practice + games */
.rep tbody tr[data-ch], .rep tbody tr[data-g] { cursor: pointer; }
.rep tbody tr[data-ch]:hover, .rep tbody tr[data-g]:hover { background: rgba(255,255,255,.05); }
.rep tbody tr.on { background: rgba(255,214,10,.08); }
.rep td.num, .rep th.num { text-align: right; white-space: nowrap; }
.rep .what { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.rep .chn { color: var(--muted); font-size: 12px; }
.res.win { color: var(--win); } .res.loss { color: var(--loss); } .res.draw { color: var(--draw); }
.gtools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.gtools .chip { font-size: 12px; border: 1px solid var(--gold); color: var(--gold); border-radius: 999px; padding: 1px 4px 1px 10px; display: inline-flex; gap: 6px; align-items: center; }
.gtools .chip button { all: unset; cursor: pointer; padding: 0 6px; }
#gMore { margin-top: 8px; }
@media (max-width: 1000px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tile { padding: 8px 10px; }
  .tile .big { font-size: 20px; }
  .rep.games th:nth-child(5), .rep.games td:nth-child(5) { display: none; }
  .rep.chs th:nth-child(3), .rep.chs td:nth-child(3), .rep.chs th:nth-child(4), .rep.chs td:nth-child(4) { display: none; }
}
/* map */
#progWrap { max-width: 520px; }
#progBar { height: 100%; width: 0; background: var(--gold); transition: width .2s; }
.slot { padding-bottom: 8px; }
.slot h2 { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.slot h2 small { font-weight: 400; font-size: 13px; }
.slot h2 select { font-size: 12.5px; padding: 2px 6px; }
.map td.wname b { color: #e6edf3; }
.map td.wname small { display: block; }
.map select.role { padding: 2px 6px; font-size: 12.5px; }
.map tr.r-retired td { opacity: .55; }
.map tr.r-none td.wname b { color: #93c5fd; }
.map td.years { white-space: nowrap; color: var(--muted); font-size: 12px; }
.map .btn.sm { padding: 2px 10px; }
.map tr.nogames td { color: var(--muted); }
.slotmore { margin-top: 6px; font-size: 12.5px; }
.role-main { color: #ffd60a; } .role-secondary { color: #7ee2a8; } .role-former { color: #e8c88f; } .role-retired { color: var(--muted); }
#rtabs { margin-top: 0; }
#sidesTable select { padding: 3px 6px; font-size: 13px; }
#drill > .btn { margin-top: 4px; }
@media (max-width: 700px) { .map .years, .map .c-avg, .map .c-left { display: none; } }
.map td.wname { white-space: nowrap; }
.idle { font-size: 12.5px; color: var(--muted); margin: 8px 0 2px; line-height: 1.6; }
.idle small { color: #6b7685; }
.linkbtn { all: unset; cursor: pointer; color: var(--gold); font-size: 13px; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn:focus-visible { outline: 2px solid #ffd60a; outline-offset: 2px; }
.vleft { display: inline-flex; gap: 10px; align-items: center; min-width: 0; }
.vleft #viewTitle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vright { display: flex; gap: 6px; flex-shrink: 0; }
