/* Stonepetal — day spa membership.
   Member side reads like a printed treatment menu (thin rules, small caps, air).
   Staff side is a compact front desk. One set of tokens drives both. */

:root {
  --stone: #F3F0EA;      /* page */
  --paper: #FBFAF6;      /* raised surface */
  --sunk: #EBE6DC;       /* wells, hover */
  --sunk-2: #E1DBCF;
  --rule: #DCD5C8;       /* hairlines */
  --rule-2: #C4BBAB;     /* control borders, leaders */
  --ink: #252A26;
  --ink-2: #4D544E;
  --ink-3: #636861;
  --sage: #5E7F68;       /* signature 1 */
  --sage-strong: #4C6A56;
  --sage-deep: #34493B;
  --sage-soft: #E2E9E0;
  --sage-line: #A7BBA8;
  --clay: #C97B63;       /* signature 2: what a booking will use, the key number */
  --clay-ink: #9A4F3B;
  --clay-soft: #F5E1D8;
  --peach: #E6A48C;
  --ok: #46744F;  --ok-soft: #E0EBE0;
  --info: #45647F; --info-soft: #E1E8EF;
  --warn: #8C6118; --warn-soft: #F3E8CF;
  --bad: #A23F37;  --bad-soft: #F5DFDA;
  --on-sage: #FFFFFF;
  --toast-bg: #252A26; --toast-ink: #F3F0EA;
  --scrim: rgba(28, 32, 29, .38);
  --shadow-pop: 0 18px 48px -14px rgba(37, 42, 38, .24), 0 2px 6px rgba(37, 42, 38, .06);
  --shadow-lift: 0 1px 0 rgba(37, 42, 38, .04), 0 6px 18px -10px rgba(37, 42, 38, .18);
  --tier-pebble: #B9AE9A; --tier-river: #5E7F68; --tier-moon: #2F3B4A;
  --logo-stone: #5E7F68; --logo-petal: #C97B63;

  --f-serif: "Cormorant Garamond", "Cormorant", Garamond, "Iowan Old Style", "Times New Roman", serif;
  --f-sans: "Jost", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* type scale: 11.5 / 12.5 / 13.5 / 15 / 17 / 20 / 26 / 34 / 44 / 56 */
  --fs-micro: 11.5px; --fs-xs: 12.5px; --fs-sm: 13.5px; --fs-md: 15px; --fs-lg: 17px;
  --fs-xl: 20px; --fs-2: 26px; --fs-3: 34px; --fs-4: 44px; --fs-5: 56px;

  /* space: 4-based */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --r1: 3px; --r2: 8px; --rp: 999px;
  --t1: 140ms; --t2: 200ms; --t3: 220ms;
  --ease: cubic-bezier(.3, .1, .2, 1);
  --tabbar: 0px;
}

:root[data-theme="dark"] {
  --stone: #151816; --paper: #1C201D; --sunk: #242925; --sunk-2: #2C322D;
  --rule: #323833; --rule-2: #4A524B;
  --ink: #ECE7DE; --ink-2: #BEB9AF; --ink-3: #9D988E;
  --sage: #8DAE97; --sage-strong: #A2C2AB; --sage-deep: #C6DCCB; --sage-soft: #233029; --sage-line: #4D6455;
  --clay: #E6A48C; --clay-ink: #EDB49F; --clay-soft: #3A2A23; --peach: #E6A48C;
  --ok: #8FC09A; --ok-soft: #1F3126;
  --info: #9DB9D4; --info-soft: #202B36;
  --warn: #DDB66C; --warn-soft: #342B1A;
  --bad: #EB948A; --bad-soft: #3B2320;
  --on-sage: #111611;
  --toast-bg: #ECE7DE; --toast-ink: #151816;
  --scrim: rgba(0, 0, 0, .55);
  --shadow-pop: 0 18px 48px -12px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .3);
  --shadow-lift: 0 6px 18px -10px rgba(0, 0, 0, .6);
  --tier-pebble: #8F8676; --tier-river: #8DAE97; --tier-moon: #9FB0C6;
  --logo-stone: #8DAE97; --logo-petal: #E6A48C;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; scroll-padding-top: 80px; }
