/* Renewal Beauty & Spa, Burgas.
   Light theme: morning mist, soft sage, warm sand — calm and airy.
   Dark theme: the brand itself, taken from the salon poster — deep emerald, warm gold, ivory, candle glow. */
:root {
  --paper: #F5F5F1;
  --card: #FFFFFE;
  --sunk: #EDEEE9;
  --ink: #2A2F2D;
  --ink-2: #5E6763;
  --ink-3: #8C9490;
  --line: #E4E6E0;
  --euca: #5B7A6C;
  --euca-ink: #FFFFFF;
  --euca-soft: #E8EFEA;
  --amber: #946F42;
  --amber-soft: #F5EDE1;
  --danger: #A04F45;
  --danger-soft: #F6E6E3;
  --ok: #3E7558;
  --focus: #5B7A6C;
  --hero-a: #A3B9AE; --hero-b: #6F8C7F;

  --display: 'Literata', 'Georgia', serif;
  --ui: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-lg: 22px; --r-md: 16px; --r-sm: 11px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #0C1D19; --card: #132A25; --sunk: #183430; --ink: #F2E9D8; --ink-2: #C9BFAA; --ink-3: #8F8A78; --line: #234038; --euca: #D2AE68; --euca-ink: #16241F; --euca-soft: #26382C; --amber: #E6B46A; --amber-soft: #33301F; --danger: #EBA294; --danger-soft: #3A2622; --ok: #A9D7B6; --focus: #D2AE68; --hero-a: #1E4A40; --hero-b: #0B1F1A; --gold: #D2AE68; --gold-2: #E8CD94; --display: 'Forum', 'Literata', Georgia, serif; color-scheme: dark; }
}
:root[data-theme="dark"] { --paper: #0C1D19; --card: #132A25; --sunk: #183430; --ink: #F2E9D8; --ink-2: #C9BFAA; --ink-3: #8F8A78; --line: #234038; --euca: #D2AE68; --euca-ink: #16241F; --euca-soft: #26382C; --amber: #E6B46A; --amber-soft: #33301F; --danger: #EBA294; --danger-soft: #3A2622; --ok: #A9D7B6; --focus: #D2AE68; --hero-a: #1E4A40; --hero-b: #0B1F1A; --gold: #D2AE68; --gold-2: #E8CD94; --display: 'Forum', 'Literata', Georgia, serif; color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 15px/1.5 var(--ui); -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--euca); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }

#app { max-width: 560px; margin: 0 auto; padding: 8px 16px calc(96px + var(--safe-b)); min-height: 100vh; }
body.no-tabs #app { padding-bottom: calc(40px + var(--safe-b)); }
body.has-fallback #app { padding-bottom: calc(110px + var(--safe-b)); }

.boot { height: 80vh; display: grid; place-items: center; }
.boot-mark { font: 30px var(--display); color: var(--ink-3); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .35; } }

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0 6px; min-height: 52px; }
.brand { font: 26px/1 var(--display); letter-spacing: .01em; }
.brand small { display: block; font: 500 12px/1.4 var(--ui); color: var(--ink-3); letter-spacing: 0; margin-top: 4px; }
.roles { display: inline-flex; background: var(--sunk); border-radius: 999px; padding: 3px; }
.roles button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.roles button[aria-pressed="true"] { background: var(--card); color: var(--ink); }

/* ---------- headings ---------- */
.h1 { font: 30px/1.15 var(--display); margin: 18px 0 6px; letter-spacing: -.005em; text-wrap: balance; }
.h2 { font: 21px/1.25 var(--display); margin: 28px 0 12px; }
.h3 { font: 600 15px/1.35 var(--ui); margin: 0; }
.lead { color: var(--ink-2); margin: 0 0 18px; max-width: 34em; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 10px; }
.mt { margin-top: 16px; }

