/* =============================================================================
   CLIENT APP KIT (real app, from the approved mockup docs/mockups/2026-10-06/client-kit.css)
   The parts every client screen is built from. Loaded by _portal_shell.html for every
   portal page: style.css -> portal-dark.css -> client-kit.css.
   Every kit class starts with "ck-", so pages not redesigned yet are not touched.
   A redesigned page sets {% block body_class %}ck-page{% endblock %} (turns on the
   container queries below) and puts its sheets in {% block sheets %} (outside <main>).

   House rules baked in:
     one control height 44 px (buttons, fields, selects, segments, tabs, X)
     one red filled button per screen (.ck-btn.go), everything else outline
     type: Aileron 12 / 14 / 16 (weights 400 / 600 / 700), Anton 18 (section) / 26 (page, sheet, numbers) / 40 (avatar letter)
     hover only for a mouse (@media (hover:hover)), so phones never keep a stuck hover
     white 2 px focus ring on keyboard focus, no motion when reduced motion is on
   ============================================================================= */


/* ---- 0. Tokens: the gym dark colours + page tokens (same values as home / services) ---- */
:root.gym{
  --page:#1a1e25; --card:#242932; --raised:#2e343e; --line:#2c323c; --line-2:#3a414c; --line-3:#59616e;
  --ink:#f4f5f7; --steel:#959cab; --chip:rgba(149,156,171,.18); --chip-ink:#c9ced8;
  --sheet:#1f242c; --field:#111418; --hover:rgba(255,255,255,.06); --tile-hover:#2a303a;
  --red-btn:#d81920; --red-hover:#c5161c; --red-text:#ff6b70; --danger-line:#5a2a2e;
  --green:#3fc173; --amber:#f7a440; --insta:#8a5cf6; --star-off:#5b6372;
  --ctl-h:44px; --row-h:56px; --r-ctl:12px; --r-card:14px; --r-sheet:22px;
  --font-display:"Anton","Arial Narrow",sans-serif; --font-body:"Aileron","Helvetica Neue",Arial,sans-serif;
}
[hidden]{display:none!important}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* desktop: .portal-main is up to 720 px; parts that go 2 columns use container queries on it
   (only on redesigned pages: a size container would also catch fixed pop-ups of older pages) */
.ck-page .portal-main{container-type:inline-size}


/* ---- 1. Top bar: the app's own .app-bar (Back, logo, right slot). Markup as _portal_shell.html.
        Optional action: a .ck-act icon button in the right .app-side (44 px, round, needs aria-label). ---- */
