/* Availa — mobile-first (390px), tablet/desktop from 900px, light + dark themes.
   Logical properties throughout so Hebrew/RTL is a dir flip. Colors only via tokens. */
:root {
  /* Availa — colours from the app icon: forest #243C24, moss #7E8A45, cream #FCF0E4 */
  --brand: #2F4D2C; --brand-ink: #fff;
  --bg: #FAF4E8; --card: #FFFCF6; --field: #FFFDF9; --ink: #1E2A1C; --ink-2: #3A4636; --muted: #6E7464;
  --line: #D8CCB4; --line-2: #EDE4D4; --bw: 1.5px; --ghost: #EEE7D8; --chev: #B3AD9C; --grab: #D7CFBE; --switch-off: #D8D1C1;
  --tabbar: rgba(250,244,232,.92); --closed-a: #F8F1E4; --closed-b: #F0E8D9; --scrim: rgba(24,32,22,.38);
  --ok: #2E7D4F; --ok-bg: #E6F2E8; --warn: #B4531A; --warn-bg: #FBEEDF; --bad: #C2362F; --bad-bg: #FBE9E6;
  --toast-bg: #1E2A1C; --toast-ink: #FAF4E8;
  --accent: #5E6A2E; --leaf: #7E8A45;
  --shadow: none; --border: var(--bw) solid var(--line);
  --shadow-lg: 0 12px 40px rgba(30,42,28,.16);
  --primary: var(--brand); --primary-ink: var(--brand-ink);
  --brand-soft: color-mix(in srgb, var(--brand) 12%, var(--card));
  --brand-softer: color-mix(in srgb, var(--brand) 6%, var(--card));
  --brand-fg: var(--brand);
  --font-display: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --radius: 16px; --tab-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #111711; --card: #19211A; --field: #1E271F; --ink: #F1EBDD; --ink-2: #D7D0C1; --muted: #9AA090;
  --line: #2E392E; --line-2: #212A22; --bw: 1px; --ghost: #263027; --chev: #5A6457; --grab: #46503F; --switch-off: #3A4438;
  --tabbar: rgba(17,23,17,.9); --closed-a: #141B15; --closed-b: #1A221B; --scrim: rgba(0,0,0,.6);
  --ok: #5FCB8A; --ok-bg: rgba(95,203,138,.14); --warn: #F0A15F; --warn-bg: rgba(240,161,95,.14); --bad: #F28B82; --bad-bg: rgba(242,139,130,.14);
  --toast-bg: #F1EBDD; --toast-ink: #1E2A1C;
  --accent: #B3BF85; --leaf: #8E9B57;
  --shadow: none; --shadow-lg: 0 12px 40px rgba(0,0,0,.55);
  --brand-soft: color-mix(in srgb, var(--brand) 26%, var(--card)); --brand-softer: color-mix(in srgb, var(--brand) 13%, var(--card));
  /* a deep brand colour can't be text on a dark page: lift it toward the (cream) ink */
  --brand-fg: color-mix(in srgb, var(--brand) 45%, var(--ink));
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #111711; --card: #19211A; --field: #1E271F; --ink: #F1EBDD; --ink-2: #D7D0C1; --muted: #9AA090;
  --line: #2E392E; --line-2: #212A22; --bw: 1px; --ghost: #263027; --chev: #5A6457; --grab: #46503F; --switch-off: #3A4438;
  --tabbar: rgba(17,23,17,.9); --closed-a: #141B15; --closed-b: #1A221B; --scrim: rgba(0,0,0,.6);
  --ok: #5FCB8A; --ok-bg: rgba(95,203,138,.14); --warn: #F0A15F; --warn-bg: rgba(240,161,95,.14); --bad: #F28B82; --bad-bg: rgba(242,139,130,.14);
  --toast-bg: #F1EBDD; --toast-ink: #1E2A1C;
  --accent: #B3BF85; --leaf: #8E9B57;
  --shadow: none; --shadow-lg: 0 12px 40px rgba(0,0,0,.55);
  --brand-soft: color-mix(in srgb, var(--brand) 26%, var(--card)); --brand-softer: color-mix(in srgb, var(--brand) 13%, var(--card));
  /* a deep brand colour can't be text on a dark page: lift it toward the (cream) ink */
  --brand-fg: color-mix(in srgb, var(--brand) 45%, var(--ink));
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 ui-sans-serif, system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Noto Sans Hebrew", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand-fg); }
svg { flex: none; }
/* Zero-specificity default so an icon without its own sizing rule never balloons. */
:where(button, a, .item, .tile) > svg { width: 20px; height: 20px; }
.hidden { display: none !important; }
h1, h2, h3 { letter-spacing: -.02em; }

/* Shell */
.app { max-width: 560px; margin: 0 auto; min-height: 100dvh; padding-block-end: calc(var(--tab-h) + var(--safe-b) + 24px); }
.topbar { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: calc(var(--safe-t) + 14px) 16px 12px; display: flex; align-items: center; gap: 10px; }
.topbar h1 { font-size: 24px; margin: 0; line-height: 1.15; font-weight: 650; letter-spacing: -.025em; }
.topbar .sub { color: var(--muted); font-size: 13px; margin-block-start: 2px; }
main { padding: 0 16px; }
.tabs { position: fixed; inset-inline: 0; bottom: 0; z-index: 10; height: calc(var(--tab-h) + var(--safe-b)); padding-block-end: var(--safe-b);
  background: var(--tabbar); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: var(--bw) solid var(--line); display: flex; justify-content: center; }
.tabs .inner { display: flex; width: 100%; max-width: 560px; padding: 6px 8px 0; }
.tabs button { flex: 1; border: 0; background: none; display: grid; justify-items: center; align-content: start; gap: 3px; padding: 4px 0; color: var(--muted); font-size: 11px; font-weight: 500; cursor: pointer; }
.tabs button .ic { width: 52px; height: 30px; border-radius: 99px; display: grid; place-items: center; transition: background .2s; }
.tabs button svg { width: 22px; height: 22px; }
.tabs button.on { color: var(--brand-fg); font-weight: 650; }
.tabs button.on .ic { background: var(--brand-soft); }

/* Cards & lists */
.card { background: var(--card); border-radius: var(--radius); border: var(--border); padding: 16px; margin-block-end: 12px; }
.card h2 { font-size: 15px; margin: 0 0 8px; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.list { background: var(--card); border-radius: var(--radius); border: var(--border); overflow: hidden; margin-block-end: 12px; }
.item { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; width: 100%; background: none; text-align: start; transition: background .15s; color: inherit; text-decoration: none; }
.item:last-child { border-bottom: 0; }
button.item:active, a.item:active { background: var(--line-2); }
@media (hover: hover) { button.item:hover { background: var(--line-2); } }
.item .t { font-weight: 580; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item > svg { width: 18px; height: 18px; color: var(--chev); }
.item .end { text-align: end; flex: none; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.bar { width: 4px; align-self: stretch; border-radius: 4px; flex: none; }
.pill { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--ghost); color: var(--ink-2); white-space: nowrap; }
.pill.confirmed { background: var(--ok-bg); color: var(--ok); }
.pill.pending { background: var(--warn-bg); color: var(--warn); }
.pill.cancelled, .pill.no_show { background: var(--bad-bg); color: var(--bad); }
.pill.soon { background: var(--ghost); color: var(--muted); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; color: #fff; }
.avatar.lg { width: 56px; height: 56px; font-size: 19px; }
.tile { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--ghost); color: var(--ink-2); }
.tile svg { width: 19px; height: 19px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-block-end: 12px; background: var(--card); border: var(--border); border-radius: var(--radius); overflow: hidden; }
.stat { background: none; border: 0; padding: 12px 14px; border-inline-start: var(--bw) solid var(--line); border-radius: 0; }
.stat:first-child { border-inline-start: 0; }
.stat b { display: block; font-size: 20px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); }
.stat.hot b { color: var(--warn); }
.empty { text-align: center; color: var(--muted); padding: 28px 16px; }
.empty .tile { margin: 0 auto 10px; width: 44px; height: 44px; border-radius: 12px; }
.empty .tile svg { width: 24px; height: 24px; }
.empty b { display: block; color: var(--ink); margin-block-end: 2px; }
.section-title { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 22px 2px 8px; display: flex; justify-content: space-between; align-items: baseline; }
.section-title span { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }

/* "Next up" — the service colour is the edge; everything else is quiet */
.next { background: color-mix(in srgb, var(--c, var(--brand)) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--c, var(--brand)) 22%, var(--line)); border-inline-start: 4px solid var(--c, var(--brand)); border-radius: var(--radius); padding: 14px 16px; margin-block-end: 12px; }
.next .lbl { font-size: 12px; font-weight: 600; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.next .lbl b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.next .live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.next .who { font-size: 22px; font-weight: 650; margin: 6px 0 2px; letter-spacing: -.025em; }
.next .meta { color: var(--muted); font-size: 14px; }
.next .actions { margin-block-start: 12px; }

/* Buttons & forms */
.btn { border: 0; border-radius: 11px; padding: 12px 16px; min-height: 46px; background: var(--primary); color: var(--primary-ink); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: transform .1s, opacity .15s; }
.btn svg { width: 18px; height: 18px; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn.block { width: 100%; }
.btn.ghost, .btn.line { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 var(--bw) var(--line); }
.btn.soft { background: var(--brand-soft); color: var(--ink); }
.btn.danger { background: var(--bad-bg); color: var(--bad); }
.btn.wa { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 var(--bw) var(--line); }
.btn.wa svg { color: #1FAF55; }
.btn.sm { min-height: 36px; padding: 7px 12px; font-size: 14px; border-radius: 9px; }
.btn.price { min-height: 34px; padding: 6px 11px; font-size: 14px; border-radius: 9px; background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 var(--bw) var(--line); font-variant-numeric: tabular-nums; flex: none; }
.btn:disabled { opacity: .45; cursor: default; }
.iconbtn { border: 0; background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 var(--bw) var(--line); min-width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; cursor: pointer; font-weight: 600; transition: transform .1s; }
.iconbtn svg { width: 20px; height: 20px; }
.iconbtn:active { transform: scale(.94); }
.fab { --fab-shadow: color-mix(in srgb, var(--brand) 40%, transparent); position: fixed; inset-inline-end: max(16px, calc(50vw - 264px)); bottom: calc(var(--tab-h) + var(--safe-b) + 16px); z-index: 9; width: 56px; height: 56px; border-radius: 16px; border: 0; background: var(--primary); color: var(--primary-ink); box-shadow: 0 8px 22px var(--fab-shadow); cursor: pointer; display: grid; place-items: center; transition: transform .1s; }
.fab svg { width: 26px; height: 26px; }
.fab:active { transform: scale(.94); }
label.f { display: block; margin-block-end: 14px; }
label.f > span, .flabel { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-block-end: 6px; }
/* 16px minimum stops iOS Safari zooming on focus. */
input.i, select.i, textarea.i { width: 100%; border: var(--bw) solid var(--line); border-radius: 11px; padding: 12px 13px; background: var(--field); outline: none; font-size: 16px; min-height: 48px; transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
select.i { background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23888899' stroke-width='2'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; padding-inline-end: 36px; }
[dir="rtl"] select.i { background-position: left 14px center; }
input.i:focus, select.i:focus, textarea.i:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
input.i.err { border-color: var(--bad); }
input[type="date"].i, input[type="time"].i { min-width: 0; }
.ferr { color: var(--bad); font-size: 13px; margin: -8px 2px 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch:last-child { border-bottom: 0; }
.switch input { width: 48px; height: 28px; appearance: none; -webkit-appearance: none; background: var(--switch-off); border-radius: 99px; position: relative; cursor: pointer; flex: none; transition: background .2s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(20px); }
[dir="rtl"] .switch input:checked::after { transform: translateX(-20px); }
/* Segmented control */
.seg { display: inline-flex; background: var(--ghost); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; min-height: 32px; display: inline-flex; align-items: center; gap: 6px; }
.seg button svg { width: 16px; height: 16px; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.1), inset 0 0 0 var(--bw) var(--line); }
.seg.full { display: flex; }
.seg.full button { flex: 1; justify-content: center; }

/* Week strip & day timeline */
.weekstrip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-block-end: 12px; }
.weekstrip button { border: 0; background: var(--card); color: var(--ink); border-radius: 11px; padding: 7px 0 6px; display: grid; gap: 1px; cursor: pointer; box-shadow: inset 0 0 0 var(--bw) var(--line); justify-items: center; }
.weekstrip button small { font-size: 11px; color: var(--muted); font-weight: 600; }
.weekstrip button b { font-size: 17px; }
.weekstrip button.on { background: var(--primary); color: var(--primary-ink); box-shadow: none; }
.weekstrip button.on small { color: inherit; opacity: .7; }
.weekstrip button.today:not(.on) b { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.weekstrip .dots { display: flex; gap: 2px; height: 5px; }
.weekstrip .dots i { width: 5px; height: 5px; border-radius: 50%; }
.weekstrip button.on .dots i { box-shadow: 0 0 0 1px var(--primary); }
.calbar { display: flex; align-items: center; gap: 8px; margin-block-end: 12px; }
.dayhead { display: flex; align-items: center; gap: 8px; margin: 0 4px 10px; font-size: 13px; color: var(--muted); }
.timeline { position: relative; background: var(--card); border-radius: var(--radius); border: var(--border); overflow: hidden; user-select: none; -webkit-user-select: none; }
.hour { height: 64px; border-bottom: 1px solid var(--line); position: relative; padding-inline-start: 54px; cursor: pointer; }
.hour::before { content: ""; position: absolute; inset-inline: 54px 0; top: 50%; border-top: 1px dashed var(--line-2); }
.hour > span { position: absolute; inset-inline-start: 10px; top: -8px; font-size: 11px; font-weight: 600; color: var(--muted); background: var(--card); padding: 0 2px; }
.hour:first-child > span { top: 4px; }
.hour.closed, .wcell.closed { background: repeating-linear-gradient(135deg, var(--closed-a) 0 7px, var(--closed-b) 7px 14px); }
.hour.closed > span { background: transparent; }
.appt { position: absolute; inset-inline: 58px 8px; border-radius: 10px; padding: 5px 9px; font-size: 12px; overflow: hidden; cursor: pointer; z-index: 1; touch-action: pan-y;
  background: color-mix(in srgb, var(--c) 20%, var(--card)); color: color-mix(in srgb, var(--c) 45%, var(--ink)); border-inline-start: 3px solid var(--c); border-radius: 7px; transition: transform .12s, box-shadow .12s; }
.appt b { display: block; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.appt b span { font-weight: 500; color: color-mix(in srgb, var(--c) 55%, var(--ink)); }
.appt.pending { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 10%, var(--card)) 0 6px, color-mix(in srgb, var(--c) 20%, var(--card)) 6px 12px); }
.appt.cancelled, .appt.no_show { opacity: .45; }
.appt.cancelled b, .appt.no_show b { text-decoration: line-through; }
.appt.dragging { z-index: 6; box-shadow: var(--shadow-lg); transform: scale(1.03); opacity: .95; cursor: grabbing; transition: none; }
.appt.lifting { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.drag-tip { position: absolute; z-index: 7; inset-inline-start: 4px; background: var(--primary); color: var(--primary-ink); font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px; pointer-events: none; transform: translateY(-50%); font-variant-numeric: tabular-nums; }
.offblock { position: absolute; inset-inline: 54px 0; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--bad) 8%, transparent) 0 7px, color-mix(in srgb, var(--bad) 15%, transparent) 7px 14px); font-size: 11px; font-weight: 600; color: var(--bad); padding: 3px 9px; pointer-events: none; }
.nowline { position: absolute; inset-inline: 50px 0; height: 2px; background: var(--bad); z-index: 2; pointer-events: none; }
.nowline::before { content: ""; position: absolute; inset-inline-start: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); }
body.dragging-active { overscroll-behavior: none; }

/* Week view */
.week { background: var(--card); border-radius: var(--radius); border: var(--border); overflow: hidden; user-select: none; -webkit-user-select: none; }
.whead { display: grid; grid-template-columns: 40px repeat(7, 1fr); border-bottom: var(--bw) solid var(--line); position: sticky; top: 0; z-index: 3; background: var(--card); }
.whead button { border: 0; background: none; color: var(--ink); padding: 8px 0 6px; display: grid; justify-items: center; gap: 0; cursor: pointer; }
.whead button small { font-size: 11px; color: var(--muted); font-weight: 600; }
.whead button b { font-size: 16px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.whead button.today b { background: var(--primary); color: var(--primary-ink); }
.wbody { display: grid; grid-template-columns: 40px repeat(7, 1fr); position: relative; }
.wgut div { height: 52px; font-size: 10px; font-weight: 600; color: var(--muted); text-align: center; position: relative; top: -7px; }
.wgut div:first-child { top: 2px; }
.wcol { position: relative; border-inline-start: var(--bw) solid var(--line); }
.wcell { height: 52px; border-bottom: 1px solid var(--line); cursor: pointer; }
.wcol .appt { inset-inline: 2px; padding: 3px 4px; border-radius: 6px; border-inline-start-width: 3px; font-size: 10px; }
.wcol .appt b { font-size: 11px; white-space: normal; line-height: 1.15; }
.wcol .offblock { inset-inline: 0; padding: 2px; font-size: 9px; }
.wcol .nowline { inset-inline: 0; }
.wcol .nowline::before { display: none; }
.wcol.today { background: var(--line-2); }

/* Sheet */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 20; opacity: 0; transition: opacity .25s; }
.scrim.on { opacity: 1; }
.sheet { position: fixed; inset-inline: 0; bottom: 0; z-index: 21; max-width: 560px; margin: 0 auto; background: var(--bg); border-radius: 20px 20px 0 0; box-shadow: var(--shadow-lg);
  max-height: 92dvh; overflow: auto; overscroll-behavior: contain; padding: 0 16px calc(20px + var(--safe-b)); transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.9,.25,1); }
.sheet.on { transform: none; }
.sheet .sh-head { position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 8px 0 12px; margin-inline: -16px; padding-inline: 16px; touch-action: none; }
.sheet .grab { width: 40px; height: 5px; border-radius: 99px; background: var(--grab); margin: 0 auto 10px; }
.sheet .sh-title { display: flex; align-items: center; gap: 10px; }
.sheet h3 { margin: 0; font-size: 19px; font-weight: 650; flex: 1; min-width: 0; letter-spacing: -.02em; }
.sheet .x { border: 0; background: var(--ghost); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--muted); flex: none; }
.sheet .x svg { width: 16px; height: 16px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-block-start: 10px; }
.actions .btn { flex: 1 1 0; min-width: max-content; }
.toast { position: fixed; bottom: calc(var(--tab-h) + var(--safe-b) + 24px); inset-inline: 16px; max-width: 380px; margin: 0 auto; background: var(--toast-bg); color: var(--toast-ink); padding: 12px 16px; border-radius: 12px; z-index: 30; font-weight: 550; box-shadow: var(--shadow-lg); animation: pop .25s cubic-bezier(.2,.9,.3,1.3); transition: opacity .2s; display: flex; align-items: center; gap: 12px; justify-content: center; }
.toast button { border: 0; background: none; color: inherit; text-decoration: underline; text-underline-offset: 3px; font-weight: 650; cursor: pointer; padding: 0; margin-inline-start: auto; }

