/* Pnina studio · design system "גיר וברזל" (chalk & iron), 2026-11-28.
   Derived from Pnina's logo: plum-black disc, raspberry ring. Chalk ground for daylight work, ink for the moments that matter
   (the next-class pass, the sign-in, the studio sidebar). Display: Karantina (Hebrew poster face) only at 26px and up.
   Text: IBM Plex Sans Hebrew. One accent (raspberry). Motion: one ease, entrances only when the view changes. */
:root {
  --bg: #f4f1f3; --surface: #ffffff; --surface-2: #efeaed; --surface-3: #e7e1e5;
  --line: #e5dee2; --line-strong: #958b94;
  --ink: #1c1520; --muted: #6b6370; --faint: #8e8591;
  --primary: #1c1520; --on-primary: #ffffff; --primary-ink: #1c1520; --primary-soft: #ece6ea;
  --accent: #be2f68; --accent-ink: #b0285e; --accent-soft: #f9e3ec; --on-accent: #ffffff;
  --coral: #be2f68; --coral-soft: #f9e3ec; --pink: #f3b9cf; --gold: #b7791f;
  --ok: #1f7047; --ok-soft: #dcf0e4; --warn: #8a5300; --warn-soft: #f9ecd3; --bad: #b0262b; --bad-soft: #fbe0de;
  --c1: #be2f68; --c2: #6d4c9f; --c3: #b26a12; --c4: #2f6c9c; --c5: #2a7a66; --c6: #8a5a44;
  --pass: #1c1520; --pass-2: #2b1f30; --on-pass: #fbf7fa; --pass-muted: #c9bdc7; --pass-accent: #ff7aae;
  --side: #1c1520; --on-side: #f6f0f4; --side-muted: #b3a7b1;
  --sh-1: 0 1px 2px rgb(28 21 32 / .05), 0 2px 6px -2px rgb(28 21 32 / .06);
  --sh-2: 0 2px 4px rgb(28 21 32 / .04), 0 14px 34px -14px rgb(28 21 32 / .18);
  --sh-3: 0 30px 80px -20px rgb(28 21 32 / .45), 0 8px 24px -8px rgb(28 21 32 / .2);
  --ring: color-mix(in srgb, var(--accent) 38%, transparent);
  --display: 'Karantina', 'Secular One', 'Arial Hebrew', sans-serif;
  --font: 'IBM Plex Sans Hebrew', 'Assistant', 'Arial Hebrew', system-ui, sans-serif;
  --r-xs: 8px; --r-sm: 12px; --r-md: 18px; --r-lg: 24px; --r-xl: 30px;
  --ease: cubic-bezier(.22, 1, .36, 1); --ease-pop: cubic-bezier(.34, 1.36, .64, 1);
  --top-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #120e15; --surface: #1b161f; --surface-2: #241e29; --surface-3: #2d2632;
  --line: #2f2834; --line-strong: #6e6473;
  --ink: #f3eef2; --muted: #ada3b0; --faint: #8a808d;
  --primary: #f3eef2; --on-primary: #1c1520; --primary-ink: #f3eef2; --primary-soft: #2d2632;
  --accent: #ff6fa8; --accent-ink: #ff86b6; --accent-soft: #3b1d2b; --on-accent: #1c1520;
  --coral: #ff6fa8; --coral-soft: #3b1d2b; --pink: #f3b9cf; --gold: #e0a64e;
  --ok: #6fd39a; --ok-soft: #15301f; --warn: #f2c063; --warn-soft: #382a10; --bad: #ff8a85; --bad-soft: #3d1a1a;
  --c1: #ff6fa8; --c2: #b597e6; --c3: #e6a55a; --c4: #79b2e3; --c5: #6fcfb4; --c6: #d49a7f;
  --pass: #2a1f2f; --pass-2: #36283c; --side: #0d0a0f;
  --sh-1: 0 1px 2px rgb(0 0 0 / .4); --sh-2: 0 2px 4px rgb(0 0 0 / .3), 0 14px 34px -14px rgb(0 0 0 / .6); --sh-3: 0 30px 80px -20px rgb(0 0 0 / .8);
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #120e15; --surface: #1b161f; --surface-2: #241e29; --surface-3: #2d2632;
  --line: #2f2834; --line-strong: #6e6473;
  --ink: #f3eef2; --muted: #ada3b0; --faint: #8a808d;
  --primary: #f3eef2; --on-primary: #1c1520; --primary-ink: #f3eef2; --primary-soft: #2d2632;
  --accent: #ff6fa8; --accent-ink: #ff86b6; --accent-soft: #3b1d2b; --on-accent: #1c1520;
  --coral: #ff6fa8; --coral-soft: #3b1d2b; --pink: #f3b9cf; --gold: #e0a64e;
  --ok: #6fd39a; --ok-soft: #15301f; --warn: #f2c063; --warn-soft: #382a10; --bad: #ff8a85; --bad-soft: #3d1a1a;
  --c1: #ff6fa8; --c2: #b597e6; --c3: #e6a55a; --c4: #79b2e3; --c5: #6fcfb4; --c6: #d49a7f;
  --pass: #2a1f2f; --pass-2: #36283c; --side: #0d0a0f;
  --sh-1: 0 1px 2px rgb(0 0 0 / .4); --sh-2: 0 2px 4px rgb(0 0 0 / .3), 0 14px 34px -14px rgb(0 0 0 / .6); --sh-3: 0 30px 80px -20px rgb(0 0 0 / .8);
  color-scheme: dark; }

/* ---------- base ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--font); direction: rtl; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; caret-color: var(--accent); -webkit-tap-highlight-color: transparent; }
::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); color: inherit; }
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--line-strong) 55%, transparent); border-radius: 99px; border: 3px solid transparent; background-clip: padding-box; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 700; line-height: .98; letter-spacing: 0; }
h1 { font-size: 44px; }
h2 { font-size: 32px; }
h3 { font-family: var(--font); font-weight: 600; font-size: 16px; line-height: 1.35; }
b, strong { font-weight: 600; }
.num, td, .kpi b, .t { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.5; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack { display: grid; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.hide { display: none !important; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 30; min-height: var(--top-h); padding: 10px 20px; padding-top: max(10px, env(safe-area-inset-top)); display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand .logo-img { width: 38px; height: 38px; }
.brand span { font-family: var(--display); font-weight: 700; font-size: 32px; line-height: 1; }
.brand small { font-size: 13px; color: var(--muted); }
.logo-img { display: block; border-radius: 50%; flex: none; }
.top .who { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.top .who .in { min-height: 36px; padding: 4px 12px; border-radius: 999px; }
body[data-side="member"] .top { background: color-mix(in srgb, #140f17 86%, transparent); border-bottom-color: rgb(255 255 255 / .06); color: #f6f0f4; }
body[data-side="member"] .top .brand, body[data-side="member"] .top .who { color: #f6f0f4; }
body[data-side="member"] .top .brand small, body[data-side="member"] .top label.who { color: #b9adb7; }
body[data-side="member"] .top .seg { background: rgb(255 255 255 / .07); border-color: rgb(255 255 255 / .1); }
body[data-side="member"] .top .seg button { color: #cfc4cd; }
body[data-side="member"] .top .seg button[aria-pressed="true"] { background: #f6f0f4; color: #1c1520; }
body[data-side="member"] .top select.in { background-color: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .16); color: #f6f0f4; }
body[data-side="member"] .top select.in option { color: #1c1520; }

/* ---------- controls ---------- */
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease); white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.top .seg button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); box-shadow: none; }

