/* Klub Obok: one compact control language; existing type and layout stay owned by the app. */
:root { --ko-switch-on:#2b8548; --ko-switch-off:#777d85; --ko-switch-knob:#fff; --ko-switch-shadow:0 1px 3px #0003; }
:root[data-ko-theme=dark] { --ko-switch-on:#33874e; --ko-switch-off:#737b88; }
html[data-ko-theme] label.ko-switch-row {display:flex;align-items:center;gap:.667rem;min-width:0;cursor:pointer;}
html[data-ko-theme] label.ko-switch-row>input.ko-setting-switch {order:2;margin-inline-start:auto;}
html[data-ko-theme] label.ko-switch-row>:not(input) {min-width:0;overflow-wrap:anywhere;}
html[data-ko-theme] .ko-switch-row input[type=checkbox].ko-setting-switch {
 appearance:none;-webkit-appearance:none;display:inline-block;position:relative;flex:0 0 44px;
 width:44px;height:26px;min-height:26px;padding:0;margin-block:0;border:0;border-radius:100px;
 background:var(--ko-switch-off);box-shadow:none;vertical-align:middle;cursor:pointer;
}
html[data-ko-theme] .ko-switch-row input.ko-setting-switch::before {
 content:'';position:absolute;inset-block-start:2px;inset-inline-start:2px;width:22px;height:22px;
 border-radius:50%;background:var(--ko-switch-knob);box-shadow:var(--ko-switch-shadow);
 transition:transform 180ms cubic-bezier(.2,.75,.25,1);
}
html[data-ko-theme] .ko-switch-row input.ko-setting-switch:checked {background:var(--ko-switch-on);}
html[data-ko-theme] .ko-switch-row input.ko-setting-switch:checked::before {transform:translateX(18px);}
html[data-ko-theme] .ko-switch-row input.ko-setting-switch:active::before {scale:1.08 1;}
html[data-ko-theme] .ko-switch-row input.ko-setting-switch:disabled {cursor:default;opacity:.5;background:var(--ko-switch-off);}
html[data-ko-theme] .ko-switch-row input.ko-setting-switch:focus-visible {outline:2px solid var(--ko-accent);outline-offset:3px;}

html[data-ko-theme] .ko-flow-progress.ko-step-tabs[data-step-navigation] {
 display:flex;flex-wrap:wrap;gap:4px;list-style:none;counter-reset:none;min-width:0;
 padding:3px;margin:0 0 16px;background:var(--ko-soft);border:0;border-radius:var(--ko-control);
 color:var(--ko-muted);font-size:12px;
}
html[data-ko-theme] .ko-flow-progress.ko-step-tabs[data-step-navigation]>li,
html[data-ko-theme] .ko-flow-progress.ko-step-tabs[data-step-navigation]>li[aria-current=step] {display:flex;min-width:0;max-width:100%;padding:0;text-decoration:none;font-weight:400;}
html[data-ko-theme] .ko-flow-progress.ko-step-tabs[data-step-navigation]>li::before,
html[data-ko-theme] .ko-flow-progress.ko-step-tabs[data-step-navigation]>li::after {content:none;}
html[data-ko-theme] .ko-flow-progress.ko-step-tabs[data-step-navigation]>li>button.ko-step-tab {
 font:inherit;line-height:1.4;min-height:28px;max-width:100%;padding:4px 8px;margin:0;
 border:0;border-radius:calc(var(--ko-control) - 3px);background:transparent;color:var(--ko-muted);
 box-shadow:none;text-decoration:none;text-align:start;white-space:normal;overflow-wrap:anywhere;
}
html[data-ko-theme] .ko-flow-progress.ko-step-tabs[data-step-navigation]>li>button.ko-step-tab:hover {background:var(--ko-soft);color:var(--ko-ink);}
html[data-ko-theme] .ko-flow-progress.ko-step-tabs[data-step-navigation]>li>button.ko-step-tab[aria-current=step] {background:var(--ko-surface);color:var(--ko-ink);font-weight:600;box-shadow:0 1px 3px #25282c0a;}
html[data-ko-theme] .ko-flow-progress.ko-step-tabs[data-step-navigation]>li>button.ko-step-tab:disabled {cursor:default;}
html[data-ko-theme] .club-setup-dialog .club-setup-progress.ko-step-tabs {margin:10px 20px 0;flex-shrink:0;}
html[data-ko-theme] .ko-flow-dock>.club-setup-chip {position:static;max-width:100%;right:auto;bottom:auto;}

/* Quiet secondary actions; one accent action remains easy to find. */
html[data-ko-theme] :is(.ko-flow-actions,.dialog-actions,.club-setup-footer)>.secondary {background:transparent;color:var(--ko-ink);box-shadow:none;}
html[data-ko-theme] :is(.ko-flow-actions,.dialog-actions,.club-setup-footer)>.secondary:hover {background:var(--ko-soft);}
html[data-ko-theme] .ko-guided-form .ko-flow-panel>h3 {font-weight:600;}
html[data-ko-theme].ko-is-scrolled :is(.workspace-header,.platform-header) {background:var(--ko-glass);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);}
@media(max-width:600px) {html[data-ko-theme] .club-setup-dialog .club-setup-progress.ko-step-tabs {margin:10px 14px 0;}}
@media(pointer:coarse) {
 html[data-ko-theme] label.ko-switch-row {min-height:44px;}
 html[data-ko-theme] .ko-flow-progress.ko-step-tabs[data-step-navigation]>li>button.ko-step-tab {min-height:44px;}
}
@media(prefers-reduced-motion:reduce) {html[data-ko-theme] .ko-switch-row input.ko-setting-switch::before {transition:none!important;}html[data-ko-theme] .ko-switch-row input.ko-setting-switch:active::before {scale:none;}}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more) {html[data-ko-theme].ko-is-scrolled :is(.workspace-header,.platform-header) {background:var(--ko-surface);backdrop-filter:none;-webkit-backdrop-filter:none;}}
@media(forced-colors:active) {html[data-ko-theme] .ko-switch-row input.ko-setting-switch {appearance:auto;-webkit-appearance:auto;}html[data-ko-theme] .ko-switch-row input.ko-setting-switch::before {content:none;}}

/* Discovery: the facility selector shares the row with the search period and location. */
html[data-ko-theme] .discovery-search-panel .discovery-primary-filters{align-items:end;gap:14px;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.35fr)}
html[data-ko-theme] .discovery-search-panel[data-search-kind=facility] .discovery-primary-filters{grid-template-columns:minmax(0,1.1fr) minmax(0,1.1fr) minmax(0,1.2fr) minmax(0,1.35fr)}
html[data-ko-theme] .discovery-search-panel[data-search-kind=club] .discovery-primary-filters{grid-template-columns:minmax(0,1fr) minmax(0,1.35fr)}
html[data-ko-theme] .discovery-primary-filters>.field:last-child{grid-column:auto}
html[data-ko-theme] .discovery-primary-filters #resource-filter{display:flex;flex-direction:column;gap:8px}
html[data-ko-theme] .discovery-primary-filters #resource-filter .searchable-select-trigger{height:48px;min-height:48px;margin:0;border-radius:5px}
html[data-ko-theme] .discovery-search-panel #activity-dates>.ko-date-field{gap:8px;margin:0}
html[data-ko-theme] .discovery-search-panel .ko-date-trigger{height:48px;min-height:48px;margin:0;border-radius:5px;font-size:14px;background:var(--ko-surface);border-color:var(--ko-line)}
html[data-ko-theme] .discovery-primary-filters .location-inline{margin-top:8px}
@media(max-width:1100px){html[data-ko-theme] .discovery-search-panel[data-search-kind=facility] .discovery-primary-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){html[data-ko-theme] .discovery-search-panel .discovery-primary-filters,html[data-ko-theme] .discovery-search-panel[data-search-kind] .discovery-primary-filters{grid-template-columns:minmax(0,1fr);gap:14px}}
@media(max-width:380px){html[data-ko-theme] .discovery-kinds button{gap:5px;padding-inline:8px;font-size:12px;white-space:nowrap}html[data-ko-theme] .discovery-kinds .discovery-kind-icon svg{width:16px;height:16px}}

