:root {
  color-scheme: light;
  --navy: #102d50;
  --ink: #142f4d;
  --gold: #efb83e;
  --paper: #f6f3ec;
  --muted: #526173;
  --surface: #fff;
  --border: #dcdedc;
  --control-border: #bbc2c9;
  --soft: #e7e9ea;
  --cream: var(--paper);
  --radius: 8px;
  --radius-small: 4px;
  --shadow: 0 4px 18px #102d5015;
  --space: 16px;
  --space-large: 24px;
  --button-height: 48px;
  --danger: #8b3037;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #986600;
  outline-offset: 4px;
}
h1, h2, h3, p, dd, label { overflow-wrap: anywhere; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 5; background: var(--surface); padding: 12px 16px; }
.skip:focus { top: calc(1rem + env(safe-area-inset-top)); }
.masthead {
  max-width: 1200px; margin: auto; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; padding: 20px; border-bottom: 1px solid var(--border);
}
.brand {
  display: flex; align-items: center; gap: 13px; min-height: 56px;
  text-decoration: none; font-weight: 900; font-size: 23px; letter-spacing: 2px; line-height: 1.2;
}
.brand small { display: block; font-size: 9px; letter-spacing: 2.4px; margin-top: 5px; }
.monogram {
  display: grid; place-items: center; flex: 0 0 51px; background: var(--navy); color: var(--gold);
  width: 51px; height: 56px; font-family: Georgia, serif; font-size: 43px;
  border-radius: 7px 7px 18px 18px; letter-spacing: 0;
}
.team-logo { width: 56px; height: 56px; flex: 0 0 56px; object-fit: contain; }
.header-note { display: none; font-size: 13px; color: var(--muted); }
main { max-width: 1200px; margin: auto; padding: 0 20px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; padding: 36px 0 32px; }
.hero-copy { min-width: 0; }
.eyebrow { font-weight: 800; font-size: 11px; letter-spacing: 2.5px; margin: 0 0 18px; }
h1 { font-size: 40px; line-height: 1.1; letter-spacing: -1.5px; margin: 0; font-weight: 850; }
h1 em { font-family: Georgia, serif; font-weight: 400; color: #926019; }
.intro { max-width: 460px; font-size: 16px; color: var(--muted); margin: 22px 0 0; }
.staff {
  position: relative; isolation: isolate; min-width: 0; padding: 28px 24px;
  color: white; background: var(--navy); border-radius: var(--radius) 48px 8px 8px;
  box-shadow: 5px 5px 0 #e5dfcf;
}
.staff .eyebrow { color: var(--gold); margin-bottom: 6px; }
.staff h2 { font-size: 21px; letter-spacing: .5px; margin: 0; }
.staff-list { display: grid; gap: var(--space); margin: 24px 0 0; }
.staff-list > div { min-width: 0; }
.staff dt { color: #d1dceb; font-size: 11px; font-weight: 700; letter-spacing: 1.3px; }
.staff dd { margin: 2px 0 0; font-size: 21px; font-weight: 650; line-height: 1.35; }
.staff-heading, .staff-list { position: relative; z-index: 1; }
/* A field diamond retains the baseball treatment without crowding staff names. */
.staff-diamond {
  position: absolute; right: 24px; bottom: 32px; width: 62px; height: 62px;
  transform: rotate(45deg); border: 1px solid #efb83e30; z-index: -1;
  background: repeating-linear-gradient(0deg, #ffffff02 0 12px, #ffffff05 12px 24px);
}
.staff-diamond i { position: absolute; width: 6px; height: 6px; background: #efb83e55; }
.staff-diamond i:nth-child(1) { top: -3px; left: -3px; }
.staff-diamond i:nth-child(2) { top: -3px; right: -3px; }
.staff-diamond i:nth-child(3) { bottom: -3px; left: -3px; }
.staff-diamond i:nth-child(4) { bottom: -3px; right: -3px; }
.clubhouse { padding: 16px 0 36px; }
.section-heading { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.section-heading h2 { font-size: 22px; letter-spacing: -.5px; margin: 0; }
.section-heading > span { font-size: 10px; letter-spacing: 1.5px; color: var(--muted); }
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space); }
.card {
  min-width: 0; padding: var(--space-large); background: var(--surface); border: 1px solid var(--border);
  border-top: 3px solid var(--navy); border-radius: 5px; text-decoration: none;
}
.card-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.card-number { font-size: 10px; letter-spacing: 1px; color: var(--muted); font-weight: 700; }
.badge { display: inline-block; padding: 4px 8px; background: #f3efdf; color: var(--ink); border-radius: var(--radius-small); font-size: 10px; font-weight: 750; }
.card h3 { font-size: 20px; margin: 20px 0 6px; display: flex; justify-content: space-between; gap: 10px; }
.card h3 span { color: #94651b; flex-shrink: 0; }
.card p { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.card-status { font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.values { padding: 30px 24px; margin: 0 0 40px; background: var(--navy); color: white; border-radius: var(--radius); }
.values > .eyebrow { color: var(--gold); margin-bottom: 8px; }
.values h2 { font-family: Georgia, serif; font-size: 30px; font-weight: 400; line-height: 1.2; margin: 0 0 28px; }
.pillars { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.pillar { min-width: 0; border-top: 1px solid #ffffff35; padding-top: 16px; }
.pillar > span { color: var(--gold); font-size: 11px; letter-spacing: 1px; }
.pillar h3 { font-size: 16px; letter-spacing: 1px; margin: 6px 0; }
.pillar p { font-size: 16px; color: #e1e6ed; margin: 0; }
footer {
  max-width: 1200px; margin: auto; padding: 24px 20px 32px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px; font-size: 11px; color: var(--muted);
}
footer strong { letter-spacing: 1px; }
.page { max-width: 720px; padding: 40px 0 60px; min-height: 65vh; }
.page > p { max-width: 560px; color: var(--muted); }
.page a { display: inline-flex; align-items: center; min-height: var(--button-height); padding: 10px 0; }
.page form { margin: 30px 0; }
fieldset { min-width: 0; margin: 0; border: 1px solid var(--border); border-radius: 6px; padding: 18px; background: var(--surface); }
legend { font-weight: 750; padding: 0 8px; }
label { display: block; font-size: 16px; font-weight: 650; margin-bottom: 18px; }
input, select, textarea {
  display: block; width: 100%; max-width: 100%; min-width: 0; min-height: var(--button-height); margin-top: 6px;
  border: 1px solid var(--control-border); border-radius: var(--radius-small); padding: 10px;
  font: inherit; font-size: 16px; background: #f4f5f6; color: #445367;
}
textarea { resize: vertical; overflow-wrap: anywhere; }
button { min-height: var(--button-height); max-width: 100%; padding: 12px 20px; background: var(--navy); color: white; border: 0; border-radius: var(--radius-small); font: inherit; font-size: 16px; white-space: normal; }
button:disabled { background: #526173; color: white; }
fieldset:disabled { opacity: .8; }
@media (min-width: 600px) {
  .masthead { padding: 24px 32px; }
  .header-note { display: inline; }
  main { padding: 0 32px; }
  h1 { font-size: 52px; letter-spacing: -2px; }
  .staff-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .section-heading { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; }
  .cards, .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values { padding: 32px; }
  footer { padding: 24px 32px 36px; flex-direction: row; justify-content: space-between; gap: 20px; }
  .page { padding: 48px 0 64px; }
}
@media (min-width: 760px) {
  .hero { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 28px; padding: 44px 0; }
  .hero h1 { font-size: 44px; }
  .staff-list { grid-template-columns: minmax(0, 1fr); }
  .staff { padding: 28px; }
}
@media (min-width: 1100px) {
  .hero { gap: 48px; padding: 60px 0; }
  .hero h1 { font-size: 64px; letter-spacing: -2.5px; }
  .intro { font-size: 17px; }
  .staff { padding: 36px; }
  .staff dd { font-size: 23px; }
  .cards, .pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .card { padding: 20px; }
  .card-top { align-items: flex-start; flex-direction: column; }
  .card h3 { font-size: 17px; }
  .card p { min-height: 66px; }
  .values { margin-bottom: 52px; padding: 36px; }
}
@media (hover: hover) {
  .card:hover { box-shadow: var(--shadow); border-top-color: #bd841d; }
}

/* Game Manager: field controls sized for thumbs first. */
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.manager { padding: 24px 0 48px; }
.manager h1 { font-size: 32px; letter-spacing: -1px; }
.manager-heading .eyebrow { margin-bottom: 8px; }
.manager-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 20px 0 12px; }
.manager-nav button { font-size: 13px; min-height: var(--button-height); padding: 10px; background: #e8e8e1; color: var(--navy); }
.manager-nav [aria-pressed="true"] { background: var(--navy); color: white; box-shadow: inset 0 -3px var(--gold); }
.manager-controls { padding: 0; border: 0; background: transparent; opacity: 1; }
.manager button { cursor: pointer; font-weight: 750; overflow-wrap: anywhere; }
.manager button:disabled { opacity: .5; cursor: default; }
.manager-controls:disabled { opacity: .65; }
.manager button.secondary { background: var(--soft); color: var(--navy); }
.game-setup { padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.game-setup button { width: 100%; }
.game-summary { font-size: 14px; overflow-wrap: anywhere; }
.live-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: var(--space); }
.batter-card,.result-card { min-width: 0; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.batter-card { border-top: 4px solid var(--gold); }
.batter-card h2 { font-size: 32px; line-height: 1.15; letter-spacing: -.6px; margin: 0 0 10px; }
.batter-card .eyebrow,.result-card .eyebrow { margin-bottom: 12px; }
.current-song { font-size: 18px; margin: 0 0 16px; }
.live-grid button { min-height: 56px; width: 100%; margin-bottom: 10px; }
.result-buttons { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.result-buttons button { padding: 10px 8px; font-size: 18px; }
.next-batter { font-size: 20px; line-height: 1.4; margin: 16px 0; }
.next-batter strong { overflow-wrap: anywhere; }
.manager .undo { background: var(--gold); color: var(--navy); }
#audioStatus { min-height: 3em; font-size: 14px; margin: 8px 0 0; }
.manual-controls { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 8px; }
.manager summary { min-height: var(--button-height); padding: 12px 0; font-weight: 700; cursor: pointer; overflow-wrap: anywhere; }
.manual-name { overflow-wrap: anywhere; }
.game-details { padding: 8px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; margin-top: 16px; }
.adjustments { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 16px 0; }
.game-details > button { margin-bottom: 16px; width: 100%; }
#events { padding-left: 24px; overflow-wrap: anywhere; }
.order-row { display: grid; grid-template-columns: 36px minmax(0,1fr); align-items: center; gap: 12px; padding: 16px; margin: 12px 0; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.order-player { font-size: 18px; overflow-wrap: anywhere; }
.order-row select { grid-column: 2; margin: 0; }
.order-arrows { grid-column: 2; display: flex; gap: 12px; }
.order-arrows button { min-width: 56px; min-height: var(--button-height); font-size: 22px; }
.order-actions { display: grid; gap: 12px; margin-top: 20px; }
.player-record { border-top: 1px solid var(--border); padding: 12px 0; }
@media(min-width:700px) {
  .live-grid { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
  .manager-nav { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .game-setup { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space); }
  .game-setup button { grid-column: 1 / -1; }
  .order-row { grid-template-columns: 36px minmax(0,1fr) 140px 124px; }
  .order-row select,.order-arrows { grid-column: auto; }
  .order-actions { grid-template-columns: 1fr 1fr; }
}
.manager-page .masthead { padding-top: 12px; padding-bottom: 12px; }
.manager-heading .eyebrow { display: none; }
.manager-menu { margin: 12px 0; border-bottom: 1px solid var(--border); }
.manager-menu > summary { font-size: 14px; }
.manager-menu .manager-nav { margin-top: 0; }
#managerMessage { font-size: 14px; margin: 10px 0; }
.manager .next-batter { font-size: 18px; margin: 10px 0; }
@media(orientation:landscape) and (max-height:500px) {
  .manager-page .masthead { padding-top: 8px; padding-bottom: 8px; }
  .manager { padding-top: 12px; }
  .manager-heading h1 { font-size: 24px; }
  .manager-menu { margin: 4px 0; }
  #managerMessage { margin: 4px 0; }
  .game-summary { margin: 8px 0; }
}

/* Staging's two large totals + inning/three-out lamps, in Hub colors. */
.live-scoreboard { margin: 16px 0; border: 1px solid var(--navy); border-radius: var(--radius); background: var(--navy); color: white; overflow-wrap: anywhere; }
.scoreboard-main { display: grid; grid-template-columns: minmax(0,1fr) 112px minmax(0,1fr); gap: 8px; align-items: center; padding: 16px 12px 10px; text-align: center; }
.score-team { min-width: 0; }
.score-team-name { font-size: 12px; font-weight: 800; letter-spacing: .7px; line-height: 1.3; overflow-wrap: anywhere; }
.score-runs { font-size: 48px; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--gold); margin-top: 4px; }
.score-inning { min-width: 0; border-left: 1px solid #ffffff35; border-right: 1px solid #ffffff35; padding: 0 6px; }
.score-inning-label { font-size: 18px; font-weight: 850; line-height: 1.3; }
.score-batting { font-size: 10px; line-height: 1.3; letter-spacing: .4px; color: #e1e6ed; margin-top: 4px; }
.score-outs { display: flex; gap: 6px; justify-content: center; margin: 10px 0 5px; }
.score-out { width: 20px; height: 20px; flex: 0 0 20px; border: 2px solid #c1cbd7; border-radius: 50%; }
.score-out.is-out { border-color: var(--gold); background: var(--gold); }
.score-outs-label { font-size: 11px; font-weight: 800; line-height: 1.3; }
.score-half-runs { margin: 6px 12px 12px; padding: 12px; text-align: center; border: 1px solid var(--gold); border-radius: 6px; }
.half-runs-heading { display: block; font-size: 12px; font-weight: 800; letter-spacing: .8px; }
#halfRunsLabel { display: block; font-size: 36px; line-height: 1.2; color: var(--gold); font-variant-numeric: tabular-nums; }
.score-half-runs.at-cap { background: var(--gold); color: var(--navy); }
.score-half-runs.at-cap #halfRunsLabel { color: var(--navy); }
#runCapLabel { font-size: 14px; font-weight: 900; }
.line-score { margin: 0 12px 12px; color: var(--navy); }
.line-score table { width: 100%; table-layout: fixed; border-collapse: collapse; background: var(--cream, #f7f4ed); font-size: 13px; font-variant-numeric: tabular-nums; }
.line-score caption { color: white; font-size: 11px; font-weight: 800; text-align: left; padding: 6px 0; }
.line-score th, .line-score td { padding: 8px 2px; text-align: center; border-bottom: 1px solid #102d4e30; overflow-wrap: anywhere; }
.line-score th:first-child { width: 30%; text-align: left; padding-left: 6px; font-size: 11px; }
.line-score th:last-child { width: 17%; font-size: 11px; }
.line-total { font-weight: 900; background: #efb83e35; }
.capped-inning { font-weight: 900; color: var(--navy); background: var(--gold); }
.current-half { box-shadow: inset 0 -3px var(--navy); font-weight: 900; }
.score-complete { padding: 10px 14px; border-radius: 0 0 7px 7px; background: var(--gold); color: var(--navy); font-size: 13px; font-weight: 850; text-align: center; }
@media(min-width:600px) {
  .scoreboard-main { grid-template-columns: minmax(0,1fr) 170px minmax(0,1fr); padding: 16px 24px 8px; }
  .score-runs { font-size: 56px; }
  .score-team-name { font-size: 16px; }
  .score-inning-label { font-size: 20px; }
}
@media(orientation:landscape) and (max-height:500px) {
  .live-scoreboard { margin: 8px 0; }
  .scoreboard-main { padding-top: 10px; }
  .score-half-runs { padding-bottom: 8px; }
}

/* Pass 3 library: portrait-first cards, no horizontally scrolling status table. */
.game-library { display:grid; gap:1rem; min-width:0; }
.library-card { min-width:0; border:1px solid var(--border); border-top:3px solid var(--navy); border-radius:var(--radius); padding:var(--space-large); background:var(--surface); overflow-wrap:anywhere; }
.library-card h3 { margin:0 0 .8rem; }
.library-card dl { margin:0; }
.library-card dl > div { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.5fr); gap:.75rem; padding:.3rem 0; }
.library-card dt { font-weight:700; }
.library-card dd { margin:0; min-width:0; }
.library-card video, .library-card .youtube-player { display:block; width:100%; aspect-ratio:16/9; background:#101a2b; border:0; border-radius:8px; }
@media(min-width:900px) { .game-library { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* Shared clubhouse identity: wraps naturally without a hidden mobile menu. */
.masthead { flex-wrap: wrap; gap: 12px 24px; }
.brand { flex-shrink: 0; }
.site-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; width: 100%; }
.site-nav a { display: flex; align-items: center; justify-content: center; min-height: var(--button-height); padding: 8px 10px; border-radius: var(--radius-small); font-size: 13px; font-weight: 750; text-decoration: none; text-align: center; }
.site-nav a[aria-current="page"] { background: var(--navy); color: white; box-shadow: inset 0 -3px var(--gold); }
.watch-page { max-width: none; }
.watch-page > p { max-width: 620px; }
.watch-page .game-library { margin-top: 28px; }
.watch-page .library-card h3 { font-size: 22px; line-height: 1.25; letter-spacing: -.4px; }
.watch-page .library-card dl { color: var(--muted); font-size: 14px; }
.video-state { display: inline-block; margin: 18px 0 8px; padding: 6px 10px; border-radius: var(--radius-small); background: #f3efdf; font-size: 13px; font-weight: 750; }
.video-label { font-size: 14px; font-weight: 700; margin: 12px 0 8px; }
.library-empty { grid-column: 1 / -1; }
.library-empty h2 { margin-top: 0; }
.library-empty p { color: var(--muted); }
.notice { padding: var(--space); border-left: 4px solid var(--gold); border-radius: var(--radius-small); background: var(--surface); }
.request-page fieldset { padding: var(--space-large); border-radius: var(--radius); }
.request-page button { width: 100%; }
.request-page fieldset:disabled { opacity: 1; }
.live-scoreboard { box-shadow: var(--shadow); }
.manager #resetGame { background: var(--danger); color: white; }
.manual-controls { border-top-style: dashed; }
.player-record { padding: var(--space); margin-bottom: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.library-card dl > div + div { border-top: 1px solid var(--border); }
.lineup-shell{max-width:1200px;margin:auto}.lineup-heading{margin-bottom:18px}.lineup-heading h1{margin:0}.lineup-select{display:block;font-weight:700;margin:12px 0}.lineup-select select,.lineup-grid select{font:inherit;min-height:44px;border:1px solid var(--border);border-radius:6px;padding:8px;background:white}.lineup-select select{display:block;width:100%;margin-top:6px}.lineup-toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:14px;background:var(--navy);color:white;border-radius:8px}.lineup-toolbar a,.lineup-toolbar button{min-height:42px;padding:9px 12px;border-radius:6px;border:0;font-weight:700}.lineup-toolbar a{margin-left:auto;color:white}.lineup-toolbar button{background:var(--gold);color:var(--navy)}.availability,.batting,.balance{margin-top:18px;padding:16px;background:white;border:1px solid var(--border);border-radius:8px}.availability h2,.batting h2,.balance h2{margin:0 0 10px}.avail{padding:10px;margin:4px;border-radius:20px;border:1px solid var(--border);background:#eef4ef}.avail.absent{background:#f8e8e5}.batting ol{padding:0;margin:0;list-style:none}.batting li{display:flex;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid var(--border)}.batting li b{width:28px;color:var(--muted)}.batting li span{flex:1}.batting button{min-width:40px;min-height:40px}.grid-wrap{overflow-x:auto;margin-top:18px;border:1px solid var(--border);border-radius:8px}.lineup-grid{border-collapse:separate;border-spacing:0;min-width:780px;background:white}.lineup-grid th,.lineup-grid td{padding:6px;border-right:1px solid var(--border);border-bottom:1px solid var(--border);white-space:nowrap}.lineup-grid thead th{background:var(--navy);color:white;position:sticky;top:0}.lineup-grid th:first-child{position:sticky;left:0;z-index:2;background:var(--navy);width:42px}.lineup-grid th:nth-child(2){position:sticky;left:42px;z-index:2;background:var(--navy);min-width:140px}.lineup-grid td select{width:86px}.is-absent{opacity:.5}.warning{padding:12px;border-left:4px solid #d08a24;background:#fff8e8}.warning div{margin-top:5px}.balance-row{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid var(--border)}.balance-row span{color:var(--muted);font-size:13px}@media(max-width:600px){.lineup-shell{padding:0}.lineup-toolbar a{margin-left:0}.lineup-toolbar strong{width:100%}.balance-row{display:block}.balance-row span{display:block;margin-top:3px}}
.manager-workspace{display:flex;gap:6px;margin:10px 0;flex-wrap:wrap}.manager-workspace a{padding:9px 13px;border-radius:6px;background:var(--soft);color:var(--navy);font-weight:800;text-decoration:none}.manager-workspace a[aria-current="page"]{background:var(--navy);color:white;box-shadow:inset 0 -3px var(--gold)}
@media (min-width:600px) {
  .site-nav { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (min-width:1100px) {
  .site-nav { width: auto; margin-left: auto; }
  .header-note { display: none; }
}
@media (hover:hover) {
  .site-nav a:hover { background: var(--soft); color: var(--navy); }
}

/* Keep the brand and navigation compact on phones held sideways. */
@media (min-width:760px) and (max-height:500px) {
  .masthead { gap: 16px; padding-top: 8px; padding-bottom: 8px; }
  .brand { font-size: 18px; gap: 10px; }
  .brand small { font-size: 8px; letter-spacing: 1.5px; }
  .header-note { display: none; }
  .site-nav { flex: 1; width: auto; min-width: 0; }
  .site-nav a { font-size: 12px; padding-inline: 6px; }
}

/* Approved render: editorial clubhouse composition, shared with utility pages. */
:root { --navy: #0b2b4f; --ink: #0b2b4f; --paper: #f8f7f1; --muted: #4f6b8f; --border: #d9dcdf; }
.card, .library-card, .request-page fieldset { box-shadow: 0 2px 9px #0b2b4f05; }
.badge { border-radius: 5px; background: #f8eed3; }
.home-page { font-family: Arial, Helvetica, sans-serif; }
.home-page .site-nav { display: none; }
.home-page .masthead { max-width: 1320px; padding: 10px 52px; }
.home-page .header-note { display: block; font-size: 14px; }
.home-page .brand { font-size: 28px; gap: 18px; letter-spacing: 2px; }
.home-page .brand small { font-size: 12px; letter-spacing: 3px; }
.home-page .team-logo { width: 84px; height: 84px; flex-basis: 84px; }
.home-page main { max-width: 1280px; padding: 0 32px; }
.home-page .hero { display: grid; grid-template-columns: minmax(0,1fr); gap: 24px; padding: 30px 0 24px; }
.home-page .eyebrow { font-size: 12px; letter-spacing: 2px; margin: 0 0 16px; }
.home-page .hero h1 { font-size: clamp(40px, 5.2vw, 72px); font-weight: 900; line-height: .97; letter-spacing: -2.8px; }
.home-page h1 em, .values h2 em { color: #94600e; font-family: Georgia, 'Times New Roman', serif; font-weight: 600; }
.home-page .hero h1 em { font-size: 1.13em; line-height: 1; letter-spacing: -3px; }
.home-page .intro { font-size: 18px; line-height: 1.4; max-width: 490px; margin: 22px 0 12px; }
.hero-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 40px; min-height: 50px; padding: 12px 24px; border-radius: 4px; background: var(--navy); color: white; font-size: 16px; font-weight: 700; text-decoration: none; }
.hero-cta span { font-size: 24px; color: var(--gold); line-height: 1; }
.home-page .staff { position: relative; display: flex; justify-content: flex-end; isolation: isolate; min-height: 420px; padding: 0; border-radius: 260px 160px 8px 8px; background: #081b2e; box-shadow: 4px 6px 0 #ece5d4; }
.hero-baseball { position: absolute; inset: 0 auto 0 0; width: 52%; height: 100%; object-fit: cover; object-position: left bottom; border-radius: 260px 0 0 8px; mask-image: linear-gradient(to right, black 85%, transparent); }
.staff-content { position: relative; width: 49%; padding: 26px 24px 8px 0; }
.home-page .staff .eyebrow { text-align: center; font-size: 16px; font-style: italic; letter-spacing: 5px; margin: 0 0 5px; }
.home-page .staff h2 { font-family: Impact, 'Arial Narrow', sans-serif; font-weight: 700; font-stretch: condensed; font-size: 36px; letter-spacing: -1px; line-height: 1.25; padding-bottom: 10px; border-bottom: 2px solid var(--gold); text-align: center; }
.home-page .staff-list { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; margin: 0 0 0 20px; }
.home-page .staff-list > div { position: relative; min-height: 73px; display: flex; flex-direction: column; justify-content: center; padding: 9px 0 9px 78px; border-bottom: 1px solid #c7d2dd65; }
.home-page .staff-list > div:last-child { border: 0; }
.home-page .staff dt { color: #f0f2f5; font-size: 12px; letter-spacing: 1.7px; }
.home-page .staff-list > div:first-child dt { color: #ffe4a5; }
.home-page .staff dd { font-size: 21px; font-weight: 700; line-height: 1.2; margin-top: 5px; letter-spacing: -.7px; }
.staff-icon { display: grid; place-items: center; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 60px; height: 60px; border: 2px solid #f7bf16; border-radius: 50%; color: #ffc52b; }
.staff-icon svg { width: 40px; height: 40px; }
.home-page .clubhouse { padding: 0 0 26px; }
.home-page .section-heading { flex-direction: row; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.home-page .section-heading h2 { font-size: 24px; letter-spacing: -1px; }
.home-page .section-heading > span { font-size: 12px; letter-spacing: 1px; }
.home-page .cards { gap: 16px; }
.home-page .card { display: flex; flex-direction: column; padding: 16px 20px 18px; border-top-width: 2px; }
.home-page .card-top { flex-direction: column; align-items: flex-start; gap: 8px; }
.home-page .card-number { font-size: 12px; letter-spacing: 1px; }
.home-page .badge { font-size: 12px; padding: 1px 8px; }
.home-page .card h3 { font-size: 18px; letter-spacing: -.4px; margin: 16px 0 6px; line-height: 1.25; }
.home-page .card h3 span { font-size: 23px; line-height: 1; }
.home-page .card p { font-size: 16px; line-height: 1.35; min-height: 44px; margin: 0 0 22px; }
.home-page .card-status { margin-top: auto; font-size: 12px; }
.home-page .values { background: transparent; color: var(--navy); border-radius: 0; padding: 20px 0 10px; margin: 0; border-top: 1px solid var(--border); }
.values-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 14px; }
.home-page .values .eyebrow { color: var(--navy); margin-bottom: 5px; }
.home-page .values h2 { font-family: Arial, Helvetica, sans-serif; font-size: clamp(36px,4.5vw,60px); line-height: 1.05; font-weight: 900; letter-spacing: -2.5px; margin: 0; }
.values-heading > p { max-width: 420px; color: var(--muted); font-size: 16px; line-height: 1.45; margin: 0 0 5px; }
.home-page .pillars { gap: 0; padding: 20px 10px; border: 1px solid var(--border); border-radius: 8px; background: #ffffff80; }
.home-page .pillar { display: grid; grid-template-columns: 82px minmax(0,1fr); gap: 20px; padding: 0 20px; border: 0; border-right: 1px solid var(--border); align-items: start; }
.home-page .pillar:last-child { border-right: 0; }
.pillar-icon { display: grid; place-items: center; width: 82px; height: 88px; border-radius: 50%; background: var(--navy); border: 2px solid #f6bb13; color: #ffc52b; }
.pillar-icon svg { width: 50px; height: 50px; fill: currentColor; }
.home-page .pillar h3 { font-size: 18px; letter-spacing: 1.7px; margin: 3px 0 5px; line-height: 1.2; }
.home-page .pillar p { color: var(--muted); font-size: 16px; line-height: 1.3; margin: 0; }
.home-page footer { max-width: 1320px; padding: 10px 52px 14px; font-size: 11px; }
@media(min-width:1100px) {
  .home-page .hero { grid-template-columns: minmax(0,44%) minmax(0,56%); width: calc(100% + 32px); gap: 0; padding: 20px 0 24px; align-items: center; }
  .home-page .hero-copy { padding-right: 20px; }
  .home-page .values { margin-left: -50px; margin-right: -50px; }
  .values-heading { padding: 0 44px; }
  .home-page .pillars { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media(min-width:600px) and (max-width:1099px) {
  .home-page .hero { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); align-items: center; gap: 20px; }
  .home-page .staff { min-height: 420px; border-top-left-radius: 130px; border-top-right-radius: 100px; }
  .hero-baseball { width: 100%; opacity: .65; border-top-left-radius: 130px; }
  .staff-content { width: 100%; padding: 18px; background: linear-gradient(90deg,#081b2e00,#081b2edb 55%); border-radius: inherit; }
  .home-page .staff h2 { font-size: 30px; }
  .home-page .staff-list { margin-left: 0; }
  .home-page .staff-list > div { padding-left: 60px; }
  .staff-icon { width: 48px; height: 48px; }
  .home-page .staff dd { font-size: 20px; }
  .home-page .values-heading { display: block; }
  .values-heading > p { max-width: none; margin-top: 16px; }
  .home-page .pillars { row-gap: 24px; }
  .home-page .pillar:nth-child(2) { border-right: 0; }
}
@media(max-width:599px) {
  .home-page .masthead { padding: 12px 20px; gap: 8px; }
  .home-page .brand { font-size: 23px; gap: 12px; }
  .home-page .brand small { font-size: 9px; letter-spacing: 2px; }
  .home-page .team-logo { width: 56px; height: 56px; flex-basis: 56px; }
  .home-page .header-note { font-size: 12px; width: 100%; padding-left: 68px; }
  .home-page main { padding: 0 20px; }
  .home-page .hero { gap: 24px; padding-top: 26px; }
  .home-page .hero h1 { font-size: clamp(40px,10.5vw,48px); letter-spacing: -1.8px; }
  .home-page .intro { font-size: 16px; margin-top: 18px; }
  .home-page .staff { min-height: 480px; padding-top: 190px; border-radius: 150px 80px 8px 8px; }
  .hero-baseball { width: 100%; height: 230px; object-fit: cover; object-position: center 58%; border-radius: 150px 80px 0 0; mask-image: linear-gradient(black 65%, transparent); }
  .staff-content { width: 100%; padding: 0 20px 12px; }
  .home-page .staff .eyebrow { font-size: 13px; margin-bottom: 4px; }
  .home-page .staff h2 { font-size: 30px; padding-bottom: 8px; }
  .home-page .staff-list { margin: 0; }
  .home-page .staff-list > div { min-height: 68px; padding-left: 62px; }
  .staff-icon { width: 48px; height: 48px; }
  .staff-icon svg { width: 32px; height: 32px; }
  .home-page .staff dd { font-size: 21px; }
  .home-page .staff dt { font-size: 10px; }
  .home-page .section-heading { align-items: start; flex-direction: column; gap: 4px; }
  .home-page .section-heading h2 { font-size: 24px; }
  .home-page .card-top { flex-direction: row; align-items: center; }
  .home-page .card p { min-height: 0; margin-bottom: 18px; }
  .home-page .card h3 { margin-top: 18px; }
  .home-page .values-heading { display: block; }
  .home-page .values h2 { font-size: 38px; letter-spacing: -1.7px; }
  .values-heading > p { margin: 16px 0 0; font-size: 16px; }
  .home-page .pillars { padding: 0 18px; }
  .home-page .pillar { grid-template-columns: 64px minmax(0,1fr); padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--border); gap: 18px; }
  .home-page .pillar:last-child { border-bottom: 0; }
  .pillar-icon { width: 64px; height: 68px; }
  .pillar-icon svg { width: 40px; height: 40px; }
  .home-page footer { padding: 16px 20px; }
}
@media(min-width:760px) and (max-height:500px) {
  .home-page .masthead { padding: 8px 32px; }
  .home-page .team-logo { width: 56px; height: 56px; flex-basis: 56px; }
  .home-page .brand { font-size: 23px; }
  .home-page .brand small { font-size: 9px; letter-spacing: 2px; }
}
.home-page .hero h1 { padding-bottom: .14em; }
.home-page .values h2 { padding-bottom: .1em; }
.values-heading > div { min-width: 0; }
@media(min-width:1100px) and (max-width:1349px) {
  .home-page .values { margin-left: 0; margin-right: 0; }
  .values-heading { padding: 0; }
  .home-page .pillar { grid-template-columns: 60px minmax(0,1fr); gap: 14px; padding: 0 14px; }
  .pillar-icon { width: 60px; height: 66px; }
  .pillar-icon svg { width: 38px; height: 38px; }
  .home-page .pillar h3 { font-size: 16px; letter-spacing: 1px; }
  .home-page .pillar p { font-size: 15px; }
}
/* Final proportions measured against the supplied 1402px-wide render. */
.home-page .masthead { padding-top: 6px; padding-bottom: 6px; }
.home-page .hero h1 em { font-size: 1.03em; font-weight: 400; }
.home-page .intro { margin-top: 10px; }
.home-page .staff { background: linear-gradient(90deg,var(--paper) 0 34%,#081b2e 52%); }
.hero-baseball { border-top-left-radius: 0; }
.home-page .staff h2 { font-weight: 400; font-size: 44px; letter-spacing: -.6px; padding-bottom: 7px; }
.home-page .staff-content { padding-top: 23px; }
.home-page .card { padding-bottom: 16px; }
.home-page .values { padding-top: 16px; }
.home-page .pillars { padding-top: 18px; padding-bottom: 18px; }
.home-page .pillar p { line-height: 1.25; }
.hero-cta svg, .card h3 svg { width: 18px; height: 18px; display: block; }
@media(min-width:600px) and (max-width:1099px) {
  .home-page .hero { grid-template-columns: minmax(0,1fr); }
  .home-page .hero-copy { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); column-gap: 28px; align-items: start; }
  .home-page .hero-copy > .eyebrow { grid-column: 1 / -1; }
  .home-page .hero h1 { grid-column: 1; grid-row: 2 / 4; }
  .home-page .intro { grid-column: 2; grid-row: 2; margin-top: 0; }
  .home-page .hero-cta { grid-column: 2; grid-row: 3; justify-self: start; }
  .home-page .staff { border-radius: 260px 160px 8px 8px; min-height: 420px; }
  .hero-baseball { width: 52%; opacity: 1; border-top-left-radius: 0; }
  .staff-content { width: 49%; padding: 23px 24px 8px 0; background: transparent; }
  .home-page .staff-list { margin-left: 10px; }
  .home-page .staff-list > div { padding-left: 68px; }
  .staff-icon { width: 56px; height: 56px; }
}
@media(max-width:599px) {
  .home-page .masthead { padding-top: 12px; padding-bottom: 12px; }
  .home-page .intro { margin-top: 14px; }
  .home-page .staff { background: linear-gradient(var(--paper) 0 20%,#081b2e 40%); }
  .home-page .staff-content { padding-top: 0; }
  .home-page .staff h2 { font-size: 34px; }
  .home-page .pillars { padding-top: 0; padding-bottom: 0; }
}
@media(min-width:760px) and (max-height:500px) {
  .home-page .masthead { padding-top: 8px; padding-bottom: 8px; }
}
@media(min-width:1100px) {
  .home-page .hero { padding-bottom: 18px; }
  .home-page .hero h1 em { font-size: 1.13em; }
  .home-page .intro { margin-top: 0; }
}
/* Preserve the complete supplied artwork on narrow screens. */
@media(max-width:599px) {
  .home-page .staff { display: block; padding-top: 0; min-height: 0; background: linear-gradient(var(--paper) 0 30%,#081b2e 50%); }
  .hero-baseball { position: relative; inset: auto; display: block; width: 100%; height: auto; object-fit: contain; mask-image: linear-gradient(black 92%,transparent); }
  .home-page .staff-content { margin-top: -4px; }
}
@media(min-width:1100px) and (max-width:1349px) {
  .home-page .hero { width: 100%; }
}

/* Lineup Manager: high-contrast availability and a readable frozen identity column. */
.lineup-grid th:first-child,
.lineup-grid td:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 118px;
  background: var(--paper, #fff);
}
.lineup-grid th:first-child { background: #123047; color: #fff; }
.lineup-grid td:first-child { box-shadow: 5px 0 8px rgba(8,27,46,.10); }
.avail {
  font-weight: 900;
  border: 2px solid #123047;
  box-shadow: 0 1px 2px rgba(8,27,46,.18);
}
.avail.present { background: #176b3a; color: #fff; border-color: #0b4525; }
.avail.absent { background: #8c1d2c; color: #fff; border-color: #57101a; }
.warning summary { cursor: pointer; font-weight: 900; padding: 4px 0; }
.warning[open] summary { margin-bottom: 6px; }
.lineup-instruction { margin: 4px 0 12px; color: var(--muted); font-weight: 700; }
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.section-heading h2 { margin-bottom:4px; }
.section-heading p { margin:0 0 10px; color:var(--muted); }
.batting-editor,.defensive-editor { margin-top:18px; padding:16px; background:white; border:1px solid var(--border); border-radius:8px; }
.batting-row { display:grid; grid-template-columns:34px minmax(0,1fr) 52px; gap:10px; align-items:center; padding:8px 0; border-bottom:1px solid var(--border); }
.batting-row select { width:100%; min-height:44px; }
.batting-row .jersey { font-weight:900; color:var(--navy); text-align:center; }
.primary-action { margin-top:14px; min-height:46px; padding:10px 16px; border:0; border-radius:6px; background:var(--navy); color:#fff; font-weight:900; }
.templates { margin-top:18px; padding:16px; background:white; border:1px solid var(--border); border-radius:8px; }
.template-controls { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.template-controls select { flex:1 1 180px; min-height:44px; padding:8px; font:inherit; }
.template-controls button { min-height:44px; padding:9px 12px; border:0; border-radius:6px; background:var(--soft); color:var(--navy); font-weight:800; }
.availability #availability { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.avail { display:inline-flex; align-items:center; gap:6px; width:auto; min-width:0; margin:0; padding:7px 9px; font-size:.86rem; }
.lineup-grid { min-width:640px; }
.lineup-grid th:first-child, .lineup-grid td:first-child { min-width:118px; width:118px; }
.lineup-grid th:not(:first-child), .lineup-grid td:not(:first-child) { width:92px; min-width:92px; max-width:92px; }
.lineup-grid thead th:not(:first-child) { position:static; }
.lineup-grid thead th select, .lineup-grid thead th button { display:block; width:100%; min-width:0; margin-top:4px; padding:4px 2px; font-size:.78rem; }
.lineup-grid td select { width:76px; min-width:76px; padding:6px 4px; }
.coaches-corner{max-width:1200px;margin:auto}.cc-hero{display:flex;justify-content:space-between;align-items:center;background:#123047;color:#fff;padding:18px;border-bottom:4px solid #f5c242;border-radius:10px}.cc-hero h1{margin:0;color:#f5c242}.cc-logo img{width:54px;height:54px;object-fit:contain}.cc-tabs{display:flex;gap:6px;overflow:auto;margin:14px 0}.cc-tabs button,.inning-bar button,.field-card{border:0;border-radius:7px;padding:10px 12px;font-weight:800;background:#e8e8e1;color:#123047}.cc-tabs button.active,.inning-bar button.active{background:#f5c242}.inning-bar{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:10px 0}.inning-bar span:last-child{margin-left:auto;font-weight:800;color:#68757b}.lineup-grid{min-width:420px;width:100%;table-layout:fixed}.lineup-grid th:first-child,.lineup-grid td:first-child{width:30px;min-width:30px}.lineup-grid th:nth-child(2),.lineup-grid td:nth-child(2){width:76px;min-width:76px}.lineup-grid th:nth-child(3),.lineup-grid td:nth-child(3){width:32px;min-width:32px}.position-cell{width:100%;min-height:42px;border:1px solid #c7d0d2;border-radius:8px;background:#f7faf9;font-weight:800;color:#123047}.field-canvas{min-height:470px;background:radial-gradient(circle at center,#d7efdf 0 30%,#b6d9bf 31% 100%);border:5px solid #123047;border-radius:45% 45% 12px 12px;display:grid;grid-template-columns:repeat(3,1fr);gap:12px;align-content:center;padding:22px}.field-card{min-height:70px;background:#123047;color:#fff;border:2px solid #f5c242;display:flex;flex-direction:column;justify-content:center}.field-card span{font-size:.75rem;color:#f5c242}.bench{padding:12px;background:#eee5fa;border-radius:8px;margin-top:10px}.bench span{display:inline-block;margin:3px;padding:5px;background:#fff;border-radius:5px}.bat-row{display:flex;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid var(--border)}.bat-row b{width:25px}.bat-row select{flex:1;min-height:42px}.avail{padding:9px;margin:4px;border-radius:18px;border:1px solid var(--border)}.avail.present{background:#e1f3e6}.avail.absent{background:#f8e8e5}.picker{position:fixed;inset:0;background:#0008;display:grid;place-items:end center;z-index:20}.picker-card{background:white;color:#123047;width:min(560px,100%);max-height:80vh;overflow:auto;padding:18px;border-radius:18px 18px 0 0}.picker-card button{display:block;width:100%;padding:13px;margin:5px 0;text-align:left;border:1px solid var(--border);border-radius:8px;background:#f7faf9;font-weight:700}.picker-card #closePicker{width:auto;margin-left:auto;font-size:22px}.save-state{margin-left:auto}@media(max-width:600px){.cc-hero h1{font-size:24px}.lineup-shell{padding:0}.field-canvas{min-height:470px;padding:12px}.save-state{width:100%;order:5}}

/* Approved Coaches Corner In-Game composition: compact, portrait-iPad first. */
.coach-shell-header.in-game-header{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,340px);grid-template-areas:"brand tools" "nav tools";column-gap:28px;align-items:center}
.in-game-header .coach-shell-brand{grid-area:brand}
.in-game-header .coach-shell-nav{grid-area:nav}
.in-game-header-tools{grid-area:tools;display:grid;gap:8px;align-self:stretch;align-content:center}
.in-game-header-game{position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;margin:0;padding:0;border:0;background:transparent}
.in-game-header-game label{margin:0;color:#fff;font-size:12px;font-weight:900;letter-spacing:.08em}
.in-game-header-game select{min-width:0;min-height:40px;margin:0;padding:7px 32px 7px 12px;border:1px solid #ffffff99;border-radius:8px;-webkit-appearance:none;appearance:none;background-color:#0a315f!important;color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important;font-size:15px;font-weight:800}
.in-game-header-game::after{content:"";position:absolute;right:13px;top:50%;width:8px;height:8px;border-right:2px solid #fff;border-bottom:2px solid #fff;transform:translateY(-70%) rotate(45deg);pointer-events:none}
.in-game-header-game select option{background-color:#fff;color:#0a2351;-webkit-text-fill-color:#0a2351}
.in-game-header-tools #downloadAudio{min-height:40px;margin:0 0 0 62px;padding:8px 12px;border:2px solid #ffc52f;border-radius:9px;background:transparent;color:#fff;font-size:14px;font-weight:900}
.in-game-header-tools #downloadAudio::before{content:"\2193";display:inline-block;margin-right:9px;color:#fff;font-size:18px;line-height:0}
.in-game-header-tools #downloadAudio:disabled{opacity:.55}
.coach-shell .manager{max-width:1100px;margin:0 auto;padding:10px 0 30px}
.coach-shell .manager-menu{margin:0 0 8px;border:0}
.coach-shell .manager-menu>summary{min-height:40px;padding:8px 2px;font-size:12px;color:var(--muted)}
.coach-shell #managerMessage{min-height:0;margin:3px 0 7px;font-size:12px;color:var(--muted)}
.coach-shell #managerMessage:empty{display:none}
.game-selection{display:flex;align-items:center;gap:10px;margin:0 0 8px;padding:6px 10px;border:1px solid var(--border);border-radius:7px;background:#fff}
.game-selection label{flex:0 0 auto;margin:0;color:var(--navy);font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.game-selection select{min-height:40px;margin:0;padding:6px 9px;background:#f4f5f6;font-size:15px;font-weight:750}
.coach-shell .game-setup{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:10px;padding:10px;margin-bottom:8px}
.coach-shell .game-setup label{margin:0;font-size:13px}
.coach-shell .game-setup input,.coach-shell .game-setup select{min-height:42px;margin-top:3px;padding:7px}
.coach-shell .game-setup button{grid-column:auto;width:auto;min-height:42px;margin:0}
.coach-shell .live-scoreboard{display:grid;grid-template-columns:minmax(0,3fr) minmax(210px,1fr);align-items:stretch;margin:8px 0 10px;padding:12px 14px;border:0;border-radius:9px;background:#0b3158;box-shadow:0 2px 7px #0b2b4f22}
.coach-shell .line-score{margin:0;color:#fff;align-self:center}
.coach-shell .line-score table{table-layout:fixed;background:transparent;color:#fff;font-size:17px;font-weight:800}
.coach-shell .line-score th,.coach-shell .line-score td{height:40px;padding:5px 4px;border-bottom:1px solid #ffffff35;color:#fff}
.coach-shell .line-score thead th{height:32px;color:#b8c7d8;font-size:14px}
.coach-shell .line-score th:first-child{width:25%;padding-left:0;color:#fff;font-size:15px}
.coach-shell .line-score tr[data-score-team="brewers"] th{color:#ffc52f}
.coach-shell .line-score th:last-child,.coach-shell .line-score td:last-child{width:12%;border-left:1px solid #8ea5bc;color:#ffc52f;font-weight:900}
.coach-shell .line-score .current-half{box-shadow:inset 0 -3px #ffc52f;color:#ffc52f}
.coach-shell .score-status{display:flex;flex-direction:column;align-items:center;justify-content:center;margin-left:14px;padding-left:14px;border-left:1px solid #91a8bf;text-align:center}
.coach-shell .score-inning-label{font-size:24px;font-weight:900;line-height:1.1}
.coach-shell .score-outs{margin:10px 0 7px}
.coach-shell .score-out{width:25px;height:25px;flex-basis:25px}
.coach-shell .score-status-line{font-size:14px;font-weight:900;white-space:nowrap}
.coach-shell #halfRunsLabel{display:inline;color:#fff;font-size:inherit}
.coach-shell .score-complete{grid-column:1/-1;margin:8px -14px -12px;padding:7px 12px;border-radius:0 0 9px 9px}
.live-stack{display:grid;gap:10px}
.coach-shell .batter-card,.coach-shell .result-card{padding:15px 18px;border:1px solid var(--border);border-top:7px solid #ffc52f;border-radius:9px;box-shadow:0 2px 7px #0b2b4f10}
.coach-shell .batter-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,.9fr);gap:22px;align-items:stretch}
.coach-shell .batter-info{min-width:0;padding:2px 20px 0 3px;border-right:1px solid var(--border)}
.coach-shell .batter-card .eyebrow,.coach-shell .result-card .eyebrow{margin:0 0 5px;color:var(--navy);font-size:13px;letter-spacing:.12em}
.coach-shell .batter-card h2{margin:0 0 3px;font-size:38px;line-height:1.05;color:var(--navy)}
.coach-shell .current-song{margin:0 0 5px;font-size:18px;line-height:1.25}
.coach-shell .next-batter{margin:4px 0;font-size:16px}
.appearance-note,#audioStatus{min-height:0!important;margin:2px 0 0!important;color:var(--muted);font-size:11px!important;line-height:1.25}
.music-controls{display:grid;grid-template-rows:repeat(3,minmax(44px,1fr));gap:7px}
.coach-shell .music-controls button{min-height:44px;margin:0;font-size:16px;font-weight:900}
.coach-shell .music-controls .secondary{background:#e7e9ec;color:var(--navy)}
.coach-shell .primary-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.coach-shell .primary-results button{min-height:60px;font-size:25px;font-weight:900}
.coach-shell .result-card .adjustments{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:10px 0}
.coach-shell .result-card .adjustments button{min-height:52px;font-size:18px;font-weight:900}
.coach-shell .inning-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding-top:10px;border-top:1px solid var(--border)}
.coach-shell .inning-actions button{min-height:58px;margin:0;font-size:17px;font-weight:900}
.coach-shell #switchHalf{background:#ffc52f;color:var(--navy)}
.coach-shell #switchHalf span{display:block;font-size:10px;line-height:1.2}
.coach-shell #switchHalf:disabled{background:#e7e9ec;color:#74808c}
.coach-shell .manager .undo{background:#ffe7a8;color:var(--navy)}
.coach-shell .manual-controls{margin-top:9px;padding-top:4px}
.coach-shell .manual-controls summary{min-height:38px;padding:7px 0;font-size:12px}
.coach-shell .game-details{margin-top:9px;padding:3px 14px}
.coach-shell .game-details summary{min-height:40px;padding:8px 0;font-size:12px}
@media(max-width:699px){
  .coach-shell-header.in-game-header{grid-template-columns:minmax(0,1fr);grid-template-areas:"brand" "tools" "nav";gap:8px}
  .in-game-header-tools{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center}
  .in-game-header-tools #downloadAudio{height:100%;margin:0}
  .coach-shell .manager{padding-top:6px}
  .coach-shell .game-setup{display:grid;grid-template-columns:1fr}
  .coach-shell .game-setup button{width:100%}
  .coach-shell .live-scoreboard{grid-template-columns:minmax(0,1fr) 118px;padding:8px}
  .coach-shell .line-score table{font-size:12px}
  .coach-shell .line-score th,.coach-shell .line-score td{height:34px;padding:3px 1px}
  .coach-shell .line-score thead th,.coach-shell .line-score th:first-child{font-size:10px}
  .coach-shell .score-status{min-width:0;margin-left:6px;padding-left:6px}
  .coach-shell .score-inning-label{font-size:16px}
  .coach-shell .score-out{width:18px;height:18px;flex-basis:18px}
  .coach-shell .score-status-line{font-size:10px;white-space:normal}
  .coach-shell .batter-card{grid-template-columns:minmax(0,1fr);gap:10px}
  .coach-shell .batter-info{padding:0;border-right:0;border-bottom:1px solid var(--border)}
  .coach-shell .batter-card h2{font-size:31px}
  .coach-shell .current-song{font-size:16px}
  .coach-shell .primary-results{gap:8px}
  .coach-shell .result-card .adjustments{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .coach-shell .inning-actions{grid-template-columns:minmax(0,1fr);gap:8px}
}