.ck-act{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex:none;padding:0;border:0;border-radius:50%;
  background:var(--raised);color:#fff;cursor:pointer;text-decoration:none}
.ck-act svg{width:20px;height:20px}


/* ---- 2. Page head: Anton 26 title, optional action on the right (a .ck-btn or .ck-act) ---- */
.ck-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;margin:0 0 16px}
.ck-title{flex:1;min-width:0;margin:0;font-family:var(--font-display);font-weight:400;font-size:26px;line-height:1.1;letter-spacing:.02em;
  text-transform:uppercase;color:#fff;overflow-wrap:anywhere}


/* ---- 3. Section head: Anton 18 + optional "See all" link on the right (44 px tap area) ---- */
.ck-sec{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;margin:24px 0 8px}
.ck-sec h2{margin:0;font-family:var(--font-display);font-weight:400;font-size:18px;letter-spacing:.03em;line-height:1;text-transform:uppercase;color:#fff}
.ck-sec a,.ck-sec .ck-more{display:inline-flex;align-items:center;justify-content:flex-end;min-height:44px;min-width:44px;padding:0 4px;border:0;background:none;
  font:600 14px var(--font-body);color:var(--steel);text-decoration:none;cursor:pointer}
.ck-sec:first-child{margin-top:0}


/* ---- 4. Card: dark card, 14 px corners, 1 px line. .stripe adds a 4 px colour bar (set --c).
        .ck-stack spaces cards / blocks 12 px apart. ---- */
.ck-stack{display:flex;flex-direction:column;gap:12px}
.ck-card{position:relative;background:var(--card);border-radius:var(--r-card);box-shadow:0 0 0 1px var(--line);padding:16px;overflow:hidden}
.ck-card.stripe{padding-left:20px}
.ck-card.stripe::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--c,var(--line-2))}
.ck-card.wait{--c:var(--amber)}
.ck-card.ok{--c:var(--green)}
.ck-card.err{--c:var(--red-text)}
/* notice inside a striped card: icon + bold line + short grey line (e.g. "Waiting for OK") */
.ck-note{display:flex;align-items:flex-start;gap:12px}
.ck-note>svg{width:22px;height:22px;flex:none;margin-top:1px;fill:none;stroke:var(--c,var(--steel));stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ck-note b{display:block;font-size:16px;font-weight:700;color:#fff}
.ck-note span{display:block;margin-top:2px;font-size:14px;color:var(--steel)}


/* ---- 5. List rows: 56 px, whole row is the link/button, chevron at the end, optional stripe (--c).
        <a class="ck-row"> <span class="ck-ic">svg</span> <span class="ck-row-b"><b>Title</b><span>Meta</span></span>
        <span class="ck-row-end">value</span> <svg class="ck-chev">  </a> ---- */
.ck-list{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none}
.ck-row{position:relative;display:flex;align-items:center;gap:12px;width:100%;min-height:var(--row-h);padding:8px 12px 8px 16px;box-sizing:border-box;
  background:var(--card);border:0;border-radius:var(--r-ctl);box-shadow:0 0 0 1px var(--line);color:var(--ink);font:inherit;text-align:left;
  text-decoration:none;overflow:hidden}
a.ck-row,button.ck-row{cursor:pointer}
.ck-row.stripe::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--c,var(--line-2))}
.ck-ic{width:40px;height:40px;flex:none;border-radius:10px;background:var(--raised);display:flex;align-items:center;justify-content:center;color:var(--chip-ink)}
.ck-ic svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ck-row-b{flex:1;min-width:0}
.ck-row-b b{display:block;font-size:16px;font-weight:700;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ck-row-b span{display:block;font-size:14px;color:var(--steel);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ck-row-end{flex:none;font-size:14px;font-weight:600;color:var(--steel)}
.ck-chev{width:20px;height:20px;flex:none;color:var(--steel);fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}


/* ---- 6. Key-value rows (read-only details): label left in grey, value right in white, hairline between ---- */
.ck-kv{display:grid;grid-template-columns:auto 1fr;margin:0}
.ck-kv dt,.ck-kv dd{padding:12px 0;border-top:1px solid var(--line);min-height:20px}
.ck-kv dt{font-size:14px;font-weight:600;color:var(--steel)}
.ck-kv dd{margin:0;padding-left:16px;text-align:right;font-size:16px;font-weight:600;color:#fff;overflow-wrap:anywhere}
.ck-kv dt:first-of-type,.ck-kv dt:first-of-type+dd{border-top:0;padding-top:0}


/* ---- 7. Form fields: label 14 / 600 above, control 44 px, error line under. No help sentences.
        <div class="ck-field [bad]"><div class="ck-lbl-row"><label for=x>Email</label>[badge]</div>
        <input class="ck-in" id=x aria-describedby="x-err"><p class="ck-err" id="x-err">Required</p></div>
        .ck-grid2 puts 2 fields side by side (names); .ck-grid2.lg only from 600 px wide. ---- */
.ck-form{display:flex;flex-direction:column;gap:16px;margin:0}
.ck-grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ck-grid2.lg{grid-template-columns:1fr}
@container (min-width:600px){.ck-grid2.lg{grid-template-columns:1fr 1fr}}
.ck-field{display:flex;flex-direction:column;gap:8px;min-width:0}
.ck-lbl-row{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:24px}
.ck-field>label:not(.ck-drop,.ck-btn,.ck-switch),.ck-lbl-row>label,.ck-lbl{display:block;margin:0;font-size:14px;font-weight:600;color:#fff}
/* the selector mirrors portal-dark.css ".gym input:not(...)" so the kit wins without !important */
.gym input.ck-in:not([type=checkbox]):not([type=radio]):not([type=range]),.gym select.ck-in,.gym textarea.ck-in{
  display:block;width:100%;height:var(--ctl-h);margin:0;padding:0 12px;box-sizing:border-box;border-radius:var(--r-ctl);
  border:1.5px solid var(--line-2);background:var(--field);color:#fff;font:16px var(--font-body);color-scheme:dark}
.gym textarea.ck-in{height:auto;min-height:88px;padding:12px;resize:vertical;line-height:1.4}
.gym input.ck-in[type=date]:not([type=checkbox]):not([type=radio]):not([type=range]){-webkit-appearance:none;appearance:none;line-height:40px}
.gym input.ck-in::-webkit-date-and-time-value{text-align:left}
.gym .ck-in::placeholder{color:var(--steel);opacity:1}
/* states use the same selector chain as the base rule, or the base rule would win */
.gym input.ck-in:not([type=checkbox]):not([type=radio]):not([type=range]):focus,.gym select.ck-in:focus,.gym textarea.ck-in:focus{border-color:#fff;outline:none}
.gym input.ck-in:not([type=checkbox]):not([type=radio]):not([type=range]):focus-visible,.gym select.ck-in:focus-visible,.gym textarea.ck-in:focus-visible{outline:2px solid #fff;outline-offset:1px}
.gym input.ck-in:not([type=checkbox]):not([type=radio]):not([type=range]):disabled,.gym select.ck-in:disabled,.gym textarea.ck-in:disabled{opacity:.5;cursor:not-allowed}
.gym .ck-field.bad input.ck-in:not([type=checkbox]):not([type=radio]):not([type=range]),.gym .ck-field.bad select.ck-in,.gym .ck-field.bad textarea.ck-in{border-color:var(--red-text)}
.ck-err{display:none;margin:0;font-size:14px;font-weight:600;color:var(--red-text)}
.ck-field.bad .ck-err{display:block}


/* ---- 8. Searchable dropdown: a real <select class="ck-in" data-search> inside .ck-sel. The app's
        select-search.js (loaded by _portal_shell.html) turns it into a search box + list. Long lists
        (people, exercises): use a search input + .ck-list rows instead. ---- */
.ck-sel{position:relative;display:block}
.gym .ck-sel select.ck-in{padding-right:40px;-webkit-appearance:none;appearance:none;font-weight:600;font-size:16px;cursor:pointer}
.ck-sel::after{content:"";position:absolute;right:16px;top:50%;width:8px;height:8px;margin-top:-6px;border-right:2px solid var(--steel);
  border-bottom:2px solid var(--steel);transform:rotate(45deg);pointer-events:none}
/* the list select-search.js opens: dark sheet colours, 44 px search box and rows, 16 px text
   (the script sets background / border inline, hence !important on those two) */
.gym .ss-panel{background:var(--sheet)!important;border:1.5px solid var(--line-2)!important;border-radius:var(--r-ctl);color:#fff;box-shadow:0 10px 30px rgba(0,0,0,.5)}
.gym .ss-panel input:not([type=checkbox]):not([type=radio]):not([type=range]){height:44px;padding:0 12px;border:0;border-bottom:1px solid var(--line-2);border-radius:0;background:transparent;color:#fff;font:16px var(--font-body)}
.gym .ss-opt{min-height:44px;box-sizing:border-box;padding:0 12px;font-size:16px}
.gym .ss-opt.ss-act{background:var(--raised)}
.gym .ss-grp{font-size:12px}
.gym .ss-none{font-size:14px;color:var(--steel);opacity:1}


/* ---- 9. Segmented control (2 to 3 choices, e.g. pay method): outer box 44 px, picked = raised.
        <div class="ck-seg" role="group" aria-label="..."><button aria-pressed="true">A</button>...</div> ---- */
.ck-seg,.ck-tabs{display:flex;gap:4px;height:var(--ctl-h);padding:3px;box-sizing:border-box;background:var(--field);border-radius:var(--r-ctl);border:1.5px solid var(--line-2)}
.ck-seg button,.ck-tabs button{flex:1;min-width:0;height:100%;padding:0 8px;border:0;border-radius:9px;background:none;color:var(--steel);
  font:600 14px var(--font-body);cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ck-seg button[aria-pressed=true],.ck-tabs button[aria-selected=true]{background:var(--raised);color:#fff}
/* page tabs use the same look with role=tablist / tab (arrow keys in client-kit.js) */
.ck-tabs{margin:0 0 16px}


/* ---- 10. Switch: a real checkbox with role=switch, whole 44 px row is the label.
        <label class="ck-switch"><span>Reminders</span><input type="checkbox" role="switch"></label> ---- */
.ck-switch{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:var(--ctl-h);margin:0;font-size:16px;font-weight:600;color:#fff;cursor:pointer}
.ck-switch input{-webkit-appearance:none;appearance:none;position:relative;flex:none;width:44px;height:26px;margin:0;padding:0;border:0;border-radius:999px;
  background:var(--line-2);cursor:pointer}
.ck-switch input::before{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:transform .15s}
.ck-switch input:checked{background:var(--green)}
.ck-switch input:checked::before{transform:translateX(18px)}
.ck-switch input:disabled{opacity:.4;cursor:not-allowed}
.ck-switch input:focus-visible{outline:2px solid #fff;outline-offset:2px}


/* ---- 11. File upload: dashed 44 px button (a <label> around a hidden file input), picked files as rows with remove X.
        Photo: .ck-photo = round avatar (96 px; a <button> when there is a photo to view) + buttons. ---- */
.ck-drop{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:var(--ctl-h);margin:0;box-sizing:border-box;border-radius:var(--r-ctl);
  border:1.5px dashed #6b7382;background:transparent;color:#fff;font:700 14px var(--font-body);cursor:pointer} /* 3:1 on the sheet */
.gym .ck-drop input[type=file],.gym .ck-btn input[type=file]{position:absolute;left:0;top:0;width:1px;height:1px;margin:0;padding:0;border:0;opacity:0;pointer-events:none}
.ck-files{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.ck-files li{display:flex;align-items:center;gap:12px;min-height:var(--ctl-h);padding:0 0 0 8px;box-sizing:border-box;border-radius:var(--r-ctl);box-shadow:inset 0 0 0 1.5px var(--line-2);
  color:#fff;font-size:14px;font-weight:600}
.ck-files .n{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ck-files .thumb{width:28px;height:28px;border-radius:8px;flex:none;background:linear-gradient(135deg,var(--line-2),var(--star-off))}
.ck-files .thumb.pdf{background:var(--danger-line)}
.ck-files .ck-x{background:none;border-radius:var(--r-ctl);color:var(--steel)}
.ck-photo{display:flex;align-items:center;gap:16px}
.ck-photo .ck-btns{flex:1;min-width:0;grid-template-columns:1fr}
@container (min-width:600px){.ck-photo .ck-btns{flex:0 1 400px;grid-template-columns:1fr 1fr}}
.ck-av{position:relative;width:96px;height:96px;flex:none;margin:0;padding:0;border:0;border-radius:50%;background:var(--field) center/cover no-repeat;
  box-shadow:0 0 0 3px var(--line-2);display:flex;align-items:center;justify-content:center;
  font-family:var(--font-display);font-size:40px;line-height:1;color:#fff}
button.ck-av{cursor:zoom-in}
.ck-av.wait{box-shadow:0 0 0 3px var(--amber)}
.ck-av .ck-badge{position:absolute;left:50%;bottom:-10px;transform:translateX(-50%);font-family:var(--font-body);box-shadow:0 0 0 3px var(--card)}


/* ---- 12. Buttons: ONE size, 44 px. Outline by default; .go = the one red filled button per screen;
        .danger = red outline (delete, cancel booking); .full = full width; .ck-btns = 2 equal columns.
        .ck-x = 44 px round close; .ck-link = text button 44 px. ---- */
.ck-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;height:var(--ctl-h);margin:0;padding:0 16px;box-sizing:border-box;
  border-radius:var(--r-ctl);border:1.5px solid var(--line-2);background:transparent;color:var(--ink);font:700 14px var(--font-body);
  white-space:nowrap;cursor:pointer;text-decoration:none}
.ck-btn svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ck-btn.go{background:var(--red-btn);border-color:var(--red-btn);color:#fff}
.ck-btn.danger{color:var(--red-text);border-color:var(--danger-line)}
.ck-btn.full{display:flex;width:100%}
.ck-btn:disabled,.ck-btn[aria-disabled=true]{opacity:.4;cursor:default}
/* a red button that can't be used yet turns into a grey outline, so it never reads as a broken red block */
.ck-btn.go:disabled{background:transparent;border-color:var(--line-2);color:var(--steel);opacity:1}
.ck-btns{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ck-btns>.ck-btn{width:100%;min-width:0;padding:0 8px}
.ck-x{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex:none;padding:0;border:0;border-radius:50%;
  background:var(--raised);color:#fff;font:600 16px var(--font-body);cursor:pointer}
.ck-x svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.ck-link{display:flex;align-items:center;justify-content:center;width:100%;height:var(--ctl-h);margin:0;border:0;border-radius:var(--r-ctl);background:none;
  color:#fff;font:600 14px var(--font-body);text-decoration:underline;text-underline-offset:4px;cursor:pointer}


/* ---- 13. Badges: 24 px pills. ok = green, wait = amber, err = red, plain = grey chip ---- */
.ck-badge{display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 8px;flex:none;border-radius:999px;background:var(--chip);color:var(--chip-ink);
  font-size:12px;font-weight:700;white-space:nowrap}
.ck-badge.ok{background:rgba(63,193,115,.16);color:var(--green)}
.ck-badge.wait{background:rgba(247,164,64,.16);color:var(--amber)}
.ck-badge.err{background:rgba(237,28,36,.16);color:var(--red-text)}
.ck-badge svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.ck-av .ck-badge.wait{background:#3a2e1d}
.ck-chips{display:flex;flex-wrap:wrap;gap:8px}


/* ---- 14. Empty state: icon in a circle, one short line, one button (what to do next) ---- */
.ck-empty{display:flex;flex-direction:column;align-items:center;gap:12px;padding:32px 16px;text-align:center}
.ck-empty .ck-ic{width:64px;height:64px;border-radius:50%}
.ck-empty .ck-ic svg{width:28px;height:28px}
.ck-empty p{margin:0;font-size:16px;font-weight:600;color:var(--steel)}


/* ---- 15. Bottom sheet (same as the home / services sheets): #1f242c, 22 px top corners, grab handle,
        Anton 26 title + 44 px X, scrim 60 %. Open / close / focus / Esc in client-kit.js.
        <div class="ck-scrim" data-ck-close hidden></div>
        <div class="ck-sheet" role="dialog" aria-modal="true" aria-labelledby="t" hidden>
          <div class="ck-grab"></div><div class="ck-sheet-h"><h2 id="t">Title</h2><button class="ck-x" data-ck-close>X</button></div> ... </div> ---- */
.ck-scrim{position:fixed;inset:0;z-index:300;background:rgba(0,0,0,.6)}
.ck-sheet{position:fixed;left:0;right:0;bottom:0;z-index:301;max-height:88%;overflow-y:auto;box-sizing:border-box;margin:0 auto;max-width:720px;
  background:var(--sheet);border-radius:var(--r-sheet) var(--r-sheet) 0 0;padding:8px 20px calc(24px + env(safe-area-inset-bottom));box-shadow:0 -10px 30px rgba(0,0,0,.4)}
.ck-grab{width:40px;height:4px;border-radius:2px;background:var(--line-2);margin:0 auto 12px}
.ck-sheet-h{position:sticky;top:-8px;z-index:2;display:flex;align-items:flex-start;gap:12px;margin:0 0 16px;padding:8px 0;background:var(--sheet)} /* title + X stay in view while the sheet scrolls */
.ck-sheet-h>div,.ck-sheet-h>h2{flex:1;min-width:0}
.ck-sheet-h h2{margin:0;font-family:var(--font-display);font-weight:400;font-size:26px;line-height:1.1;letter-spacing:.02em;text-transform:uppercase;color:#fff;padding-top:8px}
.ck-sheet-h small{display:block;margin-top:4px;font-size:14px;color:var(--steel)}
.ck-sheet .ck-btns,.ck-sheet .ck-btn.full{margin-top:16px}
.ck-sheet .ck-flash{margin-bottom:16px}


/* open sheet / lightbox: the page behind does not scroll (class set by client-kit.js) */
html.ck-lock,html.ck-lock body{overflow:hidden}

/* ---- 16. Full-size photo view (lightbox): black overlay, picture fits, 44 px X top right ---- */
.ck-lightbox{position:fixed;inset:0;z-index:400;display:flex;align-items:center;justify-content:center;padding:64px 16px;box-sizing:border-box;background:rgba(0,0,0,.9);cursor:zoom-out}
.ck-lightbox img,.ck-lightbox .pic{max-width:100%;max-height:100%;border-radius:12px}
.ck-lightbox .ck-x{position:absolute;top:12px;right:12px}


/* ---- 17. Messages. .ck-flash = inline at the top of the page (ok / err / wait), optional 44 px dismiss X.
        .ck-toast = short floating note above the tab bar (Copied, Saved), gone after 3 s (client-kit.js). ---- */
.ck-flash{display:flex;align-items:center;gap:8px;min-height:44px;margin:0 0 16px;padding:0 0 0 16px;box-sizing:border-box;border-radius:var(--r-ctl);
  font-size:14px;font-weight:600}
.ck-flash>span{flex:1;min-width:0;padding:12px 0}
.ck-flash>svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.ck-flash.ok{background:rgba(63,193,115,.16);color:var(--green)}
.ck-flash.err{background:rgba(237,28,36,.16);color:var(--red-text)}
.ck-flash.wait{background:rgba(247,164,64,.16);color:var(--amber)}
.ck-flash.info{background:var(--chip);color:var(--chip-ink)}
.ck-flash:not(:has(button)){padding-right:16px}
/* full-width strip under the top bar (iPhone "Add to Home Screen" hint) */
.ck-flash.bar{margin:0;border-radius:0;padding:0 20px}
.ck-flash button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex:none;padding:0;border:0;background:none;color:inherit;cursor:pointer;border-radius:12px}
.ck-flash button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.ck-toast{position:fixed;left:50%;bottom:calc(84px + var(--tabs-raise,0px) + env(safe-area-inset-bottom));z-index:500;transform:translateX(-50%);display:flex;align-items:center;gap:8px;
  min-height:44px;width:max-content;max-width:calc(100% - 32px);padding:10px 16px;box-sizing:border-box;border-radius:22px;background:var(--ink);color:var(--page);
  font:700 14px/1.4 var(--font-body);text-align:center;box-shadow:0 8px 24px rgba(0,0,0,.4)}


/* ---- 18. Pager: Previous / "2 of 5" / Next, all 44 px. Hide it when there is one page. ---- */
.ck-pager{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:16px}
.ck-pager span{font-size:14px;font-weight:600;color:var(--steel);white-space:nowrap}


/* ---- 18b. Warning sheet (late cancel / late move, 14 Oct 2026): red ring icon, Anton title, centred lines.
        role="alertdialog"; its scrim has no data-ck-close, so a tap outside never confirms or dismisses by accident. ---- */
.lc-ic{width:56px;height:56px;margin:4px auto 12px;border-radius:50%;display:grid;place-items:center;background:rgba(237,28,36,.16);color:var(--red-text)}
.lc-ic svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.lc-t{margin:0;text-align:center;font-family:var(--font-display);font-weight:400;font-size:26px;line-height:1.1;letter-spacing:.02em;text-transform:uppercase;color:#fff}
.lc-s{margin:8px 0 0;text-align:center;font-size:14px;font-weight:600;color:var(--steel)}
.lc-s+.ck-btns,.lc-cr+.ck-btns{margin-top:16px}
.lc-cr{display:flex;align-items:center;justify-content:center;gap:12px;margin:16px 0 0;font-family:var(--font-display);font-size:26px;color:#fff}
.lc-cr s{color:var(--steel);text-decoration-thickness:2px}
.lc-cr svg{width:20px;height:20px;fill:none;stroke:var(--steel);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lc-cr small{font-family:var(--font-body);font-size:14px;font-weight:600;color:var(--steel)}

/* ---- 19. Zoom slider (photo crop): 44 px tall hit area, thin track, white thumb ---- */
.ck-range{display:flex;align-items:center;gap:12px;min-height:44px}
.ck-range label{margin:0;font-size:14px;font-weight:600;color:#fff}
.ck-range input[type=range]{flex:1;min-width:0;height:44px;margin:0;padding:0;border:0;background:none;accent-color:#fff;cursor:pointer}


/* ---- 19b. Photo crop frame (round, drag to move) and camera view (4:3, black). Short grey hint under them. ---- */
.ck-crop{position:relative;width:240px;height:240px;max-width:100%;margin:0 auto;border-radius:50%;overflow:hidden;background:var(--field);
  box-shadow:0 0 0 3px var(--line-2);cursor:grab;touch-action:none;user-select:none}
.ck-crop.dragging{cursor:grabbing}
.ck-crop:focus-visible{outline:2px solid #fff;outline-offset:4px}
.ck-crop img{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:cover;transform-origin:center;pointer-events:none;-webkit-user-drag:none}
.ck-cam{position:relative;aspect-ratio:4/3;width:100%;border-radius:var(--r-card);overflow:hidden;background:#000}
.ck-cam>*{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ck-hint{margin:8px 0 0;text-align:center;font-size:14px;color:var(--steel)}


/* ---- 20. Bottom tab bar: the app's own .bottom-tabs (markup as _portal_shell.html). Kit adds hover and a
        readable chat badge (12 px, nothing smaller in the app). ---- */
.bottom-tabs a{position:relative}
.bottom-tabs .tab-badge{font-size:12px;font-weight:700;min-width:20px;height:20px;box-sizing:border-box;padding:0 6px}


/* ---- 21. How to pay (InstaPay from Settings): Open InstaPay (outline + purple stripe, so red stays the only
        filled button), address and mobile rows with Copy, Show / Hide QR, "Or pay at the front desk".
        .ck-pay.boxed = inside a card (request sheet). Markup: _client_pay.html ---- */
.ck-pay.boxed{background:var(--card);border-radius:var(--r-card);padding:12px 16px;margin:0 0 16px}
.ck-pay-lbl{display:block;font-size:12px;font-weight:600;color:var(--steel)}
.ck-pay-open{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;height:var(--ctl-h);margin:8px 0 0;box-sizing:border-box;
  border-radius:var(--r-ctl);border:1.5px solid var(--line-2);color:#fff;font:700 14px var(--font-body);text-decoration:none}
.ck-pay:not(.boxed) .ck-pay-open{margin-top:0}
.ck-pay-open::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--insta)}
.ck-pay-acct{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 0 0;margin-top:12px;border-top:1px solid var(--raised)}
.ck-pay-acct>span{display:flex;flex-direction:column;gap:4px;min-width:0}
.ck-pay-acct b{font-size:16px;color:#fff;overflow-wrap:anywhere}
.ck-pay-qr{display:block;width:220px;max-width:100%;margin:12px auto 0;border-radius:12px;background:#fff}
.ck-pay .ck-link{margin-top:8px}
.ck-pay-desk{display:flex;align-items:center;gap:8px;min-height:44px;margin-top:8px;border-top:1px solid var(--raised);color:var(--steel);font-size:14px;font-weight:600}
.ck-pay-desk svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}


/* ---- 22. Desktop: top bar and tab bar line up with the 720 px column (phones unchanged) ---- */
@media (min-width:768px){
  .gym .app-bar{padding-left:max(12px,calc(50vw - 372px));padding-right:max(12px,calc(50vw - 372px))}
  .gym .bottom-tabs{left:50%;right:auto;width:720px;transform:translateX(-50%);border-radius:16px 16px 0 0;border:1px solid var(--line);border-bottom:0}
}


/* ---- Hover on everything clickable (mouse only) ---- */
.ck-act,.ck-sec a,.ck-sec .ck-more,.ck-row,.ck-chev,.ck-in,.ck-sel::after,.ck-seg button,.ck-tabs button,.ck-drop,.ck-av,.ck-btn,.ck-x,.ck-link,.ck-flash button,.ck-pay-open,
.app-back,.app-word,.app-mark,.bottom-tabs a{
  transition:background-color .12s,border-color .12s,color .12s,box-shadow .12s,opacity .12s,transform .12s}
@media (hover:hover){
  .ck-act:hover,.ck-x:hover{background:var(--line-2)}
  .ck-sec a:hover,.ck-sec .ck-more:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}
  a.ck-row:hover,button.ck-row:hover{background:var(--tile-hover);box-shadow:0 0 0 1px var(--line-2);text-decoration:none}
  a.ck-row:hover .ck-chev,button.ck-row:hover .ck-chev{color:#fff}
  .gym input.ck-in:not([type=checkbox]):not([type=radio]):not([type=range]):hover:not(:focus):not(:disabled),.gym select.ck-in:hover:not(:focus):not(:disabled),.gym textarea.ck-in:hover:not(:focus):not(:disabled){border-color:var(--line-3)}
  .gym .ck-field.bad input.ck-in:not([type=checkbox]):not([type=radio]):not([type=range]):hover:not(:focus),.gym .ck-field.bad select.ck-in:hover:not(:focus),.gym .ck-field.bad textarea.ck-in:hover:not(:focus){border-color:var(--red-text)}
  .gym .ss-opt:not(.ss-dis):not(.ss-act):hover{background:var(--hover)}
  .ck-sel:hover::after{border-color:#fff}
  .ck-seg button:not([aria-pressed=true]):hover,.ck-tabs button:not([aria-selected=true]):hover{background:var(--hover);color:#fff}
  .ck-drop:hover{background:rgba(255,255,255,.04);border-color:var(--line-3)}
  button.ck-av:hover{box-shadow:0 0 0 3px #fff}
  button.ck-av.wait:hover{box-shadow:0 0 0 3px #fff}
  .ck-btn:hover{background:var(--hover);border-color:var(--line-3);text-decoration:none}
  .ck-btn.go:hover{background:var(--red-hover);border-color:var(--red-hover)}
  .ck-btn:disabled:hover,.ck-btn[aria-disabled=true]:hover,.ck-btn.go:disabled:hover{background:transparent;border-color:var(--line-2)}
  .gym .ck-sel:hover select.ck-in:not(:focus):not(:disabled){border-color:var(--line-3)}
  .ck-btn.danger:hover{background:rgba(255,107,112,.1);border-color:var(--line-3)}
  .ck-btn:disabled:hover{background:transparent;border-color:var(--line-2)}
  .ck-btn.go:disabled:hover{background:var(--red-btn);border-color:var(--red-btn)}
  .ck-link:hover{background:var(--hover);text-decoration-thickness:2px}
  .ck-pay-open:hover{background:var(--hover);border-color:var(--line-3);text-decoration:none}
  .ck-flash button:hover{background:rgba(255,255,255,.08)}
  .ck-switch:hover input:not(:checked):not(:disabled){background:var(--line-3)}
  .ck-files .ck-x:hover{background:var(--line-2)}
  /* back arrow: portal-dark.css pins its background with !important, so this needs to be more specific */
  .gym .app-bar a.app-back[aria-label^="Back to"]:hover{background:var(--line-2)!important}
  .app-logo:hover .app-word{color:var(--chip-ink)}
  .app-logo:hover .app-mark{opacity:.85}
  .gym .bottom-tabs a:not(.active):hover{color:#fff;background:rgba(255,255,255,.04)}
}
@media (hover:hover) and (prefers-reduced-motion:no-preference){
  a.ck-row:hover .ck-chev,button.ck-row:hover .ck-chev{transform:translateX(2px)}
}


/* ---- Keyboard focus: one white ring everywhere ---- */
.ck-act:focus-visible,.ck-sec a:focus-visible,.ck-sec .ck-more:focus-visible,.ck-row:focus-visible,.ck-seg button:focus-visible,.ck-tabs button:focus-visible,
.ck-btn:focus-visible,.ck-x:focus-visible,.ck-link:focus-visible,.ck-pay-open:focus-visible,.ck-av:focus-visible,.ck-flash button:focus-visible,.bottom-tabs a:focus-visible{
  outline:2px solid #fff;outline-offset:2px}
.ck-drop:focus-within,.ck-btn:focus-within:has(input[type=file]:focus-visible){outline:2px solid #fff;outline-offset:2px}


/* ---- Motion: sheets slide up, toast fades; nothing moves when reduced motion is on ---- */
@media (prefers-reduced-motion:no-preference){
  .ck-sheet:not([hidden]){animation:ck-up .22s cubic-bezier(.2,.8,.2,1)}
  .ck-scrim:not([hidden]),.ck-lightbox:not([hidden]),.ck-toast{animation:ck-fade .18s ease-out}
}
@keyframes ck-up{from{transform:translateY(24px);opacity:.4}to{transform:none;opacity:1}}
@keyframes ck-fade{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){
  .ck-act,.ck-sec a,.ck-sec .ck-more,.ck-row,.ck-chev,.ck-in,.ck-sel::after,.ck-seg button,.ck-tabs button,.ck-drop,.ck-av,.ck-btn,.ck-x,.ck-link,.ck-flash button,
  .ck-switch input::before,.app-back,.app-word,.app-mark,.bottom-tabs a,.ss-opt{transition:none}
}

/* "Are you sure?" pop-up (confirm-dialog.js): the go-ahead of a danger question is the red button, white ring on focus */
.gym .modal-box .btn-danger{background:var(--red-btn);border-color:var(--red-btn);color:#fff}
.gym .modal-box .btn:focus-visible{outline:2px solid #fff;outline-offset:2px}

/* "Are you sure?" pop-up that also asks for a typed value (password / email): data-confirm-field in confirm-dialog.js */
.gym .modal-box .am-confirm-lbl{display:block;margin:16px 0 6px;font-size:14px;font-weight:600;color:var(--steel)}
.gym .modal-box .am-confirm-in{display:block;width:100%;height:var(--ctl-h);box-sizing:border-box;padding:0 12px;border-radius:var(--r-ctl);border:1.5px solid var(--line-3);background:var(--field);color:var(--ink);font:400 16px var(--font-body)}
.gym .modal-box .am-confirm-in:focus-visible{outline:2px solid #fff;outline-offset:1px}
#delete-account{scroll-margin-top:72px}
.gym .modal-box .am-confirm-in[aria-invalid="true"]{border-color:var(--red-text)}
.gym .modal-box .btn{border-radius:var(--r-ctl)}
.gym .modal-box .am-confirm-in[aria-invalid="true"]:focus-visible{outline-color:var(--red-text)}
/* Suggest Other Date/Time/Coach (25 Oct 2026): the coach's suggestion on a request, the client answers */
.sg-box{margin-top:16px;padding-top:12px;border-top:1px solid var(--line);display:grid;gap:8px}
.sg-was{margin:0;font-size:14px;font-weight:600;color:var(--amber)}
.sg-why{margin:0;font-size:14px;color:var(--chip-ink);overflow-wrap:anywhere}
.sg-box form{margin:0}
.sg-card{padding:0 0 16px}
.sg-card>.ck-row{background:none;box-shadow:none;cursor:default}
.sg-card>.sg-box{margin:4px 12px 0 16px}