/* A light disclosure row using the same native switch as the account settings. */
html[data-ko-theme] .discovery-search-panel .discovery-filter-toggle{display:flex;width:max-content;max-width:100%;min-height:44px;align-items:center;gap:16px;margin-top:12px;padding:0;border:0;background:transparent;color:var(--ko-ink);font-size:13px;font-weight:550;line-height:1.4;cursor:pointer}
html[data-ko-theme] .discovery-search-panel .discovery-filter-toggle:hover>span{color:var(--ko-accent)}
html[data-ko-theme] .discovery-search-panel .discovery-filter-toggle input.ko-setting-switch{margin-inline-start:0}
html[data-ko-theme] .discovery-search-panel .extra-filters{margin-top:0;padding:0}
html[data-ko-theme] .discovery-search-panel .extra-filters[open]>.filters{margin-top:10px;padding:14px 0 0;border-top:1px solid var(--ko-line);border-radius:0;background:transparent}
@media(max-width:560px){html[data-ko-theme] .discovery-search-panel .discovery-filter-toggle{width:100%;justify-content:space-between}}

/* Keep each payment setting together inside wide club settings panels. */
html[data-ko-theme] .ca-form.ca-payment-method-settings{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
html[data-ko-theme] .ca-payment-method-settings label.ko-switch-row{width:fit-content;max-width:100%;justify-content:flex-start}
html[data-ko-theme] .ca-payment-method-settings label.ko-switch-row>input.ko-setting-switch{order:0;margin-inline-start:0}