body {
  margin: 0; min-height: 100vh; background: var(--stone); color: var(--ink);
  font: 400 var(--fs-md)/1.55 var(--f-sans); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color var(--t3) var(--ease), color var(--t3) var(--ease);
}
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--sage-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
img, svg { display: block; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.i.sm { width: 15px; height: 15px; }
.i.lg { width: 22px; height: 22px; }
.logo { width: 30px; height: 30px; flex: none; }
:focus-visible { outline: 2px solid var(--sage-strong); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--clay-soft); color: var(--ink); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--stone); padding: 8px 14px; border-radius: var(--r1); }
.skip:focus { top: 12px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.num, .tnum { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- type ---------- */
.serif { font-family: var(--f-serif); }
.kicker, .label {
  font: 500 var(--fs-micro)/1.3 var(--f-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
.display { font: 300 var(--fs-5)/1.06 var(--f-serif); letter-spacing: -.012em; }
.display em, .h1 em, .h2 em { font-style: italic; font-weight: 400; }
.h1 { font: 400 var(--fs-4)/1.1 var(--f-serif); letter-spacing: -.01em; }
.h2 { font: 400 var(--fs-3)/1.15 var(--f-serif); }
.h3 { font: 500 var(--fs-2)/1.2 var(--f-serif); }
.h4 { font: 500 var(--fs-lg)/1.35 var(--f-sans); }
.lede { font-size: var(--fs-lg); line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-3); }
.soft { color: var(--ink-2); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.fine { font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.5; }
.clay { color: var(--clay-ink); }
.big-num { font: 300 72px/0.95 var(--f-serif); font-variant-numeric: lining-nums; letter-spacing: -.02em; }
.ital { font-family: var(--f-serif); font-style: italic; font-size: 1.12em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--r1);
  font: 500 14px/1 var(--f-sans); letter-spacing: .03em; white-space: nowrap; text-decoration: none;
  transition: background-color var(--t1) var(--ease), border-color var(--t1) var(--ease), color var(--t1), transform 80ms;
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.btn:active:not([disabled]) { transform: translateY(1px); }
.btn-primary { background: var(--sage-strong); color: var(--on-sage); }
.btn-primary:hover:not([disabled]) { background: var(--sage-deep); }
:root[data-theme="dark"] .btn-primary:hover:not([disabled]) { background: var(--sage-deep); color: #0E120F; }
.btn-secondary { background: transparent; border-color: var(--rule-2); color: var(--ink); }
.btn-secondary:hover:not([disabled]) { background: var(--sunk); border-color: var(--ink-3); }
.btn-quiet { background: transparent; color: var(--sage-strong); padding: 0 10px; }
.btn-quiet:hover:not([disabled]) { background: var(--sunk); }
.btn-danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn-danger:hover:not([disabled]) { background: var(--bad-soft); }
.btn-danger.solid { background: var(--bad); color: #fff; border-color: var(--bad); }
:root[data-theme="dark"] .btn-danger.solid { color: #1a0f0d; }
.btn-clay { background: var(--clay); color: #2A160F; }
.btn-clay:hover:not([disabled]) { background: var(--peach); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn.loading { pointer-events: none; }
.btn.loading::before { content: ""; width: 14px; height: 14px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-xs { height: 26px; padding: 0 9px; font-size: 12px; letter-spacing: .02em; }
.btn-icon { width: 36px; height: 36px; padding: 0; color: var(--ink-2); background: transparent; border: 1px solid transparent; border-radius: var(--r1); display: inline-grid; place-items: center; }
.btn-icon:hover { background: var(--sunk); color: var(--ink); }
.btn-icon.sm { width: 30px; height: 30px; }
.btn-wide { width: 100%; }
.linkish { background: none; border: 0; padding: 0; color: var(--sage-strong); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; font-size: inherit; }
.linkish:hover { color: var(--sage-deep); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- form controls ---------- */
.field { display: grid; gap: 6px; align-content: start; }
.field > label, .field > .flabel { font: 500 13px/1.3 var(--f-sans); color: var(--ink-2); letter-spacing: .01em; }
.field .help { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.field .err { font-size: 12.5px; color: var(--bad); display: flex; gap: 6px; align-items: flex-start; line-height: 1.45; }
.input, .select select, .textarea {
  width: 100%; height: 42px; padding: 0 12px; background: var(--paper); border: 1px solid var(--rule-2); border-radius: var(--r1);
  color: var(--ink); font-size: 14.5px; transition: border-color var(--t1), box-shadow var(--t1);
}
.textarea { height: auto; min-height: 84px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); opacity: .8; }
.input:hover, .select select:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus, .select select:focus, .textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-soft); }
.field.bad .input, .field.bad .textarea, .field.bad .select select { border-color: var(--bad); }
.field.bad .input:focus { box-shadow: 0 0 0 3px var(--bad-soft); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select.sm select, .input.sm { height: 34px; font-size: 13.5px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; line-height: 1.45; }
.check input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 1px 0 0; flex: none; border: 1px solid var(--rule-2); border-radius: 2px; background: var(--paper); display: grid; place-items: center; cursor: pointer; }
.check input:checked { background: var(--sage-strong); border-color: var(--sage-strong); }
.check input:checked::after { content: ""; width: 5px; height: 9px; border: solid var(--on-sage); border-width: 0 1.8px 1.8px 0; transform: translateY(-1px) rotate(45deg); }
.check input[type="radio"] { border-radius: 50%; }
.check input[type="radio"]:checked::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--on-sage); transform: none; }
.row { display: flex; gap: var(--s3); align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row.top { align-items: flex-start; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: var(--s4); align-content: start; }
.stack.tight { gap: var(--s2); }
.stack.loose { gap: var(--s5); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }

/* segmented control */
.seg { display: inline-flex; border: 1px solid var(--rule-2); border-radius: var(--r1); padding: 2px; background: var(--paper); gap: 2px; justify-self: start; align-self: start; max-width: 100%; flex-wrap: wrap; }
.seg button, .seg a { border: 0; background: transparent; height: 32px; padding: 0 14px; border-radius: 2px; font-size: 13.5px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; transition: background-color var(--t1), color var(--t1); }
.seg button:hover, .seg a:hover { color: var(--ink); background: var(--sunk); }
.seg .on, .seg [aria-pressed="true"], .seg [aria-checked="true"] { background: var(--sage-strong); color: var(--on-sage); }
.seg .on:hover, .seg [aria-pressed="true"]:hover, .seg [aria-checked="true"]:hover { background: var(--sage-strong); color: var(--on-sage); }
.seg.sm button { height: 28px; padding: 0 10px; font-size: 12.5px; }
.seg.full { display: flex; justify-self: stretch; flex-wrap: nowrap; } .seg.full > * { flex: 1; justify-content: center; }

/* chips, tags, status */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 32px; padding: 0 13px; border: 1px solid var(--rule-2); border-radius: var(--rp); background: transparent; font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; transition: background-color var(--t1), border-color var(--t1), color var(--t1); }
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.on, .chip[aria-pressed="true"] { background: var(--sage-soft); border-color: var(--sage-line); color: var(--sage-deep); }
:root[data-theme="dark"] .chip.on, :root[data-theme="dark"] .chip[aria-pressed="true"] { color: var(--sage-strong); }
.chip.avoid[aria-pressed="true"] { background: var(--clay-soft); border-color: var(--clay); color: var(--clay-ink); }
.chip .ct { font-size: 11.5px; color: var(--ink-3); }
.chip.sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 2px; font: 500 10.5px/1 var(--f-sans); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; background: var(--sunk); color: var(--ink-2); }
.tag.t-pebble { background: transparent; box-shadow: inset 0 0 0 1px var(--tier-pebble); color: var(--ink-2); }
.tag.t-river { background: var(--sage-soft); color: var(--sage-deep); }
:root[data-theme="dark"] .tag.t-river { color: var(--sage-strong); }
.tag.t-moon { background: var(--tier-moon); color: #EEF0F3; }
:root[data-theme="dark"] .tag.t-moon { color: #131820; }
.tag.clay { background: var(--clay-soft); color: var(--clay-ink); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.tag.info { background: var(--info-soft); color: var(--info); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.st { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); flex: none; }
.st.booked::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--sage); }
.st.late { color: var(--warn); } .st.late::before { background: var(--warn); }
.st.arrived { color: var(--clay-ink); } .st.arrived::before { background: var(--clay); }
.st.inroom { color: var(--sage-strong); } .st.inroom::before { background: var(--sage); }
.st.done::before { background: var(--rule-2); }
.st.noshow, .st.cancelled { color: var(--bad); } .st.noshow::before, .st.cancelled::before { background: var(--bad); }
.st.ok { color: var(--ok); } .st.ok::before { background: var(--ok); }
.st.due { color: var(--warn); } .st.due::before { background: var(--warn); }
.st.bad { color: var(--bad); } .st.bad::before { background: var(--bad); }
.st.paused { color: var(--info); } .st.paused::before { background: var(--info); }

/* dotted leaders: the printed-menu line */
.lead { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.lead > i { flex: 1; min-width: 16px; border-bottom: 1px dotted var(--rule-2); transform: translateY(-5px); }
.lead > span:first-child { min-width: 0; }
.lead > b { font-weight: 500; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.leads { display: grid; gap: 10px; }

/* notices */
.note { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--r1); background: var(--sunk); font-size: 13.5px; line-height: 1.5; color: var(--ink-2); align-items: flex-start; }
.note .i { margin-top: 1px; color: var(--ink-3); }
.note.clay { background: var(--clay-soft); color: var(--ink); } .note.clay .i { color: var(--clay-ink); }
.note.warn { background: var(--warn-soft); color: var(--ink); } .note.warn .i { color: var(--warn); }
.note.bad { background: var(--bad-soft); color: var(--ink); } .note.bad .i { color: var(--bad); }
.note.ok { background: var(--ok-soft); color: var(--ink); } .note.ok .i { color: var(--ok); }
.note b { font-weight: 500; }

/* tabs */
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--rule); }
.tabs button { border: 0; background: none; padding: 10px 0 11px; margin-bottom: -1px; border-bottom: 2px solid transparent; font: 500 var(--fs-micro)/1 var(--f-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); display: inline-flex; gap: 8px; align-items: center; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--sage); }
.tabs .ct { font-size: 11px; letter-spacing: .04em; color: var(--ink-3); }

/* tables */
.tbl-wrap { border-top: 1px solid var(--rule); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font: 500 10.5px/1.2 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.tbl-fixed { table-layout: fixed; }
.tbl-fixed td, .tbl-fixed th { overflow: hidden; text-overflow: ellipsis; }
.tbl-fixed td:last-child { overflow: visible; }
.tbl tr.click { cursor: pointer; transition: background-color var(--t1); }
.tbl tr.click:hover td { background: var(--sunk); }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl th.num { text-align: right; }
.tbl tfoot td { font-weight: 500; border-bottom: 0; border-top: 1px solid var(--rule-2); }
.tbl .who { display: grid; gap: 1px; }
.tbl .who b { font-weight: 500; }
.tbl .who small { color: var(--ink-3); font-size: 12px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; font-size: 13px; color: var(--ink-3); }

/* skeleton */
.sk { background: var(--sunk); border-radius: 2px; position: relative; overflow: hidden; }
.sk::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); transform: translateX(-100%); animation: shimmer 1.1s infinite; }
:root[data-theme="dark"] .sk::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent); }
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-line { height: 12px; margin: 14px 0; }
.sk-row { height: 44px; margin: 0 0 1px; }

/* empty states */
.empty { display: grid; gap: 10px; justify-items: start; padding: 32px 0; max-width: 46ch; }
.empty .h3 { font-size: 24px; }
.empty p { color: var(--ink-2); font-size: 14px; }
.empty svg.art { width: 84px; height: 56px; margin-bottom: 4px; }

/* ---------- pebbles: the credits wallet ---------- */
.pebbles { display: flex; flex-wrap: wrap; gap: 18px 26px; align-items: flex-end; }
.pgroup { display: grid; gap: 9px; min-width: 0; }
.pstones { display: flex; flex-wrap: wrap; gap: 5px; max-width: 260px; }
.peb { width: 22px; height: 16px; border-radius: 54% 46% 50% 50% / 60% 56% 44% 40%; background: var(--sage); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .08); transition: background-color var(--t3) var(--ease), box-shadow var(--t3) var(--ease), opacity var(--t3); }
.peb:nth-child(3n+2) { border-radius: 48% 52% 44% 56% / 52% 62% 38% 48%; width: 21px; }
.peb:nth-child(3n) { border-radius: 56% 44% 52% 48% / 46% 54% 46% 54%; width: 23px; }
.peb.held { background: repeating-linear-gradient(135deg, var(--sage-line) 0 2px, transparent 2px 4.5px); box-shadow: inset 0 0 0 1.3px var(--sage); }
.peb.used { background: transparent; box-shadow: inset 0 0 0 1.2px var(--rule-2); }
.peb.exp { background: color-mix(in srgb, var(--sage) 50%, var(--paper)); box-shadow: inset 0 0 0 1.4px var(--clay); }
.peb.use { background: var(--clay); box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.2px var(--clay); }
.peb.na { opacity: .32; }
.pcap { font-size: 12px; line-height: 1.35; color: var(--ink-3); }
.pcap b { display: block; font: 500 10.5px/1.3 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.pgroup.na .pcap { text-decoration: line-through; text-decoration-color: var(--rule-2); }
.plegend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--ink-3); }
.plegend span { display: inline-flex; gap: 7px; align-items: center; }
.plegend .peb { width: 14px; height: 10px; }
.pebbles.mini .peb { width: 14px; height: 10px; }
.pebbles.mini { gap: 10px 16px; }
.pebbles.mini .pstones { gap: 3px; max-width: 180px; }

