.rally-app .topbar nav{margin-left:auto;display:flex;gap:18px;align-items:center}.topbar nav a,footer a{color:#73886b;font-size:11px;text-decoration:none}.rally-app .workspace{grid-template-columns:310px minmax(0,1fr)}.rally-app .controls{padding-left:25px;padding-right:25px}.player-tabs{gap:0;justify-content:space-between;margin-bottom:20px}.player-tabs button{font-size:11px}.player-tabs i{display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:4px;background:#d9f36c}.player-tabs .b-tab i{background:#f4ac76}.player-tabs .b-tab.active{color:#f4ac76;border-color:#f4ac76}.control-context{display:flex;flex-direction:column;gap:7px;margin-bottom:19px}.control-context strong{font-size:9px;letter-spacing:1.2px;color:#c4d5b8}.control-context span{font-size:10px;color:#85a28a}.settings-switch{display:flex;gap:4px;background:#0d3027;border-radius:6px;padding:4px;margin-bottom:20px}.settings-switch button{flex:1;border:0;background:transparent;color:#91af92;border-radius:4px;padding:8px;font-size:10px}.settings-switch button.active{background:#365c44;color:#e3edcf}fieldset{border:0;padding:0;margin:0;min-width:0}.rally-app .group-label{margin-top:18px}.edit-note{font-size:10px;line-height:1.7;color:#adc29f;border-left:2px solid #86a44a;padding-left:11px;margin-top:18px}#controlLock{padding:12px;border:1px solid #759164;border-radius:6px;margin-bottom:16px;background:#264b37}#controlLock p{font-size:11px;line-height:1.6;color:#c8d8b8}#controlLock button{background:transparent;border:0;color:#dcf19b;padding:10px 0 0;font-size:11px;text-decoration:underline}fieldset:disabled{opacity:.45}.head-actions{display:flex;gap:8px}.rally-app .preset-row{margin-top:25px}.rally-score{display:flex;align-items:center;justify-content:space-between;padding:7px 24px 12px;gap:10px;border-bottom:1px solid #325441;color:#bed0ad}.rally-score>div{display:flex;align-items:center;gap:10px}.rally-score strong{font-size:10px;font-weight:500}.rally-score>div>span:not(.player-letter){font-size:10px;color:#8ea788}.player-letter{width:29px;height:29px;border-radius:7px;display:inline-grid;place-items:center;font-weight:600;font-size:12px;flex:none}.player-a{background:#d9f36c;color:#2b4c26}.player-b{background:#f4ac76;color:#573b25}.rally-counter{gap:6px!important;color:#e1eccb}.rally-counter b{font:500 16px 'Manrope',sans-serif;letter-spacing:-.3px}.rally-counter span{font-size:7px!important;letter-spacing:1.2px}.rally-counter i{font-style:normal;color:#5f7f5e;margin:0 6px}.rally-app .canvas-wrap{height:370px}.rally-app .court-note{top:13px;font-size:8px}.rally-app .court-telemetry{top:13px}.dot-key.a{background:#d9f36c}.rally-app .playback{gap:12px}.next-btn{border:1px solid #456147;border-radius:5px;background:#244a37;color:#d6e8b9;font-size:10px;padding:8px 12px;white-space:nowrap}.next-btn:hover{background:#355f42}button:disabled{cursor:default;opacity:.45}.incident-banner{display:flex;align-items:center;gap:15px;padding:22px 0;border-bottom:1px solid var(--line)}.incident-symbol{width:39px;height:39px;background:#e7edcb;color:#5d7c37;display:grid;place-items:center;font-size:22px;border-radius:50%;flex:none}.incident-copy{flex:1}.incident-copy .eyebrow{color:#7c9366;font-size:8px;letter-spacing:1.4px}.incident-copy h3{font-size:18px;margin:4px 0 6px}.incident-copy p{font-size:10px;line-height:1.7;color:#839075;max-width:600px}.pause-setting{display:flex;flex-direction:column;align-items:flex-end;gap:8px}.pause-setting label{font-size:9px;color:#7e8d71}.pause-setting select{font-size:10px;background:#eff2e6;border:1px solid #d5ddc9;border-radius:5px;color:#60784b;padding:8px;max-width:165px}.history-section{padding:26px 0}.history-helper{font-size:10px;color:#87977a;line-height:1.7;margin:10px 0 17px}.event-log{display:flex;gap:9px;overflow:auto;padding:3px 2px 10px;scrollbar-width:thin;scrollbar-color:#bdc9ad transparent}.event-tile{flex:none;display:flex;flex-direction:column;align-items:flex-start;gap:6px;background:#eff2e6;border:1px solid #dbe2cf;border-radius:7px;min-width:123px;padding:12px;color:#698257;text-align:left}.event-tile.active{border-color:#7c9a51;background:#e6edcf;box-shadow:0 0 0 2px #94ac6125}.event-tile.future{opacity:.5}.event-tile.terminal{border-color:#d8b18d}.event-tile small{font-size:7px;letter-spacing:1px;color:#8b997b}.event-tile strong{font-size:11px;font-weight:500}.event-tile span{font-size:9px;color:#92a07e}.athlete-stats{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:24px}.athlete-card{border:1px solid #dce2d1;border-radius:8px;padding:20px;background:#f4f6ed}.athlete-card header{display:flex;gap:10px;align-items:center}.athlete-card header>div{display:flex;flex-direction:column;gap:4px}.athlete-card h3{font-size:15px}.athlete-card header>div>span{font-size:7px;letter-spacing:1.2px;color:#91a07e}.athlete-card header .quiet{margin-left:auto;font-size:9px;color:#779163}.athlete-measures{display:flex;justify-content:space-between;gap:12px;margin:22px 0 17px}.athlete-measures>div{display:flex;flex-direction:column;gap:7px}.athlete-measures span{font-size:8px;color:#899878}.athlete-measures strong{font-size:12px;font-weight:500;white-space:nowrap}.athlete-bottom{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #dfe5d5;padding-top:13px;font-size:8px;color:#8b987d}.athlete-bottom b{color:#5e7c47;font-weight:500;margin-left:4px}.b-card .athlete-bottom b{color:#a7784b}.rally-app .analysis-grid{grid-template-columns:1.2fr 1fr}.rally-app .insight-card>p{font-size:11px;line-height:1.75;margin-top:17px}.next-summary{display:grid;grid-template-columns:1fr auto;gap:8px;margin:18px 0;font-size:10px;color:#8a997b}.next-summary strong{color:#5f7b4b;font-weight:500}.rally-app .insight-card .primary{width:100%;background:#254b35;color:#eaf2d7}.rally-app .compare-section{padding-top:25px}.rally-app footer a{margin-left:auto;font-size:9px}.rally-app .chart-card #profile{height:166px}.rally-app .control-foot{margin-top:23px}.error-note{color:#b16033!important}.initial-note{background:#254e38;border:1px solid #426c4c;border-radius:5px;padding:10px;font-size:10px;color:#afc5a0;margin-bottom:20px;line-height:1.6}.rally-app .number-inline{font-size:10px;background:#214b37;border:1px solid #4b6b48;color:#d9eea8;padding:6px;width:55px;border-radius:3px}.setup-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;font-size:11px;color:#bdd2b5}.mode-caption{font-size:9px;color:#829876;margin-top:12px}.rally-app #toast{max-width:calc(100vw - 30px);text-align:center;min-width:220px}.rally-app #saveDialog p{font-size:11px}.rally-app .topbar nav .quiet{font-size:11px}.rally-app .status-badge{max-width:250px}@media(min-width:1600px){.rally-app .canvas-wrap{height:450px}}@media(max-width:1250px){.rally-app .workspace{grid-template-columns:275px minmax(0,1fr)}.rally-app .controls{padding-left:22px;padding-right:22px}.rally-app .canvas-wrap{height:340px}.rally-app .page-head h2{font-size:24px}.rally-app .head-actions .outline{padding:9px 10px;font-size:10px}.rally-score{padding-left:17px;padding-right:17px}.rally-counter b{font-size:14px}.athlete-card{padding:17px}.athlete-measures{gap:6px}.athlete-measures strong{font-size:11px}.athlete-stats{gap:14px}}@media(max-width:1000px){.rally-app .workspace{grid-template-columns:245px minmax(0,1fr)}.rally-app .controls{padding-left:18px;padding-right:18px}.rally-app h1{font-size:26px}.rally-app .page-head{align-items:flex-start}.rally-app .head-actions{flex-direction:column;gap:6px}.rally-score strong{display:none}.rally-score>div{gap:6px}.rally-app .court-note{top:30px;font-size:7px}.rally-app .court-telemetry{left:16px;top:10px}.rally-app .canvas-wrap{height:320px}.rally-app .incident-banner{flex-wrap:wrap}.pause-setting{flex-direction:row;align-items:center;width:100%;padding-left:54px;justify-content:space-between}.athlete-stats,.rally-app .analysis-grid{grid-template-columns:1fr}.rally-app .playback{gap:9px}.next-btn{font-size:8px;padding:7px 9px}.rally-app .time-readout{width:63px;font-size:8px}.rally-app .rally-counter i{margin:0 2px}}@media(max-width:720px){.rally-app .workspace{display:flex}.rally-app .topbar nav{gap:8px}.rally-app .topbar nav>a{display:none}.rally-app .topbar nav .quiet{font-size:9px}.rally-app .controls{order:3;padding:25px 22px}.rally-app .controls h1{font-size:24px}.rally-app h1 br:after{content:' '}.rally-app .page-head{order:0;padding-top:23px}.rally-app .head-actions{flex-direction:row}.rally-app .head-actions .outline{font-size:8px;padding:9px}.rally-app .page-head h2{font-size:21px;max-width:220px}.rally-app .page-head .edition{display:none}.rally-app .preset-row{order:0}.rally-app .court-panel{order:1;margin-bottom:0}.rally-app .rally-score{padding-top:5px;padding-bottom:10px}.rally-app .canvas-wrap{height:300px}.rally-score>.rally-counter b{font-size:13px}.rally-score>.rally-counter span{font-size:6px!important}.rally-score>div>span:not(.player-letter){font-size:8px}.rally-app .court-note{font-size:6px}.rally-app .court-telemetry{font-size:7px}.rally-app .playback{padding:0 12px;gap:8px}.rally-app .play-btn{width:28px;height:28px}.rally-app .time-readout{width:60px}.rally-app .next-btn{padding:7px;font-size:8px}.rally-app .playback select{padding:5px 3px;font-size:8px}.rally-app .incident-banner{order:1;margin:0 20px 0;padding:21px 0;gap:12px}.incident-copy h3{font-size:17px}.incident-copy p{font-size:10px}.pause-setting{padding-left:0;gap:12px}.rally-app .history-section{order:2;padding:23px 20px}.history-helper{font-size:10px}.event-tile{min-width:115px}.rally-app .controls #controlsContent{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}.rally-app .controls .helper,.rally-app .controls .group-label,.rally-app .controls .surface-options,.initial-note{grid-column:1/-1}.settings-switch{max-width:280px}.player-tabs{max-width:360px}.control-context{margin-top:5px}.rally-app .athlete-stats{order:4;margin:23px 16px 0;display:grid;grid-template-columns:1fr}.rally-app .athlete-card{padding:20px}.rally-app .athlete-measures strong{font-size:13px}.rally-app .analysis-grid{order:5;padding-top:22px}.rally-app .compare-section{order:6}.rally-app .saved-section{order:7}.rally-app footer{order:8}.rally-app .history-section .section-title{align-items:flex-start}.rally-app .history-section h3{font-size:16px}.rally-app .small-pill{font-size:7px}.rally-app .status-badge{font-size:8px}.rally-app .court-key{font-size:7px}.rally-app .incident-symbol{width:32px;height:32px}.rally-app .control-foot{margin-top:20px}.rally-app .control-context strong{font-size:10px}.rally-app .edit-note{font-size:11px}}

/* Contact and movement decision workbench. */
.choice-control{display:flex;flex-direction:column;gap:8px;margin:18px 0;color:#c4d5b8;font-size:11px;grid-column:1/-1}.choice-control select{width:100%;min-width:0;background:#214b37;border:1px solid #5c7950;border-radius:5px;padding:10px;color:#e3edcf;font-size:11px}.place-button{width:100%;grid-column:1/-1;background:#365c44;border:1px solid #6f8f50;color:#e3edcf;padding:11px;border-radius:5px;margin:12px 0;font-size:11px}.settings-switch button{padding:8px 5px}.contact-panel{margin-top:25px;padding:24px;border:1px solid #d3ddc5;border-radius:10px;background:#f3f6eb}.contact-panel h3{font-size:23px;margin-top:6px}.contact-note{font-size:11px;line-height:1.7;color:#7b8b6d;margin:13px 0 20px;max-width:800px}.limits-toggle{display:flex;align-items:center;gap:7px;color:#647b50;font-size:10px}.limits-toggle input{accent-color:#567539}.contact-grid{display:grid;grid-template-columns:1fr 1.1fr;gap:26px}.angle-card{min-width:0}.ready-row{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#869476}.ready-row strong{font-size:18px;color:#476b35;font-weight:500}.angle-card canvas{display:block;width:100%;height:180px;margin-top:12px}.angle-card>p{font-size:11px;color:#5e774c;margin-top:8px}.angle-card>small{display:block;font-size:10px;color:#889774;margin-top:7px}.map-key{display:flex;flex-wrap:wrap;gap:10px;color:#8b9a7a;font-size:8px;margin-top:12px}.stroke-readout{display:flex;flex-direction:column;align-items:flex-start;gap:9px;min-width:0}.stroke-readout>strong{font-size:16px;font-weight:500;line-height:1.5;color:#3e6034}.stroke-readout>span:not(.eyebrow){font-size:11px;color:#7b8d66}.stroke-readout dl{display:grid;grid-template-columns:auto 1fr;gap:8px 16px;margin:5px 0 0;font-size:10px;line-height:1.5}.stroke-readout dt{color:#8b997a}.stroke-readout dd{margin:0;color:#526e42}.stroke-readout .preview-caption{font-size:9px;color:#9aa48b}.stroke-readout #limitNote{font-size:10px;line-height:1.65;color:#8c704f;min-height:30px}.shot-choices{display:flex;gap:6px;flex-wrap:wrap}.shot-choices button{border:1px solid #c2d0ac;border-radius:20px;background:#e8efda;color:#5a7646;padding:7px 13px;font-size:10px}.shot-choices button:hover{background:#dae6c3}.stroke-readout>.outline{font-size:10px;padding:9px 12px}.opening-prep{display:flex;justify-content:space-between;gap:16px;align-items:center;font-size:10px;line-height:1.6;color:#758665;border-top:1px solid #dce4d0;width:100%;padding-top:12px}.opening-prep input{width:64px;border:1px solid #bacba4;border-radius:4px;padding:5px;background:#fafcf5;color:#4f6d3a}.opening-prep span{white-space:nowrap}.movement-forecast{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #dce4d0;padding-top:17px;margin-top:22px}.movement-forecast p{font-size:11px;line-height:1.7;color:#7c8f68}.movement-forecast button{font-size:10px;padding:10px 12px;flex:none}.rally-app .playback{flex-wrap:wrap;min-height:63px;height:auto;padding-top:12px;padding-bottom:12px}.rally-app .playback #timeline{min-width:75px}.rally-app .playback #directBtn{border-color:#a5ba72;color:#e6f3bd}.rally-app .page-head h2{font-size:27px}.rally-app .status-badge{pointer-events:none}#angleMap{cursor:crosshair}.canvas-wrap:has(canvas.commanding){outline:2px solid #d9f36c}#court.commanding{cursor:crosshair}
@media(max-width:1100px){.contact-grid{gap:18px;grid-template-columns:1fr}.contact-panel .section-title{gap:12px;align-items:flex-start}.contact-panel h3{font-size:21px}.limits-toggle{max-width:125px;line-height:1.6}.movement-forecast{align-items:flex-start;flex-direction:column}.rally-app .playback #timeline{flex-basis:25%}.rally-app .page-head h2{font-size:24px}}
@media(max-width:720px){.rally-app .contact-panel{order:2;margin:20px 16px 0;padding:20px}.contact-grid{grid-template-columns:1fr}.contact-panel .section-title{flex-wrap:wrap}.limits-toggle{max-width:none}.angle-card canvas{height:195px}.stroke-readout>strong{font-size:15px}.rally-app .playback{min-height:80px}.rally-app .playback #timeline{flex:1}.rally-app .playback #directBtn{margin-left:auto}.rally-app .controls .choice-control,.rally-app .controls .place-button{grid-column:1/-1}.rally-app .page-head h2{font-size:21px}}
.preparation-live{display:flex;justify-content:space-between;gap:10px;margin-top:12px;font-size:9px;color:#889979}.preparation-live b{font-weight:500;color:#526f3e}

/* Keep the shot choices, court and live controls in one shared work area. */
.rally-app .workspace{display:block;min-height:calc(100vh - 82px)}
.rally-app main{display:block;max-width:1520px;padding:25px 28px 0}
.rally-app .page-head{padding:0}
.rally-app .preset-row{margin:18px 0 16px}
.simulator-stage{display:grid;grid-template-columns:280px minmax(0,1fr);gap:16px;height:clamp(710px,calc(100svh - 28px),800px);min-width:0;scroll-margin-top:12px}
.simulator-stage .controls{min-height:0;height:100%;min-width:0;order:0;padding:16px 18px 12px;border:1px solid #295244;border-radius:10px;display:flex;flex-direction:column;overflow:hidden}
.simulator-stage .controls>h1,.simulator-stage .controls>.intro,.simulator-stage .controls>.eyebrow,.simulator-stage .edit-note{display:none}
.simulator-stage .player-tabs{flex:none;max-width:none;margin:0 0 12px;gap:8px}
.simulator-stage .player-tabs button{font-size:12px;padding:5px 0 10px}
.simulator-stage .control-context{flex:none;gap:4px;margin:0 0 11px}
.simulator-stage .control-context strong{font-size:10px;letter-spacing:.6px}
.simulator-stage .control-context span{font-size:11px;line-height:1.4}
.simulator-stage .settings-switch{flex:none;max-width:none;margin:0 0 12px;padding:3px}
.simulator-stage .settings-switch button{font-size:11px;min-height:34px;padding:6px 3px}
.simulator-stage #controlLock{flex:none;margin:0 0 10px;padding:9px}
.simulator-stage #controlLock p{font-size:11px;line-height:1.4}
.simulator-stage #controlLock button{font-size:11px;padding-top:6px}
.simulator-stage #controlsFieldset{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:2px 7px 4px 2px;scrollbar-width:thin;scrollbar-color:#779562 #163c31;scroll-padding-block:10px}
.simulator-stage #controlsContent{display:block}
.simulator-stage .slider-control{margin-bottom:18px}
.simulator-stage .label-row{margin-bottom:5px;gap:8px}
.simulator-stage .label-row label{font-size:12px;line-height:1.4}
.simulator-stage .value-wrap input{font-size:12px}
.simulator-stage .value-wrap span{font-size:10px}
.simulator-stage .range-bounds{font-size:10px;margin-top:4px}
.simulator-stage input[type=range]{margin:9px 0}
.simulator-stage .group-label{font-size:10px;margin:15px 0 13px;letter-spacing:1px}
.simulator-stage .helper{font-size:11px;line-height:1.55;margin:8px 0 16px}
.simulator-stage .choice-control{font-size:12px;margin:7px 0 16px;gap:7px}
.simulator-stage .choice-control select{font-size:12px;min-height:37px;padding:8px}
.simulator-stage .place-button{font-size:12px;margin:5px 0 13px}
.simulator-stage .control-foot{flex:none;margin-top:9px;padding-top:10px;font-size:10px;gap:5px}
.simulator-stage .control-foot button{font-size:11px;line-height:1.4}
.simulator-view{display:grid;grid-template-rows:minmax(0,1fr) auto auto;gap:10px;min-width:0;min-height:0}
.simulator-stage .court-panel{display:flex;flex-direction:column;min-width:0;min-height:0;margin:0}
.simulator-stage .court-toolbar{flex:none;height:46px;padding:0 18px}
.simulator-stage .rally-score{flex:none;padding:2px 18px 9px;min-height:38px}
.simulator-stage .canvas-wrap{flex:1;height:auto;min-height:230px}
.simulator-stage .court-note{font-size:9px;top:10px;left:18px;max-width:70%;line-height:1.5}
.simulator-stage .court-telemetry{font-size:9px;top:10px;left:auto;right:18px}
.simulator-stage .court-key{font-size:9px;left:18px;bottom:12px}
.simulator-stage .status-badge{font-size:10px;right:16px;bottom:10px;max-width:55%;line-height:1.4}
.simulator-stage .playback{flex:none;min-height:58px;padding:10px 16px;gap:10px}
.simulator-stage .playback .next-btn{font-size:11px;padding:7px 9px}
.simulator-stage .playback select{font-size:11px;padding:5px}
.simulator-stage .time-readout{font-size:10px;width:78px}
.simulator-stage .playback #timeline{min-width:50px;flex-basis:0}
.court-action-bar{flex:none;display:flex;align-items:center;gap:7px;padding:10px 16px;border-top:1px solid #345843;background:#1c4435;color:#dcebc6;flex-wrap:wrap}
.court-action-bar>div{flex:1;min-width:155px}
.court-action-bar #courtStep{font-size:11px;font-weight:650;letter-spacing:.3px;color:#e1f598}
.court-action-bar p{font-size:11px;line-height:1.45;color:#b2c5a6;margin-top:3px;max-width:440px}
.court-action-bar button{border:1px solid #70875b;background:#2d533b;border-radius:5px;color:#e6f0d4;padding:9px 10px;font-size:11px;white-space:nowrap}
.court-action-bar button:hover{background:#406645}
.court-action-bar button[aria-pressed=true],.court-action-bar button.active{background:#d9f36c;border-color:#d9f36c;color:#21472c}
.court-action-bar #autoMovementBtn{background:transparent;border-color:#4e7050;color:#bdcfac}
.trajectory-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;min-width:0}
.trajectory-list:empty{display:none}
.trajectory-choice{position:relative;min-width:0;display:grid;grid-template-columns:21px minmax(0,1fr);align-content:center;align-items:center;gap:4px 7px;padding:10px 9px;border:1px solid #c7d3b7;border-radius:7px;background:#f2f5e9;color:#49653b;text-align:left;min-height:66px}
.trajectory-choice .path-number{display:grid;place-items:center;grid-row:1/3;width:21px;height:21px;border-radius:50%;background:#dfe8cc;color:#45612f;font-size:11px;font-weight:650}
.trajectory-choice strong{font-size:11px;font-weight:600;line-height:1.3;overflow-wrap:anywhere}
.trajectory-choice small{font-size:10px;line-height:1.3;color:#78866c}
.trajectory-choice:hover{background:#e9efd9}
.trajectory-choice[aria-pressed=true]{background:#e4edcd;border-color:#638139;box-shadow:inset 0 0 0 1px #638139}
.trajectory-choice[aria-pressed=true] .path-number{background:#557934;color:#fff}
.preparation-panel{border:1px solid #d4dec7;background:#eff3e5;border-radius:8px;padding:12px 15px;min-width:0}
.preparation-panel>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.preparation-panel>header span{font-size:11px;color:#70835c}
.preparation-panel>header strong{font-size:12px;font-weight:600;color:#3d6232;line-height:1.4}
.prep-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.prep-metrics>div{min-width:0;display:flex;flex-direction:column;gap:5px;border-left:1px solid #d0dcc1;padding-left:11px}
.prep-metrics>div:first-child{border:0;padding-left:0}
.prep-metrics span{font-size:10px;line-height:1.3;color:#7b896c}
.prep-metrics strong{font:600 19px 'Manrope',sans-serif;letter-spacing:-.5px;color:#365b2f;line-height:1.2}
.prep-timeline{display:flex;gap:3px;min-height:5px;height:5px;overflow:hidden;border-radius:5px;background:#dce5d0;margin-top:10px}
.prep-timeline>span{display:block;min-width:0;height:100%;background:#b4c98c}
.prep-timeline .run,.prep-timeline [data-phase=run]{background:#d4a178}
.prep-timeline .wait,.prep-timeline [data-phase=wait]{background:#a7ba86}
.prep-timeline .setup,.prep-timeline [data-phase=setup]{background:#678b48}
.preparation-panel>p{font-size:11px;color:#718362;line-height:1.45;margin-top:7px}
@media(min-width:1250px){.simulator-stage{grid-template-columns:300px minmax(0,1fr);gap:20px}.simulator-stage .controls{padding-left:20px;padding-right:20px}.simulator-stage .canvas-wrap{min-height:260px}}
@media(min-width:821px) and (max-width:1100px){.rally-app main{padding:22px 18px 0}.simulator-stage{grid-template-columns:260px minmax(0,1fr);gap:12px;height:780px}.court-action-bar>div{flex-basis:100%}.court-action-bar{padding:8px 12px}.simulator-stage .playback{gap:8px;padding:8px 12px}.simulator-stage .playback #timeline{flex-basis:30%}.trajectory-list{grid-template-columns:repeat(2,minmax(0,1fr))}.trajectory-choice{min-height:49px;padding:7px 9px}.simulator-stage .court-note{max-width:65%;font-size:8px}.simulator-stage .court-telemetry{font-size:8px}}
@media(max-width:820px){
 .rally-app main{display:block;padding:18px 14px 0}
 .rally-app .page-head{padding:0;gap:12px}
 .rally-app .page-head h2{font-size:22px;max-width:330px}
 .rally-app .head-actions{flex-direction:row;flex-wrap:wrap;justify-content:flex-end}
 .rally-app .head-actions .outline{font-size:10px;padding:8px}
 .rally-app .preset-row{margin:14px 0}
 .simulator-stage{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 260px;height:clamp(720px,calc(100svh - 12px),920px);gap:10px}
 .simulator-view{grid-row:1;gap:7px}
 .simulator-stage .controls{grid-row:2;order:0;padding:10px 13px;border-radius:8px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto minmax(0,1fr) auto;gap:0 14px}
 .simulator-stage .player-tabs{grid-column:1;grid-row:1;margin:0 0 8px;gap:12px;width:100%;min-width:0}
 .simulator-stage .player-tabs button{font-size:11px;padding:4px 0 8px}
 .simulator-stage .control-context{grid-column:2;grid-row:1;margin:0 0 8px;justify-content:center;text-align:right;gap:3px}
 .simulator-stage .control-context strong{font-size:9px;letter-spacing:0}
 .simulator-stage .control-context span{font-size:10px}
 .simulator-stage .settings-switch{grid-column:1/-1;grid-row:2;margin:0 0 8px;padding:2px}
 .simulator-stage .settings-switch button{min-height:28px;font-size:11px;padding:4px}
 .simulator-stage #controlsFieldset{grid-column:1/-1;grid-row:3;padding:3px 7px 0 2px}
 .simulator-stage .controls #controlsContent{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:22px}
 .simulator-stage .controls .choice-control,.simulator-stage .controls .helper,.simulator-stage .controls .group-label,.simulator-stage .controls .place-button,.simulator-stage .controls .surface-options,.simulator-stage .controls .initial-note{grid-column:1/-1}
 .simulator-stage .slider-control{margin-bottom:14px;min-width:0}
 .simulator-stage .label-row label{font-size:11px}
 .simulator-stage .value-wrap input{font-size:11px;width:43px}
 .simulator-stage .value-wrap span{font-size:10px}
 .simulator-stage .range-bounds{font-size:9px}
 .simulator-stage .choice-control{margin:0 0 12px;gap:5px;font-size:11px}
 .simulator-stage .choice-control select{min-height:32px;font-size:11px;padding:6px 8px}
 .simulator-stage .control-foot{grid-column:1/-1;grid-row:4;padding-top:7px;margin-top:6px;font-size:9px}
 .simulator-stage .control-foot button{font-size:10px}
 .simulator-stage #controlLock:not([hidden]){grid-column:1/-1;grid-row:3;z-index:1;align-self:start;margin:0;background:#234a36}
 .simulator-stage .court-toolbar{height:34px;padding:0 12px}
 .simulator-stage .court-title strong{font-size:10px}
 .simulator-stage .view-switch button{font-size:9px;padding:5px 7px}
 .simulator-stage .rally-score{min-height:29px;padding:0 12px 5px}
 .simulator-stage .rally-score .player-letter{width:22px;height:22px;border-radius:5px;font-size:10px}
 .simulator-stage .rally-score>div>span:not(.player-letter){font-size:9px}
 .simulator-stage .rally-counter b{font-size:12px}
 .simulator-stage .canvas-wrap{min-height:135px;height:auto}
 .simulator-stage .court-note{left:12px;top:7px;font-size:8px;max-width:70%}
 .simulator-stage .court-telemetry{right:12px;top:7px;font-size:8px;left:auto}
 .simulator-stage .court-key{font-size:8px;left:12px;bottom:8px;gap:10px}
 .simulator-stage .status-badge{font-size:9px;right:10px;bottom:6px;padding:5px 7px;max-width:59%}
 .court-action-bar{gap:5px;padding:6px 10px}
 .court-action-bar>div{flex-basis:100%;display:flex;align-items:baseline;gap:8px;min-width:0}
 .court-action-bar #courtStep{font-size:10px;flex:none}
 .court-action-bar p{font-size:10px;line-height:1.25;margin:0}
 .court-action-bar button{font-size:10px;padding:6px 8px;min-height:28px}
 .simulator-stage .playback{min-height:43px;padding:6px 10px;gap:7px;flex-wrap:wrap}
 .simulator-stage .play-btn{width:27px;height:27px}
 .simulator-stage .time-readout{width:70px;font-size:9px}
 .simulator-stage .playback #timeline{min-width:50px;flex:1}
 .simulator-stage .playback select{font-size:10px;padding:4px 2px}
 .simulator-stage .playback .next-btn{font-size:10px;padding:6px 7px}
 .trajectory-list{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px;scrollbar-width:thin;scrollbar-color:#b7c79f transparent;scroll-snap-type:x proximity}
 .trajectory-choice{flex:1 0 128px;grid-template-columns:19px minmax(0,1fr);gap:2px 5px;min-height:48px;padding:7px;scroll-snap-align:start}
 .trajectory-choice .path-number{width:19px;height:19px;font-size:10px}
 .trajectory-choice strong{font-size:10px}
 .trajectory-choice small{font-size:9px}
 .preparation-panel{padding:8px 11px}
 .preparation-panel>header{margin-bottom:6px;gap:8px}
 .preparation-panel>header span{font-size:10px}
 .preparation-panel>header strong{font-size:11px}
 .prep-metrics{gap:7px}
 .prep-metrics>div{gap:3px;padding-left:8px}
 .prep-metrics span{font-size:9px}
 .prep-metrics strong{font-size:15px;letter-spacing:-.2px}
 .prep-timeline{margin-top:6px;height:4px;min-height:4px}
 .preparation-panel>p{font-size:10px;line-height:1.3;margin-top:5px}
 .rally-app .incident-banner{margin:0;padding:18px 0}
 .rally-app .contact-panel{margin:18px 0 0;padding:18px}
 .rally-app .history-section{padding:22px 0}
 .rally-app .athlete-stats{margin:0 0 20px}
 .rally-app .analysis-grid{padding:0}
 .rally-app .compare-section,.rally-app .saved-section,.rally-app footer{margin-left:0;margin-right:0}
}
@media(max-width:420px){
 .rally-app main{padding-left:9px;padding-right:9px}
 .rally-app .page-head{gap:8px}
 .rally-app .page-head h2{font-size:19px}
 .rally-app .head-actions .outline{font-size:9px;padding:7px}
 .simulator-stage{grid-template-rows:minmax(0,1fr) 250px;height:max(745px,calc(100svh - 12px))}
 .simulator-stage .controls{column-gap:9px;padding-left:10px;padding-right:10px}
 .simulator-stage .player-tabs{gap:8px}
 .simulator-stage .player-tabs button{font-size:10px}
 .simulator-stage .player-tabs i{margin-right:3px;width:5px;height:5px}
 .simulator-stage .control-context strong{font-size:8px}
 .simulator-stage .control-context span{font-size:9px}
 .simulator-stage .controls #controlsContent{column-gap:15px}
 .simulator-stage .label-row{gap:3px}
 .simulator-stage .label-row label{font-size:11px}
 .simulator-stage .value-wrap{gap:2px}
 .simulator-stage .value-wrap input{width:35px}
 .simulator-stage .value-wrap span{font-size:9px}
 .simulator-stage .playback #timeline{flex-basis:calc(100% - 155px)}
 .simulator-stage .playback #directBtn{margin-left:auto}
 .court-action-bar>div{align-items:flex-start}
 .court-action-bar #courtStep{max-width:112px;line-height:1.25}
 .court-action-bar button{padding-left:7px;padding-right:7px}
 .prep-metrics span{font-size:9px}
 .prep-metrics strong{font-size:14px}
}
@media(max-height:600px) and (min-width:821px){.simulator-stage{height:710px}}
.trajectory-choice>span:last-child{display:flex;flex-direction:column;gap:3px;min-width:0}
.prep-timeline .travel{background:#d4a178}
.prep-timeline>span{font-size:0;color:transparent}
#prepStatus.rushed{color:#9a643a}
#prepStatus.ready{color:#3d6232}
@media(max-width:420px){
 .simulator-stage{height:max(785px,calc(100svh - 12px))}
 .simulator-stage .canvas-wrap{min-height:125px}
 .simulator-stage .court-note{max-width:71%;font-size:7px;line-height:1.3}
 .prep-metrics strong{font-family:'DM Sans',sans-serif;font-weight:600;letter-spacing:-.3px}
}

/* A single shot strip leaves the court enough room at every width. */
.simulator-stage .court-panel{order:0}
.trajectory-list{display:flex;gap:7px;overflow-x:auto;padding-bottom:2px;scrollbar-width:thin;scrollbar-color:#b7c79f transparent;scroll-snap-type:x proximity}
.trajectory-choice{flex:1 0 142px;min-height:62px;scroll-snap-align:start}
@media(max-width:820px){
 .simulator-stage{grid-template-rows:minmax(0,1fr) 220px;height:clamp(740px,calc(100svh - 12px),920px)}
 .simulator-stage .court-note,.simulator-stage .court-telemetry{display:none}
 .court-action-bar>div{display:block}
 .court-action-bar #courtStep,.court-action-bar p{display:inline;line-height:1.3}
 .court-action-bar p{margin-left:6px}
 .trajectory-choice{flex-basis:128px;min-height:48px}
 .preparation-panel>p{max-height:2.6em;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#b7c79f transparent}
}
@media(max-width:420px){
 .simulator-stage{grid-template-rows:minmax(0,1fr) 210px;height:max(760px,calc(100svh - 12px))}
 .simulator-stage .canvas-wrap{min-height:115px}
 .simulator-stage .court-key{font-size:7px}
 .prep-metrics strong{font-size:12px;white-space:nowrap}
 .preparation-panel>header{align-items:baseline}
 .preparation-panel>header span{font-size:9px;line-height:1.25}
 .preparation-panel>header strong{font-size:10px;line-height:1.25;text-align:right}
}

/* Landing intent and the projected return share the live simulator dock. */
.simulator-stage .settings-switch{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.simulator-stage .settings-switch button{font-size:10px}
.planner-toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;flex:none;padding:8px 16px;background:#193f32;border-top:1px solid #335743;border-bottom:1px solid #335743;color:#bed0ad}
.planner-tabs{display:flex;gap:3px;background:#123529;padding:3px;border-radius:6px}
.planner-toolbar button{background:#2c513b;border:1px solid #58774b;color:#dcecc8;border-radius:4px;padding:6px 9px;font-size:11px;min-height:30px}
.planner-tabs button{border:0;background:transparent}
.planner-toolbar button[aria-pressed=true]{background:#dfef9c;color:#23492e}
.planner-toolbar button:disabled{opacity:.4;cursor:default}
.planner-toolbar label{display:flex;gap:5px;align-items:center;font-size:10px;margin-left:auto;white-space:nowrap}
.planner-toolbar input{accent-color:#d9f36c}
#plannerCaption{font-size:9px;letter-spacing:.3px;flex:1;min-width:105px}
.landing-summary{display:flex;gap:8px;align-items:baseline;flex:none;padding:7px 16px;background:#254c39;border-top:1px solid #456244;color:#c2d4aa;font-size:10px;line-height:1.4}
.landing-summary strong{color:#e4f2bc;white-space:nowrap;font-weight:500}
.landing-summary strong.missed{color:#ffc3aa}
.landing-summary span{max-height:2.8em;overflow-y:auto;scrollbar-width:thin}
@media(max-width:1100px){#plannerCaption{display:none}}
@media(max-width:820px){
 .planner-toolbar{padding:5px 9px;gap:6px}
 .planner-toolbar button{font-size:10px;padding:5px 7px;min-height:27px}
 .planner-toolbar label{font-size:9px;gap:3px}
 .landing-summary{padding:5px 10px;font-size:9px}
 .simulator-stage{height:clamp(790px,calc(100svh - 12px),990px)}
}
@media(max-width:420px){
 .simulator-stage{height:max(825px,calc(100svh - 12px))}
 .planner-toolbar{gap:4px;padding-left:7px;padding-right:7px}
 .planner-toolbar button{padding:5px;font-size:9px}
 .planner-toolbar label{font-size:8px}
 .landing-summary{gap:6px}
 .landing-summary span{max-height:2.8em}
}

/* Accuracy and uninterrupted playback remain readable in the simulator dock. */
.accuracy-summary{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;flex:none;padding:10px 16px;background:#204733;border-top:1px solid #456244;color:#c4d6ad;font-size:11px;line-height:1.5}
.accuracy-summary label{display:flex;align-items:center;gap:7px;color:#e4f2bc;min-height:32px;cursor:pointer}
.accuracy-summary input{accent-color:#d9f36c;flex:none}
.accuracy-summary strong{font-weight:600;color:#e4f2bc}
.accuracy-summary #accuracyRisk{color:#f5c99d}
.accuracy-summary small{flex-basis:100%;font-size:10px;color:#a7bf98;line-height:1.5;overflow-wrap:anywhere}
.scene-control{display:flex;align-items:center;gap:7px;font-size:11px;line-height:1.4;color:#bed0ad}
.scene-control select{max-width:100%;min-width:0}
@media(min-width:821px){
 .simulator-stage{height:auto;min-height:820px;align-items:start}
 .simulator-stage .controls{position:sticky;top:12px;height:clamp(620px,calc(100svh - 24px),940px)}
 .simulator-view{grid-template-rows:auto auto auto}
 .simulator-stage .canvas-wrap{flex:none;height:clamp(280px,40svh,470px);min-height:280px}
 .simulator-stage .playback{row-gap:8px}
 .scene-control{margin-left:auto}
}

/* Phones use page scrolling instead of squeezing the court into a fixed panel.
   The opaque sticky court stays visible above the field currently being edited. */
@media(max-width:820px){
 :root{--mobile-court-height:clamp(220px,38svh,340px)}
 .rally-app .topbar{height:auto;min-height:64px;gap:10px;padding:8px max(12px,env(safe-area-inset-left))}
 .rally-app .topbar nav{min-width:0}
 .rally-app .topbar nav .quiet{min-height:44px;font-size:11px;padding:7px}
 .rally-app .top-sub{display:none}
 .rally-app main{padding:18px max(10px,env(safe-area-inset-right)) 0 max(10px,env(safe-area-inset-left))}
 .rally-app .page-head{align-items:flex-start;flex-wrap:wrap;gap:12px}
 .rally-app .page-head h2{max-width:none;font-size:24px;line-height:1.2}
 .rally-app .head-actions{justify-content:flex-start;gap:8px}
 .rally-app .head-actions .outline{font-size:12px;min-height:44px;padding:10px 13px}
 .rally-app .preset-row{margin:16px 0;min-width:0}
 .rally-app .preset-row>div{flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-bottom:5px;scrollbar-width:thin}
 .rally-app .preset{min-height:44px;flex:none;font-size:12px;padding:9px 13px;white-space:nowrap}
 .simulator-stage{display:flex;flex-direction:column;height:auto;min-height:0;gap:0;overflow:visible;isolation:isolate;scroll-margin-top:8px}
 .simulator-view,.simulator-stage .court-panel{display:contents}
 .simulator-stage .court-toolbar{order:0;min-height:54px;height:auto;padding:6px 10px;background:#163a31;border-radius:9px 9px 0 0;gap:8px}
 .simulator-stage .court-title{min-width:0;flex:1;gap:5px}
 .simulator-stage .court-title strong{font-size:12px;overflow-wrap:anywhere}
 .simulator-stage .court-title>span:last-child{display:none}
 .simulator-stage .view-switch{flex:none;padding:2px}
 .simulator-stage .view-switch button{font-size:11px;min-height:44px;min-width:58px;padding:7px}
 .simulator-stage .rally-score{order:1;background:#163a31;min-height:42px;padding:4px 11px 8px;gap:6px}
 .simulator-stage .rally-score .player-letter{height:26px;width:26px;font-size:12px}
 .simulator-stage .rally-score>div{gap:5px}
 .simulator-stage .rally-score>div>span:not(.player-letter){font-size:10px}
 .simulator-stage .rally-counter{gap:4px!important}
 .simulator-stage .rally-counter b{font-size:14px}
 .simulator-stage .rally-counter span{font-size:7px!important}
 .planner-toolbar{order:2;padding:8px;gap:6px;align-items:stretch;border-bottom:0}
 .planner-tabs{flex:1;min-width:0;padding:2px;gap:2px}
 .planner-tabs button{flex:1;min-width:0}
 .planner-toolbar button{min-height:44px;padding:8px;font-size:12px;line-height:1.25;white-space:normal}
 .planner-toolbar label{min-height:44px;min-width:115px;margin-left:0;gap:7px;font-size:12px;padding:2px 4px}
 .planner-toolbar input,.accuracy-summary input{width:20px;height:20px;margin:0}
 .simulator-stage .canvas-wrap{order:3;position:sticky;top:env(safe-area-inset-top,0px);z-index:5;flex:none;width:100%;height:var(--mobile-court-height);min-height:220px;max-height:none;background:#163a31;border:1px solid #365944;box-shadow:0 5px 12px #0c291d26}
 .simulator-stage #court{touch-action:pan-y pinch-zoom}
 .simulator-stage .court-key{font-size:9px;left:10px;bottom:10px;gap:9px}
 .simulator-stage .status-badge{font-size:10px;right:8px;bottom:7px;max-width:54%;padding:6px;line-height:1.3}
 .landing-summary{order:4;align-items:flex-start;flex-wrap:wrap;padding:10px;font-size:11px;gap:3px 9px}
 .landing-summary strong{white-space:normal}
 .landing-summary span{max-height:none;overflow:visible}
 .accuracy-summary{order:5;padding:8px 10px;gap:4px 12px;font-size:12px}
 .accuracy-summary label{min-height:44px;font-size:12px}
 .accuracy-summary strong{line-height:1.4}
 .accuracy-summary small{font-size:11px}
 .court-action-bar{order:6;gap:6px;padding:10px}
 .court-action-bar>div{display:block;flex-basis:100%;margin-bottom:4px}
 .court-action-bar #courtStep{font-size:11px;max-width:none;line-height:1.4}
 .court-action-bar p{font-size:11px;line-height:1.5;margin:3px 0 0;display:block}
 .court-action-bar button{min-height:44px;flex:1 1 85px;white-space:normal;padding:8px;font-size:12px;line-height:1.3}
 .simulator-stage .playback{order:7;display:flex;flex-wrap:wrap;min-height:0;gap:8px;padding:10px;border-radius:0 0 9px 9px}
 .simulator-stage .play-btn{height:44px;width:44px;font-size:15px}
 .simulator-stage .time-readout{width:75px;font-size:11px}
 .simulator-stage .playback #timeline{min-width:55px;flex:1 1 55px}
 .simulator-stage .playback select{min-height:44px;font-size:16px;padding:7px;max-width:100%}
 .simulator-stage .playback #directBtn,.simulator-stage .playback #nextBtn{margin:0;flex:1 1 120px;min-height:44px;font-size:12px;padding:8px;white-space:normal;line-height:1.3}
 .scene-control{flex-basis:100%;justify-content:space-between;font-size:12px;min-height:44px;gap:10px}
 .scene-control select{flex:1;max-width:220px!important}
 .trajectory-list{order:8;flex:none;margin:12px 0 0;padding:0 1px 5px;gap:8px}
 .trajectory-choice{flex:1 0 150px;min-height:62px;padding:9px;grid-template-columns:22px minmax(0,1fr);gap:5px}
 .trajectory-choice .path-number{height:22px;width:22px;font-size:12px}
 .trajectory-choice strong{font-size:12px}
 .trajectory-choice small{font-size:11px}
 .preparation-panel{order:9;margin-top:10px;padding:12px}
 .preparation-panel>header{align-items:flex-start;margin-bottom:10px;gap:8px}
 .preparation-panel>header span{font-size:10px;line-height:1.4}
 .preparation-panel>header strong{font-size:12px;line-height:1.4;text-align:right}
 .prep-metrics{gap:7px}
 .prep-metrics>div{padding-left:7px;gap:6px}
 .prep-metrics span{font-size:10px;line-height:1.4}
 .prep-metrics strong{font-size:16px;white-space:normal;overflow-wrap:anywhere}
 .preparation-panel>p{max-height:none;overflow:visible;font-size:11px;line-height:1.5;margin-top:9px}
 .simulator-stage .controls{order:10;position:static;display:flex;flex-direction:column;height:auto;min-height:0;overflow:visible;margin-top:12px;padding:14px;border-radius:9px;gap:0;scroll-margin-top:calc(var(--mobile-court-height) + 16px)}
 .simulator-stage .player-tabs{margin-bottom:10px;gap:8px}
 .simulator-stage .player-tabs button{min-height:44px;flex:1;font-size:13px;padding:8px 4px}
 .simulator-stage .control-context{margin:0 0 10px;text-align:left;gap:5px}
 .simulator-stage .control-context strong{font-size:10px;letter-spacing:.5px}
 .simulator-stage .control-context span{font-size:12px}
 .simulator-stage .settings-switch{padding:3px;margin-bottom:14px;gap:3px}
 .simulator-stage .settings-switch button{min-height:44px;font-size:12px;padding:7px 3px;line-height:1.3;overflow-wrap:normal}
 .simulator-stage #controlsFieldset{flex:none;overflow:visible;padding:2px 0 0;min-height:0}
 .simulator-stage .controls #controlsContent{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}
 .simulator-stage .slider-control{margin-bottom:17px;min-width:0}
 .simulator-stage .label-row{gap:8px;flex-wrap:wrap;margin:0}
 .simulator-stage .label-row label{font-size:13px;line-height:1.4}
 .simulator-stage .value-wrap{gap:4px;max-width:100%}
 .simulator-stage .value-wrap input{font-size:16px;min-height:44px;width:68px;padding:6px 4px;background:#1a4431;border:1px solid #486747;border-radius:4px}
 .simulator-stage .value-wrap span{font-size:11px}
 .simulator-stage .range-bounds{font-size:11px;margin:0}
 .simulator-stage input[type=range]{height:44px;margin:0;touch-action:pan-y;background:linear-gradient(#557058,#557058) center/100% 3px no-repeat}
 .simulator-stage input[type=range]::-webkit-slider-thumb{width:24px;height:24px;border:3px solid #163c31}
 .simulator-stage input[type=range]::-moz-range-thumb{width:22px;height:22px;border:2px solid #163c31}
 .simulator-stage .choice-control{font-size:13px;gap:7px;margin-bottom:16px}
 .simulator-stage .choice-control select{min-height:44px;font-size:16px;padding:9px;line-height:1.4}
 .simulator-stage .helper{font-size:12px;line-height:1.6;overflow-wrap:anywhere}
 .simulator-stage .group-label{font-size:11px}
 .simulator-stage .place-button,.simulator-stage .surface-options button{min-height:44px;font-size:13px;padding:9px}
 .simulator-stage .control-foot{margin-top:12px;padding-top:8px;flex-wrap:wrap;font-size:11px;gap:5px}
 .simulator-stage .control-foot button{font-size:12px;min-height:44px;padding:8px}
 .simulator-stage #controlLock:not([hidden]){position:static;margin-bottom:12px;padding:12px}
 .simulator-stage #controlLock button{min-height:44px;font-size:12px;padding:8px 0}
 .simulator-stage input,.simulator-stage select,.simulator-stage button{scroll-margin-top:calc(var(--mobile-court-height) + 16px)}
 .rally-app .pause-setting{padding:0;align-items:stretch}
 .rally-app .limits-toggle{min-height:44px;font-size:12px;line-height:1.5}
 .rally-app .limits-toggle input{width:20px;height:20px}
 .rally-app .shot-choices button,.rally-app .contact-panel .outline,.rally-app .athlete-card .quiet{min-height:44px;font-size:12px}
 .rally-app .opening-prep{flex-wrap:wrap;font-size:12px}
 .rally-app .opening-prep input{min-height:44px;font-size:16px}
 .rally-app .incident-copy p,.rally-app .history-helper,.rally-app .contact-note{font-size:12px}
 .rally-app .event-tile{min-height:80px}
 .rally-app .event-tile strong{font-size:13px}
 .rally-app .event-tile span{font-size:11px}
 .rally-app dialog{padding:24px 20px;max-height:calc(100svh - 24px)}
 .rally-app .close-dialog{min-width:44px;min-height:44px;right:8px;top:5px}
 .rally-app dialog .outline,.rally-app dialog .primary{min-height:44px;font-size:13px}
 .rally-app dialog input{font-size:16px}
 .rally-app footer{padding-bottom:max(24px,env(safe-area-inset-bottom))}
}
@media(max-width:480px){
 .simulator-stage .controls #controlsContent{grid-template-columns:minmax(0,1fr)}
 .simulator-stage .settings-switch button{font-size:11px}
 .simulator-stage .controls{padding:12px}
 .simulator-stage .rally-score>div>span:not(.player-letter){font-size:9px}
 .simulator-stage .rally-counter{gap:3px!important}
 .simulator-stage .rally-counter b{font-size:13px}
 .simulator-stage .court-key{font-size:8px;gap:7px}
 .simulator-stage .time-readout{width:70px;font-size:10px}
 .simulator-stage .playback{gap:7px}
 .simulator-stage .playback select{padding:6px}
 .prep-metrics strong{font-size:15px}
 .rally-app .page-head h2{font-size:22px}
}
/* Landscape phones keep the court and fields side by side, with enough room
   for a useful court; each column can scroll without shrinking its contents. */
@media(min-width:600px) and (max-width:1100px) and (max-height:560px) and (orientation:landscape){
 .simulator-stage{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,36%);grid-template-rows:minmax(0,1fr);gap:10px;height:calc(100svh - 16px);min-height:280px;align-items:stretch;overflow:visible}
 .simulator-view{display:flex;flex-direction:column;grid-column:1;grid-row:1;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#779562 #163c31;border-radius:9px}
 .simulator-stage .court-panel{display:contents}
 .simulator-stage .canvas-wrap{position:sticky;top:0;z-index:5;flex:none;height:clamp(180px,50svh,260px);min-height:180px}
 .simulator-stage .court-toolbar{order:0;flex:none;height:auto;min-height:50px;background:#163a31}
 .simulator-stage .rally-score{order:1;flex:none;background:#163a31;min-height:38px}
 .planner-toolbar{order:2;flex:none}
 .simulator-stage .canvas-wrap{order:3}
 .landing-summary{order:4}
 .accuracy-summary{order:5}
 .court-action-bar{order:6}
 .simulator-stage .playback{order:7;flex:none}
 .trajectory-list{order:8;flex:none}
 .preparation-panel{order:9;flex:none}
 .simulator-stage .controls{grid-column:2;grid-row:1;order:0;position:static;display:flex;flex-direction:column;height:100%;min-height:0;margin:0;padding:10px;overflow:hidden;gap:0;scroll-margin-top:8px}
 .simulator-stage .controls #controlsContent{grid-template-columns:minmax(0,1fr)}
 .simulator-stage .control-context{display:none}
 .simulator-stage .player-tabs{margin-bottom:6px}
 .simulator-stage .player-tabs button{min-height:44px;font-size:12px;padding:7px 3px;flex:1}
 .simulator-stage .settings-switch{margin-bottom:7px;gap:2px;padding:2px}
 .simulator-stage .settings-switch button{min-height:44px;padding:6px 2px;font-size:10px}
 .simulator-stage #controlsFieldset{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:0 5px 0 0;scrollbar-width:thin;scroll-padding-top:8px}
 .simulator-stage .control-foot{margin-top:5px;padding-top:4px;font-size:10px;gap:3px}
 .simulator-stage .control-foot button{min-height:44px;font-size:11px}
 .simulator-stage #controlLock:not([hidden]){padding:7px;margin-bottom:6px}
 .simulator-stage #controlLock p{display:none}
 .simulator-stage #controlLock button{padding:5px 0;min-height:44px}
 .simulator-stage input,.simulator-stage select,.simulator-stage button{scroll-margin-top:8px}
 .simulator-stage .view-switch button,.planner-toolbar button,.court-action-bar button,.simulator-stage .playback button{min-height:44px}
 .simulator-stage .play-btn{width:44px;height:44px}
 .simulator-stage .playback select{min-height:44px;font-size:16px}
 .simulator-stage .choice-control select{min-height:44px;font-size:16px}
 .simulator-stage .value-wrap input{min-height:44px;font-size:16px;width:64px}
 .simulator-stage .label-row{flex-wrap:wrap}
 .simulator-stage input[type=range]{height:44px;margin:0;touch-action:pan-y;background:linear-gradient(#557058,#557058) center/100% 3px no-repeat}
 .simulator-stage input[type=range]::-webkit-slider-thumb{width:24px;height:24px;border:3px solid #163c31}
 .simulator-stage input[type=range]::-moz-range-thumb{width:22px;height:22px;border:2px solid #163c31}
 .simulator-stage .place-button,.simulator-stage .surface-options button{min-height:44px}
 .simulator-stage #court{touch-action:pan-y pinch-zoom}
 .scene-control{flex-basis:100%;justify-content:space-between;margin-left:0}
}
@media(prefers-reduced-motion:reduce){.simulator-stage *{scroll-behavior:auto!important}}
