/* Connected Body Pilates -- shared look for the studio dashboard and the
   client portal (docs/superpowers/specs/2026-10-11-dashboard-portal-redesign-design.md).
   Loaded after /admin/admin.css on both pages, so anything here wins. Stage 1:
   tokens, type, buttons and the two frames. Screens are restyled in later stages. */

:root{
  --navy:#1c2b4a; --cream:#faf6ef; --cream-deep:#f3ecdf; --gold:#c9a24b;
  --gold-ink:#806423; --line-warm:#e8dfcd;
  --serif:"Cormorant Garamond",Georgia,"Times New Roman",serif;
  --sans:"Manrope","Helvetica Neue",Arial,sans-serif;
  --side-w:232px; --tabbar-h:64px;
}

/* ---- type ---- */
h1,h2,.panel__head h2,.ov-title{font-family:var(--serif);font-weight:600;font-variant-numeric:lining-nums;letter-spacing:0}
.panel__head h2{font-size:clamp(1.9rem,3.2vw,2.4rem);line-height:1.05}
.ov-title{font-size:1.35rem}

/* ---- buttons: one solid navy main action, gold kept as an accent ---- */
.btn{border-radius:999px}
.btn--gold{background:var(--navy);border-color:var(--navy);color:#fff}
.btn--gold:hover{background:#24365c;border-color:#24365c}
.promo-preview-card .btn--gold{background:var(--gold);border-color:var(--gold);color:var(--navy)}
.promo-preview-card .btn--gold:hover{background:#d4b05c;border-color:#d4b05c}
.btn--ghost{border-radius:999px}

/* ================= Dashboard frame ================= */
/* The side menu is pinned to the window: full height, never scrolls with the page. */
#appView.shell:not(.hidden){display:block;padding-left:var(--side-w);min-height:100vh;box-sizing:border-box}
#appView.shell > main{min-width:0}
.shell-side{position:fixed;top:0;left:0;bottom:0;width:var(--side-w);box-sizing:border-box;z-index:30;background:var(--navy);color:#d9d2c3;display:flex;flex-direction:column;padding:1.2rem .9rem 1rem;gap:.3rem;overflow-y:auto}
.shell-logo{width:150px;height:auto;margin:.2rem auto 1.1rem;display:block;filter:brightness(0) invert(1)}
.shell-nav{display:flex;flex-direction:column;gap:.15rem}
.shell-nav .tab{all:unset;cursor:pointer;display:block;padding:.62rem .85rem;border-radius:10px;color:#d9d2c3;font:500 .95rem var(--sans)}
.shell-nav .tab:hover{background:rgba(255,255,255,.07);color:#fff}
.shell-nav .tab.active{background:rgba(201,162,75,.18);color:#fff;font-weight:700;box-shadow:inset 3px 0 0 var(--gold)}
.shell-nav .tab:focus-visible,.shell-tabbar .tab:focus-visible,.ptop__nav .tab:focus-visible,.ptabbar .tab:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
/* Keyboard focus, everywhere (dashboard and portal). Plain gold was only
   about 2.3:1 on cream and white, too faint to follow. A dark-gold ring with
   a white halo inside reads on light pages (5:1) and on the navy menus and
   cards (the halo carries it there). !important so the older per-control
   gold rules don't win. Mouse clicks don't show it (:focus-visible). */
:focus-visible{outline:2px solid var(--gold-ink)!important;outline-offset:2px!important;box-shadow:0 0 0 2px #fff!important}
.shell-search{margin-top:auto;padding-top:1rem}
.shell-search input{width:100%;box-sizing:border-box;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:10px;color:#fff;padding:.6rem .8rem;font:500 .88rem var(--sans)}
.shell-search input::placeholder{color:#b9b2a3}
.shell-foot{display:flex;align-items:center;justify-content:space-between;gap:.5rem;border-top:1px solid rgba(255,255,255,.1);margin-top:.8rem;padding-top:.8rem}
.shell-who{font-size:.8rem;color:rgba(255,255,255,.7);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.shell-iconbtn{background:transparent;border:1px solid rgba(255,255,255,.22);color:#fff;border-radius:9px;width:2.2rem;height:2.2rem;display:inline-grid;place-items:center;cursor:pointer;font-size:1rem;flex-shrink:0}
.shell-iconbtn:hover{background:rgba(255,255,255,.1)}
.shell-foot-btns{display:flex;gap:.35rem}
.shell-top,.shell-tabbar{display:none}

/* The Menu, as a panel rising from the side menu (laptop) or a sheet above
   the tab bar (phone). Same element, same ids, either way. */
#topMenu{position:static}
.menu-sheet{position:fixed;left:calc(var(--side-w) - .6rem);bottom:1rem;top:auto;right:auto;min-width:240px;max-height:80vh;overflow-y:auto;z-index:60}
.menu__navonly{display:none}

/* Section switch inside a panel (Schedule: Calendar / Classes; Profile: Details / Intake) */
.section-switch{display:inline-flex;gap:.2rem;background:var(--cream-deep);border-radius:999px;padding:.2rem;margin:0 0 1rem}
.section-switch button{all:unset;cursor:pointer;padding:.4rem .95rem;border-radius:999px;font:600 .85rem var(--sans);color:var(--navy)}
.section-switch button.on{background:#fff;box-shadow:0 1px 3px rgba(28,43,74,.15)}

/* ================= Portal frame ================= */
.ptop{display:flex;align-items:center;gap:1.4rem;background:var(--navy);color:#fff;padding:.55rem clamp(1rem,3vw,2rem);position:sticky;top:0;z-index:20}
.ptop__logo{height:44px;width:auto;display:block;filter:brightness(0) invert(1)}
.ptop__nav{display:flex;gap:.2rem;flex:1}
.ptop__nav .tab{all:unset;cursor:pointer;padding:.5rem .85rem;border-radius:999px;color:#d9d2c3;font:500 .92rem var(--sans)}
.ptop__nav .tab:hover{color:#fff;background:rgba(255,255,255,.07)}
.ptop__nav .tab.active{color:#fff;font-weight:700;background:rgba(201,162,75,.2)}
.ptop__right{display:flex;align-items:center;gap:.5rem;margin-left:auto}
.ptop__right .topbar__who{color:rgba(255,255,255,.72);font-size:.82rem;max-width:22ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ptop__icon{background:transparent;border:1px solid rgba(255,255,255,.25);color:#fff;border-radius:9px;width:2.2rem;height:2.2rem;display:inline-grid;place-items:center;cursor:pointer;font-size:1rem}
.ptop__icon:hover{background:rgba(255,255,255,.1)}
#pMenu{position:relative}
#pMenuDropdown{position:absolute;right:0;top:calc(100% + .4rem);left:auto;bottom:auto;min-width:220px;z-index:60}
.ptabbar{display:none}

/* Portal Home: next class and sessions share a row (columns set in Stage 2). */
.home-top{display:grid;grid-template-columns:1fr 1fr;gap:1.4rem;align-items:stretch;margin-bottom:3rem}

/* ================= Phone ================= */
@media (max-width:900px){
  .ev-day{top:59px}
  .shell-top .shell-iconbtn,.ptop__icon{width:2.6rem;height:2.6rem}
  #appView.shell:not(.hidden){display:block;padding-left:0}
  .shell-side{display:none}
  .shell-top{display:flex;align-items:center;justify-content:space-between;background:var(--navy);padding:.55rem 1rem;position:sticky;top:0;z-index:20}
  .shell-top img{height:40px;width:auto;filter:brightness(0) invert(1)}
  .shell-tabbar,.ptabbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:50;background:#fff;border-top:1px solid var(--line-warm);padding:.35rem .25rem calc(.45rem + env(safe-area-inset-bottom));justify-content:space-around;box-shadow:0 -6px 20px -14px rgba(28,43,74,.4)}
  .shell-tabbar .tab,.shell-more,.ptabbar .tab{all:unset;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:.1rem;min-width:56px;min-height:44px;justify-content:center;font:600 .7rem var(--sans);color:#6a7384;border-radius:10px}
  .shell-tabbar .tab span,.shell-more span,.ptabbar .tab span{font-size:1.15rem;line-height:1}
  .shell-tabbar .tab.active,.ptabbar .tab.active{color:var(--navy);font-weight:800}
  #appView.shell > main,#appView.pshell > main{padding-bottom:calc(var(--tabbar-h) + 1.5rem + env(safe-area-inset-bottom))}
  .menu-sheet{left:.6rem;right:.6rem;bottom:calc(var(--tabbar-h) + .5rem + env(safe-area-inset-bottom));min-width:0}
  .menu__navonly{display:block}
  .ptop{gap:.6rem}
  .ptop__nav,.ptop__right .topbar__who{display:none}
  .ptop__logo{height:36px}
  #pMenuDropdown{position:fixed;left:.6rem;right:.6rem;top:auto;bottom:calc(var(--tabbar-h) + .5rem + env(safe-area-inset-bottom))}
  #toast{bottom:calc(var(--tabbar-h) + 1rem + env(safe-area-inset-bottom))}
}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto}}

/* Modals sit above the phone tab bar (z 50) and More sheet (z 60); confirm opens over them. */
.modal{z-index:70}
#confirmModal{z-index:80}

/* ================= Stage 2: dashboard Today ================= */
.today-head{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;margin:0 0 1.2rem;flex-wrap:wrap}
.today-hello{font-family:var(--serif);font-weight:600;font-size:clamp(2rem,3.4vw,2.6rem);color:var(--navy);line-height:1.05;margin:0}
.today-sum{margin:.35rem 0 0;color:#5f6878;font-size:1rem}
.today-head__right{text-align:right}
.today-date{font-family:var(--serif);font-size:1.25rem;color:#5f6878;margin:0;font-variant-numeric:lining-nums}
.today-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:1.2rem;align-items:start;margin-bottom:1.6rem}
.today-side{display:flex;flex-direction:column;gap:1.2rem}
.today-card{background:#fff;border-radius:14px;padding:1rem 1.15rem;box-shadow:0 1px 0 rgba(28,43,74,.05),0 10px 24px -18px rgba(28,43,74,.45)}
.today-card__title{font-family:var(--serif);font-size:1.4rem;color:var(--navy);margin:0 0 .3rem;font-weight:600}
.today-eyebrow{font-size:.68rem;letter-spacing:.14em;font-weight:800;color:var(--gold-ink);text-transform:uppercase;margin:0 0 .3rem}
.today-row{display:grid;grid-template-columns:5.6rem minmax(0,1fr) auto;align-items:center;gap:.7rem;padding:.65rem 0;border-top:1px solid var(--line-warm)}
.today-row--cancelled .today-who b{text-decoration:line-through;color:#5f6878}
.today-time{white-space:nowrap;font-family:var(--serif);font-size:1.25rem;color:var(--gold-ink);font-weight:600;font-variant-numeric:lining-nums}
.today-who{min-width:0}
.today-who b{color:var(--navy);display:block}
.today-who small{display:block;color:#5f6878;font-size:.8rem;overflow-wrap:anywhere}
.today-in{color:var(--ok,#2f7d5b);font-weight:700;font-size:.85rem;white-space:nowrap}
.today-muted{color:#5f6878;font-size:.82rem;white-space:nowrap}
.today-empty{color:#5f6878;margin:.4rem 0}
.today-wait__line{margin:0;padding:.6rem 0;border-top:1px solid var(--line-warm)}
.linkish.today-link,.today-link{background:none;border:0;padding:0;cursor:pointer;font:inherit;font-weight:700;color:var(--navy);border-bottom:1.5px solid var(--gold);white-space:nowrap}
#dashSeeScheduleBtn{margin-top:.8rem;display:inline-block}
.today-figs{display:flex;gap:1.3rem;flex-wrap:wrap}
.today-fig b{display:block;font-family:var(--serif);font-size:1.7rem;color:var(--navy);font-weight:600;line-height:1.1;font-variant-numeric:lining-nums}
.today-fig span{color:#5f6878;font-size:.78rem}
.today-foot{margin:.8rem 0 0;color:#5f6878;font-size:.8rem}
@media (max-width:900px){
  .today-grid{grid-template-columns:1fr}
  .today-head__right{text-align:left}
  .today-row{grid-template-columns:3.4rem minmax(0,1fr) auto;gap:.4rem}
  .today-time{font-size:.82rem}
  .today-row .btn{padding-left:.7rem;padding-right:.7rem}
  .today-card{padding:1rem .85rem}
  .today-in{font-size:.78rem;white-space:normal;text-align:right}
  .today-row .btn{min-height:40px}
}

/* Today: overview strip across the top (takings first) */
.ov-strip{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.8rem;margin:0 0 1.2rem}
.ov-tile{background:#fff;border-radius:14px;padding:.85rem 1rem;box-shadow:0 1px 0 rgba(28,43,74,.05),0 10px 24px -18px rgba(28,43,74,.45);min-width:0}
.ov-tile b{display:block;font-family:var(--serif);font-size:1.75rem;font-weight:600;color:var(--navy);line-height:1.1;font-variant-numeric:lining-nums;overflow-wrap:anywhere}
.ov-tile span{display:block;color:#5f6878;font-size:.78rem;margin-top:.15rem}
.ov-tile--money{box-shadow:inset 0 3px 0 var(--gold),0 10px 24px -18px rgba(28,43,74,.45)}
.ov-tile--wide{grid-column:span 3}
@media (max-width:1180px){.ov-strip{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:900px){.ov-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}.ov-tile b{font-size:1.45rem}.ov-tile--wide{grid-column:1 / -1}}

/* ================= Stage 2: portal Home ================= */
.home-head{margin:0 0 1rem}
.home-head h2{font-family:var(--serif);font-size:clamp(2rem,3.4vw,2.6rem);color:var(--navy);margin:0;line-height:1.05}
.home-sum{margin:.35rem 0 0;color:#5f6878}
.home-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem;margin:0 0 1.2rem}
.home-act{all:unset;cursor:pointer;box-sizing:border-box;background:#fff;border-radius:14px;padding:.85rem .6rem;text-align:center;font:700 .9rem var(--sans);color:var(--navy);box-shadow:0 8px 20px -16px rgba(28,43,74,.55);min-height:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.2rem}
.home-act > span[aria-hidden="true"]{font-size:1.2rem;line-height:1}
.home-act:hover{box-shadow:0 10px 22px -14px rgba(28,43,74,.6)}
.home-act--main{background:var(--navy);color:#fff}
.home-act--done{background:var(--gold);color:var(--navy)}
.home-act:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.home-top{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
.home-next{background:var(--navy);color:#f4efe6;border-radius:16px;padding:1.2rem 1.3rem;height:100%;box-sizing:border-box}
.home-eyebrow{font-size:.68rem;letter-spacing:.14em;font-weight:800;color:var(--gold);text-transform:uppercase;margin:0 0 .3rem}
.home-next__title{font-family:var(--serif);font-size:1.9rem;color:#fff;margin:0;line-height:1.1}
.home-next__when{font-family:var(--serif);font-size:1.2rem;color:var(--gold);margin:.2rem 0 0;font-variant-numeric:lining-nums}
.home-next__links{margin:.9rem 0 0;display:flex;gap:1rem}
.home-next__note{margin:.8rem 0 0;font-size:.82rem;color:#cfc8b8}
.home-next__note a{color:#fff}
.home-link{background:none;border:0;padding:0;cursor:pointer;font:inherit;font-weight:700;color:var(--navy);text-decoration:underline;text-decoration-color:var(--gold);text-decoration-thickness:1.5px;text-underline-offset:4px}
.home-link--light{color:#fff}
.home-card{background:#fff;border-radius:16px;padding:1.1rem 1.2rem;box-shadow:0 1px 0 rgba(28,43,74,.05),0 10px 24px -18px rgba(28,43,74,.45);height:100%;box-sizing:border-box}
.home-card__title{font-family:var(--serif);font-size:1.4rem;color:var(--navy);margin:0 0 .5rem;font-weight:600}
.home-bar{padding:.5rem 0;border-top:1px solid var(--line-warm)}
.home-bar__row{display:flex;justify-content:space-between;gap:.6rem}
.home-bar__row b{color:var(--navy)}
.home-bar__track{height:7px;border-radius:99px;background:var(--cream-deep);overflow:hidden;margin-top:.4rem}
.home-bar__track i{display:block;height:100%;background:var(--gold);border-radius:99px}
.home-bar small{display:block;color:#5f6878;font-size:.76rem;margin-top:.3rem}
.home-muted{color:#5f6878;margin:.2rem 0 .5rem}
/* The win-back offer sits in the row of cards under the next class, as a
   compact card of its own: four across on a laptop, two on a mid screen,
   stacked on a phone. No offer and the row stays three across. */
.dash-grid3 > #dashOffers:empty{display:none}
.dash-grid3:has(> #dashOffers:not(:empty)){grid-template-columns:repeat(4,minmax(0,1fr))}
.dash-grid3 > #dashOffers{display:flex;flex-direction:column;gap:1rem;min-width:0}
.dash-grid3 #dashOffers .offer-card{margin:0;padding:1.1rem;flex:1;display:flex;flex-direction:column;border-radius:14px}
.dash-grid3 #dashOffers .promo-preview-card__eyebrow{font-size:.85rem;letter-spacing:.04em;margin-bottom:.4rem}
.dash-grid3 #dashOffers .promo-preview-card__title{font-size:1.3rem;margin-bottom:.4rem}
.dash-grid3 #dashOffers .promo-preview-card__body{font-size:1rem;line-height:1.45;margin-bottom:.8rem}
.dash-grid3 #dashOffers .promo-preview-offers{margin-bottom:.6rem}
.dash-grid3 #dashOffers .promo-preview-offer{padding:.55rem .4rem}
.dash-grid3 #dashOffers .promo-preview-offer__price{font-size:1.15rem}
.dash-grid3 #dashOffers .promo-preview-offer__deal{font-size:.9rem}
.dash-grid3 #dashOffers .promo-preview-offer__reg{font-size:.85rem}
.dash-grid3 #dashOffers .offer-card .btn{margin-top:auto;align-self:flex-start;font-size:1rem;padding:.55em 1.2em;min-height:44px}
@media (max-width:1180px){.dash-grid3:has(> #dashOffers:not(:empty)){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:900px){
  .dash-grid3:has(> #dashOffers:not(:empty)){grid-template-columns:1fr}
  .home-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-link{display:inline-flex;align-items:center;min-height:40px}
  .home-act span#checkInLabel{max-width:100%;overflow-wrap:anywhere}
  .home-top{grid-template-columns:1fr}
}

/* Reports has its own place in the nav now. The old menu entry stays in the
   page (scripts and tests look for its id) but is not shown. */
#reportsMenuBtn{display:none}

/* ================= Stage 3: Clients ================= */
.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.client-chips{display:flex;flex-wrap:wrap;gap:.45rem;margin:.6rem 0 1rem}
.client-chip{all:unset;cursor:pointer;padding:.42rem .9rem;border-radius:999px;background:#fff;box-shadow:inset 0 0 0 1px var(--line-warm);font:600 .85rem var(--sans);color:var(--navy);min-height:24px}
.client-chip.on{background:var(--navy);color:#fff;box-shadow:none}
.client-chip:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.crow{display:grid;grid-template-columns:2.4rem minmax(0,1fr) auto auto;align-items:center;gap:.8rem;padding:.7rem .8rem;border-radius:12px;cursor:pointer}
.crow:hover{background:#fff}
.crow.is-open{background:#fff;box-shadow:inset 3px 0 0 var(--gold),0 8px 20px -16px rgba(28,43,74,.6)}
.crow:focus-visible{outline:2px solid var(--gold);outline-offset:1px}
.crow__id{min-width:0}
.crow__name{display:block;color:var(--navy);overflow-wrap:anywhere}
.crow__meta{display:block;color:#5f6878;font-size:.8rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crow__facts{color:#5f6878;font-size:.82rem;text-align:right;white-space:nowrap}
.ctag{display:inline-block;margin-left:.4rem;padding:.1rem .5rem;border-radius:999px;font-size:.72rem;font-weight:700}
.ctag--owes{background:#fbeedd;color:#7a4e0c}
.ctag--low{background:var(--cream-deep);color:var(--gold-ink)}
.crow__book{min-height:32px}
@media (max-width:900px){
  .client-chip{min-height:40px;display:inline-flex;align-items:center;box-sizing:border-box}
  .crow{grid-template-columns:2.2rem minmax(0,1fr) auto;row-gap:.2rem}
  .crow__facts{grid-column:2;text-align:left;white-space:normal}
  .crow__book{grid-row:1 / span 2;grid-column:3;min-height:40px}
}

/* Client page */
.clients-split{display:block}
body.client-panel-open .clients-split{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:1.2rem;align-items:start}
.client-panel{background:#fff;border-radius:16px;padding:1.2rem 1.25rem;box-shadow:0 1px 0 rgba(28,43,74,.05),0 10px 24px -18px rgba(28,43,74,.45);position:sticky;top:1rem;max-height:calc(100vh - 2rem);overflow-y:auto}
.client-panel.hidden{display:none}
.client-panel__back{all:unset;cursor:pointer;color:#5f6878;font-size:.85rem;display:none}
.client-panel__name{font-family:var(--serif);font-size:1.9rem;color:var(--navy);margin:.1rem 0 .1rem;line-height:1.1}
.client-panel__contact{color:#5f6878;font-size:.85rem;margin:0 0 .9rem;overflow-wrap:anywhere}
/* Client page: Text | Call on their own line under the email and phone. */
.client-panel__reach{display:flex;align-items:center;gap:.6rem;margin-top:.35rem;font-size:.95rem}
.client-panel__reach span{color:#5f6878}
.client-panel__reach a{display:inline-flex;align-items:center;min-height:40px}
.client-panel__name:focus{outline:none}
.client-panel__pills{margin:-.4rem 0 .9rem;display:flex;gap:.4rem;flex-wrap:wrap}
.client-panel__pill{background:var(--cream);color:#5f6878;border-radius:999px;padding:.15rem .6rem;font-size:.75rem;font-weight:700}
.client-panel__sum{background:var(--cream);border-radius:12px;padding:.8rem .95rem;margin-bottom:.9rem}
.client-panel__sum p{margin:0 0 .3rem}
.client-panel__sum p:last-child{margin:0}
.client-panel__sum .is-owes{color:#7a4e0c}
.client-panel__book{display:block;width:100%;min-height:44px;margin-bottom:.8rem}
.client-panel__acts{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
.client-panel__acts button{all:unset;cursor:pointer;box-sizing:border-box;background:var(--cream);border-radius:10px;padding:.6rem .7rem;font:700 .85rem var(--sans);color:var(--navy);min-height:40px;display:flex;align-items:center}
.client-panel__acts button:hover{background:var(--cream-deep)}
.client-panel__acts button:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.client-panel__visit{display:flex;justify-content:space-between;gap:.6rem;padding:.5rem 0;border-top:1px solid var(--line-warm);font-size:.88rem}
@media (max-width:900px){
  body.client-panel-open .clients-split{display:block}
  /* Runs under the tab bar (z 50) to the bottom edge, padded clear of it, so
     no strip of the list shows between the sheet and the bar. */
  .client-panel{position:fixed;inset:0;border-radius:0;max-height:none;z-index:45;padding-top:1rem;padding-bottom:calc(var(--tabbar-h) + 1rem + env(safe-area-inset-bottom))}
  .client-panel__back{display:inline-flex;align-items:center;min-height:40px}
  body.client-panel-open{overflow:hidden}
}
/* What's new shortcut: a fourth button in the side menu's foot, so the name
   above them gets its own line; on a phone it sits beside refresh. */
.shell-foot{flex-wrap:wrap}
.shell-who{flex-basis:100%}
.shell-top__btns{display:flex;gap:.45rem}

/* Reports: calmer cards. Rows line up in height, each card leads with one
   serif figure, and the status labels are one quiet lowercase pill style. */
.reports-grid{align-items:stretch;gap:1.1rem}
.reports-grid .ov-title{margin:0 0 .35rem}
.reports-grid .rep-figure{font-family:var(--serif);font-size:1.9rem;line-height:1.1;color:var(--navy);margin:0 0 .25rem;font-variant-numeric:lining-nums}
.reports-grid .rep-figure span{font-family:inherit;font-size:1rem;color:var(--muted,#5f6878)}
.reports-grid .note{color:var(--muted,#5f6878)}
.reports-grid section:not(.rep-open) .rep-extra{display:none}
.rep-more{background:none;border:0;padding:.6rem 0 0;min-height:40px;font:inherit;font-size:.88rem;font-weight:600;color:var(--navy);text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:4px;cursor:pointer}
.rep-lines{margin:0 0 .6rem;padding:.2rem 0 .8rem;border-bottom:1px solid var(--line-warm,#e8dfcd)}
.rep-line{margin:.35rem 0;font-size:.92rem;line-height:1.5}
.reports-grid .viz-legend{display:grid;grid-template-columns:1fr 1fr;gap:.45rem 1rem}
.reports-grid .viz{cursor:pointer}
@media(max-width:720px){.reports-grid .viz-legend{grid-template-columns:1fr}}
/* On a phone the time-slot grid keeps a readable size and slides sideways
   inside its card instead of shrinking to a strip. */
@media(max-width:720px){.rep-scroll{overflow-x:auto;margin:0 -.4rem;padding:0 .4rem}.rep-scroll .viz{min-width:600px}}
.reports-grid > section{min-width:0}
@media(max-width:720px){.reports-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:720px){
  .reports-grid .hist-row{display:grid;grid-template-columns:1fr auto;gap:.3rem .8rem}
  .reports-grid .hist-when{grid-column:1;grid-row:1;display:flex;gap:.5rem;align-items:baseline}
  .reports-grid .hist-row__right{grid-column:2;grid-row:1;margin:0}
  .reports-grid .hist-svc{grid-column:1/-1}
}
/* Clients report: every name button the same size, names left-aligned. */
.btn-chip.crep-name{width:9rem;min-height:40px;justify-content:flex-start;text-align:left;white-space:normal;line-height:1.25}
/* Monthly: money figures are whole dollars and can never spill out of the card. */
.stat{min-width:0}
.stat__value--money{font-size:clamp(1.5rem,2.4vw,2.15rem);overflow-wrap:anywhere}
#clientsReportBody th,#clientsReportBody td{padding-left:.75rem;padding-right:.75rem}

/* ================= Stage 4: shared calm pieces ================= */
/* Status pills: lowercase, rounded, one colour per meaning. Reports' older
   .rep-pill names are the same pill. */
.s-pill,.rep-pill{display:inline-block;font:600 .76rem/1.4 var(--sans);letter-spacing:0;text-transform:none;padding:.15em .65em;border-radius:999px;white-space:nowrap;vertical-align:middle;background:#eceef3;color:var(--navy)}
.s-pill--ok,.rep-pill--ok{background:#e2efe7;color:#2f6a50}
.s-pill--warn,.rep-pill--warn{background:#f6ecd4;color:#7a5a12}
.s-pill--bad,.rep-pill--bad{background:#f6e3de;color:#8a3b2a}
.s-pill--gold,.rep-pill--gold{background:var(--cream-deep);color:var(--gold-ink)}
.rep-pill{padding:.2em .7em;line-height:inherit}
.s-pill--navy{background:#eceef3;color:var(--navy)}
/* A section marked .s-calm draws the older all-caps chips (.pill, .tag-*)
   as the same calm pills, so no render function has to change. */
.s-calm :is(.pill,.tag-recurring,.tag-unpaid,.tag-cancelled,.tag-changed){display:inline-block;font:600 .76rem/1.4 var(--sans);letter-spacing:0;text-transform:none;padding:.15em .65em;border-radius:999px;white-space:nowrap;vertical-align:middle;background:#eceef3;color:var(--navy)}
.s-calm .pill--ok{background:#e2efe7;color:#2f6a50}
.s-calm :is(.pill--pending,.pill--warn,.tag-unpaid){background:#f6ecd4;color:#7a5a12}
.s-calm :is(.pill--bad,.tag-cancelled){background:#f6e3de;color:#8a3b2a}
.s-calm .tag-unpaid__when{opacity:1;font-weight:500}
.s-calm :is(.wk-appt,.wk-class) :is(.tag-unpaid,.tag-recurring,.tag-cancelled,.tag-changed){white-space:normal;max-width:100%;border-radius:8px}
.s-calm .note.note--warn{background:#f6ecd4;color:#7a5a12;padding:.7rem .9rem;border-radius:10px}
/* Notes: one short muted sentence, no tinted box. */
.s-note,.s-calm .note{background:none;border-radius:0;padding:0;margin:.1rem 0 1rem;font-size:.88rem;line-height:1.5;color:#5f6878;max-width:72ch}
.s-note strong,.s-calm .note strong{color:var(--navy);font-weight:600}
.s-calm .updated{color:#5f6878}
/* Secondary actions: gold-underlined text links. Quiet ones (Stop, Delete)
   are muted until hovered; danger ones are a muted red. */
.s-link{all:unset;box-sizing:border-box;cursor:pointer;display:inline-flex;align-items:center;min-height:32px;font:600 .88rem var(--sans);color:var(--navy);text-decoration:underline;text-decoration-color:var(--gold);text-decoration-thickness:1.5px;text-underline-offset:4px;white-space:nowrap}
.s-link:hover{color:#24365c}
.s-link:focus-visible{outline:2px solid var(--gold);outline-offset:2px;border-radius:4px}
.s-link:disabled{opacity:.5;cursor:default}
.s-link--quiet{color:#5f6878;font-weight:500;text-decoration-color:transparent}
.s-link--quiet:hover{color:var(--navy);text-decoration-color:currentColor}
.s-link--danger,.s-link--danger:hover{color:#8a3b2a}
.s-rowlinks{display:flex;align-items:center;gap:1.1rem;flex:none}
/* A row of actions: secondary links first, the one solid button last. */
.s-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem 1rem;margin-top:1.2rem}
.s-actions .s-link{font-size:.85rem}
.s-actions__main{margin-left:auto}
.s-iconbtn{display:inline-grid;place-items:center;width:2.1rem;height:2.1rem;padding:0;border-radius:999px;border:1px solid var(--line-warm);background:#fff;color:var(--navy);font-size:1rem;line-height:1;cursor:pointer;flex:none}
.s-iconbtn:hover{background:var(--cream)}
.s-iconbtn:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
/* One view switcher per section (rounded, like the Profile switch), and
   underline tabs for a view's own sub-views. Both sit on .seg elements, so
   these override admin.css's .seg look. */
.s-views{display:inline-flex;flex-wrap:wrap;gap:.2rem;background:var(--cream-deep);border-radius:999px;padding:.2rem;margin:0 0 1.1rem}
.s-views button{border:0;background:transparent;cursor:pointer;padding:.45rem 1rem;border-radius:999px;font:600 .88rem var(--sans);color:#5f6878}
.s-views button.active{background:#fff;color:var(--navy);box-shadow:0 1px 3px rgba(28,43,74,.15)}
.s-views button:focus-visible,.s-subviews button:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.s-views .muted{color:inherit;font-weight:500}
.s-subviews{display:flex;flex-wrap:wrap;gap:0 1.3rem;background:none;padding:0;border-radius:0;border-bottom:1px solid var(--line-warm);margin:0 0 1rem}
.s-subviews button{border:0;background:none;box-shadow:none;cursor:pointer;padding:.5rem 0;margin-bottom:-1px;border-radius:0;border-bottom:2px solid transparent;font:600 .88rem var(--sans);color:#5f6878}
.s-subviews button.active{background:none;box-shadow:none;color:var(--navy);border-bottom-color:var(--gold)}
/* A money figure in serif, like the Reports cards. */
.s-figure{font-family:var(--serif);font-weight:600;font-size:1.5rem;line-height:1.1;color:var(--navy);font-variant-numeric:lining-nums}
.s-figure small{font-family:var(--sans);font-size:.8rem;font-weight:500;color:#5f6878;margin-left:.3rem}
.s-figure-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.2rem 1rem}
/* A tick box with a finger-sized target. */
.s-check{display:inline-flex;align-items:center;justify-content:center;min-width:40px;min-height:40px;cursor:pointer}
@media (max-width:900px){
  .s-views{display:grid;grid-template-columns:1fr 1fr;border-radius:16px;width:100%;box-sizing:border-box}
  .s-views button{min-height:40px;padding:.4rem .6rem;text-align:center}
  .s-subviews button{min-height:40px}
  .s-calm :is(button,.btn,select):not(.newsletter-preview *,.rich-editor *,.wk-open,.week-nav__arrow){min-height:40px}
  .s-calm .week-nav__arrow{width:40px;height:40px}
  .s-calm :is(.console-live,.pay-emailopt,.promo-active-toggle){display:inline-flex;align-items:center;min-height:40px}
  .s-link{min-height:40px}
  .s-iconbtn{width:2.6rem;height:2.6rem}
  .s-actions{flex-direction:column;align-items:stretch;gap:.5rem}
  .s-calm .s-actions.s-actions > *{width:100%;justify-content:center;min-height:44px}
  .s-actions .s-link{background:var(--cream-deep);border-radius:999px;text-decoration:none}
  .s-actions__main{margin-left:0}
}

/* ================= Stage 4: Schedule ================= */
/* One toolbar row: range, sort, add, block, export, refresh, updated. */
.appt-toolbar.s-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;margin:0 0 1.1rem}
.s-toolbar .seg{flex:none}
.s-toolbar .updated{margin:0 0 0 auto;white-space:nowrap;font-size:.8rem}
.s-toolbar .updated:empty{display:none}
/* Gold serif times, as on Today. */
.s-calm .appt__time{font-family:var(--serif);font-size:1.2rem;font-weight:600;color:var(--gold-ink);font-variant-numeric:lining-nums}
/* Plain --gold text is only readable on the navy class cards; use --gold-ink on light backgrounds. */
.s-calm .class-slot__time{font-family:var(--serif);font-size:1.05rem;font-weight:600;color:var(--gold);font-variant-numeric:lining-nums}
.s-calm .wk-appt .wk-time{font-family:var(--serif);font-size:.9rem;color:var(--gold-ink);font-variant-numeric:lining-nums}
.s-calm .wk-class .wk-time{font-family:var(--serif);font-size:.9rem;color:var(--gold);font-variant-numeric:lining-nums}
/* Open slots match the booked card height (the serif time makes booked cards ~51px). */
.s-calm .wk-open{min-height:50.8px}
.s-calm .open-slots__head{text-transform:none;letter-spacing:0;font-size:.82rem}
@media (max-width:900px){
  .s-toolbar #rangeSeg,.s-toolbar #apptSortSeg{flex:1 1 150px;display:flex}
  .s-toolbar .seg button{flex:1;white-space:nowrap;padding:.4em .5em}
  .s-toolbar .updated{flex-basis:100%;margin:0}
  .s-calm .appt__time{font-size:1rem;white-space:nowrap}
}

/* ================= Stage 4: Money ================= */
#panel-payments .s-views{margin-top:.2rem}
#panel-payments .appt-row{border-color:var(--line-warm);border-radius:14px}
@media (max-width:900px){
  #panel-payments .s-rowlinks{width:100%;justify-content:flex-start}
}

/* ================= Stage 4: Messages ================= */
/* The compose and promo forms sit beside their previews. Columns may shrink
   below their content, so a wide row of fields can't run under the divider. */
.newsletter-grid{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);column-gap:1.4rem}
.newsletter-grid::before{display:none}
.newsletter-grid > .newsletter-preview{border-left:1px solid var(--line-warm);padding-left:1.4rem;min-width:0}
#panel-comms .field-row{grid-template-columns:repeat(3,minmax(0,1fr))}
#panel-comms .field input{min-width:0}
#panel-comms .field-row:has(#promoStarts){grid-template-columns:repeat(2,minmax(0,1fr))}
#promoStarts,#promoEnds{padding-left:.6em;padding-right:.6em}
#panel-comms .s-views{margin-top:.2rem}
#panel-comms .s-note + .field,#panel-comms .s-note + .promo-active-toggle{margin-top:.2rem}
#panel-comms .appt-row{border-color:var(--line-warm);border-radius:14px}
#panel-comms .rich-toolbar button{min-height:32px}
@media (max-width:860px){.newsletter-grid{grid-template-columns:minmax(0,1fr)}.newsletter-grid > .newsletter-preview{border-left:0;padding-left:0}}
@media (max-width:1180px){#panel-comms .field-row:has(#promoStarts){grid-template-columns:minmax(0,1fr)}}
@media (max-width:640px){#panel-comms .field-row{grid-template-columns:minmax(0,1fr)}}
@media (max-width:900px){
  #panel-comms .s-rowlinks{width:100%;justify-content:flex-start}
  #panel-comms .rich-toolbar button{min-height:40px;min-width:40px}
  #panel-comms .console-bar select{flex:1 1 140px}
}
/* Week view: on a laptop all seven days share the width, so Saturday never
   hides off the right edge. Narrow tablets keep the sideways slide, and
   phones keep the one-column stack (admin.css, ≤640px). */
@media(min-width:1150px){
  .week-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));overflow-x:visible}
  .week-day{min-width:0}
  .week-day .wk-name{overflow-wrap:break-word}
  .week-day .wk-open{padding-left:.4rem;padding-right:.4rem}
}

/* ================= Stage 5: portal ================= */
/* Everything from here down is scoped to body.portal (account/index.html), so
   the dashboard, which loads this same sheet, cannot change. Clients are
   mostly over 55: body text 16px, small labels 14px, tap targets 44px,
   contrast 4.5:1 or better. Only tokens from this sheet's :root are used. */
.portal #appView main{font-size:1rem}
/* The one sentence under a page heading. */
.portal .p-sum{margin:-.5rem 0 1.4rem;max-width:68ch;font-size:1.0625rem;line-height:1.55;color:#5f6878}
.portal .p-sum:empty{display:none}
.portal .p-sum strong{color:var(--navy)}
/* A plain white card. */
.portal .p-card{background:#fff;border-radius:14px;padding:1.2rem 1.3rem;box-shadow:0 1px 0 rgba(28,43,74,.05),0 10px 24px -18px rgba(28,43,74,.45)}
.portal .p-card__title{font-family:var(--serif);font-weight:600;font-size:1.4rem;line-height:1.2;color:var(--navy);margin:0 0 .5rem;font-variant-numeric:lining-nums}
.portal .p-card p{font-size:1rem;line-height:1.6;color:var(--navy);margin:0 0 .7rem}
.portal .p-card p:last-child{margin-bottom:0}
/* Buttons: one height and one text size everywhere in the portal; never the
   dashboard's small chip. Ghost buttons get an edge you can see. */
.portal :is(#appView,.modal) .btn{min-height:44px;box-sizing:border-box;padding:.55em 1.3em;font-size:1rem;font-weight:600}
.portal :is(#appView,.modal) .btn--ghost{background:#fff;color:var(--navy);border:1.5px solid var(--navy)}
.portal :is(#appView,.modal) .btn--ghost:hover{background:var(--cream-deep)}
.portal .s-link{min-height:44px;font-size:1rem}
.portal .s-pill{font-size:.875rem}
.portal .s-iconbtn{width:44px;height:44px;font-size:1.1rem}
.portal .s-iconbtn:disabled{cursor:default;background:var(--cream-deep);border-color:transparent;color:#5f6878}
/* Notes: a plain muted sentence, no tinted box. */
.portal :is(#appView,.modal) .note{background:none;border-radius:0;padding:0;margin:0 0 1rem;font-size:1rem;line-height:1.55;color:#5f6878}
.portal :is(#appView,.modal) .note:last-child{margin-bottom:0}
.portal :is(#appView,.modal) .note a{color:var(--navy);text-decoration-color:var(--gold);text-underline-offset:3px}
.portal :is(#appView,.modal) .msg{font-size:1rem}
.portal #appView .empty{border:0;border-radius:14px;background:#fff;color:#5f6878;font-size:1rem}
/* Form fields: sentence-case 16px labels, 48px fields, an edge you can see. */
.portal :is(#appView,.modal) .field label{font-size:1rem;font-weight:600;letter-spacing:0;text-transform:none;color:var(--navy);margin-bottom:.4rem}
.portal :is(#appView,.modal) .field :is(input,textarea,select){font-size:1rem;background-color:#fff;border:1px solid #948b78;color:var(--navy)}
.portal :is(#appView,.modal) .field :is(input,select){min-height:48px;box-sizing:border-box}
.portal :is(#appView,.modal) .field :is(input,textarea)::placeholder{color:#6b6f78}
/* Booking for: stays straight under the top bar, bigger and plainer. */
.portal .acct-switch{gap:.5rem .8rem;padding:.6rem clamp(1rem,3vw,2rem);background:var(--cream-deep);border-bottom:1px solid var(--line-warm);font-size:1rem}
.portal .acct-switch label{font-size:1rem;font-weight:700;color:var(--navy)}
.portal .acct-switch select{min-height:44px;font-size:1rem;border:1px solid #948b78;border-radius:10px;background-color:#fff;color:var(--navy)}
/* Profile's two views (Details & credits, Intake & waiver). */
.portal .section-switch button:focus-visible{outline:2px solid var(--navy);outline-offset:2px}
.portal .section-switch button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;box-sizing:border-box;padding:0 1.1rem;font-size:1rem}
@media (max-width:900px){
  .portal .section-switch{display:grid;grid-template-columns:1fr 1fr;width:100%;box-sizing:border-box;border-radius:16px}
  .portal .section-switch button{padding:.3rem .5rem;text-align:center}
}
/* ---- Stage 5: Book ---- */
.portal .sched-week{display:flex;align-items:center;gap:.8rem;margin:0 0 1rem}
.portal .sched-week__range{min-width:9rem;text-align:center;font-family:var(--serif);font-weight:600;font-size:1.35rem;color:var(--navy);font-variant-numeric:lining-nums}
/* Each day is a white row: the date on the left, its classes beside it.
   Seven 150px columns made class names wrap to three lines. flex-direction
   must be set: admin.css makes .sched-col a column, and in a column the
   19rem basis below becomes each class's HEIGHT. */
.portal #schedBody .sched-cols{display:flex;flex-direction:column;gap:.7rem;padding:0}
.portal #schedBody .sched-col{position:relative;display:flex;flex-direction:row;flex-wrap:wrap;align-items:stretch;gap:.6rem;min-width:0;min-height:4.6rem;padding:.9rem 1rem .9rem 10.5rem;background:#fff;border:0;border-radius:14px;box-shadow:0 1px 0 rgba(28,43,74,.05),0 10px 24px -18px rgba(28,43,74,.45)}
.portal #schedBody .sched-col__head{position:absolute;left:1.2rem;top:1.1rem;width:8.6rem;margin:0;text-align:left;font-family:var(--serif);font-weight:600;font-size:1.3rem;line-height:1.2;color:var(--navy);font-variant-numeric:lining-nums}
.portal #schedBody .sched-col__none{align-self:center;padding:0;text-align:left;font-size:1rem;color:#5f6878}
/* A class: gold serif time, then the name and a spots-left pill beside it. */
.portal #schedBody .sched-slot{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:.8rem;row-gap:.3rem;align-items:baseline;flex:0 1 19rem;min-width:0;min-height:56px;box-sizing:border-box;padding:.7rem .95rem;text-align:left;border:1px solid var(--line-warm);border-radius:12px;background:var(--cream);color:var(--gold-ink);font-family:var(--serif);font-weight:600;font-size:1.3rem;line-height:1.2;font-variant-numeric:lining-nums;cursor:pointer}
.portal #schedBody .sched-slot:not(:disabled):hover{border-color:var(--gold);background:#fff}
.portal #schedBody .sched-slot:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.portal #schedBody .sched-slot__title{grid-column:2;display:block;opacity:1;font-family:var(--sans);font-weight:600;font-size:1rem;line-height:1.35;color:var(--navy);white-space:normal;overflow-wrap:anywhere}
.portal #schedBody .sched-slot__left{grid-column:2;justify-self:start;display:inline-block;padding:.05em .65em;border-radius:999px;background:#f6ecd4;color:#7a5a12;font-family:var(--sans);font-weight:600;font-size:.875rem;line-height:1.5}
.portal #schedBody .sched-slot--mine{background:#fff;border-color:var(--gold);cursor:default}
.portal #schedBody .sched-slot--mine .sched-slot__left{background:#e2efe7;color:#2f6a50}
/* Started, or nothing to book with: a dashed, grey card, still readable. */
.portal #schedBody .sched-slot--locked{opacity:1;cursor:not-allowed;background:var(--cream-deep);border-style:dashed;color:#5f6878}
.portal #schedBody .sched-slot--locked .sched-slot__title{color:#5f6878}
.portal #schedBody .sched-slot--locked .sched-slot__left{background:#eceef3;color:var(--navy)}
.portal .p-aside{margin-top:1.6rem;max-width:72ch}
/* The two pop-up pickers (Book a session, Pick a new time) share the slot button. */
.portal .modal .sched-nav{gap:.8rem;font-size:1rem;color:var(--navy)}
.portal .modal .sched-nav button{width:44px;height:44px;font-size:1.1rem;color:var(--navy)}
.portal .modal .sched-col{background:#fff;border-color:var(--line-warm);min-width:150px}
.portal .modal .sched-col__head{font-family:var(--serif);font-weight:600;font-size:1.15rem;font-variant-numeric:lining-nums}
.portal .modal .sched-col__none{font-size:1rem;color:#5f6878}
.portal .modal .sched-slot{min-height:48px;font-family:var(--serif);font-weight:600;font-size:1.2rem;color:var(--gold-ink);font-variant-numeric:lining-nums}
.portal .modal .sched-slot--locked{opacity:1;background:var(--cream-deep);border-style:dashed;color:#5f6878}
.portal #bookBackToPackages{display:inline-flex;align-items:center;min-height:44px;font-size:1rem;font-weight:600;color:var(--navy);text-decoration-color:var(--gold);text-underline-offset:4px}
@media (max-width:900px){
  .portal .sched-week{justify-content:space-between}
  .portal #schedBody .sched-col{flex-direction:column;padding:1rem}
  .portal #schedBody .sched-col__head{position:static;width:auto}
  .portal #schedBody .sched-slot{flex:none;width:100%}
}

/* ---- Stage 5: My sessions ---- */
/* Left-aligned like every other page (it used to sit in a centred 760px column). */
.portal #panel-history :is(.panel__head,.toolbar,.p-sum){max-width:880px;margin-inline:0}
.portal #historyBody{max-width:880px;margin-inline:0}
.portal #histTools{flex-direction:column;align-items:stretch;gap:.4rem;margin-bottom:1.2rem}
.portal #histTools label{font-size:1rem;font-weight:600;color:var(--navy)}
.portal #histSearch{min-height:48px;box-sizing:border-box;padding:.6em .9em;font-size:1rem;border:1px solid #948b78;border-radius:10px;background:#fff;color:var(--navy)}
.portal #histSearch::placeholder{color:#6b6f78}
.portal .hist-month{border:0;border-radius:14px;margin-bottom:.7rem;background:#fff;box-shadow:0 1px 0 rgba(28,43,74,.05),0 10px 24px -18px rgba(28,43,74,.45)}
.portal .hist-month__head{min-height:52px;box-sizing:border-box;padding:.5rem 1.1rem}
.portal .hist-month__head::after{border-color:var(--navy)}
.portal .hist-month__label{font-family:var(--serif);font-weight:600;font-size:1.35rem;color:var(--navy);font-variant-numeric:lining-nums}
.portal .hist-month__count{font-size:1rem;color:#5f6878}
.portal .hist-month--empty{min-height:52px;box-sizing:border-box;padding:.5rem 1.1rem;background:none;box-shadow:none;border:1px dashed var(--line-warm)}
.portal .hist-month--empty .hist-month__label{font-size:1.15rem;color:#5f6878}
.portal .hist-month__body{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:.4rem 2rem;padding:0 1.1rem 1rem}
.portal .hist-pkg__head{gap:.5rem;margin:.3rem 0 .2rem}
/* The package a group came off, and "missed": calm lowercase-style pills. */
.portal .hist-pill{display:inline-block;margin:0;padding:.1em .7em;border-radius:999px;background:var(--cream-deep);color:var(--navy);font-family:var(--sans);font-weight:600;font-size:.875rem;line-height:1.5;letter-spacing:0;text-transform:none}
.portal .hist-pill--off{margin-left:.2rem;background:#f6e3de;color:#8a3b2a}
.portal .hist-pkg__none{font-size:1rem;font-weight:600;letter-spacing:0;color:#5f6878}
.portal .hist-pkg__n{font-size:.875rem;color:#5f6878}
.portal .hist-item{align-items:baseline;gap:.8rem;padding:.45rem 0;font-size:1rem;border-top:1px solid var(--line-warm)}
.portal .hist-item__day{min-width:4rem;font-weight:700;color:var(--navy)}
.portal .hist-item__time{min-width:5.2rem;font-family:var(--serif);font-weight:600;font-size:1.15rem;color:var(--gold-ink);font-variant-numeric:lining-nums}
.portal .hist-item__svc{white-space:normal;color:var(--navy)}

/* ---- Stage 5: Shop, and the Buy, Book and Gift card pop-ups ---- */
.portal #servicesBody .buy-grid{gap:1.1rem;align-items:start}
.portal :is(#servicesBody,.modal) .buy-card{border:0;border-radius:14px;padding:1.2rem 1.3rem;background:#fff;box-shadow:0 1px 0 rgba(28,43,74,.05),0 10px 24px -18px rgba(28,43,74,.45)}
.portal .modal .buy-card{box-shadow:none;border:1px solid var(--line-warm)}
.portal :is(#servicesBody,.modal) .buy-card h4{font-family:var(--serif);font-weight:600;font-size:1.45rem;line-height:1.15;color:var(--navy);margin:0 0 .6rem;font-variant-numeric:lining-nums}
/* A price row: what it is, the price in serif, the button. */
.portal :is(#servicesBody,.modal) .pkg-row{grid-template-columns:minmax(0,1fr) auto auto;gap:.9rem;padding:.65rem 0;font-size:1rem;color:var(--navy);border-bottom-color:var(--line-warm)}
.portal :is(#servicesBody,.modal) .pkg-row > span:nth-child(2){font-family:var(--serif);font-weight:600;font-size:1.3rem;color:var(--navy);font-variant-numeric:lining-nums;white-space:nowrap}
.portal :is(#servicesBody,.modal) .pkg-row--credit{padding:.65rem .8rem;border-radius:10px;background:var(--cream-deep);font-weight:600}
/* Buy and Subscribe sit on every row, so none of them is the card's one
   solid button: outlined, filling in on hover. */
.portal .pkg-row .btn:is([data-buy-pkg],[data-buy-link]){background:#fff;color:var(--navy);border:1.5px solid var(--navy);min-width:6.5rem}
.portal .pkg-row .btn:is([data-buy-pkg],[data-buy-link]):hover{background:var(--navy);color:#fff}
.portal #servicesBody .svc-book{margin-top:.6rem}
.portal #servicesBody .svc-arrange{margin:.8rem 0 0}
.portal #svcPromo:empty{display:none}
/* Gift card amounts: four 44px choices, the picked one solid. */
.portal #giftAmountSeg{gap:.4rem;background:none;padding:0}
.portal #giftAmountSeg button{min-height:44px;min-width:72px;box-sizing:border-box;padding:0 1rem;border:1.5px solid var(--line-warm);border-radius:999px;background:#fff;font-size:1rem;font-weight:600;color:var(--navy)}
.portal #giftAmountSeg button.active{background:var(--navy);border-color:var(--navy);color:#fff;box-shadow:none}
@media (max-width:560px){
  .portal :is(#servicesBody,.modal) .pkg-row{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"label btn" "price btn";row-gap:.15rem}
  .portal :is(#servicesBody,.modal) .pkg-row > span:nth-child(1){grid-area:label}
  .portal :is(#servicesBody,.modal) .pkg-row > span:nth-child(2){grid-area:price;justify-self:start;text-align:left}
  .portal :is(#servicesBody,.modal) .pkg-row > .btn{grid-area:btn}
}

/* ---- Stage 5: Profile (details, sessions, gift cards; intake and waiver) ---- */
.portal .profile-grid{gap:1.2rem}
.portal :is(#panel-profile,#panel-intake) .dash-card{border:0;border-radius:14px;padding:1.3rem 1.4rem;box-shadow:0 1px 0 rgba(28,43,74,.05),0 10px 24px -18px rgba(28,43,74,.45)}
.portal :is(#panel-profile,#panel-intake) .ov-title{font-size:1.4rem;margin:0 0 .7rem}
.portal .info-list>div{align-items:baseline;border-bottom-color:var(--line-warm)}
.portal .info-list dt{font-size:1rem;color:#5f6878}
.portal .info-list dd{font-size:1rem;font-weight:600;color:var(--navy)}
.portal #panel-profile .credit-row{border-bottom-color:var(--line-warm)}
.portal #panel-profile .credit-row strong{font-size:1rem;font-weight:600}
.portal #panel-profile .credit-row > span{font-size:1rem;font-weight:600;color:var(--navy);text-align:right}
.portal #panel-profile .credit-row__bought{font-size:.875rem;color:#5f6878}
.portal #giftBalanceBody .gift-balance-row{font-size:1rem;color:var(--navy)}
.portal #giftBalanceBody .gift-balance-row strong{font-family:var(--serif);font-weight:600;font-size:1.35rem;font-variant-numeric:lining-nums}
.portal #giftBalanceBody .muted{color:#5f6878}
.portal #giftClaimCode{min-height:48px;box-sizing:border-box}
/* Intake: lined up with the heading, the waiver in a plain bordered box. */
.portal .intake-form{max-width:720px;margin-inline:0}
.portal .waiver-box{max-height:260px;background:none;border:1px solid #948b78;font-size:1rem;line-height:1.6;color:var(--navy)}
.portal .waiver-agree{align-items:center;min-height:44px;gap:.7rem;font-size:1rem;color:var(--navy)}
.portal .waiver-agree input{width:22px;height:22px;margin:0;accent-color:var(--navy)}
.portal .intake-done{background:none;border:0;border-radius:0;padding:0;margin:0 0 1rem;font-size:1rem;font-weight:600;color:#2f6a50}
.portal #panel-intake .field .muted{color:#5f6878;font-weight:500}

.portal .intake-nudge{font-size:1rem}
.portal .intake-nudge .linkish{font-weight:600;text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:4px;padding:.75em 0}
/* Phone links inside sentences: a taller invisible tap area without moving the text. */
.portal a[href^="tel:"]:not(.s-link):not(.btn),.portal a[href^="sms:"]:not(.s-link):not(.btn){padding:.75em 0}
