/* Match preparation belongs to the menu: no dialog, backdrop or focus trap. */
body[data-menu-view=plan] .preview-banner,body[data-menu-view=plan] .main-footer{display:none!important}
body[data-menu-view=plan] .sidebar{top:0}
#view-plan{max-width:1200px;margin:auto}
#match-plan-panel{position:relative;isolation:isolate;overflow:hidden;border:1px solid #65858a66;border-radius:24px;color:#edf6f7;background:#122536;box-shadow:0 14px 40px #0004;display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-height:570px}
#match-plan-panel:before,#match-plan-panel:after{content:"";position:absolute;inset:0;pointer-events:none;z-index:-1}
#match-plan-panel:before{background:linear-gradient(90deg,#0b1a3299,#112336ba 49%,#101f33f2 72%),var(--art-duel-stadium);background-size:cover;background-position:center 66%}
#match-plan-panel:after{background:radial-gradient(ellipse at 0 80%,color-mix(in srgb,var(--club) 40%,transparent),transparent 60%),linear-gradient(150deg,transparent 60%,color-mix(in srgb,var(--club2) 12%,transparent));opacity:.8}
#match-plan-panel .match-start-heading{padding:20px 25px 14px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #95bfd522}
#match-plan-panel .match-start-heading .eyebrow{order:2;margin:0;color:#a4c1d0;font-size:10px;letter-spacing:1px;text-align:right}
#match-plan-panel h2{font-size:28px;line-height:1.1;margin:0;color:#f3f8fb}
#match-plan-panel #match-preview-details{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);gap:26px;align-items:start;overflow:auto;min-height:0;padding:20px 25px;overscroll-behavior:contain;scrollbar-width:thin}
#match-plan-panel .brief-overview,#match-plan-panel .brief-orders{min-width:0}
#match-plan-panel .pairing-ready{color:#b3e3c9;font-size:9px;letter-spacing:1.3px;display:block;text-align:center}
#match-plan-panel .fixture-preview{grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr);gap:6px;margin:14px 0 18px}
#match-plan-panel .fixture-team{display:flex;flex-direction:column;align-items:center;padding:0;gap:5px;background:none;border:0;min-width:0}
#match-plan-panel .fixture-team>i{display:none}
#match-plan-panel .fixture-team>small{color:#b2c8d5;font-size:8px;letter-spacing:.7px}
#match-plan-panel .fixture-team strong{margin:0;height:auto;font-size:16px;line-height:1.15;width:100%}
#match-plan-panel .fixture-team .club-link{display:flex;flex-direction:column;align-items:center;justify-content:start;gap:7px;width:100%;padding:0;min-height:0;color:#fff;line-height:1.15}
#match-plan-panel .fixture-team .club-link span{color:inherit;font:inherit;height:2.3em;display:flex;align-items:center;justify-content:center;overflow-wrap:anywhere}
#match-plan-panel .club-crest-mini03{width:70px;height:78px;object-fit:contain;filter:drop-shadow(0 4px 7px #0006)}
#match-plan-panel .fixture-team .brief-level{display:grid;place-items:center;width:36px;height:30px;border:1px solid #c3d9bf77;border-radius:9px;background:#10273ac9;color:#f8dfa2;font-size:21px;margin:0;font-weight:800}
#match-plan-panel .fixture-team>span:last-child{color:#acc2cd;font-size:9px;min-height:0;height:auto;line-height:1.3}
#match-plan-panel .fixture-versus{color:#a4bdca;font-size:11px}
#match-plan-panel .match-conditions{display:grid;grid-template-columns:1fr 1.3fr .8fr;gap:8px;background:#112738c9;border:1px solid #50758370;border-radius:13px;padding:12px;margin:0}
#match-plan-panel .match-conditions small{font-size:8px;color:#9db5c6;letter-spacing:.5px;margin:0 0 3px}
#match-plan-panel .match-conditions b{font-size:14px;color:#e3eef5}
#match-plan-panel .match-conditions span{font-size:9px;color:#99b7c9;margin-top:2px}
#match-plan-panel .fatigue-preview{grid-column:auto;padding:0;border:0;margin:0}
#match-plan-panel .brief-insight{color:#acc7d3;font-size:11px;margin:9px 0 0}
#match-plan-panel .brief-lock{display:none}
#match-plan-panel .brief-orders{display:block}
#match-plan-panel .brief-setting{padding:0;margin:0 0 10px;border:0}
#match-plan-panel .brief-setting legend{color:#d4e7ec;font-size:10px;margin-bottom:6px;letter-spacing:1px}
#match-plan-panel .brief-options{display:flex;gap:6px}
#match-plan-panel .brief-options button{flex:1;min-width:0;min-height:44px;padding:8px 4px;font-size:12px;border-radius:10px;background:#182c40;border:1px solid #597382;color:#c4d8e3;box-shadow:none}
#match-plan-panel .brief-options button[aria-pressed=true]{background:color-mix(in srgb,var(--club) 40%,#182b3f);border-color:#badbd9;color:#fff;box-shadow:inset 0 -2px #b4e6d4}
#match-plan-panel .brief-setting p{display:block;color:#a8c1d0;font-size:10px;line-height:1.25;min-height:0;margin:6px 0 0}
#match-plan-panel .brief-branches03{padding:0 0 10px;gap:6px}
#match-plan-panel .brief-branches03>span{padding:7px 6px;background:#11283bc9;border-color:#48677b}
#match-plan-panel .brief-bonuses03{margin-top:0}
#match-plan-panel .brief-bonus-list03{flex-direction:row}
#match-plan-panel .bonus-empty03{font-size:11px;line-height:1.35;padding:8px 0 10px}
#match-plan-panel .match-forecast03{margin-top:10px}
#match-plan-panel .match-start-footer{display:flex;align-items:center;gap:18px;border-top:1px solid #587e8c66;background:#102334de;padding:14px 25px}
#match-plan-panel #match-start-description{flex:1;font-size:11px!important;line-height:1.4;color:#aac1d1;margin:0}
#match-plan-panel .match-start-actions{display:flex;align-items:center;position:static;padding:0;margin:0;background:none;gap:8px;flex:0 0 52%}
#match-plan-panel .match-start-actions button{min-height:46px;padding:9px 12px;font-size:14px;flex:1}
#match-plan-panel #match-start-no{flex:0 0 auto;font-size:12px}
#match-plan-panel .pairing-search{grid-column:1/-1;align-self:center;justify-self:center;min-height:180px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;text-align:center;color:#e7f1f7}
#match-plan-panel .pairing-search small{color:#a9c4d5}
@media(orientation:landscape) and (max-height:650px){
 body[data-menu-view=plan] .topbar,body[data-menu-view=plan] .resources{display:none!important}
 body[data-menu-view=plan] .main-shell main{padding:8px 10px!important}
 #match-plan-panel{height:calc(100dvh - 16px);min-height:0;border-radius:17px}
 #match-plan-panel .match-start-heading{padding:10px 15px}
 #match-plan-panel h2{font-size:22px}
 #match-plan-panel .match-start-heading .eyebrow{font-size:8px}
 #match-plan-panel #match-preview-details{padding:10px 15px;gap:16px}
 #match-plan-panel .fixture-preview{margin:9px 0 12px}
 #match-plan-panel .club-crest-mini03{width:50px;height:57px}
 #match-plan-panel .fixture-team{gap:3px}
 #match-plan-panel .fixture-team strong{font-size:13px}
 #match-plan-panel .fixture-team .club-link{gap:4px}
 #match-plan-panel .fixture-team>span:last-child{font-size:8px}
 #match-plan-panel .fixture-team .brief-level{height:26px;width:31px;font-size:19px}
 #match-plan-panel .match-conditions{padding:8px;gap:6px}
 #match-plan-panel .match-conditions b{font-size:12px}
 #match-plan-panel .brief-insight{font-size:9px;margin:5px 0 0}
 #match-plan-panel .brief-setting{margin-bottom:6px}
 #match-plan-panel .brief-setting legend{font-size:9px;margin-bottom:4px}
 #match-plan-panel .brief-options button{min-height:37px;font-size:10px;padding:5px 3px}
 #match-plan-panel .brief-setting p{font-size:9px;margin-top:4px}
 #match-plan-panel .brief-branches03{padding-bottom:6px}
 #match-plan-panel .brief-branches03>span{display:flex;align-items:center;justify-content:space-between;gap:3px;padding:5px}
 #match-plan-panel .brief-branches03 small{font-size:8px}
 #match-plan-panel .brief-branches03 b{font-size:12px;white-space:nowrap}
 #match-plan-panel .brief-branches03 i{padding:0 2px}
 #match-plan-panel .match-forecast03{padding:7px 9px;margin-top:6px}
 #match-plan-panel .brief-bonus-list03 .match-bonus03 img{width:28px;height:32px}
 #match-plan-panel .match-start-footer{padding:8px 15px;gap:12px}
 #match-plan-panel #match-start-description{font-size:9px!important}
 #match-plan-panel .match-start-actions button{min-height:42px;padding:6px 9px;font-size:12px}
 #match-plan-panel #match-start-no{font-size:11px}
}
@media(orientation:landscape) and (max-height:380px){
 #match-plan-panel .match-start-heading{padding:8px 13px}
 #match-plan-panel h2{font-size:20px}
 #match-plan-panel #match-preview-details{padding:8px 13px;gap:12px;grid-template-columns:minmax(0,.94fr) minmax(0,1.12fr)}
 #match-plan-panel .brief-bonus-heading03{font-size:8px;gap:3px}
 #match-plan-panel .brief-bonus-heading03>span{font-size:7px}
 #match-plan-panel .brief-bonus-list03 .match-bonus03 img{width:25px;height:28px}
 #match-plan-panel .brief-branches03>span{padding:4px!important}
 #match-plan-panel .match-forecast03{margin-top:5px;padding:6px 8px}
 #match-plan-panel .brief-setting p{font-size:8px}
 #match-plan-panel .match-start-footer{padding:7px 13px}
}
@media(orientation:portrait) and (max-width:900px){
 body[data-menu-view=plan] .topbar,body[data-menu-view=plan] .resources{display:none!important}
 body[data-menu-view=plan] .main-shell main{padding:10px 10px 92px!important}
 #match-plan-panel{height:calc(100dvh - 102px);min-height:0;border-radius:18px}
 #match-plan-panel .match-start-heading{padding:13px 15px;display:block}
 #match-plan-panel .match-start-heading .eyebrow{text-align:left;font-size:8px;margin-bottom:5px}
 #match-plan-panel h2{font-size:24px}
 #match-plan-panel #match-preview-details{grid-template-columns:1fr;gap:16px;padding:15px}
 #match-plan-panel .club-crest-mini03{width:54px;height:61px}
 #match-plan-panel .fixture-preview{margin:10px 0}
 #match-plan-panel .fixture-team strong{font-size:15px}
 #match-plan-panel .fixture-team .brief-level{height:26px;font-size:18px}
 #match-plan-panel .brief-insight{font-size:10px}
 #match-plan-panel .brief-options button{font-size:clamp(10px,2.8vw,12px)}
 #match-plan-panel .match-start-footer{display:block;padding:10px 13px}
 #match-plan-panel #match-start-description{display:none}
 #match-plan-panel .match-start-actions{width:100%}
}
