#tournament-control-header-menus{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-left:auto;min-width:0}
.floor-header .tch-layout-switch{display:inline-flex;align-items:center;justify-content:center;gap:10px;flex-shrink:0;min-height:41px;margin:0;padding:8px 12px;border:1px solid #aabdc9;border-radius:7px;background:#fff!important;color:#0a2745!important;font:inherit;font-size:13px;font-weight:650;line-height:1.2;white-space:nowrap;cursor:pointer;box-shadow:none}
.floor-header .tch-layout-switch:hover{border-color:#078ea2;background:#edf6f8!important}
.floor-header .tch-layout-switch:focus-visible{outline:2px solid #078ea2;outline-offset:2px}
.tch-switch-track{display:block;position:relative;flex-shrink:0;width:34px;height:20px;border-radius:20px;background:#91a4b1;transition:background .15s}
.tch-switch-track::after{content:'';position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #00162f33;transition:transform .15s}
.tch-layout-switch[aria-checked="true"] .tch-switch-track{background:#078ea2}
.tch-layout-switch[aria-checked="true"] .tch-switch-track::after{transform:translateX(14px)}
.floor-mode .floor-header:has(#tournament-control-header-menus){flex-wrap:wrap!important}
.floor-header:has(#tournament-control-header-menus) #floor-time{margin-left:0}
.floor-header .tch-trigger{display:inline-flex;align-items:center;justify-content:space-between;gap:18px;min-width:135px;min-height:41px;margin:0;padding:9px 12px;border:1px solid #aabdc9;border-radius:7px;background:#fff;color:#0a2745;font:inherit;font-size:14px;font-weight:650;line-height:1.2;box-shadow:none;cursor:pointer}
.floor-header .tch-trigger:hover,.floor-header .tch-trigger[aria-expanded="true"]{border-color:#078ea2;background:#edf6f8}
.tch-trigger>.material-symbols-icon{font-size:20px;transition:transform .15s}
.tch-trigger[aria-expanded="true"]>.material-symbols-icon{transform:rotate(180deg)}
.tch-menu-panel{position:fixed;z-index:180;box-sizing:border-box;min-width:255px;max-width:calc(100vw - 16px);overflow:auto;overscroll-behavior:contain;padding:6px;border:1px solid #b5c6d1;border-radius:9px;background:#fff;color:#0a2745;box-shadow:0 12px 32px #00162f33}
.tch-placeholder-note{padding:8px 10px 10px;color:#637c8e;font-size:11px;line-height:1.4}
.floor-header .tch-menu-item{display:block;box-sizing:border-box;width:100%;min-height:35px;padding:8px 11px;border:0;border-radius:5px;background:transparent;color:#354f64;font:inherit;font-size:13px;font-weight:500;line-height:1.35;text-align:left;white-space:nowrap;cursor:pointer;box-shadow:none}
.floor-header .tch-menu-item:hover,.floor-header .tch-menu-item:focus-visible{outline:0;background:#e6f2f5;color:#0a2745}
.tch-menu-separator{height:1px;margin:5px 8px;background:#dce4e9}
.floor-header .tch-trigger:focus-visible{outline:2px solid #078ea2;outline-offset:2px}
/* Override the global important rule for red floor-header action buttons. */
.floor-header .tch-trigger{background:#fff!important;color:#0a2745!important}
.floor-header .tch-trigger:hover,.floor-header .tch-trigger[aria-expanded="true"]{background:#edf6f8!important}
.floor-header .tch-menu-item{background:transparent!important;color:#354f64!important}
.floor-header .tch-menu-item:hover,.floor-header .tch-menu-item:focus-visible{background:#e6f2f5!important;color:#0a2745!important}
.floor-header .tch-menu-item[aria-current="true"]{font-weight:750;background:#edf6f8!important;color:#0a2745!important}
.tch-menu-item[aria-current="true"]::after{content:'✓';float:right;margin-left:12px;color:#078ea2}
.tc-selection-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 2px 12px;color:#4b677b;font-size:13px}
.tc-selection-summary strong{white-space:nowrap;color:#0a2745}
.tc-selection-summary span{min-width:0;overflow-wrap:anywhere}
.tch-filter-dialog{box-sizing:border-box;width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:0;border:1px solid #aabdc9;border-radius:12px;background:#f5f4ef;color:#0a2745;box-shadow:0 22px 70px #00162f55}
.tch-filter-dialog::backdrop{background:#00162f88}
.tch-filter-dialog form{display:grid;gap:18px;padding:24px}
.tch-filter-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #bdc9cf;padding-bottom:16px}
.tch-filter-dialog h3,.tch-filter-dialog p{margin:0}
.tch-filter-dialog h3{font-size:22px;color:#0a2745}
.tch-filter-dialog p{font-size:14px;line-height:1.5;color:#4b677b}
.tch-filter-fields{display:flex;gap:16px}
.tch-filter-fields label{display:grid;gap:7px;flex:1;min-width:0;color:#0a2745;font-size:14px;font-weight:600}
.floor-mode .tch-filter-dialog input{box-sizing:border-box;width:100%;min-height:44px;padding:10px 12px;border:1px solid #aabdc9;border-radius:7px;background:#fff!important;color:#0a2745!important;font:inherit;color-scheme:light}
.tch-filter-dialog footer{display:flex;justify-content:flex-end;gap:10px}
.floor-mode .tch-filter-dialog button{min-height:42px;padding:10px 18px;border:1px solid #078ea2;border-radius:7px;background:#078ea2!important;color:#fff!important;font:inherit;font-weight:650;cursor:pointer}
.floor-mode .tch-filter-dialog [data-tch-cancel]{background:#fff!important;color:#0a2745!important;border-color:#aabdc9}
.floor-mode .tch-filter-dialog header button{display:grid;place-items:center;width:36px;min-height:36px;padding:0;font-size:26px;line-height:1}
.floor-mode .tch-filter-dialog button:disabled{opacity:.6;cursor:wait}
.floor-mode .tch-filter-dialog :focus-visible{outline:2px solid #078ea2;outline-offset:2px}
.tch-filter-dialog .tch-filter-error{color:#8f1721}
@media(max-width:760px){#tournament-control-header-menus{gap:8px;margin-left:0}.floor-header .tch-trigger{min-width:125px;min-height:39px;font-size:13px}}
