/* ==========================================================
   NextFrame 7.5.0 — responsive/mobile system
   Desktop presentation is intentionally untouched. All major
   layout changes below are isolated to phone/tablet breakpoints.
   ========================================================== */

/* Intentional desktop-safe polish requested for this release. */
.nf-stat-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;display:block}
.league-dashboard-actions-only{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin:0 0 16px}
.entry-summary-centered{margin:0 auto 16px!important;width:min(720px,100%)!important;max-width:720px!important;align-items:center!important;text-align:center!important}
.nf-mobile-appbar,.nf-mobile-nav-backdrop,.nf-home-mobile-appbar,.nf-home-backdrop{display:none}

@media (max-width:820px){
  html,body{max-width:100%;overflow-x:hidden!important}
  body.gts-app-body{min-width:0!important;background:#050b10!important}
  .gts-app-shell{padding-top:60px!important;min-width:0!important;overflow-x:hidden!important}

  /* ----- Mobile application bar ----- */
  .nf-mobile-appbar{
    position:fixed;display:flex;align-items:center;justify-content:space-between;
    top:0;left:0;right:0;height:60px;padding:8px 12px;z-index:5100;
    background:rgba(5,14,22,.97);border-bottom:1px solid #244257;
    box-shadow:0 8px 24px rgba(0,0,0,.35);backdrop-filter:blur(14px)
  }
  .nf-mobile-menu-toggle,.nf-home-menu-toggle{
    width:42px;height:42px;border:1px solid #2d5067;border-radius:10px;background:#0b1b27;
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:0;cursor:pointer
  }
  .nf-mobile-menu-toggle span,.nf-home-menu-toggle span{display:block;width:20px;height:2px;border-radius:4px;background:#eaf5fb}
  .nf-mobile-brand{display:flex;align-items:center;justify-content:center;height:45px;max-width:160px}
  .nf-mobile-brand img{display:block;width:auto;height:43px;max-width:155px;object-fit:contain}
  .nf-mobile-live-link{display:grid;place-items:center;min-width:46px;height:36px;padding:0 9px;border:1px solid #235a79;border-radius:9px;background:#092237;color:#4eb9ff;text-decoration:none;font-size:10px;font-weight:950;letter-spacing:.06em}

  /* ----- Sidebar becomes an off-canvas menu ----- */
  .gts-main-sidebar{
    position:fixed!important;left:0!important;top:0!important;bottom:0!important;
    width:min(86vw,340px)!important;max-width:340px!important;height:100dvh!important;
    padding:12px 12px 24px!important;z-index:5300!important;overflow-y:auto!important;
    transform:translateX(-105%);transition:transform .24s ease!important;
    box-shadow:18px 0 52px rgba(0,0,0,.55)!important
  }
  body.nf-mobile-nav-open .gts-main-sidebar{transform:translateX(0)}
  .nf-mobile-nav-backdrop{
    display:block;position:fixed;inset:0;z-index:5200;background:rgba(0,0,0,.68);
    opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s ease
  }
  body.nf-mobile-nav-open .nf-mobile-nav-backdrop{opacity:1;visibility:visible}
  body.nf-mobile-nav-open{overflow:hidden!important}
  .gts-main-sidebar .v627-side-logo{min-height:112px!important;height:auto!important;padding:10px 8px 14px!important;margin-bottom:6px!important}
  .gts-main-sidebar .v627-side-logo img{width:170px!important;max-width:72%!important;height:92px!important;max-height:92px!important;object-fit:contain!important}
  .gts-main-sidebar nav a,.gts-main-sidebar nav button{min-height:48px!important;font-size:13px!important}
  .gts-main-sidebar nav a span,.gts-main-sidebar nav button span{font-size:17px!important}
  .gts-sidebar-footer{margin-top:16px!important}

  /* ----- Hero/header becomes compact and full width ----- */
  .gts-app-header{
    position:relative!important;inset:auto!important;left:auto!important;right:auto!important;top:auto!important;
    width:100%!important;height:auto!important;min-height:0!important;margin:0!important;
    padding:20px 16px 16px!important;display:flex!important;flex-direction:column!important;
    align-items:stretch!important;justify-content:flex-start!important;gap:14px!important;overflow:visible!important;
    border-radius:0!important;border-left:0!important;border-right:0!important
  }
  .v627-global-hero-art{inset:0!important;background-position:center center!important;opacity:.82!important}
  .v629-global-hero-copy{width:100%!important;max-width:none!important;min-width:0!important;position:relative!important;z-index:2!important}
  .v629-global-hero-copy>span{font-size:13px!important;letter-spacing:.07em!important}
  .v629-global-hero-copy>strong{font-size:clamp(28px,9vw,38px)!important;line-height:1.02!important;margin:5px 0 8px!important;overflow-wrap:anywhere!important;word-break:normal!important}
  .v629-global-hero-copy>small{font-size:12px!important;line-height:1.45!important;max-width:100%!important;margin-top:6px!important;white-space:normal!important}
  .v627-global-user,.v71-user-menu{width:100%!important;min-width:0!important;max-width:none!important;padding:0!important;margin:0!important;background:rgba(5,16,24,.88)!important}
  .v627-global-user>summary,.v71-user-menu>summary{display:grid!important;grid-template-columns:40px minmax(0,1fr) 18px!important;align-items:center!important;gap:10px!important;padding:10px 12px!important;min-height:58px!important}
  .v627-global-avatar{width:38px!important;height:38px!important}
  .v627-global-user strong{font-size:13px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .v627-global-user small{font-size:10px!important}
  .v71-user-dropdown{position:absolute!important;left:0!important;right:0!important;top:calc(100% + 6px)!important;width:100%!important;min-width:0!important;z-index:5600!important}

  /* ----- Main area: always full-width ----- */
  .gts-app-main{margin-left:0!important;padding-top:0!important;width:100%!important;min-width:0!important;overflow:visible!important}
  .gts-content-area{width:100%!important;max-width:none!important;padding:12px!important;min-width:0!important;overflow:visible!important}
  .gts-app-footer{font-size:9px!important;padding:15px 10px!important;text-align:center!important}

  /* ----- Workspace tabs ----- */
  .gts-top-menu,.gts-night-workflow-nav,.tournament-workspace-top{
    display:flex!important;grid-template-columns:none!important;align-items:stretch!important;gap:0!important;
    width:auto!important;max-width:none!important;height:auto!important;min-height:0!important;
    margin:10px 12px!important;border-radius:9px!important;overflow-x:auto!important;overflow-y:hidden!important;
    scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch!important
  }
  .gts-top-menu a,.gts-night-workflow-nav a,.tournament-workspace-top a{
    flex:0 0 auto!important;min-width:120px!important;width:auto!important;height:54px!important;min-height:54px!important;
    padding:7px 12px!important;scroll-snap-align:start;font-size:9px!important;white-space:nowrap!important
  }
  .gts-top-menu a span{font-size:18px!important}
  .gts-top-menu::-webkit-scrollbar,.gts-night-workflow-nav::-webkit-scrollbar{height:3px}

  /* ----- League-night header ----- */
  .gts-league-night-header{
    display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;
    width:auto!important;margin:10px 12px!important;padding:15px!important;min-width:0!important
  }
  .gts-league-header-copy,.gts-league-header-center,.gts-league-header-tools{width:100%!important;min-width:0!important;justify-content:flex-start!important}
  .gts-league-header-copy h1{font-size:26px!important;line-height:1.08!important;margin:5px 0!important;overflow-wrap:anywhere!important}
  .gts-league-header-copy p{font-size:12px!important;line-height:1.45!important}
  .gts-league-header-kicker,.gts-league-header-meta{display:flex!important;gap:6px!important;flex-wrap:wrap!important;font-size:9px!important}
  .gts-event-actions{width:100%!important;justify-content:flex-start!important;gap:7px!important;margin-top:3px!important}
  .gts-event-actions form{flex:1 1 150px!important}
  .gts-event-actions form button,.gts-event-actions>a{width:100%!important;min-height:42px!important}
  .header-status-pair{flex:1 1 110px!important;min-width:0!important}

  /* ----- Generic pages/cards/forms ----- */
  .page-heading,.local-page-heading,.section-title,.pro-night-title,.pro-toolbar,.refund-head,.payout-head{
    display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;width:100%!important;min-width:0!important
  }
  .page-heading h1,.local-page-heading h1{font-size:28px!important;line-height:1.08!important;overflow-wrap:anywhere!important}
  .page-heading p,.local-page-heading p{font-size:12px!important;line-height:1.45!important}
  .button-group,.action-row,.league-season-actions,.night-header-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important;width:100%!important}
  .button-group .button,.action-row .button,.league-season-actions .button{flex:1 1 150px!important;text-align:center!important;min-height:43px!important}
  .card,.summary-card,.readiness-card,.leaderboard-card,.refund-person,.payout-person{max-width:100%!important;min-width:0!important;padding:15px!important}
  .form-grid,.form-grid.two,.form-grid.three,.edit-night-form,.custom-coordinator-form,.pro-summary-grid,.readiness-grid,.sidepot-category-grid,.season-activity-grid,.season-at-glance,.retained-coordinator-combined .combined-credit-row{grid-template-columns:1fr!important}
  input,select,textarea,.gts-content-area input,.gts-content-area select,.gts-content-area textarea{max-width:100%!important;min-width:0!important;width:100%!important;font-size:16px!important}
  label{min-width:0!important}
  .table-wrap,.web-bracket-canvas,.clean-bracket-canvas,.payout-table-wrap{max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important}
  .table-wrap table{min-width:720px!important}
  .bulk-entry-table{min-width:1050px!important}
  .clean-bracket-canvas,.web-bracket-canvas{min-width:760px!important}

  /* ----- League dashboard/list ----- */
  .league-dashboard-actions-only{justify-content:stretch!important;margin:0 0 12px!important}
  .league-dashboard-actions-only .button{flex:1 1 145px!important;text-align:center!important}
  .v633-season-grid,.league-card-grid,.gts-home-dashboard-grid{grid-template-columns:1fr!important;gap:12px!important}
  .season-mini-stats{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important}
  .current-night-control-row,.current-night-copy,.current-night-actions,.current-night-stats,.upcoming-night-row,.upcoming-night-status{width:100%!important;min-width:0!important}
  .current-night-control-row,.upcoming-night-row{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important}
  .current-night-stats{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
  .current-live-control button{width:100%!important}

  /* ----- Entry/edit page ----- */
  .pro-entry-page,.pro-form-card,.pro-payment-card{width:100%!important;max-width:100%!important;min-width:0!important}
  .entry-summary-centered{width:100%!important;max-width:100%!important;margin:0 0 12px!important;align-items:center!important;text-align:center!important}
  .entry-edit-bowler-summary strong{font-size:18px!important}.entry-edit-bowler-summary span{font-size:11px!important}
  .pro-sidepot-list,.entry-list,.sidepot-quick-select,.sidepot-quick-buttons,.payment-area{grid-template-columns:1fr!important;display:grid!important;gap:9px!important}
  .sidepot-entry,.entry-row{grid-template-columns:1fr!important;gap:8px!important;padding:13px!important}
  .qty-field{justify-content:space-between!important}.qty-field input{width:92px!important;max-width:92px!important}
  .quick-select-btn{min-height:42px!important}

  /* ----- Score/sidepot/result admin pages ----- */
  .gts-night-overview,.score-status-grid,.bowler-game-grid,.high-game-all-results,.high-game-results-pair,.high-game-payout-pair,.elim-three-games,.eliminator-round-grid,.blind-status-grid,.bracket-status-grid,.payout-readable-grid,.leaderboard-grid{grid-template-columns:1fr!important}
  .night-filters{min-width:0!important;width:100%!important}.night-filters .filter-row{display:grid!important;grid-template-columns:1fr!important}.night-filters .filter-row input,.night-filters .filter-row select{width:100%!important;min-width:0!important}
  .entry-action-row{justify-content:flex-start!important;flex-wrap:wrap!important}
  .payout-head{grid-template-columns:1fr!important}

  /* ----- Help, settings, account and super admin ----- */
  .v740-help-grid,.stat-grid,.form-grid,.v740-admin-mode-bar{grid-template-columns:1fr!important}
  .v740-admin-mode-bar{display:flex!important;flex-direction:column!important;align-items:stretch!important}
  .v740-admin-mode-bar .button,.v740-admin-mode-bar button{width:100%!important}
  .v745-sandbox-banner,.v71-support-banner{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important}
  .v745-sandbox-banner form,.v745-sandbox-banner button{width:100%!important}

  /* ----- Public / NextFrame Live ----- */
  .public-global-nav{position:relative!important;min-height:54px!important;padding:0 10px!important;display:flex!important;gap:8px!important;overflow:hidden!important}
  .public-nav-brand img{max-width:100px!important;max-height:48px!important}
  .public-global-nav nav{display:flex!important;overflow-x:auto!important;white-space:nowrap!important;flex:1!important;-webkit-overflow-scrolling:touch!important}
  .public-global-nav nav a{padding:17px 10px!important;font-size:10px!important}
  .public-nav-powered{display:none!important}
  .public-page-root{width:100%!important;max-width:100%!important;padding-left:10px!important;padding-right:10px!important;overflow-x:hidden!important}
  .public-tabs{display:flex!important;overflow-x:auto!important;flex-wrap:nowrap!important;gap:5px!important;-webkit-overflow-scrolling:touch!important}
  .public-tab{flex:0 0 auto!important;white-space:nowrap!important}
  .live-results-hero,.public-event-hero,.public-portal-hero{padding:14px!important;border-radius:12px!important}
  .live-brand-block{display:grid!important;grid-template-columns:60px 1fr!important;gap:10px!important}.live-results-logo{width:60px!important;height:60px!important}
  .live-brand-block h1{font-size:22px!important;line-height:1.1!important}.live-brand-block p{font-size:11px!important}
  .live-hero-actions{display:flex!important;flex-direction:column!important;align-items:stretch!important}.live-history-button{text-align:center!important}

  /* ----- Dialogs ----- */
  dialog,.gts-help-dialog,.v740-welcome-dialog{width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;padding:18px!important}
}

/* ==========================================================
   Home dashboard phone layout — standalone template
   ========================================================== */
@media (max-width:820px){
  body.v749-body{padding-top:60px!important;overflow-x:hidden!important}
  .nf-home-mobile-appbar{
    position:fixed;display:flex;align-items:center;justify-content:space-between;top:0;left:0;right:0;height:60px;padding:8px 12px;z-index:5100;
    background:rgba(5,14,22,.98);border-bottom:1px solid #244257;box-shadow:0 8px 24px rgba(0,0,0,.35)
  }
  .nf-home-mobile-appbar img{height:43px;width:auto;max-width:160px;object-fit:contain}
  .nf-home-mobile-appbar>a{display:grid;place-items:center;height:36px;min-width:46px;padding:0 9px;border:1px solid #235a79;border-radius:9px;background:#092237;color:#4eb9ff;font-size:10px;font-weight:950;text-decoration:none}
  .nf-home-backdrop{display:block;position:fixed;inset:0;z-index:5200;background:#000a;opacity:0;visibility:hidden;transition:.2s}
  body.nf-home-nav-open .nf-home-backdrop{opacity:1;visibility:visible}
  .v749-shell{display:block!important;min-width:0!important;width:100%!important}
  .v749-sidebar{
    position:fixed!important;left:0!important;top:0!important;bottom:0!important;width:min(86vw,340px)!important;height:100dvh!important;z-index:5300!important;
    transform:translateX(-105%);transition:transform .24s ease!important;overflow-y:auto!important;padding:14px 12px 24px!important
  }
  body.nf-home-nav-open .v749-sidebar{transform:translateX(0)}
  body.nf-home-nav-open{overflow:hidden!important}
  .v749-brand{min-height:105px!important;padding:8px!important}.v749-brand img{width:165px!important;max-height:92px!important}
  .v749-nav a{min-height:48px!important;font-size:13px!important}
  .v749-main{width:100%!important;max-width:none!important;padding:12px!important;margin:0!important}
  .v749-hero{min-height:0!important;height:auto!important;padding:20px 16px 16px!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:14px!important;border-radius:12px!important;background-position:center!important}
  .v749-hero-copy{width:100%!important;max-width:100%!important}.v749-hero-copy>span{font-size:13px!important}.v749-hero-copy h1{font-size:clamp(30px,10vw,42px)!important;line-height:1!important;margin:7px 0 10px!important}.v749-hero-copy p{font-size:12.5px!important;line-height:1.45!important;max-width:100%!important}.v749-hero-copy br{display:none!important}
  .v749-account{position:relative!important;right:auto!important;top:auto!important;width:100%!important;min-width:0!important;max-width:none!important;align-self:stretch!important}.v749-account summary{min-height:58px!important;padding:10px 12px!important}.v749-account-menu{left:0!important;right:0!important;width:100%!important;min-width:0!important}
  .v749-metrics{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin:12px 0!important}.v749-metrics>a{min-height:100px!important;padding:13px!important;gap:10px!important}.v749-metrics>a:last-child{grid-column:1/-1!important}.v749-metrics i{width:42px!important;height:42px!important;min-width:42px!important}.v749-metrics .nf-stat-icon svg{width:22px!important;height:22px!important}.v749-metrics small{font-size:9px!important}.v749-metrics strong{font-size:28px!important}.v749-metrics span{font-size:9px!important;margin-top:4px!important}
  .v749-content-grid,.v749-feature-row,.v749-rail{display:grid!important;grid-template-columns:1fr!important;gap:11px!important;width:100%!important}
  .v749-feature-zone{min-width:0!important}.v749-feature{min-height:270px!important;height:270px!important;border-radius:12px!important;overflow:hidden!important}.v7418-feature .v7418-card-bg{display:block!important;object-fit:cover!important;object-position:center!important}.v7418-feature .v7418-card-shade{display:block!important;background:linear-gradient(90deg,rgba(3,11,18,.98),rgba(3,11,18,.85) 46%,rgba(3,11,18,.34) 75%,rgba(3,11,18,.18))!important}.v7418-feature.v749-tournament .v7418-card-shade{background:linear-gradient(90deg,rgba(13,7,17,.98),rgba(13,7,17,.86) 48%,rgba(13,7,17,.37) 76%,rgba(13,7,17,.18))!important}.v7418-feature .v749-feature-copy{width:100%!important;min-height:270px!important;height:270px!important;padding:20px!important;justify-content:flex-start!important}.v7418-feature .v749-feature-copy>span{font-size:9px!important}.v7418-feature h2{font-size:26px!important;margin:7px 0 8px!important}.v7418-feature p{font-size:12px!important;line-height:1.42!important;max-width:72%!important;margin:0!important}.v7418-feature p br{display:none!important}.v7418-feature .v749-count,.v7418-feature .v749-upgrade{margin-top:auto!important;max-width:190px!important;min-height:48px!important}.v7418-feature .v749-button{min-height:46px!important;height:46px!important;max-width:270px!important;margin-top:9px!important;font-size:11px!important}
  .v749-rail-card{min-height:0!important;padding:16px!important}.v749-rail-card h3{font-size:22px!important;margin:13px 0 5px!important}.v749-rail-card p{font-size:12px!important}.v749-empty{padding:18px 5px!important}
  .v7412-live-banner{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;text-align:center!important;padding:16px!important;min-height:0!important}.v7412-live-copy strong{font-size:15px!important}.v7412-live-copy p{font-size:11px!important}.v7412-live-logo{width:180px!important;max-height:68px!important;justify-self:center!important;transform:none!important}.v7412-live-action{justify-self:center!important;font-size:11px!important;white-space:normal!important}.v7412-live-action>b{width:32px!important;height:32px!important;font-size:22px!important}
  .v749-footer{font-size:10px!important;padding:14px 0!important;margin-top:10px!important}
}

@media (max-width:430px){
  .v749-metrics{grid-template-columns:1fr 1fr!important}
  .v749-metrics>a{padding:11px!important;min-height:94px!important}.v749-metrics i{width:38px!important;height:38px!important;min-width:38px!important}.v749-metrics strong{font-size:25px!important}
  .v7418-feature{height:255px!important;min-height:255px!important}.v7418-feature .v749-feature-copy{height:255px!important;min-height:255px!important;padding:17px!important}.v7418-feature h2{font-size:23px!important}.v7418-feature p{font-size:11.5px!important;max-width:76%!important}
  .season-mini-stats,.current-night-stats{grid-template-columns:1fr!important}
}

/* ==========================================================
   NextFrame 7.5.1 — phone layout correction pass
   Desktop remains untouched. These rules intentionally win
   over legacy desktop/sidebar rules at phone widths.
   ========================================================== */
@media (max-width:820px){
  /* Hard reset any legacy desktop rail geometry that survived 7.5.0. */
  html,body{width:100%!important;max-width:100%!important;overflow-x:hidden!important}
  body.gts-app-body{width:100%!important;max-width:100%!important;margin:0!important;padding:0!important}
  .gts-app-shell{
    display:block!important;position:relative!important;width:100%!important;max-width:100vw!important;
    min-width:0!important;margin:0!important;padding:60px 0 0!important;overflow-x:hidden!important
  }
  .gts-app-main{
    display:block!important;position:relative!important;left:0!important;right:auto!important;top:auto!important;
    width:100%!important;max-width:100vw!important;min-width:0!important;
    margin:0!important;margin-left:0!important;padding:0!important;padding-top:0!important;
    transform:none!important;overflow-x:hidden!important
  }
  .gts-content-area{
    display:block!important;position:relative!important;left:0!important;width:100%!important;max-width:100%!important;
    min-width:0!important;margin:0!important;padding:12px!important;box-sizing:border-box!important;overflow-x:hidden!important
  }
  .gts-app-header{
    left:0!important;right:auto!important;transform:none!important;width:100%!important;max-width:100vw!important;
    margin:0!important;box-sizing:border-box!important
  }
  .gts-main-sidebar{
    margin:0!important;right:auto!important;max-width:min(86vw,340px)!important;box-sizing:border-box!important
  }
  .gts-top-menu,.gts-night-workflow-nav,.tournament-workspace-top,.gts-league-night-header{
    max-width:calc(100vw - 24px)!important;box-sizing:border-box!important
  }

  /* League and league-night pages must start at the left edge, never in the old desktop column. */
  body.gts-app-body .page,
  body.gts-app-body .container,
  body.gts-app-body .content,
  body.gts-app-body .league-page,
  body.gts-app-body .league-dashboard,
  body.gts-app-body .league-dashboard-page,
  body.gts-app-body .league-night-page,
  body.gts-app-body [class*="league-dashboard"],
  body.gts-app-body [class*="league-page"]{
    left:0!important;right:auto!important;transform:none!important;margin-left:0!important;
    max-width:100%!important;min-width:0!important;box-sizing:border-box!important
  }

  /* Compact command-center header on phone. */
  .gts-app-header{padding:14px 12px 12px!important;gap:9px!important}
  .v629-global-hero-copy>span{font-size:10px!important;letter-spacing:.08em!important}
  .v629-global-hero-copy>strong{font-size:clamp(24px,7.7vw,32px)!important;margin:3px 0 5px!important;line-height:1.04!important}
  .v629-global-hero-copy>small{font-size:11px!important;line-height:1.32!important;margin-top:3px!important}
  .v627-global-user>summary,.v71-user-menu>summary{min-height:50px!important;padding:7px 9px!important;grid-template-columns:34px minmax(0,1fr) 16px!important;gap:8px!important}
  .v627-global-avatar{width:32px!important;height:32px!important;font-size:11px!important}
  .v627-global-user strong{font-size:12px!important}.v627-global-user small{font-size:9px!important}

  /* League workspace tabs: visible, compact and intentionally scrollable. */
  .gts-top-menu,.gts-night-workflow-nav{
    margin:8px 10px!important;width:calc(100% - 20px)!important;max-width:calc(100% - 20px)!important;
    scroll-padding-left:0!important
  }
  .gts-top-menu a,.gts-night-workflow-nav a{
    min-width:108px!important;height:48px!important;min-height:48px!important;padding:6px 9px!important;font-size:8px!important
  }
  .gts-top-menu a b,.gts-night-workflow-nav a b{font-size:8px!important}

  /* Common grids/rows on league dashboards must never preserve desktop columns. */
  .league-dashboard-grid,.league-dashboard-layout,.league-dashboard-main,.league-dashboard-content,
  .league-grid,.league-list,.league-list-grid,.league-season-grid,.league-actions-grid,
  .money-leaders-grid,.current-night-grid,.night-overview-grid,.nightly-overview-grid,
  .dashboard-grid,.dashboard-main-grid,.overview-grid,.main-grid{
    width:100%!important;max-width:100%!important;min-width:0!important;grid-template-columns:1fr!important;
    margin-left:0!important;transform:none!important;gap:10px!important
  }

  /* Mobile cards/forms must stay within the viewport. */
  .gts-content-area>*{max-width:100%!important;box-sizing:border-box!important}
  .gts-content-area .card,.gts-content-area .summary-card,.gts-content-area .league-card,
  .gts-content-area .readiness-card,.gts-content-area .leaderboard-card,.gts-content-area form,
  .gts-content-area fieldset{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
  .gts-content-area table{max-width:100%!important}
  .gts-content-area .table-wrap,.gts-content-area .table-responsive,.gts-content-area [class*="table-wrap"]{
    width:100%!important;max-width:100%!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important
  }
}

/* Home/dashboard: compact purpose-built phone cards rather than tall desktop cards. */
@media (max-width:820px){
  body.v749-body{padding-top:60px!important}
  .v749-main{padding:9px!important}
  .v749-hero{padding:14px 13px 12px!important;gap:9px!important}
  .v749-hero-copy>span{font-size:10px!important}
  .v749-hero-copy h1{font-size:clamp(27px,8vw,34px)!important;margin:4px 0 6px!important}
  .v749-hero-copy p{font-size:11px!important;line-height:1.34!important;margin:0!important}
  .v749-account summary{min-height:50px!important;padding:7px 9px!important}

  .v749-metrics{gap:7px!important;margin:8px 0 9px!important}
  .v749-metrics>a{min-height:82px!important;padding:9px 10px!important;gap:8px!important}
  .v749-metrics i{width:34px!important;height:34px!important;min-width:34px!important}
  .v749-metrics .nf-stat-icon svg{width:19px!important;height:19px!important}
  .v749-metrics small{font-size:8px!important}.v749-metrics strong{font-size:23px!important;line-height:1!important}.v749-metrics span{font-size:8px!important}

  .v749-feature-row{gap:9px!important}
  .v749-feature.v7418-feature{
    position:relative!important;height:205px!important;min-height:205px!important;max-height:205px!important;
    overflow:hidden!important;border-radius:12px!important
  }
  .v7418-feature .v7418-card-bg{
    display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
    object-fit:cover!important;object-position:72% center!important;opacity:.78!important
  }
  .v7418-feature.v749-tournament .v7418-card-bg{object-position:70% center!important}
  .v7418-feature .v7418-card-shade{
    display:block!important;position:absolute!important;inset:0!important;
    background:linear-gradient(90deg,rgba(3,11,18,.99) 0%,rgba(3,11,18,.94) 45%,rgba(3,11,18,.54) 66%,rgba(3,11,18,.18) 100%)!important
  }
  .v7418-feature.v749-tournament .v7418-card-shade{
    background:linear-gradient(90deg,rgba(13,7,17,.99) 0%,rgba(13,7,17,.94) 47%,rgba(13,7,17,.56) 67%,rgba(13,7,17,.18) 100%)!important
  }
  .v7418-feature .v749-feature-copy{
    position:relative!important;z-index:2!important;width:72%!important;max-width:72%!important;
    min-height:205px!important;height:205px!important;padding:14px 13px!important;justify-content:flex-start!important
  }
  .v7418-feature .v749-feature-copy>span{font-size:7.5px!important;letter-spacing:.06em!important}
  .v7418-feature h2{font-size:20px!important;line-height:1.03!important;margin:4px 0 5px!important}
  .v7418-feature h2 em{font-size:8px!important;padding:2px 5px!important}
  .v7418-feature p{font-size:10px!important;line-height:1.28!important;max-width:100%!important;margin:0!important}
  .v7418-feature .v749-count,.v7418-feature .v749-upgrade{
    margin-top:auto!important;min-height:35px!important;max-width:145px!important;padding:5px 8px!important
  }
  .v7418-feature .v749-count strong{font-size:20px!important}.v7418-feature .v749-count small{font-size:7px!important}
  .v7418-feature .v749-upgrade{font-size:8px!important;line-height:1.2!important}
  .v7418-feature .v749-button{
    min-height:38px!important;height:38px!important;max-width:220px!important;margin-top:6px!important;padding:0 9px!important;font-size:9px!important
  }
  .v749-rail-card{padding:14px!important}
}

@media (max-width:430px){
  .v749-feature.v7418-feature{height:194px!important;min-height:194px!important;max-height:194px!important}
  .v7418-feature .v749-feature-copy{height:194px!important;min-height:194px!important;width:75%!important;max-width:75%!important;padding:12px!important}
  .v7418-feature h2{font-size:18px!important}.v7418-feature p{font-size:9.5px!important}
}

/* ==========================================================
   NextFrame 7.5.3 — mobile production polish
   Phone-only refinements. Desktop presentation is locked.
   ========================================================== */
@media (max-width:820px){
  :root{--nf-mobile-bar:74px}
  body.gts-app-body{padding:0!important}
  .gts-app-shell{padding-top:var(--nf-mobile-bar)!important}
  .nf-mobile-appbar{
    height:var(--nf-mobile-bar)!important;padding:8px 14px!important;
    background:rgba(4,13,20,.985)!important;border-bottom-color:#26485d!important
  }
  .nf-mobile-menu-toggle{width:46px!important;height:46px!important;border-radius:11px!important}
  .nf-mobile-menu-toggle span{width:22px!important;height:2px!important}
  .nf-mobile-brand{height:62px!important;max-width:220px!important;flex:1!important}
  .nf-mobile-brand img{height:60px!important;max-height:60px!important;max-width:210px!important;width:auto!important}
  .nf-mobile-live-link{min-width:58px!important;height:44px!important;border-radius:10px!important;font-size:12px!important}

  /* Keep all admin content physically below the fixed phone bar. */
  .gts-app-main,.gts-app-header,.gts-content-area{scroll-margin-top:calc(var(--nf-mobile-bar) + 8px)!important}
  .gts-app-header{padding:12px 12px 10px!important;gap:8px!important}
  .v629-global-hero-copy>strong{font-size:clamp(24px,7.6vw,31px)!important}
  .v629-global-hero-copy>small{font-size:10.5px!important;line-height:1.3!important}
  .v627-global-user>summary,.v71-user-menu>summary{min-height:47px!important;padding:6px 9px!important}

  /* Workspace bars must begin cleanly and scroll end-to-end. */
  .gts-top-menu,.gts-night-workflow-nav,.tournament-workspace-top{
    width:calc(100% - 20px)!important;max-width:calc(100% - 20px)!important;
    margin:8px 10px!important;padding:0 2px!important;overflow-x:auto!important;overscroll-behavior-x:contain!important;
    scroll-padding-inline:2px!important;justify-content:flex-start!important
  }
  .gts-top-menu a,.gts-night-workflow-nav a,.tournament-workspace-top a{
    flex:0 0 118px!important;min-width:118px!important;max-width:118px!important;
    height:50px!important;min-height:50px!important;padding:6px 8px!important;overflow:hidden!important;text-overflow:ellipsis!important
  }
  .gts-top-menu a:first-child,.gts-night-workflow-nav a:first-child{margin-left:0!important}
  .gts-top-menu a:last-child,.gts-night-workflow-nav a:last-child{margin-right:2px!important}

  /* League dashboard: compact action row and season information. */
  .league-dashboard-actions-only{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin:8px 0 10px!important}
  .league-dashboard-actions-only .button{min-height:42px!important;width:100%!important;padding:8px!important;font-size:11px!important}
  .v633-season-grid{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
  .v633-money-card{min-height:0!important;padding:15px!important}
  .v633-money-card .section-title{margin-bottom:6px!important}
  .v633-money-card .empty-state.compact{min-height:0!important;padding:24px 8px!important;font-size:14px!important}
  .season-activity-card{padding:15px!important}
  .season-activity-card>.eyebrow{text-align:center!important;margin:0 0 12px!important}
  .season-activity-grid.season-at-glance{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;
    width:min(100%,360px)!important;margin:0 auto 10px!important
  }
  .season-activity-grid.season-at-glance>div{padding:12px 7px!important;min-height:92px!important;display:flex!important;flex-direction:column!important;justify-content:center!important}
  .season-activity-grid.season-at-glance strong{font-size:25px!important;line-height:1.05!important}
  .season-activity-grid.season-at-glance span{font-size:9px!important;margin-top:7px!important}
  .season-mini-stats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin-top:8px!important}
  .season-mini-stats span{padding:8px 6px!important;min-width:0!important;font-size:9px!important;text-align:center!important}
  .v633-sidepots-card{padding:15px!important}
  .v633-sidepots-card .sidepot-category-grid{grid-template-columns:1fr 1fr!important;gap:10px!important}

  /* League-night shell: get to the operational controls faster. */
  .gts-league-night-header{margin:8px 10px!important;padding:12px!important;gap:8px!important}
  .gts-league-header-copy h1{font-size:23px!important;margin:2px 0 4px!important}
  .gts-league-header-copy p{font-size:10.5px!important;line-height:1.3!important;margin:0!important}
  .gts-league-header-meta{font-size:8.5px!important;margin-top:4px!important}
  .night-header-workflow{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;width:100%!important}
  .workflow-step{min-height:40px!important;padding:6px 8px!important;font-size:9px!important}
  .night-header-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;width:100%!important}
  .night-header-actions>*{width:100%!important;min-height:40px!important}
  .gts-event-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important}
  .gts-event-actions .header-status-pair{min-height:48px!important;padding:7px 9px!important}
  .gts-event-actions form{grid-column:1/-1!important;width:100%!important}
  .gts-event-actions form button{min-height:42px!important}

  .night-start-banner{display:grid!important;grid-template-columns:auto 1fr!important;align-items:center!important;gap:10px!important;padding:12px!important;margin:10px 0!important;min-height:0!important}
  .night-start-banner form{margin:0!important}.night-start-button{min-height:44px!important;padding:8px 13px!important;font-size:13px!important}
  .night-start-banner>span{font-size:11px!important;line-height:1.35!important}
  .night-parent-link{margin:8px 0!important}.night-parent-link .button{min-height:40px!important;padding:8px 12px!important}
  .nf-night-alerts{padding:14px!important;margin:10px 0!important}
  .nf-night-alert-title{display:block!important}.nf-night-alert-title strong{font-size:12px!important}.nf-night-alert-title span{font-size:10px!important;margin-top:3px!important;display:block!important}
  .nf-alert-grid{gap:7px!important;margin-top:10px!important}.nf-night-alert{min-height:0!important;padding:10px!important;grid-template-columns:30px 1fr auto!important}.nf-night-alert span{font-size:11px!important;line-height:1.35!important}
  .nf-public-share-card{display:grid!important;grid-template-columns:1fr 104px!important;gap:12px!important;padding:14px!important;margin:10px 0!important}
  .nf-public-share-card strong{font-size:18px!important}.nf-public-share-card small{font-size:10px!important;line-height:1.35!important}.nf-public-share-card img{width:96px!important;height:96px!important}

  /* League night KPI/overview cards. */
  .gts-night-overview{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;margin:10px 0!important}
  .gts-kpi-card{min-height:88px!important;padding:10px!important}.gts-kpi-card strong{font-size:20px!important}.gts-kpi-card small{font-size:8px!important;line-height:1.3!important}
  .coordinator-setup-card,.retained-ledger-card,.night-control-card{padding:14px!important}

  /* Entries list becomes real phone cards instead of a wide desktop table. */
  .pro-entries-card{padding:13px!important}
  .pro-entries-card>.section-title{display:block!important}.pro-entries-card .night-filters{width:100%!important;margin-top:10px!important}
  .pro-entries-card .filter-row,.pro-entries-card .entry-action-row{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important}
  .pro-entries-card .filter-row input,.pro-entries-card .filter-row select{grid-column:auto!important;min-height:42px!important}
  .pro-entries-card .entry-action-row>*{width:100%!important;margin:0!important}.pro-entries-card .entry-action-row .button,.pro-entries-card .entry-action-row button{width:100%!important;min-height:40px!important;font-size:10px!important}
  .pro-entries-card .table-wrap{overflow:visible!important}
  .pro-entries-card table,.pro-entries-card tbody{display:block!important;width:100%!important}
  .pro-entries-card thead{display:none!important}
  .pro-entries-card tbody tr{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px 10px!important;width:100%!important;margin:0 0 10px!important;padding:12px!important;border:1px solid #24495e!important;border-radius:11px!important;background:#091923!important;box-sizing:border-box!important}
  .pro-entries-card tbody td{display:block!important;width:auto!important;min-width:0!important;padding:0!important;border:0!important;font-size:10px!important}
  .pro-entries-card tbody td:nth-child(2){grid-column:1/-1!important;grid-row:1!important}
  .pro-entries-card tbody td:nth-child(1){grid-column:1/2!important}
  .pro-entries-card tbody td:nth-child(5),.pro-entries-card tbody td:nth-child(6),.pro-entries-card tbody td:nth-child(8){padding-top:5px!important}
  .pro-entries-card tbody td:nth-child(10){grid-column:1/-1!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;margin-top:5px!important}
  .pro-entries-card tbody td:nth-child(10)>a,.pro-entries-card tbody td:nth-child(10)>form{width:100%!important;margin:0!important}
  .pro-entries-card tbody td:nth-child(10) .mini-button{width:100%!important;min-height:38px!important;font-size:9px!important}
  .pro-entries-card tbody td:nth-child(11){grid-column:1/-1!important}.pro-entries-card tbody td:nth-child(11) button{width:100%!important;min-height:36px!important}
  .inline-lane-form{display:flex!important;gap:5px!important}.inline-lane-input{width:58px!important;min-width:58px!important;font-size:16px!important}.lane-save{min-height:36px!important}
  .bowler-cell-head{display:flex!important;justify-content:space-between!important;gap:6px!important;align-items:center!important}.bowler-cell-head strong{font-size:14px!important}.bowler-inline-edit{font-size:8px!important}

  /* Score Entry: dense game selector + safe horizontal score table. */
  .score-status-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;margin:8px 0!important}
  .score-status-card{min-height:82px!important;padding:9px!important;text-align:left!important}.score-status-card>span{font-size:10px!important}.score-status-card>strong{font-size:21px!important}.score-status-card>small{font-size:7.5px!important;line-height:1.25!important}
  .current-game-bar{min-height:54px!important;padding:8px 10px!important;margin:8px 0!important;gap:8px!important}.current-game-bar span{font-size:10px!important}.current-game-bar strong{font-size:18px!important}.current-game-bar .button{min-height:38px!important;padding:7px 10px!important;font-size:9px!important}
  .score-toolbar{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}.score-toolbar>div:first-child strong{font-size:18px!important}.score-toolbar>div:first-child span{font-size:10px!important}
  .score-live-controls{display:flex!important;flex-wrap:wrap!important;gap:6px!important;align-items:center!important}.live-save-indicator,.live-toggle-button,.publish-now-button{min-height:38px!important;padding:7px 11px!important;font-size:10px!important}.live-description{font-size:9px!important;flex:1 1 140px!important}
  .live-score-table{min-width:980px!important;width:max-content!important}
  .live-score-table th,.live-score-table td{white-space:nowrap!important;padding:8px!important}
  .live-score-table th:first-child,.live-score-table td:first-child{position:sticky!important;left:0!important;z-index:4!important;background:#0b1f2c!important}
  .live-score-table th:nth-child(2),.live-score-table td:nth-child(2){position:sticky!important;left:90px!important;z-index:3!important;background:#0b1f2c!important;min-width:150px!important}
  .live-score-table th:first-child{z-index:6!important}.live-score-table th:nth-child(2){z-index:5!important}
  .score-table+.mobile-scroll-hint{display:block!important}

  /* Entry edit: name card centered immediately over the sidepot section. */
  .entry-summary-centered{width:100%!important;max-width:100%!important;margin:0 auto 8px!important;padding:10px 12px!important;min-height:0!important}
  .entry-summary-centered strong{font-size:16px!important}.entry-summary-centered span{font-size:10px!important}
  .pro-entry-page .pro-form-card{padding:13px!important}.pro-entry-page .pro-section-title{margin-bottom:9px!important}.pro-sidepot-list{gap:7px!important}
}

/* Home dashboard phone pass: visibly shorter hero and tighter commercial cards. */
@media (max-width:820px){
  body.v749-body{padding-top:74px!important}
  .nf-home-mobile-appbar{height:74px!important;padding:8px 14px!important}
  .nf-home-mobile-appbar>img{height:60px!important;max-width:210px!important;width:auto!important}
  .nf-home-menu-toggle{width:46px!important;height:46px!important}.nf-home-mobile-appbar>a:last-child{height:44px!important;min-width:58px!important;font-size:12px!important}
  .v749-main{padding:8px!important}
  .v749-hero{min-height:285px!important;height:285px!important;padding:13px 12px!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important}
  .v749-hero-copy h1{font-size:clamp(27px,7.8vw,33px)!important;line-height:1!important;margin:3px 0 5px!important}
  .v749-hero-copy p{font-size:10.5px!important;line-height:1.3!important;max-width:96%!important}
  .v749-account{margin-top:8px!important}.v749-account summary{min-height:48px!important;padding:6px 9px!important}.v749-avatar{width:34px!important;height:34px!important;font-size:11px!important}
  .v749-metrics{gap:6px!important}.v749-metrics>a{min-height:76px!important;padding:8px!important}
  .v749-feature.v7418-feature{height:190px!important;min-height:190px!important;max-height:190px!important}.v7418-feature .v749-feature-copy{height:190px!important;min-height:190px!important;padding:11px!important}
  .v7418-feature h2{font-size:18px!important}.v7418-feature p{font-size:9px!important;line-height:1.24!important}.v7418-feature .v749-button{height:36px!important;min-height:36px!important}
}


/* ==========================================================
   NextFrame 7.5.5 — complete phone production pass (preserved for 7.5.6)
   All rules below are phone-only. Desktop is intentionally locked.
   ========================================================== */
@media (max-width:820px){
  html,body{max-width:100%;overflow-x:hidden!important}
  body.gts-app-body{padding-bottom:max(24px,env(safe-area-inset-bottom))!important}
  .gts-app-shell,.gts-app-main,.gts-content-area{width:100%!important;max-width:100%!important;min-width:0!important;margin-left:0!important;left:0!important;transform:none!important}
  .gts-app-main{padding-bottom:calc(30px + env(safe-area-inset-bottom))!important}

  /* App bar: larger brand without growing the whole bar. */
  :root{--nf-mobile-bar:78px}
  .nf-mobile-appbar{height:78px!important;min-height:78px!important;padding:7px 14px!important;grid-template-columns:54px minmax(0,1fr) 62px!important}
  .nf-mobile-brand{height:68px!important;display:flex!important;align-items:center!important;justify-content:center!important}
  .nf-mobile-brand img{height:66px!important;max-height:66px!important;max-width:245px!important;width:auto!important;object-fit:contain!important}
  .nf-mobile-menu-toggle{width:50px!important;height:50px!important}.nf-mobile-live-link{height:48px!important;min-width:60px!important}

  /* Heroes: eliminate ghost headings from inherited pseudo/layered text and reclaim vertical room. */
  .gts-app-header:before,.gts-app-header:after,.v627-global-hero-art:before,.v627-global-hero-art:after,.v629-global-hero-copy:before,.v629-global-hero-copy:after{content:none!important;display:none!important}
  .gts-app-header{min-height:0!important;height:auto!important;padding:14px 18px 16px!important;gap:10px!important;grid-template-columns:1fr!important;overflow:hidden!important}
  .v627-global-hero-art{inset:0!important;height:100%!important;min-height:0!important;opacity:.82!important}
  .v629-global-hero-copy{position:relative!important;z-index:2!important;min-width:0!important;max-width:100%!important;padding:0!important}
  .v629-global-hero-copy>span{font-size:10px!important;line-height:1.1!important;margin:0!important}
  .v629-global-hero-copy>strong{font-size:clamp(27px,8.4vw,38px)!important;line-height:.98!important;margin:5px 0 7px!important;white-space:normal!important;overflow-wrap:anywhere!important}
  .v629-global-hero-copy>small{display:block!important;font-size:11.5px!important;line-height:1.32!important;max-width:95%!important;margin:0!important}
  .v627-global-user,.v71-user-menu{position:relative!important;z-index:4!important;width:min(100%,380px)!important;max-width:100%!important;margin-top:2px!important;justify-self:start!important}
  .v627-global-user>summary,.v71-user-menu>summary{min-height:54px!important;padding:7px 10px!important}

  /* Workspace navigation must be truly scrollable from the first tab to the last. */
  .gts-top-menu,.gts-night-workflow-nav,.tournament-workspace-top{display:flex!important;width:calc(100% - 24px)!important;max-width:calc(100% - 24px)!important;margin:10px 12px!important;padding:0!important;overflow-x:auto!important;overflow-y:hidden!important;justify-content:flex-start!important;scroll-snap-type:x proximity!important;scroll-padding-inline:0!important;-webkit-overflow-scrolling:touch!important}
  .gts-top-menu:before,.gts-top-menu:after,.gts-night-workflow-nav:before,.gts-night-workflow-nav:after{content:"";flex:0 0 1px}
  .gts-top-menu a,.gts-night-workflow-nav a,.tournament-workspace-top a{flex:0 0 116px!important;min-width:116px!important;max-width:116px!important;height:52px!important;min-height:52px!important;padding:6px 8px!important;font-size:8px!important;white-space:normal!important;text-align:center!important;scroll-snap-align:start!important}
  .gts-section-top-menu a{flex-basis:25%!important;min-width:104px!important;max-width:none!important}

  /* League dashboard compact empty states and season cards. */
  .v633-money-card{min-height:0!important;padding:18px!important}.v633-money-card .section-title{margin-bottom:8px!important}.v633-money-card .empty-state.compact{min-height:90px!important;padding:24px 10px!important}
  .season-activity-card{padding:18px!important}.season-activity-card>.eyebrow{text-align:center!important;margin:0 0 14px!important}
  .season-activity-grid.season-at-glance{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;width:100%!important}
  .season-activity-grid.season-at-glance>div{min-height:108px!important;padding:14px 8px!important;display:grid!important;place-items:center!important;align-content:center!important}
  .season-activity-grid.season-at-glance strong{font-size:27px!important}.season-activity-grid.season-at-glance span{font-size:9px!important;text-align:center!important}
  .season-mini-stats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin-top:10px!important}.season-mini-stats>span{min-width:0!important;padding:9px 7px!important;text-align:center!important;font-size:9px!important}

  /* League-night command card: tighter, two-column operational blocks. */
  .gts-league-night-header{padding:14px!important;gap:9px!important}.gts-league-header-copy h1{font-size:27px!important;line-height:1!important;margin:4px 0!important}.gts-league-header-copy p{font-size:11px!important;line-height:1.3!important}.gts-league-header-meta{gap:5px!important}.gts-league-header-meta span{font-size:9px!important;padding:5px 7px!important}
  .night-header-workflow{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}.workflow-step{min-height:50px!important;padding:8px!important}
  .night-header-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}.night-header-actions>*{width:100%!important;min-height:48px!important}
  .gts-event-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}.gts-event-actions form{grid-column:1/-1!important;width:100%!important}.gts-event-actions .gts-neutral-button{width:100%!important;min-height:48px!important}
  .night-start-banner{min-height:0!important;padding:14px!important;gap:10px!important}.night-start-banner .night-start-button{min-height:50px!important}.night-parent-link{margin:8px 0!important}.night-parent-link .button{min-height:44px!important}
  .nf-night-alerts,.nf-public-share-card{padding:16px!important}.nf-night-alert-title{display:grid!important;gap:5px!important}.nf-alert-grid{gap:8px!important}.nf-night-alert{grid-template-columns:34px minmax(0,1fr) auto!important;padding:11px!important}.nf-public-share-card{grid-template-columns:minmax(0,1fr) 118px!important;gap:14px!important}.nf-public-share-card img{width:108px!important;height:108px!important}
  .gts-night-overview{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.gts-kpi-card{min-height:94px!important;padding:12px!important}

  /* Tonight's Entries controls. */
  .pro-entries-card{padding:14px!important;overflow:hidden!important}.pro-entries-card>.section-title{display:grid!important;grid-template-columns:1fr!important;gap:12px!important}.night-filters{width:100%!important}.filter-row{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}.filter-row input,.filter-row select{min-width:0!important;width:100%!important}
  .entry-action-row{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}.entry-action-row>*{width:100%!important;margin:0!important}.entry-action-row .button,.entry-action-row button{width:100%!important;min-height:46px!important;padding:8px!important;font-size:10px!important}

  /* Turn the desktop entries table into true mobile bowler cards. */
  .pro-entries-card .table-wrap{overflow:visible!important}.pro-entries-card table{display:block!important;width:100%!important;min-width:0!important}.pro-entries-card thead{display:none!important}.pro-entries-card tbody{display:grid!important;gap:12px!important;width:100%!important}.pro-entries-card tbody tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%!important;max-width:100%!important;padding:13px!important;border:1px solid #2a5063!important;border-radius:12px!important;background:#081b27!important;box-sizing:border-box!important}
  .pro-entries-card tbody td{display:block!important;width:auto!important;min-width:0!important;max-width:100%!important;padding:9px!important;border:1px solid #183b4e!important;border-radius:8px!important;background:#071722!important;overflow-wrap:anywhere!important;white-space:normal!important}
  .pro-entries-card tbody td:nth-child(1),.pro-entries-card tbody td:nth-child(2),.pro-entries-card tbody td:nth-child(7),.pro-entries-card tbody td:nth-child(9),.pro-entries-card tbody td:nth-child(10),.pro-entries-card tbody td:nth-child(11){grid-column:1/-1!important}
  .pro-entries-card tbody td:before{display:block!important;margin-bottom:4px;color:#7998aa;font-size:8px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
  .pro-entries-card tbody td:nth-child(1):before{content:"LANE"}.pro-entries-card tbody td:nth-child(2):before{content:"BOWLER"}.pro-entries-card tbody td:nth-child(3):before{content:"AVERAGE"}.pro-entries-card tbody td:nth-child(4):before{content:"HDCP"}.pro-entries-card tbody td:nth-child(5):before{content:"DUE"}.pro-entries-card tbody td:nth-child(6):before{content:"PAID"}.pro-entries-card tbody td:nth-child(7):before{content:"REFUND"}.pro-entries-card tbody td:nth-child(8):before{content:"STATUS"}.pro-entries-card tbody td:nth-child(9):before{content:"SOURCE"}.pro-entries-card tbody td:nth-child(10):before{content:"ACTIONS"}.pro-entries-card tbody td:nth-child(11):before{content:"COORDINATOR"}
  .pro-entries-card .small-muted{max-width:100%!important;overflow-wrap:anywhere!important;word-break:break-word!important;font-size:11px!important}.pro-entries-card .inline-lane-form{display:grid!important;grid-template-columns:minmax(0,1fr) 70px!important;gap:7px!important}.pro-entries-card .inline-lane-input{width:100%!important;min-width:0!important}.pro-row-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}.pro-row-actions>a:first-child{grid-column:1/-1!important}.pro-row-actions>*{width:100%!important}.pro-row-actions form button,.pro-row-actions a{width:100%!important;min-height:44px!important}.pro-row-actions .danger{font-size:9px!important}.coordinator-cell form,.coordinator-cell button{width:100%!important;max-width:100%!important}.compact-coordinator{min-height:46px!important}

  /* Score entry: compact summaries + deliberate horizontal score grid. */
  .score-status-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}.score-status-card{min-height:88px!important;padding:10px 7px!important}.score-status-card>span{font-size:10px!important}.score-status-card strong{font-size:24px!important}.score-status-card small{font-size:8px!important;line-height:1.2!important}
  .current-game-bar{min-height:58px!important;padding:9px 12px!important}.current-game-bar .button{min-height:40px!important;padding:8px 10px!important}
  .score-toolbar{display:grid!important;grid-template-columns:1fr!important;gap:9px!important}.score-live-controls{display:flex!important;flex-wrap:wrap!important;gap:7px!important;align-items:center!important}.score-live-controls>*{min-height:42px!important}.live-description{flex:1 1 100%!important;font-size:10px!important}
  .live-score-table{min-width:920px!important}.score-table th,.score-table td{padding:8px!important}.score-table th:nth-child(1),.score-table td:nth-child(1){position:sticky!important;left:0!important;z-index:5!important;background:#0a1a25!important}.score-table th:nth-child(2),.score-table td:nth-child(2){position:sticky!important;left:76px!important;z-index:4!important;background:#0a1a25!important;min-width:150px!important}.score-lane-form{width:68px!important}.score-lane-input{width:45px!important}

  /* General mobile cards/forms/tables. */
  .card{max-width:100%!important}.night-control-card{margin-bottom:calc(30px + env(safe-area-inset-bottom))!important}.gts-app-footer{padding-bottom:calc(18px + env(safe-area-inset-bottom))!important}
}
@media (max-width:430px){
  .gts-top-menu a,.gts-night-workflow-nav a{flex-basis:108px!important;min-width:108px!important}
  .score-status-grid{grid-template-columns:1fr!important}.score-status-card{min-height:66px!important;display:grid!important;grid-template-columns:70px 70px minmax(0,1fr)!important;align-items:center!important;text-align:left!important}.score-status-card small{margin:0!important}
  .nf-public-share-card{grid-template-columns:1fr!important}.nf-public-share-card img{justify-self:center!important}
}

/* ==========================================================
   NextFrame 7.5.8 — phone workflow refinement
   Phone-only. Tablet and desktop layouts remain unchanged.
   ========================================================== */
@media (max-width:820px){
  /* Entries: denser bowler cards for live-night operation. */
  .pro-entries-card tbody{gap:9px!important}
  .pro-entries-card tbody tr{padding:10px!important;gap:6px!important}
  .pro-entries-card tbody td{padding:7px 8px!important}
  .pro-entries-card tbody td:nth-child(3),
  .pro-entries-card tbody td:nth-child(4),
  .pro-entries-card tbody td:nth-child(5),
  .pro-entries-card tbody td:nth-child(6){min-height:58px!important}
  .pro-entries-card tbody td:nth-child(7),
  .pro-entries-card tbody td:nth-child(8){grid-column:auto!important;min-height:62px!important}
  .pro-entries-card tbody td:nth-child(9){grid-column:1/-1!important;min-height:54px!important}
  .pro-entries-card tbody td:nth-child(10){padding:8px!important}
  .pro-entries-card tbody td:nth-child(11){padding:6px 8px!important;min-height:48px!important}
  .pro-row-actions{gap:6px!important}
  .pro-row-actions form button,.pro-row-actions a{min-height:40px!important}
  .compact-coordinator{min-height:40px!important}

  /* Score Entry: on a phone, the selected game is the ONLY game column visible. */
  .live-score-table{min-width:0!important;width:100%!important;table-layout:fixed!important}
  .live-score-table .score-game-col{display:none!important}
  .live-score-table.mobile-current-game-1 .score-game-col-1,
  .live-score-table.mobile-current-game-2 .score-game-col-2,
  .live-score-table.mobile-current-game-3 .score-game-col-3,
  .live-score-table.mobile-current-game-4 .score-game-col-4,
  .live-score-table.mobile-current-game-5 .score-game-col-5,
  .live-score-table.mobile-current-game-6 .score-game-col-6,
  .live-score-table.mobile-current-game-7 .score-game-col-7,
  .live-score-table.mobile-current-game-8 .score-game-col-8,
  .live-score-table.mobile-current-game-9 .score-game-col-9,
  .live-score-table.mobile-current-game-10 .score-game-col-10{display:table-cell!important}
  .live-score-table th:nth-child(1),.live-score-table td:nth-child(1),
  .live-score-table th:nth-child(2),.live-score-table td:nth-child(2){position:static!important;left:auto!important;z-index:auto!important}
  .live-score-table th:nth-child(1),.live-score-table td:nth-child(1){width:68px!important}
  .live-score-table th:nth-child(2),.live-score-table td:nth-child(2){width:auto!important;min-width:0!important}
  .live-score-table th:nth-child(3),.live-score-table td:nth-child(3){width:54px!important}
  .live-score-table th:nth-child(4),.live-score-table td:nth-child(4){width:48px!important}
  /* Hide summary/admin columns on the phone scoring grid; selected game remains primary. */
  .live-score-table th:nth-last-child(-n+5),.live-score-table td:nth-last-child(-n+5){display:none!important}
  .live-score-table .score-input{width:64px!important;min-width:64px!important;font-size:20px!important;text-align:center!important}
  .live-score-table .score-with-handicap{display:grid!important;justify-items:center!important;gap:3px!important}
  .mobile-hide-show-all{display:none!important}
  .current-game-bar{grid-template-columns:1fr!important}

  /* Public Live event: reduce hero height so live competition content arrives sooner. */
  .redesigned-event-hero{padding:12px!important;gap:10px!important;min-height:0!important}
  .redesigned-event-hero .event-hero-logo img{max-height:118px!important;width:auto!important}
  .event-hero-info-card{padding:14px!important}
  .event-hero-info-card h1{font-size:30px!important;line-height:1!important;margin-bottom:7px!important}
  .event-hero-info-card p{font-size:11px!important;line-height:1.35!important;margin-bottom:8px!important}
  .event-hero-contact{margin-top:9px!important;padding-top:9px!important;font-size:10px!important}
  .event-hero-actions{margin-top:0!important}
  .public-current-game{margin-top:10px!important;padding:12px 14px!important;min-height:72px!important}
}
@media (max-width:820px){
  /* The event hero already carries the Live brand; do not float a duplicate logo over results while scrolling. */
  .mobile-sticky-live-brand{display:none!important}
}

/* NextFrame 7.5.9 — phone score entry: selected game only */
@media (max-width: 767px){
  #show-all-games{display:none!important}
  .current-game-bar{grid-template-columns:1fr!important}
  .live-score-table th:nth-child(3),.live-score-table td:nth-child(3){display:none!important}
  .live-score-table{width:100%!important;min-width:0!important;table-layout:fixed!important}
  .live-score-table th:nth-child(1),.live-score-table td:nth-child(1){width:70px!important}
  .live-score-table th:nth-child(2),.live-score-table td:nth-child(2){width:auto!important;min-width:0!important;white-space:normal!important}
  .live-score-table th:nth-child(4),.live-score-table td:nth-child(4){width:54px!important}
  .live-score-table .score-game-col{width:92px!important}
  .live-score-table .score-input{width:72px!important;min-width:72px!important;font-size:22px!important}
  .blind-usage-grid{grid-template-columns:1fr 1fr!important}
  .blind-usage-grid .blind-entry-state{grid-column:1/-1!important}
}
.blind-refund-needed{border-color:#b97923!important;background:rgba(185,121,35,.10)!important}
.blind-usage-note{margin:8px 0 0}
