/* Infinity Motion — shared styles (member agent). Staff rules live in staff.css. */

/* ---------- tokens ---------- */
:root {
  --bg: #ECE7DF; --surface: #F8F5F0; --sunk: #E2DCD2; --ink: #201D19; --muted: #6E665C; --line: #D6CEC2;
  --moss: #4C5A36; --moss-soft: #DCE1D0; --on-moss: #FFFFFF; --clay: #A35F3A; --clay-soft: #F0DDCF;
  --good: #3E7B4F; --warn: #9A6B12; --warn-soft: #F3E4C4; --bad: #A8402F; --bad-soft: #F4D9D3;
  --f-display: "Familjen Grotesk", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 8px; --r: 14px; --r-lg: 22px;
  --gutter: 16px;
  --shadow: 0 1px 2px rgb(32 29 25 / .06), 0 6px 20px rgb(32 29 25 / .06);
  --shadow-lg: 0 -8px 40px rgb(32 29 25 / .18);
  --tabbar-h: 64px;
  --sa-t: env(safe-area-inset-top, 0px); --sa-b: env(safe-area-inset-bottom, 0px);
  --sa-l: env(safe-area-inset-left, 0px); --sa-r: env(safe-area-inset-right, 0px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171513; --surface: #211E1B; --sunk: #2B2723; --ink: #EEE8DF; --muted: #A69D91; --line: #3A352F;
    --moss: #A9B98A; --moss-soft: #333A28; --on-moss: #171513; --clay: #D99A72; --clay-soft: #3E2B20;
    --good: #7DBB8C; --warn: #E0B45E; --warn-soft: #3B3020; --bad: #E5806F; --bad-soft: #40241F;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 6px 20px rgb(0 0 0 / .25);
    --shadow-lg: 0 -8px 40px rgb(0 0 0 / .5);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.no-scroll { overflow: hidden; }
body {
  margin: 0; min-height: 100dvh;
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.has-tabs { padding-bottom: calc(var(--tabbar-h) + var(--sa-b)); }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.2; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 1.75rem; font-weight: 700; }
h2 { font-size: 1.2rem; font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--moss); text-underline-offset: 2px; }
code { font-size: .9em; background: var(--sunk); padding: 1px 6px; border-radius: 6px; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--moss); outline-offset: 2px; border-radius: 6px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--moss); color: var(--on-moss); padding: 8px 14px; border-radius: var(--r-sm); }
.skip-link:focus { top: calc(8px + var(--sa-t)); }

