/* Screen review 8 Nov (USE_UI_REVIEW_8NOV, ur8On()): Phase 1: the trainer's floating + and its quick-add speed dial, the Gym / Freelance count badges.
   Every rule under html.uf-ui-review-8nov (lift with :not(#u#r#e) where the skin's rules win). */

/* ============ the floating + (trainer app): bottom end corner, 20 px in, 18 px over the tab bar; mirrored in Arabic ============ */
html.uf-ui-review-8nov:not(#u#r#e){--u8-plus-end:max(20px,calc(50% - 320px + 20px));--u8-plus-b:calc(var(--nav-h) + var(--safe-b) + 18px)}
html.uf-ui-review-8nov:has(.app>.nav.sub):not(#u#r#e){--u8-plus-b:calc(var(--safe-b) + 18px)}
html.uf-ui-review-8nov:has(.app>.stk:not(.off) .bar-bottom):not(#u#r#e){--u8-plus-b:calc(var(--nav-h) + var(--safe-b) + 88px + var(--kb,0px))}
html.uf-ui-review-8nov:has(.app>.nav.sub):has(.app>.stk:not(.off) .bar-bottom):not(#u#r#e){--u8-plus-b:calc(var(--safe-b) + 88px + var(--kb,0px))}
html.uf-ui-review-8nov .u8-plus:not(#u#r#e){position:fixed;z-index:var(--z-float);inset-inline-end:var(--u8-plus-end);bottom:var(--u8-plus-b);display:grid;place-items:center;width:56px;height:56px;padding:0;
  border-radius:50%;background:linear-gradient(#4D6BFF,#3557F5);color:#FFFFFF;border:1px solid #1E3BC4;cursor:pointer;-webkit-tap-highlight-color:transparent;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 2px 4px rgba(30,59,196,.35),0 8px 20px rgba(30,59,196,.28);transition:transform .12s ease,opacity .12s ease;
  user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:manipulation}
html.uf-ui-review-8nov .u8-plus:active:not(#u#r#e){transform:scale(.94)}
html.uf-ui-review-8nov .u8-plus.is-open:not(#u#r#e){visibility:hidden}
html.uf-ui-review-8nov :is(.u8-plus,.u8-qa-x):focus-visible:not(#u#r#e){outline:2px solid var(--u8-blue);outline-offset:3px}
html.uf-ui-review-8nov .u8-plus-c:not(#u#r#e){display:grid;place-items:center;width:24px;height:24px}
html.uf-ui-review-8nov .u8-plus-c svg:not(#u#r#e){display:block}

/* nothing sits under it: the page's end gets room for the + (56 px + 18 px over the bar + 16 px air) on every trainer page that draws it */
html.uf-ui-review-8nov .app:has(>.u8-plus)>.stk>.scr:not(#u#r#e){padding-bottom:calc(var(--nav-h) + var(--safe-b) + 90px)}
html.uf-ui-review-8nov .app:has(>.u8-plus):has(>.nav.sub)>.stk>.scr:not(#u#r#e){padding-bottom:calc(var(--safe-b) + 90px)}
/* a page with a pinned footer keeps it: the + stands over the footer instead */
html.uf-ui-review-8nov .app:has(>.u8-plus)>.stk>.scr:has(.bar-bottom):not(#u#r#e){padding-bottom:calc(var(--nav-h) + var(--safe-b) + var(--s-6))}
html.uf-ui-review-8nov .app:has(>.u8-plus):has(>.nav.sub)>.stk>.scr:has(.bar-bottom):not(#u#r#e){padding-bottom:var(--s-6)}
/* the side bar from 900 px: the + in the window's end corner; from 1100 px the shortcuts are pinned beside the page (as today) */
@media (min-width:900px){
  html.uf-ui-review-8nov:not(#u#r#e),html.uf-ui-review-8nov:has(.app>.nav.sub):not(#u#r#e){--u8-plus-end:24px;--u8-plus-b:24px}
  html.uf-ui-review-8nov:has(.app>.stk:not(.off) .bar-bottom):not(#u#r#e),html.uf-ui-review-8nov:has(.app>.nav.sub):has(.app>.stk:not(.off) .bar-bottom):not(#u#r#e){--u8-plus-end:24px;--u8-plus-b:96px}
  html.uf-ui-review-8nov .app:has(>.u8-plus)>.stk>.scr:not(#u#r#e),html.uf-ui-review-8nov .app:has(>.u8-plus):has(>.nav.sub)>.stk>.scr:not(#u#r#e){padding-bottom:104px}
}
@media (min-width:1100px){
  html.uf-ui-review-8nov .u8-plus:not(#u#r#e){display:none}
  html.uf-ui-review-8nov .app:has(>.u8-plus)>.stk>.scr:not(#u#r#e),html.uf-ui-review-8nov .app:has(>.u8-plus):has(>.nav.sub)>.stk>.scr:not(#u#r#e){padding-bottom:var(--s-7)}
}

/* ============ the quick add: a frosted scrim, the actions stacked upward from the + (nearest first), the + turned into an × ============ */
html.uf-ui-review-8nov .u8-qa:not(#u#r#e){position:fixed;inset:0;z-index:var(--z-over);background:var(--u8-scrim);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);
  animation:u8-qa-fade .18s ease both}
html.uf-ui-review-8nov .u8-qa.is-out:not(#u#r#e){animation:u8-qa-fade-out .2s ease both}
html.uf-ui-review-8nov .u8-qa-col:not(#u#r#e){position:absolute;inset-inline-end:var(--u8-plus-end);bottom:var(--u8-plus-b);display:flex;flex-direction:column;align-items:flex-end;gap:14px;
  max-height:calc(100% - var(--u8-plus-b) - var(--safe-t) - 16px);pointer-events:none;outline:none}
html.uf-ui-review-8nov .u8-qa-list:not(#u#r#e){display:flex;flex-direction:column-reverse;align-items:flex-end;gap:10px;min-height:0;margin:0 0 -26px;padding:18px 5px 30px 4px;list-style:none;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 16px);mask-image:linear-gradient(to bottom,transparent 0,#000 16px)}
html.uf-ui-review-8nov .u8-qa-list:not(#u#r#e)::-webkit-scrollbar{display:none}
html.uf-ui-review-8nov[dir=rtl] .u8-qa-list:not(#u#r#e),html.uf-ui-review-8nov [dir=rtl] .u8-qa-list:not(#u#r#e){padding:18px 4px 30px 5px}
html.uf-ui-review-8nov .u8-qa-list>li:not(#u#r#e){flex:0 0 auto;transform-origin:100% 100%;animation:u8-qa-in .28s cubic-bezier(.2,.9,.3,1.25) both;animation-delay:calc(var(--i) * 50ms)}
html.uf-ui-review-8nov[dir=rtl] .u8-qa-list>li:not(#u#r#e){transform-origin:0 100%}
html.uf-ui-review-8nov .u8-qa.is-out .u8-qa-list>li:not(#u#r#e){animation:u8-qa-out .15s ease-in both;animation-delay:calc((var(--n) - 1 - var(--i)) * 4ms)}
html.uf-ui-review-8nov .u8-qa-i:not(#u#r#e){display:flex;align-items:center;gap:12px;min-height:46px;margin:0;padding:0;border:0;background:none;color:inherit;cursor:pointer;pointer-events:auto;
  -webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:manipulation}
html.uf-ui-review-8nov .u8-qa-l:not(#u#r#e){display:inline-flex;align-items:center;height:34px;padding:0 12px;border-radius:10px;background:var(--u8-card);color:var(--u8-ink);
  font:600 14px/1 var(--u8-ff);letter-spacing:0;text-transform:none;white-space:nowrap;box-shadow:0 2px 8px rgba(15,26,42,.12),0 0 0 1px rgba(15,26,42,.04)}
html.uf-ui-review-8nov[data-theme=dark] .u8-qa-l:not(#u#r#e){box-shadow:0 2px 8px rgba(0,0,0,.45),0 0 0 1px rgba(255,255,255,.06)}
@media (prefers-color-scheme:dark){html.uf-ui-review-8nov:not([data-theme=light]) .u8-qa-l:not(#u#r#e){box-shadow:0 2px 8px rgba(0,0,0,.45),0 0 0 1px rgba(255,255,255,.06)}}
html.uf-ui-review-8nov[lang=ar] .u8-qa-l:not(#u#r#e){font-family:var(--u8-ar)}
html.uf-ui-review-8nov .u8-qa-b:not(#u#r#e){position:relative;display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border-radius:50%;
  background:linear-gradient(var(--u8-s1),var(--u8-s2));color:var(--u8-sink);border:1px solid var(--u8-sl);box-shadow:inset 0 1px 0 var(--u8-shi),0 2px 6px rgba(15,26,42,.1);transition:transform .12s ease}
html.uf-ui-review-8nov .u8-qa-b.pri:not(#u#r#e){background:linear-gradient(#4D6BFF,#3557F5);color:#FFFFFF;border-color:#1E3BC4;box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 2px 4px rgba(30,59,196,.35)}
html.uf-ui-review-8nov .u8-qa-b svg:not(#u#r#e){display:block}
html.uf-ui-review-8nov .u8-qa-b>i:not(#u#r#e){position:absolute;top:-4px;inset-inline-end:-4px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--u8-blue);color:#FFFFFF;
  font:700 11px/18px var(--u8-ff);font-style:normal;text-align:center;box-shadow:0 0 0 2px var(--u8-card)}
html.uf-ui-review-8nov .u8-qa-i:active .u8-qa-b:not(#u#r#e){transform:scale(.94)}
html.uf-ui-review-8nov .u8-qa-i:focus-visible:not(#u#r#e){outline:none}
html.uf-ui-review-8nov .u8-qa-i:focus-visible .u8-qa-b:not(#u#r#e){outline:2px solid var(--u8-blue);outline-offset:2px}
html.uf-ui-review-8nov .u8-qa-x:not(#u#r#e){position:relative;display:grid;place-items:center;flex:0 0 56px;width:56px;height:56px;padding:0;border-radius:50%;pointer-events:auto;cursor:pointer;
  background:linear-gradient(#4D6BFF,#3557F5);color:#FFFFFF;border:1px solid #1E3BC4;box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 2px 4px rgba(30,59,196,.35),0 8px 20px rgba(30,59,196,.28);
  -webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:manipulation}
html.uf-ui-review-8nov .u8-qa-x svg:not(#u#r#e){transform:rotate(135deg);animation:u8-qa-rot .28s cubic-bezier(.2,.9,.3,1.25) both}
html.uf-ui-review-8nov .u8-qa.is-out .u8-qa-x svg:not(#u#r#e){animation:u8-qa-rot-out .18s ease-in both}
html.uf-ui-review-8nov .u8-qa-none:not(#u#r#e){display:flex;flex-direction:column;gap:16px;padding:8px 0 4px}
html.uf-ui-review-8nov .u8-qa-none p:not(#u#r#e){margin:0;color:var(--u8-mute);font:400 15px/1.45 var(--u8-ff)}
@keyframes u8-qa-fade{from{opacity:0}to{opacity:1}}
@keyframes u8-qa-fade-out{from{opacity:1}to{opacity:0}}
@keyframes u8-qa-in{from{opacity:0;transform:translateY(26px) scale(.4)}to{opacity:1;transform:none}}
@keyframes u8-qa-out{from{opacity:1;transform:none}to{opacity:0;transform:translateY(26px) scale(.4)}}
@keyframes u8-qa-rot{from{transform:rotate(0)}to{transform:rotate(135deg)}}
@keyframes u8-qa-rot-out{from{transform:rotate(135deg)}to{transform:rotate(0)}}
/* reduced motion: a short fade, nothing moves */
@media (prefers-reduced-motion:reduce){
  html.uf-ui-review-8nov .u8-qa-list>li:not(#u#r#e),html.uf-ui-review-8nov .u8-qa-x svg:not(#u#r#e){animation:u8-qa-fade .15s ease both;animation-delay:0s}
  html.uf-ui-review-8nov .u8-qa.is-out .u8-qa-list>li:not(#u#r#e),html.uf-ui-review-8nov .u8-qa.is-out .u8-qa-x svg:not(#u#r#e){animation:u8-qa-fade-out .15s ease both;animation-delay:0s}
}

/* ============ the wordmark reads "Xband Fit" (xbName()): the logo's own casing, not the old all-caps XBAND ============ */
html.uf-ui-review-8nov .xb-mark b:not(#u#r#e){text-transform:none;letter-spacing:.02em}
