/* Larger match type, court paging and reversible personal highlights. */
.prelim-fixture{grid-template-columns:minmax(0,1fr) 78px minmax(0,1fr)!important;gap:12px;padding:18px 14px!important;border-width:2px}
.fixture-order{position:relative;grid-column:1/-1;display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:10px;margin-bottom:0;min-height:28px}
.fixture-order.has-edit{padding-right:38px}
.fixture-order .court-seq-badge{font-size:13px;min-width:22px;height:22px;line-height:22px;padding:0;margin:0;border-radius:5px}
.fixture-order>small{text-align:center}
.fixture-order>small{font-size:22px;font-weight:750;white-space:nowrap}
.fixture-order>span:last-of-type{font-size:18px;white-space:normal;text-align:right}
.fixture-team{gap:3px;align-self:stretch;justify-content:flex-start}
.fixture-qualifier{display:flex;justify-content:center;align-items:center;min-height:18px;height:18px;width:100%}
.fixture-team>strong{display:flex;flex:1;flex-direction:column;justify-content:center;gap:0;min-height:1.3em;font-size:26px;line-height:1.3;overflow-wrap:anywhere}
.is-doubles .fixture-team>strong{min-height:2.6em}
.fixture-score{padding-top:21px;align-self:center}
.fixture-score b{font-size:34px;line-height:1.25;word-break:normal}
.fixture-score small{font-size:20px;font-weight:800}
.prelim-fixture .score-edit-btn{position:absolute;grid-column:auto;grid-row:auto;right:0;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:32px;min-width:32px;height:28px;min-height:28px;font-size:16px;padding:0;margin:0}
.prelim-fixture:last-child{border-bottom-style:solid;border-bottom-color:var(--border-strong)}
.prelim-group-title{font-size:26px;line-height:1.2}
.prelim-group-card:hover{transform:none}
.bracket-player-search{scroll-margin-top:calc(var(--site-header-height,64px) + 72px)}
.prelim-search-hit{background:#fff8d8!important;outline:3px solid #e8a310;outline-offset:-3px}
.prelim-search-hit.is-search-target{outline-width:4px;box-shadow:0 0 0 2px #fff0b3}
.prelim-search-result{font-size:13px;line-height:1.5}
.prelim-search-result small{font-size:12px}
.prelim-search-empty{font-size:13px;color:var(--ink-soft)}
.prelim-fixture.live{border:4px solid #dc2626;background:#fff3f3;box-shadow:inset 0 0 0 2px #fecaca,0 3px 10px #dc262619}
.prelim-fixture.ready{border:4px solid #16803d;background:#edfbef;box-shadow:inset 0 0 0 2px #bbf7d0}
.prelim-court-tabs{display:flex;gap:7px;overflow-x:auto;padding:8px 2px 14px;scrollbar-width:thin;overscroll-behavior-x:contain}
.prelim-court-tabs:empty{display:none}
.prelim-court-tabs button{flex:0 0 auto;display:grid;place-items:center;min-width:40px;min-height:40px;padding:8px 12px;border:1px solid var(--border-strong);border-radius:13px;background:#fff;color:var(--ink);font-size:15px;font-weight:850;box-shadow:none;white-space:nowrap}
.prelim-court-tabs button.active{background:var(--primary);color:#fff;border-color:var(--primary)}
.prelim-groups.court-slider{position:relative;display:flex;flex-direction:row;align-items:flex-start;gap:16px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:thin;transition:height .15s}
.court-slider>.prelim-court-block{box-sizing:border-box;flex:0 0 100%;width:100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always;margin:0;animation:none}
.my-match-focus{background:#fff5c9!important;outline:4px solid #e8a310!important;outline-offset:-4px;box-shadow:0 0 0 3px #fef3c7!important}
[data-prelim-group],[data-bracket-match]{scroll-margin-top:calc(var(--site-header-height,64px) + 92px)}
.guideline-file-actions{display:flex;flex-wrap:wrap;gap:10px}.guideline-open{font-size:15px}
.guideline-dialog{box-sizing:border-box;width:min(900px,calc(100vw - 20px));max-height:90dvh;padding:20px;border:0;border-radius:20px;color:var(--ink);overflow:auto;overscroll-behavior:contain}
.guideline-dialog::backdrop{background:#14243d99;backdrop-filter:blur(4px)}
.guideline-dialog header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.guideline-dialog h2{margin:0;font-size:22px}.guideline-dialog header button{flex:0 0 40px;padding:5px;font-size:26px}
.guideline-dialog img{display:block;width:100%;height:auto;cursor:zoom-out}.guideline-dialog iframe{display:block;border:0;width:100%;height:65dvh}
.guideline-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.8;margin:0}.guideline-dialog [hidden]{display:none!important}
.guideline-original{display:inline-block;margin-top:12px}.guideline-close-hint{font-size:12px;color:var(--ink-soft)}
.preparing-refund-notice{font-size:14px;font-weight:800;color:#dc2626;margin-top:12px}
.mobile-player-name{font-size:24px!important;line-height:1.4!important;white-space:normal!important;overflow-wrap:anywhere}
.mobile-main-match .mobile-match-foot>span:first-child{font-size:28px;font-weight:900}.mobile-main-match .mobile-state-time{font-size:20px!important}
.mobile-match-head>span{font-size:18px}.mobile-player-row{min-height:42px;height:auto!important}.mobile-match-foot{flex-wrap:wrap;gap:8px}
@media(max-width:600px){
  .prelim-court-block{padding:6px}
  .prelim-court-groups{gap:6px}
  .prelim-group-card{padding:5px 6px}
  .prelim-group-head{margin-bottom:3px;padding-bottom:3px}
  .prelim-group-title{font-size:24px}
  .prelim-fixture{position:relative;grid-template-columns:42px minmax(0,1fr) 52px minmax(0,1fr)!important;column-gap:4px;row-gap:0;margin:4px 0;padding:4px 7px!important;border-width:2px;border-radius:10px;align-items:center}
  .prelim-fixture.can-edit{padding-right:29px!important}
  .prelim-fixture.live,.prelim-fixture.ready{border-width:3px}
  .prelim-fixture:last-child{margin-bottom:0;border-bottom-width:2px}
  .prelim-fixture.live:last-child,.prelim-fixture.ready:last-child{border-bottom-width:3px}
  .fixture-order{position:static;grid-column:1;display:flex;flex-direction:column;justify-content:center;min-height:44px;gap:1px}
  .fixture-order.has-edit{padding-right:0}
  .fixture-order .court-seq-badge{font-size:11px;min-width:18px;width:18px;height:18px;line-height:18px}
  .fixture-order>small{font-size:12px;line-height:14px}
  .fixture-order>span:last-of-type{font-size:10px;line-height:12px;white-space:nowrap}
  .prelim-fixture .score-edit-btn{width:24px;min-width:24px;height:22px;min-height:22px;font-size:13px}
  .fixture-team{gap:0}
  .fixture-qualifier{height:12px;min-height:12px}
  .fixture-qualifier .team-qualifier{font-size:8px;line-height:12px;padding:0 5px}
  .fixture-team>strong{font-size:18px;line-height:1.15;min-height:1.15em}
  .is-doubles .fixture-team>strong{min-height:2.3em}
  .fixture-score{padding-top:12px;gap:0}
  .fixture-score b{font-size:26px;line-height:1.15;white-space:nowrap;letter-spacing:-1px;overflow-wrap:normal}
  .fixture-score b.is-multi-score{font-size:14px;white-space:normal;overflow-wrap:anywhere;letter-spacing:0}
  .fixture-score small{font-size:11px;line-height:12px}
  .prelim-court-header{padding:6px 8px;gap:6px;margin-bottom:6px;flex-wrap:wrap;box-shadow:none}
  .prelim-court-name{font-size:16px}.prelim-court-meta{font-size:10px;white-space:normal}
  .prelim-court-tabs{gap:5px;padding:5px 2px 7px}
  .prelim-court-tabs button{min-width:32px;min-height:32px;padding:4px 9px;font-size:13px;border-radius:10px}
  .prelim-player-search{margin:8px 0}.prelim-player-search input{padding:8px;font-size:14px}.prelim-player-search button{padding:6px 9px;font-size:12px}
  .guideline-dialog{padding:15px}.mobile-player-row>small{flex:0 0 auto}
}
@media(max-width:360px),(max-width:600px) and (max-height:740px){
  .fixture-team>strong{font-size:16px;line-height:1.1}
  .is-doubles .fixture-team>strong{min-height:2.2em}
  .prelim-fixture{padding:3px 5px!important;margin:3px 0}
  .prelim-group-title{font-size:22px}
}

.brand-logo-img{border-radius:50%}
.prelim-court-tabs{position:sticky;top:calc(var(--site-header-height,64px) + 68px);z-index:24;background:rgba(242,247,255,.97);border-radius:12px;backdrop-filter:blur(8px)}
[data-prelim-group]{scroll-margin-top:calc(var(--site-header-height,64px) + 126px)}