.btn { --b: var(--primary); --f: var(--on-primary);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  background: var(--b); color: var(--f); font-weight: 500; font-size: 14.5px; line-height: 1.2; text-decoration: none; white-space: nowrap; position: relative;
  transition: transform .18s var(--ease), background-color .2s var(--ease), box-shadow .25s var(--ease), color .2s, border-color .2s; }
.btn:hover { box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--b) 70%, transparent); background: color-mix(in srgb, var(--b) 88%, var(--accent)); }
.btn:active { transform: scale(.97); transition-duration: .06s; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.btn.ghost { --b: transparent; --f: var(--ink); border-color: var(--line); background: transparent; }
.btn.ghost:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--line-strong) 50%, var(--line)); box-shadow: none; }
.btn.soft { --b: var(--accent-soft); --f: var(--accent-ink); background: var(--accent-soft); }
.btn.soft:hover { background: color-mix(in srgb, var(--accent-soft) 80%, var(--accent)); color: var(--accent-ink); box-shadow: none; }
.btn.danger { --b: var(--bad-soft); --f: var(--bad); background: var(--bad-soft); }
.btn.danger:hover { background: color-mix(in srgb, var(--bad-soft) 82%, var(--bad)); box-shadow: none; }
.btn.sm { min-height: 34px; padding: 0 14px; font-size: 13px; gap: 6px; }
.btn.sm svg { width: 16px; height: 16px; }
.btn.block { width: 100%; min-height: 54px; font-size: 16px; font-weight: 600; }
.btn:disabled { opacity: .42; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.pending { color: transparent !important; }
.btn.pending::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--f); border-inline-end-color: transparent; animation: spin .7s linear infinite; }
.icon-btn { border: 0; background: transparent; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; position: relative; color: var(--ink); transition: background .2s var(--ease), transform .15s var(--ease); flex: none; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg, .btn svg { width: 19px; height: 19px; flex: none; }
.dot { position: absolute; top: 9px; inset-inline-end: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--surface); }
label.f { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.in, select.in, textarea.in { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--line-strong) 55%, var(--line)); border-radius: var(--r-sm); background-color: var(--surface); color: var(--ink); font-size: 15px; font-weight: 400;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s; }
.in::placeholder { color: var(--faint); }
.in:hover { border-color: var(--line-strong); }
.in:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); }
.in[readonly] { background-color: var(--surface-2); }
select.in { appearance: none; -webkit-appearance: none; padding-inline-start: 14px; padding-inline-end: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8591' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 16px; background-position: left 12px center; }
textarea.in { min-height: 84px; resize: vertical; line-height: 1.55; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 18px; height: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; }
.check input { margin: 2px 0 0; flex: none; }
.pill { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.pill svg { width: 13px; height: 13px; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.pri { background: var(--accent-soft); color: var(--accent-ink); }
.pill.coral { background: var(--accent); color: var(--on-accent); }
.hue { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.h1 { background: var(--c1); } .h2 { background: var(--c2); } .h3 { background: var(--c3); } .h4 { background: var(--c4); } .h5 { background: var(--c5); } .h6 { background: var(--c6); }
.bar { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--ink); border-radius: 99px; transform-origin: right center; }
.bar.full > i { background: var(--accent); }
.empty { text-align: center; color: var(--muted); padding: 36px 16px; display: grid; gap: 10px; justify-items: center; }
.empty > svg { width: 52px; height: 52px; padding: 13px; border-radius: 50%; background: var(--surface-2); color: var(--ink); opacity: 1; box-sizing: border-box; }
.empty b { color: var(--ink); font-size: 16px; }
.empty h1 { font-size: 40px; color: var(--ink); }
.notice { border-radius: var(--r-sm); padding: 12px 14px; font-size: 14px; line-height: 1.5; background: var(--surface-2); color: var(--ink); }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.bad { background: var(--bad-soft); color: var(--bad); }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice.warn.spread .btn { --b: var(--warn); --f: #fff; }
.tabs { display: flex; gap: 2px; padding: 4px; background: var(--surface-2); border-radius: 999px; width: max-content; max-width: 100%; }
.tabs button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 14px; transition: background .25s var(--ease), color .2s; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--muted); transition: all .2s var(--ease); }
.chips button:hover { color: var(--ink); border-color: var(--line-strong); }
.chips button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--sh-1); }
.list { display: grid; }
.list > * { padding: 13px 0; border-bottom: 1px solid var(--line); }
.list > *:last-child { border-bottom: 0; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; flex: none; background: var(--accent-soft); color: var(--accent-ink); font-size: 15px; }
.avatar svg { width: 18px; height: 18px; }
.avatar.has-img { overflow: hidden; background: var(--surface-3); }
.avatar.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* the live avatar: her picture inside a ring that fills toward the next milestone, the flame counts her weekly streak */
.av-live { position: relative; width: var(--s); height: var(--s); flex: none; display: grid; place-items: center; padding: 0; border: 0; background: none; color: inherit; border-radius: 50%; }
button.av-live { cursor: pointer; transition: transform .2s var(--ease); }
button.av-live:active { transform: scale(.96); }
.av-live svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.av-live .trk { stroke: rgb(255 255 255 / .22); stroke-width: 6; }
.av-live .val { stroke: var(--pass-accent); stroke-width: 6; stroke-linecap: round; }
.av-live .halo { stroke: var(--gold); stroke-width: 1.6; stroke-dasharray: 2 4; }
.av-live > .avatar { position: relative; box-shadow: 0 0 0 2px var(--pass); }
.av-flame { position: absolute; inset-block-end: -2px; inset-inline-start: -4px; display: inline-flex; align-items: center; gap: 2px; padding: 2px 7px 2px 6px; border-radius: 99px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 700; box-shadow: var(--sh-1); }
.av-flame svg { position: static; transform: none; width: 13px; height: 13px; }
.av-live.hot .av-flame { background: var(--accent); color: var(--on-accent); }
.av-add { position: absolute; inset-block-end: 0; inset-inline-end: -2px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 2px var(--pass); }
.av-add svg { position: static; transform: none; width: 14px; height: 14px; }
.me-head { align-items: center; gap: 16px; }
.me-head .av-live .trk { stroke: var(--surface-3); }
.me-head .av-live .val { stroke: var(--accent); }
.me-head .av-live > .avatar, .me-head .av-add { box-shadow: 0 0 0 2px var(--bg); }
.me-btn { border: 0; padding: 0; background: none; border-radius: 50%; cursor: pointer; }
.me-btn .avatar { box-shadow: 0 0 0 2px var(--surface), var(--sh-1); }

