/* Personal League presentation. Last scoped layer after Foundation/compact styles. */
.league-compact {
  --lx-row-target:36px;
  --lx-row-gap:4px;
  --lx-card-surface: var(--btb-vs1-white);
  --lx-card-shadow: 0 8px 28px rgb(16 43 58 / .045);
  --lx-header-desktop-image: url("../visual/photos/ds2/p06.c155efdb06bf.jpg");
  background: var(--btb-surface-canvas);
  background-repeat:no-repeat;
  min-height:100dvh;
  padding-bottom:0;
}
.league-compact #content {
  position:relative; isolation:isolate;
}
.league-compact #content::before {
  content:''; position:absolute; inset:0; z-index:-1; pointer-events:none; opacity:.055;
  background:url("../visual/rally/btb-home-court-corner.a57166d674df.svg") left bottom / min(42vw,560px) auto no-repeat;
}
.league-compact .lx-shell { width:min(1312px,calc(100% - 64px)); padding-block:24px 40px; }
.league-compact .lx-icon { display:inline-block; width:24px; height:24px; flex:0 0 auto; vertical-align:middle; }
.league-compact .lx-night-context {
  position:relative; isolation:isolate; min-height:180px; padding:12px 24px 20px;
  border:1px solid var(--btb-vs1-border); border-radius:18px; color:var(--btb-vs1-white);
  background:linear-gradient(100deg,rgb(16 43 58 / .96),rgb(18 59 86 / .84) 52%,rgb(18 59 86 / .16)),
    var(--lx-header-desktop-image) 65% 55% / cover,var(--btb-brand-night);
}
.lx-context-back { display:inline-flex; align-items:center; gap:8px; min-height:44px; color:inherit; font-size:.78rem; text-decoration:underline; text-underline-offset:6px; }
.lx-context-back .lx-icon { width:17px; height:17px; }
.league-compact .lx-focus-header { display:flex; align-items:center; justify-content:space-between; gap:24px; padding-block:4px 14px; }
.lx-focus-header h1 { flex:1 1 60%; min-width:0; margin:0; font:var(--btb-font-public-hero); }
.lx-focus-header h1 a { display:flex; align-items:center; gap:8px; min-height:44px; text-decoration:none; }
.lx-focus-header h1 a>.lx-icon { display:none; }
.lx-focus-header h1 a>span { overflow-wrap:anywhere; }
.lx-team-switcher { position:relative; flex:0 1 34%; max-width:320px; }
.lx-team-switch-label { display:block; min-height:46px; padding:12px 34px 12px 40px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; border:1px solid rgb(255 255 255 / .6); border-radius:12px; background:rgb(16 43 58 / .8); color:var(--btb-vs1-white); font-size:.9rem; font-weight:650; }
.lx-switch-star,.lx-switch-chevron { display:none; position:absolute; top:50%; transform:translateY(-50%); pointer-events:none; }
.lx-team-switcher:has(select:not([hidden])) :is(.lx-switch-star,.lx-switch-chevron) { display:block; }
.lx-switch-star { left:12px; color:var(--btb-vs1-sun); }
.lx-switch-star .lx-icon { width:20px; height:20px; fill:currentColor; }
.lx-switch-chevron { right:10px; }
.lx-switch-chevron .lx-icon { width:16px; height:16px; }
.lx-shell .lx-team-switcher select { position:absolute; inset:0; min-height:46px; opacity:0; cursor:pointer; }
.lx-team-switcher:focus-within { outline:3px solid var(--btb-vs1-sun); outline-offset:3px; border-radius:12px; }
.lx-team-switcher>a { display:flex; align-items:center; justify-content:space-between; gap:6px; min-height:46px; padding:10px 14px; border:1px solid rgb(255 255 255 / .6); border-radius:12px; background:rgb(16 43 58 / .8); color:inherit; font-size:.85rem; text-decoration:none; }
.lx-context-details>p { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:0; font-size:.88rem; color:var(--btb-vs1-white); }
.lx-context-details .lx-icon { width:20px; height:20px; }
.lx-context-status { margin-left:6px; padding:3px 9px; border:1px solid rgb(255 255 255 / .35); border-radius:20px; font-size:.72rem; background:rgb(16 43 58 / .8); }
.league-compact .lx-night-context :is(a,select):focus-visible { outline-color:var(--btb-vs1-sun); }
.league-compact .lx-tabs { gap:2px; margin:16px 0 20px; border:1px solid var(--btb-vs1-border); border-radius:14px; background:rgb(255 255 255 / .65); }
.league-compact .lx-tabs a { display:flex; align-items:center; justify-content:center; gap:12px; min-height:54px; padding:12px 8px; border-radius:12px; font-size:.95rem; font-weight:550; }
.league-compact .lx-tabs a[aria-current] { background:var(--btb-vs1-primary-light); border-radius:12px 12px 0 0; font-weight:750; }
.league-compact .lx-tabs a:hover { background:var(--btb-vs1-primary-light); }
.league-compact .lx-panel,.lx-focus-matches,.lx-focus-standings {
  padding:20px; border:1px solid var(--btb-vs1-border); border-radius:18px; background:var(--lx-card-surface); box-shadow:var(--lx-card-shadow);
}
.lx-focus-overview { display:grid; gap:12px; align-items:start; max-width:none; margin-inline:auto; }
.lx-focus-overview[hidden] { display:none; }
.lx-unplaced-link { display:inline-flex; align-items:center; min-height:44px; font-size:.82rem; color:var(--btb-vs1-primary-dark); }
.lx-focus-overview .lx-section-heading { gap:8px; margin:0 0 14px; }
.league-compact :is(.lx-section-heading h2,.lx-pool-picker>summary) { display:flex; align-items:center; gap:8px; font:var(--btb-font-public-section); }
.league-compact .lx-section-heading h2 { margin:0; }
.league-compact :is(.lx-section-heading h2,.lx-pool-picker>summary)>.lx-icon:first-child { color:var(--btb-vs1-primary); }
.lx-focus-overview .lx-section-heading small { font-size:.76rem; color:var(--btb-vs1-muted); font-variant-numeric:tabular-nums; }
/* The context is one unit; both opponents share the remaining width. */
.lx-focus-match { display:grid; grid-template-columns:62px minmax(0,1fr); gap:var(--lx-row-gap); align-items:stretch; margin-top:6px; border:1px solid var(--btb-vs1-border); border-radius:8px; background:var(--btb-vs1-white); }
.lx-focus-match-date { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; padding:4px; border-radius:7px 0 0 7px; background:var(--btb-vs1-surface); color:var(--btb-vs1-ink); text-decoration:none; font-size:.72rem; font-weight:500; line-height:1.25; text-align:center; overflow-wrap:anywhere; }
.lx-focus-match-date time { display:grid; gap:2px; }
.lx-focus-match-date strong { font-size:.8rem; font-weight:600; font-variant-numeric:tabular-nums; }
.lx-focus-match-date small { font-size:.68rem; font-weight:500; color:var(--btb-vs1-muted); }
.lx-focus-match-teams { min-width:0; padding:2px 6px 2px 0; }
.lx-focus-match-team { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:var(--lx-row-gap); }
.lx-focus-match-team .lx-favorite-team-label>a { font-size:.84rem; font-weight:500; text-decoration:none; }
.lx-focus-match-team.is-focus-team a { font-weight:550; }
.lx-focus-match-team.is-winner:not(.is-focus-team) a { font-weight:500; }
.lx-focus-scores { display:grid; grid-auto-flow:column; grid-auto-columns:1.3em; gap:3px; font-size:.94rem; font-variant-numeric:tabular-nums; }
.lx-focus-scores .lx-set-won { color:var(--btb-vs1-success); font-weight:550; }
.lx-focus-scores .lx-set-lost { color:var(--btb-vs1-danger); font-weight:500; }
.lx-focus-scores b { text-align:center; }
.lx-focus-result { display:flex; flex-wrap:wrap; gap:2px 8px; padding:2px 0 2px var(--lx-row-target); font-size:.72rem; line-height:1.35; color:var(--btb-vs1-muted); }
.lx-focus-recent .lx-focus-match { max-width:800px; }
.lx-match-expansion { margin-top:10px; }
.lx-match-expansion>summary { cursor:pointer; text-align:center; padding:10px 8px; min-height:44px; border-radius:9px; background:var(--btb-vs1-primary-light); color:var(--btb-vs1-primary-dark); list-style:none; font-size:.82rem; }
.lx-match-expansion .lx-show-more,.lx-match-expansion[open] .lx-show-less { display:inline-flex; gap:6px; align-items:center; }
.lx-match-expansion .lx-show-less,.lx-match-expansion[open] .lx-show-more { display:none; }
.lx-match-expansion .lx-icon { width:16px; height:16px; }
.lx-match-expansion .lx-show-less .lx-icon { transform:rotate(180deg); }
.lx-match-expansion>summary::-webkit-details-marker { display:none; }
.lx-focus-overview .lx-empty { padding:10px 0; margin:0; font-size:.88rem; }
.lx-choose-hint { grid-column:1/-1; }
.lx-pool-picker { position:relative; }
.league-compact .lx-pool-picker>summary { min-height:44px; cursor:pointer; list-style:none; }
.lx-pool-picker>summary>span { flex:1; overflow-wrap:anywhere; }
.lx-pool-picker>summary>.lx-icon:last-child { width:16px; height:16px; }
.lx-pool-picker[open]>summary>.lx-icon:last-child { transform:rotate(180deg); }
.lx-pool-picker>summary::-webkit-details-marker { display:none; }
.lx-pool-picker nav { position:absolute; left:0; top:100%; width:min(340px,calc(100vw - 48px)); max-height:min(55dvh,440px); overflow:auto; overscroll-behavior:contain; z-index:35; padding:8px; border:1px solid var(--btb-vs1-border); border-radius:12px; background:var(--btb-vs1-white); box-shadow:var(--btb-vs1-shadow-lift); }
.lx-pool-picker[data-menu-side="above"] nav { top:auto; bottom:100%; }
.lx-pool-picker a { display:flex; align-items:center; justify-content:space-between; min-height:44px; padding:8px; text-decoration:none; border-radius:6px; font-size:.88rem; }
.lx-pool-picker a[aria-current],.lx-pool-picker a:hover { background:var(--btb-vs1-primary-light); font-weight:700; }
.lx-pool-group { border-top:1px solid var(--btb-vs1-border); margin-top:4px; padding-top:4px; }
.lx-pool-group>strong { display:block; padding:8px; color:var(--btb-vs1-muted); font-size:.75rem; }
.league-compact .lx-table { table-layout:fixed; min-width:0; border-spacing:0 2px; font-size:.86rem; }
.league-compact .lx-table :is(th,td) { padding:2px 5px; height:auto; vertical-align:middle; }
.league-compact .lx-table thead th { height:34px; font-size:.73rem; font-weight:650; text-transform:none; letter-spacing:0; }
.league-compact .lx-table thead th:first-child { width:36px; }
.league-compact .lx-table thead th:nth-child(2) { width:auto; }
.league-compact .lx-table thead th:nth-child(n+3) { width:38px; }
.league-compact .lx-table tbody th { font-weight:550; }
.league-compact .lx-table tbody tr { background:var(--btb-vs1-surface); }
.league-compact .lx-table tr.is-focus { background:var(--btb-vs1-sand); box-shadow:none; }
.league-compact .lx-table tr.is-focus th { font-weight:750; }
.league-compact .lx-table .lx-position span { width:28px; height:30px; font-size:.85rem; background:var(--btb-vs1-white); color:var(--btb-vs1-ink); }
.league-compact .lx-table .lx-favorite-team-label { gap:0; }
.league-compact .lx-table .lx-favorite-team-label>a { display:flex; align-items:center; min-height:var(--lx-row-target); padding-block:0; }
.league-compact .lx-table .lx-secondary-stat { display:table-cell; }
.league-compact .lx-table .lx-table-note { margin:0; font-size:.65rem; }
.lx-focus-standings .lx-table-wrap { overflow-x:auto; overscroll-behavior-inline:contain; padding:2px; }
.league-compact .lx-pool-search-row { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; margin-bottom:14px; }
.league-compact .lx-pool-search input,.league-compact .lx-team-search input { min-height:46px; border:1px solid var(--btb-vs1-border); border-radius:10px; background:var(--btb-vs1-surface); padding:10px 14px; font:inherit; font-size:16px; color:var(--btb-vs1-ink); width:100%; }
.league-compact .lx-pool-search button { display:grid; place-items:center; min-width:46px; min-height:46px; padding:10px; background:var(--btb-vs1-primary); }
.league-compact .lx-standings { width:100%; max-width:760px; }
.league-compact .lx-standings .lx-pool-table { border-top:2px solid var(--pool-color,var(--btb-vs1-border)); padding-top:8px; }
.league-compact .lx-team-directory { max-width:960px; }
.league-compact .lx-team-filters { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; position:relative; margin:12px 0; }
.lx-directory-filters>summary { display:flex; justify-content:center; align-items:center; width:46px; min-height:46px; cursor:pointer; border:1px solid var(--btb-vs1-border); border-radius:10px; list-style:none; background:transparent; color:var(--btb-vs1-muted); }
.lx-directory-filters>summary::-webkit-details-marker { display:none; }
.lx-directory-filters>div { display:flex; gap:8px; position:absolute; top:54px; left:0; right:0; }
.league-compact .lx-team-filters:has(.lx-directory-filters[open]) { padding-bottom:56px; }
.lx-directory-filters[open]>summary { background:var(--btb-vs1-primary-light); color:var(--btb-vs1-primary-dark); }
.lx-team-filters [data-team-submit] { grid-column:1/-1; }
.lx-team-filters:has(.lx-directory-filters[open]) [data-team-submit]:not([hidden]) { margin-top:56px; }
.lx-directory-filters label { flex:1 1 120px; }
.league-compact .lx-team-row { min-height:calc(var(--lx-row-target) + 6px); display:grid; grid-template-columns:var(--lx-row-target) minmax(0,1fr); gap:var(--lx-row-gap); align-items:center; padding:3px 8px; border-radius:0; }
.lx-team-row>.lx-favorite-star { grid-column:1; grid-row:1; }
.lx-team-row-content { grid-column:2; display:grid; grid-template-columns:minmax(0,1fr) minmax(100px,.5fr); align-items:center; gap:2px 16px; min-width:0; padding-block:2px; }
.lx-team-row-name { flex:0 1 auto; max-width:100%; overflow-wrap:anywhere; font:var(--btb-font-public-team); color:var(--btb-vs1-ink); text-decoration:none; }
.lx-team-row-name:hover { text-decoration:underline; }
.lx-team-row-meta,.lx-team-row-state { flex:0 0 auto; max-width:100%; color:var(--btb-vs1-muted); font-size:.78rem; line-height:1.35; overflow-wrap:anywhere; }
.lx-team-row-meta a { color:inherit; }
.lx-team-row-state { grid-column:1/-1; }
/* Same compact, non-overlapping target in directory and leading-label contexts. */
.league-compact .lx-team-row>.lx-favorite-star { width:var(--lx-row-target); min-width:var(--lx-row-target); min-height:var(--lx-row-target); padding:4px; }
.league-compact .lx-team-row>.lx-favorite-star>.lx-icon { width:18px; height:18px; }
.league-compact .lx-team-row:nth-child(odd) { background:var(--btb-vs1-surface); }
.league-compact .lx-team-row:has(.lx-favorite-star[aria-pressed="true"]) { background:var(--btb-vs1-sand); }
.league-compact .lx-team-row.is-current { box-shadow:inset 3px 0 var(--btb-vs1-primary); }
.league-compact .lx-team-row:hover,.league-compact .lx-team-row:focus-within { background:var(--btb-vs1-primary-light); }
.league-compact .lx-fixture-day>h3 { display:flex; align-items:center; gap:10px; margin-block:22px 12px; color:var(--btb-vs1-ocean); font-weight:600; }
.league-compact .lx-fixture-day>h3::before { content:''; width:4px; height:22px; border-radius:4px; background:var(--btb-vs1-primary); }
.league-compact .lx-fixture { border-radius:12px; background:var(--btb-vs1-surface); }
.league-compact .lx-row-meta { display:grid; gap:4px; padding:8px; border-radius:8px; background:var(--btb-vs1-primary-light); }
.league-compact .lx-row-expand .lx-icon { width:14px; height:14px; }
.league-compact .lx-row-meta time { font-weight:750; font-size:.86rem; }
.league-compact .lx-row-team.is-winner { background:var(--btb-vs1-success-soft); }
.league-compact .lx-row-team.is-winner a { font-weight:750; }
.league-compact .lx-match { box-shadow:0 2px 8px rgb(16 43 58 / .03); }
.league-compact .lx-match-meta :is(.lx-date,.lx-time) { display:inline-flex; align-items:center; gap:5px; }
.league-compact .lx-match-meta .lx-icon { width:16px; height:16px; }
.league-compact :is(.lx-focus-match-team a,.lx-focus-match-date):hover { text-decoration:underline; }
@media(max-width:1100px) {
}
@media(max-width:768px) {
  .league-compact .app-header,.league-compact>.mobile-nav { display:none; }
  .league-compact #content::before { display:none; }
  .league-compact .lx-shell { width:calc(100% - 24px); padding-top:0; padding-bottom:calc(100px + env(safe-area-inset-bottom)); }
  /* Keep the sticky title legible as the photo and details scroll away. */
  .league-compact .lx-night-context { display:contents; }
  .league-compact .lx-context-back { display:none; }
  .league-compact .lx-focus-header { position:sticky; top:0; z-index:38; min-height:58px; margin-inline:-12px; padding:7px max(12px,env(safe-area-inset-right)) 7px max(12px,env(safe-area-inset-left)); gap:8px; background:var(--btb-vs1-ocean); color:var(--btb-vs1-white); box-shadow:0 2px 8px rgb(16 43 58 / .1); }
  .lx-focus-header h1 { flex:1 1 55%; font:var(--btb-font-public-compact-title); }
  .lx-focus-header h1 a { gap:6px; }
  .lx-focus-header h1 a>.lx-icon { display:block; width:18px; height:18px; }
  .lx-focus-header h1 a>span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .lx-team-switcher { flex:0 1 44%; max-width:44%; }
  .lx-team-switch-label { padding:11px 25px 11px 29px; border-radius:10px; font-size:.78rem; }
  .lx-switch-star { left:7px; }
  .lx-switch-star .lx-icon { width:17px; height:17px; }
  .lx-switch-chevron { right:6px; }
  .lx-switch-chevron .lx-icon { width:13px; height:13px; }
  .lx-team-switcher>a { padding:10px 8px; font-size:.78rem; }
  .lx-shell .lx-team-switcher select { font-size:16px; }
  .league-compact .lx-context-details { min-height:0; margin:0 -12px 14px; padding:12px 18px; border-radius:0 0 12px 12px;
    background:linear-gradient(175deg,var(--btb-vs1-ocean),transparent 90%),
      linear-gradient(90deg,rgb(16 43 58 / .94),rgb(18 59 86 / .55)),
      var(--lx-header-desktop-image) 62% 54% / cover,var(--btb-brand-night); }
  .lx-context-details>p { gap:8px; align-items:flex-start; font-size:.76rem; }
  .lx-context-details>p>span:not(.lx-context-status) { flex:1; }
  .lx-context-details .lx-icon { width:16px; height:16px; }
  .lx-context-status { display:none; }
  .league-compact .lx-tabs { position:fixed; left:0; right:0; bottom:0; top:auto; z-index:40; margin:0; padding:6px max(8px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left)); border:0; border-top:1px solid var(--btb-vs1-border); border-radius:0; box-shadow:0 -3px 16px rgb(18 59 86 / .08); background:var(--btb-vs1-white); }
  .league-compact .lx-tabs a { display:flex; flex-direction:column; gap:4px; min-height:56px; padding:4px 2px; border-bottom:0; border-radius:11px; font-size:.72rem; line-height:1.35; overflow-wrap:anywhere; }
  .league-compact .lx-tabs .lx-icon { width:22px; height:22px; }
  .league-compact .lx-tabs a[aria-current] { border-radius:11px; text-decoration:none; box-shadow:inset 0 -2px var(--btb-vs1-primary); }
  .league-compact .lx-shell :is([id],a,button,input,select,summary) { scroll-margin-top:76px; scroll-margin-bottom:calc(110px + env(safe-area-inset-bottom)); }
  .league-compact .lx-panel,.lx-focus-matches,.lx-focus-standings { padding:12px; border-radius:16px; }
  .lx-focus-overview { gap:12px; }
  .league-compact :is(.lx-section-heading h2,.lx-pool-picker>summary) { font:var(--btb-font-public-compact-title); gap:8px; }
  .lx-focus-overview .lx-section-heading { margin-bottom:8px; }
  .lx-focus-match { grid-template-columns:58px minmax(0,1fr); }
  .lx-focus-match-team .lx-favorite-team-label>a { font-size:.84rem; }
  .lx-focus-scores { font-size:.88rem; }
  .league-compact .lx-table { font-size:.8rem; }
  .league-compact .lx-table :is(th,td) { padding:2px; }
  .league-compact .lx-table thead th { font-size:.66rem; height:32px; }
  .league-compact .lx-table thead th:first-child { width:28px; }
  .league-compact .lx-table thead th:nth-child(n+3) { width:25px; }
  .league-compact .lx-table .lx-position span { width:24px; height:28px; }
  .league-compact .lx-table .lx-favorite-team-label { gap:0; }
  .league-compact .lx-pool-search-row { gap:8px; }
  .lx-pool-picker nav { max-height:calc(100dvh - 190px - env(safe-area-inset-bottom)); }
  .lx-pool-picker:not([data-menu-side]) nav { position:static; width:100%; }
  .league-compact .lx-team-row { padding-inline:8px; }
}
@media(max-width:359px) {
  .league-compact .lx-shell { width:calc(100% - 16px); }
  .league-compact .lx-focus-header { margin-inline:-8px; padding-inline:8px; gap:5px; }
  .league-compact .lx-context-details { margin-inline:-8px; }
  .lx-focus-header h1 { font-size:.87rem; }
  .lx-team-switch-label { font-size:.73rem; }
  .league-compact .lx-panel,.lx-focus-matches,.lx-focus-standings { padding:9px; }
  .lx-focus-match { grid-template-columns:52px minmax(0,1fr); }
  .league-compact .lx-table thead th:nth-child(n+3) { width:22px; }
}
@media(prefers-reduced-motion:reduce) { .league-compact { scroll-behavior:auto; } }