/* ---------- surfaces ---------- */
.card { background: var(--card); border-radius: var(--r-lg); padding: 16px; border: 1px solid var(--line); }
.list { background: var(--card); border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; }
.list > .item + .item { border-top: 1px solid var(--line); }
.item { display: flex; gap: 14px; align-items: center; padding: 14px 16px; width: 100%; text-align: left; background: none; border: 0; cursor: pointer; }
.item:active { background: var(--sunk); }
.item .grow { flex: 1; min-width: 0; }
.item .title { font-weight: 500; }
.item .sub { color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.item .end { text-align: right; white-space: nowrap; }
.chev { color: var(--ink-3); font-size: 18px; line-height: 1; }

/* services: duration ribbon is the visual signature of the booking flow */
.svc { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 16px; }
.svc .title { font-weight: 500; font-size: 16px; }
.svc .price { font: 17px var(--display); white-space: nowrap; }
.svc .desc { grid-column: 1 / -1; color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }
.ribbon { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
.ribbon i { display: block; height: 4px; border-radius: 4px; background: var(--euca); opacity: .55; }
.ribbon i.care { background: var(--amber); }

/* next visit — the one elevated element on the client home */
.next { background: var(--euca); color: var(--euca-ink); border-radius: 26px; padding: 20px; position: relative; overflow: hidden; }
.next::after { content: ''; position: absolute; right: -40px; top: -50px; width: 170px; height: 150px; border-radius: 48% 52% 60% 40% / 55% 45% 55% 45%; background: currentColor; opacity: .07; }
.next .when { font: 26px/1.15 var(--display); margin: 6px 0 4px; }
.next .meta { opacity: .82; font-size: 14px; }
.next .lbl { font-size: 13px; opacity: .75; }

/* ---------- buttons ---------- */
.btn { border: 0; border-radius: 14px; padding: 12px 16px; font-weight: 500; cursor: pointer; background: var(--sunk); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; text-decoration: none; }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .45; cursor: default; }
.btn-primary { background: var(--euca); color: var(--euca-ink); }
.btn-amber { background: #4C9A6A; color: #fff; } /* pay buttons: a fresh green in the light theme (brown read badly) */
.btn-ghost { background: transparent; color: var(--euca); padding-inline: 8px; }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-sm { min-height: 34px; padding: 6px 12px; border-radius: 10px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btns > .btn { flex: 1; }

.fallback-main { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + var(--safe-b)); background: linear-gradient(transparent, var(--paper) 30%); z-index: 20; }
.fallback-main .btn { max-width: 528px; margin: 0 auto; display: flex; min-height: 50px; font-size: 16px; }

/* ---------- chips, segmented ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.seg { display: flex; background: var(--sunk); border-radius: 13px; padding: 3px; }
.seg button { flex: 1; border: 0; background: none; border-radius: 10px; padding: 8px 6px; font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); }
.seg.seg-wrap { flex-wrap: wrap; gap: 3px; }
.seg.seg-wrap button { flex: 1 1 auto; white-space: nowrap; padding: 8px 10px; font-size: 13px; }

.badge { display: inline-block; font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 999px; background: var(--sunk); color: var(--ink-2); white-space: nowrap; }
.badge.booked { background: var(--euca-soft); color: var(--euca); }
.badge.done { background: var(--sunk); color: var(--ok); }
.badge.cancelled, .badge.no_show { background: var(--danger-soft); color: var(--danger); }
.badge.pending { background: var(--amber-soft); color: var(--amber); }
.badge.active { background: var(--euca-soft); color: var(--euca); }

/* ---------- date strip ---------- */
.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 10px; margin: 0 -16px; scroll-snap-type: x proximity; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { flex: 0 0 54px; scroll-snap-align: start; border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 8px 0 7px; text-align: center; cursor: pointer; }
.day .wd { font-size: 12px; color: var(--ink-3); }
.day .d { font: 21px/1.2 var(--display); }
.day .dot { height: 5px; display: flex; justify-content: center; gap: 2px; margin-top: 3px; }
.day .dot i { width: 4px; height: 4px; border-radius: 50%; background: var(--euca); }
.day[aria-pressed="true"] { background: var(--euca); border-color: var(--euca); color: var(--euca-ink); }
.day[aria-pressed="true"] .wd { color: inherit; opacity: .8; }
.day[aria-pressed="true"] .dot i { background: var(--euca-ink); }
.day:disabled { opacity: .38; cursor: default; }
.day.off .d { text-decoration: line-through; text-decoration-thickness: 1px; }
.month { font-size: 13px; color: var(--ink-3); margin: 14px 0 6px; }

/* ---------- slots ---------- */
.slot-group { margin-top: 16px; }
.slot-group h4 { margin: 0 0 8px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; }
.slot { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 10px 0; font-weight: 500; cursor: pointer; font-variant-numeric: tabular-nums; }
.slot[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- avatars ---------- */
.ava { width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; background: var(--euca-soft); color: var(--euca); font: 17px var(--display); }
.ava.any { background: var(--sunk); color: var(--ink-2); font: 500 20px var(--ui); }

/* ---------- forms ---------- */
.field { display: block; margin-top: 14px; }
.field > span { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.input { width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: var(--r-sm); padding: 12px 13px; min-height: 46px; outline: none; }
.input:focus { border-color: var(--euca); }
textarea.input { resize: vertical; min-height: 80px; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid2 .field { margin-top: 14px; }
.inline-check { display: flex; gap: 8px; }
.inline-check .input { flex: 1; }
.hint { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.hint.ok { color: var(--ok); }
.hint.err { color: var(--danger); }

/* ---------- summary ---------- */
.summary { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14.5px; }
.summary dt { color: var(--ink-3); }
.summary dd { margin: 0; text-align: right; font-weight: 500; }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.total b { font: 24px var(--display); font-weight: 400; }

/* ---------- visit cards ---------- */
.visit { padding: 16px; }
.visit .when { font: 19px/1.25 var(--display); }
.visit .what { margin-top: 4px; }
.visit .btns { margin-top: 14px; }

/* ---------- timeline (master / admin) ---------- */
.tl { display: grid; grid-template-columns: 52px 1fr; gap: 0 12px; }
.tl .t { font-variant-numeric: tabular-nums; font-weight: 500; padding-top: 15px; text-align: right; }
.tl .t small { display: block; color: var(--ink-3); font-weight: 400; font-size: 12px; }
.tl .slotcard { margin-bottom: 10px; border-left: 3px solid var(--euca); }
.tl .slotcard.care { border-left-color: var(--amber); }
.tl .slotcard.cancelled, .tl .slotcard.no_show { opacity: .6; border-left-color: var(--danger); }
.tl .gap { grid-column: 2; color: var(--ink-3); font-size: 13px; padding: 2px 0 12px 2px; }
.contact { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.note { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); background: var(--sunk); border-radius: 10px; padding: 8px 10px; }
.mgroup { margin-top: 22px; }
.mgroup h3 { font: 18px var(--display); margin: 0 0 10px; display: flex; justify-content: space-between; align-items: baseline; }
.mgroup h3 span { font: 13px var(--ui); color: var(--ink-3); }

/* ---------- stats ---------- */
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; }
.kpi .v { font: 26px/1.1 var(--display); margin-top: 4px; font-variant-numeric: lining-nums tabular-nums; }
.kpi .l { font-size: 13px; color: var(--ink-2); }
.kpi .delta { font-size: 12.5px; margin-top: 4px; color: var(--ink-3); }
.kpi .delta.up { color: var(--ok); }
.kpi .delta.down { color: var(--danger); }
.kpi.wide { grid-column: 1 / -1; }
.meter { height: 8px; background: var(--sunk); border-radius: 8px; margin-top: 10px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--euca); border-radius: 8px; }

.chart { position: relative; margin-top: 10px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-width: 1; }
.chart .axis text { fill: var(--ink-3); font-size: 10.5px; font-family: var(--ui); }
.chart .bar { fill: var(--euca); }
.chart .bar.dim { opacity: .35; }
.chart .hit { fill: transparent; cursor: pointer; }
.tip { position: absolute; pointer-events: none; transform: translate(-50%, -100%); background: var(--ink); color: var(--paper); padding: 6px 9px; border-radius: 9px; font-size: 12.5px; white-space: nowrap; line-height: 1.35; }

.hbar { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; padding: 10px 0; }
.hbar + .hbar { border-top: 1px solid var(--line); }
.hbar .track { grid-column: 1 / -1; height: 6px; background: var(--sunk); border-radius: 6px; }
.hbar .track i { display: block; height: 100%; border-radius: 6px; background: var(--euca); }

table.t { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
table.t th { text-align: right; font-weight: 500; color: var(--ink-3); font-size: 12.5px; padding: 0 0 8px; }
table.t th:first-child, table.t td:first-child { text-align: left; }
table.t td { text-align: right; padding: 10px 0; border-top: 1px solid var(--line); }
table.t td + td, table.t th + th { padding-left: 10px; }

/* ---------- gift certificates: the tactile showpiece ---------- */
.gift {
  position: relative; aspect-ratio: 1.62; border-radius: 22px; padding: 20px 22px; overflow: hidden; color: #F7F3EA;
  display: flex; flex-direction: column; justify-content: space-between; isolation: isolate;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 18px 40px -24px rgba(40, 50, 45, .45);
}
.gift.eucalyptus { background: radial-gradient(120% 90% at 85% 10%, #93AFA2 0%, #5F7E70 55%, #3F5A4E 100%); }
.gift.amber { background: radial-gradient(120% 90% at 80% 15%, #E6C798 0%, #B98E58 52%, #85623A 100%); }
.gift.basalt { background: radial-gradient(120% 90% at 80% 15%, #858D89 0%, #545C58 55%, #343A37 100%); }
.gift svg.stones { position: absolute; inset: auto -6% -22% auto; width: 62%; z-index: -1; opacity: .9; }
.gift .g-top { display: flex; justify-content: space-between; align-items: flex-start; }
.gift .g-brand { font: 20px var(--display); }
.gift .g-kind { font-size: 12.5px; opacity: .8; text-align: right; line-height: 1.35; }
.gift .g-amount { font: clamp(34px, 10vw, 46px)/1 var(--display); font-variant-numeric: lining-nums; }
.gift .g-to { font-size: 14px; opacity: .9; margin-top: 6px; min-height: 1.4em; }
.gift .g-code { font-size: 12.5px; letter-spacing: .08em; opacity: .85; font-variant-numeric: tabular-nums; }
.gift .g-msg { margin-bottom: 8px; font-size: 13px; opacity: .85; font-style: italic; max-width: 70%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gift-sm { aspect-ratio: auto; min-height: 150px; border-radius: 18px; padding: 16px 18px; }
.gift-sm .g-amount { font-size: 30px; }

.gift-mini { flex: 0 0 84px; aspect-ratio: 1.62; padding: 8px 10px; border-radius: 12px; justify-content: flex-start; box-shadow: none; align-self: flex-start; }
.gift-mini .g-brand { font-size: 13px; }

.swatches { display: flex; gap: 10px; }
.swatch { flex: 1; border: 2px solid transparent; border-radius: 14px; padding: 4px; background: none; cursor: pointer; }
.swatch span { display: block; height: 38px; border-radius: 10px; }
.swatch small { display: block; font-size: 12.5px; margin-top: 4px; color: var(--ink-2); }
.swatch[aria-pressed="true"] { border-color: var(--ink); }

/* ---------- empty & success ---------- */
.empty { text-align: center; padding: 36px 20px; color: var(--ink-2); }
.empty .h2 { margin-top: 0; }
.success { text-align: center; padding: 40px 8px 10px; }
.success .mark { width: 76px; height: 76px; margin: 0 auto 8px; border-radius: 50%; background: var(--euca-soft); display: grid; place-items: center; }
.success .mark svg { width: 34px; stroke: var(--euca); }
.success .mark path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .15s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- tabs ---------- */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: center; padding: 8px 10px calc(8px + var(--safe-b)); background: color-mix(in oklab, var(--paper) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.tabs .inner { display: flex; width: 100%; max-width: 560px; }
.tabs button { flex: 1; border: 0; background: none; padding: 4px 2px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 500; color: var(--ink-3); cursor: pointer; }
.tabs button svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tabs button[aria-current="page"] { color: var(--euca); }

.toast { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); z-index: 50; max-width: calc(100% - 32px); background: var(--ink); color: var(--paper); padding: 11px 16px; border-radius: 14px; font-size: 14px; box-shadow: 0 10px 30px -12px rgba(0,0,0,.4); animation: drop .25s ease-out; }
.toast.err { background: var(--danger); color: #fff; }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -8px); } }

.view-enter { animation: enter .22s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateX(10px); } }

.skeleton { background: var(--sunk); border-radius: 14px; height: 64px; margin-top: 10px; animation: breathe 1.4s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .success .mark path { stroke-dashoffset: 0; }
}
@media (max-width: 360px) {
  .kpis { grid-template-columns: 1fr; }
  .h1 { font-size: 26px; }
}

/* =================== v2: client experience =================== */
.sr { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
svg.art { display: block; width: 100%; height: 100%; }

/* hero: the one immersive moment on the home screen */
.hero { position: relative; border-radius: 28px; overflow: hidden; min-height: 248px; margin-top: 6px; color: #F3F6F2; isolation: isolate; display: flex; }
.hero-art { position: absolute; inset: 0; z-index: -1; }
.hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,28,22,0) 30%, rgba(15,28,22,.45)); }
.hero-body { padding: 22px 20px 20px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; width: 100%; }
.hero-hi { font-size: 14px; opacity: .85; }
.hero-title { font: 500 29px/1.12 var(--display); margin: 0 0 6px; max-width: 13em; text-wrap: balance; letter-spacing: -.01em; }
.hero-slot { font-size: 14px; display: flex; align-items: center; gap: 8px; opacity: .95; }
.hero-btn { background: #F3F6F2; color: #1F362D; margin-top: 6px; align-self: flex-start; min-height: 46px; padding-inline: 20px; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: #9FE0B8; box-shadow: 0 0 0 0 rgba(159,224,184,.6); animation: pulse 2s infinite; flex: 0 0 auto; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(159,224,184,0); } 100% { box-shadow: 0 0 0 0 rgba(159,224,184,0); } }

.next { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; border: 0; cursor: pointer; margin-top: 6px; font: inherit; }
.next .when { font-size: 24px; }
.next-cta { margin-top: 12px; font-size: 14px; font-weight: 500; background: rgba(255,255,255,.16); border-radius: 10px; padding: 7px 12px; }

.branch-bar { display: flex; align-items: center; gap: 12px; width: 100%; margin: 4px 0 12px; padding: 10px 14px; border: 1px solid var(--line); background: var(--card); border-radius: 16px; text-align: left; cursor: pointer; color: var(--ink); font: inherit; }
.branch-bar .grow { display: flex; flex-direction: column; } .branch-bar .ico { font-size: 18px; color: var(--ink-2); } .branch-bar > .small { color: var(--accent, var(--ink-2)); }
.branch-ask { margin: 4px 0 14px; }
.branch-chips { margin: 10px 0 2px; }
.wk-row { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 10px; margin-top: 8px; } .wk-row > span { color: var(--ink-2); font-size: 14px; }
.repeat { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 10px 14px 10px 10px; border: 1px solid var(--line); background: var(--card); border-radius: 18px; text-align: left; cursor: pointer; }
.repeat-art { width: 48px; height: 48px; border-radius: 12px; overflow: hidden; flex: 0 0 auto; }
.repeat .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.repeat .sub { font-size: 12.5px; color: var(--ink-3); }
.repeat .title { font-weight: 500; }

.filter { margin: -2px 0 12px; }
.svc-list { display: flex; flex-direction: column; gap: 10px; }
.svc-card { display: flex; gap: 14px; align-items: stretch; width: 100%; text-align: left; padding: 12px; border: 1px solid var(--line); background: var(--card); border-radius: 20px; cursor: pointer; font: inherit; color: inherit; }
.svc-card:active { transform: scale(.99); }
.svc-art { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 14px; overflow: hidden; }
.svc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.svc-name { font-weight: 500; font-size: 15.5px; line-height: 1.3; }
.svc-desc { font-size: 13px; color: var(--ink-2); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 4px; font-size: 13px; color: var(--ink-3); }
.svc-meta b { font: 500 16px var(--display); color: var(--ink); }
.pill { display: inline-block; vertical-align: 2px; margin-left: 6px; font: 500 11px/1 var(--ui); padding: 4px 7px; border-radius: 999px; background: var(--amber-soft); color: var(--amber); white-space: nowrap; }

.masters-row { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
.masters-row::-webkit-scrollbar { display: none; }
.master-card { flex: 0 0 132px; display: flex; flex-direction: column; text-align: left; gap: 2px; padding: 8px 8px 12px; border: 1px solid var(--line); background: var(--card); border-radius: 20px; cursor: pointer; font: inherit; color: inherit; }
.master-card .title { font-weight: 500; padding: 8px 4px 0; }
.master-card .sub { font-size: 12.5px; color: var(--ink-3); padding: 0 4px; line-height: 1.35; }
.master-ph { position: relative; display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; }
.master-ini { position: absolute; inset: 0; display: grid; place-items: center; font: 500 30px var(--display); color: rgba(255,255,255,.92); }
.master-ini.big { font-size: 52px; }

.gift-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; margin-top: 26px; padding: 18px; border: 0; border-radius: 22px; background: var(--amber-soft); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.gb-text { display: flex; flex-direction: column; gap: 4px; }
.gb-text .title { font: 500 19px/1.2 var(--display); }
.gb-text .sub { font-size: 13px; color: var(--ink-2); }
.gb-card .gift-mini { display: block; width: 92px; transform: rotate(-6deg); box-shadow: 0 10px 22px -12px rgba(80,50,10,.6); }

.ico { width: 36px; height: 36px; border-radius: 12px; background: var(--euca-soft); color: var(--euca); display: grid; place-items: center; font-size: 17px; flex: 0 0 auto; }
a.item { color: inherit; text-decoration: none; }

/* master profile */
.profile { text-align: left; }
.profile-ph { position: relative; display: block; width: 132px; height: 132px; border-radius: 32px; overflow: hidden; margin-top: 10px; }
.profile .h1 { margin-top: 16px; }

/* booking steps */
.steps { display: flex; gap: 6px; margin-top: 10px; }
.steps i { flex: 1; height: 3px; border-radius: 3px; background: var(--line); }
.steps i.on { background: var(--euca); }
.step-label { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }
.svc-hero { height: 170px; border-radius: 24px; overflow: hidden; margin-top: 14px; }
.meta-row { display: flex; gap: 8px; }
.meta-row span { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.meta-row span + span { font-family: var(--display); font-weight: 500; }
/* variants: one row per duration, the price in a fixed column so the numbers line up */
.variant-list { margin-top: 14px; }
.variant .radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); flex: 0 0 auto; transition: background .15s, border-color .15s; }
.variant[aria-checked="true"] .radio { border-color: var(--euca); background: radial-gradient(circle, var(--euca) 0 4.5px, transparent 5px); }
.variant[aria-checked="true"] { background: var(--sunk); }
.variant .price { min-width: 84px; text-align: right; font-family: var(--display); font-weight: 500; white-space: nowrap; }
.variant:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.who { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.who .ava + .ava { margin-left: -16px; }
.ava.sm { width: 30px; height: 30px; font-size: 12.5px; border: 2px solid var(--paper); }
.ava.sm.any { font-size: 14px; }

.addon { cursor: pointer; }
.addon .tick { width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid var(--line); flex: 0 0 auto; display: grid; place-items: center; transition: background .15s; }
.addon input:checked + .tick { background: var(--euca); border-color: var(--euca); }
.addon input:checked + .tick::after { content: ''; width: 10px; height: 5px; border: 2px solid var(--euca-ink); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.addon input:focus-visible + .tick { outline: 2px solid var(--focus); outline-offset: 2px; }

.master-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 6px; padding: 2px 16px 6px; scrollbar-width: none; }
.master-chips::-webkit-scrollbar { display: none; }
.mchip { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 5px 14px 5px 5px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 500; cursor: pointer; }
.mchip .ava.sm { border: 0; }
.mchip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mchip[aria-pressed="true"] .ava { background: rgba(255,255,255,.18); color: inherit; }
.nearest { display: block; width: 100%; margin-top: 10px; padding: 11px 14px; text-align: left; border: 1px dashed var(--euca); background: var(--euca-soft); color: var(--euca); border-radius: 14px; font-weight: 500; cursor: pointer; }
.policy { font-size: 13px; color: var(--ink-3); margin: 18px 0 0; padding-left: 12px; border-left: 2px solid var(--line); }

/* ticket: confirm & upcoming visits */
.ticket { background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.ticket-top { background: var(--euca); color: var(--euca-ink); padding: 14px 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ticket-date { font: 500 18px/1.2 var(--display); }
.ticket-time { font-weight: 500; white-space: nowrap; }
.ticket-body { padding: 16px; position: relative; }
.ticket-body::before { content: ''; position: absolute; left: 16px; right: 16px; top: 0; border-top: 2px dashed var(--line); opacity: 0; }
.ticket-lines { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.tl-line { display: flex; justify-content: space-between; gap: 12px; }
.tl-line span:first-child { color: var(--ink-2); }

.disclosure { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--card); }
.disclosure summary { cursor: pointer; font-weight: 500; color: var(--euca); list-style: none; }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary::before { content: '+ '; }
.disclosure[open] summary::before { content: '− '; }
.or { text-align: center; font-size: 12.5px; color: var(--ink-3); margin: 10px 0 -4px; }
.success .btn { margin-top: 4px; }

/* =================== v3: photos, theme switch, categories, uploads =================== */
img.ph { display: block; width: 100%; height: 100%; object-fit: cover; }
.theme-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; cursor: pointer; flex: 0 0 auto; color: var(--ink-2); }
.theme-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.cat-section { margin-top: 22px; }
.cat-section > h3 { font: 500 17px var(--display); margin: 0 0 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cat-section > h3 small { font: 400 12.5px var(--ui); color: var(--ink-3); }
.cat-desc { font-size: 13px; color: var(--ink-3); margin: -6px 0 12px; }
.svc-card.compact { padding: 10px; }
.svc-card.compact .svc-art { width: 56px; height: 56px; flex-basis: 56px; border-radius: 12px; }
.svc-card.compact .svc-desc { -webkit-line-clamp: 1; }
.hero-art img.ph { position: absolute; inset: 0; }
.hero-art::after { background: linear-gradient(180deg, rgba(20,30,25,.05) 20%, rgba(20,30,25,.55)); }
/* uploads */
.photo-field { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.photo-prev { width: 76px; height: 76px; border-radius: 16px; overflow: hidden; background: var(--sunk); flex: 0 0 auto; display: grid; place-items: center; color: var(--ink-3); font-size: 12px; text-align: center; }
.photo-field .btns { flex: 1; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tree .item.sub { padding-left: 34px; }
.tree .item.sub .title::before { content: '└ '; color: var(--ink-3); }
.mini-actions { display: flex; gap: 4px; }
.mini-actions .btn { min-height: 30px; padding: 4px 8px; border-radius: 8px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; }
.toggle-row .sub { font-size: 12.5px; color: var(--ink-3); }
.switch { position: relative; width: 44px; height: 26px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; inset: 0; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 26px; transition: background .15s; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--euca); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.btn-sm { white-space: nowrap; }
.demo-note { margin-top: 14px; font-size: 13.5px; color: var(--ink-2); background: var(--amber-soft); border-radius: 14px; padding: 12px 14px; }
details.item.hours { display: block; cursor: pointer; }
details.item.hours summary { display: flex; gap: 14px; align-items: center; list-style: none; }
details.item.hours summary::-webkit-details-marker { display: none; }
details.item.hours[open] .chev { transform: rotate(90deg); }
.week { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 12px 0 0 50px; font-size: 14px; }
.week dt { color: var(--ink-2); }
.week dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.week .today { color: var(--ink); font-weight: 600; }

/* service icons (replace the generative squares; set SERVICE_VISUAL = 'art' in client.js to go back) */
.ico-tile { display: grid; place-items: center; width: 100%; height: 100%; }
.ico-tile.sage { background: var(--euca-soft); color: var(--euca); }
.ico-tile.sand { background: var(--amber-soft); color: var(--amber); }
.ico-svg { width: 54%; height: 54%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svc-hero.icon-hero { height: 150px; }
.svc-hero.icon-hero .ico-svg { width: 64px; height: 64px; stroke-width: 1.2; }
.icon-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; margin-top: 8px; }
.icon-pick button { aspect-ratio: 1; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.icon-pick button .ico-svg { width: 24px; height: 24px; }
.icon-pick button[aria-pressed="true"] { border-color: var(--euca); background: var(--euca-soft); color: var(--euca); }

/* profile */
.me-btn { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; }
.me-btn .ava.sm { width: 38px; height: 38px; font-size: 14px; border: 1px solid var(--line); }
.ava { overflow: hidden; }
.ava.lg { width: 48px; height: 48px; font-size: 18px; }
.ava.xl { width: 72px; height: 72px; font-size: 26px; }
.me-card { display: flex; align-items: center; gap: 12px; width: 100%; margin: 6px 0 4px; padding: 12px 14px; border: 1px solid var(--line); background: var(--card); border-radius: 18px; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.me-card .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.me-card .title { font-weight: 500; }
.me-card .sub { font-size: 13px; color: var(--ink-3); }
.me-link { font-size: 13.5px; font-weight: 500; color: var(--euca); white-space: nowrap; }
.profile-head { display: flex; align-items: center; gap: 16px; margin-top: 14px; }

/* payment choice */
.pay-opts { display: flex; flex-direction: column; gap: 8px; }
.pay-opt { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); cursor: pointer; }
.pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay-opt .grow { flex: 1; display: flex; flex-direction: column; }
.pay-opt .title { font-weight: 500; }
.pay-opt .sub { font-size: 12.5px; color: var(--ink-3); }
.pay-dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); flex: 0 0 auto; display: grid; place-items: center; }
.pay-opt:has(input:checked) { border-color: var(--euca); background: var(--euca-soft); }
.pay-opt input:checked + .pay-dot { border-color: var(--euca); }
.pay-opt input:checked + .pay-dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--euca); }
.pay-opt input:focus-visible + .pay-dot { outline: 2px solid var(--focus); outline-offset: 2px; }
.paid-line { display: inline-block; font-weight: 500; color: var(--ok); background: var(--euca-soft); padding: 6px 14px; border-radius: 999px; margin: 0 0 14px; }
.note.warn { background: var(--amber-soft); color: var(--ink); }
.paid-tag { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 999px; background: var(--euca-soft); color: var(--ok); }
.paid-tag.warn { background: var(--amber-soft); color: var(--amber); }


/* =================== brand dark theme (Renewal poster) =================== */
.brand-moon { display: none; }
[data-theme="dark"] body { background: radial-gradient(120% 60% at 100% 0%, #15342D 0%, rgba(12,29,25,0) 60%) fixed, var(--paper); }
[data-theme="dark"] .brand { font-family: 'Forum', serif; text-transform: uppercase; letter-spacing: .22em; font-size: 22px; color: var(--gold); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
[data-theme="dark"] .brand small { width: 100%; letter-spacing: .08em; text-transform: none; color: var(--ink-3); margin-top: 2px; }
[data-theme="dark"] .brand-moon { display: inline-block; width: 26px; height: 26px; stroke: var(--gold); fill: none; stroke-width: 1.2; }
[data-theme="dark"] .h1, [data-theme="dark"] .h2, [data-theme="dark"] .hero-title { font-weight: 400; letter-spacing: .01em; }
[data-theme="dark"] .h2 { color: var(--gold-2); }
[data-theme="dark"] .card, [data-theme="dark"] .list, [data-theme="dark"] .svc-card, [data-theme="dark"] .master-card, [data-theme="dark"] .kpi,
[data-theme="dark"] .ticket, [data-theme="dark"] .repeat, [data-theme="dark"] .me-card, [data-theme="dark"] .pay-opt, [data-theme="dark"] .disclosure, [data-theme="dark"] .toggle-row {
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)), var(--card); border-color: var(--line); }

/* hero: candle glow on emerald with the crescent from the logo */
[data-theme="dark"] .hero { border: 1px solid rgba(210,174,104,.28); }
[data-theme="dark"] .hero-art > svg { display: none; }
[data-theme="dark"] .hero-art { background: radial-gradient(70% 90% at 95% 100%, rgba(230,170,95,.42), rgba(230,170,95,0) 60%), linear-gradient(160deg, #1F4C42 0%, #123029 55%, #0A1C18 100%); }
[data-theme="dark"] .hero-art::before { content: ''; position: absolute; right: -36px; top: -40px; width: 190px; height: 190px; border-radius: 50%; box-shadow: inset -14px 10px 0 -12px rgba(210,174,104,.55); transform: rotate(-20deg); }
[data-theme="dark"] .hero-art::after { background: linear-gradient(180deg, rgba(8,20,17,0) 30%, rgba(8,20,17,.45)); }
[data-theme="dark"] .hero-hi { color: var(--gold-2); opacity: 1; }
.hero-tag { display: none; }
[data-theme="dark"] .hero-tag { display: block; font-family: 'Great Vibes', cursive; font-size: 24px; color: var(--gold); line-height: 1; margin-bottom: 2px; }
[data-theme="dark"] .hero-btn { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #16241F; }
[data-theme="dark"] .dot-live { background: var(--gold-2); box-shadow: 0 0 0 0 rgba(232,205,148,.6); }

/* emerald + gold surfaces instead of flat accent fills */
[data-theme="dark"] .next, [data-theme="dark"] .ticket-top { background: radial-gradient(70% 120% at 100% 100%, rgba(230,170,95,.30), rgba(230,170,95,0) 60%), linear-gradient(160deg, #1F4C42, #102B25); color: var(--ink); }
[data-theme="dark"] .next { border: 1px solid rgba(210,174,104,.3); }
[data-theme="dark"] .next .lbl, [data-theme="dark"] .ticket-time { color: var(--gold-2); opacity: 1; }
[data-theme="dark"] .next-cta { background: rgba(210,174,104,.14); color: var(--gold-2); }
[data-theme="dark"] .btn-primary, [data-theme="dark"] .fallback-main .btn-primary { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #16241F; }
[data-theme="dark"] .btn-amber { background: linear-gradient(180deg, #F0C98A, #D49B52); color: #1E160A; }
[data-theme="dark"] .btn:not(.btn-primary):not(.btn-amber):not(.btn-ghost):not(.btn-danger):not(.hero-btn) { background: rgba(242,233,216,.07); }
[data-theme="dark"] .btn-ghost { background: transparent; color: var(--gold); }
[data-theme="dark"] .btn-danger { background: var(--danger-soft); color: var(--danger); }
[data-theme="dark"] .chip { background: transparent; border-color: rgba(210,174,104,.3); }
[data-theme="dark"] .chip[aria-pressed="true"], [data-theme="dark"] .slot[aria-pressed="true"], [data-theme="dark"] .mchip[aria-pressed="true"] { background: var(--gold); color: #16241F; border-color: var(--gold); }
[data-theme="dark"] .day[aria-pressed="true"] { background: linear-gradient(180deg, var(--gold-2), var(--gold)); border-color: var(--gold); color: #16241F; }
[data-theme="dark"] .day[aria-pressed="true"] .dot i { background: #16241F; }
[data-theme="dark"] .day, [data-theme="dark"] .slot, [data-theme="dark"] .mchip { background: var(--card); }
[data-theme="dark"] .steps i.on { background: var(--gold); }
[data-theme="dark"] .seg button[aria-pressed="true"], [data-theme="dark"] .roles button[aria-pressed="true"] { background: var(--gold); color: #16241F; }
[data-theme="dark"] .tabs { background: rgba(10,26,22,.86); border-top-color: rgba(210,174,104,.18); }
[data-theme="dark"] .tabs button[aria-current="page"] { color: var(--gold); }
[data-theme="dark"] .pill { background: rgba(210,174,104,.14); color: var(--gold-2); }
[data-theme="dark"] .badge.booked, [data-theme="dark"] .badge.active { background: rgba(210,174,104,.14); color: var(--gold-2); }

/* procedure icons: gold line art in a thin gold ring, like the poster */
[data-theme="dark"] .svc-art:has(.ico-tile) { background: transparent; }
[data-theme="dark"] .ico-tile.sage, [data-theme="dark"] .ico-tile.sand { background: radial-gradient(circle, rgba(210,174,104,.10), rgba(210,174,104,0) 70%); color: var(--gold); border: 1px solid rgba(210,174,104,.5); border-radius: 50%; }
[data-theme="dark"] .ico-svg { stroke-width: 1.3; }
[data-theme="dark"] .ico { background: transparent; border: 1px solid rgba(210,174,104,.45); color: var(--gold); border-radius: 50%; }
[data-theme="dark"] .meta-row span { border-color: rgba(210,174,104,.3); background: transparent; }
[data-theme="dark"] .ava { background: rgba(210,174,104,.14); color: var(--gold-2); }
[data-theme="dark"] .master-ph { box-shadow: inset 0 0 0 1px rgba(210,174,104,.35); }
[data-theme="dark"] .gift-banner { background: radial-gradient(80% 120% at 100% 100%, rgba(230,170,95,.25), rgba(230,170,95,0) 60%), #1A2E27; border: 1px solid rgba(210,174,104,.3); }
[data-theme="dark"] .gb-text .title { color: var(--gold-2); }
[data-theme="dark"] .nearest { background: rgba(210,174,104,.1); border-color: rgba(210,174,104,.5); color: var(--gold-2); }
[data-theme="dark"] .pay-opt:has(input:checked) { border-color: var(--gold); background: rgba(210,174,104,.08); }
[data-theme="dark"] .pay-opt input:checked + .pay-dot { border-color: var(--gold); }
[data-theme="dark"] .pay-opt input:checked + .pay-dot::after { background: var(--gold); }
[data-theme="dark"] .meter i, [data-theme="dark"] .hbar .track i, [data-theme="dark"] .chart .bar { background: var(--gold); fill: var(--gold); }
[data-theme="dark"] .tl .slotcard { border-left-color: var(--gold); }
[data-theme="dark"] .switch input:checked + span { background: var(--gold); }
[data-theme="dark"] .success .mark { background: rgba(210,174,104,.12); }
[data-theme="dark"] .success .mark svg { stroke: var(--gold); }
[data-theme="dark"] .paid-line { background: rgba(210,174,104,.12); color: var(--gold-2); }
[data-theme="dark"] .toast { background: #F2E9D8; color: #16241F; }
/* lotus ornament under section titles — the divider from the poster */
[data-theme="dark"] .h2::after { content: ''; display: block; width: 36px; height: 10px; margin-top: 6px;
  background: no-repeat left center / 36px 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 10' fill='none' stroke='%23D2AE68' stroke-width='.8'%3E%3Cpath d='M0 7h12M24 7h12'/%3E%3Cpath d='M18 8.5c-1.5-1-2.1-2.6-1.9-4.6 1.3.5 1.9 1.8 1.9 3.1 0-1.3.6-2.6 1.9-3.1.2 2-.4 3.6-1.9 4.6zM18 8.5c-2.2 0-3.9-.8-4.7-2.1 1.3-.3 2.7.2 3.5 1.1M18 8.5c2.2 0 3.9-.8 4.7-2.1-1.3-.3-2.7.2-3.5 1.1'/%3E%3C/svg%3E"); }
[data-theme="dark"] .row.between .h2::after, [data-theme="dark"] .cat-section .h2::after { display: none; }
[data-theme="dark"] .next::after { background: none; border: 1px solid rgba(210,174,104,.35); opacity: 1; border-radius: 50%; width: 150px; height: 150px; right: -50px; top: -60px; }

[data-theme="dark"] .topbar .brand { font-size: 19px; letter-spacing: .2em; gap: 8px; flex-wrap: nowrap; position: relative; padding-bottom: 18px; min-width: 0; }
[data-theme="dark"] .topbar .brand small { position: absolute; left: 0; bottom: 0; white-space: nowrap; font-size: 11.5px; }
[data-theme="dark"] .brand-moon { width: 22px; height: 22px; flex: 0 0 auto; }
@media (max-width: 400px) { [data-theme="dark"] .roles + .me-btn, .roles ~ .me-btn { display: none; } }

/* ---------- website requests (admin) ---------- */
.req-btn { position: relative; gap: 6px; }
.req-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--amber); color: #fff; font-size: 11px; font-weight: 600; line-height: 1; }
.req-banner { display: flex; align-items: center; gap: 12px; width: 100%; margin: 12px 0 4px; padding: 12px 14px; border: 0; border-radius: var(--r-md); background: var(--amber-soft); color: var(--ink); text-align: left; cursor: pointer; font-size: 14.5px; }
.req-banner .grow { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.dot-new { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); flex: none; }
.req-kv { margin: 12px 0 0; display: grid; gap: 6px; font-size: 14px; }
.req-kv > div { display: grid; grid-template-columns: 112px 1fr; gap: 8px; }
.req-kv dt { color: var(--ink-3); }
.req-kv dd { margin: 0; }
.seg-5 button { padding: 8px 2px; font-size: 13px; }
.invite-link { margin-top: 6px; font-size: 13px; word-break: break-all; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ---------- role tags: who is who ---------- */
.role-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.role-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font: 500 12px/1 var(--ui); white-space: nowrap; vertical-align: 1px;
  background: var(--sunk); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.role-tag.owner { background: var(--amber-soft); color: var(--amber); box-shadow: none; }
.role-tag.manager { background: var(--euca-soft); color: var(--euca); box-shadow: none; }
.role-tag.master { background: var(--sunk); color: var(--ink); }
.roles-explain { display: grid; gap: 10px; margin: 14px 0 18px; }
.roles-explain > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; }
.roles-explain p { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-2); }
.mini-col { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; flex: none; }

/* gift card → booking */
.cert-banner { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; padding: 12px 14px; border-radius: var(--r-md); background: var(--amber-soft); }
.cert-banner .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; }
.cert-banner .err { color: var(--danger); }
.cert-dot { font-size: 22px; line-height: 1; }
.cert-banner b { white-space: nowrap; }
.cert-banner .btn { flex: none; padding: 0 10px; }
.svc-ic { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; flex: 0 0 auto; display: grid; place-items: center; }
.svc-ic .ico-tile { width: 44px; height: 44px; }

/* ---------- payment split: gift card / paid / to collect ---------- */
.pay-line { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--amber-soft); font-size: 13px; color: var(--ink-2); }
.pay-line b { color: var(--ink); font-weight: 600; }
.pay-line .collect { color: var(--ink); }
.pay-line .collect.ok { color: var(--ok); }
.cert-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; }
.cert-sum > div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.cert-sum span { font-size: 12px; color: var(--ink-3); }
.cert-sum b { font-size: 16px; font-variant-numeric: tabular-nums; }
.cert-uses { display: grid; gap: 6px; font-size: 14px; padding: 4px 2px; }
.pay-line b { white-space: nowrap; }

/* ---------- several procedures in one visit ---------- */
.extras { display: grid; gap: 6px; margin-top: 8px; }
.extra { display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 14.5px; }
.extra .grow { flex: 1; min-width: 0; }
.extra .x { border: 0; background: none; color: var(--ink-3); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 14px; }
.extra .x:hover { background: var(--sunk); color: var(--ink); }
.add-extra { margin-top: 8px; }
.add-extra select { color: var(--euca); font-weight: 500; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.visit-items { display: grid; gap: 2px; margin-top: 8px; font-size: 15px; }
.howto { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); font-size: 14.5px; }
.slotcard[data-view] { cursor: pointer; }

/* ---------- reviews ---------- */
.rate { display: flex; gap: 6px; justify-content: center; margin: 20px 0 6px; }
.rate button { border: 0; background: none; font-size: 44px; line-height: 1; color: var(--line); cursor: pointer; padding: 4px; transition: transform .12s, color .12s; }
.rate button.on { color: var(--amber); }
.rate button:active { transform: scale(.9); }
.rate-word { text-align: center; margin: 0 0 8px; font-weight: 500; min-height: 1.4em; }
.stars-mini { border: 0; background: none; padding: 4px 0 0; color: var(--amber); font-size: 15px; letter-spacing: 1px; cursor: pointer; display: block; }
.stars-mini i { font-style: normal; color: var(--line); }
.link-btn { border: 0; background: none; padding: 6px 0 0; color: var(--euca); font: 500 14px var(--ui); cursor: pointer; display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--euca); flex: none; }
.review-card .stars { color: var(--amber); letter-spacing: 1px; }
.review-card .stars i { font-style: normal; color: var(--line); }
.review-card blockquote { margin: 10px 0 0; padding: 0 0 0 12px; border-left: 2px solid var(--line); color: var(--ink); font-size: 15px; }
.review-card.low { border-color: var(--danger); }
.master-rating { display: grid; gap: 6px; }

/* ---------- visit price: procedures − discount ---------- */
.price-card { display: grid; gap: 6px; }
.price-row { font-size: 14.5px; }
.price-row.muted { color: var(--ink-2); }
.price-total { padding-top: 8px; margin-top: 2px; border-top: 1px solid var(--line); font-size: 16px; }
.price-total b { font-size: 18px; }
.discount { padding: 10px 0 4px; border-top: 1px dashed var(--line); margin-top: 4px; }
.discount .chips { margin-top: 8px; }
.x-btn { border: 0; background: none; color: var(--ink-3); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; } .x-btn:hover { background: var(--sunk); color: var(--ink); }
.link-btn.inline { display: inline; padding: 0 0 0 10px; font-size: 13px; }
.danger-text { color: var(--danger); }
.gift-terms { margin: 14px 0 6px; padding: 12px 14px; border-radius: var(--r-md); background: var(--amber-soft); font-size: 13.5px; align-items: flex-start; }
.gift-terms b { font-weight: 600; }

/* ---------- shifts ---------- */
.shift { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 12px 0; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); }
.shift.on { background: var(--euca-soft); border-color: transparent; }
.shift .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; }
/* two roles (administrator and master): the buttons go under the text, one per row */
.shift.shift-roles { flex-direction: column; align-items: stretch; gap: 10px; }
.shift.shift-roles .btns { display: grid; gap: 8px; }
.shift.shift-roles .btn { width: 100%; min-height: 44px; white-space: normal; }
.shift-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(62,117,88,.18); flex: none; }
.staff-list { display: grid; gap: 10px; }
.staff-row { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; display: grid; gap: 6px; }
.bar { height: 6px; border-radius: 6px; background: var(--sunk); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--euca); border-radius: 6px; }
.staff-days { display: grid; gap: 6px; font-size: 13.5px; }
.sd { display: flex; gap: 10px; align-items: baseline; }
.sd-date { color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 42px; }
.sd-who { color: var(--ink-2); }
.dash-sec { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; font: 600 12px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.dash-sec::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- promotions, subscriptions, loyalty ---------- */
.promo { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: var(--r-md); padding: 14px; margin: 0 0 10px; cursor: pointer; color: inherit; font: inherit; }
.promo .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.promo-tag { font: 600 11px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--amber); background: var(--amber-soft); padding: 5px 8px; border-radius: 999px; flex: none; align-self: flex-start; }
.promo-bar { height: 5px; border-radius: 5px; background: var(--sunk); overflow: hidden; margin-top: 4px; }
.promo-bar i { display: block; height: 100%; background: var(--euca); }
.plans-link { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; border: 0; background: var(--euca-soft); border-radius: var(--r-md); padding: 14px; margin: 0 0 14px; cursor: pointer; font: inherit; color: inherit; }
.plans-link .grow { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.profile-notif { margin-top: 14px; }
.cert-open { cursor: pointer; border-radius: var(--r-md); }
/* certificates as a compact tray: one row per certificate, actions under it */
.cert-tray { padding: 0 14px; margin-top: 12px; }
.cert-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cert-row:last-child { border-bottom: 0; }
.cert-main { display: flex; gap: 10px; align-items: center; min-width: 0; }
.cert-main .gift-mini { flex: none; }
.cert-text { min-width: 0; }
.cert-code { font-weight: 600; letter-spacing: .02em; }
.cert-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.cert-foot { grid-column: 1 / -1; }
.cert-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.cert-empty { padding: 16px 0; }
.cert-open:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.plans { display: grid; gap: 14px; margin-top: 12px; }
.plan { position: relative; border: 1px solid var(--line); background: var(--card); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.plan.hot { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber) inset; }
.plan-badge { position: absolute; top: -10px; left: 20px; background: var(--amber); color: #fff; font: 600 11px/1 var(--ui); padding: 5px 9px; border-radius: 999px; letter-spacing: .04em; }
.plan-name { font: 600 22px/1.2 var(--display); }
.plan-price { font-size: 15px; margin: 6px 0 4px; }
.plan-price b { font-size: 34px; font-weight: 600; font-variant-numeric: tabular-nums; }
.plan-perks { margin: 8px 0 12px; padding-left: 18px; display: grid; gap: 6px; font-size: 14.5px; color: var(--ink-2); }
.sub-now { margin-top: 10px; }
.loyalty { margin: 14px 0; }
.loy-num { font: 600 36px/1 var(--display); margin-top: 4px; }
.loy-list { display: grid; gap: 6px; margin-top: 12px; font-size: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.loy-list .pos { color: var(--ok); }
.loy-list .neg { color: var(--danger); }
.loy-owner { margin-top: 12px; }
.btn-danger-text { color: var(--danger); }
.seg-6 button { padding: 8px 2px; font-size: 12.5px; }

/* ---------- language switch: RU · EN · BG ---------- */
.lang { display: inline-flex; background: var(--sunk); border-radius: 999px; padding: 3px; gap: 2px; }
.lang button { border: 0; background: none; padding: 6px 9px; border-radius: 999px; font: 600 11.5px/1 var(--ui); letter-spacing: .04em; color: var(--ink-2); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.lang button:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }

/* ---------- home: one list of promotions, wheel and subscriptions ---------- */
.promo-list { margin: 22px 0 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); overflow: hidden; }
.promo-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--line); background: none; padding: 14px 16px; cursor: pointer; color: inherit; font: inherit; }
.promo-row:first-child { border-top: 0; }
.promo-row:active { background: var(--sunk); }
.promo-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.promo-row .chev { color: var(--ink-3); }
.promo-list .promo-tag { align-self: center; }
.promo-list .promo-bar { margin-top: 4px; }

/* ---------- wheel of fortune ---------- */
.wheel-wrap { position: relative; width: min(330px, 86vw); aspect-ratio: 1; margin: 26px auto 6px; filter: drop-shadow(0 22px 34px rgba(8, 24, 20, .35)); }
.wheel-svg { width: 100%; height: 100%; display: block; }
.w-label { font-family: var(--ui); font-weight: 600; letter-spacing: .01em; }
.w-bulb { fill: #F3DDA6; opacity: .55; }
.wheel-wrap.ready .w-bulb, .wheel-wrap.spinning .w-bulb { animation: wBulb 1s var(--d) infinite steps(1); }
.wheel-wrap.spinning .w-bulb { animation-duration: .35s; }
.wheel-wrap.won .w-bulb { opacity: 1; }
@keyframes wBulb { 0% { opacity: 1; } 50% { opacity: .3; } }
.wheel-pointer { position: absolute; left: 50%; top: -18px; width: 34px; margin-left: -17px; z-index: 3; transform-origin: 50% 30%; filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); }
.wheel-pointer svg { display: block; width: 100%; }
.wheel-pointer.tick { animation: wTick .16s ease-out; }
@keyframes wTick { 0% { transform: rotate(0); } 35% { transform: rotate(-20deg); } 100% { transform: rotate(0); } }
.wheel-go { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; border: 0; background: transparent; color: transparent; cursor: pointer; z-index: 2; }
.wheel-wrap.ready .wheel-go { animation: wPulse 1.8s ease-in-out infinite; }
@keyframes wPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(217, 184, 113, .55); } 50% { box-shadow: 0 0 0 14px rgba(217, 184, 113, 0); } }
.w-seg.win path { filter: brightness(1.18); }
.wheel-wrap.won .w-seg:not(.win) { opacity: .55; transition: opacity .6s; }
.wheel-result { min-height: 2.6em; text-align: center; margin: 16px 0; display: flex; flex-direction: column; gap: 4px; align-items: center; color: var(--ink-2); font-size: 14px; }
.wheel-prize { font: 600 22px/1.25 var(--display); color: var(--ink); animation: wPop .5s cubic-bezier(.2,1.4,.4,1); }
@keyframes wPop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.w-dot { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 12px; margin-right: 12px; box-shadow: 0 0 0 1px var(--line); }
@media (prefers-reduced-motion: reduce) { .w-bulb, .wheel-go, .wheel-pointer.tick { animation: none !important; } }

/* ---------- language menu in the top bar ---------- */
.langdd { position: relative; }
.langdd-cur { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--sunk); color: var(--ink); font: 600 12px/1 var(--ui); letter-spacing: .04em; cursor: pointer; }
.langdd-cur svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform .2s; }
.langdd:hover .langdd-cur svg, .langdd.open .langdd-cur svg { transform: rotate(180deg); }
/* the gap between the current language and the list is bridged, so the cursor can cross it;
   the list closes 1.1 s after the cursor leaves, and opens at once */
.langdd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.langdd-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 84px; display: grid; gap: 2px; padding: 6px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 14px 30px -12px rgba(0,0,0,.35); opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .18s ease 1.1s, transform .18s ease 1.1s; z-index: 30; }
.langdd:hover .langdd-menu, .langdd.open .langdd-menu, .langdd:focus-within .langdd-menu { opacity: 1; transform: none; pointer-events: auto; transition: opacity .18s ease, transform .18s ease; }
.langdd-menu button { border: 0; background: none; padding: 8px 10px; border-radius: 9px; text-align: left; font: 600 12.5px/1 var(--ui); letter-spacing: .04em; color: var(--ink); cursor: pointer; }
.langdd-menu button:hover, .langdd-menu button:focus-visible { background: var(--sunk); outline: none; }
.clickable { cursor: pointer; transition: background-color .15s, box-shadow .15s; border-radius: 12px; }
.clickable:hover { box-shadow: inset 0 0 0 1px var(--line); }
.clickable:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
tr.clickable:hover td { background: var(--sunk); }
.master-pick { width: 100%; border: 0; background: none; padding: 6px 4px; border-radius: 10px; cursor: pointer; color: inherit; font: inherit; }
.master-pick.on { background: var(--sunk); }
.seg-5 button { font-size: 12.5px; }
.plan-visits { font-size: 14px; color: var(--ink); margin-top: 4px; font-weight: 500; }
.plan-extra { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13.5px; color: var(--ink-3); }
.notif { padding: 4px 16px; }
.notif .toggle-row { padding: 12px 0; }

/* promotions editor: the list of gifts (add / remove) */
.gift-list { display: grid; gap: 0; margin-top: 8px; }
.gift-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.gift-row .grow { flex: 1; min-width: 0; }

/* settings: a procedure with its durations and prices */
.svc-tree { padding: 0 14px; }
.svc-group { padding: 10px 0; }
.svc-group + .svc-group { border-top: 1px solid var(--line); }
.svc-head { display: flex; gap: 12px; align-items: center; width: 100%; padding: 2px 0 8px; background: none; border: 0; text-align: left; cursor: pointer; color: inherit; }
.svc-head .grow { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.svc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.svc-chips .chip { padding: 6px 12px; font-size: 13px; }
.svc-chips .chip.off { opacity: .55; text-decoration: line-through; }
.svc-chips .chip.add { border-style: dashed; color: var(--euca); }
.var-row { align-items: end; padding: 10px 0; border-bottom: 1px solid var(--line); }
.var-row.off { opacity: .6; }
.var-acts { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }

/* client: back to home from a payment, subscription card */
.home-back { margin: 0 0 4px -8px; }
.sub-card { margin-top: 6px; }

/* wheel winners in the admin: the name opens the client */
.winner-link { border: 0; background: none; padding: 0; color: var(--euca); font: inherit; text-decoration: underline; cursor: pointer; }

/* ================= layout for every screen: phone → tablet → computer ================= */
/* nothing may push the page wider than the screen: iOS then shrinks the whole page and leaves an empty strip */
html { overflow-x: hidden; }
body { overflow-x: clip; }

/* top bar: the controls wrap instead of overflowing */
.topbar { flex-wrap: wrap; row-gap: 10px; }
.topbar .brand { min-width: 0; }
.top-actions { min-width: 0; margin-left: auto; }
/* the owner sees the role switcher: the logo gets its own row, the switches the next one */
.topbar.with-roles .brand { flex: 1 1 100%; }
.topbar.with-roles .top-actions { flex: 1 1 100%; margin-left: 0; }
.topbar.with-roles .roles { flex: 1 1 auto; min-width: 0; }
.topbar.with-roles .roles button { flex: 1 1 0; white-space: nowrap; padding-inline: 8px; }
.topbar.with-roles .langdd-menu { left: 0; right: auto; }

/* section switches with many parts: two rows on a phone instead of running off the screen */
@media (max-width: 559px) {
  .seg.seg-6 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
  .seg.seg-6 button { padding: 9px 4px; font-size: 13px; }
  .seg.seg-5 { flex-wrap: wrap; gap: 3px; }
  .seg.seg-5 button { flex: 1 1 auto; white-space: nowrap; padding-inline: 10px; }
}

/* catalog: a top category folds; open, it shows its subcategories with the procedures */
.cat-acc { border-bottom: 1px solid var(--line); }
.cat-acc:first-child { border-top: 1px solid var(--line); margin-top: 6px; }
.cat-acc > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px 2px; cursor: pointer; }
.cat-acc > summary::-webkit-details-marker { display: none; }
.cat-acc > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 10px; }
.cat-acc .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cat-acc .cat-name { font: 21px/1.2 var(--display); }
.cat-acc .cat-meta { font-size: 13px; color: var(--ink-2); }
.cat-acc .cat-subs { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-acc > summary .chev { font-size: 22px; transition: transform .2s; }
.cat-acc[open] > summary .chev { transform: rotate(90deg); }
.cat-acc .cat-desc { margin: -4px 0 4px; }
.cat-acc .cat-body { padding-bottom: 18px; }
.cat-acc .cat-section:first-child { margin-top: 6px; }
[data-theme="dark"] .cat-acc .cat-name { color: var(--gold-2); letter-spacing: .01em; }

/* picking procedures in the admin: a tray instead of a wall of chips */
.tray { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
.card .tray { background: var(--sunk); border-color: transparent; }
.tray > summary, .tray-cat > summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.tray > summary::-webkit-details-marker, .tray-cat > summary::-webkit-details-marker { display: none; }
.tray > summary { padding: 12px 14px; }
.tray > summary:focus-visible, .tray-cat > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 10px; }
.tray .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tray-label { font-size: 13px; color: var(--ink-3); }
.tray-sum { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tray-count { font-size: 13px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tray .chev { transition: transform .2s; }
.tray[open] > summary .chev, .tray-cat[open] > summary .chev { transform: rotate(90deg); }
.tray-body { border-top: 1px solid var(--line); padding: 0 14px 4px; }
.tray-cat + .tray-cat { border-top: 1px solid var(--line); }
.tray-cat > summary { padding: 12px 0; font-weight: 500; }
.tray-cat .link-btn { padding: 0 0 10px; font-size: 13px; }
.tray-cat .chips { padding-bottom: 14px; }
.tray-cat .chip { font-size: 13px; padding: 6px 12px; }

/* wheel prizes: a name and the chance in % */
.prize-rows { display: grid; gap: 8px; margin-top: 6px; }
.prize-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px auto; gap: 8px; align-items: center; }
.pz-chance { position: relative; display: block; }
.pz-chance input { padding-left: 8px; padding-right: 26px; text-align: right; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
/* the spin arrows covered the decimals of a chance like 16.67 */
.pz-chance input::-webkit-inner-spin-button, .pz-chance input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pz-chance span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; font-size: 14px; }
.pz-rm { padding-inline: 10px; }
.pz-rm:disabled { opacity: .35; }

/* the first screen: on a phone one column, wider — the main card and the offers side by side */
.home-side > .promo-list:not(:has(.promo-row)) { display: none; }

/* tablet */
@media (min-width: 768px) {
  #app { max-width: 720px; padding-inline: 24px; }
  body.is-root #app { max-width: 980px; }
  .tabs .inner { max-width: 720px; }
  .fallback-main .btn { max-width: 672px; }
  .topbar.with-roles .brand { flex: 0 1 auto; }
  .topbar.with-roles .top-actions { flex: 0 1 auto; margin-left: auto; }
  .topbar.with-roles .roles button { flex: 0 0 auto; padding-inline: 14px; }
  .topbar.with-roles .langdd-menu { left: auto; right: 0; }
  .home-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0 18px; align-items: stretch; }
  /* the visit card grows to the height of the offers next to it; «Не знаю, что выбрать» fills the rest of the column */
  .home-main { display: flex; flex-direction: column; }
  .home-main > .next, .home-main > .hero { flex: 1 1 auto; }
  .home-side { display: flex; flex-direction: column; }
  .home-main .pick-help.in-main { display: flex; }
  .pick-help.out-main { display: none; }
  .home-main > .next { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
  .home-main > .next .next-cta { margin-top: auto; }
  .home-main > .next .meta { margin-bottom: 14px; }
  .home-side .promo-list { margin-top: 6px; }
  .home-side .plans-link { margin-bottom: 0; }
  .hero { min-height: 280px; }
  .svc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .masters-row { margin: 0; padding: 0 0 4px; flex-wrap: wrap; overflow: visible; }
  .grid2 { gap: 14px; }
}
/* computer */
@media (min-width: 1180px) {
  body.is-root #app { max-width: 1160px; padding-inline: 32px; }
  .svc-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-top { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 0 24px; }
}
/* date and time fields never stick out of a narrow two-column row */
.grid2 > * { min-width: 0; }
.input[type="date"], .input[type="time"] { min-width: 0; max-width: 100%; width: 100%; }

/* ---------- Аналитика: switch between the salon and its money ---------- */
.an-switch { margin-top: 14px; }

/* ---------- staff on the owner's dashboard: one folding row per person ---------- */
.staff-acc { display: grid; gap: 10px; }
.staff-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
.staff-item > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 13px 14px; cursor: pointer; }
.staff-item > summary::-webkit-details-marker { display: none; }
.staff-item > summary .grow { flex: 1; min-width: 0; }
.staff-item > summary .bar { display: block; height: 5px; background: var(--sunk); border-radius: 5px; margin-top: 7px; overflow: hidden; }
.staff-item > summary .bar i { display: block; height: 100%; background: var(--euca); border-radius: 5px; }
.staff-item .chev { color: var(--ink-3); transition: transform .15s; font-size: 18px; }
.staff-item[open] .chev { transform: rotate(90deg); }
.staff-item .on-shift { color: var(--ok); font-weight: 600; }
.staff-body { padding: 0 14px 14px; border-top: 1px solid var(--line); }
.staff-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.staff-stats > div { background: var(--sunk); border-radius: 12px; padding: 9px 11px; }
.staff-stats .l { display: block; font-size: 12px; color: var(--ink-3); }
.staff-stats b { font: 20px/1.2 var(--display); font-variant-numeric: lining-nums tabular-nums; }
.shift-cal { margin-top: 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-grid .cw { text-align: center; font-size: 11px; color: var(--ink-3); padding-bottom: 2px; }
.cal-grid .cd { aspect-ratio: 1; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 13px; color: var(--ink-3); background: var(--sunk); min-width: 0; }
.cal-grid .cd.blank { background: none; }
.cal-grid .cd.on { background: var(--euca); color: var(--euca-ink); }
.cal-grid .cd.on i { font-style: normal; font-size: 9.5px; opacity: .85; line-height: 1; margin-top: 2px; white-space: nowrap; }
.cal-grid .cd.now { outline: 2px solid var(--ok); outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) { .staff-item .chev { transition: none; } }

/* settings: switch a procedure / category on and off, pick several for a bulk action */
.svc-line { display: flex; gap: 10px; align-items: center; }
.svc-line .svc-head { flex: 1; min-width: 0; }
.svc-group.paused .svc-head, .svc-group.paused .svc-chips, .tree .item.paused > .grow { opacity: .55; }
.pick { position: relative; width: 24px; height: 24px; flex: 0 0 auto; cursor: pointer; }
.pick input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pick span { position: absolute; inset: 0; border: 1.5px solid var(--ink-3); border-radius: 7px; background: var(--card); }
.pick input:checked + span { background: var(--euca); border-color: var(--euca); }
.pick input:checked + span::after { content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
[data-theme="dark"] .pick input:checked + span { background: var(--gold); border-color: var(--gold); }
.bulk-bar { position: sticky; top: 8px; z-index: 5; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 10px 12px; margin: 0 0 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.bulk-bar .grow { flex: 1; min-width: 110px; }
details.icon-fold { margin: 14px 0 4px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); padding: 0 12px; }
details.icon-fold summary { display: flex; gap: 10px; align-items: center; padding: 10px 0; cursor: pointer; list-style: none; color: var(--ink-2); font-size: 14px; }
details.icon-fold summary::-webkit-details-marker { display: none; }
details.icon-fold .grow { flex: 1; }
details.icon-fold .ico-cur .ico-svg { width: 22px; height: 22px; }
details.icon-fold[open] .chev { transform: rotate(90deg); }
details.icon-fold .icon-pick { margin: 0 0 12px; }

/* booking: how the visit is paid */
.how-booked .pp-lines { margin-top: 10px; padding-top: 6px; border-top: 1px solid var(--line); }
.how-booked .pp-row { padding: 4px 0; font-size: 14px; }
.how-booked .pp-row.price-total { margin-top: 4px; }
.plan-seg { margin-top: 8px; }
.pay-opt-check { cursor: pointer; }
.pay-opt-check input { width: 20px; height: 20px; accent-color: var(--euca); flex: 0 0 auto; }

/* wheel prizes: name + chance, then what the prize gives */
.prize-card { padding: 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--sunk); }
.prize-kind { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 8px; }
.prize-kind > :only-child { grid-column: 1 / -1; }

/* roles and rights */
.access-link { margin-top: 14px; }
.role-list .item[disabled] { opacity: .45; }
details.perm-group { margin-top: 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
details.perm-group summary { display: flex; gap: 10px; align-items: center; padding: 12px 14px; cursor: pointer; list-style: none; }
details.perm-group summary::-webkit-details-marker { display: none; }
details.perm-group summary .grow { flex: 1; display: flex; flex-direction: column; gap: 2px; }
details.perm-group[open] summary .chev { transform: rotate(90deg); }
.perm-items { padding: 0 14px 10px; border-top: 1px solid var(--line); }
.perm-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 14.5px; }
.perm-row:last-child { border-bottom: 0; }
.perm-row input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--euca); flex: 0 0 auto; }
[data-theme="dark"] .perm-row input { accent-color: var(--gold); }
.perm-sel { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.perm-sel > span { display: block; margin-bottom: 6px; }
.perm-sel.off { opacity: .5; }
.soon { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 8px; background: var(--sunk); color: var(--ink-3); font-size: 11.5px; vertical-align: 1px; }

/* booking card: «Записал» / «Как платит» in the same type as the lines below */
.how-booked .pp-head { padding: 3px 0; font-size: 14px; font-weight: 400; gap: 12px; }
.how-booked .pp-head + .pp-head { margin-top: 2px; }
.pp-how { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; text-align: right; }
.pay-mark { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.pay-mark.ok { background: rgba(76, 160, 110, .18); color: #5fbf86; }
.pay-mark.wait { background: var(--amber-soft); color: var(--amber); }

/* booking editor: room between the time chips and the status switch; the payment summary sits under the price */
.status-label { margin-top: 22px; }
[data-how] .how-booked { margin-top: 14px; }

.pay-mark.plain { background: var(--sunk); color: var(--ink); }
.plan-seg.locked button { cursor: default; }
.plan-seg.locked button[aria-pressed="false"] { opacity: .45; }

/* toast with «Отменить» */
.toast.with-undo { display: flex; gap: 14px; align-items: center; white-space: nowrap; }
.toast-undo { background: none; border: 0; color: var(--gold, #E4C688); font: 600 14px inherit; padding: 0; cursor: pointer; }
[data-theme="dark"] .toast-undo { color: #1E4A40; }
/* journal: what needs attention first; quick «Пришёл» and a call on a card */
.attn { margin: 12px 0 4px; display: grid; gap: 8px; }
.attn .item { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
.attn .tag-late { color: var(--amber); }
.quick { display: flex; gap: 8px; margin-top: 10px; }
.quick .btn { min-height: 34px; }
/* client: QR and the way to the salon */
.qr-box { background: #fff; border-radius: 18px; padding: 18px; margin: 14px auto; max-width: 280px; }
.qr-box svg { width: 100%; height: auto; display: block; }
.reason-list .item { cursor: pointer; }

/* gift card with the buyer's photo */
.gift.has-photo { aspect-ratio: auto; padding-top: 0; gap: 10px; }
.gift .g-photo { display: block; width: calc(100% + 40px); margin: 0 -20px 14px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

.prefs-line { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--sunk); font-size: 14px; display: grid; gap: 3px; }
.guest-line { margin-top: 8px; font-size: 14px; }

/* home: «не знаю, что выбрать» and the points goal */
.pick-help, .points-goal { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; margin-top: 14px; padding: 14px 16px; border-radius: var(--r-lg); border: 1px dashed var(--euca); background: var(--euca-soft); color: inherit; cursor: pointer; }
.points-goal { border-style: solid; border-color: var(--line); background: var(--card); }
.pick-help .grow, .points-goal .grow { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.quiz-res { display: grid; gap: 10px; }
.plan-save { display: inline-block; margin: 4px 0 6px; padding: 3px 10px; border-radius: 999px; background: var(--euca-soft); color: var(--euca); font-size: 13px; font-weight: 600; }

/* master's day: the total in big numbers, the visit going on now */
.day-total { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 6px; }
.day-total > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; display: flex; flex-direction: column; }
.day-total b { font-size: 17px; line-height: 1.2; font-weight: 600; font-variant-numeric: proportional-nums; letter-spacing: 0; font-family: var(--ui); }
.day-total span { font-size: 12.5px; color: var(--ink-3); }
.now-card { margin: 8px 0; padding: 12px 14px; border-radius: var(--r-md); background: var(--euca-soft); font-size: 14.5px; }
.now-card.soon { background: var(--amber-soft); }
.now-bar { height: 4px; border-radius: 4px; background: rgba(0,0,0,.08); margin-top: 8px; overflow: hidden; }
.now-bar i { display: block; height: 100%; background: var(--euca); }

/* booking history in the admin card */
.history { padding: 12px 16px; }
.hist { list-style: none; margin: 0; padding: 0; }
.hist li { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.4; }
.hist li:last-child { border-bottom: 0; }
.hist-at { color: var(--ink-3, var(--muted)); font-size: 12.5px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.hist-who { color: var(--ink-3, var(--muted)); font-size: 12.5px; }
.kpi-rule + .kpi-rule { border-top: 1px solid var(--line); }
.kpi-items { display: grid; gap: 4px; padding: 0 0 10px 20px; }
.kpi-items .row { gap: 10px; }
.till-row { width: 100%; padding: 6px 0; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 6px; }
.till-row:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.op-item[data-b] { cursor: pointer; }
.num.neg { color: var(--danger, #c0574b); }
.addon-pick { padding: 4px 16px 12px; }
.addon-opt { margin-top: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.addon-new summary { cursor: pointer; color: var(--accent, var(--gold)); padding: 12px 0 4px; font-weight: 500; list-style: none; }
.addon-new summary::-webkit-details-marker { display: none; }
.wait-btn { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin: 22px 0 18px; padding: 16px 18px; border-radius: var(--r-lg); border: 1px dashed var(--euca); background: var(--euca-soft); color: inherit; font: 500 15px var(--ui); cursor: pointer; }
.wait-btn .sub { display: block; margin-top: 3px; font-weight: 400; font-size: 13px; color: var(--ink-3); }

.pick-help.in-main { display: none; }

/* masters' photos in one look, whatever light they were taken in: the same crop, a soft brand grade
   (less colour, a little warmth), a deep-green fade at the bottom and a thin gold frame */
.master-ph { position: relative; overflow: hidden; border-radius: 14px; background: #123A31; isolation: isolate; }
.master-ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; filter: grayscale(.55) sepia(.22) saturate(.9) contrast(1.06) brightness(.97); transition: filter .4s; }
.master-ph::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 58, 49, 0) 55%, rgba(11, 31, 26, .55) 100%), radial-gradient(120% 90% at 50% 30%, transparent 55%, rgba(11, 31, 26, .35) 100%);
  box-shadow: inset 0 0 0 1px rgba(217, 184, 113, .35); mix-blend-mode: normal; }
.master-ph::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: #1E4A40; mix-blend-mode: soft-light; opacity: .45; border-radius: inherit; }
.master-card:hover .master-ph img, .master-card:focus-visible .master-ph img { filter: grayscale(.2) sepia(.12) contrast(1.04); }

/* cancelling: the nearest free times with the same master */
.alt-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.alt-slot { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: inherit; font: inherit; cursor: pointer; text-align: left; }
.alt-slot .d { font-size: 13px; color: var(--ink-3); }
.alt-slot b { font-size: 18px; font-weight: 600; }
.alt-slot:active { transform: scale(.98); }
.alt-slot:disabled { opacity: .5; }
.done-hero { margin: 22px 0 14px; }
.btns-col { display: flex; flex-direction: column; gap: 8px; }
.card.unreliable { margin-top: 12px; border-color: color-mix(in srgb, var(--danger, #C0392B) 35%, var(--line)); }
.badge.pair { background: var(--euca-soft); color: var(--euca); }

/* a hotel guest (came by the QR code in the room) */
.hotel-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 14px; margin: 12px 0; border-radius: 16px; background: var(--euca-soft); }
.hotel-banner .grow { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; }
.hotel-banner .stay { display: flex; flex-direction: column; gap: 2px; }
.hotel-banner .stay .input { padding: 6px 10px; min-height: 0; width: 150px; }
.tz-note { margin: 6px 0 0; }
.badge.hotel { background: var(--amber-soft); color: var(--ink-2); }

.partner-row { align-items: flex-start; gap: 12px; }
.qr-mini { width: 76px; height: 76px; flex: 0 0 76px; border-radius: 10px; overflow: hidden; background: #fff; }
.qr-mini svg { width: 100%; height: 100%; display: block; }
.copy-line { display: flex; gap: 8px; align-items: center; }
.copy-line code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; padding: 8px 10px; border-radius: 10px; background: var(--sunk); }

/* staff shifts: list by day, flags, actions (shifts-admin.js) */
.tap44 { min-height: 44px; }
.mt-8 { margin-top: 8px; }
.tabs44 button { min-height: 44px; }
.shift-day { font: 600 13px/1.3 var(--ui); color: var(--ink-2); margin: 20px 0 8px; text-transform: none; }
.shift-row { min-height: 56px; align-items: flex-start; }
.shift-row .end { padding-top: 1px; }
.shift-row .chev { align-self: center; }
.shift-row-wrap + .shift-row-wrap { border-top: 1px solid var(--line); }
.shift-flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.shift-flags .badge { white-space: normal; }
.shift-acts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.shift-acts .btn { flex: 1 1 auto; }
.shift-attn { display: block; width: 100%; text-align: left; border: 0; cursor: pointer; min-height: 44px; margin-top: 12px; font: inherit; font-size: 13.5px; }
.shift-people { gap: 6px; }
.shift-total { font: 20px/1.2 var(--display); font-variant-numeric: tabular-nums; }
.shift-log { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.shift-log li { padding-left: 10px; border-left: 2px solid var(--line); overflow-wrap: anywhere; }
.toast-undo { min-height: 44px; padding: 0 10px; margin-right: -10px; }
.on-shift { color: var(--ok); }
.shift-link { min-height: 44px; display: inline-flex; align-items: center; padding: 0; margin: -4px 0 4px; }
.shift-people .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* settings → salon: opening hours */
.hours-row { display: grid; grid-template-columns: minmax(130px, 1fr) 1fr auto 1fr; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.hours-row:last-of-type { border-bottom: 0; }
.hours-row input[type=time] { min-width: 0; }
.hours-row input:disabled { opacity: .4; }

/* settings → services: categories fold */
.svc-cat { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); margin-top: 10px; padding: 0 12px; }
.svc-cat > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 2px; cursor: pointer; }
.svc-cat > summary::-webkit-details-marker { display: none; }
.svc-cat > summary .h3 { flex: 1; margin: 0; }
.svc-cat > summary .chev { transition: transform .15s; }
.svc-cat[open] > summary .chev { transform: rotate(90deg); }
.svc-cat[open] { padding-bottom: 12px; }

/* settings → rules: folding groups with a one-line summary */
details.rule-grp { margin-top: 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
details.rule-grp summary { display: flex; gap: 12px; align-items: center; padding: 12px 14px; cursor: pointer; list-style: none; }
details.rule-grp summary::-webkit-details-marker { display: none; }
details.rule-grp summary .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
details.rule-grp summary .small { line-height: 1.35; }
details.rule-grp[open] summary .chev { transform: rotate(90deg); }
details.rule-grp[open] summary .small { display: none; }
.rule-ico { flex: 0 0 36px; height: 36px; border-radius: 11px; background: var(--sunk); color: var(--euca); display: grid; place-items: center; }
.rule-ico .ico-svg { width: 20px; height: 20px; }
[data-theme="dark"] .rule-ico { color: var(--gold); }
.rule-body { padding: 0 14px 14px; border-top: 1px solid var(--line); }
.rule-body > .field:first-child, .rule-body > .toggle-row:first-child { margin-top: 10px; }

/* settings → «Команда» */
.team-top { margin: 14px 0 10px; gap: 10px; flex-wrap: wrap; }
.team-top .chips { margin: 0; }
.team-row .role-tags { margin-top: 5px; }
.team-row .sub { margin-top: 4px; }
.invite-card { margin-top: 10px; }
.person-actions { display: grid; gap: 8px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }

/* subscription perks in the plan editor */
.perk-list { display: grid; gap: 8px; }
.perk-row { border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; background: var(--sunk); }
.perk-row .btn-ghost { padding: 2px 8px; min-height: 0; }

/* booking in a browser without Telegram (public/guest.js) */
.guest-in { max-width: 460px; margin: 0 auto; padding: 18px 16px 40px; }
.guest-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.guest-form { margin-top: 18px; }
.guest-form .small { margin-top: 12px; }
.guest-err { color: var(--danger, #b42318); }
.guest-go { width: 100%; margin-top: 16px; }
.guest-tg { text-align: center; margin-top: 18px; }