.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.warn-text { color: var(--warn); font-weight: 600; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- layout / shell ---------- */
.view, .page {
  width: 100%; max-width: 760px; margin: 0 auto;
}
.page {
  padding: 20px calc(var(--gutter) + var(--sa-r)) 32px calc(var(--gutter) + var(--sa-l));
  display: flex; flex-direction: column; gap: 16px;
}
.page-title { font-size: 1.6rem; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: calc(10px + var(--sa-t)) calc(var(--gutter) + var(--sa-r)) 10px calc(var(--gutter) + var(--sa-l));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none; color: var(--ink); }
.brand-main { font-family: var(--f-display); font-weight: 700; font-size: .95rem; letter-spacing: .14em; }
.brand-sub { font-family: var(--f-display); font-size: .8rem; color: var(--moss); letter-spacing: .3em; margin-top: 2px; font-weight: 500; }
.brand.big .brand-main { font-size: 1.35rem; }
.brand.big .brand-sub { font-size: 1rem; }
.head-right { margin-left: auto; display: flex; gap: 8px; }

.switcher { margin-left: auto; display: inline-flex; background: var(--sunk); border-radius: 999px; padding: 3px; }
.switcher + .head-right:empty { display: none; }
.sw-btn {
  padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  color: var(--muted); text-decoration: none; white-space: nowrap;
}
.sw-btn[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

.offline-banner {
  background: var(--warn-soft); color: var(--ink); text-align: center; font-size: .875rem;
  padding: 8px var(--gutter); border-bottom: 1px solid var(--line);
}

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(3, 1fr);
  height: calc(var(--tabbar-h) + var(--sa-b)); padding: 0 var(--sa-r) var(--sa-b) var(--sa-l);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 600;
}
.tab[aria-current="page"] { color: var(--moss); }
.tab[aria-current="page"] svg { stroke-width: 2.3; }

.boot { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 24px; }
.setup { min-height: 100dvh; justify-content: center; }
.setup .brand { align-self: center; margin-bottom: 8px; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px;
  border: 1.5px solid var(--moss); background: var(--moss); color: var(--on-moss);
  font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; transition: transform .12s ease, background-color .15s ease, opacity .15s;
  touch-action: manipulation;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--sunk); filter: none; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger-ghost { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.btn.danger-ghost:hover { background: var(--bad-soft); filter: none; }
.btn.small { min-height: 36px; padding: 6px 14px; font-size: .85rem; }
.btn.block { width: 100%; }
.btn.on-moss { background: var(--on-moss); color: var(--moss); border-color: var(--on-moss); }
.btn.is-busy { position: relative; color: transparent !important; }
.btn.is-busy::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-color: var(--on-moss) transparent var(--on-moss) transparent;
  animation: spin .8s linear infinite;
}
.btn.ghost.is-busy::after, .btn.danger-ghost.is-busy::after { border-color: var(--ink) transparent var(--ink) transparent; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 50%; border: 0; background: transparent; color: var(--ink);
  font-size: 1.25rem; cursor: pointer;
}
.icon-btn:hover { background: var(--sunk); }
.icon-btn:disabled { opacity: .3; cursor: default; background: transparent; }
.link-btn { background: none; border: 0; padding: 6px 2px; color: var(--moss); font-weight: 600; cursor: pointer; text-decoration: none; font-size: .9rem; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-weight: 600; font-size: .9rem; }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font-size: 16px; /* prevents iOS zoom */
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
}
.input:focus-visible { outline: none; border-color: var(--moss); box-shadow: 0 0 0 3px var(--moss-soft); }
.input::placeholder { color: var(--muted); opacity: .8; }
.code-input { text-align: center; font-family: var(--f-display); font-size: 1.8rem; letter-spacing: .5em; padding-left: calc(14px + .5em); font-variant-numeric: tabular-nums; }
.hint { color: var(--muted); font-size: .85rem; display: block; }
.form-error { background: var(--bad-soft); color: var(--bad); padding: 10px 12px; border-radius: var(--r-sm); font-size: .9rem; font-weight: 500; }

.fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.fieldset legend { font-family: var(--f-display); font-weight: 600; font-size: 1rem; margin-bottom: 4px; padding: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 4px 0; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--moss); }
.check > span { display: flex; flex-direction: column; gap: 2px; }
.check-label { font-weight: 500; }
.req { color: var(--bad); }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--sunk); border-radius: 999px; padding: 4px; }
.seg-btn { min-height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; }
.seg-btn[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.rows { list-style: none; margin: 0; padding: 0; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }

.pill {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; line-height: 1.4;
}
.pill.ok { background: var(--moss-soft); color: var(--good); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.mute { background: var(--sunk); color: var(--muted); }

.tag {
  display: inline-block; padding: 2px 8px; border-radius: 6px;
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.tag.reformer { background: var(--moss-soft); color: var(--moss); }
.tag.yoga { background: var(--clay-soft); color: var(--clay); }
.tag.other { background: var(--sunk); color: var(--muted); }

.notice-ok, .notice-warn { padding: 10px 12px; border-radius: var(--r-sm); font-size: .92rem; }
.notice-ok { background: var(--moss-soft); color: var(--ink); border-left: 4px solid var(--good); }
.notice-warn { background: var(--warn-soft); color: var(--ink); border-left: 4px solid var(--warn); }

.empty { text-align: center; padding: 32px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty-mark { font-family: var(--f-display); font-size: 2.4rem; color: var(--moss); opacity: .55; line-height: 1; }
.empty .btn { margin-top: 8px; }

.spinner-wrap { display: grid; place-items: center; padding: 40px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--moss); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.skel {
  height: 76px; border-radius: var(--r);
  background: linear-gradient(90deg, var(--sunk) 0%, color-mix(in srgb, var(--sunk) 50%, var(--surface)) 50%, var(--sunk) 100%);
  background-size: 200% 100%; animation: shimmer 1.3s ease-in-out infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- toasts ---------- */
.toasts {
  position: fixed; left: 0; right: 0; z-index: 60; pointer-events: none;
  top: calc(12px + var(--sa-t)); display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 0 var(--gutter);
}
.toast {
  max-width: 520px; width: 100%; padding: 12px 16px; border-radius: var(--r);
  background: var(--ink); color: var(--bg); font-weight: 500; font-size: .92rem;
  box-shadow: var(--shadow); opacity: 0; transform: translateY(-10px); transition: opacity .2s, transform .2s;
}
.toast.in { opacity: 1; transform: none; }
.toast-ok { border-left: 5px solid var(--good); }
.toast-warn { border-left: 5px solid var(--warn); }
.toast-bad { background: var(--bad); color: #fff; }

/* ---------- sheet ---------- */
.sheet-wrap {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center;
  background: rgb(20 18 15 / 0); transition: background-color .2s;
}
.sheet-wrap.in { background: rgb(20 18 15 / .45); }
.sheet {
  width: 100%; max-width: 560px; max-height: calc(92dvh - var(--sa-t));
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--shadow-lg);
  transform: translateY(100%); transition: transform .22s cubic-bezier(.2,.8,.2,1);
  padding-bottom: var(--sa-b);
}
.sheet.wide { max-width: 760px; }
.sheet-wrap.in .sheet { transform: none; }
.sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 8px auto 0; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 4px 20px; }
.sheet-title { font-size: 1.15rem; }
.sheet-body { overflow-y: auto; padding: 4px 20px 20px; overscroll-behavior: contain; }
.sheet-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.sheet-actions .btn { flex: 1; }
@media (min-width: 640px) {
  .sheet-wrap { align-items: center; }
  .sheet { border-radius: var(--r-lg); padding-bottom: 0; transform: translateY(20px); opacity: 0; transition: transform .2s, opacity .2s; }
  .sheet-wrap.in .sheet { opacity: 1; }
  .sheet-grip { display: none; }
}

/* ---------- schedule ---------- */
.cta-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--moss); color: var(--on-moss); border-radius: var(--r); padding: 16px 18px;
}
.cta-card p { opacity: .85; }

.week-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: -8px; }
.week-label { font-family: var(--f-display); font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.week-strip { display: grid; grid-template-columns: repeat(var(--cols, 7), 1fr); gap: 6px; }
.day-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 0 6px; min-height: 64px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  transition: background-color .15s, transform .1s;
}
.day-btn:active { transform: scale(.95); }
.day-btn .dname { font-size: .7rem; font-weight: 600; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; }
.day-btn .dnum { font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.day-btn .dmark { width: 5px; height: 5px; border-radius: 50%; background: transparent; }
.day-btn .dmark.on { background: var(--clay); }
.day-btn.today .dname { color: var(--moss); }
.day-btn.none:not(:disabled) .dnum { color: var(--muted); }
.day-btn[aria-selected="true"] { background: var(--moss); border-color: var(--moss); color: var(--on-moss); }
.day-btn[aria-selected="true"] .dname { color: var(--on-moss); opacity: .85; }
.day-btn[aria-selected="true"] .dmark.on { background: var(--on-moss); }
.day-btn:disabled { opacity: .38; cursor: default; background: transparent; }

.day-list { display: flex; flex-direction: column; gap: 18px; min-height: 200px; }
.day-title { font-size: 1.15rem; text-transform: capitalize; }
.group { display: flex; flex-direction: column; gap: 10px; }
.group-title {
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.session {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 14px 12px 14px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow);
}
.session.mine { border-color: color-mix(in srgb, var(--moss) 55%, var(--line)); box-shadow: inset 4px 0 0 var(--moss), var(--shadow); }
.session.past { opacity: .6; box-shadow: none; }
.session-meta { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.session-time { display: flex; flex-direction: column; align-items: flex-start; min-width: 52px; font-variant-numeric: tabular-nums; }
.session-time .t { font-family: var(--f-display); font-size: 1.3rem; font-weight: 700; line-height: 1.1; }
.session-time .t2 { font-size: .78rem; color: var(--muted); }
.session-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.session-title { font-weight: 600; line-height: 1.3; }
.session-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .85rem; }
.session-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.session-actions:empty { display: none; }
.session-actions .pill { margin-right: auto; }

.spots { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.dots { display: flex; gap: 3px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--moss-soft); border: 1px solid color-mix(in srgb, var(--moss) 35%, transparent); }
.dot.on { background: var(--muted); border-color: var(--muted); opacity: .55; }
.spots.low .spots-text { color: var(--clay); }
.spots.full .spots-text { color: var(--bad); }

.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.pick {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px;
  border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer;
}
.pick:hover { border-color: var(--moss); }
.pick-time { font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; }
.pick-sub { font-size: .75rem; color: var(--muted); }
.booked-mark {
  width: 56px; height: 56px; margin: 4px auto; display: grid; place-items: center;
  border-radius: 50%; background: var(--moss-soft); color: var(--moss); font-size: 1.8rem; font-weight: 700;
}

.studio-card { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.studio-trial { background: var(--clay-soft); padding: 10px 12px; border-radius: var(--r-sm); font-size: .92rem; }
.info-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.info-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-k { color: var(--muted); font-size: .9rem; }

/* ---------- my bookings ---------- */
.booking-row {
  display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px;
}
.booking-date { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.bd-day { font-size: .8rem; color: var(--muted); text-transform: capitalize; }
.bd-time { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; }
.booking-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.booking-actions { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- account ---------- */
.pkg { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.pkg-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.pkg-name { font-weight: 600; }
.pkg-kind { margin-top: 4px; }
.pkg-remaining { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.pkg-remaining .big { font-family: var(--f-display); font-size: 1.9rem; font-weight: 700; line-height: 1; color: var(--moss); }
.progress { height: 8px; border-radius: 999px; background: var(--sunk); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--moss); border-radius: inherit; transition: width .4s ease; }
.pkg-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.past-pk summary { cursor: pointer; font-weight: 600; padding: 6px 0; color: var(--muted); }

.steps { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }

/* ---------- auth ---------- */
.auth-page { max-width: 480px; }
.auth-head { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }

/* ---------- prose (privacy) ---------- */
.prose { gap: 20px; }
.prose h2 { font-size: 1.1rem; }
.prose p { color: var(--ink); }

/* ---------- iOS add-to-home hint ---------- */
.a2hs {
  position: fixed; left: var(--gutter); right: var(--gutter); z-index: 30;
  bottom: calc(16px + var(--sa-b));
  max-width: 520px; margin: 0 auto;
  display: flex; gap: 8px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 6px 14px 16px;
  box-shadow: var(--shadow-lg);
  animation: rise .3s ease;
}
body.has-tabs .a2hs { bottom: calc(var(--tabbar-h) + 12px + var(--sa-b)); }
.a2hs p { margin-top: 4px; color: var(--muted); }
.share-ico { display: inline-block; padding: 0 4px; border: 1px solid var(--line); border-radius: 4px; color: var(--moss); font-weight: 700; }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- staff mount point (staff.css styles the inside) ---------- */
.staff-root { width: 100%; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- larger screens ---------- */
@media (min-width: 760px) {
  .page { padding-top: 28px; }
  .session { flex-direction: row; align-items: center; }
  .session-meta { flex: 1; }
  .session-actions { flex: none; max-width: 50%; }
  .session-actions .pill { margin-right: 0; }
}

/* closed day (holiday) in the member week strip */
.day-btn.closed .dnum { text-decoration: line-through; color: var(--muted); }

/* 2FA set-up: QR on white so authenticator apps read it in dark mode too */
.mfa-qr { display: flex; justify-content: center; }
.mfa-qr img { width: 200px; height: 200px; max-width: 100%; background: #fff; padding: 10px; border-radius: 12px; box-sizing: content-box; }
.mfa-secret summary { cursor: pointer; color: var(--muted, inherit); }
