/* Approved Stadium mockups, shared by web and the packaged app. */
html:has(body#stadium-app.tournament-page){scrollbar-gutter:stable}
body#stadium-app.stadium-app{
 --diamond-background:#090c0d;--diamond-surface:#101416;--diamond-surface-elevated:#191e21;
 --diamond-surface-cool:#15191b;--diamond-surface-cool-elevated:#272c2f;
 --diamond-gold:#ffd348;--diamond-gold-bright:#ffdc6c;--diamond-gold-text:#ffd348;
 --diamond-white:#f7f7f5;--diamond-text-primary:#f7f7f5;--diamond-text-secondary:#b9bec3;
 --diamond-text-muted:#a8adb3;--diamond-border:#373d40;--diamond-border-subtle:#292e31;
 --diamond-input:#191e21;--diamond-success:#e5e3dc;--diamond-success-surface:#303438;
 --diamond-radius-control:12px;--diamond-radius-lg:14px;--diamond-radius-xl:16px;
 --diamond-shadow-card:none;--stadium-width:1120px;
 margin:0;background:var(--diamond-background);color:var(--diamond-white);
 font-family:Arial,Helvetica,sans-serif;font-size:15px;line-height:1.45;
 overflow-x:clip;-webkit-text-size-adjust:100%;
}
html[data-theme=day] body#stadium-app.stadium-app{
 --diamond-background:#f6f4ee;--diamond-surface:#fffdf8;--diamond-surface-elevated:#eeece5;
 --diamond-white:#191b1c;--diamond-text-primary:#191b1c;--diamond-text-secondary:#51565a;
 --diamond-text-muted:#62676a;--diamond-border:#c5c6c1;--diamond-border-subtle:#d9d9d1;
 --diamond-input:#fffdf8;--diamond-gold-text:#765500;--diamond-success:#414640;--diamond-success-surface:#e4e3dc;
}
body#stadium-app.stadium-app *{box-sizing:border-box;min-width:0}
body#stadium-app.stadium-app [hidden]{display:none!important}
body#stadium-app.stadium-app :is(button,input,select,textarea,summary){font:inherit}
body#stadium-app.stadium-app :is(button,summary,a,input,select){touch-action:manipulation;-webkit-tap-highlight-color:transparent}
body#stadium-app.stadium-app :is(button,input,select,textarea){border-radius:12px;max-width:100%;box-shadow:none}
body#stadium-app.stadium-app :is(button,input,select){min-height:44px}
body#stadium-app.stadium-app :is(button,summary){cursor:pointer}
body#stadium-app.stadium-app :is(button,a,input,select,summary):focus-visible{outline:3px solid var(--diamond-gold);outline-offset:3px}
body#stadium-app.stadium-app :is(button:disabled,input:disabled,select:disabled){opacity:.5;cursor:default}
body#stadium-app.stadium-app :is(h1,h2,h3){color:var(--diamond-white);line-height:1.22;letter-spacing:-.025em}
body#stadium-app.stadium-app :is(button.primary,.ui-primary,.my-team-primary,.create-button){background:var(--diamond-gold);color:#111!important;border:1px solid var(--diamond-gold);font-weight:700}
body#stadium-app.stadium-app :is(.ui-global-nav,.ui-mobile-menu){display:none!important}
body#stadium-app.stadium-app>header,body#stadium-app.stadium-app .scoring-app>header.scoring-top{
 display:flex!important;align-items:center;gap:14px;flex-wrap:nowrap!important;
 width:100%;max-width:var(--stadium-width);min-height:72px;margin:0 auto;padding:12px 24px;
 border:0;background:var(--diamond-background);position:relative;
}
body#stadium-app.stadium-app>header .header-actions{display:contents!important}
body#stadium-app.stadium-app>header>.diamond-brand-link,body#stadium-app.stadium-app>header>.brand,body#stadium-app.stadium-app>header>.info-brand{order:0;margin-right:auto!important;flex:0 1 184px!important}
body#stadium-app.stadium-app>header .diamond-brand-logo{display:block;width:184px!important;max-width:100%!important;margin:0!important}
body#stadium-app.stadium-app>header :is(.stadium-home,[data-account-control]),body#stadium-app.stadium-app .scoring-top>a:not(.diamond-brand-link){
 display:inline-flex!important;align-items:center;justify-content:center;order:2;flex:0 0 auto;
 min-height:44px;min-width:44px;padding:8px 10px;font-size:13px;font-weight:600;
 color:var(--diamond-white)!important;background:transparent!important;border:0!important;border-radius:12px;text-decoration:none;
}
body#stadium-app.stadium-app>header [data-account-control]{order:3;max-width:130px}
body#stadium-app.stadium-app>header>.theme-toggle{display:none}
body#stadium-app.stadium-app>header>.info-brand~nav{display:flex;gap:6px;font-size:13px}
body#stadium-app.stadium-app>header .ui-header-account{font-size:13px}
body#stadium-app.stadium-app .diamond-profile-menu{border-radius:14px}
body#stadium-app.stadium-app:not(.guide-page) :is(.site-footer,main>footer,body>footer:not(.stadium-footer)){display:none!important}
body#stadium-app.stadium-app>.stadium-footer{
 display:flex;align-items:center;flex-direction:column;gap:4px;max-width:var(--stadium-width);
 margin:24px auto 0;padding:8px 24px max(12px,env(safe-area-inset-bottom));border:0;
 color:var(--diamond-text-secondary);font-size:11px;
}
body#stadium-app.stadium-app>.stadium-footer>nav{width:100%;display:flex;justify-content:center;gap:18px;border-top:1px solid var(--diamond-border-subtle);padding-top:8px;flex-wrap:wrap}
body#stadium-app.stadium-app>.stadium-footer a{display:inline-flex;align-items:center;min-height:44px;color:inherit;text-decoration:none}
body#stadium-app.stadium-app>.stadium-footer .theme-toggle{min-height:44px;padding:6px 12px;margin:0;background:none;border:0;color:inherit;font-size:12px}
/* Discovery: stadium masthead, two simple inputs, one primary action. */
body#stadium-app.stadium-app.discovery-page>main{max-width:var(--stadium-width);padding:0 24px 0;margin:auto}
body#stadium-app.stadium-app[data-directory-sport=softball]{--stadium-ball:url('images/softball-stadium-v1.webp')}
body#stadium-app.stadium-app[data-directory-sport=baseball]{--stadium-ball:url('images/baseball-stadium-v1.webp')}
body#stadium-app.stadium-app .search-panel{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:16px;margin:0;padding:0;border:0;border-radius:0;background:none}
body#stadium-app.stadium-app .search-panel label{font-size:14px;color:var(--diamond-white);font-weight:600;margin-bottom:7px}
body#stadium-app.stadium-app .search-panel :is(input,select){height:48px;background:var(--diamond-input);border:1px solid var(--diamond-border);color:var(--diamond-white)}
body#stadium-app.stadium-app .search-input svg{stroke:var(--diamond-text-secondary)}
body#stadium-app.stadium-app .create-button{display:flex;align-items:center;justify-content:center;min-height:50px;width:100%;padding:12px;font-size:16px;margin-top:14px;border-radius:12px;text-decoration:none}
body#stadium-app.stadium-app .results-section{margin:16px 0 0}
body#stadium-app.stadium-app .results-heading{margin:0 0 8px}
body#stadium-app.stadium-app .results-heading h2{font-size:14px;font-weight:600;color:var(--diamond-text-secondary)}
body#stadium-app.stadium-app .results-heading h2 span{background:none;padding:0;margin:0;font:inherit}
body#stadium-app.stadium-app .results-heading p:empty{display:none}
body#stadium-app.stadium-app .discovery-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}
body#stadium-app.stadium-app .discovery-card{display:grid;grid-template-columns:44px minmax(0,1fr) 16px;align-items:start;column-gap:12px;padding:15px 14px;border:1px solid var(--diamond-border-subtle);border-radius:12px;background:var(--diamond-surface);text-decoration:none;min-height:100px;box-shadow:none}
body#stadium-app.stadium-app .discovery-logo{width:40px;height:44px;object-fit:contain;border:0;background:transparent;padding:0;margin:3px 0}
body#stadium-app.stadium-app .discovery-copy h3{font-size:17px;line-height:1.25;margin:0 0 5px;font-weight:700;display:block;overflow-wrap:anywhere}
body#stadium-app.stadium-app .discovery-copy p{margin:3px 0;font-size:13px;line-height:1.4;color:var(--diamond-text-secondary)}
body#stadium-app.stadium-app .discovery-meta{display:block}
body#stadium-app.stadium-app .discovery-sport{display:none}
body#stadium-app.stadium-app[data-directory-sport=all] .discovery-sport{display:inline;color:var(--diamond-gold-text);font-size:11px}
body#stadium-app.stadium-app .discovery-arrow{font-size:24px;align-self:center;color:var(--diamond-text-secondary)}
body#stadium-app.stadium-app .discovery-cta{display:flex;align-items:center;justify-content:space-between;background:var(--diamond-gold);color:#111;min-height:44px;border-radius:8px;font-size:13px;font-weight:700;padding:8px 12px;margin-top:9px}
body#stadium-app.stadium-app .discovery-list .discovery-card:not(:first-child) .discovery-cta{display:none}
body#stadium-app.stadium-app .demo-panel{border:0;padding:8px 0 0;margin:0;background:none;display:flex;justify-content:center}
body#stadium-app.stadium-app .demo-panel>div{display:none}
body#stadium-app.stadium-app .demo-panel>a{min-height:44px;display:flex;align-items:center;gap:12px;background:none;color:var(--diamond-gold-text);font-size:14px;font-weight:700;border:0;text-decoration:underline}
body#stadium-app.stadium-app .past-tournaments{margin:16px 0}
body#stadium-app.stadium-app .past-tournaments>summary{min-height:44px;padding:10px 0}
body#stadium-app.stadium-app .load-row{margin:8px 0}body#stadium-app.stadium-app .load-row:has(button[hidden]){display:none}
/* One tournament shell for initial load, tabs and live renders. */
body#stadium-app.stadium-app.tournament-page #softball-surface>main,body#stadium-app.stadium-app.tournament-page #baseball-root{
 display:flex!important;flex-direction:column;grid-template-columns:none;max-width:var(--stadium-width);width:100%;margin:auto;padding:0 24px;
}
body#stadium-app.stadium-app.tournament-page #baseball-surface{padding:0;max-width:none;width:100%}
/* Keep legacy renderer hooks available, but present one compact selector and no duplicate statistics. */
body#stadium-app.stadium-app.tournament-page :is(#divisions,.bb-ages,.stats,.bb-stats){display:none!important}
/* Seven visible tiles share their existing destinations and keyboard controls. */
body#stadium-app.stadium-app .schedule-nav{order:3;display:block;width:100%;margin:0 0 14px;padding:0;background:none;border:0;border-radius:0;position:static;container-type:inline-size;container-name:tournament-nav;font-size:1rem}
body#stadium-app.stadium-app .schedule-nav-scroll{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-rows:minmax(66px,auto);gap:8px;overflow:visible;width:100%;position:relative}
body#stadium-app.stadium-app .schedule-nav-scroll [data-section]{grid-column:span 3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:0;width:100%;min-height:66px;padding:10px 2px;background:var(--diamond-surface);color:var(--diamond-white);border:1px solid var(--diamond-border);border-radius:12px;box-shadow:none;font-size:.8125rem;line-height:1.25;font-weight:600;white-space:normal;overflow-wrap:normal;word-break:normal}
body#stadium-app.stadium-app .schedule-nav-scroll [data-section]:nth-child(n+5){grid-column:span 4}
body#stadium-app.stadium-app .schedule-nav-scroll [data-section][aria-current=page]{background:var(--diamond-gold);color:#111;border-color:var(--diamond-gold)}
body#stadium-app.stadium-app .tournament-nav-icon{display:block;width:25px;height:25px;flex:none}
body#stadium-app.stadium-app .tournament-nav-label{display:block;max-width:100%}
body#stadium-app.stadium-app .schedule-nav-scroll [data-section]:focus-visible{outline:3px solid var(--diamond-gold);outline-offset:3px;z-index:1}
body#stadium-app.stadium-app .schedule-nav-scroll [data-section][aria-current=page]:focus-visible{outline-color:var(--diamond-white)}
/* Text enlargement can make four intact labels wider than a narrow phone.
   Reflow the same seven destinations instead of clipping words or shrinking type. */
