/* One app shell for every member side page (coach, 2026-11-12: "make it not feel like a separate website").
   A compact top bar with a back arrow, the same floating tab bar as the main app, and a short cross-fade between pages. */
@view-transition{navigation:auto}
::view-transition-old(root){animation:pb-shell-out .14s ease both}
::view-transition-new(root){animation:pb-shell-in .2s ease both}
@keyframes pb-shell-out{to{opacity:0}}
@keyframes pb-shell-in{from{opacity:0;transform:translateY(6px)}}
@media (prefers-reduced-motion:reduce){::view-transition-old(root),::view-transition-new(root){animation:none}}

body.pb-shell{--pb-s-ink:#141922;--pb-s-line:#e6e9f0;--pb-s-muted:#5f6978;--pb-s-track:#edf0f5;padding-bottom:calc(96px + env(safe-area-inset-bottom));-webkit-tap-highlight-color:transparent}
/* The old website-style headers (logo, "back to app" links, own footers) are replaced by the bar below. */
body.pb-shell>header:not(.pb-bar),body.pb-shell>.site-header{display:none!important}
.pb-bar{position:sticky;top:0;z-index:30;display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:4px;min-height:52px;padding:max(6px,env(safe-area-inset-top)) 10px 6px;background:rgba(250,251,248,.92);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border-bottom:1px solid transparent;transition:border-color .2s}
.pb-bar.pb-scrolled{border-bottom-color:var(--pb-s-line,#e6e9f0)}
.pb-back{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:var(--pb-s-ink,#141922);cursor:pointer;padding:0}
.pb-back:active{background:var(--pb-s-track,#edf0f5)}
.pb-back svg{width:22px;height:22px}
.pb-title{margin:0;text-align:center;font:600 16px/1.2 inherit;font-family:inherit;color:var(--pb-s-ink,#141922);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;opacity:0;transition:opacity .18s}
.pb-bar.pb-title-on .pb-title{opacity:1}

.pb-tabs{position:fixed;z-index:40;left:50%;transform:translateX(-50%);bottom:max(12px,env(safe-area-inset-bottom));width:min(420px,calc(100% - 32px));display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:6px;border:1px solid var(--pb-s-line,#e6e9f0);border-radius:28px;background:rgba(255,255,255,.9);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:0 1px 2px rgba(20,25,34,.04),0 8px 24px rgba(20,25,34,.05)}
.pb-tabs a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:54px;padding:6px 2px;border-radius:22px;color:var(--pb-s-muted,#5f6978);font-size:12px;font-weight:600;text-decoration:none}
.pb-tabs a[aria-current=page]{background:var(--pb-s-track,#edf0f5);color:var(--pb-s-ink,#141922);font-weight:700}
.pb-tabs svg{width:22px;height:22px}
/* The pages' own tab bars, where they have one, keep working; only one bar is ever on screen. */
body.pb-shell .pb-tabs~.focus-side-nav,body.pb-shell .pb-tabs~.personal-client-nav{display:none}
/* Never a tab bar over a workout being logged. */
body.pb-shell:has([data-workout-log]) .pb-tabs,body.pb-shell:has([data-workout-log]) .personal-client-nav,body.pb-shell:has([data-workout-log]) .focus-side-nav{display:none}
body.pb-shell:has([data-workout-log]){padding-bottom:24px}

/* Loading placeholders (also in bevel.css for the main app). */
.pb-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.pb-skel-stack{display:grid;gap:12px}
.pb-skel{display:block;border-radius:20px;background:linear-gradient(90deg,#e8ebf1 25%,#f3f5f9 50%,#e8ebf1 75%) 0 0/200% 100%;animation:pb-shimmer 1.3s linear infinite}
.pb-skel.title{height:30px;width:58%;border-radius:10px;margin:6px 0}
.pb-skel.hero{height:168px;border-radius:24px}
.pb-skel.card{height:120px;border-radius:24px}
.pb-skel.row{height:64px}
.pb-skel.pill{height:48px;border-radius:999px}
@keyframes pb-shimmer{to{background-position:-200% 0}}
@media (prefers-reduced-motion:reduce){.pb-skel{animation:none}}

/* content arriving after the loading placeholders rises in, like the main tabs (2026-11-12) */
.pb-rise{animation:pb-rise .34s cubic-bezier(.22,.8,.26,1) both;animation-delay:calc(var(--pb-rise-i,0) * 45ms)}
@keyframes pb-rise{from{opacity:0;transform:translateY(10px)}}
/* press feedback on side pages */
body.pb-shell main :is(a,button,summary):not(:disabled){transition:transform .15s cubic-bezier(.22,.8,.26,1),background-color .2s,border-color .2s,color .2s,box-shadow .2s,opacity .2s}
body.pb-shell main :is(a,button,summary):not(:disabled):active{transform:scale(.98)}
.pb-tabs a{transition:transform .15s cubic-bezier(.22,.8,.26,1)}
.pb-tabs a:active,.pb-back:active{transform:scale(.94)}
@media (prefers-reduced-motion:reduce){.pb-rise{animation:none}body.pb-shell main :is(a,button,summary),.pb-tabs a{transition:none}body.pb-shell main :is(a,button,summary):active,.pb-tabs a:active,.pb-back:active{transform:none}}
/* confirm pop-up on member side pages in the calm look (2026-11-12) */
body.pb-shell dialog.prime-confirm{border:0;border-radius:28px;background:#fff;color:#141922;box-shadow:0 24px 70px rgba(20,25,34,.18)}
body.pb-shell dialog.prime-confirm::backdrop{background:rgba(20,25,34,.38)}
body.pb-shell .prime-confirm-actions button{border-radius:999px}
body.pb-shell .prime-confirm-cancel{background:#e3e7ee;color:#141922}
body.pb-shell .prime-confirm-approve{background:#141922;color:#fff}
body.pb-shell .prime-confirm-actions button:focus-visible{outline:2px solid #0a8f84;outline-offset:2px}
body.pb-shell dialog.prime-confirm-danger .prime-confirm-approve{background:#a05b4f}
