/* V30.27 Lockdown: final-overrides for collision control and shared layout consistency. */
:root{--fp-lock-action-left:14px;--fp-lock-action-bottom:18px;--fp-lock-rail-width:56px;--fp-lock-phone-right:24px;--fp-lock-phone-bottom:24px;}
html,body{min-width:0!important;}
body{overflow-x:hidden!important;}
/* Keep persistent utility controls from covering production content. */
body .fp-feedback-fab{position:fixed!important;left:var(--fp-lock-action-left)!important;bottom:92px!important;z-index:39000!important;display:grid!important;gap:9px!important;width:var(--fp-lock-rail-width)!important;max-width:var(--fp-lock-rail-width)!important;pointer-events:auto!important;}
body .fp-feedback-fab button{width:52px!important;min-width:52px!important;max-width:52px!important;height:46px!important;min-height:46px!important;padding:0!important;border-radius:16px!important;font-size:0!important;overflow:hidden!important;white-space:nowrap!important;box-shadow:0 12px 30px rgba(0,0,0,.35)!important;}
body .fp-feedback-fab button::before{font-size:18px!important;line-height:1!important;display:block!important;}
body .fp-feedback-fab button:nth-child(1)::before{content:'🐞';}
body .fp-feedback-fab button:nth-child(2)::before{content:'💡';}
body .fp-feedback-fab:hover{width:220px!important;max-width:220px!important;}
body .fp-feedback-fab:hover button{width:220px!important;max-width:220px!important;font-size:13px!important;padding:0 14px!important;justify-content:flex-start!important;gap:8px!important;}
body .fp-feedback-fab:hover button:nth-child(1)::before{content:'🐞';margin-right:8px;}
body .fp-feedback-fab:hover button:nth-child(2)::before{content:'💡';margin-right:8px;}
body #fpUniversalBackHq{position:fixed!important;left:18px!important;bottom:18px!important;z-index:39000!important;max-width:180px!important;}
body.fp-focus-mode .rfl-phone-fab,body.fp-focus-mode .phone-fab,body.fp-focus-mode .rfl-phone-shell,body.fp-focus-mode .phone-panel,body.fp-focus-mode .phone-card{display:none!important;}
body:not(.fp-focus-mode) .rfl-phone-fab,body:not(.fp-focus-mode) .phone-fab{right:var(--fp-lock-phone-right)!important;bottom:var(--fp-lock-phone-bottom)!important;width:62px!important;height:62px!important;min-width:62px!important;min-height:62px!important;z-index:38000!important;}
body:not(.fp-focus-mode) .rfl-phone-shell,body:not(.fp-focus-mode) .phone-panel{z-index:38010!important;}
/* Give scroll-heavy workspaces safe bottom room without hiding table rows behind fixed controls. */
.workspace,.salary-shell,.cap-shell,.war-room .command-screen,.page,.app main,.main{padding-bottom:max(24px,env(safe-area-inset-bottom))!important;}
body[data-fp-view="trade-centre"] .main{grid-template-columns:minmax(230px,280px) minmax(560px,1fr) minmax(280px,330px)!important;gap:12px!important;}
body[data-fp-view="trade-centre"] .team-list{max-height:calc(100vh - 340px)!important;padding-bottom:48px!important;}
body[data-fp-view="trade-centre"] .panel-body{min-height:0!important;scrollbar-gutter:stable!important;}
body[data-fp-view="trade-centre"] .left .asset-row b,body[data-fp-view="trade-centre"] .left .asset-row small{max-width:none!important;}
body[data-fp-view="war-room"] .screen-grid,body[data-fp-view="salary-cap"] .salary-grid{gap:16px!important;}
body[data-fp-view="war-room"] .panel,body[data-fp-view="salary-cap"] .panel{min-width:0!important;}
body[data-fp-view="power-rankings"] .phone-card{display:none!important;}
body[data-fp-view="power-rankings"] .main{padding-bottom:30px!important;}
/* Prevent old overlapping duplicate Back to HQ controls from reappearing. */
body.fp-has-universal-back .back-hq,body.fp-has-universal-back a.back-hq,body.fp-has-universal-back button.back-hq{display:none!important;}
body.fp-has-universal-back a[href*="team-hq.html"]:not(#fpUniversalBackHq).fp-back-duplicate{display:none!important;}
@media(max-width:1180px){body[data-fp-view="trade-centre"] .main{grid-template-columns:1fr!important;overflow:auto!important;height:auto!important}.page{height:auto!important;min-height:100vh!important;overflow:auto!important}.team-list{max-height:52vh!important}}
@media(max-width:900px){:root{--fp-lock-action-left:10px;--fp-lock-action-bottom:12px;--fp-lock-phone-right:14px;--fp-lock-phone-bottom:14px}body .fp-feedback-fab{bottom:78px!important}body #fpUniversalBackHq{left:10px!important;bottom:10px!important}.workspace,.salary-shell,.cap-shell,.war-room .command-screen,.page,.main{padding-bottom:94px!important}}