@keyframes pop { from { transform: translateY(12px) scale(.96); opacity: 0; } }

/* Chips (slots) */
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; }
.chips .note { grid-column: 1 / -1; }
.chip { border: var(--bw) solid var(--line); background: var(--field); color: var(--ink); border-radius: 10px; padding: 11px 0; text-align: center; cursor: pointer; font-weight: 650; font-variant-numeric: tabular-nums; transition: transform .1s, border-color .15s; }
@media (hover: hover) { .chip:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); } }
.chip:active { transform: scale(.95); }
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.slot-group { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 16px 2px 8px; }
.daystrip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 8px; margin-inline: -16px; scrollbar-width: none; scroll-snap-type: x proximity; }
.daystrip::-webkit-scrollbar { display: none; }
.daystrip button { flex: none; width: 58px; border: var(--bw) solid var(--line); background: var(--field); color: var(--ink); border-radius: 12px; padding: 9px 0 8px; display: grid; gap: 1px; cursor: pointer; scroll-snap-align: start; transition: transform .1s; }
.daystrip button:active:not(:disabled) { transform: scale(.95); }
.daystrip button small { font-size: 11px; color: var(--muted); font-weight: 600; }
.daystrip button b { font-size: 19px; }
.daystrip button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.daystrip button.on small { color: rgba(255,255,255,.85); }
.daystrip button:disabled { opacity: .35; cursor: default; background: transparent; }