/* ---------- overlays ---------- */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 100; opacity: 0; transition: opacity var(--t3) var(--ease); }
.scrim.in { opacity: 1; }
.panel { position: fixed; z-index: 110; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; box-shadow: var(--shadow-pop); border: 1px solid var(--rule); opacity: 0; transition: opacity var(--t3) var(--ease), transform var(--t3) var(--ease); max-width: 100vw; }
.panel.modal { left: 50%; top: 50%; width: min(540px, calc(100vw - 32px)); max-height: calc(100vh - 64px); border-radius: var(--r2); transform: translate(-50%, calc(-50% + 8px)); }
.panel.modal.wide { width: min(760px, calc(100vw - 32px)); }
.panel.modal.in { opacity: 1; transform: translate(-50%, -50%); }
.panel.drawer { right: 0; top: 0; bottom: 0; width: min(500px, 100vw); border-radius: 0; border-width: 0 0 0 1px; transform: translateX(18px); }
.panel.drawer.wide { width: min(580px, 100vw); }
.panel.drawer.in { opacity: 1; transform: none; }
.panel-h { display: flex; align-items: flex-start; gap: 12px; padding: 20px 24px 16px; border-bottom: 1px solid var(--rule); }
.panel-h .titles { flex: 1; min-width: 0; display: grid; gap: 4px; }
.panel-h h2 { font: 500 26px/1.15 var(--f-serif); }
.panel-b { padding: 22px 24px; overflow-y: auto; overflow-x: hidden; flex: 1; overscroll-behavior: contain; }
.panel-f { display: flex; gap: 10px; justify-content: flex-end; align-items: center; padding: 14px 24px; border-top: 1px solid var(--rule); background: var(--paper); flex-wrap: wrap; }
.panel-f .grow { font-size: 12.5px; color: var(--ink-3); }
.panel-f .grow:empty { display: none; }
.panel-sec { padding: 18px 0; border-top: 1px solid var(--rule); display: grid; gap: 12px; }
.panel-sec:first-child { border-top: 0; padding-top: 0; }
.menu { position: fixed; z-index: 160; min-width: 210px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r2); box-shadow: var(--shadow-pop); padding: 6px; display: grid; opacity: 0; transform: translateY(-4px); transition: opacity var(--t1), transform var(--t1); }
.menu.in { opacity: 1; transform: none; }
.menu button { display: flex; gap: 10px; align-items: center; height: 36px; padding: 0 10px; border: 0; border-radius: 2px; background: none; text-align: left; font-size: 13.5px; color: var(--ink); }
.menu button:hover, .menu button:focus-visible { background: var(--sunk); outline: none; }
.menu button.danger { color: var(--bad); }
.menu hr { border: 0; border-top: 1px solid var(--rule); margin: 5px 0; }
#tip { position: fixed; z-index: 170; max-width: 260px; padding: 6px 9px; border-radius: var(--r1); background: var(--toast-bg); color: var(--toast-ink); font-size: 12.5px; line-height: 1.4; pointer-events: none; }

