/* Thorrington Wellness Centre - the app (operator, 2026-11-03: "show me customer view of the app -
   no website just an app where they can book, purchase vouchers"; the mock-up, then "make menu
   stick to the bottom and not floating and dont use images use the background from treatments
   and clara bennett screens", then "Build it").
   Everything here sits under html.is-app, which the head's script sets when the site is opened
   from the home screen (or ?app=1 in a browser). The website in a browser never sees any of it.
   Each page opens on a green header with a faint gold ring; tiles are white on the cream page;
   five tabs are fixed along the bottom ("tab on the bottom are fine here"). */

.is-app {
  --page-top: 0px;
  --app-top: env(safe-area-inset-top, 0px);
  --app-gold: #D9B970;
  --app-sage: #E3E8DA;
  --app-line: rgba(47,74,42,.1);
  --app-shadow: 0 14px 30px -22px rgba(30,36,28,.55), 0 0 0 1px rgba(47,74,42,.05);
}
.is-app body { background: var(--cream); padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); -webkit-tap-highlight-color: transparent; }
.is-app .t-header, .is-app .t-footer, .is-app .t-bar { display: none !important; }
.is-app #main { padding-top: calc(var(--app-top) + 20px); }
.is-app #main:has(> .t-bk) { padding-top: 0; }

/* ---- the icons */
.app-i { display: inline-grid; place-items: center; flex: none; }
.app-i svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.app-med { width: 54px; height: 54px; border-radius: 50%; background: var(--cream); color: var(--forest); box-shadow: inset 0 0 0 1.5px rgba(196,154,60,.55); }
.app-med.is-gold { background: rgba(217,185,112,.15); color: var(--app-gold); box-shadow: inset 0 0 0 1.5px rgba(217,185,112,.5); }
.app-sq { width: 40px; height: 40px; border-radius: 12px; background: var(--cream); color: var(--forest); }
.app-chev { color: #b5b9ae; }
.app-chev svg { width: 20px; height: 20px; }

/* ---- the tabs, fixed to the bottom edge */
.app-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 8px max(10px, calc(50vw - 370px)) calc(8px + env(safe-area-inset-bottom, 0px)); background: #fff; box-shadow: 0 -1px 0 var(--app-line), 0 -12px 26px -20px rgba(30,36,28,.4); }
.app-tabs a { height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 18px; font: 700 10.5px var(--font-ui); color: #7d8378; text-decoration: none; white-space: nowrap; }
.app-tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.app-tabs a.is-on { background: var(--forest); color: var(--ivory); }
.app-tabs a.is-on svg { stroke: var(--app-gold); }
.app-tabs a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---- the page: a column the width of the phone (on a computer, a phone's width in the middle) */
.is-app .t-bk { padding: 0 0 28px; min-height: 0; background: var(--cream); overflow-x: clip; }
.is-app .t-bk .wrap { width: min(720px, 100% - 2 * var(--gutter)); }

/* ---- the green header, edge to edge, under the phone's status bar */
.is-app .t-bk .bk-head { position: relative; overflow: hidden; display: grid; gap: 4px; align-content: start; margin: 0 calc(50% - 50vw) 18px; padding: calc(var(--app-top) + 24px) calc(50vw - 50%) 28px; border-radius: 0 0 32px 32px; background: var(--forest) radial-gradient(circle at 110% -10%, rgba(217,185,112,.22), transparent 55%); color: var(--ivory); }
.is-app .t-bk .bk-head::before { content: ""; position: absolute; right: -60px; top: 40px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(217,185,112,.25); box-shadow: 0 0 0 22px rgba(217,185,112,.05); pointer-events: none; }
.is-app .t-bk .bk-head > * { position: relative; margin: 0; }
.is-app .bk-head .eyebrow { color: var(--app-gold); font: 700 11.5px var(--font-ui); letter-spacing: .16em; }
.is-app .bk-head .eyebrow::before, .is-app .bk-head .eyebrow::after { display: none; }
.is-app .t-bk .bk-head h1 { margin: 2px 0 0; color: var(--ivory); font-size: 32px; line-height: 1.1; letter-spacing: .05em; overflow-wrap: anywhere; }
.is-app .t-bk .bk-head .lead { margin: 0; color: rgba(251,248,241,.85); font-size: 15.5px; }
.is-app .t-bk .bk-head .t-pageback { margin: 0 0 10px; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: var(--ivory); }
.is-app .t-bk:is([data-app="home"], [data-app="book"], [data-app="classes"], [data-app="voucher"], [data-app="account"]) .t-pageback { display: none; }
/* The pages whose first tile sits over the header's lower edge. */
.is-app .t-bk:is([data-app="home"], [data-app="classes"], [data-app="account"]) .bk-head { padding-bottom: 74px; }
.is-app .t-bk:is([data-app="home"], [data-app="account"]) #bk { margin-top: -66px; position: relative; z-index: 2; }
/* Classes open with a day's heading, not a card, so they start below the header rather than over it (its heading sat
   under the header's words, 2026-11-10). */
.is-app .t-bk[data-app="classes"] #bk { margin-top: 18px; position: relative; z-index: 2; }
.is-app .t-bk[data-app="voucher"] .bk-head { padding-bottom: 96px; }
.is-app .t-bk[data-app="voucher"] #bk { margin-top: -86px; position: relative; z-index: 2; }
.is-app .t-bk[data-app="account"]:has(.is-part) .bk-head { padding-bottom: 28px; }
.is-app .t-bk[data-app="account"]:has(.is-part) #bk { margin-top: 0; }

.app-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 20px !important; }
.app-brand img { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
.app-brand span { font: 600 14px var(--font-display); letter-spacing: .18em; text-transform: uppercase; }
.is-app .t-bk[data-app="home"] .bk-head h1 { font-size: 38px; }

/* the search in the treatments header */
.app-search { display: flex; align-items: center; gap: 10px; margin-top: 14px !important; height: 46px; padding: 0 14px; border-radius: 14px; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); color: rgba(251,248,241,.75); }
.app-search[hidden] { display: none; }
.app-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--ivory); font: 16px var(--font-ui); outline: none; -webkit-appearance: none; appearance: none; }
.app-search input::placeholder { color: rgba(251,248,241,.7); }
.app-search input::-webkit-search-cancel-button { filter: invert(1); }

