/* Entry first: the same stage order in the DOM, on laptop, and on a phone. */
.is-live-entry .workspace{display:block}
.is-live-entry .team-rail{display:none}
.is-live-entry .main-content{max-width:1380px;margin:auto;padding:22px 28px 60px}
.is-live-entry .live-header{margin-bottom:12px;gap:16px;align-items:center}
.is-live-entry .live-header h1{font-size:26px}
.is-live-entry .live-header .eyebrow{display:none}
.is-live-entry .live-header p{margin:6px 0 0}
.is-live-entry .live-scoreboard{grid-template-columns:repeat(5,minmax(54px,1fr));border-radius:12px}
.is-live-entry .live-scoreboard div{padding:7px 12px}
.is-live-entry .live-scoreboard strong{font-size:22px;margin-top:2px}
.live-duel{display:flex;gap:12px;align-items:center;margin-bottom:10px;min-width:0}
.live-duel>div:not(.live-duel-actions){min-width:0}
.live-duel small,.live-duel strong{display:block}
.live-duel small{color:var(--muted);font-size:10px;margin-bottom:3px}
.live-duel strong{font-size:14px}
.live-duel-actions{display:flex;gap:12px;margin-left:auto}
.live-duel-actions button{min-height:44px;font-size:12px}
.is-live-entry .live-view-toolbar{position:static;margin-bottom:12px;padding:0;gap:8px;flex-direction:row;align-items:center}
.is-live-entry .live-view-switch{padding:2px;border-radius:10px}
.is-live-entry .live-view-switch button{padding:8px 16px}
.is-live-entry .live-view-toolbar>span{font-size:11px}
.is-live-entry .live-grid{grid-template-columns:minmax(0,1fr) 280px;gap:18px}
.is-live-entry #pitch-entry-card,.is-live-entry #pa-finish-card,.is-live-entry #half-transition-card{grid-column:1;grid-row:1;min-width:0;padding:20px;outline-offset:3px}
.is-live-entry .matchup-card{grid-column:2;grid-row:1;padding:16px;min-width:0;background:#fafaf7;box-shadow:none}
.is-live-entry .matchup-card>.eyebrow{font-size:10px;margin-bottom:8px}
.is-live-entry .live-spray-panel{margin:0 0 10px;background:transparent;padding:0;border:0}
.live-history,.optional-play,.fielding-details{border-top:1px solid var(--line);padding-top:10px;margin-top:10px}
.live-history summary,.optional-play summary,.live-spray-panel summary,#next-half-override summary,#next-batter-override summary,#pa-outs-details summary{cursor:pointer;min-height:44px;align-content:center;font-size:12px;font-weight:650;line-height:1.4}
.live-history[open]>summary,.optional-play[open]>summary{margin-bottom:8px}
.is-live-entry .pitch-log-panel{margin-top:18px;padding:16px;background:white;border-radius:14px;border:1px solid var(--line)}
.entry-now{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-bottom:14px;border-bottom:1px solid var(--line);margin-bottom:14px}
.entry-now small,.entry-now strong{display:block}
.entry-now small{font-size:11px;color:var(--muted);margin-bottom:4px}
.entry-now strong{font-family:Oswald,Inter,sans-serif;font-size:22px}
#entry-game-state{margin-top:4px;font-size:10px}
.entry-now>span{font-size:13px;font-weight:750;background:var(--gold-soft);padding:10px;border-radius:10px;white-space:nowrap}
.pitch-input-layout{display:grid;grid-template-columns:minmax(180px,.85fr) minmax(240px,1fr);column-gap:20px;row-gap:8px}
.pitch-location-step{grid-column:1;grid-row:1 / span 2;min-width:0}
.pitch-type-step{grid-column:2;grid-row:1;min-width:0}
.pitch-call-step{grid-column:2;grid-row:2;min-width:0}
.is-live-entry .entry-step{margin:0 0 10px;gap:7px}
.is-live-entry .entry-step>span{height:24px;width:24px;flex-shrink:0}
.is-live-entry .entry-step small{font-size:10px;line-height:1.4}
.is-live-entry .zone-wrap{display:block}
.is-live-entry .zone-wrap>div{min-width:0;max-width:none}
.is-live-entry .zone-wrap p{font-size:10px;margin:0;color:var(--muted);line-height:1.4}
.is-live-entry .strike-zone{width:100%;height:auto;aspect-ratio:1;max-width:300px;flex:none}
.is-live-entry #unknown-location-button{min-height:44px;font-size:11px}
.is-live-entry .pitch-type-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.is-live-entry .pitch-result-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.is-live-entry .pitch-type-grid button,.is-live-entry .pitch-result-grid button{min-height:46px;padding:7px 4px;touch-action:manipulation}
.is-live-entry .pitch-result-grid [data-pitch-call=in_play]{background:var(--gold-soft);border-color:#d6b158}
.is-live-entry .pitch-type-grid button:active,.tap-options button:active{transform:translateY(1px)}
.tap-options{display:flex;gap:7px;flex-wrap:wrap}
.tap-options button{flex:1 0 auto;min-height:44px;padding:9px 12px;border:1px solid #cecec6;background:#fafaf7;color:#080808;border-radius:10px;font-size:12px;font-weight:700;touch-action:manipulation;cursor:pointer}
.tap-options button[aria-pressed=true]{background:#EFB21E;border-color:#080808;box-shadow:inset 0 0 0 1px #080808}
.outcome-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.outcome-options button{padding:10px 6px}
.tap-options button:disabled{opacity:.38;cursor:not-allowed}
.is-live-entry .pa-finish-card h2{font-family:Oswald,Inter,sans-serif;font-size:26px;text-transform:none;margin:4px 0 16px}
.pa-finish-card>.eyebrow{margin:0;font-size:10px}
.pa-finish-card .form-grid{gap:12px}
.play-summary{background:#f5f5ef;border-radius:10px;padding:10px 12px;display:flex;align-items:start;justify-content:space-between;gap:12px}
.play-summary>strong{font-size:13px;padding-top:12px}
#pa-outs-details{max-width:230px;text-align:right}
#pa-outs-details .tap-options{flex-wrap:nowrap}
#pa-outs-details small{font-size:10px;color:var(--muted)}
.quick-label{display:block;margin:10px 0 8px;font-size:12px;font-weight:750}
.quick-label small,.run-entry small{font-weight:400;color:var(--muted);font-size:10px}
.run-entry{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-top:10px}
.run-entry label{font-size:13px;font-weight:700}
.run-entry label small{display:block;margin-top:3px}
.number-stepper{display:flex;gap:4px;align-items:center}
.number-stepper button{height:44px;min-width:44px;border-radius:9px;border:1px solid var(--line);background:#fafaf7;font-size:22px;touch-action:manipulation}
.number-stepper input{width:54px;text-align:center;height:44px;padding:8px;font-size:16px;-moz-appearance:textfield}
.number-stepper input::-webkit-inner-spin-button{appearance:none}
.next-batter-preview{border-top:1px solid var(--line);padding-top:4px}
.next-batter-preview>strong{display:block;font-size:16px}
#next-batter-override summary{font-size:11px;color:var(--muted)}
#next-batter-override small{font-size:11px;color:var(--muted)}
.next-matchup-preview{line-height:1.7;font-weight:650;font-size:15px;padding:12px;background:var(--gold-soft);border-radius:10px}
#complete-pa-button{position:sticky;bottom:8px;z-index:3;min-height:50px;background:#080808;box-shadow:0 0 0 6px white}
#complete-pa-button:disabled{background:#e9e9e4;color:#606060;cursor:not-allowed}
.is-live-entry .form-error{font-size:13px}
@media(max-width:1100px){
  .is-live-entry .live-grid{grid-template-columns:minmax(0,1fr)}
  .is-live-entry .matchup-card{grid-column:1;grid-row:2}
  .is-live-entry .matchup-card .live-spray-panel .spray-history{max-width:350px}
  .pitch-input-layout{grid-template-columns:minmax(190px,.8fr) minmax(240px,1fr)}
}
@media(max-width:760px){
  .topbar{position:sticky;top:0;z-index:20;display:grid;grid-template-columns:42px minmax(0,1fr) 14px;gap:8px;padding:0 10px;height:56px;min-height:56px}
  .brand{gap:0}.brand>span:last-child{display:none}.brand-mark{width:40px;height:32px;padding:3px}
  .primary-nav{display:flex;justify-content:center;min-width:0;height:56px;gap:0}
  .nav-item{min-width:0;flex:1;padding:0 7px;font-size:11px;min-height:44px}
  .save-state{padding:0;border:0;background:transparent}.save-state #connection-label{display:none}
  .is-live-entry .main-content{padding:12px 10px 40px}
  .is-live-entry .live-header{flex-direction:column;align-items:stretch;gap:10px;margin-bottom:8px}
  .is-live-entry .live-header h1{font-size:20px}
  .is-live-entry .live-header p{font-size:11px;margin-top:4px}
  .is-live-entry .live-scoreboard div{padding:5px 8px}
  .is-live-entry .live-scoreboard strong{font-size:19px}
  .is-live-entry .live-scoreboard span{font-size:8px}
  .live-duel{gap:8px;flex-wrap:wrap}
  .live-duel strong{font-size:12px}
  .live-duel-actions{gap:8px}.live-duel-actions button{font-size:10px;padding:0}
  .is-live-entry .live-view-toolbar>span{display:none}
  .is-live-entry .live-view-switch button{padding:6px 14px;font-size:12px}
  .is-live-entry #pitch-entry-card,.is-live-entry #pa-finish-card,.is-live-entry #half-transition-card{padding:12px;border-radius:14px}
  .entry-now{padding-bottom:10px;margin-bottom:12px}.entry-now strong{font-size:20px}.entry-now small{font-size:10px}.entry-now>span{font-size:11px;padding:9px 7px}
  .pitch-input-layout{grid-template-columns:minmax(0,1fr) minmax(0,.94fr);gap:12px}
  .pitch-location-step{grid-column:1;grid-row:1}
  .pitch-type-step{grid-column:2;grid-row:1}
  .pitch-call-step{grid-column:1 / -1;grid-row:2}
  .is-live-entry .pitch-type-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .is-live-entry .pitch-result-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .is-live-entry .pitch-type-grid button,.is-live-entry .pitch-result-grid button{min-height:44px;font-size:11px}
  .is-live-entry .entry-step{margin-bottom:8px}
  .is-live-entry .entry-step strong{font-size:12px}.is-live-entry .entry-step small{font-size:9px}
  .is-live-entry .outside-label{font-size:9px}.is-live-entry .outside-label.left{left:3%}.is-live-entry .outside-label.right{right:2%}
  .outcome-options{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.outcome-options button{font-size:11px;padding:8px 3px}
  .tap-options{gap:6px}.tap-options button{padding:9px 7px;font-size:11px}
  .play-summary{padding:8px}.play-summary>strong{font-size:12px}
  .is-live-entry .pa-finish-card h2{font-size:24px;margin-bottom:12px}
  #complete-pa-button{font-size:12px;bottom:calc(8px + env(safe-area-inset-bottom));white-space:normal;line-height:1.5}
  #pa-finish-card .field input,#pa-finish-card .field select,#next-half-form select{font-size:16px}
}
@media(prefers-reduced-motion:reduce){.tap-options button:active,.is-live-entry .pitch-type-grid button:active{transform:none}}
.bip-step-nav{display:flex;gap:5px;margin:0 0 16px;flex-wrap:wrap}
.bip-step-nav button{min-height:44px;flex:1;padding:6px;border:1px solid var(--line);border-radius:9px;background:#fafaf7;font-size:11px;white-space:nowrap}
.bip-step-nav button[aria-current=step]{background:var(--gold);border-color:var(--ink);font-weight:750}
.bip-step-nav button:disabled{opacity:1;color:#777;background:#f5f5ef}
.bip-pane{min-width:0}
.bip-hint{font-size:12px;color:var(--muted);line-height:1.5;margin:4px 0 14px}
.bip-step-actions{display:flex;gap:10px;position:sticky;bottom:8px;background:white;padding-top:10px;z-index:3}
.pa-finish-card .bip-step-actions .primary-button{margin:0;flex:1;width:auto;min-height:46px}
.bip-step-actions .secondary-button{min-height:46px}
#pa-fielding-input .fielding-map{max-width:300px;margin:auto}
#pa-fielding-input .fielding-entry>p:first-child,#pa-fielding-input .fielding-entry>.dialog-copy{display:none}
#pa-fielding-field{border:0;padding:0;margin:0}
#pa-spray-step .spray-input{max-width:320px;margin:auto}
#pa-review-step .play-summary{margin-bottom:14px}
#batting-order-dialog{max-width:620px;width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;padding:24px}
#batting-order-slots{list-style:none;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:7px}
#batting-order-slots li{display:flex;align-items:center;gap:7px;background:#f5f5ef;border-radius:8px;padding:6px;min-height:44px;font-size:12px}
#batting-order-slots li b{background:#080808;color:white;border-radius:50%;height:24px;width:24px;display:grid;place-items:center;flex-shrink:0}
#batting-order-slots li span{flex:1}#batting-order-slots li button{min-height:36px;min-width:36px;border:0;background:transparent;font-size:22px}
#batting-order-slots small{color:var(--muted);font-size:10px}
#batting-order-players{margin:14px 0}
.sync-entry{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #ddd;padding:14px 0}.sync-entry div{display:grid;gap:5px}.sync-entry small{color:var(--muted);font-size:11px}#organisation-sync-dialog{max-width:700px;width:calc(100% - 24px)}
.velocity-entry{display:flex;align-items:end;gap:8px;margin-top:10px}.velocity-entry .field{min-width:0;flex:1}.velocity-entry input{max-width:150px;min-height:44px}.velocity-units{display:flex;gap:4px}.velocity-units button{min-height:44px;min-width:48px;border:1px solid #ccc;background:white;border-radius:6px}.velocity-units button[aria-pressed="true"]{background:var(--gold,#EFB21E);border-color:#080808}.assignment-pa{display:flex;align-items:center;gap:10px;border-bottom:1px solid #ddd;padding:10px 0;min-height:48px}.assignment-pa input{width:22px;height:22px}.assignment-pa span{display:grid;gap:3px}.assignment-pa small{font-size:12px;color:var(--muted)}#assignment-pas{max-height:36vh;overflow:auto;margin:12px 0}#hitter-assignment-dialog,#quick-start-dialog{max-width:620px;width:calc(100% - 24px)}#quick-start-dialog .choice-field{display:grid;gap:12px;margin:16px 0}#quick-start-dialog .choice-field label{font-size:13px;display:flex;align-items:center;gap:8px;min-height:44px}#assignment-players{margin:12px 0}.velocity-entry+p{font-size:11px;margin:4px 0}
@media(max-width:760px){.outcome-options button{min-height:48px}.bip-step-nav{gap:4px}.bip-step-nav button{font-size:10px;padding:6px 3px}#batting-order-dialog{padding:14px}#batting-order-slots{grid-template-columns:1fr}#pa-fielding-input .fielding-map{max-width:260px;margin:6px auto 10px}#pa-fielding-input .fielding-actions{flex-wrap:nowrap;gap:6px}#pa-fielding-input .fielding-actions output{min-width:0;flex:1;font-size:20px}#pa-fielding-input .fielding-actions button{font-size:10px;padding:7px;white-space:nowrap}#pa-spray-step .spray-input{max-width:260px}#pa-spray-status{font-size:11px;margin:3px 0}.bip-hint{font-size:11px;margin-bottom:8px}}
@media(max-height:500px) and (min-width:600px){
  .is-live-entry .topbar{height:56px;min-height:56px}
  .is-live-entry .primary-nav{height:56px}
  .is-live-entry .brand small{display:none}
  .is-live-entry .brand-mark{height:32px;width:44px}
  .is-live-entry #pitch-entry-card{padding:10px 16px}
  .is-live-entry .entry-now{padding-bottom:8px;margin-bottom:8px}
  .is-live-entry .entry-now strong{font-size:18px}
  .is-live-entry .pitch-input-layout{grid-template-columns:180px minmax(0,1fr);gap:8px 16px}
  .is-live-entry .pitch-location-step{grid-column:1;grid-row:1 / span 2}
  .is-live-entry .pitch-type-step{grid-column:2;grid-row:1}
  .is-live-entry .pitch-call-step{grid-column:2;grid-row:2}
  .is-live-entry .strike-zone{max-width:155px}
  .is-live-entry .zone-wrap p,.is-live-entry .entry-step small{display:none}
  .is-live-entry .entry-step{margin-bottom:6px}
  .is-live-entry .pitch-type-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
  .is-live-entry .pitch-result-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .is-live-entry .pitch-type-grid button,.is-live-entry .pitch-result-grid button{min-height:44px}
}
@media(max-width:760px){.velocity-entry{gap:4px}.velocity-entry .field>span{white-space:nowrap;font-size:10px}.velocity-entry input{width:100%;padding:8px 3px}.velocity-units{gap:3px}.velocity-units button{min-width:38px;padding:6px 3px;font-size:12px}}
.velocity-units button[aria-pressed="true"]{background:var(--gold,#EFB21E)}