@container tournament-nav (max-width:18em){
 body#stadium-app.stadium-app .schedule-nav-scroll{grid-template-columns:repeat(2,minmax(0,1fr))}
 body#stadium-app.stadium-app .schedule-nav-scroll [data-section]:nth-child(n){grid-column:auto}
 body#stadium-app.stadium-app .schedule-nav-scroll [data-section]:last-child{grid-column:1/-1}
}
body#stadium-app.stadium-app .stadium-my-team-link{order:2;display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:8px 14px;margin:0 0 8px;width:100%;border:1px solid var(--diamond-border);border-radius:12px;background:var(--diamond-surface);color:var(--diamond-white);font-size:14px;font-weight:600;text-decoration:none}
.stadium-my-team-link svg{width:17px;height:17px}
body#stadium-app.stadium-app .stadium-pool-link{display:block;margin:0 0 14px auto;padding:8px 14px;background:var(--diamond-surface-elevated);border:1px solid var(--diamond-border);color:var(--diamond-white);font-size:14px}
@media(min-width:1120px){
 body#stadium-app.stadium-app .stadium-overview-games .public-scores{grid-template-columns:repeat(3,minmax(0,1fr))}
 body#stadium-app.stadium-app .schedule-nav-scroll{grid-template-columns:repeat(7,minmax(0,1fr));grid-auto-rows:minmax(74px,auto);gap:8px}
 body#stadium-app.stadium-app .schedule-nav-scroll [data-section]:nth-child(n){grid-column:auto;font-size:.9375rem;min-height:74px}
}
body#stadium-app.stadium-app .schedule-nav :is([data-nav-more],.live-pill){display:none}
body#stadium-app.stadium-app .ui-director-nav,body#stadium-app.stadium-app .ui-mobile-views,body#stadium-app.stadium-app .tournament-snapshot,body#stadium-app.stadium-app main>.eyebrow{display:none!important}
body#stadium-app.stadium-app .schedule-front{order:4;margin:0}
body#stadium-app.stadium-app .schedule-front:empty{display:none}
body#stadium-app.stadium-app :is(.toolbar,.bb-tabs){order:6;display:none!important}
body#stadium-app.stadium-app [data-stadium-view=teams]:not(.teams-compact-view) .toolbar{display:flex!important;padding:0;margin:0 0 12px;border:0;background:none}
body#stadium-app.stadium-app .toolbar nav{display:none!important}
body#stadium-app.stadium-app .toolbar label{flex:1}
body#stadium-app.stadium-app :is(#content,.bb-content){order:8;min-width:0;width:100%;padding:0;margin:0}
body#stadium-app.stadium-app .section-title{order:7;margin:0 0 10px;padding:0}
body#stadium-app.stadium-app .section-title h2{font-size:22px;margin:0}
body#stadium-app.stadium-app .section-title>span,body#stadium-app.stadium-app .shortcut-back{display:none}
body#stadium-app.stadium-app :is(.notice,.bb-sync){order:2;font-size:12px;margin:0 0 8px}
body#stadium-app.stadium-app .shortcut-healthy-sync{display:none!important}
body#stadium-app.stadium-app .sponsor-interest{order:11;border-radius:12px}
body#stadium-app.stadium-app .stadium-event-details{order:12;border-top:1px solid var(--diamond-border-subtle);margin:18px 0 0;font-size:12px;color:var(--diamond-text-secondary)}
body#stadium-app.stadium-app .stadium-event-details>summary{min-height:44px;padding:12px 0}
body#stadium-app.stadium-app .stadium-event-details .tournament-banner{display:block!important;background:var(--diamond-surface);border:1px solid var(--diamond-border-subtle);border-radius:12px;padding:16px;margin:0}
body#stadium-app.stadium-app .stadium-event-details .tournament-banner h2{font-size:18px}
body#stadium-app.stadium-app .stadium-event-details .tournament-logo{max-width:64px;max-height:64px;object-fit:contain}
/* Compact game rows, identical spacing across scores and schedules. */
body#stadium-app.stadium-app .public-scores{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}
body#stadium-app.stadium-app .score-result,body#stadium-app.stadium-app .schedule-game-row,body#stadium-app.stadium-app .stadium-match{
 text-align:left;width:100%;display:block;margin:0;padding:12px 14px;background:var(--diamond-surface);color:var(--diamond-white);
 border:1px solid var(--diamond-border-subtle);border-radius:12px;box-shadow:none;
}
body#stadium-app.stadium-app .score-meta{display:flex;justify-content:space-between;gap:8px;margin-bottom:6px;font-size:11px;line-height:1.4;color:var(--diamond-text-secondary)}
body#stadium-app.stadium-app .score-status{font-size:11px;white-space:normal}
body#stadium-app.stadium-app .score-status.is-live,body#stadium-app.stadium-app .schedule-game-status.live{color:var(--diamond-gold-text)}
body#stadium-app.stadium-app .score-team{display:flex;justify-content:space-between;gap:12px;font-size:16px;line-height:1.4;font-weight:600}
body#stadium-app.stadium-app .score-team>strong{font-size:20px;font-variant-numeric:tabular-nums;color:var(--diamond-white)}
body#stadium-app.stadium-app .score-team>span{min-width:0;overflow-wrap:anywhere}