/* ---- shared pieces */
.app-h2 { display: flex; align-items: center; gap: 12px; margin: 26px 0 12px; font: 600 14px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--forest); }
.app-h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(196,154,60,.6), transparent); }
.app-h2.is-big { margin: 0; font-size: 18px; }
.app-h2.is-big::after { display: none; }
.app-k { font: 700 11.5px var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.app-chip { display: inline-flex; align-items: center; gap: 6px; width: fit-content; min-height: 28px; padding: 0 12px; border-radius: 999px; background: var(--app-sage); color: var(--forest); font: 700 12px var(--font-ui); }
.app-chip .app-i svg { width: 16px; height: 16px; }
.app-date { width: 64px; flex: none; display: grid; justify-items: center; padding: 9px 0 8px; border-radius: 16px; background: var(--forest); color: var(--ivory); box-shadow: inset 0 0 0 1px rgba(217,185,112,.35); }
.app-date small { font: 700 10.5px var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--app-gold); }
.app-date b { font: 600 26px/1.1 var(--font-display); }
.app-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--app-sage); overflow: hidden; }
.app-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--app-gold)); }
.is-app .bk-card, .is-app .ac-card, .is-app .bk-plan { border: 0; border-radius: 22px; box-shadow: var(--app-shadow); }
.is-app .bk-card { padding: 20px; }
.is-app .bk-note { border-radius: 14px; }