/* Overview discovery and wide dashboard; compact fixture rows remain unchanged. */
.lx-overview-discovery { grid-column:1/-1; position:relative; z-index:20; }
.lx-discovery-controls { display:block; }
.lx-discovery-controls input { width:100%; min-height:44px; padding:8px; border:1px solid var(--btb-vs1-border); border-radius:10px; background:var(--btb-vs1-white); color:var(--btb-vs1-ink); font:inherit; font-size:16px; }
.lx-overview-finals { grid-column:1/-1; margin:0; }
.lx-discovery-results { position:absolute; top:100%; left:0; right:0; max-height:min(420px,max(72px,calc(100dvh - 310px))); overflow:auto; padding:6px; border:1px solid var(--btb-vs1-border); border-radius:10px; background:var(--btb-vs1-white); box-shadow:var(--btb-vs1-shadow-lift); }
.lx-overview-all { display:inline-flex; align-items:center; min-height:44px; font-size:.82rem; }
.league-compact .lx-team-switcher[data-favorite=false] .lx-switch-star { display:none; }
.lx-team-switcher[data-favorite=false] .lx-team-switch-label { padding-left:12px; }
@media(min-width:1024px) {
  .lx-focus-overview { grid-template-columns:minmax(0,4fr) minmax(0,5fr) minmax(0,3.7fr); }
}
@media(min-width:769px) {
  .league-compact .lx-night-context .lx-focus-header { max-width:68%; }
  .league-compact .lx-night-context .lx-context-details { max-width:68%; }
}
@media(min-width:769px) and (max-width:900px) {
  .league-compact > .mobile-nav { display:none; }
  .league-compact .lx-shell { padding-bottom:calc(112px + env(safe-area-inset-bottom)); }
  .league-compact .lx-tabs { position:fixed; z-index:40; inset:auto 0 0; margin:0; border-radius:0; padding:6px 16px calc(6px + env(safe-area-inset-bottom)); background:var(--btb-surface-paper); }
}
@media(max-width:768px) {
  .league-compact .lx-focus-header h1 a>span { overflow:visible; white-space:normal; }
}
.lx-discovery-results .lx-team-row-content { text-decoration:none; }
/* BTB-213 public Matches owns only this read-only browser. */
.lx-match-browser { min-width:0; --lx-row-target:36px; --lx-row-gap:3px; }
.lx-match-heading { display:flex; align-items:center; flex-wrap:wrap; position:relative; justify-content:space-between; gap:4px 6px; margin-bottom:8px; }
.league-compact .lx-match-heading h2 { margin:0; font-size:1.08rem; }
.lx-match-heading .lx-secondary-action { min-height:44px; display:inline-flex; align-items:center; font-size:.8rem; color:var(--btb-vs1-primary-dark); }
.lx-match-controls:not([hidden]) { display:grid; gap:8px; margin-bottom:10px; }
.lx-match-actions { display:flex; gap:2px; margin-left:auto; flex:0 0 auto; }
.lx-match-actions>button { position:relative; width:44px; min-width:44px; min-height:44px; padding:10px; display:flex; align-items:center; justify-content:center; border:1px solid var(--btb-vs1-border); border-radius:8px; background:var(--btb-vs1-white); cursor:pointer; }
.lx-match-actions .lx-icon { width:20px; height:20px; }
.lx-match-actions>button[aria-expanded="true"] { background:var(--btb-vs1-primary-light); border-color:var(--btb-vs1-primary); }
.lx-action-dot,.lx-action-badge { position:absolute; right:3px; top:3px; background:var(--btb-vs1-primary-dark); color:var(--btb-vs1-white); border-radius:12px; pointer-events:none; }
.lx-action-dot { width:6px; height:6px; }
.lx-action-badge { min-width:14px; height:14px; padding:0 3px; font-size:10px; line-height:14px; text-align:center; }
.lx-search-panel:not([hidden]) { position:relative; padding:8px; border:1px solid var(--btb-vs1-border); border-radius:8px; background:var(--btb-vs1-surface); }
.lx-match-browser .lx-search-panel input { width:100%; min-width:0; padding-right:52px; }
.lx-search-panel input::-webkit-search-cancel-button { display:none; }
.lx-match-browser .lx-search-panel [data-clear-search] { position:absolute; top:9px; right:9px; width:44px; min-height:44px; display:grid; place-items:center; padding:0; font-size:1.2rem; text-decoration:none; border-radius:6px; }
.lx-view-menu { position:absolute; right:0; top:100%; z-index:30; width:min(220px,100%); padding:4px; border:1px solid var(--btb-vs1-border); border-radius:8px; background:var(--btb-vs1-white); box-shadow:var(--lx-card-shadow); }
.lx-view-menu button { display:flex; align-items:center; gap:8px; width:100%; min-height:44px; padding:8px 12px; text-align:left; border:0; border-radius:5px; background:transparent; overflow-wrap:anywhere; cursor:pointer; }
.lx-view-menu button .lx-icon { flex:none; width:20px; height:20px; }
.lx-view-menu button[aria-checked="true"] { background:var(--btb-vs1-primary-light); font-weight:700; }
.lx-match-browser :is(input,select,button) { font:inherit; color:var(--btb-vs1-ink); }
.lx-match-browser :is(input,select) { width:100%; min-width:0; min-height:44px; padding:8px 10px; background:var(--btb-vs1-white); border:1px solid var(--btb-vs1-border); border-radius:8px; font-size:16px; }
.lx-match-browser :is(button,select,summary,a) { -webkit-tap-highlight-color:transparent; }
.lx-filter-favorites[aria-pressed="true"] { background:var(--btb-vs1-sand); border-color:#b78d40; }
.lx-filter-favorites[aria-pressed="true"] .lx-icon { fill:currentColor; color:#996000; }
.lx-advanced-filters:not([hidden]) { display:grid; align-items:start; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; padding:10px; border:1px solid var(--btb-vs1-border); background:var(--btb-vs1-surface); border-radius:8px; }
.lx-advanced-filters>label { display:grid; align-content:start; gap:4px; min-width:0; font-size:.75rem; color:var(--btb-vs1-muted); }
.lx-match-browser fieldset { margin:0; padding:0; min-width:0; border:0; }
.lx-match-browser legend { padding:0; margin-bottom:4px; font-size:.75rem; color:var(--btb-vs1-muted); overflow-wrap:anywhere; }
.lx-category-options>div { display:flex; gap:4px; flex-wrap:wrap; }
.lx-category-options button { min-height:44px; max-width:100%; padding:6px 10px; background:var(--btb-vs1-white); border:1px solid var(--btb-vs1-border); border-radius:6px; overflow-wrap:anywhere; cursor:pointer; }
.lx-category-options button[aria-pressed="true"] { background:var(--btb-vs1-primary-light); border-color:var(--btb-vs1-primary); font-weight:650; }
.lx-status-options { display:flex; align-items:flex-start; flex-wrap:wrap; gap:0 12px; }
.lx-status-options label { display:flex; align-items:center; gap:6px; min-height:44px; font-size:.8rem; cursor:pointer; }
.lx-match-browser .lx-status-options input { width:18px; height:18px; min-height:18px; margin:0; padding:0; accent-color:var(--btb-vs1-primary); }
.lx-context-filters:empty { display:none; }
.lx-context-filters { display:flex; flex-wrap:wrap; gap:4px; grid-column:1/-1; }
.lx-context-filters button { min-height:36px; max-width:100%; border:1px solid var(--btb-vs1-border); border-radius:6px; background:white; padding:4px 8px; font-size:.75rem; overflow-wrap:anywhere; cursor:pointer; }
.lx-advanced-filters select { font-size:.85rem; }
.lx-nojs-search { display:flex; flex-wrap:wrap; gap:8px; align-items:end; margin-block:10px; }
.lx-nojs-search label { flex:1 1 130px; font-size:.8rem; }
.lx-nojs-search button { min-height:44px; padding:8px 12px; }
.lx-match-summary { display:flex; align-items:center; flex-wrap:wrap; gap:4px 10px; min-width:0; }
.lx-match-summary-context { display:flex; align-items:center; flex-wrap:wrap; gap:4px 10px; flex:1 1 auto; min-width:0; }
.lx-match-summary output { font-size:.75rem; color:var(--btb-vs1-muted); white-space:nowrap; }
.lx-match-browser .lx-text-action { min-height:36px; padding:5px 0; border:0; background:transparent; color:var(--btb-vs1-primary-dark); font-size:.8rem; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.lx-list-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; margin-left:auto; flex:0 0 auto; }
.lx-list-actions .lx-text-action { display:inline-flex; align-items:center; gap:5px; white-space:nowrap; }
/* Preserve the existing count/chips/reset flow in Schedule and Details. */
.lx-match-browser:not([data-view="list"]) .lx-match-summary-context { display:contents; }
.lx-match-browser:not([data-view="list"]) [data-match-reset] { margin-left:auto; }
.lx-schedule-picker:not([hidden]) { display:flex; align-items:center; flex-wrap:wrap; gap:8px; font-size:.8rem; }
.lx-schedule-picker select { width:auto; max-width:100%; }
.lx-schedule-picker>span { margin-left:auto; color:var(--btb-vs1-muted); font-size:.72rem; }
.lx-browser-day { margin-top:6px; }
.lx-browser-day>summary,.lx-browser-played>summary { display:flex; align-items:center; flex-wrap:wrap; gap:8px; list-style:none; cursor:pointer; min-height:44px; padding:7px 12px; font-size:.85rem; }
.lx-match-browser summary::-webkit-details-marker { display:none; }
.lx-browser-day>summary { color:white; background:var(--btb-vs1-ocean); border-radius:6px; font-weight:650; }
.lx-browser-day>summary small,.lx-browser-played>summary small { flex:0 0 auto; margin-left:auto; font-size:.7rem; white-space:nowrap; font-weight:400; }
.lx-match-browser summary>.lx-disclosure-chevron { flex:0 0 16px; }
.lx-browser-day>summary>span:first-child,.lx-browser-played>summary>span:first-child { overflow-wrap:anywhere; }
.lx-disclosure-chevron { display:block; width:16px; text-align:center; transition:transform .15s; }
.league-compact .lx-disclosure-chevron .lx-icon { width:16px; height:16px; display:block; }
.lx-match-browser details[open]>summary>.lx-disclosure-chevron { transform:rotate(180deg); }
.lx-match-browser[data-view="list"] { container:league-list / inline-size; }
.lx-browser-slots { display:grid; grid-template-columns:minmax(0,1fr); align-items:start; gap:10px; margin-top:6px; }
.lx-browser-time { min-width:0; border:1px solid var(--btb-vs1-border); border-radius:6px; }
.lx-browser-time-heading { display:flex; align-items:center; gap:8px; min-height:36px; padding:4px 8px; border-radius:5px 5px 0 0; background:var(--btb-vs1-primary-light); color:var(--btb-vs1-ocean); font-variant-numeric:tabular-nums; }
.lx-browser-time-heading h3 { margin:0; font-size:.82rem; font-weight:650; }
.lx-browser-time-heading small { margin-left:auto; font-size:.7rem; white-space:nowrap; }
.lx-browser-time .lx-browser-compact { grid-template-columns:84px minmax(0,1fr); }
.lx-browser-time .lx-browser-context { padding:5px; }
@container league-list (min-width:720px) { .lx-browser-slots { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@container league-list (min-width:1100px) { .lx-browser-slots { grid-template-columns:repeat(3,minmax(0,1fr)); } }
.lx-browser-played { margin-bottom:8px; border:1px solid #d6dfe3; border-radius:7px; }
.lx-browser-played>summary { color:#344e5a; background:#f0f3f5; border-radius:6px; font-weight:650; padding-inline:10px; }
.lx-browser-played .lx-browser-day>summary { background:#536873; color:white; }
.lx-browser-played .lx-browser-time-heading { background:#edf0f2; color:#344e5a; }
.lx-browser-fixture { min-width:0; scroll-margin-block:90px; }
.lx-browser-fixture:target { outline:2px solid var(--btb-vs1-primary); outline-offset:1px; }
.lx-browser-compact { display:grid; grid-template-columns:105px minmax(0,1fr); border-bottom:1px solid var(--btb-vs1-border); background:var(--btb-vs1-white); }
.lx-browser-context { background:var(--btb-vs1-surface); padding:6px 8px; display:flex; flex-direction:column; justify-content:center; min-width:0; }
.lx-browser-context>a { color:var(--btb-vs1-ink); text-decoration:none; display:flex; flex-direction:column; justify-content:center; min-height:44px; gap:2px; overflow-wrap:anywhere; line-height:1.35; }
.lx-browser-context strong { font-size:.75rem; font-weight:600; }
.lx-browser-context span { font-size:.68rem; color:var(--btb-vs1-muted); }
.lx-browser-context>a:hover { text-decoration:underline; }
.lx-browser-opponents { padding:2px 6px 2px 2px; min-width:0; }
.lx-browser-team { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:4px; min-width:0; font-size:.85rem; line-height:1.35; }
.lx-browser-team .lx-favorite-team-label { min-width:0; }
.lx-browser-team .lx-favorite-team-label>a { color:var(--btb-vs1-ink); text-decoration:none; min-height:32px; display:flex; align-items:center; padding-block:2px; }
.lx-browser-team .lx-favorite-team-label>a:hover { text-decoration:underline; }
.lx-browser-team.is-winner .lx-favorite-team-label>a { font-weight:700; }
.lx-browser-scores { display:flex; gap:3px; font-variant-numeric:tabular-nums; }
.lx-browser-scores b { display:block; width:20px; text-align:center; font-size:.85rem; }
.lx-browser-scores .lx-set-won { color:var(--btb-vs1-success); }
.lx-browser-scores .lx-set-lost { color:var(--btb-vs1-danger); font-weight:500; }
.lx-browser-notes { margin:1px 0 3px 39px; display:flex; flex-wrap:wrap; gap:2px 8px; color:var(--btb-vs1-muted); font-size:.68rem; line-height:1.4; }
.lx-browser-notes>span+span::before { content:'· '; }
.lx-browser-detail,.lx-unplaced-time { display:none; }
.lx-browser-unplaced { margin-top:10px; }
.lx-browser-unplaced>h3 { font-size:.85rem; color:var(--btb-vs1-ocean); margin:8px 0; }
.lx-browser-unplaced .lx-unplaced-time { display:block; font-size:.7rem; color:var(--btb-vs1-muted); }
.lx-match-browser[data-view="details"] .lx-browser-compact { display:none; }
.lx-match-browser[data-view="details"] .lx-browser-detail { display:block; }
.lx-browser-detail-day>h3 { margin:14px 0 8px; color:var(--btb-vs1-ocean); font-size:.95rem; }
.lx-browser-card-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.lx-browser-detail .lx-match { padding:12px; height:100%; border:1px solid var(--btb-vs1-border); border-top:3px solid var(--pool-color,var(--btb-vs1-primary)); border-radius:8px; margin:0; }
.lx-browser-detail .lx-match-meta { flex-wrap:wrap; }
.lx-detail-context,.lx-detail-note { margin:6px 0; font-size:.75rem; color:var(--btb-vs1-muted); overflow-wrap:anywhere; }
.lx-browser-detail .lx-scoreboard { table-layout:auto; max-width:480px; }
.lx-browser-detail .lx-scoreboard td { width:32px; }
.lx-browser-detail .lx-scoreboard th { min-width:0; }
.lx-browser-detail .lx-winner-label { display:inline; margin:0; font-size:.65rem; white-space:nowrap; }
.lx-browser-detail .lx-score-team { display:flex; flex-wrap:wrap; align-items:center; gap:0 6px; }
.lx-browser-detail .lx-score-team .lx-favorite-team-label { flex:0 1 auto; }
@media(min-width:769px) {
  /* Bound only List's match body; day/time bars and Schedule retain the shell. */
  .lx-match-browser[data-view="list"] .lx-browser-opponents { width:100%; max-width:560px; }
}
.lx-court-scroll { position:relative; width:100%; max-width:100%; overflow-x:auto; overscroll-behavior-inline:contain; border:1px solid var(--btb-vs1-border); border-radius:8px; padding-bottom:4px; }
.lx-court-grid { width:100%; border-collapse:separate; border-spacing:0; table-layout:fixed; min-width:calc(54px + var(--court-count) * 156px); font-variant-numeric:tabular-nums; }
.lx-court-grid th,.lx-court-grid td { min-width:156px; width:156px; border-right:1px solid var(--btb-vs1-border); border-bottom:1px solid var(--btb-vs1-border); vertical-align:top; }
.lx-court-grid thead th { padding:10px 6px; background:var(--btb-vs1-ocean); color:white; font-size:.8rem; text-align:center; }
.lx-court-grid tr>:first-child { position:sticky; left:0; z-index:2; width:54px; min-width:54px; background:var(--btb-vs1-primary-light); color:var(--btb-vs1-ocean); text-align:center; font-size:.76rem; padding:10px 4px; }
.lx-court-grid thead tr>:first-child { z-index:3; background:var(--btb-vs1-ocean); color:white; }
.lx-court-grid td { height:80px; background:var(--btb-vs1-surface); padding:4px; }
.lx-court-grid .lx-browser-compact { display:block; border:1px solid var(--btb-vs1-border); border-radius:5px; }
.lx-court-grid .lx-browser-context { padding:3px 5px; background:transparent; }
.lx-court-grid .lx-browser-context>a { min-height:28px; }
.lx-court-grid .lx-browser-context strong { display:none; }
.lx-court-grid .lx-browser-context span { font-weight:650; color:var(--btb-vs1-primary-dark); }
.lx-court-grid .lx-browser-team { font-size:.75rem; }
.lx-court-grid .lx-browser-opponents { padding-right:3px; }
.lx-court-grid .lx-browser-scores { gap:0; }
.lx-court-grid .lx-browser-scores b { width:14px; font-size:.72rem; }
.lx-court-grid .lx-browser-fixture+.lx-browser-fixture { margin-top:4px; }
.lx-conflict-note { color:var(--btb-vs1-warning); font-size:.7rem; margin:2px 0 4px; }
.lx-court-grid .is-conflict { background:var(--btb-vs1-sand); }
.lx-match-browser :is(a,button,select,input,summary,.lx-court-scroll):focus-visible { outline:3px solid var(--btb-vs1-primary); outline-offset:2px; }
@media(max-width:900px) {
  .lx-advanced-filters:not([hidden]) { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .lx-browser-card-grid { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:700px) {
  .lx-browser-compact { grid-template-columns:77px minmax(0,1fr); }
  .lx-browser-context { padding:5px; }
  .lx-browser-team { font-size:.8rem; }
  .lx-browser-day>summary { padding-inline:8px; font-size:.78rem; }
  .lx-browser-day>summary small { font-size:.65rem; }
  .lx-court-grid { min-width:calc(50px + var(--court-count) * 220px); }
  .lx-court-grid th,.lx-court-grid td { width:220px; min-width:220px; }
  .lx-court-grid tr>:first-child { width:50px; min-width:50px; }
  .lx-court-grid .lx-browser-team { font-size:.8rem; }
}
@media(prefers-reduced-motion:reduce) { .lx-match-browser .lx-disclosure-chevron { transition:none; } }

/* Canonical selected fixture/directory focus survives search presentation changes. */
.lx-browser-fixture:focus { outline:3px solid var(--btb-vs1-primary); outline-offset:2px; }
[data-directory-team]:focus { outline:2px solid var(--btb-vs1-primary); }

body.league-overview-v2 .lx-night-context { min-height: 0; }
.league-overview-v2 .lx-team-switch-label { white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }
.lx-focus-overview :is(.lx-focus-matches,.lx-focus-standings) { padding: 12px; }
.lx-focus-overview .lx-section-heading { margin-bottom: 8px; }
@media (max-width: 900px) {
  html:has(body.league-overview-v2) { scroll-padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
}
.league-compact .lx-match-heading h2 { font: var(--btb-font-public-section); }
.league-compact :is(.lx-section-heading h2,.lx-pool-picker>summary,.lx-match-heading h2,.lx-browser-time-heading h3) { font-weight:600; }
.league-compact :is(.lx-table thead th,.lx-browser-day>summary,.lx-browser-played>summary) { font-weight:550; }
.league-compact :is(.lx-panel,.lx-focus-matches,.lx-focus-standings) {
  border-radius: var(--btb-radius-card);
  box-shadow: none;
}
.league-compact .lx-focus-upcoming { background:var(--lx-card-surface); }

/* Owner annotations: compact public League rhythm, with controls at their view. */
.lx-view-tools { position:relative; }
.lx-view-tools .lx-view-menu { width:220px; max-width:calc(100vw - 32px); }
.lx-match-browser .lx-icon-action { display:flex; align-items:center; justify-content:center; width:44px; min-width:44px; height:44px; padding:8px; border:1px solid var(--btb-vs1-border); border-radius:8px; background:transparent; cursor:pointer; color:var(--btb-vs1-muted); }
.lx-icon-action .lx-icon { width:20px; height:20px; }
.lx-icon-action[aria-expanded="true"] { background:var(--btb-vs1-primary-light); color:var(--btb-vs1-primary-dark); }
.lx-expand-icon { display:flex; flex-direction:column; transition:transform .15s; }
.lx-expand-icon .lx-icon { width:16px; height:12px; }
[data-expand-days][aria-expanded="true"] .lx-expand-icon { transform:rotate(180deg); }
.lx-focus-overview .lx-section-heading h2 { font-size:1rem; font-weight:550; }
.lx-focus-overview .lx-section-heading h2>.lx-icon { width:21px; height:21px; }
.lx-focus-overview .lx-table .lx-position span { height:26px; font-size:.8rem; }
@media(min-width:1024px) {
  .lx-focus-overview,.league-compact .lx-standings { --lx-row-target:30px; }
  .lx-focus-overview .lx-match-expansion { margin-top:0; }
  .lx-focus-overview .lx-match-expansion>summary { display:none; }
  .league-compact .lx-focus-overview .lx-table :is(th,td) { padding-block:1px; }
  .lx-match-browser[data-view="list"] { --lx-row-target:32px; }
}
@media(max-width:600px) {
  .lx-team-row-content { grid-template-columns:minmax(0,1fr) 90px; gap:2px 8px; }
  .lx-team-row-name { font-size:.84rem; }
  .lx-team-row-meta { font-size:.72rem; }
}
