/* V31.04 Production Standardization: one visual system, raised phone, no overlap. */
:root{
  --fp-space-1:4px;--fp-space-2:8px;--fp-space-3:12px;--fp-space-4:16px;--fp-space-5:24px;--fp-space-6:32px;
  --fp-radius-sm:8px;--fp-radius-md:12px;--fp-radius-lg:18px;
  --fp-button-height:40px;--fp-phone-bottom:118px;--fp-phone-right:28px;
}
button,.btn,[role="button"],input[type="button"],input[type="submit"]{min-height:var(--fp-button-height);align-items:center;justify-content:center;gap:8px;line-height:1.1;white-space:nowrap;}
.card,.panel,.module,.metric,.fp-card,.fp-v31-card{border-radius:var(--fp-radius-lg);}
table th,table td{vertical-align:middle;}td.num,th.num,.number,.money,.cap-value,.record{text-align:right;font-variant-numeric:tabular-nums;}
.expand-board,.expand-pill,.expand-button,.fp-expand-button,.card-expand,.expand-layer,[data-expand-layer],[data-expand-button]{display:none!important;pointer-events:none!important;}
.modal,.player-modal,.fp-player-modal,.drawer.active,.dialog,.player-profile-modal{z-index:90000!important;}
.phone-fab,.global-phone-button,#globalPhoneButton,#fpPhoneButton,.phone-shell,.fp-phone-fab{right:var(--fp-phone-right)!important;bottom:var(--fp-phone-bottom)!important;z-index:50000!important;}
.phone-panel,.global-phone-panel,#phonePanel,.fp-phone-panel{z-index:70000!important;}
body.fp-focus-page .phone-fab,body.fp-focus-page .global-phone-button,body.fp-focus-page #globalPhoneButton,body.fp-focus-page .phone-shell{display:none!important;}
/* Trade Centre: make the submit flow impossible to miss. */
body.fp-page-trade-centre{overflow:auto!important;}
body.fp-page-trade-centre .page{min-height:100vh;height:auto!important;padding-bottom:140px!important;}
body.fp-page-trade-centre .main{height:auto!important;min-height:calc(100vh - 118px)!important;overflow:visible!important;}
body.fp-page-trade-centre #workspace.panel-body{overflow:visible!important;height:auto!important;min-height:0!important;display:block!important;padding-bottom:150px!important;}
body.fp-page-trade-centre .builder-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:16px!important;align-items:start!important;}
body.fp-page-trade-centre .builder-side{min-height:520px!important;display:flex!important;flex-direction:column!important;}
body.fp-page-trade-centre .builder-side .scroll-list{max-height:52vh!important;min-height:320px!important;overflow:auto!important;}
body.fp-page-trade-centre .asset-row{min-height:54px!important;}
body.fp-page-trade-centre .impact{position:sticky!important;bottom:82px!important;z-index:60!important;background:rgba(3,6,11,.92)!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:18px!important;padding:12px!important;backdrop-filter:blur(12px)!important;}
body.fp-page-trade-centre .offer-actions{position:sticky!important;bottom:16px!important;z-index:70!important;display:flex!important;justify-content:flex-end!important;gap:12px!important;background:rgba(3,6,11,.96)!important;border:1px solid rgba(255,255,255,.16)!important;border-radius:18px!important;padding:14px!important;box-shadow:0 18px 70px rgba(0,0,0,.55)!important;}
body.fp-page-trade-centre .offer-actions .primary,body.fp-page-trade-centre button.primary{min-width:180px!important;}
body.fp-page-trade-centre .back-hq{bottom:24px!important;left:24px!important;z-index:80!important;}
/* Scouting: prospect-only workspace and no redundant bottom chrome. */
body.fp-page-scouting-workspace .bottom-bar,body.fp-page-scouting-workspace .cal-note{display:none!important;}
body.fp-page-scouting-workspace .workspace{height:68vh!important;top:13vh!important;}
body.fp-page-scouting-workspace .screen-grid{grid-template-columns:.7fr 1.8fr .7fr!important;gap:18px!important;}
body.fp-page-scouting-workspace .module{cursor:pointer!important;}
/* Salary Workspace: keep simulator, remove retired footer, maximize workspace. */
body.fp-page-salary-cap .salary-bottom-bar,body.fp-page-salary-cap .bottom-status-bar,body.fp-page-salary-cap [data-retired="salary-bottom-bar"]{display:none!important;}
body.fp-page-salary-cap .workspace,body.fp-page-salary-cap main{padding-bottom:48px!important;}
/* General page breathing room. */
.page-shell,.workspace-shell,main{scroll-padding-bottom:160px;}
@media(max-width:900px){:root{--fp-phone-bottom:132px;--fp-phone-right:18px;}body.fp-page-trade-centre .builder-grid{grid-template-columns:1fr!important;}body.fp-page-trade-centre .offer-actions{left:12px;right:12px;bottom:12px;}body.fp-page-trade-centre .impact{bottom:92px;}}