/* ---- Home */
.hm-next { display: grid; gap: 12px; padding: 18px; border-radius: 22px; background: #fff; box-shadow: var(--app-shadow); }
.hm-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hm-what { display: flex; align-items: center; gap: 14px; }
.hm-what > div { display: grid; gap: 1px; min-width: 0; }
.hm-what > div b { font: 700 18px var(--font-ui); color: var(--ink); }
.hm-what > div span { color: var(--muted); }
.hm-what > div small { color: var(--muted); font-size: 13px; }
.hm-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.hm-act { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 0; border-radius: 14px; background: var(--cream); color: var(--forest); font: 700 12px var(--font-ui); text-decoration: none; }
.hm-more { justify-self: start; font: 700 13px var(--font-ui); color: var(--gold-deep); text-decoration: none; }
.hm-none { margin: 0; color: var(--muted); }
.hm-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hm-tile { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 22px; background: #fff; box-shadow: var(--app-shadow); color: var(--ink); text-decoration: none; }
.hm-tile-top { display: flex; justify-content: space-between; align-items: flex-start; }
.hm-tile b, .hm-gift b { display: block; font: 700 16.5px var(--font-ui); }
.hm-tile small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.hm-go { color: var(--gold); }
.hm-gift { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 18px 20px; border-radius: 24px; background: var(--forest) radial-gradient(circle at 100% 0, rgba(217,185,112,.25), transparent 60%); color: var(--ivory); text-decoration: none; box-shadow: 0 26px 40px -28px rgba(30,36,28,.8); }
.hm-gift::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(217,185,112,.45); border-radius: 18px; pointer-events: none; }
.hm-gift > span:nth-child(2) { flex: 1; }
.hm-gift small { font-size: 12.5px; opacity: .8; }
.hm-gift .hm-go { color: var(--app-gold); }
.hm-pass { min-height: 0; color: var(--ivory); text-decoration: none; }
.hm-pass .ac-pass-name b { font-size: 28px; }

/* ---- Treatments: the list */
.is-app .bk-flow { grid-template-columns: minmax(0, 1fr); grid-template-areas: "steps" "stage"; gap: 16px; }
.is-app .bk-aside { display: none; }
.is-app .bk-stage { gap: 14px; }
.app-cats { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 4px; scrollbar-width: none; }
.app-cats::-webkit-scrollbar, .app-days::-webkit-scrollbar { display: none; }
.is-app .bk-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.is-app .bk-chip { flex: none; min-height: 36px; border: 0; box-shadow: 0 0 0 1px var(--app-line); }
.is-app .bk-chip[aria-pressed="true"] { box-shadow: none; }
.is-app .bk-pgroup + .bk-pgroup { margin-top: 8px; }
.is-app .bk-pgroup[hidden], .is-app .bk-option[hidden] { display: none; }
.is-app .bk-group-h { display: flex; align-items: center; gap: 12px; margin: 10px 0 12px; font: 600 14px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--forest); }
.is-app .bk-group-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(196,154,60,.6), transparent); }
.is-app .bk-group-h:empty { display: none; }
.is-app .bk-prices { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.is-app .bk-prices .app-opt { display: flex; flex-direction: row; align-items: center; gap: 14px; padding: 14px; border: 0; border-radius: 22px; box-shadow: var(--app-shadow); }
.is-app .bk-prices .app-opt:hover { transform: none; }
.app-opt-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.app-opt-t strong { font-size: 16px; color: var(--ink); }
.app-opt-t .bk-meta { font-size: 13.5px; }
.app-opt-t .app-chip { margin-top: 4px; min-height: 24px; font-size: 11.5px; }
.app-opt-p { display: grid; justify-items: end; gap: 2px; text-align: right; }
.app-opt-p .bk-oprice { font-size: 20px; }
.app-opt-p small { font: 700 11.5px var(--font-ui); color: var(--gold-deep); white-space: nowrap; }

/* ---- Treatments: the steps as a progress line, with the step and the treatment in words */
.is-app .bk-flow.is-list { grid-template-areas: "stage"; }
.is-app .bk-flow.is-list .bk-steps { display: none; }
.is-app .bk-steps { display: flex; flex-wrap: wrap; gap: 2px 6px; }
.is-app .bk-steps::before { content: attr(data-label); order: -2; flex: 0 0 100%; font: 700 11.5px var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.is-app .bk-steps::after { content: attr(data-name); order: -1; flex: 0 0 100%; margin-bottom: 10px; font: 700 19px var(--font-ui); color: var(--ink); }
.is-app .bk-steps li { flex: 1 1 0; min-width: 0; height: 5px; border-radius: 3px; background: rgba(47,74,42,.15); overflow: hidden; }
.is-app .bk-steps li::before { display: none; }
.is-app .bk-steps li.is-done, .is-app .bk-steps li.is-on { background: var(--gold); }
.is-app .bk-steps li button { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.is-app .bk-who { grid-template-columns: minmax(0, 1fr); }
.is-app .bk-who .bk-option { border: 0; box-shadow: 0 0 0 1px var(--app-line); border-radius: 16px; padding: 16px 18px; }

/* ---- the day strip and the times */
.is-app .bk-pick { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.app-strip { display: grid; gap: 10px; min-width: 0; }
.app-month { margin: 0; font: 600 18px var(--font-display); letter-spacing: .06em; color: var(--forest); }
.app-days { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 6px; scrollbar-width: none; }
.app-day { flex: none; width: 52px; display: grid; justify-items: center; gap: 1px; padding: 9px 0 7px; border-radius: 16px; border: 0; background: #fff; box-shadow: 0 0 0 1px var(--app-line); color: var(--ink); cursor: pointer; scroll-snap-align: start; font: inherit; }
.app-day small { font: 700 11px var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.app-day b { font: 500 21px/1.15 var(--font-display); }
.app-day i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.app-day.is-off { opacity: .4; box-shadow: none; background: transparent; cursor: default; }
.app-day.is-off i { background: transparent; }
.app-day[aria-pressed="true"] { background: var(--forest); color: var(--ivory); box-shadow: 0 12px 20px -12px rgba(47,74,42,.9); }
.app-day[aria-pressed="true"] small { color: var(--app-gold); }
.is-app .bk-times > h3 { font: 700 16px var(--font-ui); color: var(--ink); }
.is-app .bk-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.is-app .bk-slot { min-height: 46px; border-radius: 14px; border: 0; box-shadow: 0 0 0 1px var(--app-line); font-size: 15.5px; }
.is-app .bk-slotgroup > .bk-meta { font: 600 13px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--forest); }

/* ---- Classes */
.app-pack { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 22px; background: #fff; box-shadow: var(--app-shadow); color: var(--ink); text-decoration: none; }
.app-pack > span:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.app-pack b { font: 700 15.5px var(--font-ui); }
.app-pack small { font-size: 13px; color: var(--muted); }
.app-ring { --p: 100%; width: 54px; height: 54px; flex: none; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--gold) 0 var(--p), var(--app-sage) 0); }
.app-ring b { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #fff; font: 500 19px var(--font-display); color: var(--forest); }
.is-app .bk-days-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.is-app .bk-days-list .bk-daygroup { display: grid; gap: 10px; padding: 0; border: 0; background: none; }
.is-app .bk-session > .bk-buy { grid-column: auto; justify-content: flex-end; }
.is-app .bk-daygroup h3 { display: flex; align-items: center; gap: 12px; margin: 6px 0 2px; padding: 0; border: 0; font: 600 14px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--forest); }
.is-app .bk-daygroup h3::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(196,154,60,.6), transparent); }
.is-app .bk-daygroup .bk-session { grid-template-columns: 62px minmax(0, 1fr) auto; gap: 14px; padding: 14px; border: 0; border-radius: 22px; background: #fff; box-shadow: var(--app-shadow); }
.is-app .bk-session .bk-time { display: grid; justify-items: center; padding-right: 12px; border-right: 1px solid var(--app-line); font: 500 19px var(--font-display); color: var(--forest); }
.is-app .bk-session .bk-time small { font: 400 12px var(--font-ui); color: var(--muted); }
.is-app .bk-session strong { color: var(--ink); font-size: 15.5px; }
.is-app .bk-session .bk-meta { font-size: 13px; }
.app-places { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.app-places small { font: 700 11.5px var(--font-ui); color: var(--gold-deep); white-space: nowrap; }
.is-app .bk-buy { flex-direction: column; align-items: flex-end; gap: 6px; }
.is-app .bk-buy .btn { min-height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14px; }
.is-app .bk-plans h2 { display: flex; align-items: center; gap: 12px; font: 600 14px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--forest); margin: 18px 0 12px; }
.is-app .bk-plans h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(196,154,60,.6), transparent); }
.is-app .bk-plans .bk-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }

