/* Klub Obok — shared interface, 4 November 2026.
   Semantic colors apply to every workspace. Resource/instructor colors and map
   geometry remain owned by their modules. */
:root {
  color-scheme: light;
  --ko-bg:#f8f7f5; --ko-surface:#fff; --ko-soft:#f0efec; --ko-sidebar:#f3f2ef;
  --ko-ink:#252825; --ko-muted:#686c67; --ko-line:#e3e5df; --ko-input:#d4d8d1;
  --ko-accent:#b6401b; --ko-tint:#fff0e8; --ko-on-strong:#fff;
  --ko-glass:#f8f7f5ed; --ko-shadow:0 4px 24px #25282508;
  --ko-success:#247044; --ko-success-bg:#eaf5ed; --ko-danger:#ae3432; --ko-danger-bg:#fff0ed;
  --ko-warning:#845414; --ko-warning-bg:#fff5de; --ko-info:#345b93; --ko-info-bg:#eef3fb;
  --ko-radius:20px; --ko-control:12px; --ko-gutter:clamp(20px,3.2vw,50px);
  --ink:var(--ko-ink); --paper:var(--ko-bg); --muted:var(--ko-muted); --line:var(--ko-line);
  --blue:var(--ko-ink); --green:var(--ko-accent); --orange:var(--ko-accent); --accent:var(--ko-accent);
  font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-optical-sizing:auto; color:var(--ko-ink); background:var(--ko-bg);
}
:root[data-ko-theme=dark] {
  color-scheme:dark;
  --ko-bg:#171a18; --ko-surface:#242825; --ko-soft:#2d322e; --ko-sidebar:#1e221f;
  --ko-ink:#f0f2ed; --ko-muted:#b0b8ae; --ko-line:#3b423b; --ko-input:#596356;
  --ko-accent:#ffab83; --ko-tint:#3d2c24; --ko-on-strong:#1b211c;
  --ko-glass:#1e221fed; --ko-shadow:0 4px 24px #00000020;
  --ko-success:#a1d9b0; --ko-success-bg:#20392a; --ko-danger:#ffaba0; --ko-danger-bg:#432925;
  --ko-warning:#e8c68b; --ko-warning-bg:#3a3020; --ko-info:#afcdf6; --ko-info-bg:#253349;
}
html[data-ko-theme] :is(.shell,.entry-wrap,.platform-shell) {
  --ink:var(--ko-ink); --paper:var(--ko-bg); --muted:var(--ko-muted); --line:var(--ko-line);
  --blue:var(--ko-ink); --green:var(--ko-accent); --orange:var(--ko-accent); --accent:var(--ko-accent);
  color:var(--ko-ink); background:var(--ko-bg); font-family:inherit;
}
body { background:var(--ko-bg); color:var(--ko-ink); }
.participant-claim-dialog {max-width:600px;}
.participant-claim {min-width:0;}
.participant-claim-intro {max-width:48ch;}
.participant-claim-intro h3 {margin-bottom:8px;}
.participant-claim-qr {display:block;width:280px;max-width:100%;height:auto;margin:20px auto 12px;background:#fff;border:1px solid var(--ko-line);border-radius:16px;}
.participant-claim-qr[hidden] {display:none;}
.participant-claim-details {margin-top:20px;border-top:1px solid var(--ko-line);padding-top:8px;}
.participant-claim-details summary {cursor:pointer;min-height:44px;padding:10px 0;font-weight:600;color:var(--ko-accent);}
.participant-claim-details summary:focus-visible {outline:3px solid var(--ko-accent);outline-offset:3px;border-radius:4px;}
.participant-claim-copy {display:grid;gap:12px;padding-top:12px;}
.participant-claim-copy .field {margin:0;min-width:0;}
.participant-claim-copy input {width:100%;min-width:0;font-family:ui-monospace,monospace;font-size:14px;}
.participant-claim-copy button {justify-self:start;}
.participant-claim-copy p {margin:0;}
.entry-form-panel .field[hidden] {display:none;}
html { scroll-padding-top:100px; }
html[data-ko-theme] :is(h1,h2,h3,dialog h2,.section-head) {font-family:inherit;color:var(--ko-ink);font-weight:650;letter-spacing:-.025em;}
html[data-ko-theme] h1 {font-size:clamp(28px,2.8vw,40px);line-height:1.12;letter-spacing:-.04em;font-weight:720;}
html[data-ko-theme] h2 {font-size:21px;line-height:1.25;}
html[data-ko-theme] h3 {line-height:1.35;}
html[data-ko-theme] :is(.muted,.small,.field,.identity,.ca-eyebrow) {color:var(--ko-muted);}
html[data-ko-theme] :is(.small,.badge,.foot,.platform-nav-group>p,.platform-environment,.ca-eyebrow,.sidebar-caption) {font-size:max(.73rem,11px);}
a {color:var(--ko-accent);text-underline-offset:4px;}
button,input,select,textarea {font-family:inherit;font-optical-sizing:auto;}
button {touch-action:manipulation;-webkit-tap-highlight-color:transparent;}
button:not(:disabled):active {scale:.98;transition:scale 80ms ease-out;}
html[data-ko-theme] :is(button,.button,.ca-primary) {border-radius:var(--ko-control);}
html[data-ko-theme] #detail button {border-radius:var(--ko-control);}
html[data-ko-theme] dialog .ko-dialog-close {background:var(--ko-soft)!important;color:var(--ko-muted)!important;border:0!important;border-radius:50%!important;box-shadow:none!important;font-size:23px!important;}
html[data-ko-theme] dialog .ko-sheet-grip {background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;}
html[data-ko-theme] button:not(.secondary):not(.link):not([aria-pressed]):not(.result):not(.thread):not(.attendance-row):not(.notification):not(.slot):not(.timeline-slot):not(.ca-calendar-entry):not(.resource-slot):not(.entry-text-button):not(.password-toggle):not(.ko-sheet-grip):not(.ko-dialog-close):not(.ko-theme-toggle) {font-weight:600;}
html[data-ko-theme] :is(.entry-submit,.ca-primary,.platform-form button[type=submit],.platform-actions>button:not(.secondary),.report-builder>button,.report-email>button,.dialog-actions>button:not(.secondary),#auth-form>button[type=submit],#load-map,#location-form>button,.online-payment-status>a.ca-primary) {background:var(--ko-ink);color:var(--ko-bg);border-color:var(--ko-ink);box-shadow:none;}
html[data-ko-theme] :is(.secondary,.profile-button,.header-icon,.platform-workspace .secondary) {background:var(--ko-surface);color:var(--ko-ink);border:1px solid var(--ko-line);box-shadow:none;}
html[data-ko-theme] :is(.secondary:hover,.profile-button:hover,.header-icon:hover) {background:var(--ko-soft);border-color:var(--ko-input);}
html[data-ko-theme] .link {background:transparent;color:var(--ko-accent);}
html[data-ko-theme] :is(input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]):not([type=file]),select,textarea) {background:var(--ko-surface);color:var(--ko-ink);border:1px solid var(--ko-input);border-radius:var(--ko-control);min-height:46px;max-width:100%;padding:11px 13px;box-shadow:0 1px 2px #00000003;font-size:15px;line-height:1.4;}
html[data-ko-theme] input::placeholder,html[data-ko-theme] textarea::placeholder {color:var(--ko-muted);opacity:1;}
html[data-ko-theme] :is(input,textarea)[readonly] {background:var(--ko-soft);color:var(--ko-muted);}
input[type=checkbox],input[type=radio] {accent-color:var(--ko-accent);}
html[data-ko-theme] :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible {outline:3px solid var(--ko-accent);outline-offset:3px;}
html[data-ko-theme] :is(h1,[tabindex="-1"]):focus:not(:focus-visible) {outline:none;}
/* Route and dialog headings receive focus for orientation, not interaction. */
html[data-ko-theme] :is(h1,h2,h3,[role=heading])[tabindex="-1"]:focus {outline:none;box-shadow:none;}
html[data-ko-theme] :is(.form-message,.ca-form-message,.platform-status,.teaching-error) {color:var(--ko-danger);}
html[data-ko-theme] :is(.form-message.success,.ca-status.success,.ca-notice.success) {color:var(--ko-success);}

/* Same navigation and header proportions in the participant and staff zones. */
html[data-ko-theme] .shell {grid-template-columns:224px minmax(0,1fr);font-size:14px;}
html[data-ko-theme] .shell>aside {position:sticky;top:0;height:100dvh;overflow-y:auto;padding:28px 17px 22px;background:var(--ko-sidebar);border-right:1px solid var(--ko-line);scrollbar-width:thin;gap:0;}
html[data-ko-theme] .workspace-brand .brand-logo {width:168px;height:auto;max-width:100%;}
html[data-ko-theme=dark] .brand-logo {filter:invert(1) hue-rotate(180deg);}
html[data-ko-theme] .sidebar-caption {color:var(--ko-muted);margin:12px 10px 27px;letter-spacing:.02em;}
html[data-ko-theme] .shell #workspace-nav {gap:5px;}
html[data-ko-theme] .shell #workspace-nav button {border:0;box-shadow:none;background:transparent;color:var(--ko-muted);padding:12px 13px;border-radius:13px;font-size:13px;font-weight:550;min-height:44px;gap:11px;}
html[data-ko-theme] .shell #workspace-nav button:before {display:none;}
html[data-ko-theme] .shell #workspace-nav button:hover {background:var(--ko-soft);color:var(--ko-ink);}
html[data-ko-theme] .shell #workspace-nav button.active {background:var(--ko-surface);color:var(--ko-ink);box-shadow:0 2px 12px #00000006;}
html[data-ko-theme] .shell #workspace-nav button.active svg {color:var(--ko-accent);}
html[data-ko-theme] .sidebar-note {padding:22px 12px;border-top:1px solid var(--ko-line);margin-top:25px;}
html[data-ko-theme] .sidebar-note>span {display:none;}
html[data-ko-theme] .sidebar-note strong {font-size:21px;line-height:1.2;font-weight:650;letter-spacing:-.03em;color:var(--ko-ink);}
html[data-ko-theme] .sidebar-note p {font-size:12px;line-height:1.65;color:var(--ko-muted);}
html[data-ko-theme] .foot {color:var(--ko-muted);padding:24px 12px 0;}
html[data-ko-theme] .shell>main {padding:0 var(--ko-gutter) 36px;max-width:1760px;width:100%;}
html[data-ko-theme] .workspace-header {position:sticky;top:0;z-index:70;min-height:84px;margin:0 calc(-1 * var(--ko-gutter));padding:16px var(--ko-gutter);border:0;background:var(--ko-glass);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:0 6px 15px -12px #00000022;}
html[data-ko-theme] .workspace-identity>div>strong {font-size:11px;letter-spacing:.08em;color:var(--ko-muted);}
html[data-ko-theme] .workspace-avatar {width:38px;height:38px;border-radius:50%;background:var(--ko-soft);color:var(--ko-ink);font-size:13px;box-shadow:none;}
html[data-ko-theme] .workspace-header .identity {color:var(--ko-ink);font-size:13px;font-weight:550;}
html[data-ko-theme] .head-actions {gap:8px;}
html[data-ko-theme] .header-icon {border-color:transparent;background:transparent;border-radius:50%;}
html[data-ko-theme] .profile-button {border-radius:100px;font-size:12px;}
html[data-ko-theme] .profile-button.selected {background:var(--ko-tint);color:var(--ko-accent);border-color:transparent;}
html[data-ko-theme] :is(.head-actions #logout,.ca-logout) {color:var(--ko-muted);background:transparent;border-color:transparent;}
html[data-ko-theme] .workspace-notice {padding:9px 0;margin:9px 0 0;border:0;color:var(--ko-muted);font-size:11px;}
html[data-ko-theme] .workspace-notice summary {font-size:11px;color:var(--ko-muted);}
html[data-ko-theme] .workspace-footer {color:var(--ko-muted);border-color:var(--ko-line);font-size:11px;margin-top:40px;padding-top:20px;}
html[data-ko-theme] .page-head {margin:30px 0 26px;}
html[data-ko-theme] .page-head p {font-size:14px;line-height:1.65;color:var(--ko-muted);}
html[data-ko-theme] .ko-theme-toggle {display:inline-flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;min-height:40px;padding:8px;background:transparent;color:var(--ko-muted);border:1px solid transparent;border-radius:50%;}
html[data-ko-theme] .ko-theme-toggle:hover {background:var(--ko-soft);color:var(--ko-ink);}
.ko-theme-toggle svg {width:20px;height:20px;}

/* One family of surfaces; dense operational data keeps its own layout. */
html[data-ko-theme] :is(.card,.ca-panel,.ca-resource-card,.platform-panel,.platform-section-card,.teaching-lesson,.teaching-shift,.work-entry,.work-earnings,.work-rate-person,.work-type-create,.notification-settings,.account-section) {background:var(--ko-surface);border:1px solid var(--ko-line);border-radius:var(--ko-radius);box-shadow:var(--ko-shadow);color:var(--ko-ink);}
html[data-ko-theme] :is(.card,.ca-panel,.platform-panel) {padding:24px;}
html[data-ko-theme] :is(.row,.history-heading,.platform-package-editor,.report-history-row,.ca-person,.ca-roster-row,.work-history-row) {border-color:var(--ko-line);}
html[data-ko-theme] :is(.empty,.ca-empty,.report-empty) {border:1px solid var(--ko-line);border-radius:var(--ko-radius);background:var(--ko-soft);color:var(--ko-muted);padding:30px 24px;}
html[data-ko-theme] :is(.empty-symbol,.ca-resource-symbol) {background:var(--ko-tint);color:var(--ko-accent);border-radius:15px;}
html[data-ko-theme] :is(.tag,.ca-chip,.ca-status,.attendance-status,.platform-environment) {background:var(--ko-soft);color:var(--ko-muted);border:0;border-radius:100px;line-height:1.4;}
html[data-ko-theme] :is(.preview-switch,.ca-notice,.reservation-note,.remaining-due,.work-policy-note,.work-clock-note,.report-status:not(:empty)) {background:var(--ko-tint);color:var(--ko-accent);border:1px solid var(--ko-line);border-radius:14px;box-shadow:none;}
html[data-ko-theme] :is(.attendance-status.present,.status-paid,.status-success) {background:var(--ko-success-bg);color:var(--ko-success);}
html[data-ko-theme] :is(.attendance-status.absent,.status-failed) {background:var(--ko-danger-bg);color:var(--ko-danger);}
html[data-ko-theme] :is(.attendance-status.late,.attendance-status.reported,.status-pending) {background:var(--ko-warning-bg);color:var(--ko-warning);}
html[data-ko-theme] :is(.form-error,.error-notice,.teaching-error) {background:var(--ko-danger-bg);color:var(--ko-danger);border-color:var(--ko-danger);}
html[data-ko-theme] :is(.payment-tabs,.account-tabs,.platform-subnav,.ca-settings-tabs,.class-filters,.attendance-filters,.ca-calendar-modes,.work-rate-categories) {gap:6px;border-bottom:0;}
html[data-ko-theme] :is(.payment-tabs,.account-tabs,.platform-subnav,.ca-settings-tabs,.class-filters,.ca-calendar-modes,.work-rate-categories)>button {border:1px solid transparent;border-radius:100px;background:var(--ko-soft);color:var(--ko-muted);min-height:40px;padding:9px 15px;margin:0;box-shadow:none;}
html[data-ko-theme] :is(.payment-tabs,.account-tabs,.platform-subnav,.ca-settings-tabs,.class-filters,.ca-calendar-modes,.work-rate-categories)>button:is(.active,.selected,[aria-selected=true],[aria-current=page],[aria-pressed=true]),html[data-ko-theme] .payment-tabs>button:not(.secondary) {background:var(--ko-ink);color:var(--ko-bg);border-color:var(--ko-ink);}
html[data-ko-theme] .shell .class-card {border:1px solid var(--ko-line);border-radius:22px;background:var(--ko-surface);box-shadow:var(--ko-shadow);padding:26px;}
html[data-ko-theme] .shell .class-card h2 {font-size:24px;letter-spacing:-.035em;font-weight:680;}
html[data-ko-theme] .shell .class-card .class-when {background:var(--ko-soft);color:var(--ko-ink);border-radius:12px;}
html[data-ko-theme] :is(.payment-total,.wallet-balance,.work-earnings-total) {color:var(--ko-ink);font-weight:650;letter-spacing:-.045em;}
html[data-ko-theme] .payment-summary {border-top:1px solid var(--ko-line);}
html[data-ko-theme] .makeup-card {border-top:1px solid var(--ko-line);}
html[data-ko-theme] .makeup-slot {border-color:var(--ko-line);border-radius:14px;background:var(--ko-surface);}
html[data-ko-theme] .makeup-slot:has(input:checked) {background:var(--ko-tint);border-color:var(--ko-accent);}
html[data-ko-theme] :is(.attendance-row,.thread) {background:var(--ko-surface);color:var(--ko-ink);border-color:var(--ko-line);}
html[data-ko-theme] :is(.attendance-row:hover,.thread:hover) {background:var(--ko-soft);}
html[data-ko-theme] .thread.active {background:var(--ko-tint);box-shadow:inset 3px 0 var(--ko-accent);}
html[data-ko-theme] .message-bubble {background:var(--ko-soft);color:var(--ko-ink);border-radius:18px 18px 18px 5px;}
html[data-ko-theme] .message-bubble.own {background:var(--ko-tint);color:var(--ko-ink);border-radius:18px 18px 5px 18px;}

/* Discovery retains the actual Leaflet map, its consent, filters and controls. */
.discovery-intro {display:grid;grid-template-columns:minmax(0,1.25fr) minmax(200px,.75fr);align-items:center;gap:34px;margin:28px 0;}
html[data-ko-theme] .discovery-intro .page-head {margin:0;}
html[data-ko-theme] .discovery-intro h1 {font-size:clamp(32px,3.2vw,46px);margin:10px 0 12px;line-height:1.08;}
.discovery-intro h1 span {color:var(--ko-accent);}
.discovery-eyebrow {font-size:11px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--ko-muted);}
.discovery-photo {margin:0;border-radius:24px;overflow:hidden;position:relative;height:195px;}
.discovery-photo img {display:block;width:100%;height:100%;object-fit:cover;}
.discovery-photo figcaption {position:absolute;bottom:12px;left:12px;right:12px;background:#fffffff0;color:#343a32;border:1px solid #ffffff66;border-radius:12px;padding:11px 14px;font-size:12px;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);}
html[data-ko-theme] .discovery-kinds {display:flex;gap:4px;padding:4px;background:var(--ko-soft);border:0;border-radius:100px;width:max-content;max-width:100%;margin:20px 0;}
html[data-ko-theme] .discovery-kinds button {background:transparent;color:var(--ko-muted);border:0;border-radius:100px;padding:10px 23px;font-size:13px;min-height:40px;}
html[data-ko-theme] .discovery-kinds button[aria-pressed=true] {background:var(--ko-surface);color:var(--ko-ink);box-shadow:0 2px 8px #00000009;}
html[data-ko-theme] .discovery-search-panel {padding:22px 24px;background:var(--ko-surface);border:1px solid var(--ko-line);border-radius:22px;box-shadow:var(--ko-shadow);margin-bottom:26px;}
html[data-ko-theme] .discovery-primary-filters {gap:20px;}
html[data-ko-theme] .discovery-primary-filters .field {font-size:12px;font-weight:550;color:var(--ko-muted);}
html[data-ko-theme] .discovery-primary-filters :is(input,select),html[data-ko-theme] .discovery-search-panel .extra-filters :is(input,select) {border:1px solid var(--ko-input);border-radius:12px;background:var(--ko-bg);color:var(--ko-ink);}
html[data-ko-theme] .discovery-primary-filters #range-toggle {color:var(--ko-accent);font-size:11px;text-decoration:none;}
html[data-ko-theme] .location-actions {margin:14px 0 0;gap:12px;}
html[data-ko-theme] :is(.extra-filters,.location-help) {border-color:var(--ko-line);}
html[data-ko-theme] .discovery-layout {display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,1fr);gap:24px;align-items:start;}
html[data-ko-theme] .discovery-map-panel {position:sticky;top:104px;min-width:0;}
html[data-ko-theme] .discovery-map-tools {gap:8px;min-height:44px;margin-bottom:12px;}
html[data-ko-theme] .discovery-map-tools>p {font-size:12px;color:var(--ko-muted);}
html[data-ko-theme] .discovery-map-tools button {border-radius:100px;background:var(--ko-surface);font-size:11px;}
html[data-ko-theme] .map {height:520px;border:1px solid var(--ko-line);border-radius:22px;box-shadow:var(--ko-shadow);background:var(--ko-soft);}
html[data-ko-theme] .map-placeholder {padding:25px;background:var(--ko-soft);}
html[data-ko-theme] .map-placeholder>div {transform:none;background:var(--ko-surface);border:1px solid var(--ko-line);border-radius:20px;padding:28px;box-shadow:var(--ko-shadow);}
html[data-ko-theme] .map-placeholder h2 {font-size:25px;letter-spacing:-.03em;}
html[data-ko-theme] .map-placeholder p {color:var(--ko-muted);font-size:13px;line-height:1.65;}
html[data-ko-theme] .discovery-results {min-width:0;padding-top:3px;}
html[data-ko-theme] .discovery-results h2 {font-size:22px;margin:0 0 4px;}
html[data-ko-theme] #count {margin:8px 0 18px;color:var(--ko-muted);}
html[data-ko-theme] .result {background:var(--ko-surface);color:var(--ko-ink);border:1px solid var(--ko-line);border-radius:18px;padding:20px;margin-bottom:12px;gap:18px;box-shadow:0 2px 12px #00000003;}
html[data-ko-theme] .result:hover {background:var(--ko-soft);border-color:var(--ko-input);}
html[data-ko-theme] .result strong {font-size:17px;letter-spacing:-.02em;font-weight:650;}
html[data-ko-theme] .result .price {color:var(--ko-ink);font-size:14px;font-weight:650;}
html[data-ko-theme] .activity-discipline {color:var(--ko-accent);font-size:11px;margin-bottom:9px;}
html[data-ko-theme] .result p {color:var(--ko-muted);font-size:12px;line-height:1.6;}
html[data-ko-theme] .discovery-map-dialog {background:var(--ko-bg);color:var(--ko-ink);border-radius:0;padding:20px;}
html[data-ko-theme] .discovery-map-dialog>.map {border-radius:20px;height:auto;}
html[data-ko-theme] .discovery-map-dialog-head p {color:var(--ko-muted);}
.leaflet-control-attribution {color-scheme:light;}

/* Authentication is the same visual language, with the existing editorial asset. */
html[data-ko-theme] .entry-wrap {padding:24px clamp(20px,4vw,64px);min-height:100dvh;}
html[data-ko-theme] .entry-header {border:0;max-width:1440px;margin:auto;padding-bottom:10px;}
html[data-ko-theme] .entry-brand .brand-logo {width:190px;}
html[data-ko-theme] .entry-descriptor {color:var(--ko-muted);font-size:12px;}
html[data-ko-theme] .entry-content {grid-template-columns:minmax(0,1.05fr) minmax(320px,.85fr);gap:7%;max-width:1300px;margin:50px auto 35px;align-items:center;}
html[data-ko-theme] .entry-story h2 {font-size:clamp(46px,5.2vw,76px);font-weight:750;letter-spacing:-.055em;line-height:.99;}
html[data-ko-theme] .entry-lead {font-size:15px;color:var(--ko-muted);line-height:1.7;}
html[data-ko-theme] .entry-photo {border:0;border-radius:24px;overflow:hidden;margin-top:26px;}
html[data-ko-theme] .entry-photo .multisport-photo {border:0;height:280px;background-size:cover;}
html[data-ko-theme] .entry-photo figcaption {background:var(--ko-surface);color:var(--ko-ink);font-size:12px;padding:14px 18px;border:0;}
html[data-ko-theme] .entry-sports {color:var(--ko-muted);gap:10px;}
html[data-ko-theme] .entry-sports span {font-size:11px;border:1px solid var(--ko-line);border-radius:100px;background:var(--ko-soft);padding:7px 11px;}
html[data-ko-theme] .entry-form-panel {padding:34px;background:var(--ko-surface);border:1px solid var(--ko-line);border-radius:28px;box-shadow:var(--ko-shadow);}
html[data-ko-theme] .entry-form-inner {max-width:440px;margin:auto;}
html[data-ko-theme] .entry-form-panel h1 {font-size:34px;letter-spacing:-.04em;}
html[data-ko-theme] .entry-subtitle {color:var(--ko-muted);font-size:14px;line-height:1.6;}
html[data-ko-theme] .entry-welcome {color:var(--ko-accent);font-size:12px;letter-spacing:0;}
html[data-ko-theme] .entry-text-button {background:transparent;color:var(--ko-accent);box-shadow:none;border:0;font-size:13px;}
html[data-ko-theme] .entry-invitation {background:var(--ko-soft);color:var(--ko-ink);border:0;border-radius:12px;}
html[data-ko-theme] .entry-test {border-color:var(--ko-line);color:var(--ko-muted);}
html[data-ko-theme] .password-toggle {border:0;background:transparent;color:var(--ko-muted);}
html[data-ko-theme] .entry-footer {border-color:var(--ko-line);color:var(--ko-muted);font-size:11px;}

/* Club and instructor workspaces, calendars, forms and reports. */
html[data-ko-theme] .ca-club-identity {color:var(--ko-ink);}
html[data-ko-theme] .ca-club-identity strong {font-size:17px;letter-spacing:-.02em;}
html[data-ko-theme] .ca-eyebrow {font-size:11px;letter-spacing:.075em;color:var(--ko-muted);}
html[data-ko-theme] .ca-dashboard-head h1 {font-size:36px;}
html[data-ko-theme] :is(.ca-metrics,.platform-metrics) {gap:14px;}
html[data-ko-theme] :is(.ca-metrics,.platform-metrics)>* {background:var(--ko-surface);border:1px solid var(--ko-line);border-radius:18px;padding:20px;box-shadow:none;}
html[data-ko-theme] :is(.ca-metrics,.platform-metrics) strong {color:var(--ko-ink);font-size:30px;font-weight:650;letter-spacing:-.035em;}
html[data-ko-theme] :is(.ca-quick-actions button,.ca-return,.ca-scan,.zone-switch) {border-radius:100px;font-size:12px;}
html[data-ko-theme] :is(.ca-form,.platform-form,.work-time-fields,.report-fields) {gap:18px;}
html[data-ko-theme] :is(.ca-form label,.platform-form label,.club-reports label) {font-weight:550;font-size:13px;line-height:1.5;}
html[data-ko-theme] :is(.ca-form-section,.ca-settings-tabs,.ca-toolbar,.report-builder,.report-preview,.report-result-section,.report-history,.report-email,.platform-finance-disclosure) {border-color:var(--ko-line);}
html[data-ko-theme] :is(.ca-table,.platform-table,.report-table-scroll table,.ca-fee-table) {color:var(--ko-ink);}
html[data-ko-theme] :is(.ca-table,.platform-table,.report-table-scroll table,.ca-fee-table) :is(th,td) {border-color:var(--ko-line);}
html[data-ko-theme] :is(.ca-table,.platform-table,.report-table-scroll table,.ca-fee-table) th {background:var(--ko-soft);color:var(--ko-muted);font-size:12px;font-weight:600;}
html[data-ko-theme] :is(.ca-table,.platform-table,.report-table-scroll table,.ca-fee-table) td {background:var(--ko-surface);color:var(--ko-ink);}
html[data-ko-theme] :is(.ca-table,.platform-table,.report-table-scroll table) tr:nth-child(even) td {background:var(--ko-bg);}
html[data-ko-theme] :is(.ca-table-wrap,.platform-table-wrap,.report-table-scroll) {border:1px solid var(--ko-line);border-radius:16px;scrollbar-width:thin;}
html[data-ko-theme] :is(.ca-week-scroll,.resource-timeline-scroll) {border-color:var(--ko-line);border-radius:18px;scrollbar-width:thin;}
html[data-ko-theme] :is(.ca-day,.ca-weekdays,.ca-station-heading,.ca-calendar-time) {background:var(--ko-surface);border-color:var(--ko-line);color:var(--ko-ink);}
html[data-ko-theme] :is(.ca-day-empty,.ca-calendar-gap,.ca-station-lane) {background:var(--ko-bg);color:var(--ko-muted);border-color:var(--ko-line);}
html[data-ko-theme] .ca-calendar-entry {border-radius:10px;}
html[data-ko-theme] .ca-agenda-row {border-color:var(--ko-line);color:var(--ko-ink);}
html[data-ko-theme] .ca-agenda-link {border:0;border-bottom:1px solid var(--ko-line);border-radius:0;background:transparent;box-shadow:none;}
html[data-ko-theme] .ca-agenda-link:hover {background:var(--ko-soft);}
html[data-ko-theme] .ca-agenda-link:focus-visible {outline:3px solid var(--ko-accent);outline-offset:3px;}
html[data-ko-theme] .ca-date-pill {border-radius:14px;background:var(--ko-soft);color:var(--ko-ink);}
html[data-ko-theme] :is(.ca-person-menu>summary,.ca-person-menu-actions,.ca-roster-search) {background:var(--ko-surface);color:var(--ko-ink);border:1px solid var(--ko-line);border-radius:13px;}
html[data-ko-theme] :is(.report-section-option,.club-reports .report-section-option) {border:1px solid var(--ko-line);border-radius:16px;background:var(--ko-surface);}
html[data-ko-theme] .report-section-option:has(input:checked) {background:var(--ko-tint);border-color:var(--ko-accent);}
html[data-ko-theme] .report-actions a.button {background:var(--ko-ink);color:var(--ko-bg);border-radius:12px;}
html[data-ko-theme] :is(.work-earnings,.work-active) {background:var(--ko-surface);color:var(--ko-ink);border:1px solid var(--ko-line);border-radius:22px;}
html[data-ko-theme] .work-running-label {background:var(--ko-success-bg);color:var(--ko-success);border-radius:100px;}
html[data-ko-theme] .work-month-grid button {border-radius:12px;}

/* Platform administration shares tokens while retaining its complete grouped menu. */
html[data-ko-theme] .platform-workspace {grid-template-columns:236px minmax(0,1fr);background:var(--ko-bg);}
html[data-ko-theme] .platform-workspace .platform-header {background:var(--ko-glass);color:var(--ko-ink);border-bottom:1px solid var(--ko-line);min-height:80px;padding:14px 28px;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);}
html[data-ko-theme] .platform-workspace .platform-header>a {font-size:23px;font-weight:750;letter-spacing:-.04em;color:var(--ko-ink);}
html[data-ko-theme] .platform-workspace .platform-header>a span {color:var(--ko-muted);font-size:12px;font-weight:450;letter-spacing:0;}
html[data-ko-theme] .platform-person {color:var(--ko-muted);font-size:12px;}
html[data-ko-theme] .platform-workspace .platform-nav {background:var(--ko-sidebar);border-right:1px solid var(--ko-line);padding:24px 16px;scrollbar-width:thin;}
html[data-ko-theme] .platform-nav-group>p {font-size:11px;letter-spacing:.075em;color:var(--ko-muted);margin-left:12px;}
html[data-ko-theme] .platform-workspace .platform-nav button {border:0;border-radius:12px;background:transparent;color:var(--ko-muted);font-size:13px;padding:11px 13px;box-shadow:none;}
html[data-ko-theme] .platform-workspace .platform-nav button:hover {background:var(--ko-soft);color:var(--ko-ink);}
html[data-ko-theme] .platform-workspace .platform-nav button[aria-current=page] {background:var(--ko-surface);color:var(--ko-ink);box-shadow:0 2px 8px #00000006;}
html[data-ko-theme] .platform-workspace .platform-nav button:before {background:var(--ko-accent);border-radius:100px;}
html[data-ko-theme] .platform-workspace .platform-main {padding:32px var(--ko-gutter) 48px;max-width:1600px;}
html[data-ko-theme] .platform-location {color:var(--ko-muted);font-size:12px;}
html[data-ko-theme] .platform-workspace h1 {font-size:clamp(28px,2.8vw,40px);letter-spacing:-.04em;}
html[data-ko-theme] .platform-overview-stats {gap:16px;border:0;background:transparent;border-radius:0;}
html[data-ko-theme] .platform-stat {background:var(--ko-surface);color:var(--ko-ink);border:1px solid var(--ko-line);border-radius:20px;padding:24px;box-shadow:var(--ko-shadow);}
html[data-ko-theme] .platform-stat:hover {background:var(--ko-soft);}
html[data-ko-theme] .platform-stat+button {border-left:1px solid var(--ko-line);}
html[data-ko-theme] .platform-stat :is(small,span) {color:var(--ko-muted);}
html[data-ko-theme] .platform-stat strong {font-size:34px;letter-spacing:-.04em;font-weight:650;}
html[data-ko-theme] .platform-stat .platform-stat-link {color:var(--ko-accent);}
html[data-ko-theme] .platform-task {background:transparent;color:var(--ko-ink);border-color:var(--ko-line);}
html[data-ko-theme] .platform-task:hover {background:var(--ko-soft);}
html[data-ko-theme] :is(.platform-task small,.platform-processes p,.platform-package-editor>summary span) {color:var(--ko-muted);}
html[data-ko-theme] .platform-task-arrow {color:var(--ko-accent);}
html[data-ko-theme] .platform-processes .platform-panel {border:1px solid var(--ko-line);border-radius:20px;background:var(--ko-surface);padding:24px;}
html[data-ko-theme] .platform-process-links button {background:transparent;color:var(--ko-ink);text-decoration-color:var(--ko-input);}
html[data-ko-theme] .platform-workflow-tabs button {border:1px solid var(--ko-line);border-radius:13px;background:var(--ko-surface);color:var(--ko-muted);}
html[data-ko-theme] .platform-workflow-tabs button[aria-current=page] {background:var(--ko-ink);border-color:var(--ko-ink);color:var(--ko-bg);}
html[data-ko-theme] .platform-mobile-bar {background:var(--ko-sidebar);border-color:var(--ko-line);}
html[data-ko-theme] .platform-current-section {color:var(--ko-muted);}

/* Native dialogs retain focus, top-layer behavior and synchronous programmatic close. */
html[data-ko-theme] dialog:not(.discovery-map-dialog) {background:var(--ko-surface);color:var(--ko-ink);border:1px solid var(--ko-line);border-radius:26px;padding:30px;box-shadow:0 26px 100px #0000002b;max-height:calc(100dvh - 48px);overscroll-behavior:contain;scrollbar-width:thin;}
html[data-ko-theme] dialog::backdrop {background:#18211a55;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);}
html[data-ko-theme] dialog h2 {font-size:27px;font-weight:670;letter-spacing:-.035em;}
html[data-ko-theme] .ko-motion-dialog {padding-top:44px!important;}
html[data-ko-theme] .ko-dialog-close {position:absolute;top:12px;right:13px;border:0;border-radius:50%;width:34px;height:34px;min-height:34px;padding:7px;display:grid;place-items:center;background:var(--ko-soft);color:var(--ko-muted);z-index:2;}
html[data-ko-theme] .ko-dialog-close:hover {color:var(--ko-ink);}
html[data-ko-theme] .ko-sheet-grip {display:none;}
html[data-ko-theme] .dialog-actions {border-top:1px solid var(--ko-line);padding-top:20px;margin-top:24px;}
html[data-ko-theme] #toast {border-radius:100px;background:var(--ko-ink);color:var(--ko-bg);box-shadow:0 8px 35px #00000020;padding:14px 24px;}
html[data-ko-theme] #session-shield {background:var(--ko-surface);color:var(--ko-ink);}
html[data-ko-theme] .error-page {background:var(--ko-bg);color:var(--ko-ink);}

@media(max-width:1200px) {
  html[data-ko-theme] .shell {grid-template-columns:202px minmax(0,1fr);}
  html[data-ko-theme] .workspace-brand .brand-logo {width:155px;}
  html[data-ko-theme] .workspace-header {flex-wrap:wrap;gap:12px;}
  html[data-ko-theme] .discovery-layout {grid-template-columns:minmax(0,1fr) minmax(270px,1fr);gap:20px;}
  html[data-ko-theme] .map {height:480px;}
  html[data-ko-theme] .discovery-primary-filters {gap:14px;}
  html[data-ko-theme] .platform-workspace {grid-template-columns:215px minmax(0,1fr);}
}
@media(max-width:1000px) {
  .discovery-intro {gap:22px;}
  .discovery-photo {height:175px;}
  html[data-ko-theme] .discovery-layout {grid-template-columns:minmax(0,1fr);}
  html[data-ko-theme] .discovery-map-panel {position:static;}
  html[data-ko-theme] .map {height:370px;}
  html[data-ko-theme] .entry-form-panel {padding:26px;}
  html[data-ko-theme] .entry-content {gap:5%;}
}
@media(max-width:800px) {
  :root {--ko-gutter:22px;}
  html[data-ko-theme] .shell {display:block;}
  html[data-ko-theme] .shell>aside {position:relative;height:auto;overflow:visible;padding:16px var(--ko-gutter);border:0;border-bottom:1px solid var(--ko-line);background:var(--ko-sidebar);}
  html[data-ko-theme] .workspace-brand .brand-logo {width:145px;}
  html[data-ko-theme] .shell .sidebar-caption {display:none;}
  html[data-ko-theme] #menu-toggle {display:inline-flex;align-items:center;gap:12px;border-radius:100px;padding:9px 14px;font-size:12px;}
  html[data-ko-theme] .shell #workspace-nav {display:none;}
  html[data-ko-theme] .shell.menu-open #workspace-nav {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:16px;gap:5px;}
  html[data-ko-theme] .shell #workspace-nav button {white-space:normal;padding:12px;}
  html[data-ko-theme] .shell>main {padding:0 var(--ko-gutter) 30px;}
  html[data-ko-theme] .workspace-header {position:relative;min-height:72px;padding:14px var(--ko-gutter);gap:12px;}
  html[data-ko-theme] .head-actions {gap:7px;}
  html[data-ko-theme] .head-actions .secondary {min-height:40px;}
  html[data-ko-theme] .club-admin-shell .head-actions {width:100%;justify-content:flex-start;}
  html[data-ko-theme] .head-actions #logout {margin-left:auto;}
  html[data-ko-theme] .profile-button span {display:none;}
  html[data-ko-theme] .profile-button {padding:9px 12px;}
  html[data-ko-theme] .page-head {margin:24px 0;}
  html[data-ko-theme] .platform-workspace {display:block;}
  html[data-ko-theme] .platform-workspace .platform-header {padding:14px 20px;flex-wrap:wrap;gap:10px;min-height:72px;}
  html[data-ko-theme] .platform-workspace .platform-header>a {font-size:22px;}
  html[data-ko-theme] .platform-workspace .platform-nav {display:none;border-right:0;border-bottom:1px solid var(--ko-line);}
  html[data-ko-theme] .platform-workspace.platform-menu-open .platform-nav {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 12px;padding:20px;}
  html[data-ko-theme] .platform-workspace .platform-main {padding:25px var(--ko-gutter) 40px;}
  html[data-ko-theme] .platform-mobile-bar {display:flex;padding:12px 20px;}
  html[data-ko-theme] .platform-nav-group>p {font-size:11px;}
  html[data-ko-theme] .entry-content {grid-template-columns:1fr;max-width:650px;margin-top:28px;gap:28px;}
  html[data-ko-theme] .entry-story h2 {font-size:48px;}
  html[data-ko-theme] .entry-story {display:grid;grid-template-columns:1fr 1fr;gap:0 24px;align-items:start;}
  html[data-ko-theme] .entry-story .entry-photo {grid-column:2;grid-row:1/3;margin:0;}
  html[data-ko-theme] .entry-photo .multisport-photo {height:220px;}
  html[data-ko-theme] .entry-photo figcaption {display:none;}
  html[data-ko-theme] .entry-story .entry-lead {font-size:13px;margin-top:16px;}
  html[data-ko-theme] .entry-sports {display:none;}
  html[data-ko-theme] .entry-form-panel {padding:28px;}
}
@media(max-width:560px) {
  :root {--ko-gutter:17px;--ko-radius:18px;}
  html[data-ko-theme] .workspace-header {gap:12px;}
  html[data-ko-theme] .workspace-identity {width:100%;}
  html[data-ko-theme] .head-actions {width:100%;flex-wrap:wrap;}
  html[data-ko-theme] .workspace-header .identity {font-size:13px;}
  html[data-ko-theme] :is(input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]):not([type=file]),select,textarea) {font-size:16px;}
  html[data-ko-theme] :is(.card,.ca-panel,.platform-panel,.shell .class-card) {padding:20px;}
  html[data-ko-theme] :is(.ca-dashboard-head h1,.page-head h1) {font-size:30px;}
  html[data-ko-theme] .discovery-intro {grid-template-columns:minmax(0,1fr) 110px;gap:16px;margin:24px 0;}
  html[data-ko-theme] .discovery-intro h1 {font-size:31px;line-height:1.06;}
  .discovery-eyebrow {font-size:11px;letter-spacing:.04em;}
  html[data-ko-theme] .discovery-intro .page-head p {font-size:13px;line-height:1.55;}
  .discovery-photo {height:190px;border-radius:20px;}
  .discovery-photo img {object-position:50%;}
  .discovery-photo figcaption {display:none;}
  html[data-ko-theme] .discovery-kinds {width:100%;}
  html[data-ko-theme] .discovery-kinds button {flex:1;padding:10px;}
  html[data-ko-theme] .discovery-search-panel {padding:20px 17px;}
  html[data-ko-theme] .discovery-primary-filters {grid-template-columns:minmax(0,1fr);gap:18px;}
  html[data-ko-theme] .discovery-layout {gap:24px;}
  html[data-ko-theme] .discovery-map-tools>div {width:100%;}
  html[data-ko-theme] .discovery-map-tools button {flex:1;min-height:44px;}
  html[data-ko-theme] .map {height:350px;}
  html[data-ko-theme] .map-placeholder {padding:14px;}
  html[data-ko-theme] .map-placeholder>div {padding:20px;}
  html[data-ko-theme] .map-placeholder h2 {font-size:23px;}
  html[data-ko-theme] .map-placeholder p {font-size:12px;}
  html[data-ko-theme] .result {padding:18px 16px;gap:12px;}
  html[data-ko-theme] .result strong {font-size:16px;}
  html[data-ko-theme] .result .price {font-size:13px;}
  html[data-ko-theme] .platform-workspace .platform-header {gap:8px;padding:14px 17px;}
  html[data-ko-theme] .platform-workspace .platform-person {order:4;flex-basis:100%;max-width:none;font-size:12px;}
  html[data-ko-theme] .platform-header .ko-theme-toggle {margin-left:auto;}
  html[data-ko-theme] .platform-overview-stats {grid-template-columns:1fr;gap:12px;}
  html[data-ko-theme] .platform-stat {padding:21px;border:1px solid var(--ko-line);}
  html[data-ko-theme] .platform-stat strong {font-size:30px;}
  html[data-ko-theme] .platform-processes .platform-panel {padding:20px;}
  html[data-ko-theme] .platform-workspace .platform-nav button {font-size:12px;}
  html[data-ko-theme] .entry-wrap {padding:18px;}
  html[data-ko-theme] .entry-header {flex-wrap:wrap;gap:12px;}
  html[data-ko-theme] .entry-brand .brand-logo {width:145px;}
  html[data-ko-theme] .entry-register {gap:8px;margin-left:auto;}
  html[data-ko-theme] .entry-register>span {display:none;}
  html[data-ko-theme] .entry-story {grid-template-columns:minmax(0,1fr) 115px;gap:0 16px;}
  html[data-ko-theme] .entry-story h2 {font-size:38px;}
  html[data-ko-theme] .entry-photo .multisport-photo {height:205px;}
  html[data-ko-theme] .entry-form-panel {padding:23px 20px;border-radius:23px;}
  html[data-ko-theme] .entry-form-panel h1 {font-size:30px;}
  html[data-ko-theme] .entry-footer {font-size:11px;gap:15px;}
  html[data-ko-theme] .ko-motion-dialog {position:fixed;inset:auto 8px 8px;margin:0 auto;width:calc(100% - 16px);max-width:calc(100% - 16px);max-height:calc(100dvh - 24px);padding:45px 22px 23px!important;border-radius:25px;}
  html[data-ko-theme] .ko-sheet-grip {display:flex;position:absolute;top:0;left:50px;right:50px;width:calc(100% - 100px);height:34px;min-height:34px;justify-content:center;align-items:center;touch-action:none;cursor:grab;background:transparent;border:0;padding:0;border-radius:0;}
  html[data-ko-theme] .ko-sheet-grip:after {content:"";width:35px;height:5px;border-radius:100px;background:var(--ko-input);}
  html[data-ko-theme] .ko-sheet-grip:active {scale:1;cursor:grabbing;}
  html[data-ko-theme] .ko-dialog-close {top:11px;right:11px;}
  html[data-ko-theme] dialog h2 {font-size:25px;}
  html[data-ko-theme] .discovery-map-dialog {padding:12px;border-radius:0;}
  html[data-ko-theme] .discovery-map-dialog>.map {border-radius:15px;}
}
@media(max-width:360px) {
  .discovery-photo {display:none;}
  html[data-ko-theme] .discovery-intro {grid-template-columns:1fr;}
  html[data-ko-theme] .entry-story {grid-template-columns:1fr 95px;}
  html[data-ko-theme] .entry-story h2 {font-size:34px;}
  html[data-ko-theme] .platform-workspace.platform-menu-open .platform-nav {padding:15px 10px;gap:20px 6px;}
}
@media(pointer:coarse) {
  html[data-ko-theme] :is(.ko-dialog-close,.ko-theme-toggle) {min-width:44px;min-height:44px;}
  html[data-ko-theme] .ko-sheet-grip {height:42px;}
}
@media(prefers-reduced-motion:reduce) {
  html {scroll-behavior:auto;}
  html[data-ko-theme] *,html[data-ko-theme] *:before,html[data-ko-theme] *:after {animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important;}
  button:not(:disabled):active {scale:1;}
}
@media(prefers-reduced-transparency:reduce) {
  html[data-ko-theme] :is(.workspace-header,.platform-header) {background:var(--ko-surface);backdrop-filter:none;-webkit-backdrop-filter:none;}
  html[data-ko-theme] dialog::backdrop {backdrop-filter:none;-webkit-backdrop-filter:none;}
  .discovery-photo figcaption {background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none;}
}
@media(prefers-contrast:more) {
  :root {--ko-muted:#464c43;--ko-line:#6c7766;--ko-input:#5d6957;}
  :root[data-ko-theme=dark] {--ko-muted:#d0d8cb;--ko-line:#8d9b85;--ko-input:#a2b297;}
  html[data-ko-theme] :is(.workspace-header,.platform-header) {background:var(--ko-surface);backdrop-filter:none;-webkit-backdrop-filter:none;}
}
@media print {
  :root {color-scheme:light;--ko-bg:#fff;--ko-surface:#fff;--ko-ink:#161a15;--ko-muted:#4f5849;--ko-line:#b7c1b1;}
  .ko-theme-toggle,.ko-sheet-grip,.ko-dialog-close {display:none!important;}
  html[data-ko-theme] .workspace-header {position:static;}
  html[data-ko-theme=dark] .brand-logo {filter:none;}
}

/* Both presentations consume the same filtered discovery results. */
html[data-ko-theme] .discovery-view-switch {display:flex;gap:4px;width:max-content;padding:4px;background:var(--ko-soft);border:1px solid var(--ko-line);border-radius:14px;margin:22px 0;}
html[data-ko-theme] .discovery-view-switch button {min-height:40px;padding:8px 20px;background:transparent;border:0;color:var(--ko-muted);box-shadow:none;}
html[data-ko-theme] .discovery-view-switch button[aria-pressed=true] {background:var(--ko-surface);color:var(--ko-ink);box-shadow:0 2px 6px #0000000a;}
html[data-ko-theme] .discovery-layout[data-view=tiles] {display:block;}
html[data-ko-theme] .discovery-map-panel[hidden] {display:none;}
html[data-ko-theme] [data-view=tiles] #results {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;}
html[data-ko-theme] [data-view=tiles] .result {display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0;overflow:hidden;border-radius:22px;min-width:0;text-align:left;}
html[data-ko-theme] .discovery-card-photo {display:none;}
html[data-ko-theme] [data-view=tiles] .discovery-card-photo {display:block;position:relative;width:100%;height:180px;background:var(--ko-soft);overflow:hidden;}
html[data-ko-theme] .discovery-card-photo img {width:100%;height:100%;object-fit:cover;}
html[data-ko-theme] [data-view=tiles] .photo-standard img {width:300%;max-width:none;object-fit:cover;position:absolute;left:0;}
html[data-ko-theme] [data-view=tiles] .photo-standard.photo-yoga img {left:-100%;}
html[data-ko-theme] [data-view=tiles] .photo-standard.photo-running img {left:-200%;}
html[data-ko-theme] [data-view=tiles] .photo-standard.photo-general img {width:100%;left:0;object-position:center;}
html[data-ko-theme] .photo-caption {position:absolute;bottom:10px;left:12px;background:#1d241ecf;color:#fff;padding:4px 8px;border-radius:7px;font-size:10px;letter-spacing:.01em;}
html[data-ko-theme] [data-view=tiles] .discovery-card-info {padding:19px 20px 8px;flex:1;}
html[data-ko-theme] [data-view=tiles] .result strong {font-size:19px;line-height:1.3;letter-spacing:-.025em;}
html[data-ko-theme] [data-view=tiles] .result p {font-size:13px;line-height:1.5;margin-top:9px;}
html[data-ko-theme] [data-view=tiles] .result .price {align-self:flex-start;background:var(--ko-soft);color:var(--ko-ink);margin:8px 20px 20px;padding:8px 11px;white-space:normal;}
html[data-ko-theme] .result.is-selected {border-color:var(--ko-accent);box-shadow:0 0 0 2px var(--ko-accent);}
html[data-ko-theme] [data-view=tiles] #results>.empty {grid-column:1/-1;}
html[data-ko-theme] .club-photo-editor>img {display:block;width:min(100%,540px);height:220px;object-fit:cover;border-radius:15px;margin:18px 0;}
html[data-ko-theme] .club-photo-editor input[type=file] {width:100%;max-width:540px;color:var(--ko-ink);background:var(--ko-soft);padding:12px;border-radius:12px;}
html[data-ko-theme] .club-photo-editor input::file-selector-button {border:0;border-radius:8px;background:var(--ko-surface);color:var(--ko-ink);padding:10px 14px;margin-right:12px;cursor:pointer;}
html[data-ko-theme] .club-photo-actions {display:flex;flex-wrap:wrap;gap:10px;}
html[data-ko-theme] .ca-metrics {border:0;background:transparent;}
html[data-ko-theme] .ca-agenda-time {color:var(--ko-accent);}
html[data-ko-theme] .contract-signature,html[data-ko-theme] .signature-image-preview {background:#fff; color-scheme:light;}
html[data-ko-theme=dark] .ca-calendar-entry.ca-instructor-color {background:color-mix(in srgb,var(--instructor-bg) 12%,var(--ko-surface));}
html[data-ko-theme] .ca-instructor-legend>span {background:var(--ko-soft)!important;color:var(--ko-ink);}
html[data-ko-theme] .ca-calendar-entry :is(strong,.ca-calendar-time) {color:var(--ko-ink);background:transparent;}
html[data-ko-theme] .ca-calendar-entry :is(p,small) {color:var(--ko-muted);}
html[data-ko-theme] .ca-calendar-entry .ca-resource-label {background:var(--ko-soft);color:var(--ko-ink);}
@media(max-width:1200px){html[data-ko-theme] [data-view=tiles] #results{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:560px){html[data-ko-theme] [data-view=tiles] #results{grid-template-columns:minmax(0,1fr);gap:17px;}html[data-ko-theme] [data-view=tiles] .discovery-card-photo{height:195px;}html[data-ko-theme] .club-photo-editor>img{height:180px;}}
html[data-ko-theme] .discovery-photo {display:block;width:100%;height:170px;}
html[data-ko-theme] .discovery-intro {margin:20px 0;}
html[data-ko-theme] .ko-eyebrow {font-size:11px;letter-spacing:.07em;text-transform:uppercase;}
html[data-ko-theme] .discovery-search-panel {padding:18px 20px;margin-bottom:16px;}
html[data-ko-theme] .discovery-search-panel .location-actions {margin:4px 0 0;min-height:28px;}
html[data-ko-theme] .discovery-search-panel .location-actions p {margin:0;}
html[data-ko-theme] .discovery-search-panel .location-actions button {padding:6px 0;}
html[data-ko-theme] .discovery-kinds button[aria-pressed=false] {box-shadow:none;background:transparent;color:var(--ko-muted);}
html[data-ko-theme] .mobile-discovery-filters {display:none;}
@media(max-width:560px){
 html[data-ko-theme] .discovery-photo {height:155px;}
 html[data-ko-theme] .discovery-intro {margin:14px 0;}
 html[data-ko-theme] .mobile-discovery-filters {display:block;margin-top:12px;padding:10px 0;min-height:40px;text-align:left;font-size:13px;}
 html[data-ko-theme] .discovery-search-panel:not(.filters-open) :is(#activity-dates,#resource-filter,.field:has(#location-form),.location-actions,.extra-filters,.location-help) {display:none;}
 html[data-ko-theme] .discovery-primary-filters {gap:14px;}
 html[data-ko-theme] .discovery-layout[data-view=tiles] {margin-top:12px;}
 html[data-ko-theme] .discovery-view-switch {margin:16px 0;}
}
@media(max-width:360px){html[data-ko-theme] .discovery-photo{display:none;}}

/* A visible filter control, distinct from the optional location explanation. */
html[data-ko-theme] .discovery-search-panel .extra-filters {border:0;margin-top:18px;padding-top:0;}
html[data-ko-theme] .discovery-search-panel .extra-filters>summary,
html[data-ko-theme] .discovery-search-panel .mobile-discovery-filters {
  width:max-content;max-width:100%;min-height:48px;padding:12px 17px;
  border:1px solid var(--ko-accent);border-radius:13px;background:var(--ko-tint);
  color:var(--ko-accent);font-size:14px;font-weight:650;line-height:1.4;
  text-decoration:none;cursor:pointer;list-style:none;
}
html[data-ko-theme] .discovery-search-panel .extra-filters>summary {display:inline-flex;align-items:center;gap:11px;}
.extra-filters>summary::-webkit-details-marker {display:none;}
.extra-filters>summary::marker {content:"";}
.extra-filters>summary svg {flex:none;}
.extra-filters .filter-control-chevron {margin-left:6px;transition:transform 150ms ease;}
.extra-filters[open] .filter-control-chevron {transform:rotate(180deg);}
html[data-ko-theme] .discovery-search-panel .extra-filters>summary:hover,
html[data-ko-theme] .discovery-search-panel .mobile-discovery-filters:hover {box-shadow:0 0 0 2px var(--ko-tint);filter:brightness(.97);}
html[data-ko-theme] .discovery-search-panel .extra-filters[open]>.filters {margin-top:16px;padding:18px;background:var(--ko-soft);border-radius:15px;}
html[data-ko-theme] .discovery-search-panel .location-help {margin-top:16px;}
@media(max-width:560px){
  html[data-ko-theme] .discovery-search-panel .mobile-discovery-filters {width:100%;text-align:center;margin-top:16px;}
  html[data-ko-theme] .discovery-search-panel.filters-open .extra-filters>summary {display:none;}
  html[data-ko-theme] .discovery-search-panel .extra-filters[open]>.filters {padding:15px;margin-top:0;}
}

/* Contact-only invitation support and pending participants. */
.club-contact-page{max-width:680px;margin:40px auto;padding:20px;overflow-wrap:anywhere}.club-contact-page>.brand-logo{width:180px;height:auto;margin-bottom:32px}.club-contact-page .ca-panel{padding:28px}.participant-waiting .ca-roster-row>div{min-width:0;overflow-wrap:anywhere}.participant-waiting .ca-roster-row p{margin:6px 0}.ca-form>.participant-claim{grid-column:1/-1;width:100%}.claim-contact-link{display:inline-flex;margin:12px 0}

@media(max-width:560px){.participant-waiting .ca-roster-row{align-items:flex-start}}

.participant-waiting-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.participant-waiting-actions>.form-message:empty{display:none}.participant-waiting-actions>.form-message:not(:empty){flex-basis:100%}.participant-invite-delete{color:var(--ko-danger)!important;border-color:var(--ko-danger)!important}

/* Payment filters and bank statement reconciliation. */
.ca-fee-totals{grid-template-columns:repeat(5,minmax(0,1fr))}.ca-fee-totals>button{padding:16px;background:var(--ko-soft);text-align:left;border:2px solid transparent;border-radius:12px;min-width:0}.ca-fee-totals>button[aria-pressed=true]{border-color:var(--ko-accent);background:var(--ko-surface)}.ca-fee-totals>button:focus-visible{outline:3px solid var(--ko-accent);outline-offset:3px}.club-bank{overflow-wrap:anywhere}.club-bank details{margin:18px 0}.club-bank summary{font-weight:650;cursor:pointer}.club-bank-upload{margin-top:18px;display:grid;gap:14px}.club-bank-mapping{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.club-bank-mapping>.ca-table-wrap,.club-bank-mapping>p{grid-column:1/-1}.club-bank .ca-table-wrap{max-width:100%;overflow:auto}.club-bank .ca-table td{min-width:110px;max-width:280px;overflow-wrap:anywhere}.club-bank-entry,.club-bank-position,.club-bank-rule{border-top:1px solid var(--ko-line);padding:18px 0}.club-bank-entry h3{margin-top:0}.club-bank-position{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.club-bank-position>.form-message{grid-column:1/-1}.club-bank-upload input[type=file]{max-width:100%;width:100%}@media(max-width:700px){.ca-fee-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.ca-fee-totals>button:last-child{grid-column:1/-1}.ca-fee-totals strong{font-size:20px}.club-bank-mapping,.club-bank-position{grid-template-columns:1fr}}

/* Dopasowanie wyciągów: uczestnik i należność przy każdym przelewie. */
.club-bank-work{border:0;padding:0;margin:0;min-width:0}
.club-bank-work:disabled{opacity:.7}
.club-bank-position>*{min-width:0}
.club-bank-position>.small,.club-bank-suggestions{grid-column:1/-1}
.club-bank-suggestions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.club-bank-suggestions>.form-message:empty{display:none}
.club-bank-position select{width:100%;min-width:0;text-overflow:ellipsis}
.club-bank-entry>.ca-toggle{margin:16px 0}
.club-bank-entry .ca-actions{margin:12px 0}
.club-bank-saved{font-weight:650;border-left:3px solid var(--ko-accent);padding:10px 14px;background:var(--ko-soft)}
.club-bank h3[tabindex="-1"]:focus{outline:none}
.club-bank .form-message:empty{display:none}
.club-bank-position .form-message{margin:0}
.club-bank .ca-actions{display:flex;flex-wrap:wrap;gap:8px}
.club-bank .ca-actions[hidden]{display:none}
.club-bank-position .field{margin:0}

/* Wybór czynności przed wczytaniem szczegółów płatności. */
.ca-payment-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:1000px}
button.ca-payment-tile{display:flex;align-items:flex-start;gap:16px;text-align:left;min-height:152px;padding:26px;border:1px solid var(--ko-line);border-radius:16px;background:var(--ko-surface);color:var(--ko-ink);box-shadow:none}
button.ca-payment-tile:hover{border-color:var(--ko-accent);background:var(--ko-soft)}
.ca-payment-tile-icon{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:12px;background:var(--ko-soft);color:var(--ko-accent)}
.ca-payment-tile-copy{display:grid;gap:9px;min-width:0}
.ca-payment-tile-copy strong{font-size:18px;line-height:1.3}
.ca-payment-tile-copy>span{font-size:14px;font-weight:400;line-height:1.55;color:var(--ko-muted)}
.ca-payment-tile-arrow{margin-left:auto;flex:none;color:var(--ko-muted)}
@media(max-width:700px){.ca-payment-tiles{grid-template-columns:1fr;gap:12px}button.ca-payment-tile{min-height:130px;padding:20px;gap:12px}.ca-payment-tile-copy strong{font-size:17px}}

/* Keyboard access and inline validation; original interface dimensions. */
.ko-skip-link{position:fixed;top:-100px;left:16px;z-index:1000;padding:10px 14px;border-radius:8px;background:var(--ko-ink);color:var(--ko-bg);font-size:14px}
.ko-skip-link:focus{top:12px}
html[data-ko-theme] .field-error{display:block;margin:-8px 0 14px;font-size:12px;line-height:1.5;color:var(--ko-danger)}
html[data-ko-theme] #auth-form input[aria-invalid=true]{border-color:var(--ko-danger)}
html[data-ko-theme] .ca-modal-head>button{color:var(--ko-ink)!important}

/* My classes: current club photo, or a local vector illustration of the sport. */
html[data-ko-theme] .shell .class-card-visual {min-width:0;}
.class-visual {position:relative;isolation:isolate;height:64px;flex:none;border-radius:14px;overflow:hidden;margin-bottom:14px;background:var(--ko-info-bg);color:var(--ko-info);}
.class-visual[data-sport=racket] {background:var(--ko-success-bg);color:var(--ko-success);}
.class-visual[data-sport=ball],.class-visual[data-sport=combat] {background:var(--ko-tint);color:var(--ko-accent);}
.class-visual[data-sport=yoga],.class-visual[data-sport=dance] {background:var(--ko-warning-bg);color:var(--ko-warning);}
.class-visual:before,.class-visual:after {content:"";position:absolute;pointer-events:none;border:2px solid currentColor;opacity:.2;}
.class-visual:before {width:250px;height:190px;right:-65px;top:-55px;border-radius:50%;}
.class-visual:after {width:250px;height:190px;right:-28px;top:-20px;border-radius:50%;}
.class-visual[data-sport=racket]:before {border-radius:0;right:-50px;top:15px;width:265px;height:135px;transform:rotate(-18deg);}
.class-visual[data-sport=racket]:after {border-radius:0;right:65px;top:-15px;width:1px;height:210px;transform:rotate(-18deg);border-width:0 0 0 2px;}
.class-sport-art {position:absolute;inset:0;display:grid;place-items:center;padding-left:70px;}
.class-sport-art>svg {width:42px;height:42px;stroke-width:1;}
.class-visual>img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.class-visual.has-photo:before,.class-visual.has-photo:after,.class-visual.has-photo .class-sport-art {visibility:hidden;}
.class-sport-label {position:absolute;bottom:10px;left:10px;right:auto;max-width:calc(100% - 24px);display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border:1px solid var(--ko-line);border-radius:100px;background:var(--ko-surface);color:var(--ko-ink);font-size:12px;font-weight:650;line-height:1.4;}
.class-sport-label>span {min-width:0;overflow-wrap:anywhere;}
.class-sport-label>span:first-child {display:flex;flex:none;}
.class-sport-label svg {width:16px;height:16px;}
@media(max-width:560px){.class-visual{height:56px;margin-bottom:12px}.class-sport-art>svg{width:36px;height:36px}.class-sport-label{font-size:11px}}

/* Financial receipts use the existing semantic palette in both themes. */
html[data-ko-theme] :is(.payment-receipt,.refund-outgoing){color:var(--ko-danger);}
html[data-ko-theme] .refund-receipt:not(.refund-outgoing){color:var(--ko-success);}
html[data-ko-theme] :is(.payment-receipt,.refund-receipt) .small{color:var(--ko-muted);}

/* Mobile workspaces show the current task first. Navigation and secondary
   actions have separate native dialogs instead of extending the page header. */
html[data-ko-theme] :is(.mobile-header-more,.mobile-drawer-close){display:none;}
html.workspace-mobile-overlay-open{overflow:hidden;}
html[data-ko-theme] dialog.mobile-workspace-dialog:not([open]){display:none;}
@media(max-width:800px){
 html[data-ko-theme] .mobile-workspace .workspace-header{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:8px;position:sticky;top:0;min-height:64px;padding:8px var(--ko-gutter);border-bottom:1px solid var(--ko-line);background:var(--ko-surface);backdrop-filter:none;-webkit-backdrop-filter:none;}
 html[data-ko-theme] .mobile-workspace .workspace-header #menu-toggle{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:12px;background:transparent;color:var(--ko-ink);}
 html[data-ko-theme] .mobile-workspace .workspace-header :is(.workspace-identity,.ca-club-identity){width:auto;min-width:0;display:block;}
 html[data-ko-theme] .mobile-workspace .workspace-header :is(.workspace-avatar,.ca-eyebrow,.workspace-identity>div>strong){display:none;}
 html[data-ko-theme] .mobile-workspace .workspace-header :is(.identity,.ca-club-identity>strong){display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;line-height:1.25;letter-spacing:-.01em;font-weight:650;}
 html[data-ko-theme] .mobile-workspace .workspace-header .ca-club-identity select{width:100%;min-width:0;padding:6px 16px 6px 0;min-height:40px;font-size:14px;background-color:transparent;border:0;}
 html[data-ko-theme] .mobile-workspace .workspace-header .head-actions{display:flex;width:auto;gap:4px;flex-wrap:nowrap;justify-content:flex-end;}
 html[data-ko-theme] .mobile-workspace .workspace-header .head-actions>:not(#messages-button):not(#notifications-button):not(#card-button):not(.mobile-header-more):not(.ca-scan):not(.instructor-scan):not(.global-search-button){display:none;}
 html[data-ko-theme] .mobile-workspace .workspace-header .head-actions :is(#messages-button,#notifications-button,#card-button,.mobile-header-more){display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:0;margin:0;border:0;border-radius:12px;background:transparent;color:var(--ko-ink);}
 html[data-ko-theme] .mobile-workspace .workspace-header .unread-count{top:0;right:0;}
 html[data-ko-theme] .mobile-workspace .ca-status:empty{display:none;}
 html[data-ko-theme] .mobile-workspace .ca-dashboard-head{margin:20px 0 16px;gap:8px;}
 html[data-ko-theme] .mobile-workspace .ca-dashboard-head h1{font-size:27px;line-height:1.15;margin:0;}
 html[data-ko-theme] .mobile-workspace .ca-dashboard-head p{display:none;}
 html[data-ko-theme] .mobile-workspace .ca-date-pill{padding:0;border:0;background:transparent;font-size:12px;color:var(--ko-muted);}
 html[data-ko-theme] .mobile-workspace .ca-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 18px;}
 html[data-ko-theme] .mobile-workspace .ca-metrics>div{min-width:0;padding:12px;border:1px solid var(--ko-line);border-radius:12px;background:var(--ko-surface);}
 html[data-ko-theme] .mobile-workspace .ca-metrics span{font-size:12px;line-height:1.3;}
 html[data-ko-theme] .mobile-workspace .ca-metrics strong{font-size:25px;line-height:1.2;margin-top:5px;}
 html[data-ko-theme] .mobile-workspace .ca-metrics small{display:none;}
 html[data-ko-theme] .mobile-workspace .ca-dashboard-grid{grid-template-columns:minmax(0,1fr);gap:12px;}
 html[data-ko-theme] dialog.mobile-workspace-dialog{position:fixed;border:0;box-shadow:0 12px 45px #0003;color:var(--ko-ink);background:var(--ko-surface);translate:none;}
 html[data-ko-theme] dialog.mobile-workspace-dialog::backdrop{background:#0008;backdrop-filter:none;-webkit-backdrop-filter:none;}
 html[data-ko-theme] dialog.mobile-workspace-drawer[open]{display:block;inset:0 auto 0 0;width:min(330px,calc(100vw - 36px));max-width:none;height:100vh;height:100dvh;max-height:none;padding:0;margin:0;border-radius:0 18px 18px 0;overflow:hidden;background:var(--ko-sidebar);}
 html[data-ko-theme] .mobile-workspace-drawer>aside{position:static;display:flex;flex-direction:column;width:100%;height:100%;padding:max(16px,env(safe-area-inset-top)) 14px max(16px,env(safe-area-inset-bottom));margin:0;border:0;overflow:hidden;background:var(--ko-sidebar);}
 html[data-ko-theme] .mobile-workspace-drawer .sidebar-top{flex:none;gap:12px;padding:0 0 14px;}
 html[data-ko-theme] .mobile-workspace-drawer .brand-logo{width:145px;max-width:100%;}
 html[data-ko-theme] .mobile-workspace-drawer .mobile-drawer-close{display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;padding:0;border:0;border-radius:12px;background:transparent;color:var(--ko-ink);}
 html[data-ko-theme] .mobile-workspace .mobile-workspace-drawer #workspace-nav{display:flex;flex:1;min-height:0;flex-direction:column;gap:2px;margin:0;padding:4px 0;overflow-y:auto;overscroll-behavior:contain;}
 html[data-ko-theme] .mobile-workspace .mobile-workspace-drawer #workspace-nav button{display:flex;align-items:center;flex:none;width:100%;min-height:44px;gap:14px;margin:0;padding:10px 12px;border-radius:10px;font-size:14px;line-height:1.35;white-space:normal;text-align:left;}
 html[data-ko-theme] .mobile-workspace .mobile-workspace-drawer #workspace-nav svg{flex:none;width:21px;height:21px;}
 html[data-ko-theme] .mobile-workspace-drawer :is(.sidebar-note,.foot){display:none;}
 html[data-ko-theme] dialog.mobile-workspace-options[open]{display:block;inset:auto 0 0;width:min(100%,480px);max-width:none;height:auto;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);margin:0 auto;padding:18px 18px max(18px,env(safe-area-inset-bottom));border-radius:20px 20px 0 0;overflow-y:auto;overscroll-behavior:contain;}
 html[data-ko-theme] .mobile-options-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;}
 html[data-ko-theme] .mobile-options-heading h2{margin:0;font-size:21px;}
 html[data-ko-theme] .mobile-options-heading button{min-height:44px;}
 html[data-ko-theme] .mobile-options-list{display:grid;gap:6px;}
 html[data-ko-theme] .mobile-workspace .mobile-options-list button{min-height:48px;padding:12px 14px;text-align:left;background:var(--ko-soft);border-color:transparent;color:var(--ko-ink);font-size:14px;line-height:1.35;}
}

@media(max-width:800px){
 html[data-ko-theme] .mobile-workspace .ca-agenda .ca-empty{padding:18px 8px;min-height:0;border:0;background:transparent;}
 html[data-ko-theme] .mobile-workspace .ca-agenda .ca-empty>svg{display:none;}
 html[data-ko-theme] .mobile-workspace .ca-agenda .ca-empty h3{margin:0 0 12px;font-size:15px;}
}
@media(max-width:800px){html[data-ko-theme] .mobile-workspace .ca-agenda{min-height:0;}}

/* A photo is a bounded thumbnail, not a panoramic strip. Decorative sport
   illustrations retain the same compact footprint and an independent label. */
html[data-ko-theme] .shell .class-card .class-card-head{display:grid;grid-template-columns:112px minmax(0,1fr);gap:16px;align-items:center;margin-bottom:18px;}
html[data-ko-theme] .shell .class-card .class-card-head .class-visual{width:112px;height:84px;max-width:100%;margin:0;border-radius:12px;}
html[data-ko-theme] .class-card-head .class-visual>img{object-fit:contain;object-position:center;background:var(--ko-soft);}
html[data-ko-theme] .class-card-head .class-sport-art{padding:0;}
html[data-ko-theme] .shell .class-card .class-card-head h2{margin:0 0 5px;}
html[data-ko-theme] .shell .class-card .class-card-head .class-club{margin:0 0 7px;line-height:1.4;}
html[data-ko-theme] .class-card-head .class-sport-label{position:static;max-width:100%;padding:0;border:0;background:transparent;font-size:12px;font-weight:500;color:var(--ko-muted);}
html[data-ko-theme] .photo-custom img{object-fit:contain;background:var(--ko-soft);}
html[data-ko-theme] .club-photo-editor>img{object-fit:contain;background:var(--ko-soft);}
.ca-calendar-entry-actions{display:grid;gap:8px;}
@media(max-width:800px){
 html[data-ko-theme] .ca-mobile-calendar>.page-head{margin:16px 0 12px;}
 html[data-ko-theme] .ca-mobile-calendar>.page-head p{display:none;}
 html[data-ko-theme] .ca-mobile-calendar .ca-calendar-modes{display:flex;gap:6px;margin-top:16px;}
 html[data-ko-theme] .ca-mobile-calendar .ca-calendar-modes button{flex:1;min-width:0;min-height:44px;padding:8px;font-size:12px;line-height:1.35;}
 html[data-ko-theme] .ca-calendar-primary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:8px;}
 html[data-ko-theme] .ca-calendar-primary>.field{grid-column:1/-1;margin:0;}
 html[data-ko-theme] .ca-calendar-primary>.field input{width:100%;min-width:0;}
 html[data-ko-theme] .ca-calendar-primary>button{min-width:0;min-height:40px;padding:7px;font-size:12px;}
 html[data-ko-theme] :is(.ca-calendar-options,.ca-payment-filters,.ca-fee-summary-more){margin:8px 0 12px;border:1px solid var(--ko-line);border-radius:12px;padding:0 12px;background:var(--ko-surface);}
 html[data-ko-theme] :is(.ca-calendar-options,.ca-payment-filters,.ca-fee-summary-more)>summary{min-height:44px;padding:11px 0;font-size:13px;cursor:pointer;}
 html[data-ko-theme] .ca-calendar-options[open]{display:flex;flex-direction:column;gap:10px;padding-bottom:12px;}
 html[data-ko-theme] .ca-calendar-options[open]>*{width:100%;min-width:0;}
 html[data-ko-theme] .ca-mobile-calendar .ca-instructor-legend{display:none;}
 html[data-ko-theme] .ca-mobile-agenda{overflow:visible;border:0;border-radius:0;background:transparent;}
 html[data-ko-theme] .ca-mobile-agenda .ca-week{display:block;min-width:0!important;}
 html[data-ko-theme] .ca-mobile-day{margin-bottom:16px;}
 html[data-ko-theme] .ca-mobile-day>h2{margin:12px 0;font-size:16px;text-transform:capitalize;}
 html[data-ko-theme] .ca-mobile-day .ca-calendar-entry{min-width:0;margin:0 0 10px;padding:14px;border-radius:12px;}
 html[data-ko-theme] .ca-mobile-day .ca-calendar-entry>strong{font-size:16px;line-height:1.35;}
 html[data-ko-theme] .ca-calendar-event-options{border-top:1px solid var(--ko-line);margin-top:8px;padding-top:3px;}
 html[data-ko-theme] .ca-calendar-event-options>summary{min-height:40px;padding:9px 0;cursor:pointer;font-size:13px;}
 html[data-ko-theme] .ca-calendar-event-options button{min-height:44px;margin:0;}
 html[data-ko-theme] .ca-payments-page>.page-head{margin:16px 0;}
 html[data-ko-theme] .ca-payments-page .ca-payment-tiles{gap:8px;}
 html[data-ko-theme] .ca-payments-page button.ca-payment-tile{min-height:90px;padding:14px;gap:10px;border-radius:12px;}
 html[data-ko-theme] .ca-payments-page .ca-payment-tile-icon{width:32px;height:32px;border-radius:9px;}
 html[data-ko-theme] .ca-payments-page .ca-payment-tile-copy{gap:4px;}
 html[data-ko-theme] .ca-payments-page .ca-payment-tile-copy strong{font-size:15px;line-height:1.3;}
 html[data-ko-theme] .ca-payments-page .ca-payment-tile-copy>span{font-size:12px;line-height:1.4;}
 html[data-ko-theme] .ca-payments-page .ca-toolbar{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;}
 html[data-ko-theme] .ca-payments-page .ca-toolbar>*{width:100%;min-width:0;margin:0;}
 html[data-ko-theme] .ca-payments-page .ca-fee-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
 html[data-ko-theme] .ca-payments-page .ca-fee-totals>button{min-width:0;padding:12px;}
 html[data-ko-theme] .ca-payments-page .ca-fee-summary-more{grid-column:1/-1;margin:0 0 8px;}
 html[data-ko-theme] .ca-fee-summary-more>button{width:100%;margin:0 0 8px;}
 html[data-ko-theme] .ca-payment-table{overflow:visible;border:0;background:transparent;}
 html[data-ko-theme] .ca-payment-table .ca-table{display:block;width:100%;min-width:0;}
 html[data-ko-theme] .ca-payment-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;}
 html[data-ko-theme] .ca-payment-table tbody{display:grid;gap:12px;width:100%;}
 html[data-ko-theme] .ca-payment-table tbody tr{display:grid;min-width:0;padding:14px;border:1px solid var(--ko-line);border-radius:12px;background:var(--ko-surface);}
 html[data-ko-theme] .ca-payment-table td{display:grid;grid-template-columns:minmax(76px,.65fr) minmax(0,1.35fr);gap:10px;min-width:0;padding:8px 0;border:0;white-space:normal;overflow-wrap:anywhere;}
 html[data-ko-theme] .ca-payment-table .ca-payment-cell-label{display:block;font-size:11px;font-weight:500;color:var(--ko-muted);}
 html[data-ko-theme] .ca-payment-table td[data-label=""]{display:block;padding:10px 0 0;}
 html[data-ko-theme] .ca-payment-table td[data-label=""]>.ca-payment-cell-label{display:none;}
 html[data-ko-theme] .ca-payment-table .ca-payment-amount{font-size:18px;font-weight:700;}
 html[data-ko-theme] .ca-payment-table .ca-row-actions{display:grid;gap:8px;}
 html[data-ko-theme] .ca-payment-table .ca-row-actions button{width:100%;min-height:44px;white-space:normal;margin:0;}
}
@media(max-width:560px){
 html[data-ko-theme] .shell .class-card .class-card-head{grid-template-columns:88px minmax(0,1fr);gap:12px;}
 html[data-ko-theme] .shell .class-card .class-card-head .class-visual{width:88px;height:66px;}
 html[data-ko-theme] .shell .class-card .class-card-head h2{font-size:20px;line-height:1.25;}
 html[data-ko-theme] .shell .class-card .class-card-head .class-club{font-size:12px;}
}

html[data-ko-theme] .class-card-identity{min-width:0;overflow-wrap:anywhere;}
@media(min-width:801px){html[data-ko-theme] .ca-payment-cell-label{display:none;}}

/* A known uploaded photo has a neutral loading state. Sport art is reserved
   for genuinely missing/failed photos, preventing a default-image flash. */
html[data-ko-theme] .class-visual.photo-loading{background:var(--ko-soft);}
html[data-ko-theme] .class-visual.photo-loading:before,html[data-ko-theme] .class-visual.photo-loading:after,html[data-ko-theme] .class-visual.photo-loading .class-sport-art{visibility:hidden;}
html[data-ko-theme] .class-visual.photo-loading>img{opacity:0;}

@media(max-width:800px){
 html[data-ko-theme] .ca-payments-page .ca-dues-filters{grid-template-columns:minmax(0,1fr) auto;align-items:end;}
 html[data-ko-theme] .ca-dues-filters>button{max-width:130px;min-height:44px;padding:8px 12px;font-size:12px;white-space:normal;}
 html[data-ko-theme] .ca-payment-filters>.field{margin:0 0 12px;}
}

/* Phone content keeps every field/action available without table panning. */
.mobile-cell-label,.mobile-tab-choice{display:none;}
@media(max-width:800px){
 /* Keep WebKit's selected option inside the native control's painted box. */
 html[data-ko-theme] .platform-main :is(.platform-form,.ca-form) select{overflow:hidden;text-overflow:ellipsis;}
 html[data-ko-theme] .mobile-condensed-tabs{display:none!important;}
 html[data-ko-theme] .mobile-tab-choice{display:grid;gap:6px;margin:16px 0 20px;font-size:12px;}
 html[data-ko-theme] .mobile-tab-choice select{width:100%;min-width:0;}
 html[data-ko-theme] .mobile-data-table{overflow:visible;max-width:100%;border:0;background:transparent;}
 html[data-ko-theme] .mobile-data-table table{display:block;min-width:0;width:100%;}
 html[data-ko-theme] .mobile-data-table thead{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;}
 html[data-ko-theme] .mobile-data-table tbody{display:grid;gap:12px;}
 html[data-ko-theme] .mobile-data-table tbody tr{display:grid;min-width:0;padding:14px;border:1px solid var(--ko-line);border-radius:12px;background:var(--ko-surface);}
 html[data-ko-theme] .mobile-data-table tbody td{display:grid;grid-template-columns:minmax(70px,.65fr) minmax(0,1.35fr);gap:10px;min-width:0;max-width:none;width:auto;padding:8px 0;border:0;white-space:normal;overflow-wrap:anywhere;background:transparent;}
 html[data-ko-theme] .mobile-data-table :is(.mobile-cell-label,.ca-payment-cell-label){display:block;color:var(--ko-muted);font-size:11px;font-weight:500;}
 html[data-ko-theme] :is(.mobile-cell-value,.ca-payment-cell-value){min-width:0;}
 html[data-ko-theme] .mobile-data-table td:is(.mobile-cell-actions,.mobile-cell-empty){display:block;padding-top:10px;}
 html[data-ko-theme] .mobile-data-table .mobile-cell-actions>:is(.mobile-cell-label,.ca-payment-cell-label){display:none;}
 html[data-ko-theme] .mobile-data-table :is(.ca-row-actions,.platform-row-actions){display:grid;gap:8px;}
 html[data-ko-theme] .mobile-data-table td button{max-width:100%;min-width:0;white-space:normal;margin:4px 0;}
 html[data-ko-theme] .mobile-data-table .mobile-cell-actions button{width:100%;}
}

/* One-off makeup choices stay compact and readable on narrow screens. */
.makeup-slot{display:flex;align-items:flex-start;gap:8px;padding:8px 0;border-bottom:1px solid var(--ko-line)}
.makeup-slot>input{width:auto;min-width:0;flex:0 0 auto;margin-top:3px}
.makeup-slot>span{display:grid;gap:3px;min-width:0;overflow-wrap:anywhere}
.makeup-slot small{color:var(--ko-muted)}

/* Compact reservation status, shared by both admin calendar presentations. */
.reservation-badges{display:flex;align-items:center;flex-wrap:wrap;gap:4px;margin-top:3px;line-height:1}.reservation-badges[hidden]{display:none}.reservation-indicator{display:inline-flex;align-items:center;justify-content:center;flex:none}.reservation-indicator-paid{color:var(--ko-accent)}.reservation-ended-label{font-size:10px;line-height:1.25;font-weight:550}.ko-week-calendar .kw-event.reservation-ended,.resource-timetable .rt-event.reservation-ended{background:var(--ko-soft)!important;border-color:var(--ko-line)!important;color:var(--ko-muted)!important}.kw-event.reservation-ended strong,.rt-event.reservation-ended strong,.reservation-ended .reservation-indicator{color:var(--ko-muted)}html[data-ko-theme] .ca-agenda-link.reservation-ended{background:var(--ko-soft);color:var(--ko-muted)}.ca-agenda-link .reservation-badges{align-self:center;margin:0}.ca-agenda-link[aria-busy=true]{cursor:progress}

.kw-event-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:3px;width:100%}.kw-event-heading>.kw-event-time{min-width:0}.kw-event-heading .reservation-badges{margin:0;max-width:55%;flex-shrink:0;justify-content:flex-end}.kw-event-heading .reservation-indicator svg{width:13px;height:13px}

.rt-event-heading{display:flex;align-items:flex-start;gap:3px;justify-content:space-between;min-width:0;width:100%}.rt-event-heading>.rt-event-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rt-event-heading>.reservation-badges{flex:none;margin:0;max-width:50%;justify-content:flex-end}.rt-event-heading .reservation-indicator svg{width:14px;height:14px}.reservation-legend{display:flex;flex-wrap:wrap;gap:6px 14px}.reservation-legend>span{display:inline-flex;align-items:center;gap:4px}

@media(max-width:480px){.resource-pricing .rp-day-picker{grid-template-columns:repeat(3,minmax(0,1fr))}}
.rental-after-sunset{outline:1px solid var(--accent);outline-offset:3px;border-radius:6px}.rental-extra small{font-size:12px;line-height:1.4}.rental-light-hours .rental-extra{margin:12px 0}

/* Public presentation is secondary to the existing sign-in form. */
.entry-learn{margin-left:auto;white-space:nowrap;color:var(--ko-ink,#252522);font-size:13px;font-weight:650;text-decoration:none;padding:9px 12px;border:1px solid var(--ko-line,#d8d6d0);border-radius:999px}.entry-learn:hover,.entry-learn-footer:hover{color:var(--ko-accent,#b6441b);text-decoration:underline}.entry-learn-footer{color:inherit;text-underline-offset:4px}.entry-register{margin-left:0}
@media(max-width:720px){html[data-ko-theme] .entry-header{display:grid;grid-template-columns:minmax(0,1fr) auto 40px;gap:10px}.entry-header .entry-brand{grid-column:1;grid-row:1}html[data-ko-theme] .entry-header .entry-brand .brand-logo{width:clamp(112px,35vw,145px)}.entry-header .entry-learn{grid-column:1/-1;grid-row:2;justify-self:start;margin-left:0;font-size:12px;padding:7px 10px}.entry-header .entry-register{grid-column:2;grid-row:1;margin-left:0;width:auto}.entry-header .ko-theme-toggle{grid-column:3;grid-row:1}html[data-ko-theme] .entry-content .entry-story{grid-row:1}html[data-ko-theme] .entry-content .entry-form-panel{grid-row:2}.entry-footer{gap:12px;flex-wrap:wrap}}

.club-trial-notice{margin:0 0 20px;padding:18px 20px;border:1px solid var(--ko-line,#d8d6d0);border-left:4px solid var(--ko-accent,#b6441b);border-radius:12px;background:var(--ko-surface,#fff)}.club-trial-notice h3{font-size:17px;margin:0 0 12px}.club-trial-notice p{font-size:14px;line-height:1.6;margin:8px 0}.club-trial-notice .club-trial-date{font-weight:650}.club-trial-notice button{margin-top:10px}.club-trial-confirm{max-width:520px;width:calc(100% - 32px);border:1px solid var(--ko-line,#d8d6d0);border-radius:18px;padding:24px;background:var(--ko-surface,#fff);color:var(--ko-ink,#252820)}.club-trial-confirm p{line-height:1.65}.club-trial-confirm::backdrop{background:#0006}

/* Only supplementary participant controls collapse on phones. Existing type,
   buttons and spacing tokens remain unchanged. Desktop uses the same nodes. */
.participant-disclosure-toggle{display:none!important}.participant-makeup-shortcut p{margin:0 0 8px}.participant-makeup-shortcut button{margin:0}.participant-makeup-history>summary{cursor:pointer;margin:12px 0;color:var(--ko-ink)}
@media(max-width:800px){
 .participant-disclosure-toggle{display:flex!important;align-items:center;justify-content:space-between;gap:8px;width:100%;text-align:left;white-space:normal}
 .participant-disclosure-toggle:after{content:'+';flex:none}.participant-disclosure.is-expanded>.participant-disclosure-toggle:after{content:'−'}
 .participant-disclosure:not(.is-expanded)>.participant-disclosure-content{display:none}
 .participant-disclosure{min-width:0;margin:8px 0}.participant-disclosure-content{min-width:0}
 .participant-disclosure .ca-toolbar{display:flex;flex-wrap:wrap;gap:8px}.participant-disclosure .ca-toolbar>.field{flex-basis:100%}
 .participant-disclosure .payment-tabs{margin:8px 0}.participant-disclosure .kw-person-legend{margin:8px 0}
 .participant-makeup-shortcut{margin:10px 0}.participant-makeup-shortcut p{overflow-wrap:anywhere}
 .trial-selected-person{overflow-wrap:anywhere;font-weight:600;margin:8px 0}
 .participant-form-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
 .participant-form-actions>button{margin:0}.participant-makeup-confirm{position:sticky;bottom:0;background:var(--ko-surface);padding:8px 0 max(8px,env(safe-area-inset-bottom))}
 .participant-makeup-confirm>button{width:100%;margin:0}.participant-makeup-confirm>p{margin:4px 0;overflow-wrap:anywhere}
}

/* Existing participant dialogs inherit theme contrast instead of fixed orange. */
html[data-ko-theme] .ca-dialog .booking-amount{color:var(--ko-accent)}
html[data-ko-theme] .ca-dialog form>button[type=submit],html[data-ko-theme] .participant-makeup-confirm>button{background:var(--ko-ink);border-color:var(--ko-ink);color:var(--ko-bg)}

/* Keep paged cards separated; native Safari sheets use the visible viewport. */
.account-page-items{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;min-width:0}
.account-page-items>*{min-width:0}
@media(max-width:800px){
 html[data-ko-theme] .shell>main{width:auto;max-width:100%;min-width:0;box-sizing:border-box}
 html[data-ko-theme] .shell #page{min-width:0;max-width:100%}
 html[data-ko-theme] dialog.ko-motion-dialog:not(.discovery-map-dialog){box-sizing:border-box;min-width:0;width:calc(var(--ko-visible-width,100%) - 16px)!important;max-width:calc(var(--ko-visible-width,100%) - 16px)!important;left:calc(var(--ko-visible-left,0px) + 8px);right:auto;top:calc(var(--ko-visible-top,0px) + min(var(--ko-visible-height,100dvh),100svh) - max(8px,env(safe-area-inset-bottom)));bottom:auto;transform:translateY(-100%);margin:0;max-height:calc(min(var(--ko-visible-height,100dvh),100svh) - 24px);overflow-x:hidden;overflow-y:auto;overflow-wrap:anywhere}
 html[data-ko-theme] dialog.mobile-workspace-options[open]{box-sizing:border-box;min-width:0;width:var(--ko-visible-width,100%);max-width:var(--ko-visible-width,100%);left:var(--ko-visible-left,0px);right:auto;top:calc(var(--ko-visible-top,0px) + min(var(--ko-visible-height,100dvh),100svh) - max(8px,env(safe-area-inset-bottom)));bottom:auto;transform:translateY(-100%);margin:0;max-height:calc(min(var(--ko-visible-height,100dvh),100svh) - 24px);padding-bottom:max(18px,env(safe-area-inset-bottom));overflow-x:hidden;overflow-y:auto}
}

/* One visible dismiss control, with an SVG centered independently of font metrics. */
html[data-ko-theme] dialog .ko-original-close,html[data-ko-theme] dialog .ko-empty-dialog-actions{display:none!important}
html[data-ko-theme] dialog .ko-dialog-close{box-sizing:border-box;min-width:34px;padding:0!important;margin:0!important;line-height:1;align-items:center;justify-items:center}
html[data-ko-theme] dialog .ko-dialog-close>svg{display:block;width:18px;height:18px;pointer-events:none;margin:0}

@media(pointer:coarse){html[data-ko-theme] dialog .ko-dialog-close{width:44px;height:44px;min-width:44px;min-height:44px}}

html[data-ko-theme] .workspace-footer .ko-tips-open{display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px;background:transparent;color:var(--ko-muted);border:0;padding:8px 0;font:inherit;font-size:13px;text-decoration:underline;text-underline-offset:3px;box-shadow:none;cursor:pointer;text-align:left}html[data-ko-theme] .ko-tips-new{font-size:10px;line-height:1.4;font-weight:650;padding:3px 7px;border-radius:4px;background:var(--ko-soft);color:var(--ko-ink);text-decoration:none}
html[data-ko-theme] .ko-tips-dialog{width:520px;max-width:calc(100% - 32px)}html[data-ko-theme] .ko-tips-dialog h2{font-size:24px;line-height:1.2;margin:8px 32px 20px 0}html[data-ko-theme] .ko-tips-content>p{font-size:14px;line-height:1.65;margin:18px 0}html[data-ko-theme] .ko-tips-content>.ko-tips-hint{font-size:12px;color:var(--ko-muted)}html[data-ko-theme] .ko-tips-visual{padding:16px;background:var(--ko-soft);border-radius:8px;border:1px solid var(--ko-line);display:grid;gap:8px}html[data-ko-theme] .ko-tips-visual-label{font-size:11px;font-weight:650;letter-spacing:.02em;color:var(--ko-muted);margin-bottom:4px}html[data-ko-theme] .ko-tips-visual>div{display:grid;grid-template-columns:44px 1fr;gap:12px;padding:10px 12px;background:var(--ko-surface);border-left:3px solid var(--ko-accent);border-radius:4px;font-size:12px;line-height:1.4}html[data-ko-theme] .ko-tips-visual>div>span{font-size:11px;color:var(--ko-muted)}html[data-ko-theme] .ko-tips-visual>div:nth-child(3){border-left-color:var(--ko-muted)}html[data-ko-theme] .ko-tips-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:20px;margin-top:20px;border-top:1px solid var(--ko-line)}html[data-ko-theme] .ko-tips-controls>p{margin:0;white-space:nowrap}html[data-ko-theme] .ko-tips-controls>button,html[data-ko-theme] .ko-tips-action{font-size:13px;min-height:40px}html[data-ko-theme] .ko-tips-action[hidden]{display:none!important}@media(max-width:600px){html[data-ko-theme] .ko-tips-dialog h2{font-size:22px}html[data-ko-theme] .ko-tips-controls{gap:8px}html[data-ko-theme] .ko-tips-visual{padding:12px}}

/* Account tasks reuse compact controls; the card stays one tap away. */
html[data-ko-theme] .participant-card-button{display:inline-flex;align-items:center;gap:5px;font-size:12px;}
html[data-ko-theme] .account-subtabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px;}
html[data-ko-theme] .account-subtabs [aria-current=page]{color:var(--ko-accent);border-color:currentColor;}
html[data-ko-theme] .card-phone-wallet{margin-top:16px;}
html[data-ko-theme] .family-settings-details{border-top:1px solid var(--ko-line);padding-block:12px;}
html[data-ko-theme] .family-settings-details>summary{font-weight:650;cursor:pointer;}
html[data-ko-theme] .family-settings-details>section{border:0;margin:0;padding:12px 0 0;}
@media(max-width:800px){html[data-ko-theme] .mobile-workspace .workspace-header #card-button{flex-direction:column;gap:0;font-size:10px;line-height:1.1;}html[data-ko-theme] .mobile-workspace .workspace-header .head-actions{gap:0;}html[data-ko-theme] .mobile-workspace .workspace-header{column-gap:4px;}}

/* Bell opens a compact, scrollable panel within the visible Safari viewport. */
html[data-ko-theme] dialog.notification-panel{width:min(420px,calc(100% - 24px));max-height:var(--ko-dialog-max-height,calc(100dvh - 32px));}
html[data-ko-theme] .notification-panel-content{display:grid;gap:12px;min-width:0;}
html[data-ko-theme] .notification-panel .notification-card{margin:0;padding:14px;}
html[data-ko-theme] .notification-panel .notification-card h2{font-size:1rem;margin-block:8px;}
html[data-ko-theme] .notification-panel .notification-card p{overflow-wrap:anywhere;}

html[data-ko-theme] .searchable-select{position:relative;min-width:0;}
html[data-ko-theme] .searchable-select-trigger{width:100%;min-height:44px;text-align:left;justify-content:space-between;font-weight:400;padding:10px 34px 10px 12px;border-radius:6px;background:var(--ko-surface);border:1px solid var(--ko-line);}
html[data-ko-theme] .searchable-select-trigger::after{content:'⌄';position:absolute;right:12px;}
html[data-ko-theme] .searchable-select-popup{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:35;padding:8px;border:1px solid var(--ko-line);border-radius:10px;background:var(--ko-surface);box-shadow:var(--ko-shadow);}
html[data-ko-theme] .searchable-select-popup[hidden]{display:none;}
html[data-ko-theme] .searchable-select-popup input{width:100%;min-width:0;}
html[data-ko-theme] .searchable-select-options{max-height:min(240px,35dvh);overflow-y:auto;overscroll-behavior:contain;margin-top:6px;}
html[data-ko-theme] .searchable-select-options button{display:block;width:100%;text-align:left;border:0;border-radius:6px;min-height:40px;padding:8px;background:transparent;color:var(--ko-ink);font-weight:400;}
html[data-ko-theme] .searchable-select-options button:is(.is-highlighted,[aria-selected=true]){background:var(--ko-tint);}
html[data-ko-theme] .searchable-select-status:empty{display:none;}

/* Keep workspace menus compact and aligned across participant, club and staff roles. */
html[data-ko-theme] .shell:not(.mobile-workspace) :is(.mobile-header-more,.mobile-drawer-close){display:none;}
html[data-ko-theme] .workspace-nav-group{display:flex;flex-direction:column;gap:2px;flex:none;}
html[data-ko-theme] .workspace-nav-label{margin:8px 12px 3px;font-size:10px;line-height:1.3;letter-spacing:.04em;text-transform:uppercase;color:var(--ko-sidebar-muted,var(--ko-muted));}
html[data-ko-theme] .workspace-nav-group:first-child .workspace-nav-label{margin-top:0;}
html[data-ko-theme] dialog.mobile-platform-drawer[open]{display:flex;flex-direction:column;inset:0 auto 0 0;width:min(330px,calc(100vw - 36px));max-width:none;height:var(--ko-visible-height,100dvh);max-height:var(--ko-visible-height,100dvh);margin:0;padding:16px 12px calc(16px + env(safe-area-inset-bottom));border-radius:0 18px 18px 0;overflow:hidden;background:var(--ko-surface);}
html[data-ko-theme] .mobile-platform-drawer .mobile-options-heading{flex:none;}
html[data-ko-theme] .mobile-platform-drawer .platform-nav{display:block;position:static;width:100%;height:auto;flex:1;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;padding:8px 0;border:0;}
html[data-ko-theme] .mobile-platform-drawer .platform-nav-group{margin-bottom:12px;}
html[data-ko-theme] .mobile-platform-drawer .platform-nav-group>p{margin-block:8px 4px;}
@media(max-width:800px){html[data-ko-theme] .mobile-workspace .workspace-header .head-actions>:not(#messages-button):not(#notifications-button):not(#card-button):not(.mobile-header-more):not(.ca-scan):not(.instructor-scan):not(.global-search-button){display:none;}
html[data-ko-theme] .mobile-workspace .workspace-header .head-actions :is(.ca-scan,.instructor-scan):not([hidden]){display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;min-height:44px;padding:0;margin:0;border:0;border-radius:12px;background:transparent;color:var(--ko-ink);}
html[data-ko-theme] .mobile-workspace .workspace-header .head-actions :is(.ca-scan,.instructor-scan)>span{display:none;}
html[data-ko-theme] .mobile-workspace .workspace-header .head-actions :is(.ca-scan,.instructor-scan)>svg{width:21px;height:21px;}}

@media(max-width:800px){html[data-ko-theme] dialog:is(.mobile-workspace-drawer,.mobile-platform-drawer)[open]{inset:var(--ko-visible-top,0px) auto auto var(--ko-visible-left,0px);width:min(330px,calc(var(--ko-visible-width,100vw) - 36px));height:var(--ko-visible-height,100dvh);max-height:var(--ko-visible-height,100dvh);}}
/* Reservation conversations keep the existing compact control sizes. */
.reservation-conversation{margin-block:16px;min-width:0;border-block:1px solid var(--ko-line);padding-block:12px}
.reservation-conversation>summary{font-weight:650;cursor:pointer}
.reservation-conversation-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.reservation-conversation-list{max-height:320px;overflow-y:auto;overscroll-behavior:contain;min-width:0;margin-block:10px}
.reservation-message{border:1px solid var(--ko-line);border-radius:10px;padding:10px 12px;margin-block:8px;min-width:0;background:var(--ko-surface)}
.reservation-message-meta{display:flex;gap:6px 12px;justify-content:space-between;align-items:baseline;flex-wrap:wrap}
.reservation-message-meta>strong{font-size:13px;overflow-wrap:anywhere}
.reservation-message p{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0 0}
.reservation-message-legacy{background:var(--ko-soft)}
.reservation-conversation form{min-width:0;display:grid;gap:8px}
.reservation-conversation .field{margin:0;min-width:0}
.reservation-conversation textarea{display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;resize:vertical;border:1px solid var(--ko-line);border-radius:6px;padding:10px;background:var(--ko-surface);color:var(--ko-ink);font:inherit}
.reservation-conversation form>button{justify-self:start}
.reservation-conversation .form-message{margin:0}
.reservation-indicator-message,.reservation-indicator-internal{color:var(--ko-accent);background:var(--ko-soft)}
@media(max-width:600px){.reservation-conversation textarea{font-size:16px}.reservation-conversation-list{max-height:260px}}

.reservation-conversation-dialog .reservation-conversation>summary{display:none}

/* Inactive resources stay editable and read as unavailable in both themes. */
.club-admin-shell .ca-resource-card.is-inactive{background:var(--ko-soft);border-style:dashed;box-shadow:none}
.club-admin-shell .ca-resource-card.is-inactive .ca-resource-symbol{background:var(--ko-bg);color:var(--ko-muted);filter:grayscale(1)}
.club-admin-shell .ca-resource-card.is-inactive .ca-chip-inactive{background:var(--ko-bg);color:var(--ko-ink);border:1px solid var(--ko-input);font-weight:650}

.club-admin-shell .ca-resource-card.is-unpublished{border-style:dashed;box-shadow:none}
.club-admin-shell .ca-resource-card.is-unpublished .ca-resource-symbol{background:var(--ko-soft);color:var(--ko-muted)}
.club-admin-shell .ca-chip-unpublished{background:var(--ko-soft);color:var(--ko-ink);font-weight:650}

.platform-tasks-button{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.platform-tasks-badge{display:inline-flex;align-items:center;justify-content:center;min-width:22px;padding:1px 6px;border-radius:999px;background:var(--ko-accent);color:var(--ko-on-strong);font-size:.75rem;font-weight:700;line-height:1.5}
.platform-tasks-badge[hidden]{display:none}
.platform-nav [data-tab=tasks]{display:flex;align-items:center;gap:8px}
.platform-tasks-button.has-pending{border-color:var(--ko-accent)}
.platform-pending-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-block:20px}
.platform-pending-summary h2{margin-bottom:8px}
.platform-pending-summary p{margin-block:8px 0}
.platform-request-list{display:grid;gap:16px;margin-top:16px}
.platform-request-list>.card{margin:0}
@media(max-width:560px){.platform-pending-summary{align-items:stretch;flex-direction:column}.platform-header .platform-tasks-button{padding:8px 12px;min-height:42px}.platform-header .platform-person{display:none}}

/* Instructor workspace: compact task lists within the existing visual scale. */
.instructor-section{max-width:1200px;min-width:0}.instructor-section>h1,.instructor-section>.page-head h1{font-size:clamp(26px,3vw,34px);line-height:1.15;letter-spacing:-.035em;margin:0 0 10px}.instructor-section>.page-head{margin:0 0 22px}.instructor-section>.small,.instructor-section>.page-head p{max-width:72ch}.instructor-section .form-message:empty{display:none}.instructor-group-filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:20px 0}.instructor-group-filters .field{flex:1 1 200px;margin:0}.instructor-group-list{display:flex;flex-direction:column;gap:12px}.instructor-group-row{display:flex;align-items:center;justify-content:space-between;gap:20px;min-width:0;border:1px solid var(--ko-line);border-radius:var(--ko-radius);background:var(--ko-surface);padding:16px 18px}.instructor-group-info{min-width:0}.instructor-group-info h2{font-size:18px;line-height:1.3;margin:0 0 6px;overflow-wrap:anywhere}.instructor-group-info p{margin:4px 0}.instructor-group-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;max-width:55%}.instructor-group-actions .form-message{flex-basis:100%;margin:0}.instructor-group-actions .form-message:empty{display:none}.instructor-section :is(.ca-actions,.ca-row-actions){gap:8px;flex-wrap:wrap}.instructor-shell .instructor-account.selected{background:var(--ko-soft);border-color:var(--ko-ink)}
@media(max-width:650px){.instructor-group-row{align-items:stretch;flex-direction:column;gap:12px;padding:16px}.instructor-group-actions{max-width:none;justify-content:flex-start}.instructor-group-actions button{flex:1 1 150px}.instructor-group-filters{gap:10px}.instructor-group-filters>button{min-width:88px}.instructor-section{width:100%}}

.reservation-activity{border-block:1px solid var(--ko-line);padding-block:12px;margin-block:16px;min-width:0}.reservation-activity>summary{font-weight:650;cursor:pointer}.reservation-activity-list{list-style:none;padding:0;margin:12px 0;display:grid;gap:0}.reservation-activity-list>li{border-bottom:1px solid var(--ko-line);padding:12px 0;overflow-wrap:anywhere}.reservation-activity-list p{margin:4px 0}.reservation-activity-list time{color:var(--ko-muted)}.reservation-activity .form-message:empty{display:none}.notification-open-title{font:inherit;font-weight:inherit;text-align:left;white-space:normal;padding:0;min-height:0}.reservation-conversation form>.secondary{justify-self:start}

html[data-ko-theme] .instructor-group-filters [hidden]{display:none}.instructor-section .ca-status:empty{display:none}.instructor-section .page-head>p{margin-block:0 12px}.instructor-section .ca-toolbar{gap:8px;margin-block:16px;padding-block:0;border:0}.instructor-section .teaching-lessons{display:grid;gap:12px}.instructor-section .teaching-lesson{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 18px;margin:0;box-shadow:none}.instructor-section .teaching-lesson-info{min-width:0}.instructor-section .teaching-lesson-info h2{font-size:18px;margin:8px 0;overflow-wrap:anywhere}.instructor-section .teaching-lesson-info p{margin:5px 0}.instructor-section .teaching-lesson-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;max-width:50%}.instructor-section .work-overview{gap:16px;border:0;padding:0;margin-block:16px 24px}.instructor-section :is(.work-active,.work-earnings){padding:18px}.instructor-section .work-active h2{font-size:20px}.instructor-section .work-earnings-total{font-size:36px}.instructor-section .work-filter{padding:0;border:0;margin-bottom:16px}.instructor-section .work-entry{padding:16px;gap:16px}.instructor-section .work-entry h3{font-size:18px}.instructor-section .work-content h2{font-size:20px}
@media(max-width:650px){.instructor-section .teaching-lesson{align-items:stretch;flex-direction:column;gap:12px;padding:16px}.instructor-section .teaching-lesson-actions{max-width:none;justify-content:flex-start}.instructor-section .teaching-lesson-actions button{flex:1 1 150px}.instructor-section .work-overview{gap:12px}.instructor-section :is(.work-active,.work-earnings){padding:16px}}

@media(max-width:650px){.instructor-shell.mobile-workspace .ca-club-identity strong{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}

/* Original daily overview: compact chronological rows without a nested scroller. */
html[data-ko-theme] .ca-agenda{min-height:0}.ca-agenda .ca-agenda-row{padding:12px 0;gap:12px;align-items:flex-start}.ca-agenda-heading{display:flex;align-items:center;gap:6px 8px;flex-wrap:wrap}.ca-agenda-meta{display:block;margin-top:4px}.ca-agenda .ca-agenda-end{flex:none;padding-top:2px}.ca-agenda .reservation-badges{display:inline-flex}.today-agenda-list{min-width:0}.today-agenda-more{margin:12px 0}.ca-agenda .today-agenda-list>.ca-agenda-row:last-of-type{margin-bottom:0}

/* One total for the complete outstanding scope, before its component lists. */
html[data-ko-theme] .ca-payments-page .ca-fee-totals.ca-outstanding-total{grid-template-columns:minmax(0,170px);}
html[data-ko-theme] .ca-outstanding-total>div{display:block;padding:16px;border:1px solid var(--ko-line);border-radius:12px;background:var(--ko-surface);}