/* the avatar maker */
.av-stage { position: relative; width: min(240px, 70vw); aspect-ratio: 1; justify-self: center; border-radius: 50%; overflow: hidden; background: var(--surface-2); box-shadow: 0 0 0 4px var(--accent-soft), 0 0 0 5px var(--accent); }
.av-stage canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.av-stage.on canvas { cursor: grab; }
.av-stage.on canvas:active { cursor: grabbing; }
.av-stage canvas:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.av-pick { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; cursor: pointer; color: var(--accent-ink); font-weight: 600; font-size: 14px; }
.av-pick svg { width: 40px; height: 40px; }
.av-pick img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.av-styles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.av-styles button { display: grid; justify-items: center; gap: 6px; padding: 8px 4px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface); color: inherit; font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease); }
.av-styles button[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.av-styles canvas { width: 48px; height: 48px; border-radius: 50%; }
input[type=range] { accent-color: var(--accent); width: 100%; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14.5px; margin: 0; padding: 14px 16px; background: var(--surface-2); border-radius: var(--r-md); }
.facts dt { color: var(--muted); } .facts dd { margin: 0; font-weight: 500; }
.receipt { border: 1px dashed var(--line-strong); border-radius: var(--r-md); padding: 18px; display: grid; gap: 10px; font-size: 14px; background: var(--surface); }
.receipt .spread { border-bottom: 1px dotted var(--line); padding-bottom: 8px; }
.sig { width: 100%; height: 130px; border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); background: var(--surface-2); touch-action: none; display: block; cursor: crosshair; }
.linkbox { display: grid; gap: 8px; background: var(--surface-2); border-radius: var(--r-md); padding: 10px; }
.linkbox .in { font-size: 13px; background-color: var(--surface); }
.toggle { position: relative; width: 46px; height: 28px; flex: none; }
.toggle input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; width: 100%; height: 100%; }
.toggle i { position: absolute; inset: 0; border-radius: 99px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line); transition: background .25s var(--ease); }
.toggle i::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .3s var(--ease-pop); }
.toggle input:checked + i { background: var(--accent); box-shadow: none; }
.toggle input:checked + i::after { transform: translateX(-18px); }
.toggle input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ======================================================================
   MEMBER APP
   ====================================================================== */