/* ---- Gifts: the voucher as a cream card over the header, then the form */
.is-app .bk-vlayout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.is-app .bk-vside { order: -1; position: static; }
.is-app .bk-vcard { min-height: 0; padding: 22px; border-radius: 24px; background: #F7F1E4; color: var(--forest); box-shadow: 0 26px 40px -24px rgba(30,36,28,.6); }
.is-app .bk-vcard::before { border-radius: 18px; }
.is-app .bk-vc-amt { color: var(--forest); font-size: 44px; }
.is-app .bk-vc-what.is-treat { color: var(--forest); }
.is-app .bk-vc-len { color: var(--muted); }
.is-app .bk-vc-k, .is-app .bk-vc-foot { color: var(--gold-deep); }
.is-app .bk-vc-what, .is-app .bk-vc-msg, .is-app .bk-vc-from { color: var(--muted); }
.is-app .bk-amts:not(.bk-mode) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.is-app .bk-amts:not(.bk-mode) button { min-width: 0; height: 58px; border: 0; border-radius: 16px; box-shadow: 0 0 0 1px var(--app-line); }
.is-app .bk-amts:not(.bk-mode) button[aria-checked="true"] { box-shadow: 0 12px 20px -12px rgba(47,74,42,.9); }
.is-app .bk-mode { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; padding: 4px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--app-line); }
.is-app .bk-mode button { height: 40px; min-width: 0; border: 0; border-radius: 11px; background: none; font: 700 14px var(--font-ui); color: var(--muted); }
.is-app .bk-mode button[aria-checked="true"] { background: var(--forest); color: var(--ivory); }
.is-app .bk-step { display: flex; align-items: center; gap: 12px; font: 600 14px var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--forest); }
.is-app .bk-step::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(196,154,60,.6), transparent); }

