:root {
  /* Navy and white: --grass and --grass-deep are the main brand colors (navy now; the names stay so nothing else has to change). */
  --ink: #0f1726; --chalk: #f3f5f9; --paper: #ffffff; --grass: #1a3a70; --grass-deep: #102a56; --go: #1f8a5b; --live: #e5484d;
  --amber: #f2b600; --amber-deep: #c99600; --radius: 12px; --line: #cbd2dd; --rule: #dce1e8; --edge: #aeb8c8; --muted: #5c6778; --red: #b3261e; --red-tint: #fbeae8; --ok-tint: #e5f2e9; --warn-tint: #fff4d1;
  /* --radius: the one corner for buttons, cards and rows that you tap (audit 2.4). */
  --head: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --num: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  /* The five text sizes, used everywhere (app and browser). Only live scoreboard digits and the big team-name banners go larger.
     title 28: page title, big numbers · section 22: section heading · card 18: card title, player name
     body 16: body text, buttons, form fields, instructions · small 14: dates, rep counts, status labels */
  --fs-title: 28px; --fs-section: 22px; --fs-card: 18px; --fs-body: 16px; --fs-small: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--chalk); color: var(--ink); font: var(--fs-card)/1.45 var(--body); min-height: 100vh; }
body.has-tabs { padding-bottom: 84px; }
body.has-tabs.scoring-screen { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
a { color: var(--grass); }
h1, h2, h3 { font-family: var(--head); line-height: 1.05; margin: 0; letter-spacing: .005em; }
h1 { font-size: var(--fs-title); font-weight: 800; letter-spacing: -.015em; line-height: 1.12; } h2 { font-size: var(--fs-section); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; } h3 { font-size: var(--fs-card); font-weight: 700; line-height: 1.2; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); } .small { font-size: var(--fs-small); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.stack > * + * { margin-top: 14px; } .stack-lg > * + * { margin-top: 24px; }
.row { display: flex; align-items: center; gap: 12px; } .row.between { justify-content: space-between; } .grow { flex: 1; min-width: 0; }

/* Top bar: always shows where you are and how to get back */
.bar { background: var(--grass-deep); color: #fff; position: sticky; top: 0; z-index: 20; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 10px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--body); font-weight: 800; font-size: var(--fs-section); color: #fff; text-decoration: none; letter-spacing: -.01em; }
.logo svg { flex: none; }
.logo b { color: inherit; font-weight: 800; }
.bar a, .bar button.link { color: #fff; }
.link { background: none; border: 0; font: inherit; text-decoration: underline; padding: 8px 4px; cursor: pointer; }
.chip { font-size: var(--fs-small); font-weight: 600; padding: 5px 10px; border-radius: 99px; background: rgba(255,255,255,.14); color: #fff; white-space: nowrap; }
.chip.saving { background: #eef2f9; color: var(--ink); } .chip.bad { background: var(--red); color: #fff; }
/* On a narrow phone the save message wraps instead of pushing the top bar wider than the screen. */
.bar .row { min-width: 0; } .logo { flex: none; }
@media (max-width: 480px) {
  .chip { white-space: normal; line-height: 1.2; text-align: center; }
  .bar .row { flex-wrap: wrap; justify-content: flex-end; gap: 4px 8px; }
  .bar .chip { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
  .bar .link { flex: none; }
}
.crumbs { background: var(--paper); border-bottom: 1px solid var(--line); }
.crumbs .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-height: 46px; font-size: var(--fs-body); }
.crumbs a { font-weight: 600; padding: 10px 0; } .crumbs .sep { color: var(--muted); } .crumbs .here { color: var(--muted); }

main { padding: 20px 0 32px; }
/* The space above a page's first heading was being cancelled by .wrap; this puts it back. Pages that set their own are left alone. */
main.wrap:where(:not(.interest-main)) { padding-top: 20px; padding-bottom: 32px; }
main.wrap.scoring { padding-top: 10px; padding-bottom: 8px; }

/* Buttons: big enough for a thumb in sunlight */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; padding: 10px 18px; border-radius: var(--radius); border: 1.5px solid var(--btn-line, var(--edge)); background: var(--paper); color: var(--ink); font: 700 var(--fs-body) var(--body); text-decoration: none; cursor: pointer; text-align: center; }
/* One primary button everywhere: solid navy. ("green" is the older name for the same button.) Gold is kept for "Workout waiting". */
.btn.primary, .btn.green { background: var(--grass-deep); border-color: var(--grass-deep); color: #fff; }
.btn.danger { border-color: var(--red); color: var(--red); }
.btn.edit { background: var(--paper); border-color: var(--edge); color: var(--ink); }
.removezone { display: grid; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.btn.sm { min-height: 44px; font-size: var(--fs-body); width: auto; padding: 6px 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-row { display: grid; gap: 12px; }
@media (min-width: 560px) { .btn-row.cols { grid-template-columns: repeat(3, 1fr); } }

/* Forms */
label.f { display: block; font-weight: 600; font-size: var(--fs-body); }
input.in, select.in, textarea.in { display: block; width: 100%; min-height: 50px; margin-top: 4px; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; background: var(--paper); font: var(--fs-body) var(--body); color: var(--ink); }
textarea.in { min-height: 110px; resize: vertical; }
input.in:focus, select.in:focus, textarea.in:focus { border-color: var(--grass); outline: none; box-shadow: 0 0 0 3px rgba(29,92,58,.2); }
.posbox { border: 0; padding: 0; margin: 0; min-width: 0; } .posbox legend { padding: 0; font-weight: 600; margin-bottom: 6px; }
.posgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.posopt { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; font-weight: 700; cursor: pointer; }
.posopt input { width: 22px; height: 22px; margin: 0; accent-color: var(--grass); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.note { padding: 12px 14px; border-radius: 10px; font-size: var(--fs-body); }
.note.bad { background: var(--red-tint); color: #7a1912; } .note.ok { background: var(--ok-tint); color: var(--grass-deep); } .note.warn { background: #eef2f9; color: var(--ink); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }

/* Progress for setup: this one really is a sequence */
.steps { display: flex; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.steps li { flex: 1; text-align: center; font-size: var(--fs-small); overflow-wrap: anywhere; font-weight: 600; color: var(--muted); border-top: 6px solid var(--line); padding-top: 6px; }
.steps li.done { border-color: var(--grass); color: var(--grass-deep); } .steps li.now { border-color: var(--grass-deep); color: var(--ink); }

/* Home */
.hero { background: var(--grass-deep); color: #fff; padding: 36px 0 40px; }
.hero h1 { font-size: 46px; max-width: 14ch; } .hero p { color: #d9e8de; font-size: var(--fs-card); max-width: 34ch; margin-top: 14px; }
.hero .btn-row { margin-top: 24px; max-width: 420px; }
.hero .btn { border-color: #fff; background: transparent; color: #fff; } .hero .btn.primary { background: #fff; color: var(--grass-deep); border-color: #fff; }

/* Player list */
.numb { flex: none; width: 58px; height: 58px; border-radius: 10px; display: grid; place-items: center; font: 800 var(--fs-title) var(--head); background: var(--grass-deep); color: #fff; }
.numb.round { border-radius: 50%; } /* upright, like the Team tab avatars */ .numb.round.init { font-size: var(--fs-section); }
.numb.none { background: transparent; color: var(--muted); border: 2px dashed var(--line); font-size: var(--fs-section); }
.prow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.prow + .prow { margin-top: 10px; }
.prow .main { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 4px 0; font: inherit; color: inherit; cursor: pointer; }
.prow .nm { display: block; font: 700 var(--fs-section)/1.1 var(--head); letter-spacing: .01em; overflow-wrap: anywhere; }
.prow .sub { display: block; font-size: var(--fs-small); color: var(--muted); }
.prow.in { background: var(--ok-tint); border-color: #b9d9c4; }
.tools { display: grid; gap: 10px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { min-height: 44px; padding: 6px 16px; border-radius: 99px; border: 2px solid var(--line); background: var(--paper); font: 600 var(--fs-body) var(--body); cursor: pointer; }
.pill[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.score { font: 800 var(--fs-section) var(--head); background: var(--warn-tint); padding: 2px 8px; border-radius: 8px; }

/* Ratings */
.rate { padding: 12px 0; border-bottom: 1px solid var(--line); } .rate .lab { font-weight: 700; margin-bottom: 8px; display: flex; justify-content: space-between; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; } .scale.with-na { grid-template-columns: repeat(5, 1fr) 64px; }
.scale button { min-height: 54px; border-radius: 10px; border: 2px solid var(--line); background: var(--paper); font: 800 var(--fs-section) var(--head); cursor: pointer; }
.scale button[aria-pressed="true"] { background: var(--grass); border-color: var(--grass-deep); color: #fff; }
.scale button.na { font: 700 var(--fs-body) var(--body); }

/* Bottom navigation: three plain words */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--paper); border-top: 2px solid var(--ink); display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom); }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: var(--fs-body); }
.tabs a svg { width: 24px; height: 24px; } .tabs a[aria-current="page"] { color: var(--grass-deep); background: #eef2f9; }
.stickybar { position: sticky; bottom: 72px; padding: 10px 0; background: linear-gradient(transparent, var(--chalk) 30%); }
.toast { position: fixed; left: 12px; right: 12px; bottom: 90px; z-index: 40; margin: 0 auto; max-width: 560px; background: var(--ink); color: #fff; padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.code { font: 800 clamp(24px, 8vw, 44px) var(--head); letter-spacing: .06em; white-space: nowrap; background: var(--paper); border: 2px dashed var(--grass); border-radius: 12px; padding: 10px 16px; text-align: center; }
.flag { display: inline-block; font-size: var(--fs-small); font-weight: 700; padding: 2px 8px; border-radius: 6px; } .flag.new { background: var(--ok-tint); color: var(--grass-deep); } .flag.dup { background: var(--warn-tint); color: #5a4300; } .flag.bad { background: var(--red-tint); color: #7a1912; }
.rv { background: var(--paper); border: 2px solid var(--line); border-radius: 14px; padding: 12px; } .rv + .rv { margin-top: 12px; } .rv.skip { opacity: .6; } .rv.err { border-color: var(--red); }
.hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Unsent entries: stays at the top of the screen until the server has confirmed everything. */
.unsent { position: sticky; top: 0; z-index: 30; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 14px; background: var(--ink); color: #fff; font-weight: 600; font-size: var(--fs-body); }
.unsent .grow { flex: 1 1 220px; }
.timed { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.timed .in { font: 800 var(--fs-title) var(--head); text-align: center; }
.rk { width: 100%; border-collapse: collapse; } .rk th, .rk td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); } .rk td.n { font: 800 var(--fs-section) var(--head); width: 44px; }
.rk td.v { text-align: right; font: 800 var(--fs-section) var(--head); white-space: nowrap; }
.flag.warn { background: #fff3cf; color: #6b4a00; }
html { scroll-padding-bottom: 110px; scroll-padding-top: 70px; }

/* install page + update notice */
.howto { margin: 0; padding-left: 22px; display: grid; gap: 10px; font-size: var(--fs-card); line-height: 1.45; }
.updatebar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; display: flex; gap: 12px; align-items: center; background: var(--ink); color: #fff; padding: 12px 14px; border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.3); }
.updatebar .grow { flex: 1; }

/* Station scoring keeps every player in the list; taps never replace the rows. */
.quick > * + * { margin-top: 8px; }
.quick-heading h1 { font-size: var(--fs-title); }
.quick-heading .btn { flex: none; }
.quick-team, .quick-context { margin: 0; }
.quick-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.quick-tools > label { min-width: 0; }
.quick-tools select.in { font-size: var(--fs-body); min-height: 44px; }
.quick-filters { padding-top: 26px; }
.quick-filters > summary { display: flex; align-items: center; min-height: 44px; padding: 6px 12px; border: 2px solid var(--line); border-radius: 10px; font-weight: 600; cursor: pointer; background: var(--paper); }
.quick-filters[open] { grid-column: 1 / -1; padding-top: 0; }
.quick-filter-fields { padding: 10px 0; }
.quick-filter-fields select.in { width: 100%; min-width: 0; }
.quick-identity { position: sticky; top: 0; z-index: 2; background: var(--paper); padding: 8px 0; }
.quick-identity h2 { overflow-wrap: anywhere; font-size: var(--fs-title); }
.quick-player { padding: 12px; }
.quick-player .scale { gap: 6px; }
.quick-player .scale button { min-width: 0; min-height: 48px; touch-action: manipulation; }
.quick-comment summary { min-height: 44px; display: flex; align-items: center; font-size: var(--fs-body); font-weight: 600; cursor: pointer; color: var(--grass); }
.quick-comment textarea { min-height: 80px; }

/* Staff workspace adapted from preview/app's hero, identity and action cards.
   Roles and team lists come from the authenticated API, never a demo selector. */
.workspace { margin-top: 28px; }
.workspace-role { font-size: var(--fs-small); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--amber); }
.workspace-emblem { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--grass-deep); color: white; font: 800 var(--fs-section) var(--head); }
.workspace-emblem.long { width: 62px; font-size: var(--fs-body); letter-spacing: -.02em; }
.workspace-team h3 { overflow-wrap: anywhere; }
.workspace-team p { margin: 4px 0 0; }
a.workspace-go { display: block; color: inherit; text-decoration: none; min-height: 64px; } a.workspace-go:hover, a.workspace-go:focus-visible { border-color: var(--tc, var(--grass)); }
.workspace-chev { font-size: var(--fs-section); color: var(--muted); padding-left: 8px; }

/* Human-operated 60-foot stopwatch, with explicit review before an attempt is saved. */
.stopwatch { margin-top: 12px; padding: 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--chalk); }
.stopwatch-time { display: block; font: 800 44px/1.1 var(--head); font-variant-numeric: tabular-nums; text-align: center; }
.stopwatch-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stopwatch .btn { min-width: 0; padding: 8px; font-size: var(--fs-body); touch-action: manipulation; }
.stopwatch p { margin-bottom: 0; }



/* Club records and offer letters. */
.club-letter { white-space: pre-wrap; overflow-wrap: anywhere; }
#app .card input, #app .card select, #app .card textarea { max-width: 100%; min-width: 0; }

/* Payments walkthrough */
.paybig { font: 800 var(--fs-title)/1 var(--head); margin: 4px 0 0; }
.meter { height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; } .meter span { display: block; height: 100%; background: var(--grass); }
.ptable { display: grid; gap: 0; } .prow2 { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); } .prow2:first-child { border-top: 0; }
.flag.ok { background: var(--ok-tint); color: var(--grass-deep); } .flag.warn { background: var(--warn-tint); color: #6b4f00; } .flag.bad { background: var(--red-tint); color: #7a1912; } .flag.plain { background: #eef1ec; color: var(--muted); }
.flag.preview { background: #ece7ff; color: #3d2a8a; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.prow3 { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); } .prow3 .btn { justify-self: start; margin-top: 4px; }
.note:empty { display: none; } .tile { border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: grid; gap: 2px; min-width: 0; }
.tile span { font-size: var(--fs-small); color: var(--muted); } .tile b { font: 800 var(--fs-section)/1.1 var(--head); overflow-wrap: anywhere; } .tile small { font-size: var(--fs-small); color: var(--muted); }
.planrow { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr) minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.planrow input[type=date] { min-width: 0; -webkit-appearance: none; appearance: none; text-align: left; } .planrow input.in { margin-top: 0; }
/* On a phone each payment is two lines: its name with Remove beside it, then the amount and the due date, so nothing is cut off. */
@media (max-width: 640px) {
  .planrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; grid-template-areas: "name name rm" "amt due due"; gap: 8px 6px; padding: 12px 0; border-top: 1px solid var(--line); }
  .planrow > :nth-child(1) { grid-area: name; } .planrow > :nth-child(2) { grid-area: amt; } .planrow > :nth-child(3) { grid-area: due; } .planrow > :nth-child(4) { grid-area: rm; min-height: 44px; padding: 0 4px; }
  .planrow.muted { display: none; } .planrow input[type=number] { -moz-appearance: textfield; appearance: textfield; } .planrow input[type=number]::-webkit-inner-spin-button, .planrow input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; } .planrow input.in { padding-left: 10px; padding-right: 10px; }
}
.payall { margin-top: 4px; } .payall summary { cursor: pointer; padding: 6px 0; }
.payfee { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-top: 1px dashed var(--line); } .payfee .btn { margin: 0; }
.avail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .avail .btn { width: 100%; }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } .tile { grid-template-columns: 1fr auto; align-items: baseline; } .tile b { grid-row: 1 / span 2; grid-column: 2; text-align: right; } }
/* 10/11U walkthrough guide (walkthrough.html and the bar on every page while it runs) */
.eyebrow { margin: 0; font: 800 var(--fs-small) var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--grass); }
.note:not(.bad):not(.ok):not(.warn) { background: var(--chalk); border: 1px solid var(--line); }
.guidebar { position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 55; margin: 0 auto; max-width: 560px; max-height: 45vh; overflow-y: auto; background: var(--grass-deep); color: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: 0 8px 26px rgba(0,0,0,.28); display: grid; gap: 4px; }
.guidebar .gtop { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.guidebar .gk { font: 700 var(--fs-small) var(--body); letter-spacing: .05em; text-transform: uppercase; color: #cfe8d8; }
.guidebar p { margin: 0; font-size: var(--fs-small); line-height: 1.35; color: #e8f3ec; }
.guidebar strong { font-size: var(--fs-body); }
.guidebar .link { color: #fff; text-decoration: underline; background: none; border: 0; font: 700 var(--fs-small) var(--body); padding: 4px 6px; min-height: 44px; white-space: nowrap; }
.guidebar .row { flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.guidebar .btn.sm { min-height: 40px; font-size: var(--fs-body); padding: 4px 14px; }
/* The bar is the same navy as a primary button, so its main button is white to stand out. */
.guidebar .btn.primary { background: #fff; color: var(--grass-deep); border-color: #fff; }
.guidebar .btn:not(.primary) { background: transparent; color: #fff; border-color: #8aa3c8; }
.guide-on main { padding-bottom: 200px; }
.guide-on .toast { bottom: 240px; }
.share-text { width: 100%; font: inherit; min-height: 120px; resize: vertical; } .prow3 .row { gap: 8px; flex-wrap: wrap; }
/* Family check-in: choices, week chips and the coach's weeks-away calendar */
.opts { display: grid; gap: 8px; } .opts .btn { width: 100%; text-align: left; justify-content: flex-start; }
.opts .btn[aria-pressed="true"], .weeks .btn[aria-pressed="true"] { background: var(--grass); color: #fff; border-color: var(--grass); }
.weeks { display: grid; gap: 6px; } .weeks .wk { display: flex; flex-wrap: wrap; gap: 6px; } .weeks .btn { width: auto; min-height: 44px; padding: 6px 12px; font-size: var(--fs-body); }
.weekrow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); } .weekrow .bar2 { flex: none; min-width: 28px; text-align: center; font-weight: 700; border-radius: 8px; padding: 2px 8px; }
.weekrow .bar2.none { background: var(--chalk); color: var(--muted); } .weekrow .bar2.some { background: var(--warn-tint); color: #5a4300; } .weekrow .bar2.many { background: var(--red-tint); color: #7a1912; }
.checkin-banner { margin: 12px auto; max-width: 720px; padding: 0 16px; }
/* Plain rows with a chevron, the Team tab's look, for lists of places to go. */
.lc-rows { display: grid; padding: 4px 16px; } .lc-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 0; border-top: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.lc-rows > .lc-row:first-child { border-top: 0; } .lc-row > span:first-child { flex: 1; display: grid; min-width: 0; } .lc-row b { font: 600 var(--fs-body) var(--body); color: #102a56; } .lc-row small { font-size: var(--fs-small); color: var(--muted); }
.lc-chev { color: var(--muted); font-size: var(--fs-card); }
.card.lc-row { border: 1px solid var(--line); padding: 12px 16px; } .card.lc-row b { font-size: var(--fs-card); }
.rk-note { margin: 4px 0 0; line-height: 1.4; }
.qset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; } .qset legend { font-weight: 700; font-size: var(--fs-card); line-height: 1.25; padding: 0; margin-bottom: 10px; }
.headline { font-size: var(--fs-section); font-weight: 700; line-height: 1.2; margin: 0; }

/* Games and the scoring screen */
.gm-row { text-decoration: none; color: inherit; }
.wl { display: grid; gap: 8px; } .wl-h, .wl-r { display: grid; grid-template-columns: 1.4fr .7fr .7fr .7fr 1.2fr; gap: 6px; align-items: center; font-size: var(--fs-body); }
.wl-h { color: var(--muted); font-size: var(--fs-small); font-weight: 700; } .wl-r { padding-top: 8px; border-top: 1px solid var(--line); }
.scoring { padding-bottom: 8px; } .scoring > * + * { margin-top: 10px; }
.sc-top { align-items: flex-end; } .sc-count { display: grid; gap: 4px; justify-items: end; font-weight: 700; font-size: var(--fs-small); }
.dots { display: inline-flex; gap: 5px; vertical-align: middle; } .dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; }
.dots.ball i.on { background: var(--grass); border-color: var(--grass); } .dots.strike i.on { background: var(--red); border-color: var(--red); }
.sc-strip { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "who num" "sub num"; gap: 2px 12px; width: 100%; text-align: left; padding: 12px 16px; border-radius: 16px; border: 3px solid var(--grass); background: var(--ok-tint); color: var(--ink); font: inherit; cursor: pointer; }
.sc-who { grid-area: who; display: grid; font-size: var(--fs-section); } .sc-sub { grid-area: sub; font-size: var(--fs-body); color: var(--muted); }
.sc-num { grid-area: num; font: 800 64px/1 var(--head); align-self: center; min-width: 1.6em; text-align: right; }
.sc-strip.headsup { border-color: var(--amber-deep); background: var(--warn-tint); } .sc-strip.warn { border-color: var(--red); background: var(--red-tint); color: #7a1912; }
.sc-alert { display: flex; align-items: center; gap: 12px; justify-content: space-between; font-weight: 700; }
.sc-alert > .btn { flex: none; width: auto; white-space: nowrap; }   /* "Got it" stays on one line beside a long alert */
.sc-pad { background: var(--chalk); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.sc-row { display: grid; gap: 10px; } .sc-row.one { grid-template-columns: 1fr; } .sc-row.two { grid-template-columns: 1fr 1fr; } .sc-row.three { grid-template-columns: repeat(3, 1fr); } .sc-row.four { grid-template-columns: repeat(4, 1fr); }
.sb { min-height: 84px; border-radius: 14px; border: 3px solid var(--ink); background: var(--paper); color: var(--ink); font: 800 var(--fs-section) var(--head); cursor: pointer; touch-action: manipulation; padding: 4px; }
.sb:active { transform: scale(.97); } .sb.ball { border-color: var(--grass); } .sb.strike { background: var(--amber); border-color: var(--amber-deep); } .sb.foul { border-color: var(--muted); } .sb.inplay { background: var(--grass); border-color: var(--grass-deep); color: #fff; }
.sb.small { min-height: 54px; font: 700 var(--fs-body) var(--body); border-width: 2px; } .sb[disabled] { opacity: .4; }
.sheet-back { position: fixed; inset: 0; background: rgba(20,33,27,.55); display: flex; align-items: flex-end; justify-content: center; z-index: 50; }
.sheet { background: var(--chalk); width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; }
.btn.pick { justify-content: space-between; } .big-n { font: 800 var(--fs-title) var(--head); }
.sb.vlisten { background: var(--red-tint); border-color: var(--red); color: #7a1912; }
.sc-voice { font-weight: 700; } .sc-voice .small { font-weight: 500; margin-top: 4px; word-break: break-word; }
pre.vlog { white-space: pre-wrap; word-break: break-word; font: var(--fs-small)/1.4 ui-monospace, Menlo, monospace; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin: 0; }

.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-small); } .tbl th, .tbl td { padding: 6px 8px; text-align: center; border-top: 1px solid var(--line); } .tbl th[scope=row] { text-align: left; } .tbl thead th { border-top: 0; }

/* Parent home: app-style cards and a bottom bar */
.tabs.parent { border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(18,63,41,.08); }
.tabs.parent a { font-size: var(--fs-small); min-height: 62px; } .tabs.parent a[aria-current="page"] { background: transparent; color: var(--grass); box-shadow: inset 0 3px 0 var(--grass); }
[hidden] { display: none !important; }
.sec { font-size: var(--fs-section); margin-top: 6px; } .block { display: block; } .big { font-size: var(--fs-section); }
.athlete, .askcard { text-decoration: none; color: inherit; border-radius: 18px; box-shadow: 0 2px 10px rgba(18,63,41,.07); }
.avatar { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--grass-deep); color: #fff; font: 800 var(--fs-section) var(--head); flex: none; }
.chev { font-size: var(--fs-title); color: var(--grass); line-height: 1; }
.teamgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.teamcard { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; text-decoration: none; color: inherit; border-radius: 18px; padding: 20px 12px; box-shadow: 0 2px 10px rgba(18,63,41,.07); }
.teamcard.addteam { box-shadow: none; border: 2px dashed var(--line, #d6dde6); }
.logo-badge { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--amber); font: 800 var(--fs-title) var(--head); border: 3px solid var(--grass); }
.qbadge { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--grass-deep); color: #fff; font: 800 var(--fs-section) var(--head); flex: none; }
.ev { border-radius: 18px; } .ev.next { border-color: var(--grass-deep); } .evt { font: 700 var(--fs-section) var(--head); }
.datebox { width: 54px; text-align: center; border: 2px solid var(--ink); border-radius: 12px; padding: 4px 0; display: flex; flex-direction: column; line-height: 1.1; flex: none; } .datebox b { font: 800 var(--fs-section) var(--head); } .datebox span { font-size: var(--fs-small); text-transform: uppercase; font-weight: 700; color: var(--muted); }

/* A team's page for parents: logo, name and a row of tabs under it. */
.teamhead { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 8px 0 4px; }
.teamhead h1 { margin: 6px 0 0; }
.logo-badge.big { width: 72px; height: 72px; font-size: var(--fs-title); }
.subtabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line, #d9ddd2); margin: 8px 0 14px; overflow-x: auto; }
.subtabs a { flex: 1; text-align: center; padding: 10px 6px; font-weight: 700; color: var(--ink-soft, #55605a); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.subtabs a[aria-current="page"] { color: var(--grass-deep, #134d36); border-bottom-color: var(--grass-deep, #134d36); }
img.workspace-emblem.logo { object-fit: contain; background: #fff; padding: 2px; border: 1px solid var(--line, #d9ddd2); width: 56px; height: 56px; border-radius: 12px; }
img.logo-badge.logo { object-fit: contain; background: #fff; border: 1px solid var(--line, #d9ddd2); padding: 4px; }

/* A team's own colors (set in Edit team details): the header band, tab underline and card edge. */
.themed.teamhead, .themed.teambar { background: var(--tc); color: var(--tc-ink); border-radius: 16px; padding: 16px; }
.themed.teamhead .muted, .themed.teambar .muted, .themed.teamhead .small { color: var(--tc-ink); opacity: .85; }
.themed.teambar h1 { margin: 0; }
.themed.teamhead img.logo-badge.logo { border-color: var(--ta); }
.subtabs[style*="--tc"] a[aria-current="page"] { border-bottom-color: var(--ta); color: inherit; }


/* Manage team: every job in its own bordered card with a colored edge; folded ones get a clear tap row with an arrow. */
.manage > .card { border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: 0 8px 18px -14px rgba(20, 33, 27, .45); }
.manage > .card > h2 { margin-top: 0; }
.manage > details.card > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; font-weight: 700; font-size: var(--fs-card); cursor: pointer; margin: -6px 0; }
.manage > details.card > summary::-webkit-details-marker { display: none; }
.manage > details.card > summary::after { content: "›"; font-size: var(--fs-title); line-height: 1; color: var(--tc, var(--grass)); transition: transform .15s; }
.manage > details.card[open] > summary::after { transform: rotate(90deg); }
.manage > details.card[open] > summary { margin-bottom: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.manage > details.card.danger-zone { border-color: #e7b5b0; }
.manage > details.card.danger-zone > summary { color: var(--red); }
.manage > details.card.danger-zone > summary::after { color: var(--red); }

/* Month calendar of away trips on the coach's check-in page. */
.cal { display: grid; gap: 10px; }
.cal .row.between { align-items: center; } .caltitle { font-size: var(--fs-card); }
.calgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calhead { text-align: center; font-size: var(--fs-small); font-weight: 700; color: var(--muted); }
.calday { position: relative; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); padding: 4px; display: grid; align-content: start; justify-items: start; cursor: pointer; font: inherit; color: inherit; }
.calday.some { background: var(--warn-tint); border-color: var(--amber-deep); } .calday.many { background: #fbd9b8; border-color: #c46a14; }
.calday.picked { outline: 3px solid var(--grass); outline-offset: 1px; }
.calnum { font-weight: 700; font-size: var(--fs-small); } .calcount { position: absolute; right: 5px; top: 4px; font-weight: 800; font-size: var(--fs-small); }
.caltour { position: absolute; right: 4px; bottom: 2px; font-size: var(--fs-small); }
.calinfo { min-height: 40px; padding: 8px 10px; background: var(--chalk); border-radius: 10px; }

/* The live scoreboard row on a family's team page. */
.watchcard { text-decoration: none; color: inherit; }
.watch-go { font: 800 var(--fs-title)/1 var(--head); color: var(--tc, var(--grass)); }

/* Scoring screen: the runners row. A lit button means a runner is on that base. */
.sb.small.on { background: var(--amber); border-color: var(--amber-deep); color: var(--ink); }

/* Scoring screen: where the ball in play went. One optional tap before the result. */
.sc-dir { display: grid; gap: 6px; }
.sc-dir-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.sc-chip { min-height: 44px; padding: 4px 2px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 600 var(--fs-small)/1.1 var(--body); cursor: pointer; }
.sc-chip.on { background: var(--amber); border-color: var(--amber-deep); }

/* Scoring screen: the full call on a ball in play. A little field to tap the fielder (or the spot), between how it was hit and how it ended. */
.sc-field { position: relative; aspect-ratio: 1280 / 700; border-radius: 14px; overflow: hidden; background: #1f4d2e; }
.sc-park { position: absolute; inset: 0; width: 100%; height: 100%; }
.sc-spot { position: absolute; transform: translate(-50%, -50%); min-width: 46px; min-height: 38px; padding: 3px 6px; border-radius: 10px; border: 1.5px solid rgba(255, 255, 255, .8); background: rgba(10, 30, 20, .72); color: #fff; font: 600 var(--fs-small)/1.1 var(--body); display: grid; place-items: center; cursor: pointer; }
.sc-spot b { font-size: var(--fs-small); } .sc-spot span { font-size: var(--fs-small); opacity: .85; } .sc-spot b + span { font-size: var(--fs-small); }
.sc-spot.on { background: var(--amber); border-color: var(--amber-deep); color: var(--ink); }
.sc-call .sc-row { gap: 6px; } .sc-call .sb.small { min-height: 46px; }

/* Scoring screen: a dropdown that sits in a button row and looks like its neighbours. */
.sc-menu { width: 100%; min-height: 46px; padding: 6px 10px; border-radius: 12px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font: 700 var(--fs-body) var(--body); text-align: center; text-align-last: center; cursor: pointer; min-width: 0; }

/* Scoring screen: runs by inning, always in view. */
.sc-line { width: 100%; border-collapse: separate; border-spacing: 3px; font: 700 var(--fs-body) var(--head); font-variant-numeric: tabular-nums; }
.sc-line th, .sc-line td { text-align: center; padding: 0; }
.sc-line thead th { font-size: var(--fs-body); font-weight: 800; color: var(--ink); }
.sc-line tbody th { text-align: left; font-size: var(--fs-small); max-width: 6.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 4px; }
.sc-line td { min-width: 22px; height: 28px; border-radius: 6px; background: #e6ebe1; }
.sc-line td.now { box-shadow: inset 0 0 0 2px var(--amber-deep); background: var(--warn-tint); }
.sc-line td.tot { background: var(--ink); color: #fff; min-width: 30px; }
.sheet .sc-line { margin-bottom: 12px; }

/* The LeagueCue ballfield (js/field.js): shared by the family scoreboard and the scorer's fielder picker. */
.lf-track { fill: #b4572f; } .lf-grass { fill: #3f9950; } .lf-mow { fill: #4aa75b; } .lf-dirt { fill: #cf9560; }
.lf-line { fill: none; stroke: #fff; stroke-width: 1.4; opacity: .9; } .lf-chalk { fill: #fff; }
.lf-bag { fill: #fff; stroke: rgba(0, 0, 0, .35); stroke-width: 1; }
.lf-bag.on { fill: var(--amber); stroke: #7a5a00; filter: drop-shadow(0 0 4px var(--amber)); }
.lf-shadow { fill: rgba(0, 0, 0, .28); } .lf-face { fill: #f0c9a4; stroke: rgba(0, 0, 0, .35); stroke-width: .6; }
.lf-player .lf-jersey, .lf-player .lf-cap { stroke: rgba(0, 0, 0, .55); stroke-width: .8; }
.lf-player.us .lf-jersey, .lf-player.us .lf-cap { fill: var(--tc, #1c4fa0); }
.lf-player.opp .lf-jersey { fill: #e8ecef; } .lf-player.opp .lf-cap { fill: #4d5a66; }

/* Scoring screen: the hit buttons, always showing. The scorebook code is big, the word small. */
.sc-row.five { grid-template-columns: repeat(5, 1fr); }
.sc-res { display: grid; gap: 1px; place-items: center; padding: 6px 2px; min-height: 58px; }
.sc-res b { font: 800 var(--fs-section)/1 var(--head); } .sc-res span { font-size: var(--fs-small); font-weight: 600; } .sc-res b + span { color: var(--muted); }
.sc-res:not(:has(b)) span { font: 800 var(--fs-card)/1.1 var(--head); }
.sc-detail > summary { cursor: pointer; font-weight: 600; font-size: var(--fs-body); padding: 8px 0; color: var(--grass); }
.sc-detail[open] { display: grid; gap: 10px; }

/* Tryout notices: age groups as large tap targets, and a club's announcements. */
.tn-ages { border: 0; padding: 0; margin: 0; min-width: 0; } .tn-ages legend { font-weight: 600; font-size: var(--fs-body); padding: 0; }
.tn-agegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 8px; }
.tn-agegrid label { position: relative; display: block; } .tn-agegrid input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.tn-agegrid span { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 2px solid var(--line); border-radius: 10px; background: var(--paper); font: 700 var(--fs-card) var(--head); }
.tn-agegrid input:checked + span { background: var(--grass); border-color: var(--grass-deep); color: #fff; } .tn-agegrid input:focus-visible + span { box-shadow: 0 0 0 3px rgba(29,92,58,.35); }
.tn-post { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); } .tn-post .row { flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tn-post:first-child { border-top: 0; padding-top: 0; }
.howpay p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
/* Help */
.bar-help { font-weight: 600; text-underline-offset: 3px; padding: 10px 4px; }
.help-q { font-size: var(--fs-card); min-height: 54px; }
.help-a summary { font-weight: 700; font-size: var(--fs-card); cursor: pointer; } .help-a ol { margin: 10px 0 14px; padding-left: 22px; display: grid; gap: 6px; max-width: 62ch; } .help-a[open] summary { margin-bottom: 2px; }
.note { overflow-wrap: anywhere; }
/* Who plays where: the field with every player on it, and the choices for the spot that was tapped. */
.sc-subs .sc-spot { min-width: 54px; min-height: 44px; } .sc-subs .sc-spot.empty { border-style: dashed; background: rgba(10, 30, 20, .45); }
.sc-sub-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.sc-sub-pick { display: grid; gap: 1px; justify-items: start; text-align: left; min-height: 52px; padding: 8px 12px; }

/* ---- The scoring screen: a press-box console. A dark scoreboard up top, then keys that look and press like equipment. ---- */
.sc-board { background: var(--grass-deep); color: #fff; border-radius: 16px; padding: 12px 14px 12px; display: grid; gap: 10px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 6px 18px -10px rgba(10, 30, 20, .7); }
.sc-b-head { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-small); font-weight: 600; letter-spacing: .01em; }
.sc-b-inn { display: inline-flex; align-items: center; gap: 7px; font: 700 var(--fs-section)/1 var(--head); letter-spacing: .02em; }
.sc-b-inn i { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; } .sc-b-inn i.up { border-bottom: 9px solid var(--amber); } .sc-b-inn i.down { border-top: 9px solid var(--amber); }
.sc-b-side { opacity: .78; }
.sc-b-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.sc-b-team { display: grid; justify-items: center; gap: 0; min-width: 0; } .sc-b-team span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-small); font-weight: 600; opacity: .78; }
.sc-b-team b { font: 800 58px/.92 var(--head); font-variant-numeric: tabular-nums; } .sc-b-team.bat span { opacity: 1; } .sc-b-team.bat span::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--amber); vertical-align: middle; }
.sc-b-diamond { width: 76px; height: 57px; } .sc-b-diamond rect { fill: rgba(255, 255, 255, .1); stroke: rgba(255, 255, 255, .45); stroke-width: 1.5; } .sc-b-diamond rect.on { fill: var(--amber); stroke: var(--amber); }
.sc-b-count { display: flex; justify-content: space-between; gap: 8px; padding: 8px 2px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.sc-board .sc-count { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-small); font-weight: 600; opacity: .95; }
.sc-board .dots { gap: 5px; } .sc-board .dots i { width: 13px; height: 13px; border: 0; background: rgba(255, 255, 255, .16); }
.sc-board .dots.ball i.on { background: #5fd38d; } .sc-board .dots.strike i.on { background: var(--amber); } .sc-board .dots.out i.on { background: #ff6b5e; }
.sc-b-bat { margin: 0; font-size: var(--fs-small); } .sc-b-bat span { opacity: .75; }
/* The batter line is a button: tap it to say who is really up. It keeps the scoreboard's look. */
button.sc-b-bat { display: block; width: 100%; min-height: 40px; padding: 6px 2px 0; border: 0; background: none; color: inherit; font: inherit; font-size: var(--fs-small); text-align: left; cursor: pointer; }
button.sc-b-bat .sc-b-change { text-decoration: underline; } .btn.pick.on { box-shadow: inset 0 0 0 2px var(--amber); }
.sc-board .sc-line thead th { color: rgba(255, 255, 255, .7); font-size: var(--fs-small); font-weight: 700; } .sc-board .sc-line tbody th { color: #fff; font-weight: 600; }
.sc-board .sc-line td { background: rgba(255, 255, 255, .09); color: #fff; height: 26px; } .sc-board .sc-line td.now { background: rgba(242, 182, 0, .2); box-shadow: inset 0 0 0 1.5px var(--amber); }
.sc-board .sc-line td.tot { background: #fff; color: var(--grass-deep); }
/* The pitcher strip: a quiet card with the number that matters set large. */
.sc-strip { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); padding: 10px 14px; box-shadow: 0 1px 0 rgba(20, 33, 27, .04); }
.sc-strip.headsup { border-color: var(--grass-deep); } .sc-strip.warn { border-color: var(--red); background: var(--red-tint); }
.sc-who { font-size: var(--fs-card); } .sc-who .small { font-size: var(--fs-small); color: var(--muted); font-weight: 500; } .sc-num { font-size: 52px; font-variant-numeric: tabular-nums; } .sc-sub { font-size: var(--fs-small); }
/* Keys. One shape and one weight for every key; color is a signal, not decoration. */
.sc-pad { gap: 8px; } .sc-row { gap: 8px; }
.sb { min-height: 72px; border-radius: 12px; border: 1px solid #c3ccbd; border-bottom-width: 3px; background: #fff; color: var(--ink); font: 700 var(--fs-card)/1.15 var(--body); letter-spacing: -.005em; padding: 6px 8px; transition: transform .06s ease, background-color .06s ease; -webkit-tap-highlight-color: transparent; }
.sb:active { transform: translateY(2px); border-bottom-width: 1px; margin-bottom: 2px; background: #eef2ea; } .sb:focus-visible { outline: 3px solid var(--grass); outline-offset: 2px; }
.sb.ball { border-color: #c3ccbd; box-shadow: inset 0 4px 0 #2f9a63; } .sb.foul { border-color: #c3ccbd; box-shadow: inset 0 4px 0 #8b978e; }
/* Flat keys, no gradients (release audit item 8). */
.sb.strike { background: #fff; border-color: #c3ccbd; box-shadow: inset 0 4px 0 var(--amber); }
.sb.inplay { background: var(--grass); border-color: var(--grass-deep); color: #fff; box-shadow: none; } .sb.inplay:active { background: var(--grass-deep); }
.sb.small { min-height: 50px; font: 600 var(--fs-body)/1.15 var(--body); border-width: 1px; border-bottom-width: 2px; border-radius: 10px; }
.sb.small.on { background: var(--amber); border-color: var(--amber-deep); box-shadow: none; } .sb[disabled] { opacity: .38; }
.sb.vlisten { background: var(--red-tint); border-color: var(--red); color: #7a1912; }
.sc-call { border: 1px solid var(--line); border-radius: 14px; padding: 12px; gap: 10px; } .sc-call > b { font-size: var(--fs-small); font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.sc-res { min-height: 56px; } .sc-res b { font: 800 var(--fs-section)/1 var(--head); } .sc-res b + span { font-size: var(--fs-small); font-weight: 600; }
.sc-menu { min-height: 50px; border: 1px solid #c3ccbd; border-bottom-width: 2px; border-radius: 10px; font: 600 var(--fs-body) var(--body); background-color: #fbfcf9; }
/* The live field on the scoring screen: players where they play, bases that light up. */
.sc-live { border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.sc-fielder { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 0; min-width: 52px; min-height: 40px; padding: 4px 7px 3px; border: 0; border-radius: 9px; background: rgba(9, 28, 19, .7); color: #fff; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; backdrop-filter: blur(2px); }
.sc-fielder b { font: 700 var(--fs-small)/1.1 var(--body); max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sc-fielder span { font: 700 var(--fs-small)/1.2 var(--body); opacity: .72; letter-spacing: .04em; }
.sc-fielder.empty { background: rgba(9, 28, 19, .38); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); } .sc-fielder:active { background: rgba(9, 28, 19, .9); } .sc-fielder:focus-visible, .sc-base:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.sc-base { position: absolute; z-index: 2; transform: translate(-50%, -50%); width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; }
.sc-base i { width: 11px; height: 11px; transform: rotate(45deg); border-radius: 2px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .45); } .sc-base.on i { background: var(--amber); box-shadow: 0 0 0 4px rgba(242, 182, 0, .35), 0 1px 3px rgba(0, 0, 0, .45); }
.sc-atbat { position: absolute; transform: translate(-50%, -100%); padding: 3px 9px; border-radius: 9px; background: #fff; color: var(--grass-deep); font: 700 var(--fs-small)/1.2 var(--body); box-shadow: 0 2px 6px rgba(0, 0, 0, .35); pointer-events: none; }
.sc-row.keys { grid-template-columns: repeat(5, 1fr); gap: 6px; } .sc-row.keys .sb { min-height: 66px; font-size: var(--fs-small); padding: 8px 2px 4px; }
@media (min-width: 520px) { .sc-row.keys .sb { font-size: var(--fs-body); } }
/* Right after a play: hit or error, how it was hit, where it went. */
.sc-after { border: 1px solid var(--line); border-radius: 14px; padding: 12px; gap: 10px; }
.sc-call-q { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; font-weight: 600; } .sc-call-row { gap: 10px; }
.sc-fielder-tap { position: absolute; z-index: 1; transform: translate(-50%, -50%); width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; } .sc-fielder-tap:active { background: rgba(255, 255, 255, .18); } .sc-fielder-tap:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.sc-person.empty rect { fill: rgba(16, 46, 75, .55); stroke-dasharray: 4 3; } .sc-person.empty path, .sc-person.empty ellipse { opacity: .35; }
.sc-fielder.mark { background: rgba(9, 28, 19, .55); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); } .sc-fielder.mark.on { background: var(--amber); color: var(--ink); box-shadow: none; }
.sc-after { gap: 8px; padding: 10px 12px; } .sc-after-where { margin: 0; }
/* Set lineup (before the game) */
.lu-order { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .lu-order li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto auto; gap: 6px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); } .lu-order li:first-child { border-top: 0; }
.lu-n { font: 800 var(--fs-section)/1 var(--head); color: var(--grass); text-align: center; font-variant-numeric: tabular-nums; } .lu-who { display: grid; min-width: 0; } .lu-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lu-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; font-size: var(--fs-small); font-weight: 700; vertical-align: middle; }
.lu-tag.bad { background: #fdecea; color: #8a1c12; } .lu-tag.ok { background: #e7f5ec; color: #14532d; }
.lu-order .btn.sm { min-width: 44px; min-height: 44px; padding: 0 10px; } .lu-chips { display: flex; flex-wrap: wrap; gap: 8px; } .lu-bench { display: grid; gap: 8px; }
.lu-save { position: sticky; bottom: 0; background: var(--chalk); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); display: grid; gap: 8px; border-top: 1px solid var(--line); } .lu-save .row { gap: 8px; } .lu-save .btn { flex: 1; }
.th-game-acts { gap: 8px; flex-wrap: wrap; }
.lu-pos { margin-top: 3px; max-width: 100%; min-height: 34px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: 600 var(--fs-small) var(--body); }
.lu-order li { grid-template-columns: 30px minmax(0, 1fr) auto auto auto; align-items: start; } .lu-n { padding-top: 4px; }
.sc-line td.he { background: transparent; font-weight: 700; min-width: 20px; } .sc-board .sc-line td.he { background: transparent; color: #fff; }
.sb.out { box-shadow: inset 0 4px 0 #d9534a; } .sc-res.out b { font-size: var(--fs-card); letter-spacing: .02em; }
.sc-errby .sc-chip { display: grid; place-items: center; gap: 1px; } .sc-errby .sc-chip small { font-size: var(--fs-small); font-weight: 600; overflow: hidden; text-overflow: ellipsis; max-width: 100%; white-space: nowrap; }
.ins-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: var(--fs-body); } .ins-table th, .ins-table td { padding: 6px 4px; text-align: right; border-top: 1px solid var(--line); } .ins-table th:first-child { text-align: left; font-weight: 500; } .ins-table thead th { border-top: 0; color: var(--muted, #5b6b62); font-weight: 600; }
.career-scroll { overflow-x: auto; } .career-table { min-width: 560px; } .career-table tbody th { text-align: left; } .career-table .career-total th, .career-table .career-total td { font-weight: 700; border-top: 2px solid var(--line); } .career-table tr.muted { opacity: .55; }

/* Back in the top bar: easy to see and easy to tap. */
.bar .bar-back { border: 1px solid rgba(255, 255, 255, .55); border-radius: 99px; padding: 6px 14px; font-weight: 700; text-decoration: none; }

/* Owner looking at the club as someone else ("View as"). Amber for look-only, green for the made-up test people. Dark text on amber, white on green. */
.viewas-bar { background: var(--amber); color: var(--ink); padding: 8px 0; font-size: var(--fs-body); position: sticky; top: 0; z-index: 30; }
.viewas-bar.test { background: var(--grass-deep); color: #fff; }
.viewas-bar .btn { min-height: 36px; }

/* Long lists that fold up: the first few items, then "Show all". The wrapper adds no box of its own. */
.fold { display: contents; }
.fold-btn { justify-self: start; padding: 10px 0; font-weight: 700; }
/* A family's payments line: one tap opens the payments and the buttons. */
.pfold > summary { list-style: none; cursor: pointer; display: grid; gap: 4px; }
.pfold > summary::-webkit-details-marker { display: none; }
.pfold > summary .row b::after { content: " ›"; color: var(--muted); }
.pfold[open] > summary .row b::after { content: " ⌄"; }
.pfold[open] { gap: 8px; }

/* The top bar makes room for the phone's clock and battery when LeagueCue fills the screen (the iPhone app, or installed). */
.bar { padding-top: env(safe-area-inset-top); }
.bar a, .bar button.link { text-decoration: none; font-weight: 600; }
/* Inside the iPhone app the page scrolls under the status bar, so a bar stuck to the top would put Back and Help under the
   clock. In the app the bar scrolls away with the page instead (Back is at the top of every page). */
.app .bar { position: relative; }
/* Inside the app: no website trail of links (Back and Home are in the bar) and Sign out lives on My teams. */
.app .crumbs, .app .bar-out { display: none; }
.app .bar .wrap { min-height: 50px; }
/* ...but the page must not show through behind the clock: a strip the height of the status bar stays at the top, in the bar's
   color (white on team pages with the bottom bar, navy elsewhere). Zero tall in a normal browser. */
.app body:has(> .bar)::before { content: ""; position: fixed; top: 0; left: 0; right: 0; height: env(safe-area-inset-top); background: var(--grass-deep); z-index: 60; pointer-events: none; }
.app body.has-dock:has(> .bar)::before { background: #fff; }

/* =====================================================================================================================
   Home page: a smaller headline, a picture of the app itself, one blue accent (--cue), and features shown, not just told.
   ===================================================================================================================== */
:root { --cue: #2f6fed; --cue-soft: #e8f0ff; }
.hero { padding: 22px 0 0; overflow: hidden; }
.hero h1 { font: 800 34px/1.08 var(--body); letter-spacing: -.025em; max-width: 15ch; } .hero p { color: #c9d4e6; font-size: var(--fs-card); line-height: 1.45; max-width: 36ch; margin-top: 10px; }
.hero .btn-row { margin-top: 18px; max-width: 420px; gap: 10px; } .hero .btn { min-height: 50px; font-size: var(--fs-body); border-color: rgba(255, 255, 255, .7); }
/* The preview: the top of a team's home screen, cut off by the bottom of the hero like a phone held up from below. */
.pv { justify-self: center; width: 100%; max-width: 340px; background: #f3f5f9; color: #102a56; border-radius: 22px 22px 0 0; padding: 12px 12px 0; display: grid; gap: 10px; box-shadow: 0 0 0 5px rgba(255, 255, 255, .1); font-family: var(--body); }
/* Features: a short line of words beside a small piece of the real screen. */
.feat { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.feat li { background: var(--paper); border: 1px solid var(--edge, var(--line)); border-radius: 16px; padding: 14px; display: grid; gap: 12px; }
@media (min-width: 760px) {
  .hero { padding-top: 48px; } .hero h1 { font-size: 46px; }
  .public-header .wrap, .hero .wrap, main.wrap:has(.feat) { max-width: 980px; } .feat { grid-template-columns: 1fr 1fr; } .feat li:last-child { grid-column: 1 / -1; }
}
/* The bar always keeps clear of the clock and battery (the same rule as the Team Home header), in the app and in the browser. */
/* One secondary button everywhere: a thin blue-gray outline. Scoring screens keep the strong outline for sunlight. */
.scoring-screen { --btn-line: var(--ink); }
/* My teams uses the team screens' look: the same heading size and top spacing as Schedule, a one-line club summary, compact team cards. */
.mt-page main { padding-top: 22px; } .mt-page main > * + * { margin-top: 16px; }
.mt-page h1 { font: 700 var(--fs-section) var(--body); letter-spacing: -.01em; }
.mt-page .workspace { margin-top: 20px; } .mt-page .workspace > * + * { margin-top: 10px; }
.workspace-head h2 { font: 700 var(--fs-card) var(--body); letter-spacing: -.01em; overflow-wrap: anywhere; } .workspace-sum { margin: 2px 0 0; font-size: var(--fs-small); color: var(--muted); }
.workspace-head .workspace-role { font-size: var(--fs-small); font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ink); }
.mt-page .card { border-color: var(--edge); border-radius: 16px; } .mt-page .workspace-team { padding: 14px; } .mt-page .workspace-team > * + * { margin-top: 10px; }
.mt-page .workspace-team h3 { font: 700 var(--fs-card) var(--body); letter-spacing: -.01em; } .mt-page .workspace-emblem { width: 40px; height: 40px; font-size: var(--fs-section); border-radius: 10px; } .mt-page .workspace-emblem.long { width: 52px; font-size: var(--fs-small); }
.mt-page .btn { min-height: 44px; font-size: var(--fs-body); }

/* Scoring: one field. While the scorer is marking who fielded the ball, the field says so and is outlined. */
.sc-live.picking { box-shadow: inset 0 0 0 3px var(--amber); }
.sc-pickhint { position: absolute; left: 8px; bottom: 8px; z-index: 2; padding: 4px 10px; border-radius: 99px; background: var(--amber); color: var(--ink); font: 700 var(--fs-small) var(--body); white-space: nowrap; pointer-events: none; }
.sc-pickline { margin: 0; }

/* The walkthrough guide can always be put away: Hide shrinks it to a small button, Leave ends it. It sits above the team tab bar. */
.guidebar .gbtns { display: flex; gap: 6px; flex: none; } .guidebar .gk { min-width: 0; }
.guidepill { position: fixed; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 55; min-height: 44px; padding: 0 16px; border: 0; border-radius: 99px; background: var(--grass-deep); color: #fff; font: 700 var(--fs-body) var(--body); box-shadow: 0 6px 18px rgba(0, 0, 0, .28); }
.th-page .guidebar { bottom: calc(72px + env(safe-area-inset-bottom)); } .th-page .guidepill { bottom: calc(76px + env(safe-area-inset-bottom)); }

/* =====================================================================================================================
   Phone layout: the pitch keys stay in reach, the top bar is one row, titles get room, and nothing scrolls sideways.
   ===================================================================================================================== */
/* Pitch keys: pinned to the bottom edge until the page is scrolled down to where they sit. */
.sc-keys { position: sticky; bottom: 0; z-index: 6; margin-left: -16px; margin-right: -16px; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.sc-row.keys, .sc-row.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sc-board { grid-template-columns: minmax(0, 1fr); }
.game-scoring .guidebar { bottom: calc(150px + env(safe-area-inset-bottom)); } .game-scoring .guidepill { bottom: calc(150px + env(safe-area-inset-bottom)); }

.dash-out { display: none; } .app .dash-out { display: inline-flex; }
@media (max-width: 480px) {
  /* Pages with a Back button drop the word and keep the mark, so Back, Home and Help fit on one row. */
  .bar:has(.bar-back:not([hidden])) .logo span { display: none; }
  .bar .row { gap: 4px 6px; } .bar .bar-back { padding: 6px 12px; } .bar .bar-out { padding: 8px 2px; }
  /* Phones get one way around: the back arrow up top and the bottom bar. The trail, Home and Sign out are dropped (Sign out
     is under More on Team Home and on My teams), as they already are in the installed app. */
  .crumbs, .bar .bar-home, .bar .bar-out { display: none; }
  .dash-out { display: inline-flex; }
}
@media (max-width: 359px) {
  .bar .row { font-size: var(--fs-body); gap: 4px; } .bar .bar-back { padding: 6px 10px; }
  .sc-board { padding-left: 10px; padding-right: 10px; } .sc-board .sc-line { border-spacing: 2px; } .sc-board .sc-line td { min-width: 17px; } .sc-board .sc-line td.tot { min-width: 24px; } .sc-board .sc-line td.he { min-width: 15px; }
  .sc-b-count { gap: 6px; } .sc-board .sc-count { gap: 4px; font-size: var(--fs-small); } .sc-board .dots { gap: 3px; } .sc-board .dots i { width: 11px; height: 11px; }
  .sc-row.keys { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, 1fr); gap: 4px; } .sc-row.keys .sb { font-size: var(--fs-small); padding: 8px 1px 4px; }
}

/* =====================================================================================================================
   Live scoring, the coach's screen: the state of the game, the field and the keys on one screen, with Undo beside the keys.
   ===================================================================================================================== */
.game-scoring .crumbs { display: none; }                       /* Back is in the bar; the trail only pushed the game down */
.sc-board { padding: 10px 14px 12px; gap: 6px; }
.sc-b-team b { font-size: 46px; } .sc-b-diamond { width: 64px; height: 48px; }
.sc-b-count { padding-top: 8px; } .sc-board .sc-count { font-size: var(--fs-small); } .sc-board .dots i { width: 15px; height: 15px; }
@media (max-width: 359px) { .sc-board .dots i { width: 12px; height: 12px; } }   /* the 15px dots above would push Outs past the board's edge on a 320px phone */
.sc-b-dash { font: 800 var(--fs-title)/1 var(--head); opacity: .55; } .sc-final .sc-b-team b { font-size: 56px; } .sc-final { gap: 10px; }
.sc-strip { padding: 8px 14px; gap: 0 12px; } .sc-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; font-size: var(--fs-card); } .sc-num { font-size: var(--fs-title); }
/* Beside the pinned keys: the count, the last tap, and Undo. */
.sc-row.keys .sb { letter-spacing: -.015em; }
.sc-keys { gap: 6px; padding-top: 6px; box-shadow: 0 -10px 18px -14px rgba(16, 42, 86, .5); }
.sc-last { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.sc-last-count { font: 800 var(--fs-card)/1 var(--head); font-variant-numeric: tabular-nums; color: var(--grass-deep); white-space: nowrap; }
.sc-last-tap { font-size: var(--fs-small); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-undo { min-height: 44px; padding: 0 16px 0 38px; border-radius: 999px; border: 1.5px solid var(--grass); color: var(--grass-deep); font: 700 var(--fs-body) var(--body); cursor: pointer; touch-action: manipulation;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102a56' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14 4 9l5-5'/%3E%3Cpath d='M4 9h10a6 6 0 0 1 0 12h-3'/%3E%3C/svg%3E") 14px 50% / 18px 18px no-repeat; }
.sc-undo:active { background-color: var(--cue-soft); } .sc-undo[disabled] { opacity: .4; cursor: default; } .sc-undo:focus-visible { outline: 3px solid var(--grass); outline-offset: 2px; }
/* The keys in the app's navy and greys (they still carried the old green-grey edges). */
.sb, .sb.ball, .sb.foul, .sb.strike { border-color: var(--edge); } .sb { background: #fff; } .sb.strike { background: #fff; } .sb:active { background: #e9edf4; }
.sb.inplay { background: var(--grass); border-color: var(--grass-deep); } .sc-menu { border-color: var(--edge); background-color: #fafbfd; }
.sc-innings { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: 0 12px; } .sc-innings summary { min-height: 48px; display: flex; align-items: center; font-weight: 600; cursor: pointer; } .sc-innings[open] { padding-bottom: 12px; }
.sc-innings .sc-line { width: 100%; }
/* Game actions: runner out, a run scored, end the half-inning, batting order. One 48px control, open only when needed. */
.sc-actions { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: 0 12px; } .sc-actions summary { min-height: 48px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }
.sc-actions[open] { padding-bottom: 12px; display: grid; gap: 8px; }
.sc-last-inn { font-weight: 800; }
@media (max-width: 359px) { .sc-b-team b { font-size: var(--fs-title); } .sc-last { gap: 6px; } .sc-last-tap { font-size: var(--fs-small); } .sc-undo { padding-right: 12px; } }
/* A wide screen keeps the same single column, centered: a scorer's eyes should not travel. */
@media (min-width: 900px) { main.wrap.scoring { max-width: 600px; } main.wrap.scoring .sc-field { max-width: 400px; margin-left: auto; margin-right: auto; } }
@media (min-width: 600px) and (max-height: 760px) { main.wrap.scoring .sc-field { max-width: 340px; margin-left: auto; margin-right: auto; } }

/* =====================================================================================================================
   One navigation. Phones: the team bar (Home, Schedule, Live, Team, More) is the only bottom bar, on every team page.
   A page's own sections (Players, Add players, Settings, Rankings) are a row at the top of that page, not a second bar.
   ===================================================================================================================== */
.th-dock { display: none; }
@media (max-width: 759px) {
  .th-dock { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--rule); padding: 0 6px env(safe-area-inset-bottom); }
  .th-dock a { position: relative; flex: 1; display: grid; justify-items: center; gap: 2px; padding: 9px 0 7px; min-height: 56px; text-decoration: none; color: var(--muted); font: 500 var(--fs-small) var(--body); }
  .th-dock a[aria-current="page"] { color: var(--grass-deep); font-weight: 700; }
  .th-dock a.is-live::after { content: ""; position: absolute; top: 7px; left: calc(50% + 6px); width: 8px; height: 8px; border-radius: 50%; background: var(--live); }
  body.has-dock { padding-bottom: calc(76px + env(safe-area-inset-bottom)); } body.has-dock.scoring-screen { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .scoring-screen > .th-dock { display: none; }
  /* Training is a tab like the others. Workouts waiting show as a small amber count on its icon. */
  .th-dock-ball { position: relative; display: grid; place-items: center; }
  .th-dock-count { position: absolute; top: -6px; left: calc(50% + 6px); min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--amber); color: var(--ink); font: 700 var(--fs-small)/20px var(--body); text-align: center; box-shadow: 0 0 0 2px #fff; }
}
/* On a big screen the bar is a row of links: the count shows beside the word instead. */
.th-dock-count { display: none; } @media (max-width: 759px) { .th-dock-count { display: block; } }

/* =====================================================================================================================
   Train: everything about getting better, for a family's child (career.js) and for a coach's team (teamhome.js).
   A navy band on top with progress and the one big button (white, the strongest thing on the screen), then quiet rows.
   ===================================================================================================================== */
.trn-hero { background: var(--grass-deep); color: #fff; border-radius: 0 0 24px 24px; margin: -8px -16px 4px; padding: 18px 18px 20px; display: grid; gap: 14px; }
@media (min-width: 760px) { .trn-hero { border-radius: 24px; margin: 0 0 4px; } }
.fd-alt { justify-self: center; color: #fff; font: 600 var(--fs-body) var(--body); text-decoration: underline; text-underline-offset: 3px; padding: 6px 10px; }
/* Two quiet links under the one big button (Open scoreboard · Share scoreboard link). */
.fd-alts { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; }
button.fd-alt { background: none; border: 0; cursor: pointer; min-height: 44px; } a.fd-alt { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; }
.co .trn-hero.fd, main.wrap > .trn-hero.fd { margin: 0 0 4px; border-radius: 20px; }
.trn-hero-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.trn-kid { font: 600 var(--fs-body) var(--body); color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; padding: 9px 14px; min-height: 44px; }
.trn-kid option { color: var(--ink); } .trn-kid.one { display: inline-flex; align-items: center; }
.trn-streak { background: rgba(242, 182, 0, .2); color: #ffd75e; font: 700 var(--fs-small) var(--body); border-radius: 999px; padding: 6px 11px; }
.trn-hero-mid { display: flex; align-items: center; gap: 14px; }
.trn-ring { flex: none; } .trn-ring-bg { fill: none; stroke: rgba(255, 255, 255, .18); stroke-width: 7; } .trn-ring-on { fill: none; stroke: var(--amber); stroke-width: 7; stroke-linecap: round; }
.trn-ring text { fill: #fff; font: 800 var(--fs-body) var(--body); }
.trn-eyebrow { margin: 0; font: 700 var(--fs-small) var(--body); letter-spacing: .08em; text-transform: uppercase; color: #b9c6e0; }
.trn-title { margin: 2px 0 0; font: 800 var(--fs-title)/1.1 var(--body); letter-spacing: -.01em; color: #fff; }
.trn-sub { margin: 4px 0 0; font-size: var(--fs-small); color: #d5ddec; }
.trn-today { background: rgba(255, 255, 255, .08); border-radius: 14px; padding: 12px 14px; }
.trn-today-t { margin: 3px 0 0; font: 700 var(--fs-card) var(--body); color: #fff; }
.trn-go { display: block; text-align: center; background: #fff; color: var(--grass-deep); border-radius: 12px; padding: 15px; font: 800 var(--fs-body) var(--body); text-decoration: none; min-height: 44px; }
.trn-go:hover, .trn-go:focus-visible { background: #eef2f9; }
.trn-go-2 { display: grid; gap: 2px; text-align: left; padding: 14px 18px; } .trn-go-2 b { font: 800 var(--fs-card) var(--body); } .trn-go-2 span { font: 600 var(--fs-small) var(--body); color: #4a5d80; }
.trn-label { margin: 10px 0 0; font: 700 var(--fs-small) var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.trn-list, .trn-card { background: #fff; border: 1px solid var(--rule); border-radius: 16px; display: grid; overflow: hidden; }
.trn-card .pl-list { border: 0; border-radius: 0; }
.trn-row { display: flex; align-items: center; gap: 12px; padding: 14px; text-decoration: none; color: var(--ink); min-height: 44px; }
.trn-row + .trn-row { border-top: 1px solid var(--rule); }
.trn-row .kid-tile-i, .trn-row-i { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #e9eef7; color: var(--grass-deep); display: grid; place-items: center; }
.trn-row .kid-tile-i svg { width: 24px; height: 24px; }
.trn-row .hm-kid-t { flex: 1; display: grid; gap: 2px; } .trn-row .hm-kid-t span { color: var(--muted); font-size: var(--fs-small); }
.trn-new { flex: none; background: #e8edf6; color: var(--grass-deep); font: 700 var(--fs-small) var(--body); border-radius: 999px; padding: 4px 9px; }
.trn-chev { flex: none; color: var(--muted); display: grid; }
.trn-all { display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: 0; border-top: 1px solid var(--rule); padding: 12px 14px; font: 600 var(--fs-body) var(--body); color: var(--grass); min-height: 44px; cursor: pointer; }
.trn-pad { padding: 14px; margin: 0; }
.trn { display: grid; gap: 12px; }

/* Baseball IQ on the field (iq-field.js): the play, your piece in a yellow ring, then your turn to tap your spot. */
.iqf { background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 6px; }
.iqf-svg { display: block; width: 100%; height: auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.iqf-svg.asking { cursor: crosshair; outline: 3px solid var(--amber); outline-offset: -3px; border-radius: 12px; }
.iqf-ball { fill: #fff; stroke: #333; stroke-width: 1; }
.iqf-trail { fill: none; stroke: rgba(255, 255, 255, .8); stroke-width: 1.6; stroke-dasharray: 4 4; }
.iqf-trail.run { stroke: #e5484d; } .iqf-trail.you { stroke: var(--amber); stroke-width: 2.6; stroke-dasharray: none; } .iqf-trail.ball { stroke: #fff; stroke-dasharray: 2 3; }
.iqf-target { fill: rgba(31, 138, 91, .25); stroke: #fff; stroke-width: 2; stroke-dasharray: 3 3; }
.iqf-sit { font-size: var(--fs-card); line-height: 1.4; margin: 0; }
.iqf-you { margin: 0; color: var(--muted); font-size: var(--fs-small); }
.iqf-acts { display: grid; gap: 10px; }
.iqf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.iqf-prompt { margin: 0; font: 700 var(--fs-card) var(--body); }
.iqf-job { background: #eef2f9; border-radius: 14px; padding: 12px 14px; }
.iqf-job-k { margin: 0; font: 700 var(--fs-small) var(--body); letter-spacing: .06em; text-transform: uppercase; color: #6b4e00; }
.iqf-job-t { margin: 6px 0 0; font: 700 var(--fs-card)/1.35 var(--body); }
.iqf-verdict { font-weight: 700; margin: 0; }
/* The play board (play-board.js): coach walkthrough and player practice on one play. */
.plb-head { display: grid; gap: 2px; }
.plb-k { margin: 0; font: 700 var(--fs-small) var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.plb-title { margin: 0; font: 800 var(--fs-card) var(--body); }
.plb-seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--rule); border-radius: 12px; padding: 3px; }
.plb-seg-b { min-height: 44px; border: 0; background: none; border-radius: 10px; font: 700 var(--fs-small) var(--body); color: var(--muted); cursor: pointer; }
.plb-seg-b[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.plb-field { background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 6px; }
.plb-svg { display: block; width: 100%; height: auto; touch-action: none; user-select: none; -webkit-user-select: none; cursor: pointer; }
/* The spot to go to after an answer: a thick gold ring on a dark outline, open in the middle so the base and players show
   through (field.js sizes it to at least 44px on screen). */
.plb-target { fill: transparent; stroke: #ffc642; }
.plb-sit { font-size: var(--fs-body); line-height: 1.45; margin: 0; }
.load-failed { align-items: flex-start; }
.load-failed-t { font-size: var(--fs-body); line-height: 1.45; margin: 0; }
.plb-ask { margin: 0; font: 800 var(--fs-section)/1.25 var(--body); letter-spacing: -.01em; }
.plb-more { border-top: 1px solid var(--line, #e3e7ee); padding-top: 14px; }
.plb-you { margin: 0; color: var(--muted); font-size: var(--fs-small); }
/* Change play or position: the play list, positions and modes wait here, under the field and the question. */
.plb-change { border-top: 1px solid var(--rule); padding-top: 4px; }
.plb-change > summary { min-height: 44px; display: flex; align-items: center; font: 700 var(--fs-body) var(--body); color: var(--ink); cursor: pointer; }
.plb-change > .stack { padding: 4px 0 8px; }
.plb-prompt { margin: 0; font: 700 var(--fs-card)/1.35 var(--body); }
.plb-job { background: #eef2f9; border-radius: 14px; padding: 12px 14px; }
.plb-job-k { margin: 0; font: 700 var(--fs-small) var(--body); letter-spacing: .06em; text-transform: uppercase; color: #6b4e00; }
.plb-job-t { margin: 6px 0 0; font: 700 var(--fs-card)/1.35 var(--body); }
.plb-hit { fill: transparent; }
.plb-hitmark { fill: rgba(255, 255, 255, .35); stroke: #fff; stroke-width: 2; }
.plb-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.plb-steps .btn { width: 100%; }
/* After an answer: Replay, Why second base? and (if missed) Try again, side by side when they fit. */
.plb-answer { display: flex; flex-wrap: wrap; gap: 8px; }
.plb-answer .btn { flex: 1 1 auto; white-space: nowrap; }
.plb-say { margin: 0; font-size: var(--fs-body); }
.plb-ours { justify-self: start; margin-top: 4px; padding: 2px 10px; border-radius: 999px; background: var(--rule); font: 700 var(--fs-small) var(--body); }
.plb-picklabel { margin: 0; color: var(--muted); font-size: var(--fs-small); }
.plb-pick { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); color: var(--ink); font: 600 var(--fs-body) var(--body); }
.plb-jobedit { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 12px; font: var(--fs-body)/1.4 var(--body); }
.plb-links { display: flex; flex-wrap: wrap; gap: 16px; }
/* A page's own sections: a row under the top bar. */
.tabs:not(.parent) { position: static; display: flex; padding: 0 8px; border-top: 0; border-bottom: 1px solid var(--rule); background: var(--paper); overflow-x: auto; scrollbar-width: none; }
.tabs:not(.parent) a { flex: 1 0 auto; flex-direction: row; gap: 7px; min-height: 48px; padding: 0 10px; font: 600 var(--fs-body) var(--body); color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs:not(.parent) a svg { width: 18px; height: 18px; } .tabs:not(.parent) a[aria-current="page"] { background: none; color: var(--grass-deep); border-bottom-color: var(--grass); }
@media (max-width: 479px) { .tabs:not(.parent) a svg { display: none; } .tabs:not(.parent) a { font-size: var(--fs-small); padding: 0 6px; } }
@media (min-width: 760px) { .tabs:not(.parent) { justify-content: flex-start; padding-left: max(8px, calc((100% - 720px) / 2 + 4px)); } .tabs:not(.parent) a { flex: 0 0 auto; padding: 0 14px; } }
body.has-tabs { padding-bottom: 24px; }
/* My family keeps its own four tabs, in the same look as the team bar. */
.tabs.parent { border-top: 1px solid var(--rule); box-shadow: none; background: #fff; padding: 0 6px env(safe-area-inset-bottom); }
.tabs.parent a { min-height: 56px; gap: 2px; font: 500 var(--fs-small) var(--body); color: var(--muted); }
.tabs.parent a[aria-current="page"] { background: transparent; box-shadow: none; color: var(--grass-deep); font-weight: 700; }
/* Starting a game: the one question (who pitches first) as a list of names, and the form's folded extras. */
.gm-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.gm-pick .btn.pick { display: grid; justify-items: start; text-align: left; min-height: 52px; }
.gm-more > summary { cursor: pointer; font-weight: 600; padding: 6px 0; }

/* ---- Scoring is full screen: the game's own bar (Exit, the opponent, Menu) replaces the site bar and its Sign out ---- */
.game-scoring.sc-ready header.bar, .game-scoring.sc-ready .crumbs { display: none; }
.sc-gamebar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; margin-top: env(safe-area-inset-top); }
.sc-gamebar .sc-title { font: 700 var(--fs-body)/1.2 var(--body); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-exit, .sc-menu-btn { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--edge, var(--line)); background: var(--paper); color: var(--ink); font: 700 var(--fs-body) var(--body); text-decoration: none; cursor: pointer; touch-action: manipulation; }
.sc-menu-btn { background: var(--grass); border-color: var(--grass-deep); color: #fff; }
.sc-voice-btn { min-height: 44px; padding: 0 12px; border: 1.5px solid var(--edge); border-radius: 12px; background: var(--paper); color: var(--grass-deep); font: 700 var(--fs-small) var(--body); cursor: pointer; }
.sc-voice-btn[aria-pressed="true"] { border-color: var(--red); background: var(--red-tint); color: var(--red); }
main.wrap.scoring > .sc-gamebar + * { margin-top: 8px; }
/* Questions about the last play cover the scoreboard, not the field or the keys. */
.sc-head { position: relative; display: grid; gap: 8px; }
.sc-ask { position: absolute; inset: 0; z-index: 3; overflow: auto; border-radius: 16px; background: var(--paper); box-shadow: 0 8px 22px -12px rgba(16, 42, 86, .55); }
.sc-ask > .card { min-height: 100%; margin: 0; }
.sc-after-off { justify-self: start; color: var(--muted); padding: 2px 0; }
.sc-drop .link { justify-self: start; }
.sc-b-flip { border: 0; border-radius: 999px; padding: 4px 10px; background: rgba(255, 255, 255, .16); color: #fff; font: 600 var(--fs-small) var(--body); cursor: pointer; }
/* The hit buttons, pinned under the pitch keys. Lit up while a ball in play is waiting for how it ended. */
.sc-keys .sc-results .sc-res { min-height: 50px; }
.sc-results.awaiting .sc-res { box-shadow: inset 0 0 0 2px var(--amber); }
.sc-check { align-items: flex-start; gap: 10px; font-size: var(--fs-small); } .sc-check input { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.game-scoring { overflow-anchor: none; }   /* a redraw replaces the screen: the browser must not scroll to "keep its place" */
.sc-ask .sc-after { gap: 6px; padding: 8px 12px; } .sc-ask .sc-call-q { font-size: var(--fs-small); gap: 6px 10px; } .sc-ask .btn.sm { min-height: 38px; font-size: var(--fs-body); padding: 4px 12px; }
.sc-ask .sc-dir { gap: 4px; } .sc-ask .sc-after-where { font-size: var(--fs-small); }
.sc-after-acts { gap: 10px; align-items: center; flex-wrap: nowrap; } .sc-after-off { white-space: nowrap; }
@media (max-width: 374px) { .sc-after-off { font-size: var(--fs-small); } }
/* A child's page (career.html?player=): this season in big numbers */
.kid-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.kid-stat { display: grid; gap: .125rem; justify-items: center; background: var(--chalk); border-radius: .75rem; padding: .625rem .25rem; }
.kid-stat b { font: 800 var(--fs-section)/1.1 var(--body); color: var(--grass-deep); font-variant-numeric: tabular-nums; } .kid-stat span { font: 600 var(--fs-small) var(--body); color: var(--muted); }
/* Simple scoring: no Exit in the corner (it is in the Menu), and the field is smaller: bases, runners and who plays where. */
.sc-exit-gap { width: 72px; }
.sc-live.compact { max-width: 300px; margin-left: auto; margin-right: auto; }
/* Home page: the parents' way in under the coach buttons, a season-by-season stat strip, the questions section, the closing buttons. */
.faq h2 { font: 700 var(--fs-section) var(--body); letter-spacing: -.01em; }
.faq details.card { padding: 4px 14px; } .faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; font-weight: 700; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; } .faq summary::after { content: "›"; font-size: var(--fs-title); line-height: 1; color: var(--cue); transition: transform .15s; } .faq details[open] summary::after { transform: rotate(90deg); }
.faq details p { margin: 0 0 12px; color: var(--muted); }
@media (min-width: 760px) { .faq { max-width: 760px; } }
.h2-size { font-size: var(--fs-section); }   /* "Sign in" under the iPhone app welcome */
.welcome-title { font-size: var(--fs-title); font-weight: 800; letter-spacing: -.015em; line-height: 1.12; }   /* the iPhone app welcome on signin.html */

/* Switch roles (Admin, Coach, Parent): a thin strip under the top bar, only for people with more than one role. */
.role-bar { background: var(--ink, #14213d); color: #fff; font-size: var(--fs-small); border-bottom: 1px solid rgba(255,255,255,.15); }
.role-bar .wrap { gap: 8px; padding-top: 4px; padding-bottom: 4px; flex-wrap: wrap; }
.role-pick { display: inline-flex; gap: 2px; background: rgba(255,255,255,.12); border-radius: 99px; padding: 2px; }
.role-pick .role-on, .role-pick .role-go { border: 0; border-radius: 99px; padding: 5px 12px; font: inherit; font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.role-pick .role-on { background: #fff; color: var(--ink, #14213d); }
.role-pick .role-go { background: none; color: #fff; cursor: pointer; }

/* Invite sheet (LC.inviteSheet): Text / Email first, everything else quiet. */
.lc-sheet { width: min(92vw, 420px); border: 0; border-radius: 20px; padding: 24px; display: grid; gap: 12px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.lc-sheet:not([open]) { display: none; }
.lc-sheet::backdrop { background: rgba(10, 20, 15, .55); }
.lc-sheet h2 { margin: 0; }
.lc-sheet p { margin: 0; }
.lc-sheet-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lc-sheet-btns .btn { text-align: center; }
/* The icon square on a Training row (career.js). */
.kid-tile-i { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 4px; }
.kid-back { display: inline-block; font-weight: 700; text-decoration: none; padding: 6px 0; }
.kid-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.kid-steps > li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; } .kid-steps h2 { margin: 0; font-size: var(--fs-card); }
.kid-step-n { width: 32px; height: 32px; border-radius: 50%; background: var(--grass-deep); color: #fff; display: grid; place-items: center; font-weight: 800; }
.kid-tests { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); } .kid-tests .kid-stat span { text-align: center; }

/* One header on every team page: the same white bar as Team Home, wherever the team's bottom bar is showing. */
body.has-dock .bar { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
body.has-dock .bar a, body.has-dock .bar button.link { color: #102a56; }
body.has-dock .bar .logo { color: #102a56; }
body.has-dock .bar .bar-back { border-color: var(--line); background: #fff; }
/* Inside a team: the team (tap to switch), the bell and your initials, the same three things as Team Home's header. Back, Home,
   Help and Sign out are for pages outside a team; Help and Sign out are in the initials menu here. */
.bar.bar-team { background: #fff; color: #102a56; border-bottom: 1px solid var(--rule); }
.bar.bar-team .logo, .bar.bar-team a { color: #102a56; }
.bar.bar-team :is(.bar-back, .bar-home, .bar-out, .bar-help) { display: none !important; }
.bar.bar-team .wrap { justify-content: flex-start; } .bar.bar-team .row { margin-left: auto; flex-wrap: nowrap; }
.bar-teamrow { display: flex; align-items: center; gap: 8px; }
.bar-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--tc, #102a56); }
.bar-switch { flex: 0 1 auto; display: flex; align-items: center; gap: 8px; min-height: 44px; min-width: 0; max-width: 260px; padding: 4px 10px 4px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: #102a56; text-align: left; cursor: pointer; font-family: var(--body); }
.bar-switch-t { display: grid; line-height: 1.2; min-width: 0; }
.bar-switch-t b { font-size: var(--fs-body); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-switch-t span { font-size: var(--fs-small); color: var(--muted); white-space: nowrap; }
.bar-switch-i { color: var(--muted); display: grid; }
.bar-bell { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; flex: none; }
.bar-bell:hover { background: #f6f7f9; }
.bar-me { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #102a56; color: #fff; font: 700 var(--fs-small) var(--body); cursor: pointer; }
.bar-me:focus-visible, .bar-switch:focus-visible { outline: 3px solid var(--grass); outline-offset: 2px; }
@media (max-width: 759px) { .bar.bar-team .logo span { display: none; } .bar-switch { max-width: 52vw; } }
.team-back { display: none; background: #fff; border-bottom: 1px solid var(--rule); } .team-back a { display: inline-block; padding: 10px 0; font: 600 var(--fs-body) var(--body); color: #102a56; text-decoration: none; }
@media (max-width: 480px) { .team-back { display: block; } } .app .team-back { display: block; }
.lc-sheet { padding: 16px 12px; } .lc-sheet h2 { margin: 0 12px 8px; font: 700 var(--fs-card) var(--body); } .lc-sheet > p { margin: 0 12px 8px; } .lc-sheet .btn { margin: 8px 12px 0; }
.lc-sheet-list { display: grid; gap: 2px; }
.lc-sheet-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.lc-sheet-row:hover, .lc-sheet-row[aria-current="true"] { background: #f6f7f9; }
.lc-sheet-row > span:first-child { flex: 1; display: grid; min-width: 0; } .lc-sheet-row b { font: 600 var(--fs-body) var(--body); } .lc-sheet-row small { font-size: var(--fs-small); color: var(--muted); }
.lc-sheet-chev { color: var(--muted); font-size: var(--fs-card); }
/* Pay online: the bank price and the card price side by side, before anything is tapped. */
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0; }
.prices > div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.prices b { font-size: var(--fs-section); }
/* Sign-in when joining or setting up a team: "I'm new here" or "I already have an account", side by side. */
.seg-who { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg-who .btn { min-height: 52px; font-size: var(--fs-body); line-height: 1.2; white-space: normal; }
.seg-who .btn[aria-pressed="true"] { background: var(--grass-deep); border-color: var(--grass-deep); color: #fff; }

/* A browser on a computer (html.web is set by lc.js outside the app): the shared top bar and trail line up with the 1200px pages,
   and signed-in pages end with the website footer. Phones and the app never show the footer. */
.site-foot { display: none; } .bar-nav { display: none; }
@media (min-width: 1024px) {
  html.web .bar .wrap, html.web .crumbs .wrap { max-width: 1200px; padding: 0 40px; }
  html.web .bar .wrap { min-height: 72px; }
  html.web .site-foot { display: block; margin-top: 48px; border-top: 1px solid var(--rule); background: var(--paper); }
  html.web .th-page .site-foot, html.web body.has-dock .site-foot { margin-top: 0; }
  html.web .site-foot-in { max-width: 1200px; margin: 0 auto; padding: 20px 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-size: var(--fs-small); color: var(--muted); }
  html.web .site-foot nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 20px; }
  html.web .site-foot a { color: var(--grass); font-weight: 600; }
  /* My family and the club pages keep their own row of sections: on a computer it sits at the top, not along the bottom. */
  html.web .tabs.parent { position: static; border-top: 0; border-bottom: 1px solid var(--rule); justify-content: center; padding: 0; }
  html.web .tabs.parent a { flex: 0 0 auto; flex-direction: row; gap: 8px; min-height: 56px; padding: 0 18px; font: 600 var(--fs-body) var(--body); border-bottom: 3px solid transparent; }
  html.web .tabs.parent a[aria-current="page"] { color: var(--grass-deep); border-bottom-color: var(--grass-deep); background: none; }
  html.web body.has-tabs { padding-bottom: 0; }
  /* The team's sections in the top bar of every team page (career, workouts, progress, roster); the bottom bar is phones only. */
  html.web .bar .wrap:has(.bar-nav) :is(.bar-back, .bar-home) { display: none; }
  html.web .bar-nav { display: flex; align-self: stretch; gap: 4px; margin: 0 auto 0 28px; }
  html.web .bar-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; font: 600 var(--fs-body) var(--body); color: var(--muted); text-decoration: none; border-top: 3px solid transparent; border-bottom: 3px solid transparent; }
  html.web .bar-nav a:hover { color: var(--grass-deep); }
  html.web .bar-nav a[aria-current="page"] { color: var(--grass-deep); font-weight: 700; border-bottom-color: var(--grass-deep); }
  /* One header on every page: the white bar with LeagueCue, the menu, Help and Sign out. */
  html.web .bar { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
  html.web .bar a, html.web .bar button.link, html.web .bar .logo { color: #102a56; }
  html.web .bar .bar-back { border-color: var(--line); background: #fff; }
  html.web body:has(.bar-nav) .tabs.parent { display: none; }
  html.web .bar-nav-n { min-width: 22px; padding: 0 6px; border-radius: 11px; background: var(--amber); color: var(--ink); font: 800 var(--fs-small)/22px var(--body); text-align: center; }
  html.web body.has-dock { padding-bottom: 0; }
  /* Club admin's main screens: 1200 wide, the front door across the top, the cards in two columns under it. */
  html.web main.wrap:has(> .co-board) { max-width: 1200px; padding: 24px 40px 0; }
  html.web .wd { display: grid; gap: 28px; }
  html.web .wd-2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
  html.web .wd-main, html.web .wd-rail { display: grid; gap: 16px; align-content: start; min-width: 0; }
  html.web .co-board:not(:has(> .co-wide)) { columns: 2; column-gap: 32px; }
  html.web .co-board > * { break-inside: avoid; margin: 0 0 16px; }
  html.web .co-board > .trn-hero:first-child { column-span: all; margin-bottom: 24px; }
  html.web .co-board > .co-wide { margin: 0; }
  html.web .co-board > :is(h2, h3, .co-label, .trn-label) { break-after: avoid; }
  /* Every page lines up with the header: the same 1200px frame and left edge. Plain pages (forms, settings, lists) keep a readable
     column on that left edge; pages with their own layout (lists of cards, two columns) use the whole width. */
  html.web main.wrap:not(.scoring) { max-width: 1200px; padding: 32px 40px 0; }
  html.web :where(main.wrap:not(.scoring, :has(> .trn-hero + .trn-list, > .co-board))) > :where(*) { max-width: 800px; }
  html.web body > .checkin-banner, html.web body > nav.wrap { max-width: 1200px; padding: 0 40px; }
  html.web body > .checkin-banner > * { max-width: 800px; }
  /* My teams: the clubs and their teams on the left (teams as cards, two across), your account on the right. */
  html.web body.mt-page main.wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px 40px; align-items: start; grid-auto-flow: row dense; }
  html.web body.mt-page main.wrap > * { max-width: none; margin: 0; grid-column: 1; }
  html.web body.mt-page main.wrap > h1 { grid-column: 1 / -1; }
  html.web body.mt-page main.wrap > :is(.account-card, .btn-row) { grid-column: 2; }
  html.web body.mt-page .workspace { grid-row: span 3; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  html.web body.mt-page .workspace > * { margin: 0; }
  html.web body.mt-page .workspace > :not(.workspace-team) { grid-column: 1 / -1; }
  html.web body.mt-page main.wrap > .stack:empty { display: none; }
  html.web body.mt-page .workspace > form { max-width: 560px; padding: 0; display: flex; flex-direction: row; align-items: stretch; gap: 10px; }
  html.web body.mt-page .workspace > form { flex-wrap: wrap; } html.web body.mt-page .workspace > form > .in { flex: 1; } html.web body.mt-page .workspace > form > [role=alert] { flex-basis: 100%; } html.web body.mt-page .workspace > form > [role=alert]:empty { display: none; } html.web body.mt-page .workspace > form > * { margin: 0; }
  html.web body.mt-page .workspace > form .btn { width: auto; padding: 0 24px; white-space: nowrap; }
  html.web body.mt-page .workspace > a.btn { justify-self: start; width: auto; padding: 0 28px; }
  /* A team's roster: the players as cards, three across. */
  html.web main.wrap:has(#rows) > * { max-width: none; }
  html.web main.wrap:has(#rows) .tools { max-width: 560px; }
  html.web #rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  html.web #rows > .prow { margin: 0; } html.web #rows > :not(.prow) { grid-column: 1 / -1; }
  /* Help: the search on top, the answers in two columns. */
  html.web main.wrap:has(> .f > .help-q) > .stack { max-width: none; display: block; columns: 2; column-gap: 32px; }
  html.web main.wrap:has(> .f > .help-q) > .stack > * { break-inside: avoid; margin: 0 0 12px; }
  html.web main.wrap:has(> .f > .help-q) > .stack > h2 { break-after: avoid; margin-top: 8px; }
  html.web body > nav.tabs:not(.parent) { justify-content: flex-start; padding: 0 max(40px, calc((100% - 1200px) / 2 + 40px)); }
  /* A child's Training page: the front door across the top, then the three rows. */
  html.web main.wrap:has(> .trn-hero + .trn-list) { max-width: 1200px; padding: 32px 40px 0; display: grid; gap: 16px; }
  html.web main.wrap:has(> .trn-hero + .trn-list) > * { margin-top: 0; }
  html.web main.wrap > .trn-hero, html.web .co-board > .trn-hero { grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; row-gap: 10px; align-items: center; padding: 28px 32px; border-radius: 20px; margin: 0; }
  html.web main.wrap > .trn-hero > *, html.web .co-board > .trn-hero > * { grid-column: 1; }
  html.web main.wrap > .trn-hero > .trn-go, html.web .co-board > .trn-hero > .trn-go { grid-column: 2; grid-row: 1 / span 3; align-self: center; padding: 15px 28px; white-space: nowrap; }
}


/* Opt-in Baseball IQ coach pilot. Scoped here so shared field art and scorekeeping do not change. */
.plb-pilot-grid { display:grid; gap:12px; min-width:0; }
.plb-pilot-fieldcard,.plb-pilot-guide { min-width:0; border:1px solid #c0cedc; border-radius:16px; background:var(--paper); overflow:hidden; }
.plb-pilot-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px; padding:7px 10px; font-size:var(--fs-small); }
.plb-pilot-toolbar .plb-seg { min-width:185px; }
.plb-pilot-toolbar .plb-seg-b { padding:0 7px; }
.plb-field:has(.plb-svg-focus) { background:#172b3b; border-color:#445b70; padding:8px; }
.plb-pilot-fieldcard .plb-field { border:0; border-radius:0; }
.plb-svg-focus { max-height:530px; touch-action:pan-y; overflow:visible; }
.plb-svg-practice { touch-action:none; }
.iqf-svg.plb-svg-focus { background:#172b3b; border-radius:12px; }
.plb-svg-focus .lf-track { fill:#a87951; }
.plb-svg-focus .lf-grass { fill:#376e58; }
.plb-svg-focus .lf-mow { fill:#3d755d; }
.plb-svg-focus .lf-dirt { fill:#ac8058; }
.plb-svg-focus .lf-line { display:none; }
.plb-pilot-foul { stroke:#f6e8d1; stroke-width:1; fill:none; }
.plb-pilot-base { fill:#fff5df; }
.plb-svg-focus .plb-mark,.plb-pilot-marker-focus { pointer-events:none; }
.plb-pilot-marker-focus { display:none; fill:none; stroke:#ffd073; stroke-width:1.3; }
.plb-svg-focus .lit .plb-pilot-marker-focus { display:block; }
.plb-cap-shell { fill:#e5eef5; stroke:#12283c; stroke-width:1.3; stroke-linejoin:round; }
.plb-cap-seam { fill:none; stroke:#456078; stroke-width:1; }
.plb-svg-focus .lit .plb-cap-shell { fill:#f8cf73; }
.plb-svg-focus .lit .plb-cap-seam { stroke:#173047; }
.plb-cleat-upper { fill:#398ab6; stroke:#0d2336; stroke-width:1.1; stroke-linejoin:round; }
.plb-cleat-sole { fill:#f3f9ff; stroke:#0d2336; stroke-width:.9; stroke-linejoin:round; }
.plb-cleat-studs,.plb-cleat-laces { fill:none; stroke:#f3f9ff; stroke-linecap:round; }
.plb-cleat-studs { stroke-width:1.8; }
.plb-cleat-laces { stroke-width:1; }
.plb-bat-wood { fill:#f4d7a3; stroke:#182a3a; stroke-width:1.2; stroke-linejoin:round; }
.plb-bat-grip { stroke:#9a6a38; stroke-width:1.4; }
.plb-batter .plb-mark-cleat,.plb-batter-running .plb-mark-bat { display:none; }
.plb-batter-running .plb-mark-cleat { display:block; }
.plb-pilot-tag { fill:#e5eef5; stroke:#102d35; stroke-width:2.2; stroke-linejoin:round; paint-order:stroke;
  font:800 9px system-ui,sans-serif; text-anchor:middle; dominant-baseline:central; pointer-events:none; }
.plb-pilot-runner .plb-pilot-tag { fill:#b0e1ff; }
.plb-batter:not(.plb-batter-running) .plb-pilot-tag { fill:#f4d7a3; }
.plb-svg-focus .lit .plb-pilot-tag { fill:#ffd073; }
.plb-pilot-hidden { display:none; }
.plb-svg-focus .iqf-trail { stroke:#edf6ed; opacity:.34; }
.plb-svg-focus .iqf-trail.run { stroke:#a4d7ff; opacity:1; stroke-width:1.8px; }
.plb-svg-focus .iqf-trail.ball { stroke:#ffd075; }
.plb-svg-focus .iqf-trail.plb-pilot-current { opacity:1; stroke-width:2.1px; stroke-dasharray:none; }
.plb-pilot-arrow { fill:#ffd075; }
.plb-pilot-legend { display:flex; flex-wrap:wrap; justify-content:center; gap:16px; padding:9px; color:var(--muted); font-size:var(--fs-small); }
.plb-pilot-legend span::before { content:""; width:17px; display:inline-block; border-top:2px solid #9b6018; margin:0 5px 3px 0; }
.plb-pilot-legend span:nth-child(2)::before { border-top:2px dashed #2b6595; }
.plb-pilot-guide { display:grid; gap:10px; padding:12px; align-content:start; }
.plb-pilot-steps { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; }
.plb-pilot-steps button { min-width:0; min-height:44px; border:1px solid #c0cedc; border-radius:8px; background:#eef4f8; color:#233951; font:700 var(--fs-small) var(--body); padding:5px; cursor:pointer; }
.plb-pilot-steps button span { display:block; }
.plb-pilot-steps button[aria-pressed="true"] { color:#104537; border-color:#83b9ab; background:#e0f3ec; }
.plb-pilot-replay { justify-self:start; min-height:44px; }
.plb-pilot-say { margin:0; font-size:var(--fs-small); }
.plb-pilot-options { display:flex; gap:4px; flex-wrap:wrap; }
.plb-pilot-options .pill { min-height:44px; min-width:44px; }
.plb-pilot-options .pill[aria-pressed="true"] { box-shadow:0 0 0 1px #087568 inset; }
@media (min-width:820px) {
  /* Expand the public coach preview across the demo card, not inside its text/field split. */
  .hp-iq:has(.plb-pilot-grid) { grid-template-columns:minmax(0,1fr); gap:20px; }
  .plb-pilot-grid { grid-template-columns:minmax(0,1.7fr) minmax(235px,1fr); align-items:start; }
  .plb-pilot-steps { grid-template-columns:1fr; }
  .plb-pilot-steps button { text-align:left; padding-inline:10px; }
  .plb-pilot-steps button span { display:inline-block; margin-right:8px; }
}

/* Baseball IQ on a computer: the field large on the left, the play's words, steps and jobs in a panel on the right, instead of
   one 800px column with empty space beside it. The homepage demo (.plb-lead) and the coach's focused view (which has its own
   field-and-steps split) keep their layouts. Phones are unchanged: one column. */
@media (min-width: 1024px) {
  html.web main.wrap > .plb, html.web .th-one:has(> .plb) { max-width: none; }
  html.web .th-one > .hm-back { margin: 0; padding: 0; justify-self: start; }
  html.web .plb.plb-split:not(:has(.plb-pilot-grid)) { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); grid-template-rows: repeat(16, auto) 1fr; column-gap: 32px; align-items: start; padding: 24px; }
  html.web .plb.plb-split:not(:has(.plb-pilot-grid)) > *, html.web .plb.plb-split:not(:has(.plb-pilot-grid)) > .stack > * { grid-column: 2; }
  html.web .plb.plb-split:not(:has(.plb-pilot-grid)) > .stack { display: contents; }
  html.web .plb.plb-split:not(:has(.plb-pilot-grid)) .plb-field { grid-column: 1; grid-row: 1 / -1; margin-top: 0; position: sticky; top: 96px; }
  html.web .plb.plb-split:not(:has(.plb-pilot-grid)) > :first-child { margin-top: 0; }
  html.web .plb.plb-split .plb-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  html.web .plb.plb-split:not(:has(.plb-pilot-grid)) > .stack > * { margin-top: 14px; }
  html.web .plb.plb-split:not(:has(.plb-pilot-grid)) > .stack > .plb-you { margin-top: 8px; }
}

/* Baseball IQ pickers (topic, position, and the play list): LeagueCue's own select look, label on top, one chevron. */
.iq-pickers { display: grid; gap: 12px; } @media (min-width: 520px) { .iq-pickers { grid-template-columns: 1fr 1fr; } }
.iq-label { display: grid; gap: 6px; min-width: 0; } .iq-label > span { font: 600 var(--fs-small) var(--body); color: var(--muted); }
select.iq-pick, select.plb-pick { -webkit-appearance: none; appearance: none; margin-top: 0; min-height: 48px; padding-right: 40px; border: 2px solid var(--line); border-radius: 12px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235c6778' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; font: 600 var(--fs-body) var(--body); color: var(--ink); cursor: pointer; text-overflow: ellipsis; }
select.iq-pick:focus, select.plb-pick:focus { border-color: var(--grass); outline: none; box-shadow: 0 0 0 3px rgba(16, 42, 86, .2); }

/* The walkthrough guide, docked so it never covers what it asks you to tap (lc.js guideDock). */
.guidebar.guide-inline { position: static; max-width: none; max-height: none; margin: 0 0 12px; box-shadow: none; }
.sc-keys > .guidebar.guide-inline { margin: 0 0 8px; }
/* On the scoring screen the guide rides on the pitch keys, so it stays short: the step's name, one line of the hint, the buttons. */
.sc-keys > .guidebar.guide-inline { padding: 8px 10px; gap: 2px; }
.sc-keys > .guidebar.guide-inline .gk { display: none; } .sc-keys > .guidebar.guide-inline .gtop { justify-content: flex-end; margin: -6px 0 -4px; }
.sc-keys > .guidebar.guide-inline strong { padding-right: 0; }
.sc-keys > .guidebar.guide-inline p { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.sc-keys > .guidebar.guide-inline .btn.sm { min-height: 44px; }
/* A computer: the page makes room for the docked guide, but the header keeps the full width. */
@media (min-width: 1024px) { html.web body.guide-docked > div > header.bar, html.web body.guide-docked .hm-top { margin-right: -360px; } }
body.guide-on:has(.guidebar.guide-inline) main { padding-bottom: 0; }
@media (min-width: 1024px) {
  html.web body.guide-docked { padding-right: 360px; }
  html.web body.guide-docked .guidebar { left: auto; right: 16px; top: 88px; bottom: auto; width: 328px; max-width: none; max-height: calc(100vh - 104px); margin: 0; }
  html.web body.guide-docked main { padding-bottom: 0; }
  html.web body.guide-docked .guidepill { right: 16px; }
}

/* Line icons beside a fact in text (lineIcon in lc.js): the team bar's stroke style, sized to the text. */
.lc-i { display: inline-flex; vertical-align: -3px; margin-right: 6px; color: var(--muted); } .lc-i svg { display: block; }

/* Full screen IQ field (field.js aerialBoard). The field itself goes fixed so taps still land on the same piece; its shadow is the
   dark backdrop. The layer on top holds Close, the step caption and Replay. */
.iqa-grow { position: absolute; right: 8px; bottom: 8px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: rgba(11, 31, 66, .78); color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.iqa-grow:hover { background: rgba(11, 31, 66, .92); }
.iqa-grow:focus-visible, .iqa-close:focus-visible { outline: 3px solid var(--amber, #ffc642); outline-offset: 2px; }
html.iqa-lock, html.iqa-lock body { overflow: hidden; }
.iq-aerial-field.iqa-on {
  --iqa-bar: 76px;
  --iqa-w: min(100vw - env(safe-area-inset-left) - env(safe-area-inset-right), (100vh - var(--iqa-bar) - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * 1.6);
  position: fixed !important; z-index: 1001; width: var(--iqa-w) !important; height: calc(var(--iqa-w) / 1.6); aspect-ratio: auto !important;
  left: calc(50% - var(--iqa-w) / 2); top: calc(env(safe-area-inset-top) + (100vh - var(--iqa-bar) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - var(--iqa-w) / 1.6) / 2);
  box-shadow: 0 0 0 100vmax #0b1622; border-radius: 0;
}
@supports (height: 100dvh) {
  .iq-aerial-field.iqa-on {
    --iqa-w: min(100vw - env(safe-area-inset-left) - env(safe-area-inset-right), (100dvh - var(--iqa-bar) - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * 1.6);
    top: calc(env(safe-area-inset-top) + (100dvh - var(--iqa-bar) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - var(--iqa-w) / 1.6) / 2);
  }
}
.iqa-layer { position: fixed; inset: 0; z-index: 1002; pointer-events: none; color: #fff; }
.iqa-layer > * { pointer-events: auto; }
.iqa-close { position: absolute; top: max(10px, env(safe-area-inset-top)); right: max(10px, env(safe-area-inset-right)); display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 999px; background: #fff; color: var(--ink, #0b1f42); box-shadow: 0 2px 10px rgba(0, 0, 0, .35); cursor: pointer; }
.iqa-close svg { width: 26px; height: 26px; }
.iqa-bar { position: absolute; left: 0; right: 0; bottom: 0; box-sizing: border-box; min-height: 76px; display: flex; align-items: center; gap: 14px;
  padding: 10px max(16px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.iqa-cap { margin: 0; flex: 1; min-width: 0; font: 600 var(--fs-body)/1.35 var(--body); color: #fff; }
.iqa-again { flex: none; }
.iqa-again[hidden] { display: none; }
.iqa-turn { display: none; position: absolute; left: 0; right: 0; bottom: 92px; margin: 0; text-align: center; font: 600 var(--fs-small) var(--body); color: #b9c6e0; }
@media (orientation: portrait) and (max-width: 700px) { .iqa-turn { display: block; } }

/* Game film (film.html): a finished game's plays replayed on the field. */
.fm-page h1 { margin: 0; }
.fm-sub { margin: 0; font-size: var(--fs-body); }
.fm-lead { margin: 0; font: 700 var(--fs-card)/1.35 var(--body); }
.fm-back { justify-self: start; font: 600 var(--fs-small) var(--body); }
.fm-seg3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--rule); border-radius: 12px; padding: 3px; }
.fm-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; width: 100%; padding: 14px; text-align: left; background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; font: inherit; color: var(--ink); cursor: pointer; }
.fm-row:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.fm-when { font: 700 var(--fs-small) var(--body); color: var(--muted); }
.fm-what { grid-column: 1; font: 700 var(--fs-body)/1.35 var(--body); }
.fm-on { grid-column: 1; font-size: var(--fs-small); color: var(--muted); }
.fm-go { grid-row: 1 / span 3; grid-column: 2; font-size: var(--fs-section); color: var(--muted); }
.fm-tag { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; font: 700 var(--fs-small) var(--body); vertical-align: 1px; }
.fm-tag.hl { background: #dff3e8; color: #13623f; }
.fm-tag.wk { background: #fff1c7; color: #6b4e00; }
.fm-look { background: #fff7dd; border: 1px solid #f2d27a; border-radius: 14px; padding: 12px 14px; }
.fm-look.good { background: #e9f7ef; border-color: #a9dcc0; }
.fm-look b { display: block; font: 700 var(--fs-small) var(--body); letter-spacing: .06em; text-transform: uppercase; color: #6b4e00; }
.fm-look.good b { color: #13623f; }
.fm-look p { margin: 6px 0 0; font: 700 var(--fs-card)/1.35 var(--body); }
.fm-coachbar { display: grid; gap: 6px; background: #fff7dd; border: 2px solid var(--amber); border-radius: 14px; padding: 12px 14px; }
.fm-coachbar .plb-prompt { font-size: var(--fs-body); }
.fm-coachbar p { margin: 0; }
.fm-moving { outline: 3px solid var(--amber); outline-offset: 2px; }
/* Game film quiz (film-quiz.js): "Where should Dee have been?" Tap the spot, get a star. */
.fq { display: grid; gap: 12px; }
.fq-q { margin: 0; text-align: center; font: 800 var(--fs-section)/1.25 var(--head); }
.fq-q b { color: var(--grass); }
.fq-sub { margin: 0; text-align: center; font-size: var(--fs-small); color: var(--muted); }
.fq-say { margin: 0; text-align: center; font: 700 var(--fs-body)/1.35 var(--body); border-radius: 14px; padding: 10px 12px; }
.fq-say.good { background: #e9f7ef; color: #13623f; }
.fq-say.miss { background: #fff1c7; color: #6b4e00; }
.fq-stars { display: flex; justify-content: center; gap: 10px; font-size: calc(var(--fs-title) * 1.5); line-height: 1; color: var(--rule); margin-top: 12px; }
.fq-stars.sm { font-size: var(--fs-title); margin-top: 4px; }
.fq-stars .on { color: var(--amber); }
.fq-stars .now { color: var(--grass); }
.fq-stars .miss { color: var(--edge); }
/* Practice plan (practice.js): film clips to watch together, then drills. */
.pp-clip { grid-template-columns: 1fr auto; cursor: default; }
.pp-clip-go { display: grid; gap: 4px; color: inherit; text-decoration: none; min-width: 0; }
.pp-x { font-size: var(--fs-small); }
.pp-drill { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; }
.pp-drill-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pp-drill-top b { display: block; font-size: var(--fs-body); }
.pp-sub { display: block; font-size: var(--fs-small); color: var(--muted); }
.pp-how summary { cursor: pointer; font: 700 var(--fs-small) var(--body); color: var(--grass); }
.pp-ideas { margin: 4px 0 0; font-size: var(--fs-card); }
.pp-more { display: grid; gap: 6px; font: 700 var(--fs-small) var(--body); }
.pp-more select { font: inherit; font-size: var(--fs-body); padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); }

/* Scoring help, folded: a full-width 44px button on top of the pinned pitch keys (never over them). */
.guidepill.guidepill-keys.guide-inline { position: static; display: block; width: 100%; margin: 0 0 8px; min-height: 44px; background: var(--paper); color: var(--grass-deep); border: 2px solid var(--grass-deep); }
.sc-next { margin: 0 0 6px; font: 600 var(--fs-small)/1.3 var(--body); color: var(--ink); }

/* A TV code on the phone (LC.tvCode): four big digits to read out to the TV at leaguecue.com/tv. */
.tv-code:empty { display: none; }
.tv-code-digits { display: flex; gap: 10px; margin: 0; }
.tv-code-digits span { width: 56px; height: 68px; display: grid; place-items: center; border-radius: 12px; background: var(--grass-deep); color: #fff;
  font-family: var(--num); font-weight: 700; font-size: var(--fs-title); letter-spacing: 0; }
.tv-code-how { margin: 12px 0 4px; font-size: var(--fs-body); }