.stage { min-height: calc(100dvh - var(--top-h)); display: grid; place-items: center; padding: 28px 16px; gap: 16px; }
body[data-side="member"] { background: #140f17; }
body[data-side="member"] .stage { background: radial-gradient(60% 55% at 62% 40%, rgb(190 47 104 / .22), transparent 70%), radial-gradient(40% 40% at 20% 90%, rgb(109 76 159 / .14), transparent 70%), #140f17; }
.stage-wrap { display: flex; gap: 56px; align-items: center; justify-content: center; flex-wrap: wrap; }
.stage-note { max-width: 320px; display: grid; gap: 14px; color: #d9cfd7; }
.coach-card { margin: 0 0 6px; display: flex; align-items: center; gap: 14px; }
.coach-card img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: center 20%; box-shadow: 0 0 0 2px #140f17, 0 0 0 4px var(--pass-accent); }
.coach-card figcaption { display: grid; gap: 2px; }
.coach-card b { color: #fbf7fa; font-family: var(--display); font-size: 34px; line-height: .9; font-weight: 700; }
.coach-card span { color: #b9adb7; font-size: 13.5px; }
.stage-note h2 { font-size: 52px; color: #fbf7fa; }
.stage-note p { margin: 0; color: #b9adb7; font-size: 15.5px; }
.stage-note ol { margin: 0; padding-inline-start: 20px; color: #b9adb7; display: grid; gap: 6px; font-size: 14px; }
.stage-note ol li::marker { color: var(--pass-accent); font-weight: 600; }
.stage-note .btn.ghost { --f: #fbf7fa; color: #fbf7fa; border-color: rgb(255 255 255 / .2); justify-self: start; }
.stage-note .btn.ghost:hover { background: rgb(255 255 255 / .08); }

.phone { width: 400px; max-width: 100%; height: min(820px, calc(100dvh - var(--top-h) - 40px)); min-height: 580px; background: var(--bg); border-radius: 52px; overflow: hidden; display: flex; flex-direction: column; position: relative; isolation: isolate;
  box-shadow: 0 0 0 10px #0a070c, 0 0 0 11px rgb(255 255 255 / .08), 0 50px 120px -30px rgb(0 0 0 / .8), 0 0 90px -20px rgb(190 47 104 / .35); }
.ph-head { padding: 18px 20px 10px; display: flex; align-items: center; gap: 10px; background: var(--bg); position: relative; z-index: 2; }
.ph-head .logo-img { width: 36px !important; height: 36px !important; }
.ph-head .studio { font-weight: 600; font-size: 15px; line-height: 1.2; }
.ph-head .icon-btn { background: var(--surface); box-shadow: var(--sh-1); }
.ph-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 18px 28px; display: grid; gap: 16px; align-content: start; grid-auto-rows: max-content; }
.ph-body > h1 { font-size: 46px; margin-top: 6px; }
.ph-body > h1 + p.muted { margin-top: -8px !important; }

/* bottom navigation: a floating ink bar */
.ph-nav { position: relative; z-index: 3; margin: 0 12px 12px; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--pass); border-radius: 26px; padding: 7px; box-shadow: 0 16px 36px -14px rgb(28 21 32 / .55); }
.ph-nav button { border: 0; background: none; display: grid; justify-items: center; gap: 3px; font-size: 11px; font-weight: 500; color: #b3a7b1; padding: 7px 0 6px; border-radius: 19px; position: relative; transition: color .25s var(--ease), background .25s var(--ease); }
.ph-nav button svg { width: 22px; height: 22px; transition: transform .35s var(--ease-pop); }
.ph-nav button:hover { color: #f6f0f4; }
.ph-nav button[aria-current="page"] { color: #fff; background: rgb(255 255 255 / .1); }
.ph-nav button[aria-current="page"] svg { color: var(--pass-accent); }
.ph-nav button:active svg { transform: scale(.86); }

/* greeting */
.hello { display: grid; gap: 2px; padding-top: 4px; }
.hello .small { font-size: 15px; }
.hello h1 { font-size: 58px; line-height: .9; }

/* the next-class pass: the one dark object on the home screen */
.pass { --cut: 13px; width: 100%; border: 0; text-align: start; color: var(--on-pass); background: radial-gradient(120% 90% at 0% 0%, rgb(190 47 104 / .55), transparent 55%), linear-gradient(160deg, var(--pass-2), var(--pass) 60%);
  border-radius: var(--r-xl); padding: 20px 22px 18px; display: grid; gap: 2px; position: relative; overflow: hidden; box-shadow: 0 24px 44px -22px rgb(28 21 32 / .7);
  -webkit-mask: radial-gradient(circle var(--cut) at 0 calc(100% - 58px), #0000 98%, #000) , radial-gradient(circle var(--cut) at 100% calc(100% - 58px), #0000 98%, #000); -webkit-mask-composite: source-in; mask: radial-gradient(circle var(--cut) at 0 calc(100% - 58px), #0000 98%, #000) intersect, radial-gradient(circle var(--cut) at 100% calc(100% - 58px), #0000 98%, #000);
  transition: transform .3s var(--ease); }
.pass:active { transform: scale(.985); }
.pass .pass-when { font-size: 14px; color: var(--pass-muted); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pass .pass-when svg { width: 20px; height: 20px; color: var(--pass-accent); }
.pass .pass-time { font-family: var(--display); font-weight: 700; font-size: 92px; line-height: .86; letter-spacing: .01em; margin-top: 6px; direction: ltr; text-align: right; }
.pass .pass-name { font-size: 22px; font-weight: 600; line-height: 1.25; }
.pass .pass-cut { height: 0; border-top: 2px dashed rgb(255 255 255 / .16); margin: 16px 0 12px; }
.pass .pass-foot { font-size: 13.5px; color: var(--pass-muted); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pass .pass-foot b { color: var(--pass-accent); font-weight: 600; }
.next-class:not(.pass) { background: var(--pass); color: var(--on-pass); border-radius: var(--r-xl); padding: 18px; display: grid; gap: 6px; border: 0; text-align: start; width: 100%; }

/* membership: ring + facts */
.mem { display: grid; gap: 14px; }
.mem-top { display: flex; gap: 16px; align-items: center; }
.ring { position: relative; width: 92px; height: 92px; flex: none; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .trk { stroke: var(--surface-3); }
.ring .val { stroke: var(--accent); }
.ring .ring-in { display: grid; justify-items: center; gap: 3px; position: relative; }
.ring b { font-family: var(--display); font-size: 40px; line-height: .8; font-weight: 700; }
.ring span { font-size: 10.5px; color: var(--muted); font-weight: 500; line-height: 1; }
.mem-name { font-size: 18px; font-weight: 600; line-height: 1.3; }
.mem .meta { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.mem .meta b { color: var(--ink); }
.ticket { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.punches { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.punches i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink); }
.punches i.on { background: var(--ink); }

/* quick actions */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick button { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-md); padding: 14px 6px 12px; display: grid; justify-items: center; gap: 8px; font-size: 13px; font-weight: 500; box-shadow: var(--sh-1); transition: transform .2s var(--ease), box-shadow .25s var(--ease); }
.quick button:hover { box-shadow: var(--sh-2); }
.quick button:active { transform: scale(.96); }
.quick svg { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); box-sizing: border-box; }

/* progress + streak */
.progress-card { display: grid; gap: 12px; }
.progress-card .big { font-family: var(--display); font-size: 64px; line-height: .8; font-weight: 700; }
.progress-card .bar { height: 8px; }
.progress-card .bar > i { background: var(--accent); }
.streak { display: grid; justify-items: center; gap: 2px; min-width: 92px; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2); color: var(--muted); text-align: center; }
.streak b { font-family: var(--display); font-size: 36px; line-height: .9; font-weight: 700; }
.streak svg { width: 18px; height: 18px; }
.streak.on { background: var(--accent-soft); color: var(--accent-ink); }
.invite-card { display: grid; gap: 10px; }
.invite-card > b { font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1; }
.invite-card .row { flex-wrap: wrap; gap: 8px; align-items: center; }

/* schedule */
.days { display: flex; gap: 7px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -2px; scrollbar-width: none; scroll-snap-type: x proximity; }
.days::-webkit-scrollbar { display: none; }
.days button { flex: none; width: 50px; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 8px 0 9px; display: grid; justify-items: center; gap: 1px; font-size: 12px; color: var(--muted); scroll-snap-align: start; position: relative; transition: background .25s var(--ease), color .2s, transform .2s var(--ease); }
.days button b { font-family: var(--display); font-size: 28px; line-height: .95; color: var(--ink); font-weight: 700; }
.days button:active { transform: scale(.94); }
.days button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: color-mix(in srgb, var(--bg) 80%, transparent); box-shadow: 0 10px 20px -10px rgb(28 21 32 / .6); }
.days button[aria-pressed="true"] b { color: var(--bg); }
.days button.today::after { content: ''; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.cls { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; text-align: start; width: 100%; box-shadow: var(--sh-1); transition: transform .2s var(--ease), box-shadow .25s var(--ease), border-color .2s; }
.cls:hover { box-shadow: var(--sh-2); }
.cls:active { transform: scale(.985); }
.cls .t { font-family: var(--display); font-weight: 700; font-size: 32px; line-height: .9; direction: ltr; text-align: right; }
.cls .t small { display: block; font-family: var(--font); font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 3px; direction: rtl; text-align: start; }
.cls .name { font-weight: 600; font-size: 15.5px; display: flex; align-items: center; gap: 7px; }
.cls.past { opacity: .5; box-shadow: none; }
.cls.mine { background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.branch-seg { display: flex; width: 100%; }
.branch-seg button { flex: 1 1 auto; padding: 9px 8px; font-weight: 600; white-space: nowrap; }

/* bottom sheet */
.sheet-back { position: absolute; inset: 0; background: rgb(20 15 23 / .42); z-index: 5; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.sheet { position: absolute; inset-inline: 0; bottom: 0; z-index: 6; background: var(--surface); border-radius: 30px 30px 0 0; padding: 10px 20px 26px; max-height: 90%; overflow-y: auto; display: grid; gap: 14px; box-shadow: 0 -20px 60px -20px rgb(0 0 0 / .4); }
.sheet .grab { width: 44px; height: 5px; background: var(--surface-3); border-radius: 5px; justify-self: center; }
.sheet h2 { font-size: 46px; }
.sheet-photo { margin: -10px -20px 2px; height: 150px; background-size: cover; background-position: center 25%; border-radius: 30px 30px 0 0; }
.sheet .sheet-photo + .row { margin-top: 2px; }

/* plans + store */
.plan-card { display: grid; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; text-align: start; width: 100%; box-shadow: var(--sh-1); position: relative; transition: transform .2s var(--ease), box-shadow .25s var(--ease), border-color .2s; }
.plan-card:hover { box-shadow: var(--sh-2); }
.plan-card:active { transform: scale(.985); }
.plan-card b { font-size: 16.5px; }
.plan-card .price { font-family: var(--display); font-size: 40px; line-height: .9; font-weight: 700; color: var(--ink); white-space: nowrap; }
.plan-card[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--sh-2); }
.plan-card.gift { background: linear-gradient(135deg, var(--accent-soft), var(--surface) 80%); }
.sec-h { font-size: 34px; margin: 14px 0 0; }
.gift-code { justify-items: center; text-align: center; }
.gift-code b { font-family: var(--display); font-size: 48px; letter-spacing: .06em; line-height: 1; direction: ltr; }
.redeem summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.redeem summary::-webkit-details-marker { display: none; }
.redeem summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .3s var(--ease); }
.redeem[open] summary::after { transform: rotate(45deg); }

/* sign-in: the ink screen */
.phone.is-login { background: #140f17; color: #f6f0f4; }
.phone.is-login .ph-body { background: radial-gradient(80% 45% at 50% 18%, rgb(190 47 104 / .34), transparent 70%); }
.login { display: grid; gap: 14px; align-content: center; min-height: 100%; padding: 8px 6px; }
.login .logo { display: flex; justify-content: center; margin-bottom: 6px; }
.login .logo .logo-img { width: 132px; height: 132px; box-shadow: 0 0 0 8px rgb(255 255 255 / .04), 0 22px 60px -10px rgb(190 47 104 / .55); }
.login h1 { text-align: center; font-size: 54px; }
.login .tagline { margin: -10px 0 4px; text-align: center; color: var(--accent-ink); font-size: 16px; font-weight: 500; }
.phone.is-login .login h1 { color: #fbf7fa; }
.phone.is-login .login .tagline { color: #ff8fbb; }
.phone.is-login .login .muted, .phone.is-login .login label.f { color: #c9bdc7; }
.phone.is-login .login .in { background-color: rgb(255 255 255 / .96); color: #1c1520; border-color: transparent; }
.phone.is-login .login .in:focus { box-shadow: 0 0 0 4px rgb(255 122 174 / .45); }
.phone.is-login .login .btn.block { --b: #be2f68; --f: #fff; background: #be2f68; color: #fff; }
.phone.is-login .login .btn.block:hover { background: #cc3a74; box-shadow: 0 10px 30px -10px rgb(190 47 104 / .8); }
.phone.is-login .login .btn.ghost { --f: #f6f0f4; color: #f6f0f4; border-color: rgb(255 255 255 / .22); }
.phone.is-login .login .notice { background: rgb(255 255 255 / .08); color: #f6f0f4; }
.phone.is-login .login .notice.bad { background: rgb(255 110 110 / .16); color: #ffc9c6; }
.phone.is-login .login a.muted { color: #b3a7b1; }
.phone.is-login .login .plan-card { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .1); color: #f6f0f4; box-shadow: none; }
.phone.is-login .login .plan-card .price { color: #fff; }
.login.pay .plan-card { pointer-events: none; }
.phone.has-photo .ph-body { position: relative; z-index: 1; background: none; }
.login-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.login-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(20 15 23 / .25), rgb(20 15 23 / .82) 48%, rgb(20 15 23 / .96)); }

/* optional home photo */

/* phones: the member app is the whole screen */
@media (max-width: 520px) {
  .stage { padding: 0; display: block; min-height: 0; place-items: normal; }
  .stage-wrap { display: block; width: 100%; }
  .stage-note { display: none; }
  .phone { width: 100%; border-radius: 0; height: calc(100dvh - var(--top-h)); min-height: 0; box-shadow: none; }
  .top { padding: 8px 12px; gap: 8px; }
  .top .who { margin-inline-start: 0; width: 100%; }
  .brand small { display: none; }
  body.app-member .top { display: none; }
  body.app-member .phone { height: 100dvh; }
  body.app-member .ph-head { padding-top: calc(14px + env(safe-area-inset-top)); }
  body.app-member .ph-nav { margin-bottom: calc(10px + env(safe-area-inset-bottom)); }
  body.app-member.syncing .ph-head::after { content: ''; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: sync 1.1s linear infinite; }
  .hello h1 { font-size: 54px; }
  .pass .pass-time { font-size: 84px; }
}

/* ======================================================================
   STUDIO BACK OFFICE
   ====================================================================== */
.admin { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: calc(100dvh - var(--top-h)); }
.side { background: var(--side); color: var(--on-side); padding: 22px 14px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: var(--top-h); height: calc(100dvh - var(--top-h)); overflow-y: auto; scrollbar-color: rgb(255 255 255 / .2) transparent; }
.side .sname { display: flex; align-items: center; gap: 12px; padding: 0 10px 22px; margin-bottom: 10px; border-bottom: 1px solid rgb(255 255 255 / .08); }
.side .sname .logo-img { width: 46px; height: 46px; box-shadow: 0 0 0 3px rgb(255 255 255 / .06); }
.side .sname b { display: block; font-family: var(--display); font-size: 28px; line-height: .95; font-weight: 700; color: #fff; }
.side .sname small { display: block; font-size: 12px; color: var(--side-muted); margin-top: 3px; }
.side .sname .pill { margin-top: 6px; background: rgb(255 122 174 / .16); color: #ff9cc4; }
.side button { border: 0; background: none; display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; color: var(--side-muted); font-size: 14.5px; font-weight: 500; text-align: start; transition: background .2s var(--ease), color .2s; flex: none; }
.side button svg { width: 19px; height: 19px; transition: color .2s; }
.side button:hover { background: rgb(255 255 255 / .06); color: #fff; }
.side button[aria-current="page"] { background: rgb(255 255 255 / .1); color: #fff; }
.side button[aria-current="page"] svg { color: #ff7aae; }
.side .badge { margin-inline-start: auto; min-width: 22px; height: 20px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 600; background: #be2f68; color: #fff; border-radius: 99px; padding: 0 7px; }
.side .side-foot { margin-top: auto; padding: 16px 12px 4px; font-size: 12.5px; color: var(--side-muted); line-height: 1.5; border-top: 1px solid rgb(255 255 255 / .08); }
.side .side-foot b { color: #ff9cc4; font-weight: 500; display: block; }
@media (min-width: 981px) { body[data-side="studio"] .top .brand { visibility: hidden; } }

.main { padding: 32px 40px 72px; display: grid; gap: 22px; align-content: start; min-width: 0; max-width: 1480px; width: 100%; }
.main > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 4px; }
.main > header h1 { font-size: 64px; line-height: .9; }
.main > header h1 + .muted { margin-top: 8px; font-size: 14px; }
.main > header .row { flex-wrap: wrap; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; display: grid; gap: 14px; min-width: 0; align-content: start; box-shadow: var(--sh-1); }
.panel h3 { font-size: 16px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px 16px; display: grid; gap: 4px; align-content: start; box-shadow: var(--sh-1); position: relative; overflow: hidden; }
.kpi span { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.kpi b { font-family: var(--display); font-weight: 700; font-size: 60px; line-height: .9; margin-top: 4px; }
.kpi em { font-style: normal; font-size: 12.5px; line-height: 1.45; }
.kpi .kpi-bar { display: block; height: 4px; border-radius: 4px; background: rgb(255 255 255 / .14); margin-top: 8px; overflow: hidden; }
.kpi .kpi-bar > i { display: block; height: 100%; background: #ff7aae; border-radius: 4px; transform-origin: right center; }
.kpis .kpi.feature { background: radial-gradient(120% 120% at 0% 0%, rgb(190 47 104 / .5), transparent 55%), var(--pass); border-color: transparent; color: var(--on-pass); box-shadow: 0 20px 40px -24px rgb(28 21 32 / .8); }
.kpis .kpi.feature span, .kpis .kpi.feature em { color: var(--pass-muted) !important; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tbl-wrap { overflow-x: auto; margin: 0 -8px; padding: 0 8px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: start; font-weight: 500; color: var(--muted); font-size: 12.5px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; } tr.click td { transition: background .15s; } tr.click:hover td { background: var(--surface-2); }
.today-row { display: grid; grid-template-columns: 74px 1fr 140px; gap: 14px; align-items: center; padding: 12px 10px; margin: 0 -10px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 12px; transition: background .15s; }
.today-row:hover { background: var(--surface-2); }
.today-row:last-child { border-bottom: 0; }
.today-row > b.num { font-family: var(--display); font-size: 32px; line-height: .9; font-weight: 700; direction: ltr; text-align: right; }
.week { display: grid; grid-template-columns: repeat(7, minmax(138px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.week .col { display: grid; gap: 7px; align-content: start; min-width: 0; }
.week .col > header { padding: 8px 10px; border-radius: 14px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; align-items: baseline; }
.week .col > header b { font-family: var(--display); color: var(--ink); font-size: 28px; line-height: 1; font-weight: 700; }
.week .col.is-today > header { background: var(--ink); color: color-mix(in srgb, var(--bg) 75%, transparent); }
.week .col.is-today > header b { color: var(--bg); }
.slot { --hue: var(--c1); border: 1px solid color-mix(in srgb, var(--hue) 22%, var(--line)); background: color-mix(in srgb, var(--hue) 8%, var(--surface)); border-radius: 14px; padding: 10px 11px; text-align: start; display: grid; gap: 3px; font-size: 13px; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.slot:hover { box-shadow: var(--sh-2); transform: translateY(-1px); }
.slot.k1 { --hue: var(--c1); } .slot.k2 { --hue: var(--c2); } .slot.k3 { --hue: var(--c3); } .slot.k4 { --hue: var(--c4); } .slot.k5 { --hue: var(--c5); } .slot.k6 { --hue: var(--c6); }
.slot > span:nth-child(2) { font-weight: 600; color: color-mix(in srgb, var(--hue) 55%, var(--ink)); }
.slot b { font-size: 14px; }
.slot.cancelled { opacity: .5; text-decoration: line-through; }
.slot.past { opacity: .62; }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.kanban .lane { background: var(--surface-2); border-radius: var(--r-lg); padding: 12px; display: grid; gap: 10px; align-content: start; min-height: 180px; }
.kanban .lane > header { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 600; padding: 2px 6px 4px; }
.lead { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 7px; font-size: 13px; box-shadow: var(--sh-1); }
.lead b { font-size: 14.5px; }
.rule { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rule:last-child { border-bottom: 0; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .val { fill: var(--ink); font-weight: 600; }
.chart .grid { stroke: var(--line); stroke-dasharray: 3 4; }
.chart .b { fill: var(--ink); } .chart .b.now { fill: var(--accent); }

/* tasks, automations, retention */
.task { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task .check { padding-top: 2px; }
.task.done > .grow > div:first-child { text-decoration: line-through; color: var(--muted); }
.task .late { color: var(--bad); font-weight: 500; }
.task-acts { gap: 6px; margin-top: 8px; }
.in.sm-in { padding: 2px 28px 2px 8px; min-height: 26px; height: auto; font-size: 12px; width: auto; flex: none; max-width: 150px; border-radius: 99px; background-position: left 8px center; background-size: 12px; }
.auto-h { font-size: 34px; margin: 10px 0 -6px; }
.auto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; }
.auto-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 12px; align-content: start; min-width: 0; box-shadow: var(--sh-1); transition: background .25s; }
.auto-card.off { background: var(--surface-2); box-shadow: none; }
.auto-card.off b { color: var(--muted); }
.auto-form { border-top: 1px solid var(--line); padding-top: 12px; }
.auto-form code { background: var(--surface-2); border-radius: 6px; padding: 1px 6px; font-size: 12px; }
.summary .sum-list { margin: 0; padding-inline-start: 18px; display: grid; gap: 6px; font-size: 14.5px; }
.summary .sum-list li::marker { color: var(--accent); }
.risk-row { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.risk-row:last-child { border-bottom: 0; }
.ask .answer { margin-top: 4px; white-space: pre-line; background: var(--surface-2); border-radius: var(--r-md); padding: 14px 16px; line-height: 1.65; }
.gbtn { display: flex; justify-content: center; min-height: 44px; }

/* overlays */
.overlay { position: fixed; inset: 0; background: rgb(20 15 23 / .45); z-index: 50; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(580px, 100%); background: var(--bg); z-index: 51; box-shadow: var(--sh-3); display: flex; flex-direction: column; border-radius: 0 28px 28px 0; overflow: hidden; }
.drawer > header { padding: 22px 24px 18px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: flex-start; }
.drawer > header h2 { font-size: 42px; }
.drawer .body { padding: 20px 24px 32px; overflow-y: auto; display: grid; gap: 16px; align-content: start; }
.modal { position: fixed; z-index: 52; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; background: var(--surface); border-radius: var(--r-xl); padding: 26px; display: grid; gap: 14px; box-shadow: var(--sh-3); }
.modal h2 { font-size: 36px; }
.toast { position: fixed; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--bg); padding: 12px 20px 12px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 500; box-shadow: var(--sh-3); max-width: calc(100% - 32px); display: flex; align-items: center; gap: 10px; animation: toastIn .5s var(--ease-pop); }
.toast::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); }

/* ---------- motion: entrances only when the view changes (render adds the classes) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes drawerIn { from { transform: translateX(-40px); opacity: 0; } }
@keyframes modalIn { from { transform: translate(-50%, -46%) scale(.96); opacity: 0; } }
@keyframes toastIn { from { transform: translate(-50%, 24px) scale(.9); opacity: 0; } }
@keyframes ringIn { from { stroke-dasharray: 0 100; } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.06); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sync { from { background-position: -50% 0; } to { background-position: 150% 0; } }
.enter-view .ph-body > *, .enter-view .main > * { animation: rise .55s var(--ease) both; }
.enter-view .ph-body > :nth-child(2), .enter-view .main > :nth-child(2) { animation-delay: .05s; }
.enter-view .ph-body > :nth-child(3), .enter-view .main > :nth-child(3) { animation-delay: .1s; }
.enter-view .ph-body > :nth-child(4), .enter-view .main > :nth-child(4) { animation-delay: .15s; }
.enter-view .ph-body > :nth-child(5), .enter-view .main > :nth-child(5) { animation-delay: .2s; }
.enter-view .ph-body > :nth-child(n+6), .enter-view .main > :nth-child(n+6) { animation-delay: .24s; }
.enter-view .ring .val, .enter-view .av-live .val { animation: ringIn 1.1s .25s var(--ease) both; }
.enter-view .bar > i, .enter-view .kpi-bar > i { animation: grow .9s .3s var(--ease) both; }
.enter-view .ph-nav button[aria-current="page"] svg { animation: pop .45s var(--ease-pop); }
.sheet-back.fresh, .overlay.fresh { animation: fade .3s var(--ease); }
.sheet.fresh { animation: sheetUp .5s var(--ease); }
.drawer.fresh { animation: drawerIn .45s var(--ease); }
.modal.fresh { animation: modalIn .35s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
}

/* busy + live sync */
body.busy, body.busy * { cursor: progress !important; }
body.syncing .top::after { content: ''; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: sync 1.1s linear infinite; }
.notice.wait { display: flex; align-items: center; justify-content: center; gap: 10px; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-inline-end-color: transparent; animation: spin .8s linear infinite; }
body.busy .login .btn.block { opacity: .8; pointer-events: none; }
body.busy .login .btn.block::before { content: ''; display: inline-block; vertical-align: -3px; margin-inline-end: 8px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-inline-end-color: transparent; animation: spin .8s linear infinite; }
.boot { min-height: 100dvh; display: grid; place-items: center; align-content: center; gap: 18px; background: #140f17; color: #c9bdc7; text-align: center; padding: 24px; }
.boot b { color: #fbf7fa; }
.boot .logo-img { width: 96px; height: 96px; animation: breathe 1.6s ease-in-out infinite; box-shadow: 0 0 60px -10px rgb(190 47 104 / .7); }
@keyframes breathe { 50% { transform: scale(.94); opacity: .8; } }

/* staff gate (live studio sign-in) */
.gate { min-height: calc(100dvh - var(--top-h)); display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(50% 50% at 50% 30%, rgb(190 47 104 / .12), transparent 70%); }
.gate { align-content: center; }
.gate .panel { width: min(420px, 100%); box-shadow: var(--sh-2); }
.gate-photo { width: min(420px, 100%); height: 210px; background: #0d0a0f center 30% / cover; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.gate-photo + .panel { border-start-start-radius: 0; border-start-end-radius: 0; }
.gate .panel h1 { font-size: 46px; }

/* ---------- studio responsive ---------- */
@media (max-width: 980px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .admin { grid-template-columns: 1fr; }
  .side { position: sticky; top: var(--top-h); z-index: 20; height: auto; flex-direction: row; overflow-x: auto; padding: 8px 12px; gap: 4px; scrollbar-width: none; }
  .side::-webkit-scrollbar { display: none; }
  .side .sname, .side .side-foot { display: none; }
  .side button { padding: 8px 12px; font-size: 14px; white-space: nowrap; }
  .main { padding: 22px 16px 56px; }
  .main > header h1 { font-size: 50px; }
  .kpi b { font-size: 50px; }
}
@media (max-width: 520px) {
  .main > header h1 { font-size: 46px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px 14px 12px; }
  .kpi b { font-size: 42px; }
  .kpis .kpi.feature { grid-column: 1 / -1; }
  .panel { padding: 18px 16px; border-radius: var(--r-md); }
  .today-row { grid-template-columns: 60px 1fr; }
  .today-row > .stack { grid-column: 2; }
  .drawer { border-radius: 0; }
  .drawer > header h2 { font-size: 36px; }
}
.av-flame b { font-family: var(--font); font-size: 12px; line-height: 1; }
.login-bg.brand { background-color: #000; background-size: 100% auto; background-position: center bottom; background-repeat: no-repeat; }
.login-bg.brand::after { background: linear-gradient(180deg, #140f17 0, rgb(20 15 23 / .94) 40%, rgb(20 15 23 / .35) 72%, rgb(20 15 23 / .55)); }

/* Pnina, small and alive: her face breathes, a dashed ring turns slowly, one line from her beside it */
.pnina-note { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: start; cursor: pointer; margin-top: -4px; }
.pn-face { position: relative; width: 58px; height: 58px; flex: none; display: grid; place-items: center; }
.pn-face img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; position: relative; animation: pnBreathe 4.2s ease-in-out infinite; transform-origin: 50% 80%; }
.pn-face i { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed var(--accent); opacity: .55; animation: pnTurn 22s linear infinite; }
.pn-face::after { content: ''; position: absolute; inset-block-end: 3px; inset-inline-end: 3px; width: 11px; height: 11px; border-radius: 50%; background: #2bb673; box-shadow: 0 0 0 2px var(--bg); }
.pn-say { position: relative; flex: 1; min-width: 0; display: grid; gap: 1px; padding: 10px 14px; border-radius: 18px; border-start-start-radius: 6px; background: var(--surface); box-shadow: var(--sh-1); font-size: 14.5px; line-height: 1.4; }
.pn-say b { font-size: 12px; color: var(--accent-ink); font-weight: 700; }
.pnina-note:active .pn-say { transform: scale(.98); }
.enter-view .pnina-note .pn-say { animation: pnSay .6s .35s var(--ease) both; }
@keyframes pnBreathe { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.035) rotate(-2deg); } 60% { transform: scale(1.015) rotate(1.5deg); } }
@keyframes pnTurn { to { transform: rotate(360deg); } }
@keyframes pnSay { from { opacity: 0; transform: translateX(12px) scale(.96); } }

/* the studio photo melts into the page: it rises out of the header, fades into the chalk below, and the greeting sits on the fade */
.hero { margin: -8px -18px 0; padding: 0 20px 4px; min-height: 300px; display: grid; align-content: end; position: relative; isolation: isolate; }
.hero-img { position: absolute; inset: 0 0 auto; height: 250px; z-index: -1; background-size: cover; background-position: center;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 52%, rgb(0 0 0 / .35) 80%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 52%, rgb(0 0 0 / .35) 80%, transparent 100%); }
.hero-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, color-mix(in srgb, var(--bg) 55%, transparent) 72%, var(--bg) 100%); } /* edge-blend: the photo melts into the page under the name */
.hero.brand .hero-img { background-position: 22% 38%; }
.hero .hello { position: relative; display: flex; align-items: center; gap: 14px; }
.hero .hello .small { color: var(--muted); font-weight: 500; }
.hero .lv { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 600; }
.hero .av-live .trk { stroke: var(--surface-3); }
.hero .av-live .val { stroke: var(--accent); }
.hero .av-live > .avatar, .hero .av-add { box-shadow: 0 0 0 3px var(--bg); }
.enter-view .hero-img { animation: heroIn 1.2s var(--ease) both; }
@keyframes heroIn { from { opacity: 0; transform: scale(1.04); } }
.sheet-photo { -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.sheet-photo.brand { background-position: 25% 55%; height: 180px; margin-bottom: -28px; }

/* ---- sign-in poster (MotionSites method, from the "Orvante" monochrome photo hero) ----
   Pnina's B&W portrait melts into the ink; a giant word sits behind her head (lighten blend: it shows only where
   the photo is black); the promise rises out of a blur; the form waits on a glass panel. Plays once per visit. */
.lp-stage { position: absolute; inset: 0 0 auto; height: min(112vw, 470px); z-index: 0; overflow: hidden; pointer-events: none; isolation: isolate; background: #000; }
.lp-stage::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(20 15 23 / .55) 0, transparent 22%, transparent 52%, #140f17 96%); }
.lp-word { position: absolute; inset-inline: 5%; top: 22%; display: flex; justify-content: space-between; font-family: var(--display); font-size: min(34vw, 140px); line-height: .8; letter-spacing: -.01em; color: #6e1f44; white-space: nowrap; user-select: none; }
.lp-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; mix-blend-mode: lighten; filter: contrast(1.06); }
.login.poster { align-content: stretch; grid-template-rows: auto minmax(150px, 1fr) auto auto; gap: 12px; padding: 10px 4px 8px; }
.lp-pill { justify-self: center; display: inline-flex; align-items: center; gap: 9px; padding: 5px 16px 5px 6px; border-radius: 99px; background: rgb(20 15 23 / .38); border: 1px solid rgb(255 255 255 / .14); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); color: #f6f0f4; font-size: 14px; font-weight: 600; }
.lp-pill .logo-img { width: 30px; height: 30px; box-shadow: none; }
.login.poster .lp-title { display: grid; justify-items: center; gap: 0; margin: 0; font-size: clamp(50px, 15vw, 64px); line-height: .9; text-align: center; color: #fbf7fa; text-wrap: balance; text-shadow: 0 2px 30px rgb(20 15 23 / .6); }
.lp-title span { display: block; }
.lp-panel { display: grid; gap: 12px; }
.login.poster .lp-panel { padding: 16px; border-radius: 26px; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 30px 60px -30px rgb(0 0 0 / .8); }
.lp-gap { min-height: 0; }

/* entrance vocabulary (blur-rise, fade-rise, fade-down, settle-zoom) */
@keyframes blurRise { from { opacity: 0; transform: translateY(var(--rise, 26px)); filter: blur(var(--blur, 10px)); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes fadeRise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes settleZoom { from { transform: scale(1.14); opacity: 0; } 30% { opacity: 1; } to { transform: scale(1); opacity: 1; } }
@keyframes wordIn { from { opacity: 0; letter-spacing: .12em; filter: blur(14px); } to { opacity: 1; letter-spacing: -.01em; filter: blur(0); } }
.in-blur { animation: blurRise 1.05s var(--ease) var(--d, 0s) both; }
.in-fade { animation: fadeRise .95s var(--ease) var(--d, 0s) both; }
.in-down { animation: fadeDown .8s var(--ease) var(--d, 0s) both; }
.lp-stage.intro .lp-photo { animation: settleZoom 1.8s var(--ease) both; }
.lp-stage.intro .lp-word { animation: wordIn 1.6s .15s var(--ease) both; }

/* home: the studio photo settles in, the name rises out of a blur */
.enter-view .hero-img { animation: settleZoom 1.6s var(--ease) both; }
.enter-view .hero .hello h1 { animation: blurRise 1s .2s var(--ease) both; }
.enter-view .hero .hello .small { animation: fadeRise .8s .1s var(--ease) both; }
.enter-view .hero .lv { animation: fadeRise .8s .45s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  .in-blur, .in-fade, .in-down, .lp-stage.intro .lp-photo, .lp-stage.intro .lp-word,
  .enter-view .hero-img, .enter-view .hero .hello h1, .enter-view .hero .hello .small, .enter-view .hero .lv { animation: none; }
}
.phone.is-login .ph-body:has(> .login.poster) { grid-template-rows: minmax(max-content, 1fr); align-content: stretch; }
