/* K S Hair Studios admin. Her colours: white pages, baby blue #a9d3ee, plum #6a1b71 buttons, black. Playfair Display headings, Open Sans body (the same type as melr-admin). */
:root {
    --blue: #a9d3ee; --blue-soft: #e8f3fa; --plum: #6a1b71; --plum-dark: #521557; --ink: #111; --muted: #5d5d66; --line: #e3e3ea;
    --bg: #fafafc; --card: #fff; --danger: #b42318; --danger-soft: #fdeceb; --success: #1a7f4b; --success-soft: #e6f5ec; --warning: #9a6700; --warning-soft: #fff4d6; --info-soft: var(--blue-soft);
    --radius: 12px; --sidebar: 240px; --tabbar: 64px; --topbar: 56px; --focus: 0 0 0 3px #fff, 0 0 0 5px var(--plum);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; color: var(--ink); background: var(--bg); }
h1, h2, h3, p { margin: 0; }
a { color: var(--plum); }
img { max-width: 100%; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
[hidden] { display: none !important; }

/* ── Shell ───────────────────────────────────────────────── */
.shell { padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-top: var(--topbar); }
.sidebar { display: none; }
.topbar { position: fixed; inset: 0 0 auto 0; height: var(--topbar); display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; background: var(--ink); color: #fff; z-index: 20; padding: 0 8px; padding-top: env(safe-area-inset-top); box-sizing: content-box; }
.topbar__title { text-align: center; font-weight: 500; }
.topbar__brand { font-family: 'Playfair Display', Georgia, serif; color: var(--blue); text-align: center; }
.topbar__icon { color: #fff; width: 44px; height: 44px; display: grid; place-items: center; text-decoration: none; }
.tabbar { position: fixed; inset: auto 0 0 0; height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #fff; border-top: 1px solid var(--line); z-index: 20; }
.tabbar__link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); text-decoration: none; background: none; border: 0; font: inherit; font-size: 13px; cursor: pointer; min-height: 48px; }
.tabbar__link[aria-current] { color: var(--plum); font-weight: 600; }
.tabbar__icon { font-size: 19px; }
.main { padding: 20px 16px 40px; margin: 0 auto; }
.main--narrow { max-width: 760px; }
.main--booking { max-width: 1100px; }
@media (min-width: 992px) { .main--booking { padding-inline: 2.5rem; } }
.appt--link { display: block; color: inherit; text-decoration: none; }
.appt--link:hover { border-color: var(--plum); }
a.day-booking__summary { display: flex; color: inherit; text-decoration: none; cursor: pointer; }

@media (min-width: 992px) {
    .shell { padding: 0 0 0 var(--sidebar); }
    .topbar, .tabbar { display: none; }
    .sidebar { display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: var(--ink); color: #fff; padding: 24px 14px; gap: 24px; }
    .sidebar__brand { flex-shrink: 0; text-decoration: none; display: flex; flex-direction: column; gap: 4px; padding: 0 10px; }
    .sidebar__name { font-family: 'Playfair Display', Georgia, serif; font-size: 22px; color: #fff; line-height: 1.15; }
    .sidebar__nav { display: flex; flex-direction: column; gap: 4px; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #555 transparent; }
    .sidebar__foot { flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid #333; padding-top: 14px; }
    .sidebar__link { display: flex; align-items: center; gap: 12px; color: #d9d9df; text-decoration: none; padding: 12px; border-radius: 10px; min-height: 46px; }
    @media (max-height: 820px) { .sidebar { padding-top: 16px; padding-bottom: 12px; gap: 14px; } .sidebar__link { min-height: 40px; padding: 9px 12px; } }
    .sidebar__link:hover { background: #222; color: #fff; }
    .sidebar__link[aria-current] { background: var(--blue); color: var(--ink); font-weight: 600; }
    .sidebar__link i { width: 20px; text-align: center; }
    .main { padding: 36px 40px 60px; }
}
.sidebar__who { color: #9a9aa5; font-size: 14px; padding: 6px 12px 0; }
.auth-card__link { display: block; text-align: center; margin-top: 16px; }
.sidebar__tag, .auth__brand .sidebar__tag { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }

/* ── Page furniture ──────────────────────────────────────── */
.page-head { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.page-head__title { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: 30px; line-height: 1.15; }
.page-head__subtitle { color: var(--muted); margin-top: 4px; }
.page-head__actions { display: flex; gap: 10px; }
.section { margin-top: 28px; }
.section__title { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: 22px; margin-bottom: 12px; }
.section__more { margin-top: 10px; }
.back-link { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 14px; color: var(--plum); text-decoration: none; font-weight: 500; min-height: 44px; }
@media (max-width: 991px) { .back-link { display: none; } }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; background: #fff; color: var(--ink); }
.button--dark { background: var(--plum); color: #fff; }
.button--dark:hover { background: var(--plum-dark); }
.button--ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.button--ghost:hover { border-color: var(--plum); color: var(--plum); }
.button--danger { background: var(--danger); color: #fff; }
.button--danger-ghost { border-color: #f0c4c0; color: var(--danger); background: #fff; }
.button--danger-ghost:hover { background: var(--danger-soft); }
.button--small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.button--block { width: 100%; }
.button[disabled] { opacity: .6; cursor: progress; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; }
.button-row--stack { flex-direction: column; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: #eee; color: #444; white-space: nowrap; }
.pill[data-tone="success"] { background: var(--success-soft); color: var(--success); }
.pill[data-tone="warning"] { background: var(--warning-soft); color: var(--warning); }
.pill[data-tone="danger"] { background: var(--danger-soft); color: var(--danger); }
.pill[data-tone="info"] { background: var(--blue-soft); color: #1d5a82; }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: var(--blue-soft); margin: 0 0 16px; }
.notice[data-tone="error"] { background: var(--danger-soft); color: #7a1a12; }
.notice[data-tone="success"] { background: var(--success-soft); color: #14552f; }
.notice[data-tone="warning"] { background: var(--warning-soft); }
.notice i { margin-top: 3px; }

.empty-state { text-align: center; padding: 44px 20px; background: var(--card); border: 1px dashed #cfd3dc; border-radius: var(--radius); }
.empty-state__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--blue-soft); color: var(--plum); font-size: 22px; margin-bottom: 12px; }
.empty-state__title { font-family: 'Playfair Display', Georgia, serif; font-size: 21px; margin-bottom: 6px; }
.empty-state__text { color: var(--muted); max-width: 440px; margin: 0 auto 18px; }
.empty-state--page { border: 0; background: none; padding-top: 80px; }

/* ── Tabs, chips, search ─────────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 22px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.tabs a { padding: 12px 16px; text-decoration: none; color: var(--muted); font-weight: 500; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -2px; min-height: 48px; display: inline-flex; align-items: center; }
.tabs a[aria-current] { color: var(--plum); border-bottom-color: var(--plum); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
@media (max-width: 767px) { .chips--scroll { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 4px 16px 10px; scrollbar-width: thin; } .chips--scroll .chip { flex: none; } }
.chip { display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-height: 40px; }
.chip[aria-current] { background: var(--plum); color: #fff; border-color: var(--plum); }
.chip__count { opacity: .7; font-size: 13px; }
.search-bar { position: relative; }
.search-bar i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-bar .field__input { padding-left: 44px; }

/* ── Lists ───────────────────────────────────────────────── */
.list, .sortable-list { display: flex; flex-direction: column; gap: 10px; }
.sort-hint { margin: 14px 0 10px; }
.menu-item, .panel-toggle { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.menu-item { display: flex; align-items: stretch; }
.menu-item__main { flex: 1; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 6px; color: inherit; text-decoration: none; min-width: 0; min-height: 64px; }
.menu-item__main:hover { background: var(--blue-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.menu-item__main > i { color: var(--muted); margin-left: auto; }
.catalog-row { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.catalog-row__text { display: flex; flex-direction: column; font-weight: 600; min-width: 0; flex: 1; overflow-wrap: anywhere; }
.catalog-row__text small { font-weight: 400; color: var(--muted); font-size: 15px; }
.thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; background: var(--blue-soft); flex: none; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.panel-toggle__summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; cursor: pointer; list-style: none; min-height: 64px; }
.panel-toggle__summary::-webkit-details-marker { display: none; }
.panel-toggle__chevron { color: var(--muted); transition: transform .15s; }
.panel-toggle[open] > .panel-toggle__summary .panel-toggle__chevron { transform: rotate(180deg); }
.panel-toggle__body { padding: 4px 18px 20px; border-top: 1px solid var(--line); }
.panel-toggle__body > :first-child { margin-top: 16px; }
.sortable-row { display: flex; align-items: flex-start; gap: 0; }
.sortable-row > .panel-toggle { flex: 1; min-width: 0; }
.sortable-row > .move { padding-top: 14px; }
.panel-toggle--alert { border-color: #e9a29c; }
.move { display: flex; flex-direction: column; justify-content: center; padding: 0 4px; flex: none; }
.move__button { width: 44px; height: 32px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; }
.move__button:hover { background: var(--blue-soft); color: var(--plum); }
.action-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 14px 0; }
.action-panel__summary { display: flex; align-items: center; gap: 10px; padding: 14px 18px; cursor: pointer; font-weight: 600; color: var(--plum); list-style: none; min-height: 56px; }
.action-panel__summary::-webkit-details-marker { display: none; }
.action-panel__body { padding: 4px 18px 20px; }
.danger-zone { margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line); }
.details { margin: 0 0 14px; }
.details__row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.details__row dt { color: var(--muted); } .details__row dd { margin: 0; text-align: right; font-weight: 500; }
.details__row--strong dd { font-weight: 700; }
.contact-line { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 12px 0; }
.contact-line a { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.address, .message-text { background: var(--bg); padding: 12px 14px; border-radius: 10px; overflow-wrap: anywhere; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-row[data-single] { grid-template-columns: 1fr; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: inherit; text-align: center; }
.stat:hover { border-color: var(--plum); }
.stat__number { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 34px; color: var(--plum); line-height: 1.1; }
.stat__label { color: var(--muted); font-size: 15px; }
.quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.quick-link { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; font-weight: 600; min-height: 64px; }
.quick-link:hover { border-color: var(--plum); }
.quick-link i { color: var(--plum); width: 24px; text-align: center; }

/* ── Forms ───────────────────────────────────────────────── */
.form { display: block; }
.form-section { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; margin-bottom: 16px; }
.form-section__title { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: 21px; margin-bottom: 14px; }
.form-grid { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0 4px; }
.field { margin-bottom: 16px; }
.field__label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field__optional { font-weight: 400; color: var(--muted); font-size: 14px; margin-left: 4px; }
.field__input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #d9d3de; border-radius: 10px; background: #fff; font: inherit; font-size: 16px; color: var(--ink); }
textarea.field__input { resize: vertical; }
.field__input:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 3px rgba(106, 27, 113, .18); }
.field__help { color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 6px; }
.field__error { display: block; color: var(--danger); font-size: 15px; font-weight: 500; margin-top: 6px; }
.field__error:empty { display: none; }
.field[data-invalid] .field__input { border-color: var(--danger); background: #fffafa; }
.field__affix { display: flex; align-items: stretch; }
.field__affix > span { display: grid; place-items: center; padding: 0 14px; background: var(--bg); border: 1.5px solid #c9ccd6; border-right: 0; border-radius: 10px 0 0 10px; color: var(--muted); }
.field__affix .field__input { border-radius: 0 10px 10px 0; }
.field__password { position: relative; }
.field__password .field__input { padding-right: 52px; }
.field__reveal { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; color: var(--muted); }
.time-hint { margin: -8px 0 14px; color: var(--plum); font-weight: 600; min-height: 1em; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 6px 0; margin-bottom: 8px; }
.check input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; }
.check__box { flex: none; width: 24px; height: 24px; border: 2px solid #9aa0ae; border-radius: 6px; display: grid; place-items: center; color: transparent; background: #fff; font-size: 13px; margin-top: 2px; }
.check input:checked + .check__box { background: var(--plum); border-color: var(--plum); color: #fff; }
.check input:focus-visible + .check__box { box-shadow: var(--focus); }
.check__label { display: flex; flex-direction: column; }
.check__label small { color: var(--muted); font-size: 14px; }
.check-list { border: 0; padding: 0; margin: 0; max-height: 360px; overflow: auto; }
.check--row { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; }
.check--row:has(input:checked) { border-color: var(--plum); background: #faf3fb; }
.more { margin-top: 8px; }
.more summary { cursor: pointer; color: var(--plum); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.more > :not(summary) { margin-top: 12px; }

/* ── Opening hours ───────────────────────────────────────── */
.hours { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.hours__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; align-items: start; }
.hours__day { grid-column: 1 / -1; margin: 0 0 8px; }
.hours__time { margin-bottom: 0; }
@media (min-width: 700px) { .hours__row { grid-template-columns: 200px 1fr 1fr; } .hours__day { grid-column: auto; margin: 0; padding-top: 10px; } }

/* ── Money: refund, cancel, sent ───────────────────────────── */
.money-box { margin: 18px 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.money-box__title { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: 18px; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }

/* ── Progress steps (Hair Academy) ───────────────────────── */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 0; margin: 14px 0 20px; }
.steps__item { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 14px; color: var(--muted); }
.steps__mark { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #c9ccd6; display: grid; place-items: center; font-size: 13px; background: #fff; }
.steps__item[data-done] { color: var(--ink); font-weight: 600; }
.steps__item[data-done] .steps__mark { background: var(--plum); border-color: var(--plum); color: #fff; }

/* ── Calendar ────────────────────────────────────────────── */
.week-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.week-nav__label { font-weight: 600; text-align: center; }
.day { margin-bottom: 22px; }
.day__title { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: 20px; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.day--today .day__title { color: var(--plum); }
.appt { margin-bottom: 8px; }
.appt--off { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--blue-soft); border-radius: var(--radius); }
.form-actions--top { margin: 0 0 12px; }
.service-group { margin: 0 0 16px; }
legend.form-section__title { padding: 0; float: none; width: auto; }

/* ── Sheets, dialogs, toasts ─────────────────────────────── */
.sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(17, 17, 17, .5); }
.sheet__panel { position: relative; background: #fff; width: 100%; max-width: 520px; border-radius: 20px 20px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); }
.sheet__panel--center { border-radius: 20px; margin: 20px; align-self: center; }
.sheet__title { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: 22px; margin-bottom: 8px; }
.sheet__text { color: var(--muted); margin-bottom: 18px; }
.sheet__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.sheet__item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px; border-radius: 12px; background: var(--bg); color: var(--ink); text-decoration: none; text-align: center; min-height: 80px; justify-content: center; }
.sheet__item[aria-current] { background: var(--blue); }
.toasts { position: fixed; z-index: 80; left: 12px; right: 12px; bottom: calc(var(--tabbar) + 16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
@media (min-width: 992px) { .toasts { bottom: 24px; align-items: flex-end; right: 24px; left: auto; } }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; padding: 12px 14px 12px 18px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); max-width: 460px; }
.toast[data-tone="error"] { background: var(--danger); }
.toast__close { background: none; border: 0; color: inherit; cursor: pointer; width: 32px; height: 32px; }

/* ── Sign-in ─────────────────────────────────────────────── */
.auth { background: linear-gradient(180deg, var(--blue-soft), #fff 60%); min-height: 100vh; }
.auth__brand { text-align: center; padding: 48px 16px 8px; display: flex; flex-direction: column; gap: 4px; }
.auth__name { font-family: 'Playfair Display', Georgia, serif; font-size: 30px; }
.auth__main { padding: 16px; }
.auth-card { max-width: 420px; margin: 16px auto; background: #fff; border-radius: 18px; padding: 28px 24px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(17, 17, 17, .06); }
.auth-card__title { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: 26px; }
.auth-card__text { color: var(--muted); margin: 6px 0 20px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Website text: hub list and repeating rows */
.list-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; }
.list-item:hover, .list-item:focus-visible { border-color: var(--plum); }
.list-item__icon { color: var(--plum); font-size: 20px; width: 28px; text-align: center; }
.list-item__text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.list-item__text small { color: var(--muted); font-size: 14px; }
.repeater { display: flex; flex-direction: column; gap: 16px; }
.repeater__rows { display: flex; flex-direction: column; gap: 16px; }
.repeater__row { padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.repeater__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.repeater__title { font-weight: 600; }
.repeater__toggle { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 6px 0; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.repeater__toggle .repeater__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repeater__toggle i { transition: transform .15s; transform: rotate(-90deg); }
.repeater__row[data-open] .repeater__toggle i { transform: none; }
.repeater__name { font-weight: 400; color: var(--muted, #6b6176); }
.repeater__row[data-fold]:not([data-open]) .repeater__head { margin-bottom: 0; }
.repeater__tools { display: flex; align-items: center; gap: 6px; }
.repeater > .button { align-self: flex-start; }
.notice-inline { padding: 10px 12px; background: var(--bg); border-radius: 10px; color: var(--muted); }

/* Clients */
.person-card { display: flex; align-items: center; gap: 14px; padding: 12px 16px; min-height: 64px; text-decoration: none; color: inherit; }
.person-card:hover, .person-card:focus-visible { border-color: var(--plum); }
.person-card__body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.person-card__body small { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.avatar { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue-soft); color: var(--plum); font-weight: 600; flex: none; }
.avatar--large { width: 60px; height: 60px; font-size: 20px; }
.profile-card { padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
.profile-card__top { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.profile-card__name { font-family: 'Playfair Display', Georgia, serif; font-size: 26px; margin: 0; }
.profile-card__notes { margin: 14px 0; padding: 12px; background: var(--bg); border-radius: 10px; }
.pager { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; white-space: pre; overflow-x: auto; }

/* Client conversation */
.thread { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.thread__item { max-width: 88%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.thread__item--studio { align-self: flex-end; background: var(--blue-soft); border-color: transparent; }
.thread__item--client { align-self: flex-start; }
.thread__meta { margin: 0 0 4px; color: var(--muted); font-size: 14px; }
.thread__subject { margin: 0 0 4px; font-weight: 600; }
.thread__body { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 600px) { .thread__item { max-width: 100%; } }

/* Table editor */
.grid-editor__scroll { position: relative; overflow-x: auto;   /* relative: keeps hidden labels inside the scroll box, so the page stays phone width */ border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.grid-editor__table { border-collapse: collapse; width: 100%; }
.grid-editor__table th, .grid-editor__table td { padding: 6px; vertical-align: middle; white-space: nowrap; }
.grid-editor__table th { background: var(--blue-soft); text-align: left; }
.grid-editor__table th > .field__input { width: calc(100% - 36px); display: inline-block; font-weight: 600; }
.grid-editor__table td .field__input { min-width: 96px; }
.grid-editor__table th .field__input { min-width: 96px; }
.grid-editor__tools { margin-top: 10px; }

/* Waiting list */
.waitlist-month__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.waitlist-month__head .section__title { margin-bottom: 0; }

/* Tabs fill the width */
.tabs a { flex: 1 1 0; justify-content: center; text-align: center; }

/* Type-to-find boxes */
.combo { position: relative; margin: 10px 0 18px; }
.combo__box { position: relative; }
.combo__input { padding-right: 46px; }
.combo__toggle { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 40px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; }
.combo__toggle:hover { background: var(--blue-soft); color: var(--plum); }
.combo__list { position: absolute; z-index: 30; left: 0; right: 0; margin: 6px 0 0; padding: 6px; list-style: none; background: #fff; border: 1.5px solid var(--plum); border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.14); max-height: 320px; overflow-y: auto; }
.combo__option { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 12px; border-radius: 8px; cursor: pointer; min-height: 44px; }
.combo__option.is-active, .combo__option:hover { background: var(--blue-soft); }
.combo__option[aria-selected="true"] .combo__label { font-weight: 600; color: var(--plum); }
.combo__meta { color: var(--muted); font-size: 14px; white-space: nowrap; }
.combo__empty { padding: 12px; color: var(--muted); }
.combo__chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 10px; padding: 0; }
.combo__none { margin: 0 0 10px; }
.chip--removable { background: var(--blue-soft); border-color: transparent; padding-right: 4px; }
.chip__remove { border: 0; background: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; color: var(--muted); }
.chip__remove:hover { background: #fff; color: var(--danger); }

/* Sizes and their lengths (Menu → Services) */
.size-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 8px; }
.size-tools .sort-hint { margin: 0; }
.size-tools__buttons { display: flex; gap: 8px; }
.size-card-wrap { margin-bottom: 0; }
.size-card .panel-toggle__body { padding-top: 6px; }
.length-form { container-type: inline-size; }
.length-form .repeater { gap: 10px; }
.length-row { display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.length-row__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; align-items: start; }
.length-row__fields > .field:first-child { grid-column: 1 / -1; }
.length-row__fields .field { margin-bottom: 8px; }
.length-row__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.length-row__bar .check { margin: 0; }
.length-row__tools { display: inline-flex; align-items: center; gap: 6px; }
@container (min-width: 520px) {
    .length-row__fields { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); }
    .length-row__fields > .field:first-child { grid-column: auto; }
}
.plain-services { margin-top: 28px; }

.length-row .field__input { padding-left: 12px; padding-right: 12px; min-width: 0; }
.length-row .field__affix > span { padding: 0 10px; }
.length-row select.field__input { padding-right: 28px; }
.page-head__actions { flex-wrap: wrap; }
.page-head__actions .button { white-space: nowrap; }

/* Calendar: a month grid with a panel for the chosen day */
.main--wide { max-width: 1180px; }
.cal-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 6px; }
.cal-toolbar .chips { margin: 0; }
.segmented--links { display: inline-flex; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; gap: 2px; }
.segmented--links .segmented__option { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 500; min-height: 44px; }
.segmented--links .segmented__option.is-on { background: var(--ink); color: #fff; }
.cal-layout { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 12px; align-items: start; }
@media (min-width: 960px) { .cal-layout { grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.cal { padding: 4px 0 10px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 10px; }
.cal__title { font-family: 'Playfair Display', Georgia, serif; font-size: 22px; margin: 0; }
.cal__nav { display: inline-flex; gap: 8px; }
.cal__arrow { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); text-decoration: none; background: #fff; }
.cal__arrow:hover, .cal__arrow:focus-visible { border-color: var(--plum); color: var(--plum); }
.cal__today { margin: 0; padding: 0 20px 6px; font-size: 15px; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.cal__dow { padding: 10px 4px; text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.cal__day { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 104px; padding: 8px 6px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); background: #fff; }
.cal__day--empty { background: var(--bg); min-height: 0; padding: 0; }
.cal__day:hover { background: #f7fbfe; }
.cal__day:focus-visible { outline: 2px solid var(--plum); outline-offset: -2px; z-index: 1; }
.cal__num { display: inline-grid; place-items: center; width: 28px; height: 28px; font-size: 15px; font-weight: 500; border-radius: 50%; }
.cal__day.is-past .cal__num { color: var(--muted); }
.cal__day.is-today .cal__num { background: var(--plum); color: #fff; font-weight: 600; }
.cal__day.is-selected { background: var(--blue-soft); box-shadow: inset 0 0 0 2px var(--plum); border-radius: 10px; z-index: 1; }
.cal__chips { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal__chip { display: block; padding: 2px 6px; border-radius: 6px; background: var(--blue-soft); color: #1d5a82; font-size: 12px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal__day.is-selected .cal__chip { background: #fff; }
.cal__chip--off { background: repeating-linear-gradient(135deg, #f1f1f4, #f1f1f4 6px, #fafafc 6px, #fafafc 12px); color: var(--muted); }
.cal__more { font-size: 12px; color: var(--muted); padding-left: 4px; }
.cal__badge { display: none; position: absolute; right: 6px; top: 8px; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--plum); color: #fff; font-size: 12px; font-weight: 600; text-align: center; }
@media (max-width: 700px) {
    .cal__day { min-height: 56px; align-items: center; padding: 6px 2px; }
    .cal__chips { display: none; }
    .cal__badge { display: block; position: static; margin-top: 2px; }
    .cal__head { padding: 12px 14px 8px; }
}
.day-panel { padding: 4px 2px; }
.day-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.day-panel__title { font-family: 'Playfair Display', Georgia, serif; font-size: 22px; margin: 0; }
.day-panel__list { display: flex; flex-direction: column; gap: 10px; }
.empty-state--small { padding: 22px 16px; }
.day-booking { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.day-booking[open] { border-color: var(--plum); }
.day-booking__summary { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: start; padding: 14px 16px; cursor: pointer; list-style: none; min-height: 64px; }
.day-booking__summary::-webkit-details-marker { display: none; }
.day-booking__time { display: flex; flex-direction: column; line-height: 1.25; }
.day-booking__time strong { font-size: 18px; }
.day-booking__time small { color: var(--muted); }
.day-booking__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; align-items: flex-start; }
.day-booking__main small { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.day-booking__main .pill { margin-top: 6px; }
.day-booking__chevron { color: var(--muted); align-self: center; transition: transform .15s; }
.day-booking[open] .day-booking__chevron { transform: rotate(90deg); }
.day-booking__body { padding: 4px 16px 16px; border-top: 1px solid var(--line); }
.day-booking__body > :first-child { margin-top: 14px; }
.day-panel__list .appt--off { background: #fff; border: 1px dashed var(--line); border-radius: 16px; padding: 12px 14px; display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }

.cal-who { display: flex; align-items: center; gap: 10px; }
.cal-who__label { font-size: 14px; font-weight: 600; color: var(--muted); }
.cal-who__select { width: auto; min-width: 190px; min-height: 44px; border-radius: 999px; padding-right: 36px; }

.service-group { padding: 0; margin: 0 0 10px; }
.service-group__summary { justify-content: flex-start; font-family: 'Playfair Display', Georgia, serif; font-size: 18px; color: var(--ink); }
.service-group__name { flex: 1; min-width: 0; }
.service-group__chevron { color: var(--muted); transition: transform .15s; }
.service-group[open] .service-group__chevron { transform: rotate(180deg); }
.service-group__count { font-family: 'Open Sans', sans-serif; font-size: 13px; }
.pill--ok { background: #e3f4e8; color: #1d6b3a; }

.choices { display: grid; gap: 8px; margin-bottom: 10px; }
.choices__row { display: flex; align-items: center; gap: 8px; }
.choices__label { flex: 1; min-width: 0; }
.choices__colour { flex: none; width: 52px; height: 46px; padding: 3px; border: 1px solid #d9d3de; border-radius: 10px; background: #fff; cursor: pointer; }
.choices__hex { flex: none; width: 108px; font-family: ui-monospace, Menlo, monospace; text-transform: lowercase; }

.live-values { margin-bottom: 16px; }
.live-values__list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.live-value { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; cursor: pointer; min-height: 52px; }
.live-value:hover, .live-value:focus-visible { border-color: var(--plum); }
.live-value code, .token-menu__item code { color: var(--plum); font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.live-value__label, .token-menu__label { grid-column: 1; color: var(--muted); font-size: 13px; }
.live-value__value, .token-menu__value { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 14px; font-weight: 600; }
.token-menu { position: absolute; z-index: 60; max-height: 260px; overflow-y: auto; overscroll-behavior: contain; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18); }
.token-menu[hidden] { display: none; }
.token-menu__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; width: 100%; min-height: 48px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.token-menu__item[aria-selected="true"], .token-menu__item:hover { background: var(--blue-soft); }

/* ── Orders and Bags ── */
.panel-card { padding: 18px; border-radius: var(--radius); }
.card__title { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: 19px; margin-bottom: 10px; }
.card--link { padding: 14px 16px; border-radius: var(--radius); display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.card--link:hover, .card--link:focus-visible { border-color: var(--plum); }
.card__chevron { color: var(--muted); margin-left: auto; }
.card__pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.order-card__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue-soft); color: var(--plum); font-size: 18px; }
.order-card__body { min-width: 0; flex: 1; }
.order-card__name { font-weight: 600; overflow-wrap: anywhere; }
.order-card__meta { color: var(--muted); font-size: 14px; }
.detail-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 992px) { .detail-layout { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.hero-card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 20px; }
.hero-card__top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.hero-card__ref { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.hero-card__when { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: 26px; line-height: 1.2; margin: 4px 0; color: #fff; }
.hero-card__sub { color: #d9d9df; font-size: 14px; overflow-wrap: anywhere; }
.line-items { list-style: none; margin: 0 0 12px; padding: 0; }
.line-items li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line-items small { display: block; color: var(--muted); font-size: 14px; }
.text-danger { color: var(--danger); }
.attention { border: 1px solid var(--danger); background: #fdf1f1; border-radius: var(--radius); padding: 16px; display: grid; gap: 8px; }
.attention__title { font-weight: 700; color: var(--danger); }
.tracking-line__number { font-family: ui-monospace, Menlo, monospace; font-size: 15px; }
.address { white-space: normal; }
.button-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.stack { display: grid; gap: 16px; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline__item { display: flex; gap: 12px; padding: 10px 0; position: relative; }
.timeline__item:not(:last-child)::before { content: ''; position: absolute; left: 15px; top: 40px; bottom: -6px; width: 2px; background: var(--line); }
.timeline__icon { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--plum); font-size: 13px; }
.timeline__summary { font-weight: 600; }
.timeline__message { color: var(--ink); font-size: 15px; overflow-wrap: anywhere; }
.timeline__meta { color: var(--muted); font-size: 13px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.pager__label { color: var(--muted); font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats .stat { text-align: left; }
.stat--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.stat__label { display: block; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stat--dark .stat__label { color: var(--blue); }
.stat__value { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 28px; line-height: 1.15; }
.stat__value small { font-family: 'Open Sans', sans-serif; font-size: 14px; opacity: .8; }
.stat__hint { display: block; font-size: 13px; color: var(--muted); }
.stat--dark .stat__hint { color: #d9d9df; }
.bars { display: grid; gap: 8px; }
.bars--scroll { max-height: 320px; overflow-y: auto; padding-right: 4px; }
.bar { display: grid; grid-template-columns: minmax(90px, 36%) 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.bar[data-empty] { opacity: .55; }
.bar__track { height: 10px; border-radius: 999px; background: var(--blue-soft); overflow: hidden; }
.bar__fill { display: block; height: 100%; background: var(--plum); border-radius: 999px; min-width: 2px; }
.bar__value { color: var(--muted); white-space: nowrap; }
.filter-dates { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin: 10px 0; }
.grid-cards { display: grid; gap: 16px; }
@media (min-width: 992px) { .grid-cards { grid-template-columns: 1fr 1fr; } }
.plain-list { margin: 0 0 12px; padding-left: 18px; }
.contact-row { display: flex; gap: 8px; flex-wrap: wrap; }
.avatar--muted { background: var(--blue-soft); }
.section-title { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: 20px; margin: 18px 0 8px; }

/* ── New booking ── */
.new-booking { display: grid; gap: 16px; }
.np-selected { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--blue-soft); }
.np-selected__body { flex: 1; min-width: 0; }
.np-selected__name { font-weight: 600; }
.np-selected__meta { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.np-result { text-align: left; width: 100%; }
.np-result__body { min-width: 0; }
.np-category { margin-top: 10px; }
.np-option { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.np-option .check__label { flex: 1; min-width: 0; }
.np-option__price { font-weight: 600; white-space: nowrap; }
.np-picker { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.np-picker__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.np-picker__month { font-family: 'Playfair Display', Georgia, serif; font-size: 18px; }
.np-picker__nav { display: flex; gap: 6px; }
.np-picker__weekdays, .np-picker__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.np-picker__weekdays span { text-align: center; font-size: 13px; color: var(--muted); }
.np-day { min-height: 46px; border: 1px solid var(--line); border-radius: 10px; background: #fff; display: grid; place-items: center; font: inherit; cursor: pointer; padding: 2px; }
.np-day[data-outside] { border: 0; background: none; cursor: default; }
.np-day[data-status="past"], .np-day[data-status="closed"], .np-day[data-status="full"] { color: #b5b5bd; background: var(--bg); cursor: default; }
.np-day[data-status="available"]:hover { border-color: var(--plum); }
.np-day[aria-pressed="true"] { background: var(--plum); color: #fff; border-color: var(--plum); }
.np-day[data-today] .np-day__date { text-decoration: underline; }
.np-day__count { font-size: 11px; color: var(--muted); display: block; line-height: 1; }
.np-day[aria-pressed="true"] .np-day__count { color: #fff; }
.np-slots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.np-slot { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; cursor: pointer; }
.np-slot[aria-pressed="true"] { background: var(--plum); color: #fff; border-color: var(--plum); }
.save-bar { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 -4px 16px rgba(0,0,0,.06); }
.save-bar__text { font-weight: 600; }

.bar__track { position: relative; display: block; }
.bar__fill--refund { position: absolute; left: 0; top: 0; height: 100%; background: var(--danger); opacity: .85; }
.bars__legend { margin-top: 10px; display: flex; gap: 14px; align-items: center; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--plum); margin-right: 4px; }
.legend-dot--refund { background: var(--danger); }
.breakdown { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }

.banner-editor { background: #fff; }
.banner-editor.ql-container { height: 130px; margin-bottom: 4px; }
.banner-editor .ql-editor { height: 100%; min-height: 0; overflow-y: auto; line-height: 1.5; }
.ql-toolbar.ql-snow { border-radius: 10px 10px 0 0; }
.ql-container.ql-snow { border-radius: 0 0 10px 10px; }
.when { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.when legend { padding: 0; margin-bottom: 8px; float: none; width: auto; }
.when .field__help, .banner-editor + .field__help { font-size: 14px; }
.when__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; align-items: start; }
.when__row .field { margin-bottom: 4px; }
.when__clear { grid-column: 1 / -1; justify-self: start; margin-bottom: 6px; }
.when .field__input { min-height: 48px; font-size: 16px; }
@media (min-width: 600px) { .when__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: start; } .when__clear { grid-column: auto; margin-top: 30px; } }
.banner-preview { padding: 12px 14px; background: var(--blue); color: var(--ink); border-radius: 10px; text-align: center; }
.banner-preview a { color: var(--plum); }
.banner-card__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.banner-card__name { font-weight: 600; }
.ql-container { font-family: 'Open Sans', sans-serif; font-size: 16px; }
.button-row--end { justify-content: flex-end; }

/* ── Reviews, Prepare checklist ── */
.quote-card .panel-toggle__summary > i:first-child { color: var(--plum); }
.quote-card__text, .info-card__text { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 2px; }
.quote-card__quote { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.info-card__title { font-weight: 600; overflow-wrap: anywhere; }
.sortable-row { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; }
.sortable-row .panel-toggle { flex: 1; min-width: 0; }

/* The client page: three numbers, and the appointment and order cards */
.stats--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats--3 .stat__label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.stats--3 .stat__value { display: block; font-family: 'Playfair Display', Georgia, serif; font-size: 24px; font-weight: 600; margin-top: 4px; }
.contact-row--light { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.contact-row--light .button { justify-content: center; padding-inline: 8px; min-width: 0; white-space: nowrap; }
.profile-card--detailed .profile-card__top { align-items: center; }
.profile-card__who { flex: 1; min-width: 0; }
.booking-card__time { display: flex; flex-direction: column; min-width: 54px; }
.booking-card__time strong { font-size: 18px; line-height: 1.1; }
.booking-card__time small { color: var(--muted); font-size: 14px; }
.booking-card__body, .order-card__body { flex: 1; min-width: 0; }
.booking-card__name, .order-card__name { font-weight: 600; margin: 0; }
.booking-card__meta, .order-card__meta { color: var(--muted); font-size: 15px; margin: 2px 0 6px; }
.booking-card__pills { display: flex; gap: 6px; flex-wrap: wrap; }
.order-card__icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue-soft); color: var(--plum); flex: none; }
.card__chevron { color: var(--muted); }
.tabs__badge { margin-left: 6px; background: var(--plum); color: #fff; border-radius: 999px; font-size: 12px; padding: 1px 7px; }
.tab-group .tabs { margin-top: 4px; }
.stack > *, .tab-group { min-width: 0; max-width: 100%; }   /* a wide row of tabs scrolls on its own instead of stretching the page on a phone */