/* Hours editor */
.dayrow { padding: 12px 0; border-bottom: 1px solid var(--line); }
.dayrow:last-child { border-bottom: 0; }
.dayrow .switch { border: 0; padding: 0; }
.dayrow .closed-note { font-size: 13px; color: var(--muted); }
.range { display: flex; align-items: center; gap: 6px; margin-block-start: 8px; }
.range input { flex: 1; min-width: 0; min-height: 42px !important; padding: 8px 10px !important; }
.range .rx, .rx { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; display: grid; place-items: center; }
.range .rx svg, .rx svg { width: 18px; height: 18px; }

/* Swatches */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 4px; }
.swatches button { width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: 0 0 0 2px var(--card) inset; outline: 2px solid transparent; outline-offset: 2px; transition: transform .1s; }
.swatches button.on { outline-color: var(--ink); }
.swatches button:active { transform: scale(.9); }

/* First-run setup */
.ob { max-width: 520px; margin: 0 auto; min-height: 100dvh; padding: calc(var(--safe-t) + 20px) 20px calc(24px + var(--safe-b)); display: flex; flex-direction: column; }
.ob-top { display: flex; align-items: center; gap: 12px; margin-block-end: 22px; min-height: 40px; }
.ob-dots { display: flex; gap: 6px; flex: 1; }
.ob-dots i { height: 5px; flex: 1; border-radius: 5px; background: var(--line); transition: background .3s; }
.ob-dots i.on { background: var(--brand); }
.ob h1 { font-size: 28px; line-height: 1.12; margin: 0 0 8px; font-weight: 650; letter-spacing: -.03em; }
.ob .lead { color: var(--muted); margin: 0 0 22px; font-size: 16px; }
.ob-body { flex: 1; animation: slidein .3s cubic-bezier(.2,.9,.25,1); }
@keyframes slidein { from { opacity: 0; transform: translateX(16px); } }
[dir="rtl"] .ob-body { animation-name: slidein-rtl; }
@keyframes slidein-rtl { from { opacity: 0; transform: translateX(-16px); } }
.ob-cta { position: sticky; bottom: 0; padding: 16px 0 calc(4px + var(--safe-b)); background: linear-gradient(transparent, var(--bg) 20px); display: grid; gap: 8px; }
.ob-hero { width: 64px; height: 64px; border-radius: 18px; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; margin-block-end: 22px; }
.ob-hero svg { width: 38px; height: 38px; }
.ob-perks { display: grid; gap: 10px; margin: 0 0 8px; }
.ob-perks div { display: flex; gap: 12px; align-items: center; }
.types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.type { border: var(--bw) solid var(--line); background: var(--card); color: var(--ink); border-radius: 13px; padding: 14px; text-align: start; cursor: pointer; display: grid; gap: 8px; transition: transform .1s, border-color .15s; }
.type:active { transform: scale(.97); }
.type .em { font-size: 26px; line-height: 1; }
.type b { font-size: 15px; }
.type.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.svc-edit { display: grid; grid-template-columns: auto minmax(0,1fr) 54px 62px; gap: 6px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.svc-edit:last-child { border-bottom: 0; }
.svc-edit input.i { min-height: 42px; padding: 8px 10px; }
.svc-edit .chk { width: 22px; height: 22px; accent-color: var(--brand); }
.svc-edit.off input.i { opacity: .45; }
.preset { border: var(--bw) solid var(--line); background: var(--card); color: var(--ink); border-radius: 13px; padding: 14px 16px; text-align: start; width: 100%; cursor: pointer; margin-block-end: 10px; display: flex; gap: 12px; align-items: center; }
.preset.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.preset .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; }
.preset.on .radio { border-color: var(--ink); }
.preset.on .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.linkbox { display: flex; align-items: center; gap: 10px; background: var(--line-2); border: 0; border-radius: 10px; padding: 12px 14px; font-weight: 600; word-break: break-all; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: fall 1.6s cubic-bezier(.3,.6,.5,1) forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(540deg); opacity: .2; } }

/* Booking page */
.bk { max-width: 560px; margin: 0 auto; padding-block-end: 40px; }
.bk-hero { position: relative; padding: calc(var(--safe-t) + 26px) 20px 56px; color: #fff; overflow: hidden;
  background: var(--brand); }
