/* BookYourVisit design system: one stylesheet for the salon app, the platform admin,
   the booking page and the public site. */
:root {
  --bg: #f6f6fa; --surface: #fff; --surface-2: #fafafd; --ink: #16142b; --ink-2: #3d3a57; --muted: #77748f;
  --line: #ebeaf3; --line-2: #dcdaea;
  --brand: #6d4aff; --brand-2: #ff5c8a; --brand-soft: #f0ecff; --brand-ink: #fff;
  --ok: #12925a; --ok-soft: #e4f6ec; --warn: #b86a00; --warn-soft: #fff3df; --bad: #d13b3b; --bad-soft: #fde8e8; --info-soft: #e8f1fd; --info: #2463b5;
  --radius: 14px; --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(22, 20, 43, .05);
  --shadow: 0 1px 2px rgba(22, 20, 43, .04), 0 6px 24px rgba(22, 20, 43, .06);
  --shadow-lg: 0 20px 60px rgba(22, 20, 43, .18);
  --grad: linear-gradient(135deg, var(--brand), var(--brand-2));
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-family: var(--font); color: var(--ink);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); line-height: 1.5; font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 .25rem; letter-spacing: -.02em; }
h2 { font-size: 1.12rem; margin: 0 0 .75rem; letter-spacing: -.01em; }
h3 { font-size: 1rem; margin: 1rem 0 .5rem; }
p { margin: 0 0 .75rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.icon { flex: 0 0 auto; vertical-align: middle; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- App shell ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 1rem .85rem; position: sticky; top: 0; height: 100vh; overflow: auto; display: flex; flex-direction: column; gap: .25rem; }
.side.dark { background: #15132a; color: #c9c6e0; border-right: 0; }
.brand { display: flex; align-items: center; gap: .6rem; padding: .35rem .5rem 1rem; color: var(--ink); text-decoration: none !important; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.side.dark .brand { color: #fff; }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: .95rem; box-shadow: 0 6px 16px rgba(109, 74, 255, .35); }
.brand small { font-weight: 600; font-size: .7rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; display: block; margin-top: -2px; }
.side .group { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: .9rem .6rem .3rem; font-weight: 700; }
.side nav a, .side nav button { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .55rem .65rem; border-radius: 10px; color: var(--ink-2); text-decoration: none; font: inherit; font-weight: 550; background: none; border: 0; cursor: pointer; text-align: left; }
.side.dark nav a, .side.dark nav button { color: #c9c6e0; }
.side nav a .icon, .side nav button .icon { color: var(--muted); }
.side nav a:hover, .side nav button:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.side.dark nav a:hover, .side.dark nav button:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side nav a.on { background: var(--brand-soft); color: var(--brand); }
.side nav a.on .icon { color: var(--brand); }
.side.dark nav a.on { background: rgba(255, 255, 255, .1); color: #fff; }
.side.dark nav a.on .icon { color: #b9a8ff; }
.side .foot-nav { margin-top: auto; border-top: 1px solid var(--line); padding-top: .75rem; }
.side.dark .foot-nav { border-color: rgba(255, 255, 255, .08); }
.me { display: flex; align-items: center; gap: .6rem; padding: .5rem .55rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .8rem; flex: 0 0 auto; }
.avatar.sm { width: 28px; height: 28px; font-size: .72rem; }
.me .who { line-height: 1.2; min-width: 0; }
.me .who b { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me .who span { font-size: .75rem; color: var(--muted); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(246, 246, 250, .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; align-items: center; gap: .75rem; padding: .9rem 2rem; border-bottom: 1px solid transparent; }
.topbar.scrolled { border-color: var(--line); }
.topbar .crumb { color: var(--muted); font-size: .85rem; }
.topbar .spacer { flex: 1; }
.content { padding: 1.25rem 2rem 3rem; max-width: 1400px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.page-head p { margin: .25rem 0 0; color: var(--muted); }
.btn.menu-btn { display: none; }
.scrim { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; z-index: 60; transform: translateX(-105%); transition: transform .22s ease; box-shadow: var(--shadow-lg); }
  .side.open { transform: none; }
  .scrim.open { display: block; position: fixed; inset: 0; background: rgba(20, 15, 40, .35); z-index: 55; }
  .btn.menu-btn { display: inline-flex; }
  .topbar { padding: .75rem 1rem; }
  .content { padding: 1rem 1rem 3rem; }
}

/* Support-session banner */
.support-bar { background: #1d1a33; color: #fff; padding: .55rem 2rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; font-size: .9rem; }
.support-bar b { color: #ffd36b; }
.support-bar form { margin-left: auto; }

/* ---------- Surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.35rem; box-shadow: var(--shadow-sm); margin-bottom: 1rem; }
.card.pad-0 { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.card-head h2 { margin: 0; }
.card .card-sub { color: var(--muted); font-size: .88rem; margin: -.5rem 0 1rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 { display: grid; gap: 1rem; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1000px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.stack > * + * { margin-top: 1rem; }

.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 1.25rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; display: flex; gap: .85rem; align-items: flex-start; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.stat .bubble { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: 0 0 auto; }
.stat .bubble.ok { background: var(--ok-soft); color: var(--ok); }
.stat .bubble.warn { background: var(--warn-soft); color: var(--warn); }
.stat .bubble.pink { background: #ffe9f0; color: #d63a6c; }
.stat .bubble.info { background: var(--info-soft); color: var(--info); }
.stat .label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.stat .value { font-size: 1.55rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.15; }
.stat .hint { font-size: .78rem; color: var(--muted); }
a.stat:hover { text-decoration: none; border-color: var(--line-2); box-shadow: var(--shadow); }

/* ---------- Forms ---------- */
.row { display: flex; gap: .85rem; flex-wrap: wrap; align-items: flex-end; }
.row > * { flex: 1 1 170px; min-width: 0; }
.row > .shrink { flex: 0 0 auto; }
.row.top { align-items: flex-start; }
label { display: block; font-size: .82rem; font-weight: 650; color: var(--ink-2); margin: .75rem 0 .3rem; }
label.check { display: flex; gap: .55rem; align-items: center; font-weight: 500; font-size: .93rem; color: var(--ink); margin: .45rem 0; cursor: pointer; }
label.check.terms-check { align-items: flex-start; margin-top: 1rem; line-height: 1.45; }
label.check.terms-check input { margin-top: .2rem; }
.hint { font-size: .8rem; color: var(--muted); margin-top: .3rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=tel], input[type=url], input[type=search], input[type=datetime-local], select, textarea {
  width: 100%; padding: .62rem .75rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); font: inherit; background: var(--surface); color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(109, 74, 255, .14); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); width: 1.05rem; height: 1.05rem; }
input[type=color] { width: 100%; height: 42px; padding: 3px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon input { padding-left: 2.3rem; }
.input-suffix { position: relative; }
.input-suffix span { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .85rem; pointer-events: none; }

/* Toggle switch: <label class="switch"><input type="checkbox"><span></span> Text</label> */
.switch { display: inline-flex; align-items: center; gap: .65rem; cursor: pointer; font-weight: 550; font-size: .93rem; margin: .5rem 0; color: var(--ink); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch > span { width: 40px; height: 24px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .18s; flex: 0 0 auto; }
.switch > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .18s; }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 4px rgba(109, 74, 255, .2); }

/* Segmented control / tabs made of radios */
.tabs, .segmented { display: inline-flex; gap: .25rem; padding: .25rem; background: #efeef6; border-radius: 12px; margin: .25rem 0 .5rem; flex-wrap: wrap; }
.tabs { display: flex; }
.tabs label, .segmented label { flex: 1; margin: 0; }
.tabs input, .segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tabs span, .segmented span, .segmented a { display: block; text-align: center; padding: .45rem .9rem; border-radius: 9px; cursor: pointer; font-weight: 650; font-size: .88rem; color: var(--ink-2); white-space: nowrap; text-decoration: none; }
.tabs input:checked + span, .segmented input:checked + span, .segmented a.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.tabs input:focus-visible + span, .segmented input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Language tabs on multilingual fields */
.i18n { border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.i18n-tabs { display: flex; gap: 0; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.i18n-tabs button { border: 0; background: none; padding: .45rem .8rem; font: inherit; font-size: .8rem; font-weight: 700; color: var(--muted); cursor: pointer; display: flex; align-items: center; gap: .35rem; border-bottom: 2px solid transparent; }
.i18n-tabs button.on { color: var(--brand); border-bottom-color: var(--brand); background: #fff; }
.i18n-tabs .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.i18n-tabs .dot.filled { background: var(--ok); }
.i18n-tabs .req { color: var(--bad); }
.i18n input, .i18n textarea { border: 0; border-radius: 0; box-shadow: none !important; }
.i18n-pane { display: none; }
.i18n-pane.on { display: block; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .58rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-weight: 650; font-size: .92rem; cursor: pointer; text-decoration: none !important; line-height: 1.2; transition: transform .06s, box-shadow .15s, background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { border-color: #c9c6dc; background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(109, 74, 255, .28); }
.btn.primary:hover { background: #5d3af0; }
.btn.grad { background: var(--grad); border: 0; color: #fff; box-shadow: 0 8px 22px rgba(109, 74, 255, .3); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: #efeef6; }
.btn.danger { color: var(--bad); }
.btn.danger.solid { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.small { padding: .38rem .7rem; font-size: .84rem; border-radius: 9px; }
.btn.lg { padding: .85rem 1.4rem; font-size: 1rem; border-radius: 12px; }
.btn.icon-only { padding: .5rem; }
.btn:disabled { opacity: .5; cursor: default; box-shadow: none; }
.actions { display: flex; gap: .5rem; margin-top: 1.1rem; flex-wrap: wrap; align-items: center; }
.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(to top, var(--bg) 70%, transparent); padding: 1rem 0 .5rem; margin-top: .5rem; z-index: 5; }

/* Messages */
.flash { padding: .8rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; display: flex; gap: .6rem; align-items: flex-start; border: 1px solid transparent; }
.flash.ok { background: var(--ok-soft); color: #0d5d3a; border-color: #c8ebd6; }
.flash.err { background: var(--bad-soft); color: #8d1f1f; border-color: #f6caca; }
.flash.warn { background: var(--warn-soft); color: #7a4600; border-color: #f6dfb6; }
.flash.info { background: var(--info-soft); color: #1d4f8f; border-color: #c9dcf6; }
.flash ul { margin: 0; padding-left: 1.1rem; }
.toasts { position: fixed; right: 1rem; bottom: 1rem; z-index: 200; display: flex; flex-direction: column; gap: .5rem; max-width: min(420px, calc(100vw - 2rem)); }
.toast { background: #1b1930; color: #fff; padding: .8rem 1rem; border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; gap: .6rem; align-items: flex-start; animation: toast-in .25s ease; font-size: .92rem; }
.toast.err { background: #8d1f1f; }
.toast .icon { color: #7ee2a8; margin-top: 1px; }
.toast.err .icon { color: #ffc0c0; }
.toast button { margin-left: auto; background: none; border: 0; color: inherit; opacity: .7; cursor: pointer; padding: 0; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Data lists ---------- */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
table.list { width: 100%; border-collapse: separate; border-spacing: 0; }
table.list th, table.list td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; background: var(--surface-2); position: sticky; top: 0; z-index: 1; white-space: nowrap; }
table.list th[data-sort] { cursor: pointer; user-select: none; }
table.list th[data-sort]::after { content: " ↕"; opacity: .35; }
table.list th[data-dir=asc]::after { content: " ↑"; opacity: 1; }
table.list th[data-dir=desc]::after { content: " ↓"; opacity: 1; }
table.list tr:last-child td { border-bottom: 0; }
table.list tbody tr { transition: background .12s; }
table.list tbody tr:hover { background: #faf9ff; }
table.list tr.clickable { cursor: pointer; }
table.list td.num, table.list th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap > table.list { border: 0; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty .icon { color: var(--line-2); margin-bottom: .5rem; }
.cell-main { display: flex; align-items: center; gap: .7rem; }
.cell-main b { display: block; font-weight: 650; }
.cell-main span { font-size: .82rem; color: var(--muted); }

.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .58rem; border-radius: 99px; font-size: .76rem; font-weight: 650; background: #efeef6; color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.badge.plain::before { display: none; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.brand { background: var(--brand-soft); color: var(--brand); }
/* "Beta" pill for features still being tested (accounting connections). */
.badge.beta { background: var(--warn-soft); color: var(--warn); font-size: .68rem; padding: .08rem .45rem; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; cursor: help; }
.side nav a .badge.beta { margin-left: auto; font-size: .6rem; padding: .04rem .32rem; letter-spacing: .02em; }
h1 .badge.beta, h2 .badge.beta { margin-left: .35rem; font-size: .7rem; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: middle; }
code, .code { background: #f1effa; padding: .15rem .4rem; border-radius: 6px; font-size: .85em; word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
pre.code { padding: .85rem 1rem; white-space: pre-wrap; margin: 0; border: 1px solid var(--line); }
.copy-box { position: relative; }
.copy-box .btn { position: absolute; top: .5rem; right: .5rem; }

/* Filters / toolbars */
.toolbar { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.toolbar .grow { flex: 1 1 220px; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .8rem; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: .85rem; color: var(--ink-2); cursor: pointer; text-decoration: none !important; font-family: inherit; }
.chip .n { background: #efeef6; border-radius: 99px; padding: 0 .45rem; font-size: .75rem; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.on .n { background: rgba(255, 255, 255, .18); }

/* Key-value lists */
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.25rem; margin: 0; }
dl.kv dt { color: var(--muted); font-size: .88rem; }
dl.kv dd { margin: 0; font-weight: 550; min-width: 0; overflow-wrap: anywhere; }

/* Timeline (audit log) */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 .9rem 1.4rem; font-size: .9rem; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.timeline li::after { content: ""; position: absolute; left: 7.5px; top: 17px; bottom: 0; width: 1px; background: var(--line-2); }
.timeline li:last-child::after { display: none; }
.timeline time { color: var(--muted); font-size: .8rem; display: block; }

/* Mini chart */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: .5rem; }
.bars div { flex: 1; background: linear-gradient(to top, var(--brand), #a78bff); border-radius: 6px 6px 2px 2px; min-height: 4px; position: relative; transition: opacity .15s; }
.bars div:hover { opacity: .8; }
.bars div span { position: absolute; top: -1.3rem; left: 50%; transform: translateX(-50%); font-size: .72rem; color: var(--muted); font-weight: 650; }
.bars-x { display: flex; gap: 6px; font-size: .68rem; color: var(--muted); margin-top: .35rem; }
.bars-x span { flex: 1; text-align: center; white-space: nowrap; overflow: hidden; }

/* Service cards */
.svc-group { margin-bottom: 1.5rem; }
.svc-group h3 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .6rem; font-size: .95rem; }
.svc-list { display: grid; gap: .6rem; }
.svc { display: flex; align-items: center; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1rem; color: inherit; text-decoration: none !important; transition: box-shadow .15s, border-color .15s, transform .1s; }
.svc:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.svc .bar { width: 4px; align-self: stretch; border-radius: 4px; background: var(--brand); }
.svc .name { flex: 1; min-width: 0; }
.svc .name b { display: block; }
.svc .name span { color: var(--muted); font-size: .84rem; }
.svc .price { font-weight: 700; white-space: nowrap; }
.svc.off { opacity: .55; }
.langs { display: inline-flex; gap: .2rem; }
.langs i { font-style: normal; font-size: .66rem; font-weight: 750; padding: .05rem .3rem; border-radius: 5px; background: #efeef6; color: var(--muted); }
.langs i.on { background: var(--ok-soft); color: var(--ok); }

/* People grid */
.people { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.person { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; display: flex; flex-direction: column; gap: .6rem; color: inherit; text-decoration: none !important; transition: box-shadow .15s, border-color .15s; }
.person:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.person .top { display: flex; gap: .75rem; align-items: center; }
.person .top b { display: block; }
.person .meta { display: flex; gap: .4rem; flex-wrap: wrap; }

/* Section nav inside long pages */
.subnav { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; overflow-x: auto; }
.subnav a { padding: .6rem .9rem; font-weight: 650; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none !important; font-size: .92rem; }
.subnav a.on, .subnav a:hover { color: var(--ink); border-bottom-color: var(--brand); }

/* ---------- Calendar ---------- */
.cal-toolbar { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: .9rem; }
.cal-toolbar .title { font-weight: 750; margin: 0 .5rem; min-width: 11rem; font-size: 1.05rem; }
.cal-toolbar select, .cal-toolbar input { width: auto; }
.cal-toolbar .live { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--muted); }
.cal-toolbar .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.cal { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; max-height: calc(100vh - 200px); position: relative; box-shadow: var(--shadow-sm); }
.cal-head { position: sticky; top: 0; z-index: 3; background: var(--surface); border-bottom: 1px solid var(--line); padding: .65rem .5rem; font-weight: 650; font-size: .88rem; text-align: center; display: flex; align-items: center; justify-content: center; gap: .4rem; flex-direction: column; }
.cal-head .who { display: flex; align-items: center; gap: .45rem; }
.cal-head .dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; }
.cal-times { position: sticky; left: 0; z-index: 2; background: var(--surface); border-right: 1px solid var(--line); }
.cal-time { height: 48px; font-size: .72rem; color: var(--muted); text-align: right; padding: 0 .5rem; transform: translateY(-.55em); font-variant-numeric: tabular-nums; }
.cal-col { position: relative; border-right: 1px solid var(--line); min-width: 150px; background: repeating-linear-gradient(135deg, #f7f6fb, #f7f6fb 6px, #f2f1f8 6px, #f2f1f8 12px); cursor: copy; }
.cal-col .hour { height: 48px; border-top: 1px solid var(--line); }
.cal-col .work { position: absolute; left: 0; right: 0; background: #fff; }
.cal-ev { position: absolute; left: 4px; right: 4px; border-radius: 8px; padding: .25rem .45rem; font-size: .76rem; overflow: hidden; background: #efe9ff; border-left: 3px solid var(--brand); cursor: pointer; z-index: 1; line-height: 1.3; box-shadow: 0 1px 2px rgba(22, 20, 43, .08); transition: box-shadow .15s, transform .1s; }
.cal-ev:hover { box-shadow: 0 4px 14px rgba(22, 20, 43, .15); z-index: 4; }
.cal-ev.block { background: repeating-linear-gradient(45deg, #ecebf1, #ecebf1 6px, #e3e1ea 6px, #e3e1ea 12px); border-left-color: #9a96ab; color: #555; }
.cal-ev.cal-rent { left: 2px; right: 2px; background: #fff4e0; border-left-color: #e0912a; color: #5b3a07; text-decoration: none; z-index: 2; }
.cal-ev.cal-rent b { display: block; }
.cal-rent-buffer { position: absolute; left: 2px; right: 2px; border-radius: 6px; background: repeating-linear-gradient(45deg, #fdf0dc, #fdf0dc 5px, #f8e2bf 5px, #f8e2bf 10px); z-index: 1; cursor: not-allowed; }
.cal-ev.status-arrived, .cal-ev.status-in_progress { border-left-color: var(--warn); }
.cal-ev.status-completed { opacity: .65; border-left-color: var(--ok); }
.cal-ev.status-no_show { opacity: .55; text-decoration: line-through; border-left-color: var(--bad); }
.cal-ev.dragging { opacity: .6; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); z-index: 5; }
.cal-ev b { display: block; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.cal-ev .tag { display: inline-block; font-size: .66rem; font-weight: 700; padding: 0 .3rem; border-radius: 4px; background: rgba(255, 255, 255, .7); margin-right: .2rem; }
.cal-now { position: absolute; left: 0; right: 0; border-top: 2px solid var(--bad); z-index: 2; pointer-events: none; }
.cal-now::before { content: ""; position: absolute; left: -4px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.cal-ghost { position: absolute; left: 4px; right: 4px; height: 24px; border-radius: 8px; border: 2px dashed var(--brand); background: rgba(109, 74, 255, .06); pointer-events: none; z-index: 1; font-size: .72rem; color: var(--brand); font-weight: 700; padding: 0 .4rem; }

/* ---------- Modals and drawers ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(20, 15, 40, .45); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 1rem; z-index: 100; overflow: auto; animation: fade .15s ease; }
.modal { background: #fff; border-radius: 18px; width: min(580px, 100%); padding: 1.5rem 1.6rem; box-shadow: var(--shadow-lg); animation: pop .18s ease; }
.modal h2 { margin-top: 0; font-size: 1.25rem; }
.drawer-bg { position: fixed; inset: 0; background: rgba(20, 15, 40, .35); z-index: 100; animation: fade .15s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: #fff; z-index: 101; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: slide .22s ease; }
.drawer header { padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .75rem; }
.drawer header h2 { margin: 0; flex: 1; }
.drawer .body { padding: 1.1rem 1.4rem; overflow: auto; flex: 1; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.suggest { position: relative; }
.suggest-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--line-2); border-radius: 12px; z-index: 5; box-shadow: var(--shadow); overflow: hidden; }
.suggest-list div { padding: .55rem .75rem; cursor: pointer; }
.suggest-list div:hover { background: var(--brand-soft); }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: var(--grad); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-art::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(255, 255, 255, .1); right: -160px; bottom: -160px; }
.auth-art .auth-legal { position: relative; z-index: 1; }
.auth-art .auth-legal a { color: #fff; text-decoration: underline; }
.auth-art h2 { font-size: 2rem; line-height: 1.15; max-width: 16ch; letter-spacing: -.02em; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 2rem 1.25rem; }
.auth-form .box { width: min(420px, 100%); }
.auth-form .brand { padding-left: 0; }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-art { display: none; } }

/* ---------- Booking page (public) ---------- */
.honey { position: absolute; left: -9999px; }
.bk { max-width: 640px; margin: 0 auto; padding: 1rem 1rem 2rem; }
.bk header { text-align: center; padding: 1.25rem 0 .5rem; }
.bk header h1 { margin: 0 0 .25rem; }
.bk-lang { display: flex; justify-content: flex-end; }
.bk .steps { display: flex; gap: .3rem; margin: 1rem 0 1.25rem; }
.bk .steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--line-2); transition: background .2s; }
.bk .steps span.on { background: var(--brand); }
.opt { display: flex; justify-content: space-between; gap: 1rem; align-items: center; width: 100%; text-align: left; padding: .9rem 1.05rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: .55rem; cursor: pointer; font: inherit; color: inherit; transition: border-color .12s, box-shadow .12s; }
.opt:hover { border-color: #cfc6ff; box-shadow: var(--shadow-sm); }
.opt.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, #fff); box-shadow: inset 0 0 0 1px var(--brand); }
.opt .meta { color: var(--muted); font-size: .85rem; }
.days { display: flex; gap: .45rem; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: thin; }
.days button { flex: 0 0 auto; width: 4.3rem; padding: .55rem 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; color: inherit; font-weight: 650; }
.days button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.days button small { display: block; font-size: .72rem; opacity: .75; font-weight: 500; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.2rem, 1fr)); gap: .45rem; margin-top: .85rem; }
.times button { padding: .6rem 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; color: inherit; font-weight: 600; font-variant-numeric: tabular-nums; }
.times button.on, .times button:hover { border-color: var(--brand); color: var(--brand); }
.summary { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; margin: 1rem 0; }
.bk .foot { display: flex; justify-content: space-between; gap: .5rem; margin-top: 1rem; position: sticky; bottom: 0; background: var(--bg); padding: .75rem 0; }
.spinner { color: var(--muted); padding: 1rem 0; }
body.embed { background: transparent; }

/* ---------- Public site ---------- */
.site-nav { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-nav .in { max-width: 1180px; margin: 0 auto; padding: .8rem 1.25rem; display: flex; align-items: center; gap: 1.25rem; }
.site-nav .links { display: flex; gap: 1.25rem; margin-left: 1rem; }
.site-nav .links a { color: var(--ink-2); font-weight: 600; font-size: .93rem; }
.site-nav .right { margin-left: auto; display: flex; align-items: center; gap: .75rem; }
.lang-switch { display: inline-flex; gap: .15rem; background: #f1f0f7; border-radius: 99px; padding: .2rem; }
.lang-switch a { padding: .2rem .55rem; border-radius: 99px; font-size: .78rem; font-weight: 750; color: var(--muted); text-decoration: none !important; }
.lang-switch a.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
@media (max-width: 800px) { .site-nav .links { display: none; } .site-nav .right .login { display: none; } }
.public { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.public-narrow { max-width: 560px; margin: 2rem auto; padding: 0 1rem; }
footer.site { border-top: 1px solid var(--line); margin-top: 4rem; padding: 2.5rem 1.25rem; background: #fff; }
footer.site .in { max-width: 1180px; margin: 0 auto; display: flex; gap: 2rem; flex-wrap: wrap; justify-content: space-between; color: var(--muted); font-size: .9rem; }

/* Today's agenda */
.agenda { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.agenda a { display: flex; align-items: center; gap: 1rem; padding: .7rem .85rem; border-radius: 12px; border: 1px solid var(--line); color: inherit; text-decoration: none !important; transition: background .15s, border-color .15s; }
.agenda a:hover { background: #faf9ff; border-color: var(--line-2); }
.agenda time { display: flex; flex-direction: column; min-width: 3.2rem; font-variant-numeric: tabular-nums; }
.agenda time span { color: var(--muted); font-size: .8rem; }
.agenda .what { flex: 1; min-width: 0; }
.agenda .what b { display: block; }
.agenda .what span { color: var(--muted); font-size: .85rem; }
.agenda .tags { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
.agenda li.past a { opacity: .6; }
.agenda li.now a { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.agenda li.cancelled .what b { text-decoration: line-through; }
.bubble-sm { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: 0 0 auto; }
@media (max-width: 640px) { .agenda a { flex-wrap: wrap; } .agenda .tags { width: 100%; justify-content: flex-start; } }

/* Service categories */
.cat-list { display: grid; gap: .5rem; margin-bottom: 1rem; }
details.cat { border: 1px solid var(--line); border-radius: 12px; padding: .2rem .85rem; }
details.cat[open] { padding-bottom: .85rem; }
details.cat summary { display: flex; align-items: center; gap: .6rem; cursor: pointer; list-style: none; padding: .5rem 0; }
details.cat summary::-webkit-details-marker { display: none; }
details.cat summary .spacer { flex: 1; }
.cat-new { border-top: 1px dashed var(--line-2); padding-top: .5rem; }
.svc .langs { flex: 0 0 auto; }
@media (max-width: 640px) { .svc .langs { display: none; } }

.staff-row { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr 1fr; gap: .6rem; align-items: center; }
.staff-row .switch { margin: 0; }
@media (min-width: 641px) { .staff-row .staff-band-first { grid-column: 2; } }
.staff-row .avatar.sm { color: #fff; }
@media (max-width: 640px) { .staff-row { grid-template-columns: 1fr 1fr; } .staff-row .switch { grid-column: 1 / -1; } }
.range-row { display: flex; align-items: center; gap: .75rem; }
.range-row output { font-weight: 750; min-width: 3.2rem; text-align: right; }
input[type=range] { flex: 1; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 99px; background: linear-gradient(to right, var(--brand) var(--p, 0%), var(--line-2) var(--p, 0%)); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); box-shadow: var(--shadow-sm); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); cursor: pointer; }

/* Plan */
.plan-card h2 { margin: .6rem 0 .4rem; }
.price-big { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; margin-top: 1rem; }
.price-big small { font-size: 1rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.progress { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin: .6rem 0; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 99px; }
ul.ticks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .45rem; }
ul.ticks li { display: flex; gap: .5rem; align-items: center; }
ul.ticks .icon { color: var(--ok); }
.person.add { border-style: dashed; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; font: inherit; min-height: 120px; background: transparent; }
.person.add:hover { color: var(--brand); border-color: var(--brand); }
.person.off { opacity: .6; }
.person .top .small { display: block; }

.avatar.lg { width: 56px; height: 56px; font-size: 1.2rem; border-radius: 16px; }
.subnav[data-spy] { position: sticky; top: 60px; background: var(--bg); z-index: 6; }
[id] { scroll-margin-top: 120px; }
.pick-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.pick-chips label { margin: 0; font-weight: 600; }
.pick-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick-chips span { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .8rem; border-radius: 99px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; font-size: .88rem; transition: all .15s; }
.pick-chips span .icon { display: none; }
.pick-chips input:checked + span { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.pick-chips input:checked + span .icon { display: inline; }
.pick-chips input:focus-visible + span { box-shadow: 0 0 0 3px rgba(109, 74, 255, .2); }
.hours { display: grid; gap: .25rem; }
.hours-day { display: flex; align-items: center; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.hours-day:last-child { border-bottom: 0; }
.hours-day .switch { width: 9.5rem; margin: 0; }
.hours-day .times-in { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.hours-day .times-in input { width: 7.2rem; }
.hours-day .brk { margin-left: .8rem; }
.hours-day .closed { display: none; }
.hours-day.off .times-in { display: none; }
.hours-day.off .closed { display: inline; }

/* Onboarding steps */
.wizard .step { display: flex; gap: 1.1rem; }
.step-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); flex: 0 0 auto; }
.step-body { flex: 1; min-width: 0; }
.step-body h2 { margin-top: .2rem; }
@media (max-width: 640px) { .wizard .step { flex-direction: column; gap: .5rem; } }

.share-card { background: linear-gradient(135deg, #fbf9ff, #fff5f8); }
.tabs-lite { display: flex; gap: .25rem; margin: 1rem 0 .25rem; overflow-x: auto; scrollbar-width: none; }
.tabs-lite button { border: 0; background: transparent; font: inherit; font-weight: 650; color: var(--muted); padding: .4rem .75rem; border-radius: 99px; cursor: pointer; white-space: nowrap; }
.tabs-lite button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.input-prefix { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #fff; }
.input-prefix span { padding: 0 .1rem 0 .75rem; display: flex; align-items: center; color: var(--muted); font-size: .88rem; white-space: nowrap; max-width: 60%; overflow: hidden; text-overflow: ellipsis; }
.input-prefix input { border: 0 !important; box-shadow: none !important; padding-left: .15rem !important; }
.copy-box pre.code { padding-right: 6.5rem; white-space: pre-wrap; word-break: break-all; }
.input-prefix:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(109, 74, 255, .14); }

/* Booking detail */
.status-steps { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.status-steps button, .status-steps a { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--line-2); background: #fff; border-radius: 99px; padding: .5rem .95rem; font: inherit; font-weight: 650; color: var(--ink-2); cursor: pointer; transition: all .15s; text-decoration: none; }
.status-steps button:hover, .status-steps a:hover { border-color: var(--brand); color: var(--brand); }
.status-steps button:disabled { cursor: not-allowed; opacity: .6; }
.status-steps button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.complete-cta { align-items: center; flex-wrap: wrap; }
.complete-cta > div { flex: 1 1 260px; }
.status-steps button.bad.on { background: var(--bad); border-color: var(--bad); }
.total-row { display: flex; justify-content: space-between; padding: .85rem .2rem 0; margin-top: .6rem; border-top: 1px dashed var(--line-2); font-size: 1.05rem; }
.note { margin-top: 1rem; background: #fffbea; border: 1px solid #f6e7a8; border-radius: 10px; padding: .65rem .8rem; font-size: .92rem; }
.filters { padding: .85rem 1rem; }
.filters .row { align-items: center; }
.filters #more-filters { margin-top: .5rem; align-items: flex-end; }

.bulkbar { position: sticky; bottom: 1rem; margin-top: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: var(--ink); color: #fff; padding: .7rem .8rem .7rem 1.2rem; border-radius: 14px; box-shadow: var(--shadow-lg); animation: pop .18s ease; }
.bulkbar[hidden] { display: none; }

.btn-group { display: inline-flex; gap: .25rem; }
.cal-toolbar .spacer { flex: 1; }
.svc-pick { max-height: 14rem; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: .2rem .7rem .7rem; }
.modal .segmented { margin-bottom: .5rem; }
.err-code { font-size: 5rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-form { position: relative; }
.auth-top { position: absolute; top: 1.25rem; right: 1.25rem; }
.auth-quote { display: flex; align-items: center; gap: .15rem; margin-top: 2rem; background: rgba(255, 255, 255, .14); border-radius: 14px; padding: .8rem 1rem; max-width: 40ch; flex-wrap: wrap; }
.auth-quote .icon { fill: #ffd66b; stroke: #ffd66b; }
.auth-quote span { width: 100%; margin-top: .35rem; font-weight: 600; }
.bk-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.bk-logo { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; color: #fff; background: var(--brand); box-shadow: 0 8px 20px -8px var(--brand); }
.bk .lang-switch { flex-wrap: wrap; justify-content: flex-end; }
.done-tick { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto .5rem; display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; color: #fff; background: var(--ok); animation: pop .3s ease; }

/* Client's booking page */
.appt { display: flex; gap: 1.1rem; align-items: flex-start; }
.appt.cancelled { opacity: .75; }
.appt-date { width: 62px; flex: 0 0 auto; border-radius: 14px; overflow: hidden; text-align: center; border: 1px solid var(--line); background: #fff; }
.appt-date span { display: block; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 750; text-transform: uppercase; padding: .2rem 0; }
.appt-date b { display: block; font-size: 1.6rem; padding: .25rem 0 .35rem; }
.plain-list { list-style: none; padding: 0; margin: .4rem 0; display: grid; gap: .2rem; }
.pay-box { border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; margin-bottom: .75rem; }
.pay-amount { font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }

/* Language menu */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: .3rem; cursor: pointer; padding: .35rem .65rem; border-radius: 99px; border: 1px solid var(--line-2); background: #fff; font-weight: 700; font-size: .8rem; color: var(--ink-2); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu[open] summary { border-color: var(--brand); color: var(--brand); }
.lang-menu > div { position: absolute; right: 0; top: calc(100% + .35rem); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: .3rem; min-width: 10rem; z-index: 50; display: grid; animation: pop .14s ease; }
.lang-menu > div a { padding: .45rem .7rem; border-radius: 8px; color: var(--ink); font-size: .9rem; text-decoration: none !important; }
.lang-menu > div a:hover { background: var(--brand-soft); }
.lang-menu > div a.on { font-weight: 750; color: var(--brand); }
.person .top > div { min-width: 0; }
.person .top .small { overflow-wrap: anywhere; }

/* Reassign a booking / hand over bookings */
.reassign-list { display: grid; gap: .4rem; margin: .75rem 0 1rem; }
.reassign-opt { display: flex; align-items: center; gap: .6rem; margin: 0; padding: .6rem .75rem; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; cursor: pointer; font-weight: 600; }
.reassign-opt .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.reassign-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.reassign-opt.disabled { opacity: .55; cursor: not-allowed; }
.reassign-opt { flex-wrap: wrap; }
.reassign-note { flex-basis: 100%; color: var(--ink-2); font-weight: 500; line-height: 1.4; }
.handover-row .reassign-note { display: block; margin-top: .35rem; }
.handover-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: .75rem; align-items: center; padding: .75rem 0; border-top: 1px solid var(--line); }
.handover-row:first-child { border-top: 0; }
.handover-row .when { font-weight: 700; }
.handover-row select { margin: 0; }
@media (max-width: 640px) { .handover-row { grid-template-columns: 1fr; } }

/* ---------- Salon logo ---------- */
.bk-logo-img { max-height: 64px; max-width: 200px; width: auto; height: auto; object-fit: contain; display: block; }
.logo-field { display: flex; gap: 1rem; align-items: center; margin-bottom: .25rem; }
.logo-preview { width: 72px; height: 72px; border-radius: 16px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; background: var(--brand); color: #fff; font-weight: 800; font-size: 1.3rem; border: 1px solid var(--line); }
.logo-preview img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 6px; }
.logo-field input[type=file] { font-size: .88rem; max-width: 100%; }

/* ---------- Booking page design picker (Settings) ---------- */
.design-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
@media (max-width: 720px) { .design-pick { grid-template-columns: 1fr; } }
.design-opt { position: relative; display: flex; flex-direction: column; gap: .25rem; padding: .7rem; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; background: #fff; transition: border-color .12s, box-shadow .12s; }
.design-opt:hover { border-color: var(--line-2); }
.design-opt input { position: absolute; opacity: 0; pointer-events: none; }
.design-opt:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.design-opt:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.design-name { font-weight: 700; }
.design-thumb { display: block; height: 92px; border-radius: 10px; background: #f4f3f9; position: relative; overflow: hidden; margin-bottom: .3rem; }
.design-thumb i { position: absolute; border-radius: 4px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.design-thumb-classic i:nth-child(1) { left: 34%; right: 34%; top: 10px; height: 8px; background: var(--brand); }
.design-thumb-classic i:nth-child(2) { left: 26%; right: 26%; top: 26px; height: 14px; }
.design-thumb-classic i:nth-child(3) { left: 26%; right: 26%; top: 45px; height: 14px; }
.design-thumb-classic i:nth-child(4) { left: 26%; right: 26%; top: 64px; height: 14px; }
.design-thumb-studio { background: #faf6f3; }
.design-thumb-studio i:nth-child(1) { left: 8%; width: 30%; top: 10px; height: 8px; background: color-mix(in srgb, var(--brand) 60%, #fff); }
.design-thumb-studio i:nth-child(2) { left: 8%; width: 56%; top: 26px; height: 26px; }
.design-thumb-studio i:nth-child(3) { left: 8%; width: 56%; top: 57px; height: 26px; }
.design-thumb-studio i:nth-child(4) { right: 8%; width: 24%; top: 26px; height: 46px; border: 1px solid color-mix(in srgb, var(--brand) 30%, #fff); }
.design-thumb-boutique i:nth-child(1) { left: 0; right: 0; top: 0; height: 38px; border-radius: 0; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #000)); }
.design-thumb-boutique i:nth-child(2) { left: 42%; right: 42%; top: 26px; height: 22px; border-radius: 50%; }
.design-thumb-boutique i:nth-child(3) { left: 20%; right: 20%; top: 56px; height: 12px; border-radius: 99px; }
.design-thumb-boutique i:nth-child(4) { left: 20%; right: 20%; top: 73px; height: 12px; border-radius: 99px; }

/* ---------- Booking design: Boutique (the Classic steps, dressed up) ---------- */
body.design-boutique { --bq-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif; background: color-mix(in srgb, var(--brand) 5%, #fbfaf8); }
.bk-boutique { max-width: 680px; padding-top: 0; }
.bk-boutique > header { position: relative; margin: 0 calc(50% - 50vw); padding: 3.6rem 1rem 4.6rem; color: #fff; text-align: center; background: radial-gradient(120% 140% at 50% 0%, color-mix(in srgb, var(--brand) 82%, #fff) 0%, var(--brand) 45%, color-mix(in srgb, var(--brand) 60%, #000) 100%); }
.bk-boutique > header .bk-top { position: absolute; top: .9rem; left: 0; right: 0; max-width: 680px; margin: 0 auto; padding: 0 1rem; justify-content: flex-end; }
.bk-boutique > header .bq-logo { display: flex; justify-content: center; margin-bottom: .4rem; }
.bk-boutique .bk-logo { width: 76px; height: 76px; border-radius: 50%; font-size: 1.5rem; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .5); box-shadow: none; font-family: var(--bq-serif); }
.bk-boutique .bk-logo-img { max-height: 76px; max-width: 220px; background: #fff; border-radius: 14px; padding: 8px 12px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .35); }
.bk-boutique .lang-switch { background: rgba(255, 255, 255, .16); }
.bk-boutique .lang-switch a { color: rgba(255, 255, 255, .85); }
.bk-boutique .lang-switch a.on { background: #fff; color: var(--ink); }
.bk-boutique > header h1 { font-family: var(--bq-serif); font-weight: 500; font-size: clamp(1.9rem, 5vw, 2.6rem); letter-spacing: .01em; margin-top: .5rem; }
.bk-boutique > header .muted { color: rgba(255, 255, 255, .86); max-width: 46ch; margin: .25rem auto 0; }
.bk-boutique .steps { position: relative; margin: -2.6rem 0 0; padding: 1.1rem 1.4rem .2rem; background: #fff; border-radius: 22px 22px 0 0; }
.bk-boutique #bk-body { background: #fff; border-radius: 0 0 22px 22px; padding: .5rem 1.4rem 1.2rem; box-shadow: 0 30px 60px -30px rgba(22, 20, 43, .25); }
.bk-boutique #bk-body h2 { font-family: var(--bq-serif); font-weight: 500; font-size: 1.5rem; text-align: center; margin: .6rem 0 1.1rem; }
.bk-boutique #bk-body h3.muted { text-align: center; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; }
.bk-boutique .opt { border-radius: 16px; border-color: #eee8e4; padding: 1rem 1.15rem; }
.bk-boutique .opt b { font-weight: 600; }
.bk-boutique .opt:hover { border-color: color-mix(in srgb, var(--brand) 40%, #fff); }
.bk-boutique .btn.primary { border-radius: 99px; padding-inline: 1.6rem; }
.bk-boutique .btn { border-radius: 99px; }
.bk-boutique .days button, .bk-boutique .times button { border-radius: 99px; }
.bk-boutique .days button { border-radius: 16px; }
.bk-boutique .summary { background: color-mix(in srgb, var(--brand) 5%, #fff); border-color: color-mix(in srgb, var(--brand) 15%, #fff); border-radius: 14px; }
.bk-boutique .foot { background: #fff; }
@media (max-width: 560px) { .bk-boutique .steps, .bk-boutique #bk-body { padding-inline: .9rem; } }
body.design-boutique.embed .bk-boutique > header { margin-inline: -1rem; }

/* ---------- Booking design: Studio (one page with a summary) ---------- */
body.design-studio { --st-bg: color-mix(in srgb, var(--brand) 4%, #fbf8f6); --st-line: color-mix(in srgb, var(--brand) 14%, #ece6e2); --st-ink: color-mix(in srgb, var(--brand) 25%, #2a1f22); background: var(--st-bg); color: var(--st-ink); }
.st-wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.st-bar { border-bottom: 1px solid var(--st-line); background: color-mix(in srgb, var(--st-bg) 85%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20; }
.st-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.st-brand { display: flex; align-items: center; gap: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-size: .82rem; }
.st-brand .bk-logo { width: 38px; height: 38px; border-radius: 12px; font-size: .9rem; letter-spacing: 0; box-shadow: none; }
.st-brand .bk-logo-img { max-height: 40px; max-width: 150px; }
.st-brand:has(.bk-logo-img) > span { display: none; }
.st-hero { padding: 3rem 0 2rem; }
.st-script { font-family: "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive; font-size: 2.6rem; line-height: 1; color: var(--brand); margin: 0 0 .5rem; }
.st-hero h1 { font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.12; letter-spacing: -.01em; font-weight: 600; max-width: 14ch; margin: 0 0 1rem; }
.st-lead { max-width: 54ch; font-size: 1.08rem; color: color-mix(in srgb, var(--st-ink) 72%, #fff); margin: 0; }
.st-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; align-items: start; padding-bottom: 4rem; }
.st-steps { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.st-step, .st-card { background: #fff; border: 1px solid var(--st-line); border-radius: 22px; padding: 1.4rem 1.6rem; scroll-margin-top: 80px; transition: opacity .2s; }
.st-head { display: flex; align-items: center; gap: .8rem; }
.st-head h2 { margin: 0; font-size: 1.3rem; font-weight: 600; flex: 1; }
.st-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; font-weight: 600; background: color-mix(in srgb, var(--brand) 14%, #fff); color: var(--brand); flex: 0 0 auto; }
.st-step.is-done .st-num { background: var(--brand); color: #fff; }
.st-pick { font-size: .88rem; color: var(--brand); font-weight: 600; text-align: right; }
.st-step.is-locked { background: transparent; border-style: dashed; padding-block: 1rem; }
.st-step.is-locked .st-head { opacity: .45; }
.st-step.is-locked .st-body:empty { display: none; }
.st-body { margin-top: 1rem; }
.st-note { color: color-mix(in srgb, var(--st-ink) 65%, #fff); font-size: .9rem; margin: -.3rem 0 .9rem; }
.st-cat { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 600; color: color-mix(in srgb, var(--st-ink) 55%, #fff); margin: 1.2rem 0 .6rem; }
.st-cat:first-child { margin-top: 0; }
.st-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.st-opt { position: relative; display: flex; gap: .8rem; align-items: flex-start; text-align: left; padding: 1rem 1.05rem; border: 1px solid var(--st-line); border-radius: 16px; background: color-mix(in srgb, var(--brand) 2%, #fdfbfa); cursor: pointer; font: inherit; color: inherit; transition: border-color .12s, background .12s, box-shadow .12s; width: 100%; margin: 0; }
.st-opt:hover { border-color: color-mix(in srgb, var(--brand) 45%, #fff); }
.st-opt.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, #fff); box-shadow: inset 0 0 0 1px var(--brand); }
.st-opt-main { flex: 1; display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.st-opt-main b { font-weight: 600; line-height: 1.3; }
.st-opt .meta { font-size: .84rem; color: color-mix(in srgb, var(--st-ink) 62%, #fff); }
.st-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.st-price { font-weight: 600; color: var(--brand); white-space: nowrap; font-size: .92rem; }
.st-svc input { position: absolute; opacity: 0; pointer-events: none; }
.st-box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid color-mix(in srgb, var(--st-ink) 30%, #fff); flex: 0 0 auto; margin-top: 2px; display: grid; place-items: center; background: #fff; }
.st-svc.on .st-box { background: var(--brand); border-color: var(--brand); }
.st-svc.on .st-box::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.st-svc:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.st-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: .9rem; background: color-mix(in srgb, var(--brand) 14%, #fff); color: var(--brand); flex: 0 0 auto; }
.st-person { align-items: center; }
.st-cal { max-width: 380px; }
.st-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.st-cal-head b { font-weight: 600; text-transform: capitalize; }
.st-nav { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--st-line); background: #fff; cursor: pointer; font-size: 1.2rem; line-height: 1; color: inherit; }
.st-nav:disabled { opacity: .35; cursor: default; }
.st-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3rem; }
.st-cal-grid .wd { text-align: center; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: color-mix(in srgb, var(--st-ink) 50%, #fff); padding-bottom: .2rem; }
.st-cal-grid button { aspect-ratio: 1; border: 0; border-radius: 50%; background: transparent; font: inherit; font-weight: 500; color: inherit; cursor: pointer; font-variant-numeric: tabular-nums; }
.st-cal-grid button:hover:not(:disabled):not(.on) { background: color-mix(in srgb, var(--brand) 12%, #fff); }
.st-cal-grid button.today { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 50%, #fff); }
.st-cal-grid button.on { background: var(--brand); color: #fff; }
.st-cal-grid button:disabled { opacity: .3; cursor: default; }
.st-step .times button { border-radius: 99px; background: #fff; border-color: var(--st-line); }
.st-step .times button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.st-step .times { margin-top: 0; }
.st-step .st-cat + .times { margin-bottom: .4rem; }
.st-book { width: 100%; justify-content: center; margin-top: .6rem; border-radius: 99px; }
.st-aside { position: sticky; top: 84px; }
.st-sum { background: #fff; border: 1px solid var(--st-line); border-radius: 22px; padding: 1.4rem 1.5rem; }
.st-eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 600; color: color-mix(in srgb, var(--brand) 70%, var(--st-ink)); margin: 0 0 .6rem; }
.st-sum-row { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--st-line); font-size: .92rem; }
.st-sum-row > span:first-child { color: color-mix(in srgb, var(--st-ink) 60%, #fff); flex: 0 0 auto; }
.st-sum-row > span:last-child { text-align: right; font-weight: 500; }
.st-total { border-bottom: 0; padding-top: 1rem; font-size: 1.05rem; }
.st-total > span { color: inherit !important; font-weight: 600 !important; }
.st-sum-go { width: 100%; justify-content: center; margin-top: .8rem; border-radius: 99px; }
.st-done { text-align: center; padding: 2.5rem 1.5rem; }
.st-foot { background: color-mix(in srgb, var(--brand) 45%, #8f7b7e); color: #fff; padding: 2rem 0; }
.st-foot .st-wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; }
.st-foot .small { letter-spacing: 0; text-transform: none; }
.st-foot a { color: #fff; text-decoration: underline; }
body.design-studio .lang-switch { background: color-mix(in srgb, var(--brand) 8%, #fff); }
body.design-studio .lang-switch a.on { background: var(--brand); color: #fff; }
@media (max-width: 900px) {
  .st-grid { grid-template-columns: 1fr; gap: 1rem; }
  .st-aside { position: sticky; bottom: 0; top: auto; order: 2; z-index: 15; margin: 0 -1.25rem; }
  .st-sum { border-radius: 18px 18px 0 0; padding: .8rem 1.25rem; box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, .18); display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 1rem; }
  .st-sum .st-eyebrow, .st-sum .st-sum-row:not(.st-total) { display: none; }
  .st-sum .st-total { padding: 0; }
  .st-sum .st-total > span:first-child { display: none; }
  .st-sum-go { width: auto; margin: 0; }
  .st-aside:not(.has-items) { display: none; }
}
@media (max-width: 620px) {
  .st-hero { padding: 1.8rem 0 1.2rem; }
  .st-script { font-size: 2.1rem; }
  .st-cards { grid-template-columns: 1fr; }
  .st-step, .st-card { padding: 1.1rem 1rem; border-radius: 18px; }
  .st-wrap { padding: 0 .9rem; }
  .st-aside { margin: 0 -.9rem; }
  .st-brand > span { display: none; }
}
body.design-studio.embed { background: transparent; }
body.design-studio.embed .st-bar, body.design-studio.embed .st-foot { display: none; }
body.design-boutique { overflow-x: clip; }
.design-opt .small { font-weight: 400; }
.design-preview { margin-top: auto; padding-top: .3rem; font-weight: 600 !important; }
.lang-menu > form { position: absolute; right: 0; top: calc(100% + .35rem); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: .3rem; min-width: 10rem; z-index: 50; display: grid; animation: pop .14s ease; }
.lang-menu > form button { padding: .45rem .7rem; border-radius: 8px; color: var(--ink); font: inherit; font-size: .9rem; background: none; border: 0; text-align: left; cursor: pointer; }
.lang-menu > form button:hover { background: var(--brand-soft); }
.lang-menu > form button.on { font-weight: 750; color: var(--brand); }
.bk-by { text-align: center; margin-top: 2rem; }
.legal-links a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }

/* ---------- Booking design: Split (brand panel on the left, steps on the right) ---------- */
body.design-split { background: #fff; }
.sp { display: grid; grid-template-columns: minmax(300px, 42%) 1fr; min-height: 100vh; }
.sp-side { position: relative; color: #fff; background: radial-gradient(130% 90% at 0% 0%, color-mix(in srgb, var(--brand) 70%, #fff) 0%, var(--brand) 40%, color-mix(in srgb, var(--brand) 45%, #000) 100%); overflow: hidden; }
.sp-side::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -200px; bottom: -220px; background: rgba(255, 255, 255, .08); }
.sp-side-in { position: sticky; top: 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: .3rem; padding: 3rem clamp(1.5rem, 5vw, 4.5rem); z-index: 1; }
.sp-logo .bk-logo { width: 64px; height: 64px; border-radius: 20px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); box-shadow: none; font-size: 1.35rem; }
.sp-logo .bk-logo-img { background: #fff; border-radius: 16px; padding: 10px 14px; max-height: 84px; }
.sp-side h1 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.08; letter-spacing: -.02em; margin: 1.6rem 0 .6rem; }
.sp-welcome { font-size: 1.05rem; opacity: .9; max-width: 36ch; margin: 0 0 1.4rem; }
.sp-where { display: flex; gap: .5rem; align-items: flex-start; opacity: .9; margin: 0; }
.sp-where .icon { flex: 0 0 auto; margin-top: .2rem; }
.sp-by { margin-top: 2.5rem; opacity: .75; }
.sp-by a { color: #fff; text-decoration: underline; }
.sp-main { min-width: 0; }
.bk-split { max-width: 620px; padding: 1.5rem clamp(1rem, 4vw, 3rem) 3rem; }
.bk-split header { text-align: left; padding-top: .5rem; }
.bk-split .bk-top { margin-bottom: .5rem; }
.sp-eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .75rem; font-weight: 700; color: var(--brand); }
.bk-split .steps { margin-top: .5rem; }
.bk-split #bk-body h2 { font-size: 1.6rem; letter-spacing: -.01em; }
.bk-split .opt { border-radius: 12px; padding: 1rem 1.1rem; }
.bk-split .foot { background: #fff; }
@media (max-width: 860px) {
  .sp { grid-template-columns: 1fr; }
  .sp-side-in { position: static; min-height: 0; padding: 2rem 1.25rem 2.2rem; }
  .sp-side h1 { margin-top: 1rem; }
  .sp-by { display: none; }
  .bk-split { padding-top: 1rem; }
}
body.design-split.embed .sp-side { display: none; }
body.design-split.embed .sp { display: block; min-height: 0; }

/* ---------- Booking design: Noir (the one-page form, dark and elegant) ---------- */
body.design-noir { --st-bg: #141214; --st-card: #1c191c; --st-card-2: #231f23; --st-line: rgba(255, 255, 255, .09); --st-ink: #f2ece6; --line: rgba(255, 255, 255, .1); --line-2: rgba(255, 255, 255, .16); --ink: #f2ece6; --ink-2: #d8d0c9; --muted: #a59c95; --surface: #1c191c; --surface-2: #231f23; --bg: #141214; --brand-soft: color-mix(in srgb, var(--brand) 20%, #141214); color-scheme: dark; }
body.design-noir .st-bar { background: rgba(20, 18, 20, .82); }
body.design-noir .st-hero h1, body.design-noir .st-step h2 { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-weight: 500; letter-spacing: .005em; }
body.design-noir .st-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
body.design-noir .st-script { color: color-mix(in srgb, var(--brand) 70%, #fff); }
body.design-noir .st-lead, body.design-noir .st-note, body.design-noir .st-opt .meta, body.design-noir .st-sum-row > span:first-child, body.design-noir .st-cat, body.design-noir .st-cal-grid .wd { color: #a59c95; }
body.design-noir .st-step, body.design-noir .st-card, body.design-noir .st-sum { background: var(--st-card); }
body.design-noir .st-step.is-locked { background: transparent; }
body.design-noir .st-opt { background: var(--st-card-2); }
body.design-noir .st-opt.on { background: color-mix(in srgb, var(--brand) 18%, var(--st-card-2)); }
body.design-noir .st-box, body.design-noir .st-nav, body.design-noir .st-step .times button { background: transparent; border-color: rgba(255, 255, 255, .22); color: inherit; }
body.design-noir .st-step .times button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
body.design-noir .st-num, body.design-noir .st-avatar { background: color-mix(in srgb, var(--brand) 25%, #1c191c); color: color-mix(in srgb, var(--brand) 60%, #fff); }
body.design-noir .st-step.is-done .st-num { background: var(--brand); color: #fff; }
body.design-noir .st-pick, body.design-noir .st-price { color: color-mix(in srgb, var(--brand) 65%, #fff); }
body.design-noir input[type=text], body.design-noir input[type=email], body.design-noir input[type=tel], body.design-noir textarea { background: #141214; border-color: rgba(255, 255, 255, .16); color: var(--st-ink); }
body.design-noir .segmented { background: #141214; }
body.design-noir .segmented input:checked + span { background: var(--st-card-2); color: #fff; }
body.design-noir .btn { background: transparent; color: var(--st-ink); border-color: rgba(255, 255, 255, .2); }
body.design-noir .btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 10px 30px -12px var(--brand); }
body.design-noir .st-foot { background: #0d0c0d; color: #a59c95; }
body.design-noir .lang-menu summary, body.design-noir .lang-menu > div { background: #1c191c; color: var(--st-ink); border-color: rgba(255, 255, 255, .16); }
body.design-noir .lang-menu > div a { color: var(--st-ink); }
body.design-noir .flash.warn { background: #3a2d14; color: #f4d9a6; border-color: #5a4520; }
body.design-noir .flash.err { background: #3a1717; color: #f6c0c0; border-color: #5a2323; }
body.design-noir .st-brand .bk-logo-img { background: #fff; border-radius: 8px; padding: 4px 8px; }
@media (max-width: 900px) { body.design-noir .st-sum { box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, .6); } }

/* ---------- Booking design: Fresh (soft colours, services as tiles) ---------- */
body.design-fresh { --fr-font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI", system-ui, sans-serif; font-family: var(--fr-font); background:
  radial-gradient(40rem 30rem at 110% -10%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
  radial-gradient(36rem 28rem at -20% 30%, color-mix(in srgb, var(--brand) 12%, #ffe9d6), transparent 70%),
  #fffaf6; background-attachment: fixed; }
.bk-fresh { max-width: 760px; }
.bk-fresh header { text-align: left; }
.bk-fresh header h1 { font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -.02em; line-height: 1.1; margin-top: .3rem; }
.bk-fresh .bk-logo { border-radius: 50%; }
.bk-fresh .steps { gap: .5rem; }
.bk-fresh .steps span { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--brand) 14%, #fff); }
.bk-fresh .steps span.on { background: var(--brand); }
.bk-fresh #bk-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; align-items: stretch; }
.bk-fresh #bk-body > * { grid-column: 1 / -1; }
.bk-fresh #bk-body > .opt { grid-column: auto; margin: 0; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: .6rem; min-height: 7.5rem; padding: 1.1rem 1.2rem; border: 0; border-radius: 22px; background: #fff; box-shadow: 0 2px 0 color-mix(in srgb, var(--brand) 10%, #f0e6dd), 0 12px 24px -16px rgba(60, 30, 20, .25); }
.bk-fresh #bk-body > .opt > span:last-child { font-weight: 800; font-size: 1.05rem; color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, #fff); padding: .25rem .7rem; border-radius: 99px; }
.bk-fresh #bk-body > .opt:hover { transform: translateY(-2px); }
.bk-fresh #bk-body > .opt.on { background: color-mix(in srgb, var(--brand) 12%, #fff); box-shadow: inset 0 0 0 2px var(--brand); }
.bk-fresh #bk-body > h2 { font-size: 1.5rem; margin: .6rem 0 .1rem; }
.bk-fresh #bk-body > h3 { margin: .6rem 0 0 !important; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem !important; }
.bk-fresh .btn { border-radius: 99px; }
.bk-fresh .btn.primary { padding-inline: 1.5rem; }
.bk-fresh .days button { border-radius: 18px; background: #fff; border-color: transparent; box-shadow: 0 6px 16px -12px rgba(60, 30, 20, .35); }
.bk-fresh .days button.on { background: var(--brand); }
.bk-fresh .times button { border-radius: 99px; border-color: transparent; background: #fff; box-shadow: 0 6px 16px -12px rgba(60, 30, 20, .35); }
.bk-fresh .times button.on, .bk-fresh .times button:hover { background: var(--brand); color: #fff; }
.bk-fresh .summary { background: #fff; border: 0; border-radius: 18px; box-shadow: 0 10px 24px -18px rgba(60, 30, 20, .3); }
.bk-fresh .foot { background: transparent; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.bk-fresh #bk-body .card { border: 0; border-radius: 24px; }
.bk-fresh input[type=text], .bk-fresh input[type=email], .bk-fresh input[type=tel] { border-radius: 14px; border-color: color-mix(in srgb, var(--brand) 15%, #eadfd6); }
@media (max-width: 520px) { .bk-fresh #bk-body { grid-template-columns: 1fr; } .bk-fresh #bk-body > .opt { min-height: 0; flex-direction: row; align-items: center; } }
body.design-fresh.embed { background: transparent; }
.design-thumb-split { background: #fff; }
.design-thumb-split i:nth-child(1) { left: 0; top: 0; bottom: 0; width: 40%; height: auto; border-radius: 0; background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 70%, #fff), var(--brand)); }
.design-thumb-split i:nth-child(2) { left: 48%; right: 8%; top: 14px; height: 18px; background: #f1eff7; }
.design-thumb-split i:nth-child(3) { left: 48%; right: 8%; top: 38px; height: 18px; background: #f1eff7; }
.design-thumb-split i:nth-child(4) { left: 48%; right: 8%; top: 62px; height: 18px; background: #f1eff7; }
.design-thumb-noir { background: #161416; }
.design-thumb-noir i { background: #262126 !important; box-shadow: none !important; }
.design-thumb-noir i:nth-child(1) { left: 8%; width: 30%; top: 10px; height: 8px; background: var(--brand) !important; }
.design-thumb-noir i:nth-child(2) { left: 8%; width: 56%; top: 26px; height: 26px; }
.design-thumb-noir i:nth-child(3) { left: 8%; width: 56%; top: 57px; height: 26px; }
.design-thumb-noir i:nth-child(4) { right: 8%; width: 24%; top: 26px; height: 46px; border: 1px solid color-mix(in srgb, var(--brand) 50%, #000); }
.design-thumb-fresh { background: radial-gradient(80px 60px at 100% 0%, color-mix(in srgb, var(--brand) 30%, transparent), transparent), #fff6ee; }
.design-thumb-fresh i { border-radius: 10px !important; }
.design-thumb-fresh i:nth-child(1) { left: 10%; width: 36%; top: 10px; height: 10px; background: var(--brand); border-radius: 99px !important; }
.design-thumb-fresh i:nth-child(2) { left: 10%; width: 38%; top: 28px; height: 26px; }
.design-thumb-fresh i:nth-child(3) { right: 10%; width: 38%; top: 28px; height: 26px; }
.design-thumb-fresh i:nth-child(4) { left: 10%; width: 38%; top: 60px; height: 26px; }
@media (min-width: 721px) { .design-pick { grid-template-columns: repeat(3, 1fr); } }
body.design-noir .st-cal-grid button:hover:not(:disabled):not(.on) { background: color-mix(in srgb, var(--brand) 25%, #1c191c); }
body.design-noir .st-cal-grid button.today { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 60%, #000); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.label-row a { margin-top: .75rem; }
.row-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0 .2rem; }

/* Time off, reviews and reports */
.warn-card { border-color: #f6dfb6; background: linear-gradient(180deg, var(--warn-soft), var(--surface) 70%); }
.warn-card h2 { display: flex; gap: .5rem; align-items: center; color: #7a4600; }
.holiday-list { margin: .6rem 0 .4rem; }
.holiday-list .svc { padding: .6rem .9rem; }
.star-ink { color: #f2a516; letter-spacing: .05em; }
.dist { display: grid; gap: .45rem; }
.dist-row { display: grid; grid-template-columns: 2.6rem 1fr 2.5rem; gap: .6rem; align-items: center; }
.dist-row .progress { margin: 0; }
.dist-row .progress span { background: #f2a516; }
.dist-row .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: .85rem; }
.dist-label { font-weight: 650; font-size: .88rem; white-space: nowrap; }
.review-list { display: grid; gap: .1rem; margin-top: .6rem; }
.review-item { padding: .85rem 0; border-top: 1px solid var(--line); }
.review-item:first-child { border-top: 0; }
.review-item.low { box-shadow: inset 3px 0 0 var(--bad); padding-left: .8rem; }
.review-item p { margin: .35rem 0 0; white-space: normal; }
.review-head { display: flex; flex-wrap: wrap; gap: .3rem .7rem; align-items: baseline; }
.report-table .dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; vertical-align: middle; }
.report-table td.bar-cell { min-width: 170px; }
.mini-bar { display: block; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin-bottom: .3rem; max-width: 160px; }
.mini-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.mini-bar.util.high span { background: var(--ok); }
.mini-bar.util.low span { background: var(--warn); }
/* Client review page */
.review-page .card { text-align: center; }
.review-page textarea { text-align: left; }
.stars { border: 0; padding: 0; margin: .6rem auto 0; display: inline-flex; flex-direction: row-reverse; gap: .2rem; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 2.6rem; line-height: 1; color: #d9d6e3; cursor: pointer; margin: 0; padding: .1rem; transition: color .12s, transform .12s; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: #f2a516; }
.stars label:hover { transform: scale(1.12); }
.stars input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
.stars-label { min-height: 1.4em; margin: .2rem 0 .8rem; font-weight: 600; }
.stars-static { font-size: 1.8rem; letter-spacing: .1em; margin: .2rem 0 .6rem; color: #d9d6e3; }
.stars-static .on { color: #f2a516; }
.review-thanks { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: .4rem auto .6rem; background: var(--ok-soft); color: var(--ok); }
.switch-btn { background: none; border: 0; padding: .2rem; margin: 0; font: inherit; font-size: .85rem; color: var(--muted); }
.switch-btn[aria-pressed=true] { color: var(--ink); }
.switch-btn[aria-pressed=true] > span { background: var(--warn); }
.switch-btn[aria-pressed=true] > span::after { transform: translateX(16px); }
.switch-btn:focus-visible > span { box-shadow: 0 0 0 4px rgba(109, 74, 255, .2); }
@media (max-width: 640px) {
  .topbar .crumb { display: none; }
  .topbar .btn-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .segmented { max-width: 100%; }
  .segmented a, .segmented span { padding: .45rem .7rem; }
}
.logo-field .stack-sm { flex: 1; min-width: 0; }
.i18n-tabs { overflow-x: auto; scrollbar-width: none; }
.steps { margin: .8rem 0 .4rem; padding-left: 1.3rem; display: grid; gap: .35rem; }
.steps li { padding-left: .2rem; }
.qr-share { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; margin-top: .6rem; }
.qr-share img { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: .3rem; }
.qr-share > div { flex: 1 1 220px; }
.src-row { grid-template-columns: minmax(7rem, 9rem) 1fr 2.5rem; }
.src-row .progress span { background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
/* Notifications and app */
.push-card h2 { display: flex; gap: .5rem; align-items: center; }
.push-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; }
@media (max-width: 800px) { .push-grid { grid-template-columns: minmax(0, 1fr); } }
.push-on { color: var(--ok); font-weight: 650; display: flex; gap: .4rem; align-items: center; }
.radio-list { display: grid; gap: .5rem; margin: .5rem 0 .6rem; }
.radio { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; margin: 0; background: var(--surface); }
.radio:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.radio input { margin-top: .25rem; accent-color: var(--brand); }
.radio span { display: grid; gap: .1rem; }
.radio small { color: var(--muted); font-weight: 400; }
/* Accounting software (company page) */
.acc-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.acc-head h2 { display: flex; gap: .5rem; align-items: center; }
.acc-pick { margin: .4rem 0 1rem; }
.acc-logo { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; color: #fff; margin-bottom: .2rem; }
.acc-logo-merit { background: linear-gradient(135deg, #0a9d6e, #06734f); }
.acc-logo-directo { background: linear-gradient(135deg, #2f6fdf, #1b4aa6); }
.acc-logo-earveldaja { background: linear-gradient(135deg, #1f3a5f, #0f2440); }
.acc-fields { margin-top: .4rem; }
.acc-status { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); margin: .6rem 0 1rem; }
.acc-map { display: grid; gap: .5rem; margin: .4rem 0 1rem; }
.acc-map-row { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: .8rem; align-items: center; margin: 0; font-weight: 650; }
.acc-map-row select, .acc-map-row input { margin: 0; }
@media (max-width: 560px) { .acc-map-row { grid-template-columns: minmax(0, 1fr); gap: .3rem; } }
.acc-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin: 1.2rem 0 .6rem; }
.acc-stats > * { display: grid; gap: .1rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--surface); }
.acc-stats a:hover { text-decoration: none; border-color: var(--line-2); }
.acc-stats b { font-size: 1.35rem; letter-spacing: -.02em; }
.acc-stats span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.acc-stats .bad b { color: var(--bad); }
.acc-stats .warn b { color: var(--warn); }
@media (max-width: 560px) { .acc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.acc-backfill { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .8rem 0; }
.acc-backfill select { width: auto; margin: 0; }
.acc-keys { margin-top: 1rem; }
.acc-disconnect { margin-top: .8rem; }
.acc-badge { display: flex; flex-wrap: wrap; margin-top: .35rem; gap: .3rem; align-items: center; font-size: .74rem; font-weight: 650; color: var(--muted); white-space: nowrap; }
.acc-badge.ok { color: var(--ok); }
.acc-badge.bad { color: var(--bad); }
.acc-badge.warn { color: var(--warn); }
.acc-badge button { font: inherit; color: var(--brand); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
@media (max-width: 720px) {
  .acc-pick .design-opt { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: .75rem; align-items: center; }
  .acc-pick .acc-logo { grid-row: span 2; margin: 0; }
}
/* Calendar: events and group bookings */
a.cal-ev.cal-class { display: block; color: #3b2a00; background: repeating-linear-gradient(135deg, #fff4d6, #fff4d6 8px, #ffefc7 8px, #ffefc7 16px); border-left-color: #e0a100; text-decoration: none; }
a.cal-ev.cal-class.full { border-left-color: var(--ok); }
a.cal-ev.cal-class:hover { text-decoration: none; }
.cal-ev .grp { display: inline-block; font-size: .64rem; font-weight: 750; padding: 0 .3rem; border-radius: 4px; background: rgba(109, 74, 255, .14); color: var(--brand); margin-right: .2rem; text-transform: uppercase; letter-spacing: .03em; }

/* Events: list, event page, group booking form, public event page */
.ev-list { display: grid; gap: .6rem; }
.ev-row { display: flex; align-items: center; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem 1rem; color: inherit; text-decoration: none !important; box-shadow: var(--shadow-sm); transition: box-shadow .15s, border-color .15s, transform .15s; }
.ev-row:hover { box-shadow: var(--shadow); border-color: var(--line-2); transform: translateY(-1px); }
.ev-row.cancelled { opacity: .6; }
.ev-row.cancelled .ev-main b { text-decoration: line-through; }
.ev-date, .bk-ev-date { flex: 0 0 auto; width: 52px; height: 56px; border-radius: 14px; display: grid; place-content: center; text-align: center; background: var(--brand-soft); color: var(--brand); line-height: 1.05; }
.ev-date b, .bk-ev-date b { font-size: 1.35rem; font-weight: 800; }
.ev-date span, .bk-ev-date span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.ev-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.ev-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-fill { flex: 0 0 170px; display: flex; flex-direction: column; gap: .2rem; align-items: flex-start; }
.ev-fill .mini-bar { width: 100%; margin: 0; }
.ev-price { flex: 0 0 auto; font-weight: 700; min-width: 4.5rem; text-align: right; }
.mini-bar.full span { background: var(--ok); }
@media (max-width: 700px) {
  .ev-row { flex-wrap: wrap; gap: .6rem .85rem; }
  .ev-main { flex-basis: calc(100% - 52px - .85rem); }
  .ev-main b { white-space: normal; }
  .ev-fill { flex: 1 1 auto; }
  .ev-row > .icon { display: none; }
}
.stat .mini-bar { max-width: none; margin-top: .4rem; }
.ev-people { display: flex; flex-direction: column; }
.ev-person { display: flex; align-items: center; gap: .75rem; padding: .65rem .25rem; border-top: 1px solid var(--line); color: inherit; text-decoration: none !important; }
.ev-person:first-child, .ev-person-wrap > .ev-person { border-top: 0; }
.ev-person-wrap { border-top: 1px solid var(--line); }
.ev-person-wrap:first-child { border-top: 0; }
.ev-answers { padding: 0 .25rem .7rem calc(34px + 1rem); display: flex; flex-wrap: wrap; align-items: flex-end; gap: .4rem 1rem; }
.ev-answers dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: .15rem .8rem; font-size: .86rem; flex: 1 1 260px; }
.ev-answers dt { color: var(--muted); }
.ev-answers dd { margin: 0; overflow-wrap: anywhere; }
.ev-person:hover { background: var(--surface-2); }
.ev-person .who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ev-person .who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-person .seats { font-weight: 700; color: var(--ink-2); }
.ev-person .tags { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
.ev-person.cancelled { opacity: .6; }
@media (max-width: 560px) { .ev-person { flex-wrap: wrap; } .ev-person .tags { width: 100%; justify-content: flex-start; padding-left: calc(34px + .75rem); } }
details.gone { margin-top: .75rem; }
details.gone summary { cursor: pointer; }

.guests { display: flex; flex-direction: column; gap: .75rem; }
.guest { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); animation: pop .2s ease; }
.guest-no { flex: 0 0 auto; width: 30px; height: 30px; margin-top: 1.55rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: #fff; background: var(--grad); }
.guest-fields { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .25rem; }
.guest-line { display: grid; gap: .6rem; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.5fr); }
.guest-line:last-child { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.guest-line label { margin-top: 0; }
.guest > [data-remove-row] { margin-top: 1.45rem; }
.guest > [data-remove-row]:disabled { visibility: hidden; }
@media (max-width: 640px) {
  .guest { flex-wrap: wrap; position: relative; }
  .guest-no { margin-top: 0; }
  .guest-fields { flex-basis: 100%; order: 2; }
  .guest > [data-remove-row] { margin: 0 0 0 auto; }
  .guest-line, .guest-line:last-child { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .guest-line .g-name { grid-column: 1 / -1; }
}

.bk-events { margin: 1.5rem 0 .5rem; }
.bk-events h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
.bk-ev-list { display: grid; gap: .6rem; }
.bk-ev { display: flex; align-items: center; gap: .9rem; padding: .8rem .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; color: inherit; text-decoration: none !important; transition: border-color .15s, box-shadow .15s; }
.bk-ev:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.bk-ev-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.bk-ev-main .meta, .ev-pub .meta { font-size: .85rem; color: var(--muted); }
.bk-ev-main .full { color: var(--bad); font-weight: 650; }
.bk-ev-price { font-weight: 700; white-space: nowrap; }
.st .bk-events { max-width: 760px; }
.ev-pub header { text-align: left; }
.ev-card { margin-bottom: 1rem; }
.ev-when { display: flex; gap: 1rem; align-items: flex-start; }
.ev-when h1 { font-size: 1.45rem; margin: 0 0 .35rem; line-height: 1.2; }
.ev-when .meta { display: flex; gap: .4rem; align-items: center; margin: .15rem 0; }
.bk-ev-date.big { width: 64px; height: 70px; }
.bk-ev-date.big b { font-size: 1.7rem; }
.ev-desc { margin: 1rem 0 0; color: var(--ink-2); }
.ev-facts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.ev-facts > div { flex: 1 1 120px; display: flex; flex-direction: column; padding: .6rem .8rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.ev-facts b { font-size: 1.1rem; }
.seat-pick { display: flex; align-items: center; gap: .5rem; }
.seat-pick input { width: 4.5rem; text-align: center; }
.seat-pick .btn { width: 2.6rem; justify-content: center; font-size: 1.15rem; padding: .45rem 0; }
.new-client .row { gap: .5rem; margin-top: .5rem; }

/* ---------- Simpler menu: groups, avatar menu, search, tabs (2026-11) ---------- */
.side nav { display: flex; flex-direction: column; gap: 1px; }
.side nav a { padding-top: .46rem; padding-bottom: .46rem; }
.side .group { padding-top: .75rem; }
.side nav .group:first-child { padding-top: .2rem; }
.me-menu { position: relative; }
.me-menu > summary { list-style: none; cursor: pointer; border-radius: 12px; }
.me-menu > summary::-webkit-details-marker { display: none; }
.me-menu > summary:hover, .me-menu[open] > summary { background: var(--surface-2); }
.me-menu > summary > .icon:last-child { margin-left: auto; color: var(--muted); transition: transform .15s; }
.me-menu[open] > summary > .icon:last-child { transform: rotate(180deg); }
.me-pop { position: absolute; left: 0; right: 0; bottom: calc(100% + .4rem); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: .4rem; z-index: 70; }
.me-pop a, .me-pop button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .5rem .6rem; border-radius: 9px; border: 0; background: none; font: inherit; font-weight: 550; color: var(--ink-2); text-decoration: none; cursor: pointer; text-align: left; }
.me-pop a:hover, .me-pop button:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.me-pop .icon { color: var(--muted); }
.me-sep { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; padding: .6rem .6rem .25rem; display: flex; align-items: center; gap: .35rem; border-top: 1px solid var(--line); margin-top: .3rem; }
.me-langs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding-bottom: .3rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem; }
.me-langs button { font-size: .85rem; padding: .35rem .6rem; }
.me-langs button.on { background: var(--brand-soft); color: var(--brand); }
.me-out { color: var(--ink-2); }

.search-btn { margin-left: auto; flex: 0 1 380px; display: flex; align-items: center; gap: .55rem; min-width: 0; height: 38px; padding: 0 .75rem; border: 1px solid var(--line-2); border-radius: 11px; background: var(--surface); color: var(--muted); font: inherit; font-size: .9rem; cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s; }
.search-btn:hover { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.search-btn .btn-text { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-btn kbd, .search-field kbd { font: 600 .72rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: .2rem .4rem; white-space: nowrap; }
.search-bg { align-items: flex-start; padding-top: 12vh; }
.search-modal { width: min(620px, calc(100vw - 2rem)); background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; max-height: 70vh; animation: pop .16s ease-out; }
.search-field { display: flex; align-items: center; gap: .6rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line); margin: 0; color: var(--muted); }
.search-field input { flex: 1; border: 0; outline: 0; box-shadow: none; padding: .2rem 0; font-size: 1.05rem; background: transparent; color: var(--ink); }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-results { overflow: auto; padding: .4rem; }
.search-group { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; padding: .65rem .65rem .3rem; }
.search-item { display: flex; align-items: center; gap: .7rem; padding: .55rem .65rem; border-radius: 10px; color: var(--ink); text-decoration: none !important; }
.search-item.on { background: var(--brand-soft); }
.search-item.on .search-ic { color: var(--brand); }
.search-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); flex: 0 0 auto; }
.search-txt { min-width: 0; display: flex; flex-direction: column; }
.search-txt b { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-txt small { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-empty { color: var(--muted); text-align: center; padding: 1.5rem 1rem; margin: 0; }
@media (max-width: 900px) {
  .search-btn { flex: 0 0 auto; width: 38px; padding: 0; justify-content: center; }
  .search-btn .btn-text, .search-btn kbd { display: none; }
  .search-bg { padding-top: 1rem; }
}

[data-page-tabs] a .badge { margin-left: .25rem; font-size: .7rem; padding: .05rem .4rem; }
.tab-pane { animation: fade .12s ease-out; }


.setup-card { border-color: #e2d9ff; background: linear-gradient(180deg, #fbfaff, #fff 60%); }
.setup-card .card-head { align-items: flex-start; }
.setup-card h2 { display: flex; align-items: center; gap: .45rem; }
.setup-bar { height: 6px; border-radius: 99px; background: var(--brand-soft); overflow: hidden; margin: .25rem 0 .9rem; }
.setup-bar span { display: block; height: 100%; background: var(--grad); border-radius: 99px; transition: width .4s ease; }
.setup-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.setup-steps li { display: flex; align-items: center; gap: .75rem; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); flex-wrap: wrap; }
.setup-steps li.done { background: var(--surface-2); }
.setup-steps li.done .setup-txt b { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.setup-tick { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: 0 0 auto; }
.setup-steps li.done .setup-tick { background: var(--ok); color: #fff; }
.setup-txt { flex: 1; min-width: 12rem; display: flex; flex-direction: column; }
.setup-txt small { color: var(--muted); font-size: .82rem; }

.link-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: 1rem; }
.link-card { display: flex; align-items: center; gap: .8rem; color: inherit; text-decoration: none !important; margin: 0; transition: border-color .15s, transform .15s; }
.link-card:hover { border-color: var(--brand); transform: translateY(-1px); }
.link-card > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.link-card small { color: var(--muted); }

.sync-row > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .6rem; }
.sync-row > summary::-webkit-details-marker { display: none; }
.sync-row > summary > .icon:last-child { margin-left: auto; color: var(--muted); transition: transform .15s; }
.sync-row[open] > summary > .icon:last-child { transform: rotate(180deg); }
.sync-row[open] > summary { margin-bottom: .75rem; }
.sync-body .card-sub { margin-top: 0; }

.week-grid { display: grid; gap: 2px; overflow-x: auto; }
.week-row { display: grid; grid-template-columns: minmax(160px, 1.6fr) repeat(7, minmax(78px, 1fr)) 28px; align-items: center; gap: .35rem; padding: .45rem .5rem; border-radius: 10px; color: inherit; text-decoration: none !important; min-width: 760px; }
a.week-row:hover { background: var(--surface-2); }
.week-head { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.week-row > span.on, .week-row > span.off { font-size: .8rem; text-align: center; padding: .3rem .2rem; border-radius: 8px; white-space: nowrap; }
.week-row > span.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.week-row > span.off { color: var(--muted); background: var(--surface-2); }
.week-row .cell-main { display: flex; align-items: center; gap: .5rem; }

/* Studio rent (admin) */
.week-prices { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .5rem .75rem; }
.week-prices label { margin-top: 0; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; margin: .75rem 0; }
.photo-grid figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.photo-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-grid figcaption { display: flex; justify-content: space-between; gap: .25rem; padding: .3rem .5rem; }
.photo-grid figcaption .check { margin: 0; }
.photo-add-btn { cursor: pointer; }
.photo-new { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.photo-new img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
/* Location rent on the Locations page: the switch strip and the centred popup. */
.rent-strip { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .75rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.rent-strip .switch { margin: 0; }
.rent-switch { margin: 0; }
.rent-summary { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--muted); flex-wrap: wrap; }
.rent-summary img { width: 44px; height: 33px; object-fit: cover; border-radius: 6px; }
body.modal-open { overflow: hidden; }
.rent-modal { align-items: center; padding: 3vh 1rem; }
.rent-modal[hidden] { display: none; }
.rent-dialog { width: min(760px, 100%); max-height: 94vh; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.rent-dialog-head { display: flex; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem .6rem; border-bottom: 1px solid var(--line); }
.rent-dialog-head h2 { margin: 0 0 .25rem; }
.rent-dialog-head p { margin: 0 0 .4rem; }
.rent-dialog-body { overflow: auto; padding: 1rem 1.4rem; display: grid; gap: .9rem; background: var(--bg); }
.rent-dialog-body .card { margin: 0; }
.rent-dialog-body h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.rent-dialog-foot { display: flex; justify-content: flex-end; gap: .5rem; padding: .8rem 1.4rem; border-top: 1px solid var(--line); background: #fff; }
@media (max-width: 600px) { .rent-modal { padding: 0; } .rent-dialog { max-height: 100vh; height: 100%; border-radius: 0; } }
.slot-grid { display: flex; flex-wrap: wrap; gap: .4rem; margin: .35rem 0 .5rem; }
.slot-grid .slot { padding: .45rem .8rem; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font: inherit; font-weight: 600; cursor: pointer; }
.slot-grid .slot.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Studio rent on the booking page (step-by-step designs) */
.opt.choice { justify-content: flex-start; }
.opt.choice > span:first-of-type { flex: 1; }
.opt .choice-img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; }
.bk-fresh #bk-body > .opt.choice .choice-img { width: 100%; height: 120px; border-radius: 16px; }
.rent-photos { display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x mandatory; margin: .25rem 0 .75rem; padding-bottom: .25rem; }
.rent-photos img { flex: none; width: min(78%, 320px); aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; scroll-snap-align: start; }
.rent-photos img:only-child { width: 100%; aspect-ratio: 16 / 9; }
.rent-desc { white-space: normal; color: var(--muted); margin: 0 0 .5rem; }
.rent-h { font-size: 1rem; margin: 1rem 0 .4rem; }
.times.lengths { grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); }
.times.lengths button { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .5rem 0; }
.times.lengths button small { font-weight: 500; opacity: .75; }
.st-kind-img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; }
.st-kind .st-kind-price { color: var(--brand); font-weight: 600; }
.st-step .times.lengths button small { display: block; }
body.design-noir .st-step .times.lengths button small { opacity: .8; }

/* ---------- Events: the third choice on the booking page ---------- */
.choice-ev, .st-kind-ev { flex: none; width: 64px; height: 64px; border-radius: 12px; display: grid; place-content: center; text-align: center; background: var(--brand-soft, color-mix(in srgb, var(--brand) 12%, #fff)); color: var(--brand); font-weight: 800; font-size: 1.45rem; line-height: 1; }
.choice-ev small, .st-kind-ev small { display: block; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; margin-top: .2rem; }
.st-kind-ev { width: 56px; height: 56px; font-size: 1.3rem; }
.bk-fresh #bk-body > .opt.choice .choice-ev { width: 100%; height: 120px; font-size: 2.2rem; border-radius: 16px; }
.opt.choice > span.choice-ev { flex: none; }
.opt.choice > span.choice-ev + span { flex: 1; }
@media (max-width: 520px) { .bk-fresh #bk-body > .opt.choice .choice-img, .bk-fresh #bk-body > .opt.choice .choice-ev { width: 64px; height: 64px; font-size: 1.4rem; border-radius: 12px; } }
.bk-ev-teaser { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bk-ev-price { font-weight: 700; white-space: nowrap; }
.st-ev-list { margin-top: 1rem; }
.st-grid.is-events { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 560px) { .st-head { flex-wrap: wrap; } .st-pick { flex-basis: 100%; text-align: left; padding-left: calc(30px + .8rem); margin-top: -.5rem; } .st-pick:empty { display: none; } }
#bk-body .bk-ev-list { margin-bottom: .5rem; }

/* Event page: rich description and FAQ */
.rich > :first-child { margin-top: 0; }
.rich > :last-child { margin-bottom: 0; }
.rich h3 { font-size: 1.12rem; margin: 1.1rem 0 .4rem; }
.rich h4 { font-size: 1rem; margin: 1rem 0 .3rem; }
.rich p { margin: 0 0 .7rem; }
.rich ul, .rich ol { margin: 0 0 .7rem; padding-left: 1.3rem; }
.rich li { margin: .15rem 0; }
.rich blockquote { margin: 0 0 .7rem; padding-left: .9rem; border-left: 3px solid var(--line-2); color: var(--muted); }
.ev-desc.rich { margin: 1rem 0 0; line-height: 1.6; }
.ev-faq h2 { margin: 0 0 .5rem; }
.ev-faq details { border-top: 1px solid var(--line); }
.ev-faq details:first-of-type { border-top: 0; }
.ev-faq summary { cursor: pointer; list-style: none; padding: .8rem 1.6rem .8rem 0; font-weight: 700; position: relative; }
.ev-faq summary::-webkit-details-marker { display: none; }
.ev-faq summary::after { content: '+'; position: absolute; right: .2rem; top: .7rem; font-size: 1.2rem; font-weight: 400; color: var(--muted); }
.ev-faq details[open] summary::after { content: '−'; }
.ev-faq-a { padding: 0 0 .9rem; color: var(--ink-2, inherit); line-height: 1.55; }
.req { color: var(--bad, #c0392b); }

/* Salon app: FAQ and sign-up questions on the event page */
.xt-list { list-style: none; margin: 0; padding: 0; }
.xt-list li { display: flex; align-items: center; gap: .6rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.xt-list li:first-child { border-top: 0; }
.xt-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.xt-clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xt-tools { display: flex; gap: .1rem; flex: none; }
.xt-tools form { margin: 0; }
.xt-gap { width: 32px; }
.xt-h { font-size: .95rem; margin: 1rem 0 .3rem; }
.xt-pick { display: grid; gap: .1rem; max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .3rem .6rem; }
.xt-pick-row { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; border-top: 1px solid var(--line); }
.xt-pick-row:first-child { border-top: 0; }
.xt-pick-row > .check:first-child { flex: 1 1 auto; display: flex; gap: .5rem; align-items: flex-start; }
.xt-pick-row > .check:first-child > span { display: flex; flex-direction: column; }
.xt-type { margin-bottom: .3rem; }
@media (max-width: 560px) { .xt-list li { flex-wrap: wrap; } .ev-answers { padding-left: .25rem; } }

/* Rich text editor (assets/js/rte.js) */
.rte { border: 0; background: var(--surface); }
.rte-bar { display: flex; flex-wrap: wrap; gap: .15rem; padding: .3rem; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.rte-bar button { min-width: 2rem; height: 2rem; border: 0; border-radius: 8px; background: none; font: inherit; font-size: .9rem; font-weight: 700; color: var(--ink-2, var(--ink)); cursor: pointer; }
.rte-bar button:hover { background: var(--surface); }
.rte-bar button.on { background: var(--brand-soft); color: var(--brand); }
.rte-bar .rte-italic { font-style: italic; font-family: Georgia, serif; }
.rte-bar .rte-underline { text-decoration: underline; }
.rte-area { min-height: 9rem; max-height: 26rem; overflow: auto; padding: .65rem .8rem; outline: none; line-height: 1.55; }
.rte-area:focus { box-shadow: inset 0 0 0 2px var(--brand-soft); }
.rte-area > :first-child { margin-top: 0; }
.rte-area p { margin: 0 0 .6rem; }
.rte-area h3 { font-size: 1.1rem; margin: .8rem 0 .35rem; }
.rte-area ul, .rte-area ol { margin: 0 0 .6rem; padding-left: 1.3rem; }
.rte-area a { color: var(--brand); text-decoration: underline; }
.rte.is-empty .rte-area::before { content: attr(data-placeholder); color: var(--muted); pointer-events: none; position: absolute; }

/* ---------- Support: guides and "Still have questions?" ---------- */
.support-hero { background: linear-gradient(135deg, var(--brand-soft), #fff 70%); padding: 1.6rem 1.5rem; }
.support-hero h2 { font-size: 1.3rem; margin: 0 0 .8rem; }
.support-search input { font-size: 1.02rem; padding-top: .8rem; padding-bottom: .8rem; }
.support-results { margin-top: .9rem; display: grid; gap: .4rem; }
.support-results .group { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.support-hit { display: block; padding: .7rem .85rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.support-hit:hover, .support-hit:focus-visible { border-color: var(--brand); text-decoration: none; }
.support-hit b { display: block; margin: .1rem 0 .2rem; }
.support-hit p { margin: 0; font-size: .88rem; color: var(--ink-2); }
.support-hit mark, .support-hit b mark { background: #fff1b8; color: inherit; border-radius: 3px; padding: 0 1px; }
.support-none { margin: 0; }
.guide-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin-bottom: 1.5rem; }
.guide-card { display: flex; flex-direction: column; gap: .4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm); color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.guide-card:hover, .guide-card:focus-visible { text-decoration: none; border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.guide-card .bubble, .guide-head .bubble { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: 0 0 auto; }
.guide-card b { font-size: 1.02rem; margin-top: .3rem; }
.guide-card p { margin: 0; color: var(--muted); font-size: .9rem; flex: 1; }
.guide-meta { display: inline-flex; align-items: center; gap: .2rem; font-size: .8rem; color: var(--brand); font-weight: 600; }
.support-contact { scroll-margin-top: 5rem; }
.support-contact h2 .icon { vertical-align: -3px; color: var(--brand); }
.support-mine li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.support-mine li:last-child { border-bottom: 0; }
.support-mine li div { min-width: 0; flex: 1 1 auto; }
.support-mine li b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.guide-layout { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
@media (max-width: 1000px) { .guide-layout { grid-template-columns: minmax(0, 1fr); } }
.guide { padding: 1.6rem 1.8rem 1.2rem; max-width: 820px; line-height: 1.6; }
.guide-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.guide-head h1 { margin: 0; font-size: 1.6rem; line-height: 1.2; }
.guide-head p { margin: .35rem 0 0; color: var(--muted); }
.guide-head .guide-meta { display: flex; margin-top: .3rem; }
.guide section { scroll-margin-top: 5rem; border-top: 1px solid var(--line); padding-top: .4rem; margin-top: 1rem; }
.guide h2 { font-size: 1.12rem; margin: .8rem 0 .4rem; }
.guide h2 a { color: inherit; }
.guide h2 a:hover { color: var(--brand); text-decoration: none; }
.guide p { margin: .5rem 0; }
.guide ul, .guide ol { margin: .5rem 0; padding-left: 1.35rem; }
.guide li { margin: .25rem 0; }
.guide li::marker { color: var(--brand); font-weight: 700; }
.guide-tip { display: flex; gap: .6rem; align-items: flex-start; background: var(--brand-soft); border-radius: var(--radius-sm); padding: .7rem .9rem; margin: .8rem 0; }
.guide-tip .icon { color: var(--brand); flex: 0 0 auto; margin-top: .2rem; }
.guide-tip p { margin: 0; }
.guide-pager { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 1.4rem; padding-top: 1rem; }
.guide-pager .btn { white-space: normal; text-align: left; }
.guide-side { position: sticky; top: 4.5rem; }
.guide-side h3 { margin: 0 0 .5rem; font-size: .95rem; }
.guide-toc { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; font-size: .9rem; }
.guide-others a { display: flex; gap: .5rem; align-items: center; padding: .3rem 0; color: var(--ink-2); font-size: .92rem; }
.guide-others a .icon { color: var(--muted); }
.guide-others a:hover { color: var(--brand); text-decoration: none; }
.guide-ask { background: linear-gradient(135deg, var(--brand-soft), #fff); }
@media (max-width: 1000px) { .guide-side { position: static; } }
@media (max-width: 600px) { .guide { padding: 1.2rem 1.1rem 1rem; } .guide-head h1 { font-size: 1.35rem; } }
/* Platform admin inbox */
.sr-msg { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; margin: 0; font: inherit; }
.sr-shot img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); display: block; }
.sr-preview { color: var(--muted); font-size: .85rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.nav-count { margin-left: auto; background: var(--brand-2); color: #fff; border-radius: 99px; font-size: .72rem; font-weight: 700; padding: 0 .45rem; line-height: 1.35rem; min-width: 1.35rem; text-align: center; }
.side .help-nav { margin-top: auto; padding-top: .5rem; }
.side .help-nav + .foot-nav { margin-top: .35rem; }

/* Gift cards */
.gc-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; letter-spacing: .12em; background: var(--brand-soft); color: var(--brand); padding: .15rem .45rem; border-radius: 7px; }
.gc-code.lg { font-size: 1.1rem; vertical-align: middle; }
.gc-sell { max-width: 820px; display: grid; gap: 1rem; }
.gc-quick { margin-top: .45rem; }
.gc-code-row { display: flex; gap: .5rem; }
.gc-code-row input { text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.gc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem 1.25rem; margin: 1rem 0 0; }
.gc-facts dt { font-size: .78rem; color: var(--muted); font-weight: 600; }
.gc-facts dd { margin: .1rem 0 0; font-weight: 600; }
.gc-hero { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 1.5rem; align-items: center; margin-bottom: 1.25rem; }
.gc-face { --gc: #7a4cff; aspect-ratio: 1.6; border-radius: 18px; padding: 1.1rem 1.2rem; color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.28), transparent 55%), linear-gradient(135deg, var(--gc), color-mix(in srgb, var(--gc) 60%, #1b1230)); box-shadow: var(--shadow-lg); }
.gc-face-salon { font-weight: 750; font-size: 1rem; }
.gc-face-amount { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.gc-face-code { align-self: flex-start; background: #fff; color: #1b1230; border-radius: 8px; padding: .2rem .6rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; letter-spacing: .2em; }
.gc-hero .label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.gc-balance { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.gc-balance .muted { font-size: 1rem; font-weight: 600; }
.gc-hero .mini-bar { max-width: 360px; display: block; margin: .4rem 0 0; }
.gc-amt.plus { color: var(--ok); font-weight: 700; }
.gc-amt.minus { color: var(--ink); font-weight: 700; }
.gift-field input { text-transform: uppercase; letter-spacing: .14em; font-weight: 700; max-width: 12rem; }
.pay-gift { display: flex; align-items: center; gap: .4rem; font-weight: 650; }
@media (max-width: 720px) { .gc-hero { grid-template-columns: 1fr; } }
.gc-statement > summary { gap: .6rem; flex-wrap: wrap; }
.gc-statement .table-wrap { margin-top: .8rem; }
.gc-statement-foot { display: flex; gap: .6rem; justify-content: flex-end; align-items: center; flex-wrap: wrap; margin-top: .8rem; }
@media print { .sidebar, .topbar, .gc-statement-foot, .page-head .btn { display: none !important; } .gc-statement:not([open]) { display: none; } }

/* ---- Products: the catalog in the salon app ---------------------------------------- */
.pr-online { display: flex; align-items: flex-start; gap: .9rem; }
.pr-online .grow { flex: 1; min-width: 0; }
.pr-thumb { flex: none; width: 52px; height: 52px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); overflow: hidden; }
.pr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pr-thumb.lg { width: 132px; height: 132px; border-radius: 14px; }
.pr-photo { display: flex; gap: 1.1rem; align-items: center; }
.pr-photo .hint { margin: .5rem 0; }
.svc.pr.off { opacity: .6; }
@media (max-width: 560px) { .pr-photo { flex-direction: column; align-items: flex-start; } .svc.pr .langs { display: none; } }

/* ---- Products on the booking page (every design) ----------------------------------- */
.pc { --pc-card: var(--surface, #fff); --pc-line: var(--line); --pc-img: color-mix(in srgb, var(--brand) 6%, #f7f6f4); --pc-radius: 16px; --pc-head: inherit; margin: 2.6rem 0 0; }
.pc-head h2 { font-family: var(--pc-head); font-size: 1.45rem; margin: 0 0 .25rem; }
.pc-head p { color: var(--muted); margin: 0 0 1rem; max-width: 52ch; }
.pc-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.pc-chips button { font: inherit; font-size: .86rem; font-weight: 600; padding: .4rem .85rem; border-radius: 99px; border: 1px solid var(--pc-line); background: var(--pc-card); color: inherit; cursor: pointer; }
.pc-chips button small { color: var(--muted); font-weight: 500; margin-left: .15rem; }
.pc-chips button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pc-chips button.on small { color: rgba(255, 255, 255, .8); }
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.pc-card { display: flex; flex-direction: column; text-align: left; font: inherit; color: inherit; padding: 0; background: var(--pc-card); border: 1px solid var(--pc-line); border-radius: var(--pc-radius); overflow: hidden; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.pc-item { position: relative; display: flex; }
.pc-item > .pc-card { flex: 1; }
.pc-item[hidden] { display: none; }
.pc-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(22, 20, 43, .35); border-color: color-mix(in srgb, var(--brand) 30%, var(--pc-line)); }
.pc-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.pc-img { aspect-ratio: 1; background: var(--pc-img); display: grid; place-items: center; color: color-mix(in srgb, var(--brand) 45%, #b9b4ad); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; }
.pc-txt { display: flex; flex-direction: column; gap: .15rem; padding: .7rem .8rem .85rem; min-width: 0; }
.pc-brand { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pc-name { font-weight: 650; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-meta { display: flex; align-items: baseline; gap: .5rem; margin-top: .2rem; flex-wrap: wrap; }
.pc-price { font-weight: 750; color: var(--brand); }
.pc-size { font-size: .82rem; color: var(--muted); }
.pc-pop { width: min(720px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: 20px; background: var(--pc-card); color: inherit; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .45); overflow: auto; }
.pc-pop::backdrop { background: rgba(20, 18, 30, .5); backdrop-filter: blur(3px); }
.pc-pop-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.pc-pop-img { background: var(--pc-img); display: grid; place-items: center; min-height: 260px; color: color-mix(in srgb, var(--brand) 45%, #b9b4ad); }
.pc-pop-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; }
.pc-pop-txt { padding: 1.6rem 1.5rem 1.4rem; }
.pc-pop-txt h3 { font-family: var(--pc-head); font-size: 1.35rem; margin: .2rem 0 .3rem; padding-right: 1.5rem; }
.pc-pop-txt .pc-price { font-size: 1.15rem; }
.pc-desc { margin-top: .9rem; line-height: 1.55; color: var(--ink-2); }
.pc-note { display: flex; gap: .45rem; align-items: flex-start; margin: 1.1rem 0 0; padding: .7rem .85rem; border-radius: 12px; background: color-mix(in srgb, var(--brand) 8%, transparent); font-size: .88rem; }
.pc-note .icon { flex: none; margin-top: .1rem; color: var(--brand); }
.pc-x { position: absolute; top: .6rem; right: .6rem; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: #16142b; display: grid; place-items: center; cursor: pointer; z-index: 1; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
/* Basket and checkout */
.pc-add { position: absolute; top: .55rem; right: .55rem; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; color: var(--brand); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .3); transition: transform .12s; }
.pc-add:hover { transform: scale(1.08); background: var(--brand); color: #fff; }
.pc-add:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.pc-buy { display: flex; gap: .6rem; align-items: center; margin-top: 1.1rem; }
.pc-qty { display: inline-flex; align-items: center; border: 1px solid var(--pc-line); border-radius: 99px; overflow: hidden; flex: none; }
.pc-qty button { width: 36px; height: 38px; border: 0; background: none; color: inherit; font: inherit; font-size: 1.15rem; cursor: pointer; }
.pc-qty button:hover { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.pc-qty output { min-width: 1.6rem; text-align: center; font-weight: 700; }
.pc-btn { font: inherit; font-weight: 700; padding: .7rem 1.3rem; border-radius: 99px; border: 0; background: var(--brand); color: #fff; cursor: pointer; }
.pc-btn:hover { filter: brightness(1.06); }
.pc-btn:disabled { opacity: .6; cursor: wait; }
.pc-buy .pc-btn { flex: 1; }
.pc-bar { position: fixed; z-index: 50; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: .8rem; width: min(560px, calc(100vw - 2rem)); padding: .6rem .7rem .6rem .8rem; border: 0; border-radius: 99px; background: #16142b; color: #fff; font: inherit; cursor: pointer; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45); text-align: left; }
.pc-bar[hidden] { display: none; }
body.pc-has-basket { padding-bottom: 5.5rem; }
.pc-bar > span:nth-child(2) { flex: 1; }
.pc-bar-ic { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.pc-bar-ic b { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--brand); font-size: .72rem; display: grid; place-items: center; }
.pc-bar-go { display: inline-flex; align-items: center; gap: .2rem; padding: .55rem .95rem; border-radius: 99px; background: var(--brand); font-weight: 700; }
.pc-bar.bump { animation: pc-bump .35s ease; }
@keyframes pc-bump { 40% { transform: translateX(-50%) scale(1.05); } }
.pc-basket { width: min(560px, calc(100vw - 2rem)); }
.pc-co, .pc-done { padding: 1.5rem 1.4rem 1.3rem; }
.pc-co h3, .pc-done h3 { font-family: var(--pc-head); font-size: 1.35rem; margin: 0 0 .8rem; }
.pc-lines { list-style: none; margin: 0; padding: 0; }
.pc-lines li { display: flex; align-items: center; gap: .7rem; padding: .6rem 0; border-bottom: 1px solid var(--pc-line); }
.pc-l-img { flex: none; width: 46px; height: 46px; border-radius: 10px; overflow: hidden; background: var(--pc-img); }
.pc-l-img img { width: 100%; height: 100%; object-fit: cover; }
.pc-l-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pc-l-txt small { color: var(--muted); }
.pc-l-sum { min-width: 4.5rem; text-align: right; }
.pc-lines .pc-qty button { width: 30px; height: 32px; }
@media (max-width: 520px) {
  .pc-lines li { display: grid; grid-template-columns: 46px 1fr auto; grid-template-areas: "img txt txt" "img qty sum"; row-gap: .35rem; }
  .pc-l-img { grid-area: img; align-self: start; }
  .pc-l-txt { grid-area: txt; }
  .pc-lines .pc-qty { grid-area: qty; justify-self: start; }
  .pc-l-sum { grid-area: sum; min-width: 0; }
}
.pc-total { display: flex; justify-content: space-between; align-items: baseline; padding: .8rem 0 .2rem; font-size: 1.1rem; }
.pc-co label { display: block; margin-top: .7rem; }
.pc-co label > span, .pc-where legend { display: block; font-size: .85rem; font-weight: 650; margin-bottom: .25rem; }
.pc-co input:not([type=radio]), .pc-co textarea { width: 100%; box-sizing: border-box; font: inherit; color: inherit; padding: .65rem .8rem; border-radius: 12px; border: 1px solid var(--pc-line); background: var(--pc-card); }
.pc-co input:focus, .pc-co textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 50%, transparent); border-color: var(--brand); }
.pc-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.pc-row label { margin-top: .7rem; }
.pc-where { border: 0; padding: 0; margin: 1rem 0 0; }
.pc-loc { display: flex !important; gap: .6rem; align-items: flex-start; padding: .6rem .75rem; border: 1px solid var(--pc-line); border-radius: 12px; margin-top: .4rem !important; cursor: pointer; }
.pc-loc:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, transparent); }
.pc .pc-loc > span { display: flex; flex-direction: column; gap: .1rem; margin: 0; }
.pc-loc small { color: var(--muted); }
.pc-loc input { accent-color: var(--brand); margin-top: .25rem; }
.pc-where1 { display: flex; gap: .4rem; align-items: baseline; flex-wrap: wrap; margin: 1rem 0 0; }
.pc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pc-err { margin-top: .8rem; padding: .65rem .8rem; border-radius: 10px; background: #fdecec; color: #8d1f1f; }
.pc-err[hidden], .pc-empty[hidden], [data-pc-form][hidden], .pc-co[hidden], .pc-done[hidden] { display: none; }
.pc-send { width: 100%; margin-top: 1rem; padding: .85rem; font-size: 1.02rem; }
.pc-fine { text-align: center; color: var(--muted); font-size: .84rem; margin: .5rem 0 0; }
.pc-done { text-align: center; }
.pc-done-ic { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); margin-bottom: .6rem; }
.pc-done p { color: var(--ink-2); margin: 0 0 1.2rem; }
.pc-noir .pc-bar { background: #f2ece6; color: #141214; }
.pc-noir .pc-bar-ic { background: rgba(0, 0, 0, .08); }
.pc-noir .pc-err { background: #3a1d1d; color: #f6caca; }
.pc-noir .pc-add { background: #231f23; }
@media (max-width: 620px) {
  .pc-row { grid-template-columns: 1fr; gap: 0; }
  .pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .pc-pop-in { grid-template-columns: 1fr; }
  .pc-pop-img { min-height: 0; }
  .pc-pop-img img { max-height: 46vh; }
}
/* Design touches */
.pc-boutique { --pc-head: var(--bq-serif); --pc-radius: 20px; }
.pc-boutique .pc-head { text-align: center; }
.pc-boutique .pc-head h2 { font-weight: 500; font-size: 1.7rem; }
.pc-boutique .pc-head p { margin-inline: auto; }
.pc-boutique .pc-chips { justify-content: center; }
.pc-fresh { --pc-radius: 22px; }
.pc-fresh .pc-head h2 { font-size: 1.8rem; letter-spacing: -.02em; }
.pc-split .pc-head h2 { font-size: 1.6rem; letter-spacing: -.01em; }
.pc-studio, .pc-noir { margin: 3rem 0 2.5rem; }
.pc-studio { --pc-card: #fff; --pc-line: var(--st-line); }
.pc-studio .pc-grid, .pc-noir .pc-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.pc-noir { --pc-card: var(--st-card); --pc-line: var(--st-line); --pc-img: var(--st-card-2); --pc-head: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
.pc-noir .pc-head h2 { font-weight: 500; font-size: 1.8rem; }
.pc-noir .pc-price { color: color-mix(in srgb, var(--brand) 65%, #fff); }
.pc-noir .pc-pop::backdrop { background: rgba(0, 0, 0, .7); }
.pc-noir .pc-x { background: rgba(0, 0, 0, .55); color: #f2ece6; }
@media (max-width: 620px) { .pc-studio .pc-grid, .pc-noir .pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Product orders in the salon app ------------------------------------------------ */
form.inline { display: inline; margin: 0; }
.po-tabs { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: 1rem; }
.po-tabs a { padding: .45rem .9rem; border-radius: 99px; color: var(--ink-2); font-weight: 600; text-decoration: none; border: 1px solid var(--line); background: var(--surface); }
.po-tabs a.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.po-tabs a.on .badge { background: rgba(255, 255, 255, .25); color: #fff; }
.po-list { display: grid; gap: .6rem; }
.po-row { display: flex; align-items: center; gap: 1rem; padding: .85rem 1rem; margin: 0; }
.po-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 1rem; color: inherit; text-decoration: none !important; }
.po-no { font-weight: 750; color: var(--muted); min-width: 2.6rem; }
.po-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.po-sum { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; white-space: nowrap; }
.po-act { flex: none; }
.po-items { width: 100%; border-collapse: collapse; }
.po-items th, .po-items td { text-align: left; padding: .55rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.po-items .num { text-align: right; white-space: nowrap; }
.po-items tfoot th { border-bottom: 0; }
.po-note { background: var(--surface-2); border-radius: 10px; padding: .7rem .85rem; }
.po-log { padding-left: 1.1rem; margin: 0; }
.po-today li { display: flex; flex-direction: column; gap: .3rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.po-today .po-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.po-today .po-top a { color: inherit; }
.po-today li:last-child { border-bottom: 0; }
.po-today ul { list-style: none; margin: 0; padding: 0; }
@media (max-width: 640px) { .po-row { flex-direction: column; align-items: stretch; } .po-act { align-self: flex-end; } }
/* ---------- Early and late prices ---------- */
/* Time buttons on the booking page: early times warm (morning sun), late times cool
   (evening), each with its icon and price; a key above says what they mean. */
.times.priced button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .05rem; padding: .42rem 0 .38rem; line-height: 1.2; }
.times.priced .slot-p { display: inline-flex; align-items: center; gap: .2rem; font-size: .72rem; font-weight: 600; opacity: .7; }
.times button.band-early:not(.on) { background: #fff6e4; border-color: #f2d49b; color: #7a4a00; }
.times button.band-late:not(.on) { background: #f0f0ff; border-color: #cfd0f8; color: #33338f; }
.times button.band-early:not(.on):hover { border-color: #d99a26; }
.times button.band-late:not(.on):hover { border-color: #6d6de0; }
.times button.band-early .slot-p, .times button.band-late .slot-p { opacity: 1; }
.times button.band-early:not(.on) .slot-p { color: #b46a00; }
.times button.band-late:not(.on) .slot-p { color: #4a4ac4; }
.band-ico { flex: 0 0 auto; }
.band-key { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; margin: .7rem 0 0; font-size: .8rem; color: var(--muted); }
.band-key > span { display: inline-flex; align-items: center; gap: .3rem; }
.band-key-early, .band-key-late { font-weight: 650; }
.band-key-early { color: #b46a00; }
.band-key-late { color: #4a4ac4; }
.band-key-note { flex-basis: 100%; font-size: .76rem; }
.band-tag { display: inline-flex; align-items: center; gap: .25rem; padding: .05rem .45rem; border-radius: 99px; font-size: .74rem; font-weight: 650; white-space: nowrap; }
.band-tag.band-early { background: #fff1d6; color: #8f5600; }
.band-tag.band-late { background: #ebebff; color: #3a3aa6; }
.svc-bands { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .2rem; }
.st-step .times.priced button { padding: .42rem .2rem .38rem; }
.st-step .times button.band-early:not(.on) { background: #fff6e4; border-color: #f2d49b; }
.st-step .times button.band-late:not(.on) { background: #f0f0ff; border-color: #cfd0f8; }
.bk-fresh .times button.band-early:not(.on) { background: #fff3dc; box-shadow: 0 6px 16px -12px rgba(160, 100, 0, .45), inset 0 0 0 1px #f2d49b; }
.bk-fresh .times button.band-late:not(.on) { background: #eeeeff; box-shadow: 0 6px 16px -12px rgba(50, 50, 150, .45), inset 0 0 0 1px #cfd0f8; }
.bk-fresh .times.priced button { border-radius: 18px; }
.bk-boutique .times.priced button { border-radius: 18px; }
body.design-noir .st-step .times button.band-early:not(.on) { background: rgba(245, 181, 61, .1); border-color: rgba(245, 181, 61, .5); color: #f6d48f; }
body.design-noir .st-step .times button.band-late:not(.on) { background: rgba(150, 150, 255, .12); border-color: rgba(160, 160, 255, .5); color: #d0d0ff; }
body.design-noir .st-step .times button.band-early:not(.on) .slot-p { color: #f5b53d; }
body.design-noir .st-step .times button.band-late:not(.on) .slot-p { color: #a9a9ff; }
body.design-noir .band-key-early { color: #f5b53d; }
body.design-noir .band-key-late { color: #a9a9ff; }
body.design-noir .band-key { color: rgba(255, 255, 255, .65); }
body.design-noir .band-tag.band-early { background: rgba(245, 181, 61, .16); color: #f6d48f; }
body.design-noir .band-tag.band-late { background: rgba(150, 150, 255, .18); color: #d0d0ff; }

/* Calendar: early and late price times shaded in each specialist's column. */
.cal-band { position: absolute; left: 0; right: 0; pointer-events: none; }
.cal-band span { position: absolute; top: 2px; right: 4px; font-size: .6rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.cal-band-early { background: linear-gradient(180deg, rgba(255, 196, 92, .2), rgba(255, 196, 92, .1)); box-shadow: inset 3px 0 0 rgba(232, 160, 40, .55); }
.cal-band-early span { color: #b46a00; }
.cal-band-late { background: linear-gradient(180deg, rgba(120, 120, 240, .08), rgba(120, 120, 240, .16)); box-shadow: inset 3px 0 0 rgba(100, 100, 220, .5); }
.cal-band-late span { color: #4a4ac4; }
.cal-legend { display: inline-flex; align-items: center; gap: .35rem; margin-left: .6rem; }
.cal-key { display: inline-block; width: .7rem; height: .7rem; border-radius: 3px; vertical-align: -1px; }
.cal-key-early { background: #ffe2ad; box-shadow: inset 2px 0 0 #e8a028; }
.cal-key-late { background: #dcdcfb; box-shadow: inset 2px 0 0 #6464dc; margin-left: .4rem; }
.band-note { padding: .45rem .7rem; border-radius: var(--radius-sm); margin: .5rem 0 0; }
.band-note.band-early { background: #fff4de; color: #7a4a00; }
.band-note.band-late { background: #efefff; color: #33338f; }
.move-price { border: 0; padding: 0; margin: 0 0 .9rem; }
.move-price legend { font-weight: 650; margin-bottom: .35rem; }
.radio-card { display: flex; align-items: flex-start; gap: .6rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: .6rem .75rem; margin: .4rem 0; cursor: pointer; }
.radio-card input { width: auto; margin-top: .25rem; }
.radio-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.band-row-early .progress > span { background: #e8a028; }
.band-row-late .progress > span { background: #6464dc; }
.band-dist .dist-row { grid-template-columns: minmax(7rem, 9rem) 1fr minmax(9rem, auto); }
.band-dist .num { text-align: right; white-space: nowrap; }

/* ---------- Business details popup (after login, until name and mobile are saved) ---------- */
.bd-bg { z-index: 200; align-items: center; backdrop-filter: blur(3px); }
.bd-modal { padding: 0; width: min(560px, 100%); }
.bd-modal header { padding: 1.4rem 1.6rem 1.1rem; border-bottom: 1px solid var(--line); }
.bd-modal header h2 { margin: 0; font-size: 1.4rem; }
.bd-modal .bd-body { padding: .4rem 1.6rem 1.4rem; }
.bd-modal .bd-body > p.muted { margin: .9rem 0 .4rem; line-height: 1.55; }
.bd-modal .flash { margin: .8rem 0 0; }
.bd-modal .flash ul { margin: 0; padding-left: 1.1rem; }
.bd-modal footer { padding: 1rem 1.6rem; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
.bd-phone { display: flex; gap: .6rem; }
.bd-phone select { flex: 0 0 8.2rem; width: 8.2rem; }
.bd-phone input { flex: 1; min-width: 0; }
@media (max-width: 480px) {
  .bd-bg { align-items: flex-start; padding: 1rem .75rem; }
  .bd-modal header, .bd-modal .bd-body, .bd-modal footer { padding-left: 1.1rem; padding-right: 1.1rem; }
  .bd-modal footer .btn { flex: 1; justify-content: center; }
  .bd-phone select { flex-basis: 6.8rem; width: 6.8rem; }
}

/* ---------- Booking design: Atelier (the one-page form: centred title, pills, team cards) ---------- */
/* Fonts are self-hosted (OFL, see assets/fonts/OFL.txt) and only load on this design. */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-garamond-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-garamond-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/cormorant-garamond-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/cormorant-garamond-cyrillic-600-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/cormorant-garamond-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/cormorant-garamond-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Great Vibes'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/great-vibes-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Great Vibes'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/great-vibes-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Great Vibes'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/great-vibes-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

body.design-atelier {
  --at-serif: 'Cormorant Garamond', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --at-script: 'Great Vibes', 'Snell Roundhand', 'Segoe Script', cursive;
  --at-ink: #2b2627;
  --at-rose: color-mix(in srgb, var(--brand) 72%, #3a1020);      /* script and names */
  --at-blush: color-mix(in srgb, var(--brand) 8%, #fff);         /* summary card */
  --at-line: color-mix(in srgb, var(--brand) 32%, #fff);         /* pills and fields */
  --at-band: color-mix(in srgb, var(--brand) 40%, #9a8c8d);      /* top band and footer */
  --st-bg: #fff; --st-line: color-mix(in srgb, var(--brand) 22%, #fff); --st-ink: var(--at-ink);
  background: #fff; color: var(--at-ink);
}
.at-band { background: var(--at-band); color: #fff; }
.at-band-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.at-langs { display: flex; gap: .15rem; flex-wrap: wrap; justify-content: flex-end; }
.at-langs a { color: #fff; text-decoration: none; padding: .25rem .5rem; border-radius: 99px; letter-spacing: .08em; }
.at-langs a:hover { background: rgba(255, 255, 255, .18); }
.at-langs a.on { background: #fff; color: var(--at-ink); }
.at-head { display: flex; justify-content: center; padding: 2rem 1.25rem 0; }
.at-brand { display: flex; align-items: center; gap: .7rem; font-family: var(--at-serif); font-size: 2.1rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); text-align: center; }
.at-brand .bk-logo { width: 48px; height: 48px; border-radius: 50%; font-family: inherit; font-size: 1.15rem; letter-spacing: 0; box-shadow: none; }
.at-brand .bk-logo-img { max-height: 72px; max-width: 320px; }
.at-brand:has(.bk-logo-img) > span { display: none; }
.at-hero { text-align: center; padding: 3.2rem 0 2.6rem; }
.at-hero .st-wrap { display: flex; flex-direction: column; align-items: center; }
body.design-atelier .at-hero h1 { font-family: var(--at-serif); font-weight: 500; font-size: clamp(2.8rem, 6vw, 4.4rem); line-height: 1.05; letter-spacing: 0; max-width: none; margin: 0; color: var(--at-ink); }
body.design-atelier .at-hero .st-script { font-family: var(--at-script); font-size: clamp(2rem, 4vw, 2.9rem); color: var(--at-rose); margin: .5rem 0 0; line-height: 1.2; }
body.design-atelier .at-hero .st-lead { margin: 1.2rem auto 0; text-align: center; color: #6b6264; }

/* Steps: no boxes, just numbered serif headings ("1. Choose services"). */
body.design-atelier .st-grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 3rem; }
body.design-atelier .st-steps { gap: 2.4rem; }
body.design-atelier .st-step, body.design-atelier .st-card { background: transparent; border: 0; border-radius: 0; padding: 0; }
body.design-atelier .st-card { padding: 1.4rem 1.6rem; background: var(--at-blush); border-radius: 22px; }
body.design-atelier .st-head { gap: .35rem; align-items: baseline; }
body.design-atelier .st-num { display: inline; width: auto; height: auto; background: none !important; color: var(--at-ink) !important; border-radius: 0; font-family: var(--at-serif); font-size: 1.9rem; font-weight: 500; }
body.design-atelier .st-num::after { content: "."; }
body.design-atelier .st-head h2 { font-family: var(--at-serif); font-size: 1.9rem; font-weight: 500; line-height: 1.2; }
body.design-atelier .st-pick { font-size: .85rem; color: var(--at-rose); font-weight: 500; }
body.design-atelier .st-step.is-locked { border: 0; padding: 0; }
body.design-atelier .st-step.is-locked .st-head { opacity: .38; }
body.design-atelier .st-body { margin-top: 1.1rem; }
body.design-atelier .st-note { color: #7a7072; }
body.design-atelier .st-cat { color: #8a7f81; letter-spacing: .12em; }
body.design-atelier .st-price { color: var(--at-ink); }
body.design-atelier .st-opt { background: #fff; border-color: var(--st-line); }
body.design-atelier .st-opt:hover { border-color: var(--at-line); }
body.design-atelier .st-opt.on { background: var(--at-blush); border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }

/* Services as pills: dark when chosen, details below. */
.at-pills { display: flex; flex-wrap: wrap; gap: .6rem; }
.at-pill { position: relative; display: inline-flex; align-items: baseline; gap: .5rem; margin: 0; padding: .78rem 1.35rem; border: 1px solid var(--at-line); border-radius: 99px; background: #fff; color: var(--at-ink); font-size: .98rem; font-weight: 500; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.at-pill small { font-size: .8rem; font-weight: 500; color: #8a7f81; }
.at-pill:hover { border-color: var(--brand); }
.at-pill.on { background: var(--at-ink); border-color: var(--at-ink); color: #fff; }
.at-pill.on small { color: rgba(255, 255, 255, .7); }
.at-pill input { position: absolute; opacity: 0; pointer-events: none; }
.at-pill:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.at-chosen { margin-top: 1rem; display: grid; gap: .5rem; }
.at-chosen-row { display: flex; gap: 1rem; align-items: flex-start; padding: .85rem 1.1rem; border-radius: 16px; background: var(--at-blush); }
.at-chosen-main { flex: 1; display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.at-chosen-main b { font-weight: 600; }
.at-chosen .meta { font-size: .85rem; color: #7a7072; }

/* The team as tall cards with a round monogram and a handwritten name. */
.at-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.at-person { display: flex; flex-direction: column; align-items: center; gap: .55rem; padding: 1.2rem .8rem 1.4rem; border: 1.5px solid var(--st-line); border-radius: 16px; background: #fff; color: inherit; font: inherit; cursor: pointer; text-align: center; transition: border-color .15s, box-shadow .15s, transform .15s; min-height: 200px; }
.at-person:hover { border-color: var(--at-line); transform: translateY(-2px); }
.at-person.on { border-color: var(--brand); box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--brand) 70%, #000); }
.at-person:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.at-mono { width: 94px; height: 94px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, color-mix(in srgb, var(--brand) 22%, #fff), color-mix(in srgb, var(--brand) 9%, #fff)); color: var(--at-rose); font-family: var(--at-script); font-size: 3rem; line-height: 1; flex: 0 0 auto; padding-top: .15em; }
.at-any .at-mono { font-size: 1.9rem; background: color-mix(in srgb, var(--brand) 10%, #fff); }
.at-name { font-family: var(--at-script); font-size: 2rem; line-height: 1.05; color: var(--at-rose); overflow-wrap: anywhere; }
.at-person .meta { font-size: .8rem; color: #7a7072; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Date and time: an outlined calendar and outlined time pills. */
body.design-atelier .st-cal { border: 1px solid var(--at-line); border-radius: 18px; padding: 1rem 1.1rem 1.1rem; }
body.design-atelier .st-cal-head b { font-family: var(--at-serif); font-size: 1.3rem; font-weight: 600; }
body.design-atelier .st-nav { border-color: var(--at-line); }
body.design-atelier .st-cal-grid button.on { background: var(--at-ink); color: #fff; }
body.design-atelier .st-step .times { grid-template-columns: repeat(auto-fill, minmax(5.4rem, 1fr)); gap: .6rem; }
body.design-atelier .st-step .times button { border-color: var(--at-line); font-weight: 500; padding: .75rem 0; }
body.design-atelier .st-step .times button:hover:not(.on) { color: inherit; border-color: var(--brand); }
body.design-atelier .st-step .times button.on { background: var(--at-ink); border-color: var(--at-ink); color: #fff; }

/* Your details: label above, soft rose outlines. */
body.design-atelier .st-step label:not(.check):not(.at-pill) { font-weight: 500; color: var(--at-ink); font-size: .88rem; }
body.design-atelier .st-step input[type=text], body.design-atelier .st-step input[type=email], body.design-atelier .st-step input[type=tel], body.design-atelier .st-step textarea { border-color: var(--at-line); border-radius: 8px; padding: .8rem .9rem; }
body.design-atelier .st-step input:focus, body.design-atelier .st-step textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
body.design-atelier .st-book { letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; }

/* The summary: a blush card with a serif heading and a rose pill button. */
body.design-atelier .st-sum { background: var(--at-blush); border: 0; border-radius: 22px; padding: 1.8rem 1.8rem 1.6rem; }
.at-sum-title { font-family: var(--at-serif); font-size: 1.9rem; font-weight: 500; margin: 0 0 .8rem; }
body.design-atelier .st-sum-row { border-bottom: 0; padding: .45rem 0; }
body.design-atelier .st-sum-row > span:first-child { color: #6b6264; }
body.design-atelier .st-sum-row > span:last-child { font-weight: 600; }
body.design-atelier .st-total { border-top: 1px solid var(--at-line); margin-top: .4rem; padding-top: .8rem; }
body.design-atelier .btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--brand) 80%, #000); }
body.design-atelier .st-sum-go { margin-top: 1.2rem; padding: .95rem 1rem; letter-spacing: .16em; text-transform: uppercase; font-size: .82rem; font-weight: 600; }
.at-sum-note { color: #5f5658; margin: .9rem 0 0; line-height: 1.55; }
.at-sum-note a { color: inherit; }

/* Footer: centred lines on the muted band colour. */
body.design-atelier .st-foot { background: var(--at-band); padding: 2.2rem 0; }
body.design-atelier .st-foot .st-wrap { flex-direction: column; align-items: center; text-align: center; gap: .5rem; letter-spacing: 0; text-transform: none; font-size: .95rem; }
body.design-atelier .st-foot a { text-decoration: none; }
body.design-atelier .st-foot .small a { text-decoration: underline; }

@media (max-width: 900px) {
  body.design-atelier .st-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  body.design-atelier .st-sum { border-radius: 18px 18px 0 0; padding: .8rem 1.25rem; box-shadow: 0 -10px 30px -14px rgba(60, 30, 40, .35); }
  body.design-atelier .st-sum .at-sum-title, body.design-atelier .st-sum .at-sum-note { display: none; }
  body.design-atelier .st-sum-go { margin: 0; padding: .8rem 1.3rem; }
  body.design-atelier .st-total { border-top: 0; margin: 0; padding: 0; }
}
@media (max-width: 620px) {
  .at-band-note { display: none; }
  .at-band-in { justify-content: center; }
  .at-head { padding-top: 1.4rem; }
  .at-brand { font-size: 1.6rem; }
  .at-hero { padding: 1.8rem 0 1.6rem; }
  body.design-atelier .st-head h2, body.design-atelier .st-num { font-size: 1.6rem; }
  body.design-atelier .st-head { flex-wrap: wrap; row-gap: .1rem; }
  body.design-atelier .st-pick { flex-basis: 100%; text-align: left; padding-left: 0; margin-top: 0; }
  body.design-atelier .st-steps { gap: 2rem; }
  .at-team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .at-person { min-height: 0; padding: 1rem .6rem 1.1rem; }
  .at-mono { width: 76px; height: 76px; font-size: 2.5rem; }
  .at-any .at-mono { font-size: 1.6rem; }
  .at-name { font-size: 1.75rem; }
  .at-pill { padding: .68rem 1.1rem; }
}
body.design-atelier.embed .at-band, body.design-atelier.embed .at-head, body.design-atelier.embed .st-foot { display: none; }

/* Its picture in Settings: centred title, pills, cards and a blush summary. */
.design-thumb-atelier { background: #fff; }
.design-thumb-atelier i:nth-child(1) { left: 0; right: 0; top: 0; height: 7px; border-radius: 0; background: color-mix(in srgb, var(--brand) 40%, #9a8c8d); box-shadow: none; }
.design-thumb-atelier i:nth-child(2) { left: 36%; right: 36%; top: 16px; height: 9px; background: #2b2627; }
.design-thumb-atelier i:nth-child(3) { left: 8%; width: 54%; top: 36px; height: 44px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--brand) 30%, #fff); box-shadow: none; }
.design-thumb-atelier i:nth-child(4) { right: 8%; width: 26%; top: 36px; height: 34px; background: color-mix(in srgb, var(--brand) 12%, #fff); box-shadow: none; }
body.design-atelier .st-aside { top: 24px; }
body.design-atelier .pc-head h2 { font-family: var(--at-serif); font-weight: 500; font-size: 2.2rem; letter-spacing: 0; }
body.design-atelier .st-step .segmented { background: var(--at-blush); }
body.design-atelier { --brand-soft: color-mix(in srgb, var(--brand) 12%, #fff); }

/* ---------- Booking pages: the salon's second colour (borders, lines, soft backgrounds) ----------
   Only when the salon picked one (body.has-accent, --accent set in layouts/booking.php);
   otherwise every design mixes these from the main colour as before. */
body.has-accent {
  --line: var(--accent); --line-2: var(--accent);
  --brand-soft: color-mix(in srgb, var(--accent) 22%, #fff);
  --st-line: var(--accent);
  --at-line: var(--accent); --at-blush: color-mix(in srgb, var(--accent) 16%, #fff);
}
body.has-accent .bk-boutique .opt { border-color: var(--accent); }
body.has-accent .bk-boutique .summary { background: color-mix(in srgb, var(--accent) 14%, #fff); border-color: var(--accent); }
body.has-accent .bk-fresh input[type=text], body.has-accent .bk-fresh input[type=email], body.has-accent .bk-fresh input[type=tel] { border-color: var(--accent); }
body.has-accent .st-box { border-color: var(--accent); }
body.has-accent .st-cal-grid button.today { box-shadow: inset 0 0 0 1px var(--accent); }
body.has-accent .st-cal-grid button:hover:not(:disabled):not(.on) { background: color-mix(in srgb, var(--accent) 30%, #fff); }
body.has-accent .at-mono { background: color-mix(in srgb, var(--accent) 35%, #fff); }
/* Noir is dark: its lines and soft backgrounds are the second colour dimmed into the dark. */
body.design-noir.has-accent { --st-line: color-mix(in srgb, var(--accent) 40%, #141214); --line: color-mix(in srgb, var(--accent) 40%, #141214); --line-2: color-mix(in srgb, var(--accent) 55%, #141214); --brand-soft: color-mix(in srgb, var(--accent) 20%, #141214); }
body.design-noir.has-accent .st-box, body.design-noir.has-accent .st-nav, body.design-noir.has-accent .st-step .times button { border-color: color-mix(in srgb, var(--accent) 55%, #141214); }
body.design-noir.has-accent .st-cal-grid button:hover:not(:disabled):not(.on) { background: color-mix(in srgb, var(--accent) 25%, #1c191c); }

/* Atelier: the floating "Services: 2 · 1 h 30 min · €95.00 [Continue]" bar on computers. It sticks
   to the bottom of the screen while the steps scroll and rests under the last step. */
.at-float { position: sticky; bottom: 18px; z-index: 12; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: -1rem; padding: .7rem .75rem .7rem 1.6rem; background: #fff; border: 1px solid var(--at-line); border-radius: 99px; box-shadow: 0 16px 40px -18px rgba(60, 30, 40, .45); font-weight: 600; }
.at-float[hidden] { display: none; }
.at-float-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.at-float-go { flex: 0 0 auto; border-radius: 99px; padding: .8rem 1.8rem; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }
@media (max-width: 900px) { .at-float { display: none; } }

/* ---------- Settings: modules ---------- */
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .75rem; margin: 1rem 0 .25rem; }
.module-tile { margin: 0; font-size: .93rem; font-weight: 400; color: var(--ink); display: flex; align-items: flex-start; gap: .8rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.module-tile:hover { border-color: var(--line-2); }
.module-tile.on { background: var(--surface); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: var(--shadow-sm); }
.module-tile:not(.on) .bubble-sm { background: #efeef6; color: var(--muted); }
.module-tile:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(109, 74, 255, .2); }
.module-text { flex: 1; display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.module-text b { font-size: .95rem; }
.module-text small { color: var(--muted); line-height: 1.4; font-weight: 400; }
.module-off-note { display: none; color: var(--warn) !important; }
.module-off-note .icon { vertical-align: -2px; }
.module-tile:not(.on) .module-off-note { display: block; }
.module-switch { margin: .1rem 0 0; }
.module-tile input:disabled + span { opacity: .55; }
@media (max-width: 640px) { .module-grid { grid-template-columns: 1fr; } }
/* ---------- Visit photos (assets/js/photos.js): booking pages, the client's page and the salon app ---------- */
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .5rem; margin-top: .45rem; max-width: 560px; }
.ph { position: relative; margin: 0; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--brand-soft); }
.ph-img { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.ph-img:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph.busy img { opacity: .45; }
.ph-x { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(20, 16, 24, .72); color: #fff; font-size: .78rem; line-height: 1; cursor: pointer; padding: 0; }
.ph-x:hover { background: #c0392b; }
.ph-spin { position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .7); border-top-color: var(--brand); animation: ph-spin .8s linear infinite; }
@keyframes ph-spin { to { transform: rotate(360deg); } }
.ph-add { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; margin: 0; border: 1.5px dashed color-mix(in srgb, var(--brand) 55%, transparent); border-radius: 12px; color: var(--brand); font-weight: 600; font-size: .8rem; text-align: center; cursor: pointer; padding: .3rem; transition: background .15s; }
.ph-add:hover, .ph-add:focus-within { background: var(--brand-soft); }
.ph-add small { font-weight: 500; opacity: .75; font-size: .72rem; }
.ph-add input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ph-err { color: #c0392b; font-size: .85rem; margin: .4rem 0 0; }
.bk-photos { margin: .9rem 0 .4rem; }
.bk-photos > label { margin-bottom: 0; }
.bk-photos .hint { margin: .15rem 0 0; }
.ph-view { position: fixed; inset: 0; z-index: 1000; background: rgba(12, 10, 14, .9); display: grid; place-items: center; padding: 1rem; cursor: zoom-out; }
.ph-view img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.ph-view-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.1rem; cursor: pointer; }
/* A visit in the history: what the client asked for, then what the specialist wrote. */
.visit { border-top: 1px solid var(--line); padding: 1rem 0 .2rem; }
.visit:first-of-type { border-top: 0; padding-top: .2rem; }
.visit-head { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; flex-wrap: wrap; }
.visit-head b { font-size: 1rem; }
.visit-part { margin-top: .7rem; }
.visit-part h3 { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 .25rem; font-weight: 700; }
.visit-part p { margin: 0; white-space: pre-line; }
.visit-part.from-staff { background: var(--brand-soft); border-radius: 12px; padding: .75rem .85rem; }
.visit-part.from-staff h3 { color: var(--brand); }
.timeline .visit-mini { margin-top: .4rem; }
.timeline .visit-mini .ph-grid { grid-template-columns: repeat(auto-fill, minmax(56px, 64px)); gap: .35rem; }
.timeline .visit-mini .ph { border-radius: 8px; }
.timeline .visit-mini p { margin: .2rem 0 0; font-size: .88rem; white-space: pre-line; }
.timeline .visit-mini p .icon { vertical-align: -2px; color: var(--brand); }

/* ---- Client card: history and emails in one conversation -------------------------- */
.client-layout { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1000px) { .client-layout { grid-template-columns: minmax(0, 1fr); } }
.convo { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.convo-head { display: flex; gap: .75rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 1.1rem 1.35rem .9rem; border-bottom: 1px solid var(--line); }
.convo-head h2 { margin: 0; }
.convo-head .chip { padding: .3rem .7rem; }
.convo-feed { max-height: min(72vh, 820px); overflow-y: auto; padding: .5rem 1.35rem 1.25rem; background:
  radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--brand) 5%, transparent) 0, transparent 40%),
  radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--brand-2) 5%, transparent) 0, transparent 45%), var(--surface-2); }
.convo-feed .empty { padding: 2.5rem 0; }
.convo-day { text-align: center; margin: .9rem 0 .6rem; pointer-events: none; }
.convo-day span { display: inline-block; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 99px; padding: .15rem .7rem; font-size: .75rem; font-weight: 650; color: var(--muted); }
.convo-off { padding: .9rem 1.35rem; margin: 0; border-top: 1px solid var(--line); }

/* Booking events: a thin line down the left, a dot per event. */
.ev { position: relative; display: flex; gap: .7rem; align-items: flex-start; margin: .35rem 0; padding-left: .1rem; font-size: .9rem; }
.ev-dot { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.ev-dot.ok { background: var(--ok-soft); color: var(--ok); }
.ev-dot.bad { background: var(--bad-soft); color: var(--bad); }
.ev-dot.info { background: var(--info-soft); color: var(--info); }
.ev-small .ev-dot { width: 22px; height: 22px; margin-left: 3px; }
.ev-small .ev-line { padding-top: .1rem; color: var(--ink-2); }
.ev-card { flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .65rem .85rem; box-shadow: var(--shadow-sm); max-width: 560px; }
.ev-request .ev-card { border-left: 3px solid var(--brand); }
.ev-done .ev-card { border-left: 3px solid var(--ok); }
.ev-line { margin-bottom: .15rem; }
.ev-note { margin: .5rem 0 0; padding: .45rem .65rem; background: var(--surface-2); border-radius: 8px; font-size: .88rem; color: var(--ink-2); }
.ev-card [data-photos] { margin-top: .5rem; }

/* Emails: the salon's on the right, the client's on the left. */
.msg { display: flex; flex-direction: column; margin: .8rem 0; max-width: 78%; }
.msg.out { margin-left: auto; align-items: flex-end; }
.msg.in { align-items: flex-start; }
.msg-bubble { border-radius: 18px; padding: .7rem .95rem; box-shadow: var(--shadow-sm); min-width: 180px; max-width: 100%; overflow-wrap: anywhere; }
.msg.out .msg-bubble { background: var(--grad); color: #fff; border-bottom-right-radius: 6px; }
.msg.in .msg-bubble { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.unread .msg-bubble { border-color: color-mix(in srgb, var(--brand) 45%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent); }
.msg-subject { font-weight: 700; font-size: .85rem; display: flex; gap: .35rem; align-items: center; margin-bottom: .3rem; opacity: .95; }
.msg.in .msg-subject { color: var(--ink-2); }
.msg-body { line-height: 1.5; }
.msg-meta { font-size: .75rem; color: var(--muted); margin: .25rem .4rem 0; }
.msg-meta .bad { color: var(--bad); font-weight: 650; }
.msg-meta .warn { color: var(--warn); }
.msg-photos { margin-top: .55rem; }
.msg-full { margin-top: .55rem; font-size: .8rem; }
.msg-full summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.msg-full pre { white-space: pre-wrap; font: inherit; color: var(--ink-2); max-height: 320px; overflow: auto; background: var(--surface-2); border-radius: 8px; padding: .6rem; margin: .4rem 0 0; }
.msg-snapshot { margin-top: .65rem; padding: .55rem .7rem; border-radius: 10px; background: var(--brand-soft); font-size: .8rem; color: var(--ink-2); }
.msg-snapshot-title { display: flex; gap: .35rem; align-items: center; font-weight: 650; }
.msg-snapshot ul { margin: .35rem 0 0; padding-left: 1.2rem; }
.msg-snapshot li { margin: .1rem 0; }

/* The composer under the conversation. */
.composer { border-top: 1px solid var(--line); padding: .9rem 1.35rem 1.1rem; background: var(--surface); }
.composer > p { margin: 0; display: flex; gap: .4rem; align-items: center; }
.composer-to { font-size: .85rem; margin-bottom: .45rem; }
.composer input.composer-subject { font-weight: 650; margin-bottom: .45rem; }
.composer textarea { resize: vertical; min-height: 92px; }
.composer-foot { display: flex; gap: .75rem; align-items: center; justify-content: space-between; margin-top: .55rem; flex-wrap: wrap; }
@media (max-width: 600px) { .msg { max-width: 92%; } .convo-feed { padding: .5rem .8rem 1rem; } .convo-head, .composer { padding-left: .9rem; padding-right: .9rem; } }
.replies-today h2 { display: flex; gap: .45rem; align-items: center; }
.replies-today ul { list-style: none; margin: 0; padding: 0; }
.replies-today li a { display: flex; gap: .65rem; align-items: flex-start; padding: .55rem 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.replies-today li:first-child a { border-top: 0; }
.replies-today li a:hover b { color: var(--brand); }
.replies-today .what { display: flex; flex-direction: column; min-width: 0; }

/* ---------- Online payments (Payments): the choice on the booking pages, the payment page, settings ---------- */
.cal-ev.status-pending_payment { opacity: .8; border-left-style: dashed; background-image: repeating-linear-gradient(135deg, transparent, transparent 7px, rgba(255, 255, 255, .45) 7px, rgba(255, 255, 255, .45) 14px); }
.pay-choice { border: 0; padding: 0; margin: 1rem 0 .4rem; min-width: 0; }
.pay-choice legend { font-weight: 700; margin-bottom: .5rem; padding: 0; }
.pay-banks { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .5rem; }
.pay-bank, .pay-opt { position: relative; display: block; margin: 0; cursor: pointer; font-weight: 600; }
.pay-bank input, .pay-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pay-bank > span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; min-height: 74px; padding: .6rem .5rem; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; color: #16142b; text-align: center; transition: border-color .12s, box-shadow .12s; }
.pay-bank img { max-width: 92px; max-height: 30px; object-fit: contain; }
.pay-bank b { font-size: .78rem; font-weight: 600; line-height: 1.2; }
.pay-bank img + b { color: #77748f; }
.pay-by { margin: .35rem 0 .7rem; }
.pay-opts { display: grid; gap: .5rem; }
.pay-opt-body { display: flex; align-items: center; gap: .75rem; padding: .75rem .95rem; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); transition: border-color .12s, box-shadow .12s; }
.pay-opt-body small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; }
.pay-ic { flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); }
.pay-bank:hover > span, .pay-opt:hover .pay-opt-body { border-color: color-mix(in srgb, var(--brand) 45%, var(--line-2)); }
.pay-bank input:checked + span, .pay-opt input:checked + .pay-opt-body { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: color-mix(in srgb, var(--brand) 6%, #fff); }
.pay-opt input:checked + .pay-opt-body { background: color-mix(in srgb, var(--brand) 6%, var(--surface)); }
.pay-bank input:focus-visible + span, .pay-opt input:focus-visible + .pay-opt-body { outline: 2px solid var(--brand); outline-offset: 2px; }
.pay-state h2 { margin-top: .2rem; }
.pay-spinner { width: 34px; height: 34px; margin: .2rem 0 .8rem; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--brand) 20%, transparent); border-top-color: var(--brand); animation: pay-spin .9s linear infinite; }
@keyframes pay-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pay-spinner { animation-duration: 3s; } }
.pay-again { margin-top: 1rem; }
.pay-other { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.pay-other form { margin: 0; }
.pay-steps { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--ink-2); }
.pay-steps li { margin-bottom: .3rem; }
.pay-provider-head { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: .4rem; }
.pay-provider-head .grow { flex: 1; min-width: 0; }
.pay-provider-head h2 { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin-bottom: .2rem; }
.pay-provider.is-on { border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); }
.pay-logo { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; color: #fff; }
.pay-logo-montonio { background: linear-gradient(135deg, #5b3df5, #2b1a9c); }
.pay-logo-stripe { background: linear-gradient(135deg, #7a73ff, #4b45d6); }
.pay-logo-maksekeskus { background: linear-gradient(135deg, #2bb673, #128a52); }
.pay-logo-swedbank { background: linear-gradient(135deg, #ff7a00, #e0560b); }
.pay-logo-seb { background: linear-gradient(135deg, #41b549, #1f8a3b); }
.pay-logo-lhv { background: linear-gradient(135deg, #3a3a3a, #111); }
.pay-logo-luminor { background: linear-gradient(135deg, #7d3c98, #4a1f61); }
.pay-logo-citadele { background: linear-gradient(135deg, #e3262e, #a3131a); }
.pay-key { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; line-height: 1.35; margin-bottom: .5rem; }
.pay-country a { white-space: nowrap; }
.pay-provider .check { margin-top: .8rem; }
.pay-howto { margin: .7rem 0 .2rem; padding: .8rem 1rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: .9rem; }
.pay-howto p { margin: 0 0 .3rem; }
.pay-howto ol { margin: 0; padding-left: 1.2rem; }
.pay-url { display: block; padding: .6rem .8rem; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); word-break: break-all; }
/* ---------- Setup popup after signing up (business, team, first service, ready) ---------- */
.fs-bg { z-index: 200; align-items: center; backdrop-filter: blur(3px); }
.fs-modal { width: min(600px, 100%); padding: 1.6rem 1.8rem 1.5rem; }
.fs-progress { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.fs-progress li { font-size: .78rem; font-weight: 600; color: var(--muted); line-height: 1.3; }
.fs-progress li span { display: block; height: 5px; border-radius: 99px; background: var(--line-2); margin-bottom: .45rem; transition: background .25s; }
.fs-progress li.on { color: var(--ink-2); }
.fs-progress li.on span { background: var(--grad); }
.fs-progress li[aria-current] { color: var(--brand); }
.fs-modal h2 { font-size: 1.55rem; letter-spacing: -.025em; margin: 0 0 .4rem; outline: none; }
.fs-lead { color: var(--ink-2); font-size: 1rem; line-height: 1.5; margin-bottom: .4rem; }
.fs-modal .flash { margin: .8rem 0 0; }
.fs-modal .flash ul { margin: 0; padding-left: 1.1rem; }
.fs-address { margin: .9rem 0 .2rem; padding: .75rem 1rem; border-radius: var(--radius-sm); background: var(--brand-soft); border: 1px solid #e1d9ff; }
.fs-address span { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: .15rem; }
.fs-address b { display: block; font-size: 1rem; word-break: break-all; }
.fs-link { display: flex; align-items: center; gap: .75rem; }
.fs-link b { flex: 1; min-width: 0; }
.fs-modal footer { display: flex; align-items: center; gap: .4rem; margin-top: 1.4rem; flex-wrap: wrap; }
.fs-modal footer .fs-next { margin-left: auto; background: var(--ink); border-color: var(--ink); color: #fff; border-radius: 99px; padding: .7rem 1.3rem; }
.fs-modal footer .fs-next:hover { background: #2c2948; }
.fs-modal footer .fs-next[disabled] { opacity: .7; cursor: wait; }
.fs-modal footer .btn.ghost { color: var(--ink-2); padding-left: .6rem; padding-right: .6rem; }
.fs-later { text-align: right; margin: .5rem 0 0; }
.fs-alone { margin-top: .9rem; }
.fs-members { margin-top: .3rem; }
.fs-member-head, .fs-member { display: grid; grid-template-columns: 1fr 1.25fr 2.2rem; gap: .5rem; align-items: center; }
.fs-member-head { font-size: .78rem; font-weight: 650; color: var(--ink-2); margin: .5rem 0 .3rem; }
.fs-member { margin-bottom: .45rem; }
.fs-members > .btn { margin-top: .1rem; }
.fs-hours { border: 0; padding: 0; margin: 1rem 0 0; min-width: 0; }
.fs-hours legend { font-size: .82rem; font-weight: 650; color: var(--ink-2); padding: 0; margin-bottom: .4rem; }
.fs-times { display: flex; align-items: center; gap: .5rem; margin-top: .6rem; }
.fs-times input { width: 8rem; }
.fs-durations { display: flex; flex-wrap: wrap; gap: .45rem; }
.fs-durations label { margin: 0; }
.fs-durations input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fs-durations span { display: inline-flex; padding: .5rem .95rem; border-radius: 99px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; font-size: .92rem; font-weight: 600; color: var(--ink); transition: all .15s; }
.fs-durations input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.fs-durations input:focus-visible + span { box-shadow: 0 0 0 3px rgba(109, 74, 255, .2); }
.fs-other { display: flex; align-items: center; gap: .5rem; margin-top: .55rem; }
.fs-other input { width: 7rem; }
.fs-price { position: relative; max-width: 14rem; }
.fs-price input { padding-right: 2.2rem; }
.fs-price span { position: absolute; right: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.fs-preview { margin-top: 1.1rem; }
.fs-preview > span { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.fs-card { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.1rem; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface-2); }
.fs-card div b, .fs-card div small { display: block; }
.fs-card div b { font-size: 1rem; word-break: break-word; }
.fs-card div small { color: var(--muted); font-size: .85rem; }
.fs-card > b { font-size: 1.05rem; white-space: nowrap; }
.fs-ready { text-align: center; }
.fs-ready .fs-lead { max-width: 30rem; margin: 0 auto .4rem; }
.fs-ready .fs-link { text-align: left; }
.fs-tick { width: 64px; height: 64px; margin: .2rem auto 1rem; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
@media (max-width: 520px) {
  .fs-bg { align-items: flex-start; padding: .75rem; }
  .fs-modal { padding: 1.2rem 1.1rem; }
  .fs-progress { gap: .35rem; }
  .fs-progress li { font-size: .68rem; }
  .fs-modal h2 { font-size: 1.3rem; }
  .fs-member-head { display: none; }
  .fs-member { grid-template-columns: 1fr 2.2rem; }
  .fs-member input[type=email] { grid-column: 1; grid-row: 2; }
  .fs-member [data-fs-remove] { grid-row: 1 / span 2; grid-column: 2; }
  .fs-member { padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
  .fs-modal footer .fs-next { width: 100%; justify-content: center; order: 3; }
  .fs-later { text-align: center; }
  .fs-link { flex-direction: column; align-items: stretch; }
}

/* Compact, collapsible menu groups */
.side nav details.nav-group { margin: 0; }
.side nav details.nav-group > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: .5rem .6rem .25rem; font-weight: 700; user-select: none; }
.side nav details.nav-group > summary::-webkit-details-marker { display: none; }
.side nav details.nav-group > summary:hover { color: var(--ink); }
.side nav details.nav-group > summary .icon { transition: transform .15s; }
.side nav details.nav-group:not([open]) > summary .icon { transform: rotate(-90deg); }
.side nav details.nav-group a { padding: .34rem .6rem; gap: .6rem; font-size: .92rem; }
.side nav > a { padding: .4rem .6rem; font-size: .92rem; }

/* Messaging price table: grouped captions (Booking / Marketing over WhatsApp + SMS), no sideways scroll */
table.price-grid { table-layout: fixed; }
table.price-grid th.c, table.price-grid td.c { text-align: center; }
table.price-grid tr.grp th { border-bottom: 1px solid var(--line); }
table.price-grid tr.grp th.c { border-left: 1px solid var(--line); }
table.price-grid tr.sub th { top: 0; text-transform: none; letter-spacing: 0; font-size: .85rem; }
table.price-grid tr.sub th:nth-child(odd) { border-left: 1px solid var(--line); }
table.price-grid td:nth-child(2), table.price-grid td:nth-child(4) { border-left: 1px solid var(--line); }
table.price-grid th:first-child { width: 22%; }
/* Bookings list: one line per row, price never wraps */
table.list.bookings-list td { white-space: nowrap; }
table.list.bookings-list td.bk-svc { max-width: 0; width: 38%; min-width: 7rem; }
/* Status pills may wrap under each other, so a narrow window never needs a sideways scroll */
table.list.bookings-list td:nth-child(5) { white-space: normal; }
table.list.bookings-list td:nth-child(5) .badge { margin: .1rem .2rem .1rem 0; }
.bk-svc-in { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.bk-svc-first { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bk-more { flex: none; border: 0; border-radius: 99px; padding: .1rem .5rem; font: inherit; font-size: .76rem; font-weight: 700; background: #efeef6; color: var(--ink-2); cursor: pointer; }
.bk-more:hover, .bk-more:focus-visible, td[data-hover-pop].pop-on .bk-more { background: var(--brand); color: #fff; }
/* Floating list shown over a cell (app.js, [data-hover-pop]); fixed so the table's scroll box never clips it */
.hover-pop { position: fixed; z-index: 80; max-width: min(22rem, calc(100vw - 1rem)); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: .5rem .7rem; font-size: .88rem; animation: pop .12s ease; }
.svc-pop-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .3rem; }
.svc-pop-list li { white-space: normal; padding-left: .8rem; position: relative; }
.svc-pop-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
table.list.bookings-list td, table.list.bookings-list th { padding: .55rem .8rem; }
table.list.bookings-list .cell-main { gap: .5rem; }
table.list.bookings-list .cell-main.inline > div { display: flex; align-items: baseline; gap: .5rem; }
table.list.bookings-list .cell-main.inline b { display: inline; }
table.price-grid tr.sub th { position: static; }

/* Phone field with country picker (assets/js/phone.js) */
.ph-field { position: relative; display: flex; align-items: stretch; width: 100%; border: 1px solid var(--line-2, #d9d6e6); border-radius: var(--radius-sm, 10px); background: var(--surface, #fff); color: inherit; transition: border-color .15s, box-shadow .15s; }
.ph-field:focus-within { border-color: var(--brand, #6d4aff); box-shadow: 0 0 0 4px rgba(109, 74, 255, .14); }
.ph-cc { display: flex; align-items: center; gap: .35rem; padding: 0 .55rem 0 .7rem; border: 0; border-right: 1px solid var(--line, #ecebf3); background: transparent; border-radius: inherit; border-top-right-radius: 0; border-bottom-right-radius: 0; cursor: pointer; font: inherit; color: inherit; }
.ph-cc:hover { background: rgba(127, 127, 127, .08); }
.ph-flag { font-size: 1.3rem; line-height: 1; }
.ph-caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .55; }
.ph-code { display: flex; align-items: center; padding-left: .75rem; font-variant-numeric: tabular-nums; user-select: none; opacity: .85; }
.ph-field input.ph-num { flex: 1; min-width: 0; border: 0 !important; box-shadow: none !important; background: transparent !important; padding-left: .4rem; border-radius: 0 var(--radius-sm, 10px) var(--radius-sm, 10px) 0; color: inherit; }
.ph-menu { position: absolute; z-index: 50; top: calc(100% + 4px); left: 0; width: min(22rem, 100%); min-width: 16rem; max-height: 18rem; display: flex; flex-direction: column; background: var(--surface, #fff); color: var(--ink, #1c1a2b); border: 1px solid var(--line-2, #d9d6e6); border-radius: var(--radius-sm, 10px); box-shadow: 0 12px 32px rgba(20, 16, 50, .18); overflow: hidden; }
.ph-menu[hidden] { display: none; }
.ph-menu input.ph-search { border: 0; border-bottom: 1px solid var(--line, #ecebf3); border-radius: 0; box-shadow: none; padding: .6rem .8rem; background: transparent; color: inherit; }
.ph-list { list-style: none; margin: 0; padding: .25rem; overflow-y: auto; }
.ph-opt { display: flex; align-items: center; gap: .6rem; padding: .45rem .55rem; border-radius: 8px; cursor: pointer; outline: none; }
.ph-opt:hover, .ph-opt:focus { background: rgba(109, 74, 255, .1); }
.ph-opt.on { font-weight: 650; }
.ph-opt .ph-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-opt .ph-dial { opacity: .65; font-variant-numeric: tabular-nums; }
body.design-noir .ph-field, body.design-noir .ph-menu { background: #141214; border-color: rgba(255, 255, 255, .16); color: var(--st-ink, #f3efe9); }

/* CSV import */
.imp-steps { display: grid; gap: .75rem; max-width: 1040px; margin-bottom: 1rem; }
.imp-step { display: flex; gap: 1rem; align-items: flex-start; margin: 0; }
.imp-step h2 { margin: 0 0 .25rem; display: flex; align-items: center; gap: .45rem; font-size: 1.05rem; }
.imp-step p { margin: 0 0 .25rem; }
.imp-num { width: 34px; height: 34px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 750; }
.imp-row { display: flex; align-items: center; gap: .8rem; padding: .8rem 1.2rem; border-bottom: 1px solid var(--line); }
.imp-row:last-child { border-bottom: 0; }
.imp-row > div:first-child { flex: 1; min-width: 0; }
.imp-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .9rem 1.2rem; align-items: end; }
.imp-preview { margin: 1rem 0 .4rem; }
.imp-preview td { max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.imp-pick th { background: var(--brand-soft); min-width: 170px; }
.imp-pick select { width: 100%; font-weight: 650; }
.imp-pick select.ign { color: var(--muted); font-weight: 500; }
.imp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; margin-bottom: 1rem; max-width: 1040px; }
.imp-stats .stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; display: flex; flex-direction: column; }
.imp-stats .stat b { font-size: 1.8rem; line-height: 1.1; }
.imp-stats .stat span { color: var(--ink-2); }
.imp-stats .stat small { color: var(--muted); margin-top: .15rem; }
.imp-match { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: .55rem 0; border-top: 1px solid var(--line); }
.imp-match > div { display: flex; flex-direction: column; min-width: 0; }
.imp-match select { max-width: 320px; }
.imp-clashes { display: grid; gap: .1rem; max-height: 420px; overflow: auto; }
.imp-clash { display: flex; gap: .6rem; align-items: flex-start; padding: .45rem .2rem; border-top: 1px solid var(--line); cursor: pointer; }
.imp-clash small { display: block; }
.imp-skipped summary { cursor: pointer; }
.imp-matrix th.mx-staff { text-align: center; min-width: 110px; }
.imp-matrix th.mx-staff .avatar { width: 22px; height: 22px; font-size: .62rem; }
.imp-matrix th.mx-staff span:not(.avatar) { display: block; }
.imp-matrix .mx-cell { text-align: center; }
.imp-matrix .mx-cat td { background: var(--surface-2); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.imp-matrix button.link { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; font: inherit; font-size: .75rem; }
@media (max-width: 640px) { .imp-match { flex-direction: column; align-items: stretch; } .imp-match select { max-width: none; } }