/* ---- Account: initials and name in the header, three figures, then one list */
.is-app .t-bk[data-app="account"] .bk-head { grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: center; }
.is-app .t-bk[data-app="account"] .bk-head .eyebrow { display: none; }
.is-app .t-bk[data-app="account"] .bk-head h1 { grid-column: 2; font-size: 23px; letter-spacing: .04em; }
.is-app .t-bk[data-app="account"] .bk-head .lead { grid-column: 2; }
.app-avatar { grid-row: span 2; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: #3E5E37; font: 500 25px var(--font-display); color: var(--ivory); box-shadow: 0 0 0 2px var(--app-gold), 0 0 0 7px rgba(217,185,112,.15); }
.app-badge { display: inline-flex; align-items: center; min-height: 28px; margin-top: 6px; padding: 0 12px; border-radius: 999px; background: rgba(217,185,112,.2); color: var(--app-gold); font: 700 12.5px var(--font-ui); }
.app-ac { gap: 14px; }
.app-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 16px 6px; border-radius: 22px; background: #fff; box-shadow: var(--app-shadow); }
.app-stats > div { display: grid; justify-items: center; text-align: center; }
.app-stats > div + div { border-left: 1px solid var(--app-line); }
.app-stats b { font: 500 24px var(--font-display); color: var(--forest); }
.app-stats small { font-size: 12.5px; color: var(--muted); }
.app-rows { display: grid; padding: 2px 0; border-radius: 22px; background: #fff; box-shadow: var(--app-shadow); overflow: hidden; }
.app-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 16px; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.app-row + .app-row { border-top: 1px solid var(--app-line); }
.app-row > span:nth-child(2) { flex: 1; min-width: 0; display: grid; }
.app-row b { font: 700 15.5px var(--font-ui); }
.app-row small { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.app-parthead { display: flex; align-items: center; gap: 12px; }
.app-back { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: var(--forest); box-shadow: 0 0 0 1px var(--app-line); cursor: pointer; }
.is-app .ac-tabs { display: none; }

/* ---- a phone with the text made larger: the tabs keep to one line */
@media (max-width: 360px) { .app-tabs a { font-size: 9.5px; } .app-tabs { padding-inline: 4px; gap: 2px; } }

/* The test site's band sits under the status bar, so the page below it needs no room for it. */
.is-app body > .t-test { display: flex; padding-top: calc(env(safe-area-inset-top, 0px) + 7px); }
.is-app .t-test ~ .t-site { --app-top: 0px; }

/* The booking header in the app: the same picture, under the green (css/site.css, the booking header). */
.is-app .t-bk .bk-head.has-photo { isolation: isolate; display: grid; min-height: 0; margin: 0 calc(50% - 50vw) 18px; padding: calc(var(--app-top) + 24px) calc(50vw - 50%) 28px; background: var(--forest); }
.is-app .t-bk .bk-head.has-photo > :not(.bk-hero-pic) { max-width: none; }
.is-app .t-bk .bk-head.has-photo > .bk-hero-pic { position: absolute; inset: 0; z-index: -1; width: auto; height: auto; }
.is-app .bk-hero-pic img { -webkit-mask-image: none; mask-image: none; opacity: .3; }

/* The therapists' diary as its own app: no customer tabs, so no room kept for them (2026-11-10). */
.is-app.is-staff-app body { padding-bottom: env(safe-area-inset-bottom, 0px); }

/* Feeling like an app (operator, 2026-11-10: "make sure the app feels like an app", then "too quick now and all
   animation do not match or line up. slow them down as ease in and out make the top slide up and the content fade
   in"). One timing for all of it: half a second, eased in and out. */
:root { --app-t: .52s; --app-ease: cubic-bezier(.65,0,.35,1); }
.app-tabs.has-pill a { position: relative; z-index: 1; background: transparent; transition: color var(--app-t) var(--app-ease); }
.app-tabs.has-pill a.is-on { background: transparent; }
.app-pill { position: absolute; top: 8px; left: 0; height: 54px; border-radius: 18px; background: var(--forest); z-index: 0; will-change: transform; }
.app-tabs svg { transition: transform var(--app-t) var(--app-ease), stroke .2s; }
.app-tabs a.is-on svg { transform: translateY(-1px) scale(1.06); }
/* The touched tab takes the lit look at once, while the highlight glides under it. */
.app-tabs a.is-going { color: var(--ivory); }
.app-tabs a.is-going svg { stroke: var(--app-gold); transform: translateY(-1px) scale(1.06); }
.app-tabs:has(a.is-going) a.is-on { color: #7d8378; }
.app-tabs:has(a.is-going) a.is-on svg { stroke: currentColor; transform: none; }
.app-tabs, .app-tabs a { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* Each page: the header slides up into place and the content fades in just behind it, as the highlight glides. */
@keyframes app-head-up { from { transform: translateY(26px); opacity: .25; } to { transform: none; opacity: 1; } }
@keyframes app-fade { from { opacity: 0; } to { opacity: 1; } }
.app-in.is-app .bk-head, .app-in.is-app main > :first-child:not(.t-bk) { animation: app-head-up var(--app-t) var(--app-ease) both; }
.app-in.is-app #bk, .app-in.is-app main > :not(:first-child) { animation: app-fade var(--app-t) var(--app-ease) .1s both; }
/* A press shows: buttons and rows give a little under the finger. */
.is-app .btn, .is-app button, .is-app a.ac-row, .is-app .hm-tile { transition: transform .18s var(--app-ease), filter .18s; }
.is-app .btn:active, .is-app button:active, .is-app a.ac-row:active, .is-app .hm-tile:active { transform: scale(.975); filter: brightness(.97); }
.is-app body { -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
@media (prefers-reduced-motion: reduce) {
  .app-pill, .app-tabs svg, .app-tabs.has-pill a { transition: none; }
  .app-in.is-app .bk-head, .app-in.is-app main > *, .app-in.is-app #bk { animation: none; }
}

/* Every app header the same height, on every tab and page (operator, 2026-11-10: "gif voucher header is clipped also
   make sure all headers are the same size"), and the first tile over its lower edge by the same 40px everywhere, so
   the header's words are never covered. Classes open with a day's heading, so they start just below. */
.is-app .t-bk .bk-head.bk-head { min-height: calc(var(--app-top, 0px) + 248px); padding-bottom: 64px; box-sizing: border-box; align-content: start; }
.is-app .t-bk[data-app] #bk.bk { margin-top: -58px; position: relative; z-index: 2; }
.is-app .t-bk[data-app="classes"] #bk.bk { margin-top: 16px; }
.is-app .t-bk[data-app="classes"] .bk-head.bk-head { padding-bottom: 28px; }

/* Cross-document view transitions in the app (js/site.js sets html.has-vt where the phone has them): the old page
   stays until the new one is ready, the tab bar does not move, the green highlight glides from the old tab to the new,
   the header slides up and the content fades in, on the same timing as everything else (operator, 2026-11-10). */
.has-vt.is-app .app-tabs { view-transition-name: app-tabs; }
.has-vt.is-app .app-pill { view-transition-name: app-pill; }
.has-vt.is-app .t-bk .bk-head { view-transition-name: app-head; }
@keyframes app-out { from { opacity: 1; } to { opacity: 0; } }
html.has-vt.is-app::view-transition-group(*) { animation-duration: var(--app-t); animation-timing-function: var(--app-ease); }
html.has-vt.is-app::view-transition-old(root) { animation: app-out calc(var(--app-t) * .5) var(--app-ease) both; }
html.has-vt.is-app::view-transition-new(root) { animation: app-fade var(--app-t) var(--app-ease) both; }
html.has-vt.is-app::view-transition-old(app-head) { animation: app-out calc(var(--app-t) * .5) var(--app-ease) both; }
html.has-vt.is-app::view-transition-new(app-head) { animation: app-head-up var(--app-t) var(--app-ease) both; }
html.has-vt.is-app::view-transition-group(app-pill) { animation-duration: var(--app-t); animation-timing-function: var(--app-ease); }
html.has-vt.is-app::view-transition-group(app-tabs), html.has-vt.is-app::view-transition-old(app-tabs), html.has-vt.is-app::view-transition-new(app-tabs) { animation: none; }
html.has-vt.is-app::view-transition-old(app-tabs) { display: none; }
