/* TD landing and chooser only; tournament engine workspaces retain their existing styles. */
html body.pb781-td-landing>header{display:flex!important;align-items:center!important;min-height:0!important;padding:8px 24px!important;gap:14px;background:#0b1722!important;border-bottom:1px solid #a72d40}
html body.pb781-td-landing>header .official-logo{width:68px!important;height:68px!important;object-fit:contain!important;background:transparent!important;padding:0!important}
html body.pb781-td-landing>header .brand{margin:0!important;padding:0!important}
html body.pb781-td-landing main{padding-top:20px!important;background:#0b1722}
html body.pb781-td-landing #mobileTdConsole>.sectiontitle{margin:0 0 14px!important}
html body.pb781-td-landing #mobileTdConsole h2{font-size:22px;line-height:1.25}
html body.pb781-td-landing #mobileTdSummary{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px!important;margin-bottom:12px}
html body.pb781-td-landing #mobileTdSummary .card{padding:12px 14px!important;background:#142838;border:1px solid #304e65;border-radius:10px}
html body.pb781-td-landing #mobileTdSummary strong{display:block;font-size:20px}
html body.pb781-td-landing #mobileTdEvents,html body.pb781-td-landing #pb358TournamentChooser,html body.pb781-td-landing #pb359SelectedTournament{display:none!important}
#pb781DashboardPicker,#pb781ManagementPicker{min-width:0;margin-top:16px;color:#edf5fb}
.pb781-legacy-picker.pb781-choosing{background:transparent!important;border:0!important;padding:0!important}
.pb781-legacy-picker.pb781-choosing>:not(#pb781ManagementPicker){display:none!important}
.pb781-picker-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.pb781-picker-heading h2{margin:0;font-size:20px}.pb781-picker-heading p{margin:4px 0 0;color:#b8cad8;font-size:13px}
.pb781-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.pb781-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px 12px;padding:15px;border:1px solid #34536d;border-radius:12px;background:linear-gradient(125deg,#19374d,#102231);box-shadow:0 3px 9px #0003;min-width:0}
.pb781-card.pb781-selected{border-left:3px solid #e14b5a}.pb781-date{grid-column:1/-1;color:#a9d8ef;font-size:12px;font-weight:700}
.pb781-card h3{font-size:16px;line-height:1.3;margin:0;overflow-wrap:anywhere}.pb781-card p{font-size:12px;color:#bacddd;margin:5px 0 0;overflow-wrap:anywhere}.pb781-card small{color:#b5e8ca}
.pb781-card button{min-width:90px;min-height:44px;padding:9px 12px;border:1px solid #d64c60;background:#b72d43;color:#fff;border-radius:8px;font-weight:700}
.pb781-card button:focus-visible,.pb781-past>summary:focus-visible{outline:3px solid #89cff4;outline-offset:3px}
.pb781-past{margin-top:14px}.pb781-past>summary{min-height:44px;padding:10px 0;cursor:pointer;font-weight:700;color:#c7d8e5}.pb781-past>summary span{font-size:12px;color:#91afc6;margin-left:8px}
#pb781DashboardPicker[hidden],#pb781ManagementPicker[hidden]{display:none!important}
@media(max-width:760px){.pb781-cards{grid-template-columns:minmax(0,1fr)}.pb781-card{padding:12px}html body.pb781-td-landing>header{padding:8px 14px!important}html body.pb781-td-landing #mobileTdSummary .card{padding:10px!important}html body.pb781-td-landing #mobileTdSummary small{font-size:11px}html body.pb781-td-landing #pb703CreateActions,html body.pb781-td-landing #pb703CreatePanel{display:none!important}}
html.pb-phone-ui body.pb781-td-landing #pb703CreateActions,html.pb-phone-ui body.pb781-td-landing #pb703CreatePanel{display:none!important}

.pb781-legacy-picker.pb781-selected-picker>:not(#pb781SelectedBar){display:none!important}
#pb781SelectedBar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;color:#edf5fb}
#pb781SelectedBar h2{font-size:18px;margin:3px 0;overflow-wrap:anywhere}#pb781SelectedBar small{font-size:12px;color:#b8cad8}#pb781SelectedBar button{min-height:44px;border-radius:8px}
#pb781SelectedBar[hidden]{display:none!important}@media(max-width:600px){#pb781SelectedBar{flex-wrap:wrap}}

/* .782: shared dashboard/chooser view filter; does not grant editing access. */
.pb782-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.pb782-filters button{min-height:44px;padding:9px 14px;border:1px solid #37556b;border-radius:8px;background:#142838;color:#c9dce9;font-weight:700}
.pb782-filters button[aria-pressed=true]{background:#a72d40;border-color:#e15d70;color:white}
.pb782-filters button:focus-visible{outline:3px solid #89cff4;outline-offset:3px}
/* .782: preserve the actual shared/type-specific navigation nodes; compact desktop rail.
   Short or zoomed viewports retain native scrolling rather than clipping controls. */
@media screen and (min-width:900px){
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view):not(.pb-kitchen-open) .shell{grid-template-columns:252px minmax(0,1fr)!important}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view):not(.pb-kitchen-open) .shell>nav{display:grid!important;grid-template-columns:minmax(0,1fr);align-content:start;gap:3px;padding:8px 8px 64px!important;overflow-y:auto!important;min-width:0}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view):not(.pb-kitchen-open) .shell>nav>button{width:100%;min-height:32px;padding:5px 8px!important;margin:0!important;font-size:13px!important;line-height:1.3!important;text-align:left;border:1px solid #304b61;border-radius:8px;background-color:#102333;color:#d5e4ef;white-space:normal;overflow-wrap:anywhere}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view):not(.pb-kitchen-open) .shell>nav>button.active{background:#a72d40;border-color:#db5268;color:white}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view):not(.pb-kitchen-open) .shell>nav>:not(button){grid-column:1/-1}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view):not(.pb-kitchen-open) nav #pb363FormatNav:not(.hidden):not([hidden]){display:grid!important;grid-template-columns:minmax(0,1fr);align-content:start;gap:3px;margin-top:6px;padding:8px 0 0;border-left:0;border-top:1px solid #39556a;min-width:0}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view):not(.pb-kitchen-open) nav #pb363FormatNav .pb-format-title{grid-column:1/-1;padding:3px 2px 4px;font-size:12px;line-height:1.35;overflow-wrap:anywhere}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view):not(.pb-kitchen-open) nav #pb363FormatNav button{width:100%;min-width:0;min-height:32px;padding:5px 8px!important;margin:0!important;font-size:13px!important;line-height:1.3!important;border:1px solid #35536a;border-radius:8px;background:#142b3d;color:#dfebf5;text-align:left;white-space:normal;overflow-wrap:anywhere}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view):not(.pb-kitchen-open) nav #pb363FormatNav button.active{background:#a72d40;border-color:#e26b7e;color:white}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view):not(.pb-kitchen-open) nav button:focus-visible{outline:3px solid #89cff4;outline-offset:1px}
}
/* Respect the pre-existing coarse landscape phone navigation breakpoint. */
@media screen and (min-width:900px) and (orientation:landscape) and (max-height:600px) and (pointer:coarse){
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view):not(.pb-kitchen-open) .shell{grid-template-columns:minmax(0,1fr)!important}
 html:not(.pb-phone-ui) body.pb-explicit-td-view:not(.pb-explicit-player-view):not(.pb-kitchen-open) .shell>nav{display:none!important}
}
/* Phone menu occupies normal flow at the work area's top, not the existing bottom Back/Save bar. */
#pb782MenuDock{position:sticky;top:env(safe-area-inset-top,0px);z-index:9000;padding:6px 0;background:#0b1722;border-bottom:1px solid #34536a;margin:0 0 10px;grid-column:1/-1}
#pb782TournamentMenuButton{min-height:44px;padding:9px 16px;background:#17364c;border:1px solid #56819d;border-radius:8px;color:#edf5fb;font-weight:700}
#pb782MenuDock[hidden]{display:none!important}
#pb782TournamentMenu{width:min(720px,calc(100vw - 20px));max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));overflow:auto;padding:12px;border:1px solid #436780;border-radius:12px;background:#0b1722;color:#edf5fb;box-sizing:border-box}
#pb782TournamentMenu::backdrop{background:#020912d9}
#pb782TournamentMenu>header{position:sticky;top:-12px;z-index:2;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:12px 0;background:#0b1722;border-bottom:1px solid #34536a}
#pb782TournamentMenu h2{font-size:19px;margin:0}#pb782TournamentMenu>header button{min-height:44px;padding:9px 12px;background:#a72d40;color:white;border:1px solid #e16579;border-radius:8px}
html body #pb782TournamentMenu #pb363FormatNav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;border:0;margin:12px 0 0;padding:0}
#pb782TournamentMenu #pb363FormatNav .pb-format-title{grid-column:1/-1;font-size:13px;line-height:1.4;padding:4px 0 8px;overflow-wrap:anywhere}
#pb782TournamentMenu #pb363FormatNav button{min-height:48px;width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.3;padding:10px;font-size:14px;text-align:left;border:1px solid #3c5b73;border-radius:9px;background:#163047;color:#e0edf7}
#pb782TournamentMenu #pb363FormatNav button.active{background:#a72d40;border-color:#e16579}
#pb782TournamentMenu button:focus-visible,#pb782TournamentMenuButton:focus-visible{outline:3px solid #91d5ff;outline-offset:2px}
#pb782TournamentMenu #pb363FormatNav [hidden],#pb782TournamentMenu #pb363FormatNav .hidden{display:none!important}
@media print{#pb782MenuDock,#pb782TournamentMenu{display:none!important}}
