/* Compact manager controls use the existing match snapshot and football rules. */
.match-action-dock{position:sticky;top:8px;z-index:8;display:flex;align-items:stretch;gap:6px;padding:8px;margin:0 0 12px;background:#eeeeda;border:1px solid #bfc7aa;border-radius:7px;box-shadow:0 2px 6px #25341b18}
.match-dock-score{display:flex;align-items:center;gap:8px;padding:0 9px;white-space:nowrap;color:#344b31;font-variant-numeric:tabular-nums}
.match-dock-score>b{font-size:18px}.match-dock-score>span{font-size:15px;font-weight:700}
.match-dock-back>b::before{content:'← ';font-size:12px;font-weight:400}
html.fmo-theme .match-action-dock>button{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 14px;background:#f7f5e7;color:#354b2f;border:1px solid #bec9a9;box-shadow:none;text-shadow:none}
.match-action-dock button small{font-size:11px;color:#5c6d50}
html.fmo-theme .match-action-dock>button.active{background:#42633c;border-color:#42633c;color:#fff}.match-action-dock>button.active small{color:#e3ecd8}
.match-live-layout .viewer-grid{align-items:start;grid-template-columns:minmax(0,1fr) minmax(290px,340px);gap:14px}
.match-live-layout .match-viewer{overflow:visible}.match-live-layout .match-controls{display:none}
.match-live-layout .match-timeline-v7 input[type="range"]:disabled{display:none}
.match-desk.live-management{position:sticky;top:78px;display:flex;flex-direction:column;max-height:calc(100svh - 92px);padding:0;margin:0 0 14px;border:1px solid #bfc8ae;border-radius:8px;outline:0;overflow:hidden;background:#f6f3e5;box-shadow:0 2px 7px #2b39231a}
.match-desk .live-desk-heading{display:flex;align-items:center;justify-content:space-between;padding:12px 13px 8px;background:#e6ead6;gap:10px;flex-shrink:0}
.match-desk .live-desk-heading h2{margin:3px 0;font-size:19px}.match-desk .page-eyebrow{font-size:10px;letter-spacing:1px}
.match-desk .live-desk-summary{padding:8px 13px;gap:10px;border-radius:0;border-bottom:1px solid #d0d6bd;background:#f2f1df;flex-shrink:0;min-height:36px}
.match-desk .live-desk-summary>b{font-size:14px;white-space:nowrap}.match-desk .live-desk-summary span{font-size:12px}
.match-desk .live-desk-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:7px 9px;gap:5px;background:#eeefdf;border-bottom:1px solid #cbd2b9;flex-shrink:0}
html.fmo-theme .match-desk .live-desk-tabs>button{min-width:0;min-height:40px;padding:7px 5px;font-size:13px;background:#f8f6e9;color:#46583b;border:1px solid #cad2b7;text-shadow:none;box-shadow:none}
html.fmo-theme .match-desk .live-desk-tabs>button[aria-selected="true"]{background:#44663e;color:#fff;border-color:#44663e}
.match-desk .live-desk-form{display:flex;flex-direction:column;min-height:0;margin:0;overflow:hidden}
.match-desk .live-desk-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px 13px;scrollbar-width:thin;scrollbar-color:#9caa85 #f1f0de}
.match-desk [hidden],.live-desk-backdrop[hidden]{display:none!important}
html.fmo-theme .match-desk .live-tired-pick{width:100%;min-height:44px;padding:8px 10px;white-space:normal;text-align:left;font-size:12px;line-height:1.4;background:#f1e8ca;border-color:#d6c797;color:#65552b}
.match-desk .live-sub-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}
.match-desk .live-sub-fields label,.match-desk .live-fields label{font-size:12px;font-weight:600;margin:0;min-width:0}
.match-desk select{min-height:44px;width:100%;min-width:0;padding:9px 5px;font-size:13px;background:#fffdf2}
.match-desk .live-compare-names{padding:8px;font-size:12px;overflow-wrap:anywhere;background:#e5ebd5}
.match-desk .live-compare-energy{margin:8px 0;gap:8px}.match-desk .tactics-energy{min-width:0}
.match-desk .live-compare-brief{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:12px;margin-top:7px;color:#4a5e3c}
.match-desk .live-compare-fit{font-size:12px;line-height:1.4;padding:7px 9px;border-radius:4px}.match-desk .live-compare-fit.good{background:#e6eddc;color:#3e6034}.match-desk .live-compare-fit.warning{background:#f1e6cf;color:#735c2f}
.match-desk .live-comparison-details{margin:7px 0;font-size:12px}.match-desk summary{cursor:pointer;min-height:36px;display:flex;align-items:center;gap:5px;font-size:12px;font-weight:600}
.match-desk summary::before{content:'▸';font-size:13px;color:#677b51}.match-desk details[open]>summary::before{content:'▾'}
.match-desk .live-compare-levels{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:11px;overflow-wrap:anywhere}
.match-desk .live-compare-form{display:grid;grid-template-columns:1fr 1fr;gap:8px}.match-desk .player-form-meta{min-width:0;margin:6px 0;padding:7px;font-size:11px}.match-desk .player-form-numbers b{font-size:15px}
.match-desk .live-bench-details{margin-top:8px;border-top:1px solid #d4d9c4}.match-desk .live-bench-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:5px 0}
html.fmo-theme .match-desk .live-bench-player{min-height:72px;padding:8px;text-align:left;white-space:normal;background:#f3f3e2;color:#3d5033;border:1px solid #cdd4bb;box-shadow:none;text-shadow:none;font-size:12px}
.match-desk .live-bench-player b,.match-desk .live-bench-player span,.match-desk .live-bench-player small{display:block;overflow-wrap:anywhere}.match-desk .live-bench-player span{margin:3px 0}.match-desk .live-bench-player small{font-size:10px;font-weight:400;line-height:1.4}
html.fmo-theme .match-desk .live-bench-player.selected{border-color:#65834c;background:#e0eacf}
.match-desk .live-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:13px}
.match-desk .live-plan-presets{display:flex;gap:5px}.match-desk .live-plan-presets button{flex:1;min-width:0;padding:7px 3px;min-height:40px;font-size:12px;white-space:normal}
html.fmo-theme .match-desk .live-plan-presets button.active{background:#dfe9d2;border-color:#78935b;color:#38522d}
.match-desk .live-plan-note{padding:9px;margin-top:12px;line-height:1.5;font-size:12px;background:#ebeddb;color:#4c6040;border-radius:5px}
.match-desk .live-desk-hint{font-size:12px;line-height:1.5;color:#586849;margin:5px 0 10px}
.match-desk .live-on-pitch{max-height:none;padding:0;border:0;overflow:visible;gap:5px}
.match-desk .live-on-pitch .live-player-row{grid-template-columns:minmax(0,1fr) 70px;padding:8px;gap:6px;min-height:54px;border-color:#d1d7c0}
.match-desk .live-player-row b{font-size:12px}.match-desk .live-player-row small{font-size:10px;line-height:1.4}.match-desk .live-player-row .tactics-energy{font-size:10px}
.match-desk .live-command-history{font-size:12px;margin-top:12px;border-top:1px solid #d0d7bf}.match-desk .live-command-history p{font-size:12px;line-height:1.5;margin:5px 0}
.match-desk .live-desk-footer{flex-shrink:0;padding:10px 12px;background:#e9ebd8;border-top:1px solid #c2cdb1}
.match-desk .live-draft-summary{font-size:11px;line-height:1.4;margin-bottom:7px;overflow-wrap:anywhere;color:#4c5e3e}
.match-desk .live-desk-actions{position:static;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;background:transparent;padding:0}
html.fmo-theme .match-desk .live-desk-actions button{min-height:44px;padding:8px 11px;font-size:13px;white-space:normal}.match-desk .live-desk-footer>small{display:block;margin-top:7px;color:#596949;font-size:10px;line-height:1.4}
.match-desk #liveFormStatus{margin:4px 0 0;font-size:11px}.match-desk #liveFormStatus:empty{display:none}
.match-action-dock button:focus-visible,.match-desk button:focus-visible,.match-desk select:focus-visible,.match-desk summary:focus-visible{outline:3px solid #bfa25e;outline-offset:2px}
.live-desk-backdrop{position:fixed;inset:0;z-index:1690;background:#14261685}
@media(max-width:900px){
 .match-live-layout .viewer-grid{grid-template-columns:minmax(0,1fr)}
 .match-live-layout .mobile-bottom{display:none!important}.match-live-layout .content{padding-bottom:90px!important}
 .match-action-dock{position:fixed;inset:auto 0 0;margin:0;padding:7px 8px calc(8px + env(safe-area-inset-bottom));border-radius:0;border:0;border-top:1px solid #b6c4a2;box-shadow:0 -2px 8px #2b3b231c;gap:5px;z-index:120;background:#f4f2e1}
 .match-dock-score{flex-direction:column;justify-content:center;gap:2px;padding:0 4px;min-width:44px}.match-dock-score>b{font-size:16px}.match-dock-score>span{font-size:12px}
 html.fmo-theme .match-action-dock>button{flex:1;flex-direction:column;justify-content:center;gap:2px;padding:7px 4px;min-width:0;min-height:52px;font-size:12px;border-radius:5px}.match-action-dock button small{font-size:10px}
 html.fmo-theme .match-action-dock>.match-dock-back{flex:0 0 48px;padding:5px 2px;background:transparent;border-color:transparent}
 .match-desk.live-management{display:none;position:static}
 .match-desk.live-management-open{display:flex;position:fixed;inset:auto 0 0;z-index:1700;height:min(76svh,720px);max-height:76svh;margin:0;padding:0;border-radius:12px 12px 0 0;border-bottom:0;box-shadow:0 -6px 25px #14251644}
 .match-desk .live-desk-heading{position:static;padding:10px 13px 6px;min-height:54px}.match-desk .live-desk-heading h2{font-size:18px}.match-desk .live-desk-close{display:block;min-height:44px;min-width:44px;font-size:22px}
 .match-desk .live-desk-summary{min-height:34px;padding:6px 13px}.match-desk .live-desk-tabs{padding:6px 10px}.match-desk .live-desk-tabs>button{min-height:42px!important}
 .match-desk .live-desk-form{flex:1}.match-desk .live-desk-body{flex:1;padding:10px 13px}.match-desk select{font-size:16px}.match-desk .live-desk-footer{padding-bottom:calc(10px + env(safe-area-inset-bottom))}
 .match-desk .live-compare-form{grid-template-columns:1fr 1fr}.match-desk .live-roster-header small{font-size:10px}.match-desk .live-on-pitch{max-height:none}
 body.fmo-live-desk-open{overflow:hidden;overscroll-behavior:none}
}
@media(max-width:360px){.match-desk .live-fields{grid-template-columns:1fr 1fr}.match-desk .live-compare-form{grid-template-columns:1fr}.match-desk .live-draft-summary{font-size:10px}}
@media(max-height:500px) and (max-width:900px){.match-desk.live-management-open{height:92svh;max-height:92svh}.match-desk .page-eyebrow,.match-desk .live-desk-footer>small{display:none}.match-desk .live-desk-heading{min-height:44px;padding:4px 12px}.match-desk .live-desk-summary{min-height:27px}}
