.compact-match-center .tour-match-tools{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:12px;margin:16px 0}.compact-match-center .tour-match-tools[hidden]{display:none}.compact-match-center .tour-match-tools label{font-size:12px;min-width:0}.compact-match-center .tour-match-tools input[type=search],.compact-match-center select{display:block;width:240px;max-width:100%;min-height:40px;padding:8px;border:1px solid #b9ced6;border-radius:6px;background:#fff;color:#173f50}.compact-match-center .match-only{display:flex;align-items:center;gap:6px;min-height:40px}.compact-match-center button{min-height:40px;padding:8px 14px;border:1px solid #bed0d6;border-radius:6px;background:white;color:#164555;cursor:pointer}.compact-match-center [data-match-count]{margin:0;padding:10px 0;font-size:12px}.match-round{margin-top:22px}.match-round>h3{display:flex;align-items:center;gap:12px;margin:0 0 10px;font-size:17px}.match-round>h3 small{font-size:12px;color:#597482;font-weight:400}.compact-match-center .official-matches{gap:8px}.compact-match-center .official-match{padding:10px 14px;border-radius:7px;box-shadow:none;transition:background .15s,border-color .15s}.compact-match-center .official-match header{display:flex;justify-content:space-between;align-items:center;font-size:11px}.compact-match-center .tour-versus{margin:6px 0;padding:0;gap:8px}.compact-match-center .tour-versus-team{font-size:13px}.compact-match-center .tour-versus-score{font-size:25px}.compact-match-center .tour-outcome{font-size:10px;padding:1px 5px;margin-top:3px}.compact-match-center .tour-versus-extra{margin:0;font-size:11px}.compact-match-center footer{display:flex;flex-wrap:wrap;gap:6px;font-size:11px;color:#526e7b;margin-top:6px}.compact-match-center .official-match.is-team-match{background:#e4f3ef;border-color:#398e78}.compact-match-center .official-match.is-other-match{opacity:.5}.compact-match-center .official-match:focus-within{opacity:1}.compact-match-center [hidden]{display:none!important}.compact-match-center :is(button,select,input,a):focus-visible{outline:2px solid #007c99;outline-offset:2px}.match-round{scroll-margin-top:calc(var(--tour-header-height,0px) + var(--tour-nav-height,70px) + 16px)}@media(max-width:700px){.compact-match-center .official-matches{grid-template-columns:1fr}.compact-match-center .tour-match-tools>label:not(.match-only){width:100%}.compact-match-center .tour-match-tools input[type=search],.compact-match-center select{width:100%}}
.compact-match-center .tour-match-tools{justify-content:flex-start}.compact-match-center .tour-match-tools>label{flex:0 1 auto}.compact-match-center .tour-match-tools .match-only{display:flex;flex-direction:row;width:auto;white-space:nowrap}.compact-match-center .tour-match-tools input[type=checkbox]{width:18px;height:18px;min-height:18px;padding:0;margin:0;flex:0 0 18px}.compact-match-center .tour-match-tools [data-match-count]{margin-left:auto}
.compact-match-center .tour-match-tools .match-mode-help{flex-basis:100%;font-size:11px;color:#56717e}.compact-match-center .tour-match-tools .match-only{flex:0 0 auto}.compact-match-center .tour-match-tools .match-only:has(input:disabled){color:#6b7f87}
.compact-match-center .tour-match-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;align-items:center}.match-team-picker{display:flex;align-items:flex-end;gap:8px;grid-column:1/-1;min-width:0}.match-team-picker>label{flex:0 1 240px;min-width:0}.compact-match-center .match-team-picker select{width:100%}.compact-match-center .match-team-picker>button{flex:none}.compact-match-center .tour-match-tools .match-filter-switch{grid-column:1/-1;position:relative;display:flex;gap:12px;align-items:center;min-height:48px;white-space:normal;cursor:pointer;width:fit-content}.compact-match-center .match-filter-switch input[type=checkbox]{position:absolute;left:0;top:0;width:100%;height:100%;opacity:0;margin:0;cursor:pointer;z-index:1}.match-switch-track{display:inline-flex;align-items:center;flex:0 0 54px;width:54px;height:30px;padding:3px;box-sizing:border-box;border:1px solid #788f99;border-radius:20px;background:#718793;transition:background .15s}.match-switch-track>span{width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #153b5030;transition:transform .15s}.match-filter-switch input:checked+.match-switch-track{background:#087a69;border-color:#087a69}.match-filter-switch input:checked+.match-switch-track>span{transform:translateX(24px)}.match-filter-switch input:focus-visible+.match-switch-track{outline:3px solid #007e9c;outline-offset:3px}.match-filter-switch:has(input:disabled){opacity:.6;cursor:default}.match-filter-switch input:disabled{cursor:default!important}.match-switch-state{font-size:11px;margin-left:8px}.compact-match-center .tour-match-tools .match-mode-help{grid-column:1;font-size:11px}.compact-match-center .tour-match-tools [data-match-count]{grid-column:2;margin:0;padding:0;font-size:11px}@media(max-width:600px){.compact-match-center .tour-match-tools{grid-template-columns:minmax(0,1fr)}.compact-match-center .tour-match-tools [data-match-count]{grid-column:1;justify-self:end}.match-team-picker>label{flex:1}}@media(prefers-reduced-motion:reduce){.match-switch-track,.match-switch-track>span{transition:none}}

/* Use the panel width, not monitor dimensions: zoom and narrow parents remain readable. */
.official-panel.compact-match-center {
    container-type: inline-size;
}
.compact-match-center .official-matches {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
    gap: 14px;
}
.compact-match-center .official-match {
    min-width: 0;
    box-sizing: border-box;
}
@container (min-width: 820px) {
    .compact-match-center .tour-match-tools:not([hidden]) {
        display: grid;
        grid-template-columns: minmax(280px, 340px) minmax(0, 1fr) auto;
        gap: 8px 24px;
        align-items: center;
    }
    .compact-match-center .match-team-picker { grid-column: 1; grid-row: 1; }
    .compact-match-center .tour-match-tools .match-filter-switch { grid-column: 2; grid-row: 1; }
    .compact-match-center .tour-match-tools .match-mode-help { grid-column: 1 / 3; grid-row: 2; white-space: normal; }
    .compact-match-center .tour-match-tools [data-match-count] { grid-column: 3; grid-row: 1 / 3; }
}