body#stadium-app.stadium-app .score-win-mark{display:none}
body#stadium-app.stadium-app .schedule-heading{margin:0 0 12px;display:flex;align-items:center;justify-content:space-between}
body#stadium-app.stadium-app .schedule-heading h2{font-size:22px;margin:0}
body#stadium-app.stadium-app .schedule-heading p{font-size:12px;color:var(--diamond-text-secondary);margin:4px 0}
body#stadium-app.stadium-app .schedule-heading>[data-schedule-count]{font-size:12px;color:var(--diamond-text-secondary)}
body#stadium-app.stadium-app .schedule-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;background:none;border:0;padding:0;margin:0 0 14px;align-items:end}
body#stadium-app.stadium-app .schedule-filters label{display:grid;gap:4px;font-size:11px;color:var(--diamond-text-secondary)}
body#stadium-app.stadium-app .schedule-filters select{background:var(--diamond-input);color:var(--diamond-white);border:1px solid var(--diamond-border);padding:8px;font-size:13px;min-width:0;width:100%}
body#stadium-app.stadium-app .schedule-time-group{margin:0 0 16px;border:0;background:none;display:grid;gap:8px}
body#stadium-app.stadium-app .schedule-time-group>h3{font-size:13px;margin:0 0 2px;color:var(--diamond-text-secondary)}
body#stadium-app.stadium-app .schedule-game-meta{display:flex;gap:8px;font-size:11px;color:var(--diamond-text-secondary);margin-bottom:7px}
body#stadium-app.stadium-app .schedule-game-meta>b{font-weight:400}body#stadium-app.stadium-app .schedule-game-status{margin-left:auto}
body#stadium-app.stadium-app .schedule-opponents{display:grid;grid-template-columns:1fr;gap:3px;font-size:16px;font-weight:700;line-height:1.4}
body#stadium-app.stadium-app .schedule-opponents>span{display:flex;align-items:center;justify-content:space-between;gap:10px}
body#stadium-app.stadium-app .schedule-opponents>span>b{font-size:19px;font-variant-numeric:tabular-nums}
body#stadium-app.stadium-app .schedule-opponents>small{display:none}
body#stadium-app.stadium-app .schedule-round{display:block;font-size:11px;color:var(--diamond-text-secondary);margin-top:5px}
body#stadium-app.stadium-app .schedule-director-actions:empty{display:none}
/* Standings retain all calculations and expose detailed totals on demand. */
body#stadium-app.stadium-app .compact-standings{border:0;border-radius:14px;background:none;padding:0;overflow:visible}
body#stadium-app.stadium-app .compact-standings>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;gap:8px}
body#stadium-app.stadium-app .compact-standings>header h2{font-size:22px;margin:0}
body#stadium-app.stadium-app .compact-standings>header small{font-size:10px;color:var(--diamond-text-secondary)}
body#stadium-app.stadium-app .standings-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:auto;font-size:13px;overflow:hidden;border-radius:12px}
body#stadium-app.stadium-app .standings-table :is(th,td){padding:10px 8px;border:0;border-bottom:1px solid var(--diamond-border-subtle);text-align:center;color:var(--diamond-white);font-variant-numeric:tabular-nums}
body#stadium-app.stadium-app .standings-table thead th{color:var(--diamond-text-secondary);font-size:11px;font-weight:500;background:none}
body#stadium-app.stadium-app .standings-table th:nth-child(2){text-align:left;width:auto}
body#stadium-app.stadium-app .standings-table th>button{min-height:44px;width:100%;font-size:14px;font-weight:600;color:var(--diamond-white);border:0;background:none;padding:6px 0;text-align:left;white-space:normal}
body#stadium-app.stadium-app .standings-table tbody>tr:first-child:not(.standing-detail)>*{background:var(--diamond-surface-elevated)}
body#stadium-app.stadium-app .standings-table tbody>tr:first-child>td:first-child{color:var(--diamond-gold-text);border-radius:10px 0 0 10px}
body#stadium-app.stadium-app .standings-table tbody>tr:first-child>td:last-child{border-radius:0 10px 10px 0}
body#stadium-app.stadium-app .standing-note{display:block;color:var(--diamond-text-secondary);font-size:10px;font-weight:400}
body#stadium-app.stadium-app .standing-detail td{padding:12px;text-align:left;font-size:12px;color:var(--diamond-text-secondary);background:var(--diamond-surface)}
body#stadium-app.stadium-app .standings-help{border:0;margin-top:10px;font-size:12px;color:var(--diamond-text-secondary)}
body#stadium-app.stadium-app .standings-help>summary{min-height:44px;display:flex;align-items:center}
body#stadium-app.stadium-app .standings-pools{display:flex;gap:6px;margin:0 0 12px;flex-wrap:wrap}
body#stadium-app.stadium-app .standings-pools button{padding:8px 12px;font-size:13px}
body#stadium-app.stadium-app .standings-pools [aria-pressed=true]{background:var(--diamond-gold);color:#111}
/* All rounds remain accessible, with the existing complete linked bracket. */
.stadium-mobile-bracket{display:none}
body#stadium-app.stadium-app .stadium-rounds{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;border:1px solid var(--diamond-border);border-radius:14px;margin:14px 0 6px}
body#stadium-app.stadium-app .stadium-rounds button{font-size:12px;border:0;background:transparent;color:var(--diamond-text-secondary);padding:8px 6px;border-radius:10px;white-space:normal;line-height:1.2}
body#stadium-app.stadium-app .stadium-rounds [aria-pressed=true]{background:var(--diamond-gold);color:#111;font-weight:700}
body#stadium-app.stadium-app .stadium-round-section{font-size:11px;color:var(--diamond-text-secondary);margin:10px 0}
body#stadium-app.stadium-app .stadium-round-games{display:grid;gap:12px}
body#stadium-app.stadium-app .stadium-match-meta{display:block;font-size:11px;color:var(--diamond-text-secondary);margin-bottom:8px;line-height:1.5}
body#stadium-app.stadium-app .stadium-match-team{display:flex;justify-content:space-between;gap:10px;font-size:16px;line-height:1.5;font-weight:600}
body#stadium-app.stadium-app .stadium-match-team b{font-variant-numeric:tabular-nums}
body#stadium-app.stadium-app .stadium-match small{display:block;color:var(--diamond-text-secondary);font-size:10px;margin-top:6px}
body#stadium-app.stadium-app .stadium-match[data-status=live] small{color:var(--diamond-gold-text)}
body#stadium-app.stadium-app .division-bracket-action{order:4;justify-content:flex-start;margin:0 0 12px}
/* Directors retain their existing steps, disclosure and save handlers. */
body#stadium-app.stadium-app :is(#director,.bb-director){order:5!important;border:0!important;background:none!important;padding:0!important;margin:0 0 20px!important;box-shadow:none}
body#stadium-app.stadium-app .director-drawer{border:0;background:none;padding:0}
body#stadium-app.stadium-app .director-drawer>summary{font-size:16px;padding:12px 0;min-height:44px}
body#stadium-app.stadium-app .director-drawer[open]>summary{border-bottom:1px solid var(--diamond-border-subtle);margin-bottom:14px}
body#stadium-app.stadium-app .setup-sections{position:relative;padding:0;background:none;border:0}
body#stadium-app.stadium-app .setup-heading{font-size:22px;margin:0 0 16px}
body#stadium-app.stadium-app .setup-context{display:none}
body#stadium-app.stadium-app .setup-progress{padding:0;margin:0 0 10px;background:none;border:0;display:flex;justify-content:flex-end;font-size:12px;color:var(--diamond-text-secondary)}
body#stadium-app.stadium-app .setup-progress :is(progress,a){display:none}
body#stadium-app.stadium-app .setup-step{background:var(--diamond-surface-elevated);border:1px solid var(--diamond-border-subtle);border-radius:12px;margin:0 0 8px;overflow:hidden}
body#stadium-app.stadium-app .setup-step>summary{display:flex;gap:12px;align-items:center;min-height:54px;padding:10px 14px;list-style:none}
body#stadium-app.stadium-app .setup-step>summary::-webkit-details-marker{display:none}
body#stadium-app.stadium-app .setup-number{display:grid;place-items:center;width:26px;height:26px;flex:0 0 26px;background:#d8d9d5;color:#1c2022;border-radius:50%;font-size:14px;font-weight:700}
body#stadium-app.stadium-app .setup-label{flex:1}
body#stadium-app.stadium-app .setup-label>strong{font-size:14px;font-weight:600;letter-spacing:0}
body#stadium-app.stadium-app .setup-label>small{display:none}
body#stadium-app.stadium-app .setup-state{font-size:10px;color:var(--diamond-text-secondary);max-width:100px;text-align:right}
body#stadium-app.stadium-app .setup-chevron{color:var(--diamond-text-secondary)}
body#stadium-app.stadium-app .setup-step-body{padding:0 14px 14px;font-size:13px;line-height:1.5}
body#stadium-app.stadium-app .setup-step-body p{font-size:12px;color:var(--diamond-text-secondary)}
body#stadium-app.stadium-app .game-day-tools{border:0;border-top:1px solid var(--diamond-border-subtle);padding:18px 0 0;margin-top:22px;background:none}
body#stadium-app.stadium-app .game-day-heading{display:flex;flex-direction:column;align-items:stretch;gap:12px}
body#stadium-app.stadium-app .game-day-heading h2{font-size:22px;margin:0}
body#stadium-app.stadium-app .game-day-heading>button{width:100%;min-height:50px;font-size:16px}
body#stadium-app.stadium-app .director-stage{font-size:12px;color:var(--diamond-text-secondary);margin:6px 0}
body#stadium-app.stadium-app .game-day-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
body#stadium-app.stadium-app .game-day-nav>*{min-height:48px;display:flex;align-items:center;justify-content:space-between;padding:12px 14px;font-size:14px;background:var(--diamond-surface-elevated);border:1px solid var(--diamond-border-subtle);border-radius:12px;text-decoration:none;color:var(--diamond-white)}
body#stadium-app.stadium-app .game-day-nav>*::after{content:'›';font-size:22px;font-weight:400}
/* Official scorekeeping: the existing actual scoring controls. */
body#stadium-app.stadium-app .scoring-app{padding:0 16px;max-width:760px;font-family:inherit}
body#stadium-app.stadium-app .scoring-app>header.scoring-top{padding:12px 0;margin:0;gap:12px}
body#stadium-app.stadium-app .scoring-app>header .diamond-brand-link{order:-1;margin-right:auto;max-width:160px}
body#stadium-app.stadium-app .scoring-app>header .diamond-brand-logo{width:160px}
body#stadium-app.stadium-app #scoring-root>.scoring-top{margin:0;padding:4px 0 8px}
body#stadium-app.stadium-app #scoring-root>.scoring-top>[data-back]{padding:6px 0;background:none;border:0;font-size:13px}
body#stadium-app.stadium-app #scoring-root>.scoring-top>small{background:var(--diamond-gold);color:#111;padding:7px 14px;border-radius:24px;font-size:11px;font-weight:700}
body#stadium-app.stadium-app .scoring-panel{padding:0;margin:0;border:0;background:none}
body#stadium-app.stadium-app .scoring-clock{display:grid;grid-template-columns:1fr auto;text-align:left;border:1px solid var(--diamond-border-subtle);background:var(--diamond-surface);border-radius:12px;padding:12px 14px;margin:0 0 12px;gap:2px 12px}
body#stadium-app.stadium-app .scoring-clock>small{grid-row:1;grid-column:1;font-size:10px}
body#stadium-app.stadium-app .scoring-clock>:is(.game-countdown,strong){grid-row:2;grid-column:1;font-size:36px;letter-spacing:-.02em;line-height:1.05}
body#stadium-app.stadium-app .scoring-clock>button{grid-column:2;grid-row:1/3;min-width:82px;min-height:44px}
body#stadium-app.stadium-app .score-run-grid{gap:10px}
body#stadium-app.stadium-app .score-run-grid>section{border-radius:12px;padding:10px 8px;background:var(--diamond-surface);border:1px solid var(--diamond-border-subtle)}
body#stadium-app.stadium-app .score-run-grid h2{font-size:15px;font-weight:600;min-height:0;margin:0 0 6px}
body#stadium-app.stadium-app .score-run-grid strong{font-size:48px;line-height:1.1;margin:0 0 10px;letter-spacing:-.03em}
body#stadium-app.stadium-app .run-actions{gap:6px}
body#stadium-app.stadium-app .run-actions button{min-height:44px;font-size:13px;padding:8px 6px;border-radius:8px}
body#stadium-app.stadium-app .run-actions .primary{min-width:68px}
body#stadium-app.stadium-app .scoring-inning{display:grid;grid-template-columns:1fr auto;gap:10px;border:0;margin:14px 0 12px;padding:0}
body#stadium-app.stadium-app .scoring-inning>strong{font-size:18px}
body#stadium-app.stadium-app .scoring-inning>[data-set-inning]{grid-column:2;grid-row:1;font-size:12px;min-height:44px}
body#stadium-app.stadium-app .scoring-inning>[data-inning]{grid-column:1/-1;grid-row:2;width:100%;min-height:44px;font-size:14px}
body#stadium-app.stadium-app .scoring-count{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 12px}
body#stadium-app.stadium-app .scoring-count button{font-size:12px;min-height:88px;background:var(--diamond-surface);border:1px solid var(--diamond-border);border-radius:10px;padding:10px}
body#stadium-app.stadium-app .scoring-count b{font-size:38px;line-height:1.15;margin-top:3px}
body#stadium-app.stadium-app [data-batter]{width:100%;min-height:44px;margin-bottom:0;font-size:14px;font-weight:600}
body#stadium-app.stadium-app .scoring-actions{border:0;padding:0;margin:12px 0 0;justify-content:flex-start;gap:10px}
body#stadium-app.stadium-app .scoring-actions details>summary{border:1px solid var(--diamond-border);border-radius:12px;background:var(--diamond-surface-elevated);font-size:13px}
body#stadium-app.stadium-app #scoring-message{font-size:12px;color:var(--diamond-text-secondary);min-height:18px;text-align:right;margin:8px 0 0}
/* My Team remains the existing saved-team route and division filter. */
/* Option 2: a single spectator list, shared by both sports. Director roster
   forms retain their existing presentation and handlers. */
