:root {
  --red: #c62828;
  --red-dark: #8e1b1b;
  --red-tint: #fdecec;
  --bg: #f4f4f2;
  --card: #ffffff;
  --text: #1d1d1b;
  --muted: #6b6b66;
  --faint: #9a9a94;
  --line: #e2e2dd;
  --ok: #2e7d32;
  --ok-tint: #e8f4e8;
  --warn: #8a5300;
  --warn-tint: #fff1d6;
  --blue: #1f5fa8;
  --blue-tint: #e6f0fb;
  --radius: 10px;
  --nav-h: 62px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --red-tint: #3a1717; --bg: #141413; --card: #1f1f1d; --text: #f0efea; --muted: #b0afa8;
    --faint: #85847e; --line: #34342f; --ok: #7cc47f; --ok-tint: #1c2e1c; --warn: #f2b35a;
    --warn-tint: #36280f; --blue: #8cb8ec; --blue-tint: #172636; color-scheme: dark;
  }
  .t-V { color: #ff9a92 !important; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--red); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--red); color: #fff;
  padding: calc(env(safe-area-inset-top) + 8px) 14px 10px; }
.top-row { display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .5px; text-decoration: none; color: #fff; }
.brand img { width: 34px; height: 26px; object-fit: contain; background: #fff; border-radius: 6px; padding: 1px; }
.top .spacer { flex: 1; }
.top .day-select { flex: none; width: auto; min-height: 34px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); color: #fff;
  border-radius: 999px; padding: 4px 10px; font-size: 14px; }
.top .sync { white-space: nowrap; }
.day-select option { color: #000; }
.icon-btn { background: transparent; border: 0; color: inherit; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.sync { font-size: 12px; opacity: .9; }
/* back / forward + breadcrumb: a white strip along the bottom of the red header */
.crumbbar { display: flex; align-items: center; gap: 2px; margin: 10px -14px -10px; padding: 4px 6px;
  background: var(--card); color: var(--text); border-bottom: 1px solid var(--line, rgba(0,0,0,.08)); min-height: 40px; }
.navbtn { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--red);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.navbtn svg { width: 22px; height: 22px; }
.navbtn:active { background: var(--red-tint); }
.navbtn:disabled { color: var(--muted); opacity: .35; cursor: default; }
.navbtn[hidden] { display: inline-flex; visibility: hidden; }
.crumbs { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; font-size: 13px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.crumbs::-webkit-scrollbar { display: none; }
.crumb { color: var(--muted); text-decoration: none; padding: 6px 2px; }
a.crumb:active { color: var(--red); }
.crumb.cur { color: var(--text); font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.crumbs .sep { color: var(--muted); opacity: .6; }
@media print { .crumbbar { display: none; } }
.sync.bad { background: #fff; color: var(--red); border-radius: 999px; padding: 3px 10px; font-weight: 700; border: 0; cursor: pointer; }
.title { margin: 6px 0 0; font-size: 20px; font-weight: 700; }
.subtitle { margin: 0; font-size: 13px; opacity: .9; }

/* ---------- layout ---------- */
main { padding: 12px 12px calc(var(--nav-h) + env(safe-area-inset-bottom) + 24px); max-width: 720px; margin: 0 auto; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 12px; }
.card h3 { margin: 0 0 8px; font-size: 15px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.list-row { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.clickable { cursor: pointer; }
.num { font-weight: 800; color: var(--red); min-width: 34px; }
.name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { text-align: center; padding: 28px 12px; color: var(--muted); }
.stack > * + * { margin-top: 8px; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 14px;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); cursor: pointer; font-weight: 600;
  text-decoration: none; color: var(--text); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.block { width: 100%; }
.btn.sm { min-height: 34px; padding: 0 10px; font-size: 14px; }
.btn.danger { color: var(--red); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px;
  font-size: 14px; cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--text); color: var(--card); border-color: var(--text); }
.seg { display: flex; background: var(--line); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { flex: 1; border: 0; background: transparent; border-radius: 9px; padding: 8px; font-weight: 600; cursor: pointer; }
.seg button.on { background: var(--card); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
input[type=text], input[type=number], input[type=date], input[type=email], input[type=tel], input[type=search], select, textarea {
  width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 10px 12px; min-height: 44px; }
textarea { min-height: 90px; resize: vertical; }
label.field { display: block; font-size: 13px; color: var(--muted); }
label.field > input, label.field > select, label.field > textarea { margin-top: 4px; color: var(--text); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

/* ---------- scoring ---------- */
.score-btns { display: flex; gap: 6px; }
.sbtn { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--card);
  font-weight: 700; font-size: 16px; cursor: pointer; padding: 0; }
.sbtn.on { background: var(--red); color: #fff; border-color: var(--red); }
.sbtn.half { font-size: 14px; }
.cat-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cat-row:last-child { border-bottom: 0; }
.cat-code { font-weight: 800; color: var(--red); }
.taps { font-size: 12px; color: var(--muted); }
.taps button { border: 0; background: none; color: var(--faint); cursor: pointer; padding: 0 4px; font-size: 12px; }
.total-box { display: flex; justify-content: space-between; align-items: center; background: var(--red-tint);
  border-radius: 12px; padding: 10px 14px; margin-top: 10px; }
.total-box strong { font-size: 24px; }
.desc { background: var(--red-tint); color: var(--text); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.desc b { color: var(--red); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.ptile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; text-align: center; cursor: pointer; }
.ptile .n { font-size: 22px; font-weight: 800; color: var(--red); line-height: 1.1; }
.ptile .f { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptile.done { border-color: var(--ok); }
.ptile .tiny { color: var(--muted); }
.sticky-sub { position: sticky; top: var(--sub-top, 62px); z-index: 10; background: var(--bg); padding: 8px 0; }

/* ---------- badges ---------- */
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.t-V { background: var(--red-tint); color: var(--red); }
.t-JV { background: var(--blue-tint); color: var(--blue); }
.t-JV2 { background: var(--line); color: var(--muted); }
.t-Low, .t-warn { background: var(--warn-tint); color: var(--warn); }
.t-cut { background: var(--text); color: var(--card); }
.t-ok { background: var(--ok-tint); color: var(--ok); }
.draft { border: 1px dashed currentColor; background: transparent; }
.flag-spread { color: var(--warn); font-weight: 700; }
.avg { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 40px; text-align: right; }
.stat { background: var(--bg); border-radius: 10px; padding: 8px; text-align: center; }
.stat .l { font-size: 12px; color: var(--muted); }
.stat .v { font-size: 20px; font-weight: 800; }
.stat.warn { background: var(--warn-tint); color: var(--warn); }
.bar { height: 10px; border-radius: 5px; background: var(--line); flex: 1; overflow: hidden; }
.bar > div { height: 100%; background: var(--red); border-radius: 5px; }
.banner { border-radius: 12px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.banner.warn { background: var(--warn-tint); color: var(--warn); }
.banner.info { background: var(--blue-tint); color: var(--blue); }
.note { border-left: 3px solid var(--line); padding: 4px 0 4px 10px; margin: 8px 0; }
.note.strength { border-color: var(--ok); }
.note.concern { border-color: var(--warn); }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; padding: 3px 0; }
.check.ok { color: var(--ok); }
.check.no { color: var(--red); }
.team-card .pchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pchip { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 5px 10px; font-size: 14px; cursor: pointer; }
.pchip.draft { border-style: dashed; }
.pchip b { color: var(--red); }

/* ---------- call-out ---------- */
.callout-row { display: flex; align-items: baseline; gap: 16px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.callout-row .n { font-size: 32px; font-weight: 900; color: var(--red); min-width: 56px; }
.callout-row .nm { font-size: 26px; font-weight: 600; }

/* ---------- nav ---------- */
nav.bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--card); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
nav.bottom.viewer { grid-template-columns: repeat(3, 1fr); }
nav.bottom a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px;
  text-decoration: none; color: var(--muted); padding: 4px 0; }
nav.bottom a.on { color: var(--red); font-weight: 700; }
nav.bottom a.home-btn { justify-self: center; width: 58px; height: 58px; margin-top: -24px; padding: 0; justify-content: center; border-radius: 50%;
  background: var(--card); color: var(--red); border: 2px solid var(--red); font-size: 11px; font-weight: 700; }
nav.bottom a.home-btn.on { background: var(--red); color: #fff; }
svg { width: 20px; height: 20px; flex: none; }
nav.bottom svg, .icon-btn svg { width: 22px; height: 22px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- sheet / toast ---------- */
.backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--card); width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; border-radius: 18px 18px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
.sheet h2 { margin: 0 0 12px; font-size: 18px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom));
  background: var(--text); color: var(--card); padding: 10px 16px; border-radius: 999px; z-index: 60; font-size: 14px; max-width: 92vw; }
.err { color: var(--red); font-size: 13px; margin-top: 6px; }

/* ---------- tables / print ---------- */
table.sum { width: 100%; border-collapse: collapse; font-size: 13px; }
table.sum th, table.sum td { border-bottom: 1px solid var(--line); padding: 6px 4px; text-align: left; }
table.sum th { font-size: 11px; text-transform: uppercase; color: var(--muted); }
.table-wrap { overflow-x: auto; }
@media print {
  .top, nav.bottom, .no-print { display: none !important; }
  main { padding: 0; max-width: none; }
  .card { border: 0; padding: 0; }
  body { background: #fff; color: #000; }
}
@media (min-width: 560px) { .sbtn { width: 48px; height: 48px; } }
@media (max-width: 360px) { .sbtn { width: 38px; height: 40px; } .score-btns { gap: 4px; } }

/* ---------- practices ---------- */
ol.drills { margin: 0; padding-left: 22px; }
ol.drills li { padding: 3px 0; }
.prewrap { white-space: pre-wrap; }
ol.drills a { color: inherit; text-decoration-color: var(--red); }
ol.drills a svg { width: 14px; height: 14px; vertical-align: -2px; color: var(--red); }
.pick-row { display: flex; width: 100%; align-items: center; gap: 8px; text-align: left; background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 10px; margin-top: 6px; cursor: pointer; }

/* ---------- home ---------- */
.home-lbl { font-size: 13px; color: var(--muted); margin: 14px 2px 6px; font-weight: 600; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px; text-decoration: none; color: var(--text); min-height: 92px; }
.tile:active { transform: scale(.98); }
.tryout-row { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; margin-bottom: 8px; color: inherit; text-decoration: none; }
.tryout-row:active { transform: scale(.99); }
.tryout-row > svg:first-child { width: 22px; height: 22px; color: var(--red); flex: none; }
.tryout-row > svg:last-child { width: 18px; height: 18px; color: var(--muted); flex: none; }
.tryout-row .grow { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.tryout-row .tl { font-weight: 700; }
.tryout-row .tm { font-size: 12px; color: var(--muted); }
.tryout-row.hot { border-color: var(--red); }
.tryout-row.hot .tm { color: var(--red); font-weight: 600; }
.tile svg { width: 24px; height: 24px; color: var(--red); margin-bottom: 4px; }
.tile .tl { font-weight: 700; }
.tile .tm { font-size: 12px; color: var(--muted); }
.today-line { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.today-line:last-child { border-bottom: 0; }

/* ---------- practice absences ---------- */
.sbtn.xbtn { margin-left: 6px; color: var(--muted); }
.sbtn.xbtn.on { background: var(--red); border-color: var(--red); color: #fff; }
.sbtn.xbtn.picking { outline: 2px solid var(--red); outline-offset: 2px; }
.apick { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0 10px 40px; border-bottom: 1px solid var(--line); }
.asum { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.apill, .atag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); white-space: nowrap; }
.atag { margin-left: 6px; vertical-align: 1px; }
.asub { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.asub .atag, .tiny .atag { margin-left: 0; }
.ab-excused { background: #fff3cd; border-color: #f0d68a; color: #7a5200; }
.ab-no_show { background: #fde8e8; border-color: #f3b5b5; color: #a01919; }
.ab-other { background: #eceff3; border-color: #d3d8df; color: #3d4652; }
.ab-none { background: transparent; border-style: dashed; color: var(--muted); }
.arow:has(+ .apick) { border-bottom: 0; }

/* ---------- practice quotes ---------- */
.qcard { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 0 14px 14px 0; padding: 14px 16px 12px; margin-bottom: 12px; }
.qcard.qempty { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-left-color: var(--line); }
.qtext { font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.4; margin: 0; }
.qby { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.home-quote { font-family: Georgia, "Times New Roman", serif; font-style: italic; margin: 0 0 8px; line-height: 1.4; }
.home-quote span { font-family: inherit; font-style: normal; font-size: 12px; color: var(--muted); }
.qopt { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 8px; color: var(--text); }
.qopt svg { width: 22px; height: 22px; color: var(--red); flex: none; }
.qopt.col { flex-direction: column; align-items: stretch; }
.qopt .tiny { display: block; }

/* ---------- players ---------- */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.kv a { color: var(--red); font-weight: 700; }
.plrow { text-decoration: none; color: var(--text); }
.plrow .att { min-width: 44px; text-align: right; font-weight: 800; }
.ns { color: #a01919; font-weight: 700; }
.linkbtn { background: none; border: 0; padding: 2px 0; color: var(--muted); font: inherit; cursor: pointer; }
.linkbtn.on { color: var(--text); font-weight: 800; text-decoration: underline; }
.collapse-head { width: 100%; background: none; border: 0; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.collapse-head .chev { margin-left: 4px; }

/* ---------- signed forms ---------- */
.fbox { width: 40px; height: 40px; flex: none; border-radius: 10px; border: 2px solid var(--line); background: var(--card); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.fbox.need { border-color: #f3b5b5; }
.fbox.on { background: var(--ok); border-color: var(--ok); }
.fbox svg { width: 22px; height: 22px; stroke-width: 3; }
.frow { display: grid; grid-template-columns: 1fr repeat(3, 48px); align-items: center; justify-items: center; gap: 4px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.frow:last-child { border-bottom: 0; }
.frow .fname { justify-self: stretch; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); text-decoration: none; }
.frow .fname .num { min-width: 0; }
.fhead { padding-top: 0; }
.tile.hot { border-color: var(--red); }
.tile.hot .tm { color: var(--red); font-weight: 600; }
.fbox.ro { cursor: default; }

/* ---------- gear ---------- */
.gteam { font-size: 12px; font-weight: 700; color: var(--muted); margin: 10px 0 6px; text-transform: uppercase; letter-spacing: .4px; }
.gnums { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; }
.gnum { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 52px; padding: 4px 2px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; overflow: hidden; }
.gnum b { font-size: 18px; line-height: 1.1; }
.gnum span { font-size: 10px; color: var(--muted); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gnum.s-ok { border-color: var(--ok); }
.gnum.s-ok b { color: var(--ok); }
.gnum.s-out { background: var(--blue-tint); border-color: var(--blue-tint); }
.gnum.s-out b, .gnum.s-out span { color: var(--blue); }
.gnum.s-damaged { background: var(--warn-tint); border-color: var(--warn-tint); }
.gnum.s-damaged b, .gnum.s-damaged span { color: var(--warn); }
.gnum.s-lost { background: var(--red-tint); border: 1px dashed var(--red); }
.gnum.s-lost b, .gnum.s-lost span { color: var(--red); }
.gnum.s-retired { opacity: .45; border-style: dashed; }
.gnum:active { transform: scale(.96); }
code { font-size: 13px; background: var(--bg); padding: 1px 5px; border-radius: 5px; }
.ghead { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.gname { font-size: 16px; font-weight: 700; }
.gchev { display: flex; color: var(--muted); transition: transform .15s; }
.gchev.open { transform: rotate(180deg); }
.gcard .ghead + * { margin-top: 10px; }
.ateam { display: flex; align-items: center; gap: 8px; margin: 14px 0 2px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-weight: 700; }
[data-group] > .list-row > .pill { display: none; } /* team pill is redundant under a team heading */
.lgroup.closed .lbody { display: none; }
.lib.searching .lgroup.closed .lbody { display: block; } /* search opens every category with a match */
.lgroup:not(.closed) .gchev, .lib.searching .lgroup .gchev { transform: rotate(180deg); }
.lgroup .lbody { margin-top: 8px; }

/* ---------- games ---------- */
.t-away { background: var(--warn-tint); color: var(--warn); }
.hot-txt { color: var(--red); font-weight: 600; }
.warn-txt { color: var(--warn); }
.jnum { flex: none; min-width: 34px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--muted); }
.av-full { background: var(--ok-tint); border-color: transparent; color: var(--ok); }
.av-limited { background: #fff3cd; border-color: #f0d68a; color: #7a5200; }
.av-out { background: #fde8e8; border-color: #f3b5b5; color: #a01919; }
ol.starters { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: st; }
ol.starters li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); counter-increment: st; }
ol.starters li:last-child { border-bottom: 0; }
ol.starters li::before { content: counter(st); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff;
  font-size: 13px; font-weight: 800; display: grid; place-items: center; }
ul.keys { margin: 0; padding-left: 20px; }
ul.keys li { padding: 3px 0; font-weight: 600; }
.citem { padding: 6px 2px; }
.citem.done .grow { color: var(--muted); text-decoration: line-through; }
.xlink { flex: none; width: 34px; height: 34px; border: 0; background: none; color: var(--faint); display: grid; place-items: center; cursor: pointer; }
.xlink svg { width: 16px; height: 16px; }
.ride-bus { background: var(--blue-tint); border-color: transparent; color: var(--blue); }
.ride-parents { background: var(--ok-tint); border-color: transparent; color: var(--ok); }
.ride-other { background: var(--warn-tint); border-color: transparent; color: var(--warn); }
#stl .sbtn { flex: none; display: grid; place-items: center; font-weight: 800; }
@media (prefers-color-scheme: dark) {
  .av-limited { background: #36280f; border-color: #5a4314; color: #f2b35a; }
  .av-out { background: #3a1717; border-color: #5c2323; color: #ff9a92; }
}

/* ---------- game sections (open / close) ---------- */
.gsec { padding: 0; }
.gsec-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 12px; border: 0; background: none; text-align: left; cursor: pointer; color: var(--text); }
.gsec-head > svg { flex: none; width: 20px; height: 20px; color: var(--muted); transition: transform .15s; }
.gsec.closed .gsec-head > svg { transform: rotate(-90deg); }
.gsec-title { display: block; font-weight: 700; font-size: 15px; }
.gsec-sum { display: block; font-size: 13px; color: var(--muted); margin-top: 1px; }
.gsec:not(.closed) .gsec-sum { display: none; }
.gsec-body { padding: 0 12px 12px; }
.gsec.closed .gsec-body { display: none; }
.gsec-tools { display: flex; justify-content: flex-end; margin: -4px 0 6px; }
.buscount { display: flex; align-items: center; gap: 6px; padding: 8px 10px; margin: 4px 0; border-radius: 10px; background: var(--warn-tint); color: var(--warn); font-size: 14px; }
.buscount.ok { background: var(--ok-tint); color: var(--ok); }
.buscount svg { width: 18px; height: 18px; }