/* toasts */
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 150; display: grid; gap: 8px; justify-items: center; pointer-events: none; transition: bottom var(--t2) var(--ease); }
.has-panel #toasts { left: 24px; transform: none; justify-items: start; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 14px; max-width: min(440px, calc(100vw - 32px)); padding: 11px 12px 11px 16px; border-radius: 4px; background: var(--toast-bg); color: var(--toast-ink); font-size: 13.5px; line-height: 1.45; box-shadow: var(--shadow-pop); opacity: 0; transform: translateY(6px); transition: opacity var(--t3) var(--ease), transform var(--t3) var(--ease); }
.toast.in { opacity: 1; transform: none; }
.toast .t-msg { flex: 1; min-width: 0; }
.toast button { border: 0; background: none; color: var(--peach); font: 500 13px var(--f-sans); letter-spacing: .04em; padding: 6px 8px; border-radius: 2px; white-space: nowrap; }
:root[data-theme="dark"] .toast button { color: var(--clay-ink); color: #9A4F3B; }
.toast button:hover { background: rgba(255, 255, 255, .08); }
.toast .x { color: inherit; opacity: .6; padding: 4px; }
.toast.bad { border-left: 3px solid var(--bad); }

/* ---------- sign in ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
.login-art { position: relative; background: var(--sage-deep); color: #EDEBE3; padding: 56px 64px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
:root[data-theme="dark"] .login-art { background: #1E2A22; }
.login-art .brandline { display: flex; align-items: center; gap: 12px; font: 500 24px/1 var(--f-serif); letter-spacing: .04em; --logo-stone: #A9C1AE; --logo-petal: #E6A48C; }
.login-art .menu-card { position: relative; z-index: 1; max-width: 460px; }
.login-art .menu-card .kicker { color: #B9C9BA; }
.login-art h1 { font: 300 60px/1.04 var(--f-serif); margin: 18px 0 22px; letter-spacing: -.01em; }
.login-art h1 em { font-style: italic; font-weight: 400; color: #F0C3B1; }
.login-art p { color: #CFD8CD; max-width: 40ch; }
.login-art .leads { margin-top: 30px; max-width: 380px; font-size: 14px; color: #DCE3D9; }
.login-art .lead > i { border-color: rgba(220, 227, 217, .35); }
.login-art svg.stones { position: absolute; right: -40px; bottom: -30px; width: 520px; height: auto; opacity: .95; pointer-events: none; }
.login-art .fine { color: #AFC0B1; position: relative; z-index: 1; }
.login-form { display: grid; place-items: center; padding: 48px 32px; }
.login-form form { width: min(400px, 100%); display: grid; gap: 18px; }
.login-form h2 { font: 400 38px/1.1 var(--f-serif); }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
.side-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.side-pick button { text-align: left; padding: 12px 14px; border: 1px solid var(--rule-2); border-radius: var(--r1); background: var(--paper); display: grid; gap: 3px; transition: border-color var(--t1), background-color var(--t1); }
.side-pick button b { font: 500 14px var(--f-sans); }
.side-pick button span { font-size: 12.5px; color: var(--ink-3); line-height: 1.35; }
.side-pick button[aria-pressed="true"] { border-color: var(--sage); background: var(--sage-soft); box-shadow: inset 0 0 0 1px var(--sage); }

/* ---------- side switch (both shells) ---------- */
.side-switch { display: inline-flex; align-items: center; gap: 10px; }
.side-switch .kicker { font-size: 10.5px; }
.side-switch .seg a { height: 30px; font-size: 13px; padding: 0 12px; }
.side-switch .seg .on { background: var(--ink); color: var(--stone); }
.side-switch .seg .on:hover { background: var(--ink); color: var(--stone); }

/* ---------- member shell ---------- */
.m-shell { min-height: 100vh; display: flex; flex-direction: column; }
.m-top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--stone) 94%, transparent); backdrop-filter: saturate(1.1) blur(6px); border-bottom: 1px solid var(--rule); }
.m-top-in { max-width: 1200px; margin: 0 auto; padding: 0 40px; height: 68px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 500 23px/1 var(--f-serif); letter-spacing: .05em; }
.brand small { font: 500 10px/1 var(--f-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-left: 2px; align-self: center; padding-top: 3px; }
.m-nav { display: flex; gap: 24px; flex: 1; white-space: nowrap; }
.m-nav a { position: relative; text-decoration: none; color: var(--ink-2); font: 500 11.5px/1 var(--f-sans); letter-spacing: .16em; text-transform: uppercase; padding: 26px 0 25px; }
.m-nav a:hover { color: var(--ink); }
.m-nav a.on { color: var(--ink); }
.m-nav a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--sage); }
.top-tools { display: flex; align-items: center; gap: 6px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--clay-soft); color: var(--clay-ink); font: 500 12.5px/1 var(--f-sans); letter-spacing: .06em; border: 0; }
.m-main { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 40px 96px; flex: 1; }
.m-foot { border-top: 1px solid var(--rule); }
.m-foot-in { max-width: 1200px; margin: 0 auto; padding: 24px 40px 32px; display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); }
.view-enter { animation: fadeOnly var(--t3) var(--ease) backwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes fadeOnly { from { opacity: 0; } to { opacity: 1; } }

.page-head { padding: 56px 0 40px; display: grid; gap: 14px; }
.page-head .row { margin-top: 6px; }

/* the "leaf": a menu section with its label in the left margin */
.leaf { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 32px; padding: 40px 0; border-top: 1px solid var(--rule); }
.leaf > .label { padding-top: 6px; }
.leaf-body { min-width: 0; display: grid; gap: 20px; align-content: start; }
.leaf.flush { padding-top: 24px; }

.hero { padding: 64px 0 52px; display: grid; gap: 20px; max-width: 900px; }
.hero .display { max-width: 18ch; }
.hero .lede { max-width: 58ch; }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.sticky { position: sticky; top: 92px; }

/* printed rows (visits, menu) */
.plist { border-top: 1px solid var(--rule); }
.prow { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.prow .date { display: grid; gap: 2px; }
.prow .date b { font: 400 34px/0.9 var(--f-serif); font-variant-numeric: lining-nums; }
.prow .date span { font: 500 10.5px/1.2 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.prow h3 { font: 500 21px/1.25 var(--f-serif); }
.prow .meta { font-size: 13.5px; color: var(--ink-2); margin-top: 3px; }
.prow .quote { font-family: var(--f-serif); font-style: italic; font-size: 17px; line-height: 1.45; color: var(--ink-2); margin-top: 10px; padding-left: 14px; border-left: 1px solid var(--clay); }
.prow .acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.prow.dim h3, .prow.dim .date b { color: var(--ink-3); }
.stars { display: inline-flex; gap: 2px; }
.stars button { border: 0; background: none; padding: 2px; color: var(--rule-2); }
.stars button.on { color: var(--clay); }
.stars button.on .i { fill: currentColor; }
.stars .i { width: 16px; height: 16px; }

/* treatment menu */
.tmenu { display: grid; gap: 34px; }
.tcat > .label { padding-bottom: 10px; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; }
.titem { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; padding: 16px 14px 16px 16px; margin: 0 -14px 0 -16px; border: 0; border-bottom: 1px solid var(--rule); background: none; text-align: left; width: calc(100% + 30px); position: relative; transition: background-color var(--t1); }
.titem:hover { background: color-mix(in srgb, var(--sunk) 60%, transparent); }
.titem h4 { font: 500 22px/1.2 var(--f-serif); }
.titem p { font-size: 13.5px; color: var(--ink-2); max-width: 56ch; grid-column: 1; }
.titem .tp { text-align: right; font-size: 13px; color: var(--ink-3); white-space: nowrap; display: grid; gap: 3px; align-content: start; grid-row: span 2; }
.titem .tp b { font: 500 13px var(--f-sans); color: var(--ink); }
.titem[aria-pressed="true"] { background: var(--sage-soft); }
.titem[aria-pressed="true"]::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; background: var(--sage); }
.titem .opts { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }

.step { padding: 30px 0; border-top: 1px solid var(--rule); display: grid; gap: 16px; }
.step-h { display: flex; align-items: baseline; gap: 14px; }
.step-h .n { font: 400 28px/1 var(--f-serif); color: var(--clay-ink); font-variant-numeric: lining-nums; width: 26px; }
.step-h h2 { font: 400 28px/1.15 var(--f-serif); flex: 1; }
.step-h .done { font-size: 13px; color: var(--ink-3); }
.dstrip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.dbtn { border: 1px solid var(--rule); background: var(--paper); border-radius: var(--r1); padding: 9px 4px 8px; display: grid; justify-items: center; gap: 2px; transition: border-color var(--t1), background-color var(--t1); }
.dbtn span { font: 500 10px/1.2 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.dbtn b { font: 400 24px/1 var(--f-serif); font-variant-numeric: lining-nums; }
.dbtn i { width: 22px; height: 3px; border-radius: 2px; background: var(--rule); margin-top: 3px; }
.dbtn i.lo { background: var(--sage-line); } .dbtn i.mid { background: var(--sage); } .dbtn i.full { background: var(--clay); }
.dbtn:hover:not([disabled]) { border-color: var(--ink-3); }
.dbtn[aria-pressed="true"] { border-color: var(--sage); background: var(--sage-soft); box-shadow: inset 0 0 0 1px var(--sage); }
.dbtn[disabled] { opacity: .4; cursor: not-allowed; }
.slots { display: grid; gap: 16px; }
.slot-group { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; }
.slot-group .label { padding-top: 9px; }
.slot-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.slot { height: 34px; min-width: 82px; padding: 0 10px; border: 1px solid var(--rule-2); border-radius: var(--r1); background: var(--paper); font-size: 13px; font-variant-numeric: tabular-nums; transition: border-color var(--t1), background-color var(--t1), color var(--t1); }
.slot:hover:not([aria-disabled="true"]) { border-color: var(--sage); }
.slot[aria-pressed="true"] { background: var(--sage-strong); color: var(--on-sage); border-color: var(--sage-strong); }
.slot[aria-disabled="true"] { color: var(--ink-3); background: transparent; border-style: dashed; border-color: var(--rule); text-decoration: line-through; text-decoration-color: var(--rule-2); cursor: not-allowed; }

.summary { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r2); padding: 24px; display: grid; gap: 18px; }
.summary h3 { font: 400 26px/1.15 var(--f-serif); }
.summary .leads { font-size: 14px; }
.summary .uses { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.summary .uses b { font-weight: 500; color: var(--ink); }

.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.tier { padding: 28px 28px 30px; border-right: 1px solid var(--rule); display: grid; gap: 16px; align-content: start; position: relative; }
.tier:last-child { border-right: 0; }
.tier h3 { font: 400 34px/1 var(--f-serif); }
.tier .price { font: 400 26px/1 var(--f-serif); font-variant-numeric: lining-nums; }
.tier .price small { font: 400 13px var(--f-sans); color: var(--ink-3); }
.tier .leads { font-size: 13.5px; gap: 9px; }
.tier.current { background: var(--paper); }
.tier.current::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--sage); }
.tier .badge { position: absolute; top: 28px; right: 24px; }

/* timeline (pause) */
.tline { position: relative; padding: 46px 0 64px; }
.tline .bar { position: relative; height: 2px; background: var(--rule-2); }
.tline .seg-p { position: absolute; top: -3px; height: 8px; background: repeating-linear-gradient(135deg, var(--clay) 0 3px, transparent 3px 6px); border-top: 2px solid var(--clay); border-bottom: 2px solid var(--clay); transition: left var(--t3) var(--ease), width var(--t3) var(--ease); }
.tline .mk { position: absolute; top: 0; transform: translateX(-50%); display: grid; justify-items: center; transition: left var(--t3) var(--ease); }
.tline .mk::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink-2); margin-top: -4.5px; }
.tline .mk.clay::before { border-color: var(--clay); background: var(--clay); }
.tline .mk.sage::before { border-color: var(--sage); background: var(--sage); }
.tline .mk span { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12.5px; text-align: center; line-height: 1.35; }
.tline .mk.start span { left: -4px; transform: none; text-align: left; }
.tline .mk.end span { left: auto; right: -4px; transform: none; text-align: right; }
.tline .mk span b { display: block; font: 500 10px/1.3 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.tline .mk.up span { top: auto; bottom: 14px; }
.tline .tick { position: absolute; top: -4px; width: 1px; height: 10px; background: var(--rule-2); }
.tline .tick span { position: absolute; top: -20px; left: 0; transform: translateX(-50%); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.choice { display: grid; gap: 10px; }
.opt { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--rule-2); border-radius: var(--r1); background: var(--paper); text-align: left; cursor: pointer; transition: border-color var(--t1), background-color var(--t1); }
.opt:hover { border-color: var(--ink-3); }
.opt .dot { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--rule-2); margin-top: 2px; display: grid; place-items: center; }
.opt[aria-checked="true"] { border-color: var(--sage); background: var(--sage-soft); box-shadow: inset 0 0 0 1px var(--sage); }
.opt[aria-checked="true"] .dot { border-color: var(--sage-strong); }
.opt[aria-checked="true"] .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sage-strong); }
.opt b { font-weight: 500; display: block; }
.opt small { font-size: 13px; color: var(--ink-2); line-height: 1.45; display: block; margin-top: 2px; }
.opt .aside { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.opt[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

/* printed documents: gift card, guest pass, receipts */
.card-doc { background: #FBF8F1; color: #2A2E2B; border: 1px solid #E2DACB; border-radius: 4px; padding: 30px 32px; position: relative; overflow: hidden; box-shadow: var(--shadow-lift); }
.card-doc .kicker { color: #6D6A61; }
.card-doc .rule { height: 1px; background: #C97B63; margin: 16px 0; width: 56px; }
.card-doc h3 { font: 400 34px/1.08 var(--f-serif); color: #2A2E2B; }
.card-doc .msg { font: italic 400 19px/1.45 var(--f-serif); color: #4A4F49; margin-top: 12px; min-height: 28px; overflow-wrap: anywhere; }
.card-doc .foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 22px; font-size: 12.5px; color: #6D6A61; flex-wrap: wrap; }
.card-doc .code { font: 500 13px var(--f-sans); letter-spacing: .18em; color: #2A2E2B; }
.card-doc svg.corner { position: absolute; right: -14px; top: -10px; width: 130px; height: 130px; opacity: .9; }
.pass { display: grid; grid-template-columns: minmax(0, 1fr) 118px; padding: 0; }
.pass > div { padding: 24px 26px; }
.pass .stub { border-left: 1.5px dashed #D3C9B8; display: grid; align-content: center; justify-items: center; gap: 6px; text-align: center; background: #F4EFE5; padding: 18px 8px !important; }
.pass .stub .code { font-size: 11px; letter-spacing: .08em; white-space: nowrap; }
.pass .stub b { font: 400 40px/1 var(--f-serif); color: #5E7F68; font-variant-numeric: lining-nums; }
.doc { background: #fff; color: #222; border: 1px solid #E3DED4; border-radius: 4px; padding: 28px 30px; font-size: 13px; line-height: 1.5; }
.doc h3 { font: 500 26px/1.1 var(--f-serif); color: #222; }
.doc .muted { color: #666; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.doc th { text-align: left; font: 500 10px/1.2 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: #777; border-bottom: 1px solid #DDD; padding: 6px 0; }
.doc td { border-bottom: 1px solid #EEE; padding: 7px 0; vertical-align: top; }
.doc .num { text-align: right; }
.doc tfoot td { border: 0; padding: 4px 0; }
.doc tfoot tr.total td { border-top: 1px solid #222; padding-top: 8px; font-weight: 600; font-size: 14px; }
.doc .doc-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid #DDD; flex-wrap: wrap; }
.doc .doc-brand { display: flex; gap: 10px; align-items: center; font: 500 22px/1 var(--f-serif); letter-spacing: .05em; --logo-stone: #5E7F68; --logo-petal: #C97B63; }

/* body map */
.bodymap { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: start; }
.bodymap svg { width: 150px; height: auto; }
.bodymap .rg { fill: var(--paper); stroke: var(--rule-2); stroke-width: 1.2; cursor: pointer; transition: fill var(--t1); }
.bodymap .rg:hover { fill: var(--sunk); }
.bodymap .rg.focus { fill: var(--sage-line); stroke: var(--sage-strong); }
.bodymap .rg.avoid { fill: var(--clay-soft); stroke: var(--clay); }
.bodymap .rg:focus-visible { outline: none; stroke: var(--ink); stroke-width: 2; }
.bodymap .key { display: grid; gap: 10px; font-size: 13px; color: var(--ink-2); }

/* ---------- staff shell ---------- */
.s-shell { min-height: 100vh; display: grid; grid-template-columns: 216px minmax(0, 1fr); font-size: 14px; }
.s-rail { position: sticky; top: 0; height: 100vh; background: var(--sunk); border-right: 1px solid var(--rule); display: flex; flex-direction: column; padding: 18px 12px 14px; gap: 18px; }
.s-rail .brand { padding: 4px 8px 2px; font-size: 21px; }
.s-rail .where { padding: 0 8px; font-size: 12px; color: var(--ink-3); line-height: 1.4; }
.s-nav { display: grid; gap: 2px; }
.s-nav a { display: flex; align-items: center; gap: 11px; height: 36px; padding: 0 10px; border-radius: var(--r1); text-decoration: none; color: var(--ink-2); font-size: 14px; transition: background-color var(--t1), color var(--t1); }
.s-nav a:hover { background: var(--sunk-2); color: var(--ink); }
.s-nav a.on { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); }
.s-nav a.on .i { color: var(--sage-strong); }
.s-nav .count { margin-left: auto; font-size: 11.5px; min-width: 22px; height: 20px; padding: 0 6px; border-radius: var(--rp); display: grid; place-items: center; background: var(--paper); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.s-nav .count.clay { background: var(--clay); color: #2A160F; }
.s-rail .rail-foot { margin-top: auto; display: grid; gap: 10px; padding: 0 4px; }
.s-rail .me { display: flex; gap: 10px; align-items: center; font-size: 13px; padding: 8px 6px 0; border-top: 1px solid var(--rule); }
.s-rail .me small { display: block; color: var(--ink-3); font-size: 12px; }
.s-body { min-width: 0; display: flex; flex-direction: column; }
.s-top { position: sticky; top: 0; z-index: 40; height: 56px; display: flex; align-items: center; gap: 14px; padding: 0 24px; background: color-mix(in srgb, var(--stone) 94%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule); }
.s-top .when { display: flex; align-items: baseline; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.s-top .when b { font: 500 15px var(--f-sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.s-top .live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.s-top .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 3px var(--sage-soft); }
.s-top .live.off::before { background: var(--rule-2); box-shadow: none; }
.searchbtn { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px 0 12px; border: 1px solid var(--rule-2); border-radius: var(--r1); background: var(--paper); color: var(--ink-3); font-size: 13px; min-width: 220px; }
.searchbtn kbd, kbd { font: 500 11px/1 var(--f-sans); padding: 3px 5px; border: 1px solid var(--rule-2); border-bottom-width: 2px; border-radius: 3px; color: var(--ink-2); background: var(--paper); }
.searchbtn kbd { margin-left: auto; }
.s-main { padding: 22px 24px 64px; min-width: 0; flex: 1; }
.s-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.s-head h1 { font: 500 32px/1.05 var(--f-serif); }
.s-head .sub { font-size: 13.5px; color: var(--ink-3); margin-top: 6px; }
.s-head .acts { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.s-shell .btn { height: 34px; padding: 0 14px; font-size: 13.5px; }
.s-shell .btn-sm { height: 30px; padding: 0 11px; font-size: 13px; }
.s-shell .btn-xs { height: 26px; padding: 0 9px; font-size: 12px; }
.statline { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 18px; }
.statline > div { padding: 10px 18px 11px 0; margin-right: 18px; border-right: 1px solid var(--rule); display: grid; gap: 1px; }
.statline > div:last-child { border-right: 0; }
.statline b { font: 500 22px/1.1 var(--f-serif); font-variant-numeric: lining-nums tabular-nums; }
.statline span { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.statline .clay b { color: var(--clay-ink); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .search { position: relative; flex: 1; min-width: 200px; max-width: 340px; }
.toolbar .search .i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.toolbar .search .input { padding-left: 34px; height: 34px; font-size: 13.5px; }
.panelbox { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r2); }
.panelbox-h { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.panelbox-h h2 { font: 500 13px/1 var(--f-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.panelbox .tbl th:first-child, .panelbox .tbl td:first-child { padding-left: 16px; }
.panelbox .tbl th:last-child, .panelbox .tbl td:last-child { padding-right: 16px; }
.panelbox .tbl tr:last-child td { border-bottom: 0; }

/* the room / therapist board */
.board { --lab: 136px; position: relative; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r2); user-select: none; -webkit-user-select: none; }
.b-axis { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); height: 30px; border-bottom: 1px solid var(--rule); }
.b-axis .corner { display: flex; align-items: center; padding: 0 12px; font: 500 10px/1 var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); border-right: 1px solid var(--rule); }
.b-hours { position: relative; }
.b-hours span { position: absolute; top: 9px; transform: translateX(4px); font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.b-rows { position: relative; }
.b-row { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); height: 50px; border-bottom: 1px solid var(--rule); }
.b-row:last-child { border-bottom: 0; }
.b-row.hot .b-track { background-color: color-mix(in srgb, var(--sage-soft) 55%, transparent); }
.b-row.cold .b-track { background-color: color-mix(in srgb, var(--bad-soft) 55%, transparent); }
.b-label { padding: 0 12px; border-right: 1px solid var(--rule); display: grid; align-content: center; gap: 1px; min-width: 0; }
.b-label b { font-weight: 500; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-label small { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-track { position: relative; background-image: linear-gradient(to right, var(--rule) 1px, transparent 1px), linear-gradient(to right, color-mix(in srgb, var(--rule) 45%, transparent) 1px, transparent 1px); background-size: calc(100% / 12) 100%, calc(100% / 24) 100%; transition: background-color var(--t1); }
.bk { position: absolute; top: 6px; bottom: 6px; border-radius: var(--r1); padding: 4px 7px; font-size: 12px; line-height: 1.25; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: left; border: 0; background: var(--paper); box-shadow: inset 0 0 0 1px var(--sage-line), inset 3px 0 0 var(--sage); color: var(--ink); cursor: pointer; display: block; transition: box-shadow var(--t1), opacity var(--t1); }
.bk b { font-weight: 500; display: block; overflow: hidden; text-overflow: ellipsis; }
.bk small { display: block; color: var(--ink-3); font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.bk:hover { box-shadow: inset 0 0 0 1px var(--sage), inset 3px 0 0 var(--sage); }
.bk.arrived { background: var(--clay-soft); box-shadow: inset 0 0 0 1px var(--clay), inset 3px 0 0 var(--clay); }
.bk.inroom { background: var(--sage); color: var(--on-sage); box-shadow: none; }
.bk.inroom small { color: color-mix(in srgb, var(--on-sage) 78%, transparent); }
.bk.done { background: var(--sunk); box-shadow: none; color: var(--ink-3); }
.bk.done small { color: var(--ink-3); }
.bk.noshow { background: transparent; box-shadow: inset 0 0 0 1px var(--bad); color: var(--bad); background-image: repeating-linear-gradient(135deg, var(--bad-soft) 0 3px, transparent 3px 7px); }
.bk.late { box-shadow: inset 0 0 0 1px var(--warn), inset 3px 0 0 var(--warn); }
.bk.mine { outline: 1.5px solid var(--clay); outline-offset: 1px; }
.bk.ghosted { opacity: .3; }
.bk.flash { animation: flash 900ms var(--ease); }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 3px var(--clay); } 100% { box-shadow: inset 0 0 0 1px var(--sage-line), inset 3px 0 0 var(--sage); } }
.turn { position: absolute; top: 12px; bottom: 12px; background: repeating-linear-gradient(135deg, var(--rule) 0 1.5px, transparent 1.5px 5px); border-radius: 2px; pointer-events: none; }
.off { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--rule) 70%, transparent) 0 1px, transparent 1px 6px); pointer-events: none; }
.brk { position: absolute; top: 12px; bottom: 12px; border: 1px dashed var(--rule-2); border-radius: 2px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); display: grid; place-items: center; pointer-events: none; overflow: hidden; }
.b-now { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1.5px solid var(--clay); z-index: 3; pointer-events: none; }
.b-now span { position: absolute; top: -26px; left: 0; transform: translateX(-50%); background: var(--clay); color: #2A160F; font: 500 10.5px/1 var(--f-sans); padding: 4px 6px; border-radius: 2px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ghost { position: absolute; z-index: 5; border-radius: var(--r1); padding: 4px 7px; font-size: 12px; line-height: 1.25; background: var(--paper); box-shadow: 0 0 0 1.5px var(--sage-strong), var(--shadow-pop); pointer-events: none; overflow: hidden; white-space: nowrap; }
.ghost b { display: block; font-weight: 500; }
.ghost small { display: block; font-size: 11px; color: var(--sage-strong); }
.ghost.bad { box-shadow: 0 0 0 1.5px var(--bad), var(--shadow-pop); }
.ghost.bad small { color: var(--bad); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--ink-3); align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 18px; height: 10px; border-radius: 2px; display: inline-block; }
.legend .l-booked { box-shadow: inset 0 0 0 1px var(--sage-line), inset 3px 0 0 var(--sage); background: var(--paper); }
.legend .l-arrived { background: var(--clay-soft); box-shadow: inset 0 0 0 1px var(--clay); }
.legend .l-inroom { background: var(--sage); }
.legend .l-done { background: var(--sunk-2); }
.legend .l-turn { background: repeating-linear-gradient(135deg, var(--rule-2) 0 1.5px, transparent 1.5px 4px); }

.today-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.arr-row td { height: 52px; }
.arr-row.dim td { color: var(--ink-3); }
.arr-row .flags { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: -2px; }
.flag { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--clay-soft); color: var(--clay-ink); }
.flag .i { width: 12px; height: 12px; stroke-width: 1.8; }
.flag.info { background: var(--info-soft); color: var(--info); }
.flag.sage { background: var(--sage-soft); color: var(--sage-strong); }
.room-cards { display: none; }

/* member drawer, check-in */
.kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px 16px; font-size: 13.5px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rule); border-radius: var(--r1); }
.mini-stats > div { padding: 10px 12px; border-right: 1px solid var(--rule); display: grid; gap: 2px; }
.mini-stats > div:last-child { border-right: 0; }
.mini-stats b { font: 500 22px/1.1 var(--f-serif); font-variant-numeric: lining-nums; }
.mini-stats span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.timeline-list { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.timeline-list > div { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 13px; align-items: baseline; }
.timeline-list .d { color: var(--ink-3); font-size: 12.5px; }
.timeline-list .n { font-variant-numeric: tabular-nums; white-space: nowrap; }
.timeline-list .n.plus { color: var(--ok); }
.timeline-list .n.minus { color: var(--ink-2); }
.timeline-list .n.lost { color: var(--bad); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--rule-2); border-radius: var(--r1); }
.stepper button { width: 30px; height: 30px; border: 0; background: none; display: grid; place-items: center; color: var(--ink-2); }
.stepper button:hover { background: var(--sunk); }
.stepper span { min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; font-size: 13.5px; }

/* sales */
.sales-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.cat-list { display: grid; gap: 22px; }
.cat-list .label { padding: 0 0 8px; border-bottom: 1px solid var(--rule); }
.sku { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.sku b { font: 500 18px/1.2 var(--f-serif); }
.sku small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.sku .p { font-variant-numeric: tabular-nums; font-size: 14px; white-space: nowrap; }
.ticket { position: sticky; top: 76px; }
.ticket .lines { display: grid; }
.ticket .line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 13.5px; }
.ticket .line small { display: block; color: var(--ink-3); font-size: 12px; }
.totals { display: grid; gap: 6px; font-size: 13.5px; padding-top: 10px; }
.totals .lead > i { transform: translateY(-4px); }
.totals .grand { font: 500 28px/1 var(--f-serif); padding-top: 8px; border-top: 1px solid var(--rule-2); margin-top: 6px; align-items: baseline; }
.totals .grand span { font: 500 11px var(--f-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.pick-list { border: 1px solid var(--rule); border-radius: var(--r1); max-height: 220px; overflow-y: auto; overflow-x: hidden; background: var(--paper); }
.pick-list button { display: flex; width: 100%; gap: 10px; align-items: center; justify-content: space-between; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--rule); background: none; text-align: left; font-size: 13.5px; }
.pick-list button:last-child { border-bottom: 0; }
.pick-list button:hover, .pick-list button:focus-visible { background: var(--sunk); outline: none; }
.picked { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--sage-line); border-radius: var(--r1); background: var(--sage-soft); }
.picked b { font-weight: 500; }
.picked small { display: block; font-size: 12px; color: var(--ink-2); }

/* revenue chart */
.chart { width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--f-sans); font-size: 11.5px; fill: var(--ink-3); }
.chart .lab-strong { fill: var(--ink); font-weight: 500; }
.chart .gl { stroke: var(--rule); stroke-width: 1; }
.chart .col { cursor: pointer; }
.chart .col:hover rect, .chart .col:focus rect { filter: brightness(.96); }
.chart .col:focus { outline: none; }
.chart .col:focus-visible .hit { stroke: var(--sage-strong); stroke-width: 2; }
.c-pebble { fill: var(--tier-pebble); } .c-river { fill: var(--tier-river); } .c-moon { fill: var(--tier-moon); } .c-other { fill: var(--clay); opacity: .55; }
.chart-phone { display: none; }
.legend .lg-pebble { background: var(--tier-pebble); } .legend .lg-river { background: var(--tier-river); } .legend .lg-moon { background: var(--tier-moon); } .legend .lg-other { background: var(--clay); opacity: .55; }
.s-top .brand-ph { display: none; }
.s-top .brand-ph .logo { width: 26px; height: 26px; }

/* palette */
.pal { width: min(620px, calc(100vw - 32px)); top: 14vh !important; transform: translate(-50%, 8px) !important; }
.pal.in { transform: translate(-50%, 0) !important; }
.pal .pal-in { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.pal .pal-in input { flex: 1; border: 0; background: none; font-size: 17px; outline: none; min-width: 0; }
.pal-list { max-height: 52vh; overflow-y: auto; overflow-x: hidden; padding: 6px; }
.pal-list .grp { padding: 10px 10px 4px; }
.pal-list button { display: flex; width: 100%; align-items: center; gap: 12px; padding: 9px 10px; border: 0; border-radius: 2px; background: none; text-align: left; font-size: 14px; }
.pal-list button small { margin-left: auto; color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.pal-list button.on { background: var(--sage-soft); }
.pal-list .none { padding: 18px 12px; color: var(--ink-3); font-size: 13.5px; }
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 32px; font-size: 13.5px; }
.keys div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--rule); }

/* quiet saved note */
.saved { font-size: 12.5px; color: var(--ink-3); display: inline-flex; gap: 6px; align-items: center; opacity: 0; transition: opacity var(--t3); }
.saved.on { opacity: 1; }
.saved .i { width: 14px; height: 14px; color: var(--sage); }

/* calendar popover */
.menu.cal { width: 284px; padding: 10px; }
.cal-h { display: flex; align-items: center; justify-content: space-between; padding: 0 0 8px; }
.cal-h b { font: 500 19px/1 var(--f-serif); }
.cal-g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-g i { font: 500 10px/1 var(--f-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); text-align: center; padding: 6px 0; font-style: normal; }
.cal-g button { height: 34px; border: 0; border-radius: 2px; background: none; font-size: 13.5px; font-variant-numeric: tabular-nums; color: var(--ink); justify-content: center; padding: 0; }
.cal-g button:hover:not([aria-disabled]) { background: var(--sunk); }
.cal-g button.today { box-shadow: inset 0 -2px 0 var(--clay); }
.cal-g button.on { background: var(--sage-strong); color: var(--on-sage); }
.cal-g button[aria-disabled="true"] { color: var(--ink-3); opacity: .45; cursor: not-allowed; }

/* home and menu rows */
.home-credits { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 32px; align-items: end; }
.mrows { border-top: 1px solid var(--rule); }
.mrow { display: flex; align-items: center; gap: 16px; padding: 16px 2px; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); transition: background-color var(--t1), padding var(--t2) var(--ease); }
a.mrow:hover { background: color-mix(in srgb, var(--sunk) 55%, transparent); padding-left: 10px; }
.mrow > span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mrow b { font: 500 20px/1.25 var(--f-serif); }
.mrow small { font-size: 13px; color: var(--ink-3); }
.mrow > .i { color: var(--ink-3); }
.tabs a { padding: 10px 0 11px; margin-bottom: -1px; border-bottom: 2px solid transparent; font: 500 var(--fs-micro)/1 var(--f-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--sage); }
.m-like { max-width: 1000px; }
.m-like .leaf:first-child { border-top: 1px solid var(--rule); }
.phone-only { display: none; }
.desk-only { display: inline; }
.ghost-lab { position: absolute; z-index: 6; padding: 5px 8px; border-radius: var(--r1); background: var(--toast-bg); color: var(--toast-ink); font-size: 12px; white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; }
.ghost-lab.bad { background: var(--bad); color: #fff; }
body.grabbing, body.grabbing * { cursor: grabbing !important; }

/* phone bottom bar and sticky action bar */
.tabbar { display: none; }
.cta-bar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .m-top-in { flex-wrap: wrap; height: auto; padding: 10px 28px 0; gap: 0 22px; }
  .m-top-in .top-tools { margin-left: auto; }
  .m-nav { order: 3; flex-basis: 100%; gap: 22px; border-top: 1px solid var(--rule); margin-top: 10px; }
  .m-nav a { padding: 14px 0 13px; }
  .m-main { padding: 0 28px 96px; }
  .split { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
  .sales-grid { grid-template-columns: minmax(0, 1fr) 360px; }
  .side-switch .kicker { display: none; }
  .searchbtn { min-width: 0; }
  .searchbtn .sb-text { display: none; }
}
@media (max-width: 980px) {
  .leaf { grid-template-columns: 150px minmax(0, 1fr); gap: 20px; }
  .s-shell { grid-template-columns: 64px minmax(0, 1fr); }
  .s-rail .brand span, .s-rail .where, .s-nav a span, .s-nav .count, .s-rail .me div { display: none; }
  .s-nav a { justify-content: center; padding: 0; }
}
@media (max-width: 760px) {
  :root { --tabbar: 64px; }
  body { font-size: 15px; }
  .display { font-size: 40px; line-height: 1.08; }
  .h1 { font-size: 34px; }
  .h2 { font-size: 28px; }
  .big-num { font-size: 60px; }
  .m-top-in { height: 56px; padding: 0 16px; gap: 10px; flex-wrap: nowrap; }
  .m-nav { display: none; }
  .brand { font-size: 20px; }
  .brand small { display: none; }
  .m-top .top-tools .hide-phone, .s-top .hide-phone { display: none; }
  .m-main { padding: 0 16px calc(var(--tabbar) + 48px); }
  .m-foot { display: none; }
  .hero { padding: 36px 0 32px; gap: 16px; }
  .page-head { padding: 32px 0 26px; }
  .leaf { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 28px 0; }
  .leaf > .label { padding-top: 0; }
  .two, .split, .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .sticky { position: static; }
  .tiers { grid-template-columns: minmax(0, 1fr); }
  .tier { border-right: 0; border-bottom: 1px solid var(--rule); padding: 24px 4px; }
  .tier .badge { right: 4px; top: 24px; }
  .prow { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; }
  .prow .acts { grid-column: 2; justify-content: flex-start; }
  .prow .date b { font-size: 28px; }
  .titem { padding: 14px 10px; margin: 0 -10px; width: calc(100% + 20px); grid-template-columns: minmax(0, 1fr); }
  .titem .tp { text-align: left; display: flex; gap: 12px; grid-row: auto; }
  .titem h4 { font-size: 21px; }
  .dstrip { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .dbtn { padding: 7px 0 6px; }
  .dbtn b { font-size: 20px; }
  .dbtn span { font-size: 9px; letter-spacing: .08em; }
  .slot-group { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .slot-group .label { padding-top: 0; }
  .slot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .slot { min-width: 0; padding: 0 4px; font-size: 12.5px; }
  .step-h h2 { font-size: 24px; }
  .bodymap { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; }
  .bodymap svg { width: 120px; }
  .tline { padding: 46px 0 70px; }
  .tline .mk span { font-size: 11.5px; }
  .tline .tick span { display: none; }
  .hide-phone { display: none !important; }
  .tbl-cards tr.click:hover td { background: none; }
  .tbl-cards tr.click:hover { background: var(--sunk); }
  .s-top .brand-ph { display: inline-flex; }
  .chart-desk { display: none; }
  .chart-phone { display: block; }
  .pass { grid-template-columns: minmax(0, 1fr) 92px; }
  .pass > div { padding: 18px; }
  .card-doc { padding: 22px 20px; }
  .card-doc h3 { font-size: 28px; }

  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--paper); border-top: 1px solid var(--rule); }
  .tabbar a, .tabbar button { display: grid; justify-items: center; align-content: center; gap: 4px; border: 0; background: none; text-decoration: none; color: var(--ink-3); font: 500 10.5px/1 var(--f-sans); letter-spacing: .08em; text-transform: uppercase; position: relative; }
  .tabbar .i { width: 21px; height: 21px; }
  .tabbar .on { color: var(--sage-strong); }
  .tabbar .on::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 2px; background: var(--sage); }
  .tabbar .dotc { position: absolute; top: 8px; left: calc(50% + 8px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--clay); color: #2A160F; font-size: 10px; letter-spacing: 0; display: grid; place-items: center; }
  .cta-bar { display: flex; position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); z-index: 55; gap: 12px; align-items: center; padding: 10px 16px; background: var(--paper); border-top: 1px solid var(--rule); box-shadow: 0 -8px 24px -18px rgba(0, 0, 0, .3); }
  .cta-bar .grow { font-size: 13px; line-height: 1.3; color: var(--ink-2); }
  .cta-bar .grow b { display: block; font: 500 17px/1.2 var(--f-serif); color: var(--ink); }
  .has-cta .m-main, .has-cta .s-main { padding-bottom: calc(var(--tabbar) + 120px); }
  /* phones: one toast at a time, above the tab bar and any sticky action bar; above an open sheet, not over its buttons */
  #toasts { left: 12px; right: 12px; transform: none; bottom: calc(var(--tabbar) + 12px + env(safe-area-inset-bottom)); justify-items: stretch; }
  .has-cta #toasts, #toasts.lift { bottom: calc(var(--tabbar) + 80px + env(safe-area-inset-bottom)); }
  .has-panel #toasts { left: 12px; right: 12px; top: 8px; bottom: auto; }
  #toasts .toast:not(:last-child) { display: none; }
  .toast { max-width: none; }

  .panel.modal, .panel.drawer, .panel.modal.wide, .panel.drawer.wide { left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 92vh; border-radius: 12px 12px 0 0; border-width: 1px 0 0; transform: translateY(24px); }
  .panel.modal.in, .panel.drawer.in { transform: none; }
  .panel.drawer { height: 92vh; }
  .pal { top: auto !important; transform: translateY(24px) !important; }
  .pal.in { transform: none !important; }
  .panel-h { padding: 16px 16px 12px; }
  .panel-h::before { content: ""; position: absolute; top: 6px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--rule-2); }
  .panel-h h2 { font-size: 23px; }
  .panel-b { padding: 16px; }
  .panel-f { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .panel-f .btn { flex: 1; }
  .panel-f .grow { flex-basis: 100%; }
  .kv { grid-template-columns: 110px minmax(0, 1fr); }
  .keys { grid-template-columns: minmax(0, 1fr); }

  .login { grid-template-columns: minmax(0, 1fr); }
  .login-art { padding: 28px 20px 30px; min-height: 0; }
  .login-art h1 { font-size: 40px; margin: 14px 0 12px; }
  .login-art .leads, .login-art .fine { display: none; }
  .login-art svg.stones { width: 300px; right: -60px; bottom: -50px; opacity: .55; }
  .login-form { padding: 28px 16px 40px; place-items: start center; }
  .login-form h2 { font-size: 30px; }

  .s-shell { grid-template-columns: minmax(0, 1fr); font-size: 14.5px; }
  .s-rail { display: none; }
  .s-top { height: 56px; padding: 0 12px 0 16px; gap: 8px; }
  .s-top .when span, .s-top .live { display: none; }
  .s-main { padding: 18px 16px calc(var(--tabbar) + 40px); }
  .s-head h1 { font-size: 28px; }
  .s-head .acts { margin-left: 0; width: 100%; }
  .statline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .statline > div { padding: 8px 10px 9px 0; margin-right: 0; border-right: 0; }
  .statline span { font-size: 10.5px; letter-spacing: .06em; }
  .statline b { font-size: 19px; }
  .toolbar .search { max-width: none; flex-basis: 100%; }
  .side-switch .seg a { padding: 0 10px; font-size: 12.5px; height: 28px; }
  .board-desk { display: none; }
  .room-cards { display: grid; gap: 10px; }
  .rc { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r2); padding: 12px 14px; display: grid; gap: 10px; }
  .rc-h { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
  .rc-h b { font-weight: 500; }
  .rc-strip { position: relative; height: 24px; border-radius: 2px; background: var(--sunk); overflow: hidden; }
  .rc-strip .bk { top: 3px; bottom: 3px; padding: 0; border-radius: 2px; }
  .rc-strip .b-now { top: -2px; bottom: -2px; }
  .rc-strip .b-now span { display: none; }
  .rc-now { font-size: 13px; color: var(--ink-2); }
  .tbl-cards thead, .tbl-cards colgroup { display: none; }
  .tbl-fixed { table-layout: auto; }
  .tbl-cards, .tbl-cards tbody, .tbl-cards tr, .tbl-cards td { display: block; width: 100%; }
  .tbl-cards tr { padding: 12px 14px; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .tbl-cards td { padding: 0; border: 0; height: auto !important; }
  .tbl-cards td.num { text-align: left; }
  .tbl-cards td[data-k]::before { content: attr(data-k) " "; color: var(--ink-3); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; margin-right: 4px; }
  .tbl-cards .c-main { grid-column: 1; }
  .tbl-cards .c-side { grid-column: 2; grid-row: 1 / span 2; justify-self: end; align-self: start; text-align: right; }
  .tbl-cards .c-wide { grid-column: 1 / -1; }
  .tbl-cards .c-hide { display: none; }
  .panelbox .tbl-cards td:first-child, .panelbox .tbl-cards td:last-child { padding-left: 0; padding-right: 0; }
  .sales-grid { grid-template-columns: minmax(0, 1fr); }
  .ticket { position: static; }
  .sku { grid-template-columns: minmax(0, 1fr) auto; }
  .sku .p { grid-column: 1; grid-row: 2; }
  .sku .btn { grid-column: 2; grid-row: 1 / span 2; }
  .mini-stats b { font-size: 19px; }
  .phone-only { display: inline; }
  .desk-only { display: none; }
  .home-credits { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .m-like .leaf { padding: 24px 0; }
  .mrow b { font-size: 19px; }
  .pebbles { gap: 16px 20px; }
  .pstones { max-width: 100%; }
  .leads { gap: 9px; }
}
@media (max-width: 400px) {
  .side-switch .seg a { padding: 0 8px; }
  .brand > span { display: none; }
}

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

/* ---------- print: only the open document ---------- */
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; }
  body > *:not(#overlay-root) { display: none !important; }
  #overlay-root .scrim { display: none; }
  #overlay-root .panel { position: static; transform: none !important; opacity: 1; box-shadow: none; border: 0; width: auto !important; max-height: none; height: auto; }
  #overlay-root .panel-h, #overlay-root .panel-f, .no-print { display: none !important; }
  #overlay-root .panel-b { padding: 0; overflow: visible; }
  .doc, .card-doc { border: 0; box-shadow: none; padding: 0; }
}
