/* FIX81 — FIX80 baseline. State-specific brand, compact LIVE, readable popup. */
@media(max-width:900px){
  .app.v365Shell .v370Header.v81BrandMode{display:block!important;padding:7px 9px 8px!important;min-height:0!important}
  .app.v365Shell .v370Header.v81BrandMode .v370Brand{display:flex!important;justify-content:flex-start!important;gap:10px!important;width:100%!important;min-width:0!important;flex:auto!important;padding:0 1px 7px!important}
  .app.v365Shell .v370Header.v81BrandMode .v370BrandText{display:block!important;min-width:0!important}
  .app.v365Shell .v370Header.v81BrandMode .v370BrandText b{display:block!important;font-size:clamp(12px,3.6vw,16px)!important;line-height:1.18!important;white-space:normal!important}
  .app.v365Shell .v370Header.v81BrandMode .v370BrandText span{display:block!important;font-size:clamp(9px,2.7vw,11px)!important;margin-top:3px!important;line-height:1.15!important}
  .app.v365Shell .v370Header.v81BrandMode .v370Tabs{display:flex!important;flex:auto!important;width:100%!important;min-width:0!important;overflow-x:auto!important}
  .app.v365Shell .v370Header.v81InputMode{display:block!important;padding:4px 8px 5px!important;min-height:0!important}
  .app.v365Shell .v370Header.v81InputMode .v370Brand{display:none!important}
  .app.v365Shell .v370Header.v81InputMode .v370Tabs{display:flex!important;flex:auto!important;width:100%!important;min-width:0!important;overflow-x:auto!important}
}
/* Keep input controls touchable; make shorter displays more compact without forced scrolling. */
@media(max-width:900px) and (max-height:820px){
  .v57Live .v55InputCard .v55FourFields{width:86%!important;max-width:390px!important;gap:7px!important;margin:2px auto 3px!important}
  .v57Live .v55InputCard .v55FourFields>.v55Field{min-height:62px!important;max-height:75px!important;padding:4px 5px!important}
}
@media(max-width:900px) and (max-height:700px){
  .v57Live .v55InputCard .v55FourFields{width:84%!important;gap:6px!important}
  .v57Live .v55InputCard .v55FourFields>.v55Field{min-height:59px!important;max-height:69px!important;padding:3px 4px!important}
}
@media(max-width:345px) and (max-height:820px){
  .v57Live .v55InputCard .v55FourFields{width:92%!important}
}
/* A little air between GIR and Next button; existing saved/GIR divider is retained. */
.v57Live .v55InputCard .v72ActionRow{column-gap:clamp(6px,1.9vw,11px)!important}
.v57Live .v55InputCard .v72Gir{margin-right:4px!important}
@media(max-width:355px){.v57Live .v55InputCard .v72ActionRow{column-gap:4px!important}.v57Live .v55InputCard .v72Gir{margin-right:2px!important}}
/* Records popup: smaller numbers, slimmer cards, native internal scroll. */
#modalBox.v390BottomSheet:has(.v43318Sheet){max-height:min(83dvh,700px)!important;overflow-y:auto!important;overscroll-behavior:contain!important}
#modalBox.v390BottomSheet .v43318Sheet .v390PlayerTabs{margin-bottom:4px!important}
#modalBox.v390BottomSheet .v43318Sheet .v390PlayerTabs button{min-height:30px!important;height:30px!important}
#modalBox.v390BottomSheet .v43318Sheet .v43318Headline{min-height:42px!important;padding:5px 10px!important;margin-bottom:4px!important}
#modalBox.v390BottomSheet .v43318Sheet .v43318StatGrid{margin-bottom:4px!important}
#modalBox.v390BottomSheet .v43318Sheet .v43318StatGrid .v43318Stat{height:43px!important;min-height:43px!important;padding:3px 2px!important}
#modalBox.v390BottomSheet .v43318Sheet .v43318Stat b{font-size:16px!important;line-height:1.05!important}
#modalBox.v390BottomSheet .v43318Sheet .v43318Stat small{font-size:9px!important}
#modalBox.v390BottomSheet .v43318Sheet .v43318Types{margin-bottom:4px!important}
#modalBox.v390BottomSheet .v43318Sheet .v43318Types>div{height:31px!important;min-height:31px!important}
#modalBox.v390BottomSheet .v43318Sheet .v43318Types b{font-size:14px!important;line-height:1!important}
#modalBox.v390BottomSheet .v43318Sheet .v43318Scorecard{padding:6px 6px!important}
/* Settlement popup: visually balanced columns, no right-edge crowding. */
#modalBox.v390BottomSheet .v43320Settlement .v349SetHead,
#modalBox.v390BottomSheet .v43320Settlement .v349SetRow{
 grid-template-columns:36% 32% 32%!important;padding-inline:clamp(14px,4vw,22px)!important;
 column-gap:0!important;box-sizing:border-box!important;
}
#modalBox.v390BottomSheet .v43320Settlement .v349SetHead>*:not(:first-child),
#modalBox.v390BottomSheet .v43320Settlement .v349SetRow>*:not(:first-child){justify-content:center!important;text-align:center!important}
/* My Play score and penalties black in expanded state. */
.v57Live .v390MyCard:not(.is-collapsed) .v390Identity b,
.v57Live .v390MyCard:not(.is-collapsed) .v390Metric.v396Penalty b,
.v57Live .v390MyCard:not(.is-collapsed) .v390MyTop .v396Penalty b{color:#111827!important;-webkit-text-fill-color:#111827!important}