.bk-hero h1 { margin: 14px 0 4px; font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.bk-hero p { margin: 0; opacity: .9; max-width: 34ch; }
.bk-hero .addr { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; margin-block-start: 10px; background: rgba(255,255,255,.16); padding: 5px 10px; border-radius: 99px; }
.bk-hero .addr svg { width: 14px; height: 14px; }
.bk-logo { width: 54px; height: 54px; border-radius: 14px; background: rgba(255,255,255,.16); display: grid; place-items: center; font-weight: 700; font-size: 20px; }
.bk-body { position: relative; z-index: 1; margin-top: -28px; background: var(--bg); border-radius: 20px 20px 0 0; padding: 18px 16px 0; min-height: 50dvh; }
.steps { display: flex; gap: 6px; margin-block-end: 4px; }
.steps div { flex: 1; }
.steps i { display: block; height: 4px; border-radius: 4px; background: var(--line); transition: background .3s; }
.steps i.on { background: var(--brand); }
.steps span { display: block; font-size: 11px; font-weight: 650; color: var(--muted); margin-block-start: 6px; }
.steps .on + span { color: var(--brand-fg); }
.bk-title { font-size: 21px; font-weight: 650; letter-spacing: -.02em; margin: 16px 2px 12px; }
.back { border: 0; background: none; color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; padding: 6px 0; cursor: pointer; margin-block-start: 8px; }
.back svg { width: 18px; height: 18px; }
.svc { border: 0; background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 var(--bw) var(--line); border-inline-start: 4px solid var(--c, var(--line)); border-radius: 13px; padding: 14px 16px; display: flex; gap: 14px; align-items: center; width: 100%; text-align: start; cursor: pointer; margin-block-end: 10px; transition: transform .1s; }
.svc:active { transform: scale(.98); }
.svc .t { font-weight: 620; font-size: 16px; }
.svc .price { font-weight: 650; font-size: 16px; font-variant-numeric: tabular-nums; }
.svc > svg { width: 18px; height: 18px; color: var(--chev); }
.first { border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--line)); background: color-mix(in srgb, var(--brand) 6%, var(--card)); color: var(--ink); border-radius: 13px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; cursor: pointer; margin-block-end: 6px; }
.first .tile { background: var(--brand); color: #fff; }
.first > svg { width: 18px; height: 18px; color: var(--brand-fg); }
.summary { display: flex; gap: 12px; align-items: center; }
.sticky-cta { position: sticky; bottom: 0; padding: 12px 0 calc(12px + var(--safe-b)); background: linear-gradient(transparent, var(--bg) 30%); margin-block-start: 8px; }
.sheet .sticky-cta { bottom: calc(-20px - var(--safe-b)); margin-inline: -16px; padding: 14px 16px calc(20px + var(--safe-b)); background: linear-gradient(transparent, var(--bg) 14px); }
.done-icon { width: 84px; height: 84px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin: 12px auto 12px; animation: pop .45s cubic-bezier(.2,.9,.3,1.4); }
.done-icon svg { width: 42px; height: 42px; }
.done-icon.pending { background: var(--warn-bg); color: var(--warn); }
.done-icon.cancelled { background: var(--bad-bg); color: var(--bad); }
.done-icon path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .2s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ticket { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 18px; margin: 18px 0 12px; position: relative; }
.ticket .when { font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.ticket hr { border: 0; border-top: 1.5px dashed var(--line); margin: 14px -18px; }
.foot { text-align: center; font-size: 12px; color: var(--muted); margin-block-start: 28px; }
.foot b { color: var(--ink-2); }

/* ---------- Tablet & desktop (≥900px): bottom tabs stay, content widens; sheets still rise from the bottom ---------- */
.two-col { display: block; }
@media (min-width: 900px) {
  .app { max-width: 1180px; }
  .topbar { padding: 22px 32px 14px; }
  .topbar h1 { font-size: 30px; }
  main { padding: 0 32px; }
  .tabs .inner { max-width: 640px; }
  .tabs button { font-size: 12px; }
  .fab { inset-inline-end: max(24px, calc(50vw - 566px)); }
  .two-col { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
  .two-col > * > .section-title:first-child { margin-top: 0; }
  .sheet { max-width: 600px; max-height: 88dvh; }
  .hour { height: 72px; }
  .wcell { height: 60px; } .wgut div { height: 60px; }
  .ob { padding-top: 60px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
body.onboarding .app, body.onboarding .tabs, body.onboarding .fab { display: none !important; }
.appt, .hour, .wcell { -webkit-touch-callout: none; }

/* ---------- Registration, deposit, socials, photos, alerts ---------- */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.sm { width: 26px; height: 26px; font-size: 11px; }
.av-edit { position: relative; flex: none; }
.av-btn { position: absolute; inset-inline-end: -4px; bottom: -4px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--bg); background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.av-btn svg { width: 14px; height: 14px; }
.reg-dot { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); font-size: 10px; font-weight: 650; vertical-align: 1px; }
.bk-me { border: 0; background: rgba(255,255,255,.18); color: #fff; border-radius: 99px; padding: 4px 12px 4px 4px; display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 13px; cursor: pointer; position: relative; z-index: 1; }
.socials { display: flex; gap: 8px; margin-block-start: 12px; position: relative; z-index: 1; flex-wrap: wrap; }
.socials a { width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; }
.socials a svg { width: 19px; height: 19px; }
.socials a:active { transform: scale(.94); }
label.f.soc { display: flex; align-items: center; gap: 10px; }
.soc-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--ghost); color: var(--ink-2); display: grid; place-items: center; flex: none; }
.soc-ic svg { width: 20px; height: 20px; }
.unit { display: flex; align-items: center; gap: 8px; }
.unit > span { color: var(--muted); font-size: 14px; white-space: nowrap; font-weight: 600; }
.unit input.i { min-width: 0; flex: 1; }
.unit select.i { flex: 1.2; min-width: 0; }
.reg-perks { display: grid; gap: 6px; background: var(--brand-softer); border: 1.5px solid color-mix(in srgb, var(--brand) 25%, transparent); box-shadow: none; }
.demo-sms { display: flex; gap: 10px; align-items: center; background: var(--toast-bg); color: var(--toast-ink); border-radius: 16px; padding: 12px 14px; margin: 10px 0 4px; font-size: 14px; animation: pop .35s cubic-bezier(.2,.9,.3,1.3); }
.demo-sms svg { width: 20px; height: 20px; flex: none; }
.otp { font-size: 28px !important; letter-spacing: .5em; text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; padding-inline-start: calc(13px + .5em) !important; min-height: 60px !important; }
.btn.danger-solid { background: var(--bad); color: #fff; }
.bell { position: relative; }
.bell .badge { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 650; display: grid; place-items: center; border: 2px solid var(--bg); }
.tabs .ic { position: relative; }
.tabdot { position: absolute; top: 3px; inset-inline-end: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); border: 2px solid var(--tabbar); }
.item.unread { background: var(--brand-softer); }
#noticeN { flex: 0 0 58px; }
.unit select.i { padding-inline: 10px 26px; background-position: right 9px center; }
[dir="rtl"] .unit select.i { background-position: left 9px center; }

/* ---------- Hebrew / RTL booking page ---------- */
.bk-lang { border: 0; background: rgba(255,255,255,.18); color: #fff; border-radius: 99px; padding: 6px 12px; font-weight: 650; font-size: 13px; cursor: pointer; position: relative; z-index: 1; margin-inline-end: 8px; }
.bk-me { padding: 4px; padding-inline-end: 12px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
[dir="rtl"] input[type="tel"], [dir="rtl"] .otp { text-align: right; }
[dir="rtl"] .otp { text-align: center; padding-inline-start: 13px !important; padding-inline-end: calc(13px + .5em) !important; }
/* Direction-bearing icons mirror in RTL (chevrons, back arrows). */
[dir="rtl"] .back > svg, [dir="rtl"] .svc > svg, [dir="rtl"] .first > svg, [dir="rtl"] .item > svg { transform: scaleX(-1); }
.svc-desc { margin: 1px 0 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Staff calendars ---------- */
.avatar.xs { width: 20px; height: 20px; font-size: 9px; }
.staffbar { display: flex; gap: 6px; overflow-x: auto; margin: -2px -16px 12px; padding: 2px 16px 4px; scrollbar-width: none; }
.staffbar::-webkit-scrollbar { display: none; }
.staffbar button { flex: none; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); border-radius: 99px; padding: 5px 12px 5px 6px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; cursor: pointer; }
.staffbar button[data-sf="all"] { padding-inline-start: 12px; }
.staffbar button.on { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.week.team .whead button.staffhead { display: grid; justify-items: center; gap: 2px; padding: 8px 2px 6px; min-width: 0; }
.week.team .whead button.staffhead small { color: var(--ink); font-weight: 650; font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.week.team .wgut div, .week.team .wcell { height: var(--hp, 56px); }
.wcol.roomy .appt { padding: 4px 7px; font-size: 11px; }
.wcol.roomy .appt b { font-size: 12px; white-space: nowrap; }
.appt .sdot { position: absolute; inset-inline-end: 3px; top: 3px; width: 6px; height: 6px; border-radius: 50%; }
.whopick { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 6px; padding: 2px 16px 6px; scrollbar-width: none; }
.whopick::-webkit-scrollbar { display: none; }
.whopick button { flex: none; width: 84px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); border-radius: 16px; padding: 10px 4px 8px; display: grid; justify-items: center; gap: 6px; font-weight: 600; font-size: 13px; cursor: pointer; }
.whopick button span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whopick button .avatar.sm { width: 40px; height: 40px; font-size: 14px; }
.whopick button .avatar.any { background: var(--brand-soft); color: var(--brand-fg); }
.whopick button .avatar.any svg { width: 20px; height: 20px; }
.whopick button.on { border-color: var(--brand); background: var(--brand-softer); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.whopick button { width: 92px; }
.whopick button span:last-child { white-space: normal; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-align: center; }

/* ---------- Waitlist ---------- */
.wl-card { display: flex; gap: 12px; align-items: center; margin-top: 14px; border: 1.5px dashed color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: none; }
.offer-banner { width: 100%; border: 0; text-align: start; display: flex; gap: 12px; align-items: center; padding: 12px 14px; margin: 0 0 12px; border-radius: 16px; background: linear-gradient(135deg, var(--ok), color-mix(in srgb, var(--ok) 70%, #0EA5E9)); color: #fff; cursor: pointer; box-shadow: 0 8px 22px color-mix(in srgb, var(--ok) 35%, transparent); animation: pop .35s cubic-bezier(.2,.9,.3,1.3); }
.offer-banner .tile { background: rgba(255,255,255,.2); color: #fff; }
.offer-banner .pill { background: #fff; color: var(--ok); }
.wl-today { width: 100%; }
.spin { display: inline-block; width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- checkout ---- */
.co-line { display: flex; align-items: center; gap: 8px; }
.co-amt { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.co-amt span { color: var(--muted); font-weight: 650; }
.co-amt .i { width: 92px; text-align: end; font-variant-numeric: tabular-nums; }
.i.sm { padding-block: 8px; }
.iconbtn.sm { width: 36px; height: 36px; flex: none; }
.co-sum .co-line { padding-block: 4px; font-variant-numeric: tabular-nums; }
.co-sum .co-total { border-top: var(--bw) solid var(--line); margin-top: 6px; padding-top: 10px; font-size: 18px; }
.paid-row { border: 0; font: inherit; color: inherit; cursor: pointer; }

/* ---- reports (chart tokens: categorical slots validated for --card light #fff / dark #181822) ---- */
:root { --c1: #2a78d6; --c2: #eb6834; --c3: #1baf7a; --c4: #eda100; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500; } }
:root[data-theme="dark"] { --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500; }
.rp-period { margin-bottom: 12px; }
.rp-hero { padding: 16px; }
.rp-big { font-size: 34px; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin: 2px 0; }
.rp-warn { background: var(--warn-bg); color: var(--warn); border-radius: 10px; padding: 8px 10px; font-weight: 600; }
.rp-chart { position: relative; padding-top: 18px; }
.rp-grid { position: absolute; inset-inline: 0; top: 18px; border-top: 1px dashed var(--line); }
.rp-grid span { position: absolute; top: -17px; inset-inline-start: 0; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rp-bars { display: flex; align-items: flex-end; gap: 2px; height: var(--h); border-bottom: var(--bw) solid var(--line); }
.rp-col { flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: default; outline: none; min-width: 0; }
.rp-bar { width: 100%; max-width: 36px; margin-inline: auto; background: var(--c1); border-radius: 4px 4px 0 0; transition: opacity .12s; }
.rp-bars:hover .rp-col:not(.tipon) .rp-bar, .rp-bars:has(.tipon) .rp-col:not(.tipon) .rp-bar { opacity: .45; }
.rp-x { display: flex; gap: 2px; margin-top: 4px; }
.rp-x span { flex: 1; min-width: 0; text-align: center; font-size: 11px; color: var(--muted); overflow: visible; white-space: nowrap; }
.rp-empty { padding: 18px 0; text-align: center; }
.rp-hrows { display: grid; gap: 12px; }
.rp-hrow { outline: none; }
.rp-hl { display: flex; gap: 8px; font-size: 15px; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.rp-track { height: 8px; border-radius: 4px; background: var(--ghost); overflow: hidden; }
.rp-track div { height: 100%; background: var(--c1); border-radius: 4px; }
.rp-stack { display: flex; gap: 2px; height: 14px; border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.rp-stack > div { min-width: 4px; outline: none; }
.rp-stack > div.tipon { filter: brightness(1.1); box-shadow: inset 0 0 0 2px var(--card); }
.rp-legend { display: grid; gap: 8px; }
.rp-li { display: flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.rp-li i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.rp-lines > div { display: flex; gap: 8px; padding-block: 5px; font-variant-numeric: tabular-nums; }
.rp-lines .rp-total { border-top: var(--bw) solid var(--line); margin-top: 6px; padding-top: 10px; font-size: 17px; }
.rp-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rp-table th, .rp-table td { text-align: start; padding: 6px 2px; border-bottom: 1px solid var(--line-2); }
.rp-table th { font-size: 12px; color: var(--muted); font-weight: 600; }
.rp-table td:last-child, .rp-table th:last-child { text-align: end; }
#view { position: relative; }
.rp-tip { position: absolute; top: 0; z-index: 5; pointer-events: none; background: var(--ink); color: var(--card); font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 8px; white-space: nowrap; max-width: 90vw; box-shadow: var(--shadow); }

/* ---- plans ---- */
.plan-cards { display: grid; gap: 10px; }
.plan-card { background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.plan-card.hi { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.plan-name { font-size: 18px; }
.plan-price { font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.plan-price span { font-size: 13px; font-weight: 600; color: var(--muted); }
.plan-card ul, .plan-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.plan-perks { margin-top: 12px; }
.plan-card li, .plan-perks li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.plan-card li svg, .plan-perks li svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--ok); }

/* Identity dots: staff colour next to a name, status colour next to a state */
.sd { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-inline-end: 5px; vertical-align: 1px; }
.pill.paid { background: var(--ok-bg); color: var(--ok); }
.item.unread { background: var(--line-2); }
.svc .tile, .summary .tile { background: color-mix(in srgb, var(--c) 14%, var(--card)); color: var(--c); }
.tile.c { background: color-mix(in srgb, var(--c) 14%, var(--card)); color: var(--c); }
/* The customer booking page wears the studio's brand colour for its actions; the owner app stays ink. */
.bk { --primary: var(--brand); --primary-ink: #fff; }
.linkbox svg { color: var(--ink-2) !important; }

/* ---- colour pass 2: service washes, coloured stat strip ---- */
.item.tint { background: color-mix(in srgb, var(--c) 6%, var(--card)); }
button.item.tint:active { background: color-mix(in srgb, var(--c) 12%, var(--card)); }
@media (hover: hover) { button.item.tint:hover { background: color-mix(in srgb, var(--c) 11%, var(--card)); } }
.stat .si { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; margin-bottom: 6px;
  background: color-mix(in srgb, var(--sc) 15%, var(--card)); color: var(--sc); }
.stat .si svg { width: 15px; height: 15px; }
.stats { background: var(--card); }

/* deposit awaiting the owner's confirmation */
.appt.held { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--warn) 10%, var(--card)) 0 6px, color-mix(in srgb, var(--warn) 18%, var(--card)) 6px 12px); border-inline-start-style: dashed; }
.pill.held { background: var(--warn-bg); color: var(--warn); }
.pill.expired { background: var(--ghost); color: var(--muted); }

/* Customer portal (customer.html) + shared chat/review bits (also used by the business Inbox) */
.ellip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; min-width: 0; }
.sec { font-size: 13px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 18px 4px 8px; }
.tabs .ic { position: relative; }
.badge { position: absolute; top: -2px; inset-inline-end: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--bad); color: #fff; font: 650 11px/18px system-ui, sans-serif; font-style: normal; text-align: center; border: 2px solid var(--bg); }
.badge.static { position: static; border: 0; flex: none; }
.search { position: relative; margin-block-end: 10px; }
.search > svg { position: absolute; inset-inline-start: 12px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.search .i { padding-inline-start: 40px; }
.catrow { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 12px; padding: 2px 16px 4px; scrollbar-width: none; }
.catrow::-webkit-scrollbar { display: none; }
.cat { flex: none; border: 0; border-radius: 99px; padding: 7px 14px; min-height: 36px; background: var(--card); color: var(--ink-2); box-shadow: inset 0 0 0 var(--bw) var(--line); font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.cat svg { width: 15px; height: 15px; }
.cat.on { background: var(--ink); color: var(--bg); box-shadow: none; }
.cat.near.on { background: var(--brand); color: var(--brand-ink); }
.pcard { display: flex; align-items: stretch; background: color-mix(in srgb, var(--c) 5%, var(--card)); border: var(--border); border-inline-start: 4px solid var(--c); border-radius: var(--radius); margin-block-end: 10px; overflow: hidden; }
.pmain { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: center; border: 0; background: none; color: inherit; text-align: start; padding-block: 13px; padding-inline: 13px 4px; cursor: pointer; }
.pmain .grow > * { display: block; }
.pmain .t { font-weight: 620; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pmain .row { display: flex; }
.plogo { width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 16px; background: var(--c); color: #fff; }
.plogo.lg { width: 68px; height: 68px; border-radius: 19px; font-size: 24px; margin: 0 auto; }
.fav { border: 0; background: none; color: var(--muted); width: 48px; flex: none; display: grid; place-items: center; cursor: pointer; }
.fav svg { width: 22px; height: 22px; }
.fav.on { color: var(--bad); }
.iconbtn.fav.on { color: var(--bad); }
.rt { color: var(--ink); white-space: nowrap; }
.rt b { font-variant-numeric: tabular-nums; }
.stars { display: inline-flex; gap: 1px; font-size: var(--s, 14px); line-height: 1; }
.stars i { font-style: normal; color: var(--line); }
.stars i.on { color: #E8A317; }
.phero { text-align: center; padding: 8px 8px 14px; }
.phero h2 { font-size: 24px; margin: 12px 0 2px; letter-spacing: -.02em; }
.phero p { margin: 0; }
.phero .about { margin: 10px auto 0; max-width: 40ch; color: var(--ink-2); }
.pactions { display: flex; gap: 8px; margin-block-end: 12px; }
.pactions .btn { flex: 1; min-width: 0; padding-inline: 10px; }
.staffrow { display: flex; gap: 14px; overflow-x: auto; padding: 2px 2px 6px; }
.staffrow .st { display: grid; justify-items: center; gap: 4px; flex: none; }
.staffrow small { font-size: 12px; color: var(--ink-2); max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item.rev { cursor: default; align-items: flex-start; }
.item.rev p { margin: 6px 0 0; white-space: pre-wrap; }
.reply { margin-block-start: 10px; padding: 8px 12px; border-inline-start: 3px solid var(--brand); background: var(--brand-softer); border-radius: 8px; }
.reply p { margin: 2px 0 0 !important; }
.bkrow { cursor: default; }
.bkrow .btn svg { width: 15px; height: 15px; }
.starpick { display: flex; justify-content: center; gap: 6px; margin: 4px 0 16px; }
.starpick button { border: 0; background: none; font-size: 40px; line-height: 1; color: var(--line); cursor: pointer; padding: 2px; transition: transform .1s; }
.starpick button.on { color: #E8A317; }
.starpick button:active { transform: scale(.9); }
.chat { display: flex; flex-direction: column; gap: 6px; padding-block: 4px 90px; min-height: 50dvh; }
.chathint { text-align: center; margin: 30px 20px; }
.daysep { align-self: center; font-size: 12px; color: var(--muted); font-weight: 600; margin: 10px 0 4px; }
.bubble { max-width: 80%; padding: 9px 12px 6px; border-radius: 18px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.35; }
.bubble small { display: block; font-size: 10.5px; opacity: .7; margin-block-start: 2px; text-align: end; }
.bubble.me { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-end-end-radius: 6px; }
.bubble.them { align-self: flex-start; background: var(--card); box-shadow: inset 0 0 0 var(--bw) var(--line); border-end-start-radius: 6px; }
.composer { position: fixed; inset-inline: 0; bottom: calc(var(--tab-h) + var(--safe-b)); z-index: 9; display: flex; gap: 8px; align-items: flex-end; max-width: 560px; margin: 0 auto; padding: 8px 16px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: var(--bw) solid var(--line); }
.composer textarea { flex: 1; resize: none; min-height: 44px; max-height: 140px; border-radius: 22px; padding-block: 11px; }
.composer .btn { width: 44px; min-height: 44px; padding: 0; border-radius: 50%; flex: none; }
[dir="rtl"] .composer .btn svg { transform: scaleX(-1); }
.welcome .choice { display: flex; gap: 14px; align-items: center; width: 100%; text-align: start; border: 0; background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 var(--bw) var(--line); border-radius: 16px; padding: 18px 16px; margin-block-end: 12px; cursor: pointer; }
.welcome .choice .tile { width: 46px; height: 46px; border-radius: 13px; background: var(--brand-soft); color: var(--brand-fg); }
.welcome .choice b { display: block; font-size: 17px; margin-block-end: 2px; }
.pblock > * { display: block; }
.pblock > .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pactions .btn { white-space: nowrap; gap: 6px; padding-inline: 8px; font-size: 15px; }

/* Polish pass 2026-11-23 */
.rt .st { font-style: normal; color: #E8A317; }
.phero { position: relative; margin: 0 -16px 4px; padding: 18px 24px 16px; background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%); }
.phero .plogo.lg { box-shadow: 0 8px 22px color-mix(in srgb, var(--c) 35%, transparent); }
.pcard { transition: transform .12s; }
.pcard:active { transform: scale(.985); }
.pmain .rt b { font-weight: 650; }
.list a.item.tint > svg { width: 16px; height: 16px; color: var(--chev); flex: none; }
/* a toast never sits on top of the + button */
body:has(.toast) .fab { opacity: 0; transform: scale(.85); pointer-events: none; }
.fab { transition: transform .15s, opacity .15s; }
.bk-hero { background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.2), transparent 60%), var(--brand); }
[dir="rtl"] .bk-hero { background: radial-gradient(120% 90% at 0% 0%, rgba(255,255,255,.2), transparent 60%), var(--brand); }
.plan-legal { margin: 14px 2px 0; line-height: 1.45; }
.plan-legal a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Availa look (2026-12-01): serif display type, moss accents, the leaf-and-clock mark ---------- */
.topbar h1, .ob h1, .bk-hero h1, .bk-title, .phero h2, .sheet .sh-title h3, .plan-name, .welcome .choice b, .card h2, .ticket .when {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.012em; }
.topbar h1 { font-size: 26px; }
.ob h1 { font-size: 30px; line-height: 1.1; }
.bk-hero h1 { font-size: 30px; font-weight: 600; }
.section-title, .sec { color: var(--accent); }
.section-title { font-weight: 650; }
.ob-mark { display: block; width: 76px; height: 76px; border-radius: 22.4%; margin-block-end: 22px; box-shadow: 0 10px 26px rgba(30,42,28,.18), 0 0 0 1px var(--line); }
.foot .mark { width: 16px; height: 16px; border-radius: 22.4%; vertical-align: -3px; margin-inline-end: 4px; }
/* the clock ring from the icon, as a quiet frame around avatars and logos */
.plogo, .bk-logo { box-shadow: 0 0 0 3px var(--card), 0 0 0 4px color-mix(in srgb, var(--leaf) 45%, var(--card)); }
.bk-logo { box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.tabs button.on .ic { background: color-mix(in srgb, var(--brand) 14%, var(--card)); }
.btn { border-radius: 12px; }
.fab { border-radius: 18px; }
.empty .tile { background: color-mix(in srgb, var(--leaf) 16%, var(--card)); color: var(--accent); }
.stars i.on, .rt .st { color: #C99A2E; }

/* ---------- Calendar v2: one row height (--hp), flat closed hours, card-like bookings ---------- */
.timeline .hour, .week .wcell, .week .wgut div { height: var(--hp, 64px); }
.hour { padding-inline-start: 56px; }
.hour::before { inset-inline-start: 56px; border-top: 1px solid var(--line-2); }
.hour > span { inset-inline-start: 0; width: 50px; text-align: end; padding-inline-end: 6px; top: -8px; font-size: 11px; font-variant-numeric: tabular-nums; background: transparent; }
.hour:first-child > span { top: 3px; }
.wcell.closed { background: var(--closed-a); }
.hour.closed { background: linear-gradient(to right, transparent 56px, var(--closed-a) 56px); }
[dir="rtl"] .hour.closed { background: linear-gradient(to left, transparent 56px, var(--closed-a) 56px); }
.appt { inset-inline: 60px 8px; padding: 5px 10px; border-radius: 10px; border: 0; border-inline-start: 4px solid var(--c);
  background: color-mix(in srgb, var(--c) 15%, var(--card)); box-shadow: 0 1px 0 color-mix(in srgb, var(--c) 18%, transparent); display: flex; flex-direction: column; gap: 1px; }
.appt b { font-size: 13.5px; font-weight: 650; display: flex; align-items: center; gap: 6px; line-height: 1.25; min-width: 0; }
.appt b > span { font-weight: 500; color: var(--ink-2); font-size: 12px; margin-inline-start: auto; font-variant-numeric: tabular-nums; flex: none; }
.appt small { display: block; font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.appt .ap-who { display: flex; align-items: center; gap: 5px; margin-top: auto; color: var(--muted); }
.appt .ap-who .avatar { width: 16px; height: 16px; font-size: 8px; }
.appt .ap-pend { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--warn); background: var(--warn-bg); padding: 1px 6px; border-radius: 99px; flex: none; }
.appt.short { flex-direction: row; align-items: center; padding-block: 0; }
.appt.short b { width: 100%; }
.appt.pending { background: var(--card); border: 1.5px dashed color-mix(in srgb, var(--c) 70%, var(--line)); border-inline-start: 4px solid var(--c); }
.nowline { inset-inline-start: 52px; }
.wcol .appt { inset-inline: 2px; padding: 3px 5px; border-radius: 7px; border-inline-start-width: 3px; gap: 0; }
.wcol .appt b { font-size: 11px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcol .appt small { font-size: 10px; }
.wcol.roomy .appt { padding: 4px 8px; }
.wcol.roomy .appt b { font-size: 12.5px; display: flex; }
.wcol.roomy .appt small { font-size: 11px; }
.wcol.roomy .appt.short b > span { display: none; }
.wcol.roomy .appt.short { padding-block: 0; }
.week .wgut div { font-variant-numeric: tabular-nums; }
.weekstrip button { border-radius: 14px; padding: 8px 0 7px; }
.weekstrip button.today:not(.on) { box-shadow: inset 0 0 0 var(--bw) color-mix(in srgb, var(--brand) 55%, var(--line)); }
.weekstrip button.today:not(.on) b { text-decoration: none; color: var(--brand-fg); }
.dayhead { margin: 2px 4px 10px; }

/* ---------- Centered window (customer card) — swipe down still closes it ---------- */
.sheet.center { top: 0; bottom: 0; margin: auto; height: fit-content; max-height: 86dvh; width: min(520px, calc(100vw - 24px)); border-radius: 24px;
  padding-bottom: 18px; transform: translateY(28px) scale(.96); opacity: 0; transition: transform .28s cubic-bezier(.2,.9,.25,1), opacity .2s; }
.sheet.center.on { transform: none; opacity: 1; }
.sheet.center .sh-head { padding-top: 10px; }
.cust-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; margin: -4px 0 14px; }
.cust-head .avatar.xl { width: 84px; height: 84px; font-size: 30px; border-radius: 50%; }
.cust-head .nm { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -.01em; margin-top: 6px; }
.qa-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 16px; }
.qa-row > * { border: 0; background: var(--card); box-shadow: inset 0 0 0 var(--bw) var(--line); color: var(--ink); border-radius: 14px; padding: 10px 4px 8px; display: grid; justify-items: center; gap: 4px; font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: none; }
.qa-row > * svg { width: 22px; height: 22px; color: var(--brand-fg); }
.qa-row > *:active { transform: scale(.96); }

/* ---------- Haptic-touch quick actions (press and hold a customer) ---------- */
.qm-scrim { position: fixed; inset: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 35%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .18s; }
.qm-scrim.on { opacity: 1; }
.qm-peek { position: fixed; z-index: 41; margin: 0; background: var(--card); border-radius: 16px; box-shadow: var(--shadow-lg); pointer-events: none; transition: transform .2s cubic-bezier(.2,.9,.3,1.3); }
.qm-peek.on { transform: scale(1.03); }
.qm { position: fixed; z-index: 42; width: 250px; background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-radius: 14px; box-shadow: var(--shadow-lg), inset 0 0 0 var(--bw) var(--line); overflow: hidden; transform: scale(.85); opacity: 0; transition: transform .2s cubic-bezier(.2,.9,.3,1.25), opacity .15s; }
.qm.on { transform: none; opacity: 1; }
.qm button, .qm a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 16px; border: 0; background: none; color: var(--ink); font-size: 16px; text-align: start; text-decoration: none; cursor: pointer; border-bottom: 1px solid var(--line); }
.qm > :last-child { border-bottom: 0; }
.qm button:active, .qm a:active { background: var(--line-2); }
.qm svg { width: 20px; height: 20px; margin-inline-start: auto; color: var(--ink-2); order: 2; }
.qm .danger, .qm .danger svg { color: var(--bad); }
.list .item.pressing { transform: scale(.98); transition: transform .35s ease-out; }
.list .item[data-cust] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

/* ---------- New-customer form ---------- */
.nc-preview { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0 0 16px; }
.nc-preview .avatar.xl { width: 76px; height: 76px; font-size: 26px; border-radius: 50%; }
.nc-preview .nm { font-family: var(--font-display); font-size: 20px; font-weight: 600; min-height: 26px; }
.nc-preview .nm.ph { color: var(--muted); }
.fi { position: relative; display: block; }
.fi > svg { position: absolute; inset-inline-start: 13px; top: 14px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.fi > .i { padding-inline-start: 42px; }
.ferr-inline { color: var(--bad); font-size: 13px; margin: -6px 2px 10px; }

/* ---------- Plan card (More → under your studio) ---------- */
.plan-hero { display: block; width: 100%; text-align: start; border: 0; cursor: pointer; color: #fff; border-radius: var(--radius); padding: 16px 16px 14px; margin-block-end: 12px; position: relative; overflow: hidden; font: inherit;
  background: radial-gradient(120% 120% at 100% 0%, rgba(255,255,255,.18), transparent 55%), linear-gradient(135deg, #2F4D2C, #445F33 60%, #5E6A2E); box-shadow: 0 10px 24px rgba(30,42,28,.18); }
.plan-hero .k { font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.plan-hero .pn { font-family: var(--font-display); font-size: 28px; font-weight: 600; margin: 2px 0; }
.plan-hero .use { font-size: 13px; opacity: .92; }
.plan-hero .meter { height: 6px; border-radius: 99px; background: rgba(255,255,255,.22); margin-top: 10px; overflow: hidden; }
.plan-hero .meter i { display: block; height: 100%; background: #F3E9C9; border-radius: inherit; }
.plan-hero .go { position: absolute; inset-inline-end: 14px; top: 16px; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 650; background: rgba(255,255,255,.2); padding: 6px 10px; border-radius: 99px; }
.plan-hero .go svg { width: 16px; height: 16px; }
[dir="rtl"] .plan-hero .go svg { transform: scaleX(-1); }
.blogo { width: 52px; height: 52px; border-radius: 15px; flex: none; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 19px; overflow: hidden; }
.blogo img, .plogo img, .bk-logo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.bk-logo:has(img), .plogo:has(img) { background: #fff; }

/* ---------- Branding (logo + background) ---------- */
.brand-prev { position: relative; border-radius: 16px; overflow: hidden; height: 132px; display: flex; align-items: flex-end; gap: 12px; padding: 14px; color: #fff; margin-bottom: 14px; }
.brand-prev .bk-logo { width: 52px; height: 52px; flex: none; }
.brand-prev b { font-family: var(--font-display); font-size: 22px; font-weight: 600; text-shadow: 0 1px 8px rgba(0,0,0,.25); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.covers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.covers button { height: 52px; border-radius: 12px; border: 0; cursor: pointer; box-shadow: inset 0 0 0 var(--bw) var(--line); position: relative; overflow: hidden; color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 650; }
.covers button.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--brand-fg); }
.covers button.add { background: var(--field); color: var(--ink-2); }
.covers button.add svg { width: 20px; height: 20px; }
.logo-row { display: flex; align-items: center; gap: 12px; }
.logo-row .blogo { width: 60px; height: 60px; border-radius: 17px; }
/* hero backgrounds (booking page, customer studio page, settings preview) */
.cov-photo { background-size: cover !important; background-position: center !important; }
:is(.bk-hero, .phero, .brand-prev, .covers button).cov-brand { background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.2), transparent 60%), var(--brand); }
:is(.bk-hero, .phero, .brand-prev, .covers button).cov-forest { background: radial-gradient(90% 80% at 85% 10%, rgba(214,224,170,.35), transparent 60%), linear-gradient(160deg, #2F4D2C, #1C2E1B); }
:is(.bk-hero, .phero, .brand-prev, .covers button).cov-meadow { background: radial-gradient(80% 70% at 15% 0%, rgba(255,247,214,.45), transparent 60%), linear-gradient(150deg, #7E8A45, #4C5A2A); }
:is(.bk-hero, .phero, .brand-prev, .covers button).cov-clay { background: radial-gradient(90% 80% at 90% 0%, rgba(255,226,196,.4), transparent 60%), linear-gradient(150deg, #B4613A, #7A3B22); }
:is(.bk-hero, .phero, .brand-prev, .covers button).cov-dusk { background: radial-gradient(90% 80% at 80% 0%, rgba(255,200,170,.35), transparent 60%), linear-gradient(160deg, #87506F, #2F3C64); }
:is(.bk-hero, .phero, .brand-prev, .covers button).cov-sea { background: radial-gradient(90% 80% at 80% 0%, rgba(200,240,230,.35), transparent 60%), linear-gradient(160deg, #3E7C70, #1F4A5E); }
:is(.bk-hero, .phero, .brand-prev, .covers button).cov-stone { background: radial-gradient(90% 80% at 85% 0%, rgba(255,255,255,.22), transparent 60%), linear-gradient(160deg, #56606B, #2B3138); }
.bk-hero.cov-photo::after, .brand-prev.cov-photo::after, .phero.cov-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.2), rgba(0,0,0,.58)); pointer-events: none; }
.bk-hero.cov-photo > *, .brand-prev > *, .phero.has-cover > * { position: relative; z-index: 1; }
.phero.has-cover { color: #fff; margin: -8px -16px 8px; padding: 26px 24px 20px; overflow: hidden; border-radius: 0 0 24px 24px; }
.phero.has-cover p, .phero.has-cover .about, .phero.has-cover .muted, .phero.has-cover .small { color: rgba(255,255,255,.9); }
.phero.has-cover .plogo.lg { box-shadow: 0 0 0 3px rgba(255,255,255,.45); }

/* ---------- Waitlist: "that time is free" ---------- */
.wl-free { display: flex; gap: 12px; align-items: center; margin-top: 12px; background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); flex-wrap: wrap; }
.wl-free .grow { min-width: 160px; }
.wl-free .tile { width: 38px; height: 38px; border-radius: 12px; background: var(--ok); color: #fff; display: grid; place-items: center; flex: none; }
.wl-free .tile svg { width: 20px; height: 20px; }
.wl-free.near { display: block; background: var(--card); border-color: var(--line); }
.wl-free .btn { flex: none; }

/* ---------- Passwords: show/hide eye, live rules checklist ---------- */
.pw-wrap { position: relative; display: block; }
.pw-wrap .i { padding-inline-end: 50px; }
.pw-eye { position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); width: 42px; height: 40px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; border-radius: 10px; }
.pw-eye svg { width: 21px; height: 21px; }
.pw-eye.on { color: var(--brand-fg); }
.pw-eye.on svg path { stroke-dasharray: none; }
.pw-rules { list-style: none; margin: -4px 2px 12px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 13px; color: var(--muted); }
.pw-rules li { display: flex; align-items: center; gap: 6px; }
.pw-rules li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); flex: none; }
.pw-rules li.ok { color: var(--ok); }
.pw-rules li.ok::before { background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17.5 19.5 7'/%3E%3C/svg%3E") center/10px no-repeat; box-shadow: none; }
.linkbtn { border: 0; background: none; color: var(--brand-fg); font-weight: 600; font-size: 14px; padding: 2px; margin: -4px 0 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.si-h { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin: 0 2px 6px; }

/* ---------- Invoice / receipt document (invoice.html) ---------- */
.inv-wrap { max-width: 760px; margin: 0 auto; padding: calc(var(--safe-t) + 16px) 16px 32px; }
.inv-tools { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.inv { background: var(--card); border-radius: 18px; box-shadow: inset 0 0 0 var(--bw) var(--line); padding: 22px 20px; position: relative; overflow: hidden; }
.inv::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 5px; background: var(--brand); }
.inv-head { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; padding-bottom: 16px; border-bottom: var(--bw) solid var(--line); }
.inv-biz { display: flex; gap: 12px; align-items: flex-start; min-width: 0; flex: 1 1 260px; }
.inv-biz .blogo { width: 54px; height: 54px; }
.inv-bname { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.2; }
.inv-doc { text-align: end; flex: none; }
.inv-title { font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--brand-fg); line-height: 1.1; margin-bottom: 4px; }
.inv-to { padding: 14px 0; }
.inv-cname { font-weight: 650; font-size: 17px; }
.inv-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.inv-table th { text-align: start; font-size: 12px; color: var(--muted); font-weight: 650; padding: 8px 6px; border-bottom: var(--bw) solid var(--line); }
.inv-table td { padding: 10px 6px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.inv-table .num { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.inv-totals { margin: 12px 0 0 auto; max-width: 300px; display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
[dir="rtl"] .inv-totals { margin: 12px auto 0 0; }
.inv-totals .row, .inv-paid .row { gap: 12px; }
.inv-grand { font-size: 19px; font-weight: 700; padding-top: 8px; border-top: var(--bw) solid var(--line); }
.inv-paid { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--ok-bg); display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.inv-notes { margin: 16px 0 0; padding: 10px 12px; background: var(--bg); border-radius: 10px; white-space: pre-wrap; }
.inv-void { margin: 16px 0 0; color: var(--bad); font-weight: 600; }
.inv.is-void .inv-table, .inv.is-void .inv-totals { opacity: .45; text-decoration: line-through; }
.inv-foot { margin-top: 20px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); display: grid; gap: 3px; }
@media (max-width: 480px) { .inv-table .hide-sm { display: none; } .inv { padding: 18px 14px; } .inv-doc { text-align: start; } .inv-title { font-size: 24px; } }
@media print {
  :root { --bg: #fff; --card: #fff; --ink: #111; --ink-2: #333; --muted: #555; --line: #bbb; --line-2: #ddd; --ok-bg: #f1f5f1; --brand-fg: var(--brand); color-scheme: light; }
  body { background: #fff !important; }
  .no-print, .inv-tools { display: none !important; }
  .inv-wrap { padding: 0; max-width: none; }
  .inv { box-shadow: none; border-radius: 0; padding: 0; }
  .inv::before { display: none; }
  .inv-table .hide-sm { display: table-cell !important; }
}

/* ---------- Owner: invoices list + editor ---------- */
.inv-row .num-badge { font-variant-numeric: tabular-nums; font-size: 12px; color: var(--muted); }
.inv-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.inv-sum .card { margin: 0; padding: 12px 14px; }
.inv-sum b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.inv-line { display: grid; grid-template-columns: minmax(0, 1fr) 56px 84px 32px; gap: 6px; align-items: center; margin-bottom: 8px; }
.inv-line .i { min-height: 44px; padding: 10px; }
.inv-line .rx { border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; height: 44px; }
.inv-line .rx svg { width: 18px; height: 18px; }
.inv-line-head { display: grid; grid-template-columns: minmax(0, 1fr) 56px 84px 32px; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 650; margin: 0 2px 4px; }
.inv-total-bar { display: flex; align-items: baseline; gap: 8px; padding: 10px 2px 0; border-top: var(--bw) solid var(--line); margin-top: 4px; font-variant-numeric: tabular-nums; }
.inv-total-bar b { font-size: 22px; margin-inline-start: auto; }
.cal-add { display: flex; gap: 8px; flex-wrap: wrap; }
.cal-add .btn { flex: 1 1 140px; }
.bkrow .bk-mini { min-width: 36px; height: 36px; border-radius: 10px; flex: none; color: var(--brand-fg); }
.bkrow .bk-mini svg { width: 17px; height: 17px; }
.bkrow .bk-inv { flex: none; padding-inline: 10px; }