body#stadium-app.stadium-app .teams-compact-view>.section-title,
body#stadium-app.stadium-app .teams-compact-view>.schedule-front{display:none}
body#stadium-app.stadium-app .teams-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 16px;position:relative;padding-bottom:17px;margin-bottom:12px}
body#stadium-app.stadium-app .teams-heading::after{content:'';position:absolute;bottom:0;left:0;width:44px;height:4px;border-radius:4px;background:var(--diamond-gold)}
body#stadium-app.stadium-app .teams-heading h2{font-size:1.5rem;font-weight:700;margin:0;line-height:1.2}
body#stadium-app.stadium-app .teams-heading>span{font-size:.875rem;color:var(--diamond-text-secondary)}
body#stadium-app.stadium-app .teams-search{position:relative;display:block;margin:0 0 12px;color:var(--diamond-text-secondary)}
body#stadium-app.stadium-app .teams-search>svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:20px;height:20px;pointer-events:none}
body#stadium-app.stadium-app .teams-search>input{display:block;width:100%;min-height:46px;padding:11px 14px 11px 44px;border:1px solid var(--diamond-border);border-radius:14px;background:var(--diamond-surface-elevated);color:var(--diamond-white);font-size:1rem;line-height:1.4}
body#stadium-app.stadium-app .teams-search>input::placeholder{color:var(--diamond-text-secondary);opacity:1}
body#stadium-app.stadium-app .teams-list{display:block;margin:0;padding:0;background:var(--diamond-surface);border:1px solid var(--diamond-border-subtle);border-radius:18px;overflow:hidden}
body#stadium-app.stadium-app .teams-row{display:grid;grid-template-columns:minmax(0,1fr) min(6.5rem,66.667%);align-items:center;gap:12px;position:relative;min-height:72px;padding:12px 14px 12px 18px;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none}
body#stadium-app.stadium-app .teams-row:not([hidden])~.teams-row:not([hidden])::before{content:'';position:absolute;top:0;left:14px;right:14px;height:1px;background:var(--diamond-border-subtle)}
body#stadium-app.stadium-app .teams-copy{display:grid;gap:3px;min-width:0}
body#stadium-app.stadium-app .teams-copy>strong{font-size:1rem;line-height:1.3;font-weight:600;overflow-wrap:anywhere;color:var(--diamond-white)}
body#stadium-app.stadium-app .teams-copy>small{margin:0;justify-self:start;text-align:left;font-size:.875rem;line-height:1.4;color:var(--diamond-text-secondary)}
body#stadium-app.stadium-app .teams-row .set-my-team{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px;width:100%;min-height:48px;margin:0;padding:6px;border:1px solid color-mix(in srgb,var(--diamond-text-secondary) 60%,var(--diamond-surface));border-radius:12px;background:var(--diamond-surface-elevated);color:var(--diamond-white);font-size:.875rem;line-height:1.15;font-weight:600;white-space:normal}
body#stadium-app.stadium-app .teams-row .set-my-team>span{display:grid;align-content:center;min-height:2.3em;min-width:min-content;max-width:100%;overflow-wrap:anywhere}
body#stadium-app.stadium-app .teams-row .set-my-team>svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round}
body#stadium-app.stadium-app .teams-row.is-my-team{border:0;background:transparent}
body#stadium-app.stadium-app .teams-row.is-my-team::after{content:'';position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--diamond-gold)}
body#stadium-app.stadium-app .teams-row.is-my-team .set-my-team{color:var(--diamond-gold-text);border-color:color-mix(in srgb,var(--diamond-gold-text) 60%,var(--diamond-surface));background:color-mix(in srgb,var(--diamond-gold) 10%,var(--diamond-surface))}
body#stadium-app.stadium-app .teams-row.is-my-team .set-my-team>svg{fill:currentColor}
body#stadium-app.stadium-app .teams-empty{padding:20px 16px;margin:0;border:1px solid var(--diamond-border-subtle);border-radius:18px;background:var(--diamond-surface);color:var(--diamond-text-secondary)}
@media(min-width:761px){body#stadium-app.stadium-app .teams-heading h2{font-size:1.875rem}}
body#stadium-app.stadium-app .my-team-context{order:3;margin:0 0 12px;border:0;padding:0;background:none;display:flex;gap:8px;flex-wrap:wrap}
body#stadium-app.stadium-app .my-team-context>a{display:inline-flex;align-items:center;min-height:44px;font-size:12px;color:var(--diamond-text-secondary)}
body#stadium-app.stadium-app .my-team-focused[data-stadium-view=overview] :is(.stats,.bb-stats,.section-title,#divisions,.bb-ages){display:none!important}
body#stadium-app.stadium-app .my-team-overview{margin:0;padding:0;background:none;border:0}
body#stadium-app.stadium-app .my-team-overview>h2{font-size:20px;margin:0 0 12px}
body#stadium-app.stadium-app .my-team-overview>h3{font-size:22px;margin:18px 0 12px;text-transform:none}
body#stadium-app.stadium-app .my-team-stats{margin:6px 0 14px;color:var(--diamond-text-secondary);font-size:13px}
body#stadium-app.stadium-app .my-team-game{display:grid;gap:4px;text-align:left;padding:14px;margin:0 0 10px;background:var(--diamond-surface);border:1px solid var(--diamond-border-subtle);border-radius:12px;width:100%}
body#stadium-app.stadium-app .my-team-game>strong{font-size:18px;font-weight:600;order:0}
body#stadium-app.stadium-app .my-team-game>small{font-size:12px;color:var(--diamond-text-secondary);order:2}
body#stadium-app.stadium-app .my-team-game>span{font-size:14px;order:1}
body#stadium-app.stadium-app .my-team-links{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
body#stadium-app.stadium-app .my-team-links>*{min-height:44px;font-size:13px}
body#stadium-app.stadium-app .team-page{padding:0 16px;max-width:760px}
body#stadium-app.stadium-app .team-page>h1{font-size:30px}
/* Supporting pages use the same surfaces and rhythm. */
body#stadium-app.stadium-app .info-content{max-width:920px;padding:24px;margin:auto}
body#stadium-app.stadium-app .info-content>h1{font-size:clamp(28px,4vw,40px)}
body#stadium-app.stadium-app .info-content :is(section,fieldset,details){border-radius:14px}
body#stadium-app.stadium-app dialog{border:1px solid var(--diamond-border);border-radius:16px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;background:var(--diamond-surface);color:var(--diamond-white)}
@media(min-width:761px){
 body#stadium-app.stadium-app .overview-game-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
 body#stadium-app.stadium-app .chronological-schedule [data-schedule-list]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
}
@media(max-width:760px){
 body#stadium-app.stadium-app>header{min-height:70px;padding:10px max(12px,env(safe-area-inset-right)) 10px max(12px,env(safe-area-inset-left));gap:8px}
 body#stadium-app.stadium-app>header>.diamond-brand-link,body#stadium-app.stadium-app>header>.brand,body#stadium-app.stadium-app>header>.info-brand{flex-basis:154px!important}
 body#stadium-app.stadium-app>header .diamond-brand-logo{width:154px!important}
 body#stadium-app.stadium-app>header :is(.stadium-home,[data-account-control]){font-size:12px;padding:8px 6px}
 body#stadium-app.stadium-app .scoring-app>header .diamond-brand-link{max-width:146px}
 body#stadium-app.stadium-app .scoring-app>header .diamond-brand-logo{width:146px}
 body#stadium-app.stadium-app.discovery-page>main{padding:0 16px}
 body#stadium-app.stadium-app .search-panel{grid-template-columns:1fr;gap:12px}
 body#stadium-app.stadium-app .results-heading h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 body#stadium-app.stadium-app .results-heading{margin:0}
 body#stadium-app.stadium-app .discovery-list{grid-template-columns:1fr}
 body#stadium-app.stadium-app .discovery-copy h3{font-size:16px}
 body#stadium-app.stadium-app .discovery-cta{min-height:44px}
 body#stadium-app.stadium-app.tournament-page #softball-surface>main,body#stadium-app.stadium-app.tournament-page #baseball-root{padding:0 max(10px,env(safe-area-inset-right)) 0 max(10px,env(safe-area-inset-left))}
 body#stadium-app.stadium-app .public-scores{grid-template-columns:1fr}
 body#stadium-app.stadium-app .standings-table :is(th,td){padding:7px 5px}
 body#stadium-app.stadium-app .standings-table .standings-record{display:none}
 body#stadium-app.stadium-app .standings-table .standings-stat{display:table-cell}
 body#stadium-app.stadium-app .standings-table [data-stat=gp],body#stadium-app.stadium-app .standings-table [data-stat=rf],body#stadium-app.stadium-app .standings-table [data-stat=ra],body#stadium-app.stadium-app .standings-table [data-stat=rd]{display:none}
 body#stadium-app.stadium-app .standings-table .standing-note{font-size:9px}
 body#stadium-app.stadium-app .compact-standings>header{align-items:flex-start;flex-direction:column;gap:4px}
 body#stadium-app.stadium-app .standings-table th>button{font-size:13px}
 body#stadium-app.stadium-app [data-stadium-view=bracket] :is(#content,.bb-content):has(.stadium-mobile-bracket)>:not(.stadium-mobile-bracket){display:none!important}
 body#stadium-app.stadium-app .stadium-mobile-bracket{display:block}
 body#stadium-app.stadium-app .stadium-mobile-bracket h2{font-size:22px;margin:0}
 body#stadium-app.stadium-app>.stadium-footer{padding:8px 16px max(10px,env(safe-area-inset-bottom));margin-top:20px}
 body#stadium-app.stadium-app>.stadium-footer>nav{gap:14px;flex-wrap:wrap;font-size:12px}
 body#stadium-app.stadium-app .setup-step>summary{padding:10px;gap:8px}
 body#stadium-app.stadium-app .setup-label>strong{font-size:13px}
 body#stadium-app.stadium-app .setup-state{max-width:82px;font-size:9px}
}
@media(max-width:360px){
 body#stadium-app.stadium-app .schedule-nav-scroll [data-section]{font-size:.75rem;padding-inline:1px}
 body#stadium-app.stadium-app .tournament-nav-icon{width:25px;height:25px}
 body#stadium-app.stadium-app>header .diamond-brand-logo{width:132px!important}
 body#stadium-app.stadium-app>header>.diamond-brand-link,body#stadium-app.stadium-app>header>.brand,body#stadium-app.stadium-app>header>.info-brand{flex-basis:132px!important}
 body#stadium-app.stadium-app .scoring-app>header .diamond-brand-link{max-width:128px}
 body#stadium-app.stadium-app .scoring-app>header .diamond-brand-logo{width:128px}
 body#stadium-app.stadium-app .scoring-top>a:not(.diamond-brand-link){font-size:11px;padding:6px}
 body#stadium-app.stadium-app .schedule-filters{grid-template-columns:1fr 1fr}
 body#stadium-app.stadium-app .schedule-filters label:first-child{grid-column:1/-1}
 body#stadium-app.stadium-app .run-actions button{font-size:11px}
}
@media(orientation:landscape) and (max-height:500px){
 body#stadium-app.stadium-app .scoring-panel:has(.score-run-grid){display:grid;grid-template-columns:1fr 1fr;gap:8px 16px}
 body#stadium-app.stadium-app .scoring-panel>.score-run-grid{grid-column:1;grid-row:1/4;align-self:start}
 body#stadium-app.stadium-app .scoring-panel>.scoring-clock{grid-column:2;grid-row:1;margin:0}
 body#stadium-app.stadium-app .scoring-panel>.scoring-inning{grid-column:2;grid-row:2;margin:0}
 body#stadium-app.stadium-app .scoring-panel>.scoring-count{grid-column:2;grid-row:3;margin:0}
 body#stadium-app.stadium-app .scoring-count button{min-height:66px;padding:6px}
 body#stadium-app.stadium-app .scoring-count b{font-size:28px}
 body#stadium-app.stadium-app .scoring-panel>.scoring-actions{grid-column:1;grid-row:4;margin:0}
 body#stadium-app.stadium-app .scoring-panel>[data-batter]{grid-column:2;grid-row:4}
}
@media(prefers-reduced-motion:reduce){body#stadium-app.stadium-app *{scroll-behavior:auto!important;transition:none!important}}
body#stadium-app.stadium-app .sort-field{display:block}
body#stadium-app.stadium-app .sort-field>label{display:block}
body#stadium-app.stadium-app [data-stadium-view=overview]>.section-title{display:none}
body#stadium-app.stadium-app .ui-director[data-stadium-view=overview]>.schedule-front{display:none}
body#stadium-app.stadium-app .stadium-overview-games>h2{font-size:24px;margin:0 0 12px}
body#stadium-app.stadium-app :is(.stadium-overview-games>h2,[data-stadium-view=scores]>.section-title h2)::after{content:'';display:block;width:124px;max-width:45%;height:3px;background:var(--diamond-gold);margin-top:7px}
body#stadium-app.stadium-app .stadium-overview-games .score-result{background:var(--diamond-surface-elevated);padding:14px;border-radius:14px}
body#stadium-app.stadium-app .stadium-overview-games .score-meta{align-items:center;font-size:14px;font-weight:600;padding-bottom:10px;margin-bottom:10px;border-bottom:1px solid var(--diamond-border)}
body#stadium-app.stadium-app .stadium-overview-games .score-status{font-size:12px;line-height:1.3}
body#stadium-app.stadium-app .stadium-overview-games .score-status.is-live{background:#c8282e;color:#fff;padding:4px 8px;border-radius:6px}
body#stadium-app.stadium-app .stadium-overview-games .score-team{font-size:17px;line-height:1.5;padding-block:3px}
body#stadium-app.stadium-app .stadium-overview-games .score-team>span{border:0;padding:0;overflow-wrap:anywhere}
body#stadium-app.stadium-app .stadium-overview-games .score-team>strong{font-size:19px;flex:none}
body#stadium-app.stadium-app .stadium-game-detail{display:block;border-top:1px solid var(--diamond-border);margin-top:10px;padding-top:8px;font-size:14px;color:var(--diamond-text-secondary)}
body#stadium-app.stadium-app .stadium-schedule-link{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;margin-top:8px;padding:10px 0;border:0;background:none;color:var(--diamond-text-secondary);font-size:12px}
body#stadium-app.stadium-app .search-panel select{width:100%}
body#stadium-app.stadium-app .stadium-home::before{display:none!important}
body#stadium-app.stadium-app .stats>div,body#stadium-app.stadium-app .bb-stats>div{background:none;border-radius:0;box-shadow:none}
body#stadium-app.stadium-app .score-status{background:none;border:0;border-radius:0;padding:0;color:var(--diamond-text-secondary)}
body#stadium-app.stadium-app .score-status.is-live{color:#fff;background:#bc2228;border-radius:5px;padding:2px 6px}

body#stadium-app.stadium-app .stadium-bracket-path{width:100%;min-height:44px;padding:8px 10px;margin:12px 0 0;background:var(--diamond-surface);color:var(--diamond-text-secondary);border:1px solid var(--diamond-border);font-size:12px}
body#stadium-app.stadium-app .stadium-rounds{margin:10px 0 14px}
body#stadium-app.stadium-app .ui-director[data-stadium-view=overview] .director-drawer[open]>summary{display:none}
body#stadium-app.stadium-app .ui-director[data-stadium-view=overview] .setup-heading{margin-top:6px}
body#stadium-app.stadium-app .setup-state[data-complete=true]{background:#eae7dd;color:#171b1d;border-radius:50%;width:22px;height:22px;line-height:22px;text-align:center;font-size:14px;font-weight:700;flex:none}
body#stadium-app.stadium-app .setup-game-day{border:0;border-top:1px solid var(--diamond-border-subtle);padding:18px 0 0;margin-top:22px;background:none}
body#stadium-app.stadium-app .schedule-filters label{display:grid;width:100%}
body#stadium-app.stadium-app .schedule-filters label:has([data-schedule-filter=view]){display:grid;grid-template-columns:1fr;gap:4px;align-items:normal}
body#stadium-app.stadium-app .schedule-filters label:has([data-schedule-filter=view]) select{width:100%}
body#stadium-app.stadium-app .schedule-filters{grid-template-columns:minmax(0,1fr) auto;align-items:start}
body#stadium-app.stadium-app .schedule-filters>label{font-size:0;gap:0}
body#stadium-app.stadium-app .stadium-more-filters{margin:0;border:0;padding:0;background:none}
body#stadium-app.stadium-app .stadium-more-filters>summary{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;background:var(--diamond-surface-elevated);border:1px solid var(--diamond-border);border-radius:12px;font-size:12px}
body#stadium-app.stadium-app .stadium-more-filters[open]{grid-column:1/-1;display:grid;grid-template-columns:1fr;gap:8px}
body#stadium-app.stadium-app .stadium-more-filters>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}
body#stadium-app.stadium-app .stadium-more-filters>div>label{font-size:11px}
body#stadium-app.stadium-app .stadium-team-results{margin-top:18px;padding-top:16px;border-top:1px solid var(--diamond-border-subtle)}
body#stadium-app.stadium-app .stadium-team-results h3{font-size:21px;margin:0 0 12px}
body#stadium-app.stadium-app .stadium-team-results select{width:100%;padding:9px 12px;background:var(--diamond-surface);color:var(--diamond-white);border:1px solid var(--diamond-border);font-size:14px;font-weight:600;margin-bottom:10px}
body#stadium-app.stadium-app .stadium-team-result{padding:12px;border:1px solid var(--diamond-border-subtle);border-radius:12px;background:var(--diamond-surface);margin-bottom:10px;font-size:14px}
body#stadium-app.stadium-app .stadium-team-result>small{display:block;font-size:11px;color:var(--diamond-text-secondary);margin-bottom:7px}
body#stadium-app.stadium-app .stadium-team-result>:is(strong,span){display:flex;justify-content:space-between;gap:10px;line-height:1.5}
body#stadium-app.stadium-app .stadium-team-result b{font-variant-numeric:tabular-nums}
body#stadium-app.stadium-app .stadium-change-team{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:10px 14px;border:1px solid var(--diamond-border);background:var(--diamond-surface-elevated);border-radius:12px;text-decoration:none;color:var(--diamond-white);font-size:14px;font-weight:600}
body#stadium-app.stadium-app .stadium-team-record{margin-top:18px}
body#stadium-app.stadium-app .stadium-team-record h3{font-size:22px;margin:0 0 12px}
body#stadium-app.stadium-app .stadium-team-record .my-team-stats{padding:16px;border:1px solid var(--diamond-border-subtle);border-radius:12px;background:var(--diamond-surface);color:var(--diamond-white)}
body#stadium-app.stadium-app .my-team-message:empty{display:none}
@media(max-width:760px){body#stadium-app.stadium-app .schedule-public .standing-note{display:none}}

/* Stable touch targets and the same compact results layout as the mockups. */
body#stadium-app.stadium-app .run-actions button[data-run$=":-1"]{flex:0 0 44px;min-width:44px}
body#stadium-app.stadium-app .my-team-game .stadium-team-name{display:flex;justify-content:space-between;gap:12px;font-size:17px;font-weight:700}
body#stadium-app.stadium-app .my-team-game .stadium-team-score{white-space:nowrap;font-size:20px;font-variant-numeric:tabular-nums}
body#stadium-app.stadium-app .my-team-game .stadium-team-opponent{font-size:13px;color:var(--diamond-text-secondary)}
body#stadium-app.stadium-app .my-team-game .stadium-team-status{display:flex;gap:8px;align-items:center;font-size:11px;color:var(--diamond-text-secondary)}
body#stadium-app.stadium-app .stadium-match.my-team-path{border-color:var(--diamond-gold)}
body#stadium-app.stadium-app .stadium-match .my-team-label{color:var(--diamond-gold-text)}

body#stadium-app.stadium-app .setup-heading{margin-bottom:0;padding-right:80px}
body#stadium-app.stadium-app .setup-progress{min-height:28px;margin:-26px 0 16px;align-items:center}
@media(max-width:360px){body#stadium-app.stadium-app .setup-heading{font-size:20px}}

body#stadium-app.stadium-app>.stadium-event-details{max-width:var(--stadium-width);margin:18px auto 0;padding:0 24px;border:0}
body#stadium-app.stadium-app>.stadium-event-details>summary{border-top:1px solid var(--diamond-border-subtle)}
@media(max-width:760px){body#stadium-app.stadium-app>.stadium-event-details{padding:0 16px}}

/* Desktop and tablet share one centered shell. The legacy director sidebar is
   hidden by this theme, so its reserved padding must not survive at 1120px. */
@media(min-width:761px){
 body#stadium-app.stadium-app{
  --stadium-width:1280px;
  --stadium-gutter:clamp(24px,2.5vw,40px);
  --stadium-card-padding:22px;
  font-size:16px;
 }
 body#stadium-app.stadium-app>header,
 body#stadium-app.stadium-app.discovery-page>main,
 body#stadium-app.stadium-app.tournament-page #softball-surface>main,
 body#stadium-app.stadium-app.tournament-page #baseball-root,
 body#stadium-app.stadium-app>.stadium-event-details,
 body#stadium-app.stadium-app>.stadium-footer,
 body#stadium-app.stadium-app>main.team-page,
 body#stadium-app.stadium-app>main#sponsor-main,
 body#stadium-app.stadium-app>main:has(#admin-list),
 body#stadium-app.stadium-app>main:has(#create-tournament){
  width:100%;max-width:var(--stadium-width);margin-inline:auto;
  padding-inline:var(--stadium-gutter)!important;
 }
 body#stadium-app.stadium-app>header{
  min-height:74px;padding-block:7px;gap:16px;
 }
 body#stadium-app.stadium-app>header>:is(.diamond-brand-link,.brand,.info-brand){flex-basis:210px!important}
 body#stadium-app.stadium-app>header .diamond-brand-logo{width:210px!important}
 body#stadium-app.stadium-app>header .diamond-wordmark{width:100%!important;height:auto;object-fit:contain}
 body#stadium-app.stadium-app>header :is(.stadium-home,[data-account-control],a[href*="my-team.html"]){
  min-height:44px;padding:10px 14px;font-size:15px;line-height:1.35;
  display:inline-flex;align-items:center;justify-content:center;margin:0;
 }
 body#stadium-app.stadium-app>header a[href*="my-team.html"]{order:1}
 body#stadium-app.stadium-app :is(.setup-sections,.setup-game-day,.game-day-tools,.public-scores,.compact-standings){
  width:100%;max-width:none;margin-inline:0;
 }
 /* Grid places heading and readiness on a real row, without negative margins. */
 body#stadium-app.stadium-app .setup-sections{
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:11px 20px;
 }
 body#stadium-app.stadium-app .setup-heading,
 body#stadium-app.stadium-app .ui-director[data-stadium-view=overview] .setup-heading{
  grid-column:1;grid-row:1;font-size:26px;margin:0 0 5px;padding:0;
 }
 body#stadium-app.stadium-app .setup-progress{
  grid-column:2;grid-row:1;margin:0 0 5px;min-height:0;padding:0;font-size:14px;white-space:nowrap;
 }
 body#stadium-app.stadium-app .setup-step{grid-column:1/-1;width:100%;margin:0;overflow:visible}
 body#stadium-app.stadium-app .setup-step>summary{
  display:grid;grid-template-columns:32px minmax(0,1fr) 144px 20px;
  align-items:center;gap:16px;min-height:64px;padding:14px var(--stadium-card-padding);border-radius:12px;
 }
 body#stadium-app.stadium-app .setup-number{width:32px;height:32px;font-size:15px}
 body#stadium-app.stadium-app .setup-label>strong{font-size:16px;overflow-wrap:anywhere}
 body#stadium-app.stadium-app .setup-state{font-size:14px;max-width:none;justify-self:end;overflow-wrap:anywhere}
 body#stadium-app.stadium-app .setup-state[data-complete=true]{width:26px;height:26px;line-height:26px;font-size:16px}
 body#stadium-app.stadium-app .setup-chevron{width:20px;justify-self:center;font-size:20px;line-height:1}
 body#stadium-app.stadium-app .setup-step-body{padding:4px var(--stadium-card-padding) 22px;font-size:15px}
 body#stadium-app.stadium-app .setup-step-body p{font-size:14px;overflow-wrap:anywhere}
 body#stadium-app.stadium-app .setup-form label{font-size:15px;margin:0;display:grid;gap:6px;align-content:start}
 body#stadium-app.stadium-app .setup-form :is(input:not([type=checkbox]),select){margin:0;min-height:46px;font-size:16px}
 body#stadium-app.stadium-app .setup-form :is(input[type=number],input[type=time],select[name=count]){width:100%;max-width:220px}
 body#stadium-app.stadium-app .setup-form fieldset>label:has(select[name=count]){margin-bottom:18px}
 body#stadium-app.stadium-app :is(.setup-grid,[data-setup-field-names]){
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px;align-items:start;margin-block:8px 16px;
 }
 body#stadium-app.stadium-app [data-setup-field-names]>label{display:grid;grid-template-columns:1fr;gap:6px;margin:0}
 body#stadium-app.stadium-app .setup-form .setup-confirm{display:flex;margin-block:14px;align-items:flex-start;font-size:14px}
 body#stadium-app.stadium-app .setup-form .setup-confirm input{min-height:22px}
 body#stadium-app.stadium-app .setup-actions{gap:10px;margin-top:16px}
 body#stadium-app.stadium-app .setup-step-body :is(button,.setup-button){font-size:15px;padding:11px 16px}
 body#stadium-app.stadium-app :is(.setup-game-day,.game-day-tools){margin-top:24px;padding-top:22px}
 body#stadium-app.stadium-app .game-day-heading{flex-direction:row;align-items:center;gap:24px;margin-bottom:16px}
 body#stadium-app.stadium-app .game-day-heading h2{font-size:26px;margin:0}
 body#stadium-app.stadium-app .director-stage{font-size:14px;margin:6px 0 0}
 body#stadium-app.stadium-app .game-day-heading>button{width:auto;min-height:46px;padding-inline:24px}
 body#stadium-app.stadium-app .game-day-nav{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 20px}
 body#stadium-app.stadium-app .game-day-nav>*{min-height:52px;padding:12px 18px;font-size:15px}
 body#stadium-app.stadium-app :is(.section-title,.schedule-heading,.compact-standings>header){margin-bottom:16px}
 body#stadium-app.stadium-app :is(.section-title h2,.schedule-heading h2,.compact-standings>header h2,.stadium-overview-games>h2,.my-team-overview>h3){font-size:24px}
 body#stadium-app.stadium-app :is(.score-result,.schedule-game-row,.stadium-match,.my-team-game,.discovery-card){padding:18px 20px}
 body#stadium-app.stadium-app :is(.score-meta,.score-status,.schedule-game-meta,.schedule-round,.compact-standings>header small,.standing-note){font-size:13px}
 body#stadium-app.stadium-app :is(.standings-table,.schedule-filters select,.stadium-more-filters>summary){font-size:15px}
 body#stadium-app.stadium-app .standings-table th>button{font-size:15px}
 body#stadium-app.stadium-app .standings-table :is(th,td){padding:12px}
 body#stadium-app.stadium-app .schedule-filters{grid-template-columns:minmax(220px,360px) auto;justify-content:start;gap:12px}
 body#stadium-app.stadium-app .stadium-more-filters>div>label{font-size:13px}
 body#stadium-app.stadium-app .stadium-more-filters[open]{grid-column:auto}
 body#stadium-app.stadium-app>main>h1{font-size:32px;overflow-wrap:anywhere}
 body#stadium-app.stadium-app .discovery-copy p{font-size:14px}
 body#stadium-app.stadium-app .discovery-list{gap:16px}
 /* Wide brackets keep their own scrolling and existing geometry/fullscreen. */
 body#stadium-app.stadium-app :is(#content,.bb-content) :is(.bracket-scroll,.bb-bracket-scroll,.zoom-viewport){max-width:100%;min-width:0;overflow:auto}
}
@media(min-width:1120px){
 body#stadium-app.stadium-app :is(.setup-grid,[data-setup-field-names]){grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Scores retain real data and the original game/full-bracket handlers. */
body#stadium-app.stadium-app [data-stadium-view=scores] .section-title{display:none}
body#stadium-app.stadium-app .scores-heading{font-size:22px;margin:0 0 10px;line-height:1.3}
.scores-heading::after{content:"";display:block;width:34px;height:3px;background:var(--diamond-gold);margin-top:5px}
body#stadium-app.stadium-app [data-stadium-view=scores] .score-meta>span:first-child{color:var(--diamond-text-secondary)}
body#stadium-app.stadium-app [data-stadium-view=scores] .score-meta{padding-bottom:5px;border-bottom:1px solid var(--diamond-border-subtle);margin-bottom:4px;font-size:12px}
body#stadium-app.stadium-app [data-stadium-view=scores] .score-team{font-size:14px;min-height:22px;line-height:1.4}
body#stadium-app.stadium-app [data-stadium-view=scores] .score-team>strong{font-size:15px;flex:none}
body#stadium-app.stadium-app [data-stadium-view=scores] .score-result{padding:10px 14px;border-color:var(--diamond-border);background:var(--diamond-surface);border-radius:12px}
body#stadium-app.stadium-app [data-stadium-view=scores] .stadium-game-detail{display:block;border-top:1px solid var(--diamond-border-subtle);margin-top:5px;padding-top:5px;font-size:12px;color:var(--diamond-text-secondary)}
body#stadium-app.stadium-app .score-view-actions{display:grid;gap:8px;margin-top:10px}
body#stadium-app.stadium-app .score-view-actions button{display:grid;grid-template-columns:24px minmax(0,1fr) 20px;gap:12px;align-items:center;min-height:44px;border:1px solid var(--diamond-border);background:var(--diamond-surface);color:var(--diamond-white);font-size:14px;font-weight:600;padding:10px 16px}
body#stadium-app.stadium-app .score-view-actions :is(svg,button>span:last-child){color:var(--diamond-gold-text)}
body#stadium-app.stadium-app .score-view-actions p{text-align:center;font-size:12px;color:var(--diamond-text-secondary);margin:6px 0}
@media(min-width:760px){body#stadium-app.stadium-app .score-view-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.score-view-actions p{grid-column:1/-1}}
@media(max-width:360px){body#stadium-app.stadium-app .schedule-nav-scroll{gap:6px}body#stadium-app.stadium-app .schedule-nav-scroll [data-section]{font-size:.75rem}}
