/* v3 "noir" look for the booking app: same colours and shapes as the website (see tokens.css). Loaded last. */
h1, h2, h3, .brand-name { font-family: var(--font-display); font-weight: 700; }
h1, h2 { line-height: 1.22; }
b, strong { font-weight: 600; }

/* square shapes; round only small things */
.card, .btn, .btn-small, input, select, textarea, .option, .sheet, .alert, .tile, .choice span, .tabs a, .tabs button, .tab,
.badge, .pick-card, .pick-arch, .row, .rows-cards .tile, .check-row, .sticky-bar .btn { border-radius: 0; }
.brand img, .icon-btn, .steps li span { border-radius: 50%; }

.btn { min-height: 52px; font-weight: 600; box-shadow: none; }
.btn-primary { background: var(--gold); color: var(--on-gold); border: 1px solid var(--gold); box-shadow: none; }
.btn-primary:hover { filter: none; background: color-mix(in srgb, var(--gold) 88%, var(--text)); }
.btn-outline { border: 1px solid var(--gold); color: var(--gold-text); background: transparent; }
:root[data-theme="dark"] .btn-outline { color: var(--gold-text); }
.icon-btn { border: 1px solid var(--line); background: transparent; color: var(--text); }

.site-header { background: var(--bg); box-shadow: none; border-block-end: 1px solid var(--line); }
.brand img { border: 0; padding: 0; background: transparent; }
.brand-name { font-size: 1.4rem; }

.card, .tile, .choice span, .option { box-shadow: none; border: 1px solid var(--line); background: var(--surface); }
.card-soft { background: var(--selected); }
.tile-arrow { color: var(--gold-text); }
.choice input:checked + span { border-color: var(--gold); background: var(--selected); box-shadow: 0 0 0 1px var(--gold) inset; }
:root[data-theme="dark"] .choice input:checked + span { background: var(--selected); }
.choice input:checked + span::before { border-color: var(--gold); background: radial-gradient(circle, var(--gold) 0 45%, var(--surface) 50%); }
.option[aria-pressed="true"] { border: 2px solid var(--gold); }
.tabs a, .tabs button, .tab { background: transparent; border: 1px solid var(--line); }
.tabs a[aria-current="page"] { background: transparent; border-color: var(--gold); color: var(--gold-text); }
.svc-group { font-family: var(--font-display); color: var(--gold-text); }
.price-line { font-family: var(--font-display); }
.steps li.on span { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.steps li.done span { border-color: var(--gold); color: var(--gold-text); background: transparent; }
.sticky-bar { background: var(--bg); border-block-start: 1px solid var(--line); }
.badge-warn { color: var(--gold-text); border-color: var(--gold-text); }
.alert { box-shadow: none; }
:root[data-theme="dark"] .alert-ok, :root[data-theme="dark"] .alert-error, :root[data-theme="dark"] .alert-info { color: var(--text); }

/* 1.7.2: easy-to-read type for the booking app (staff and customers use it on phones).
   One plain font everywhere, no decorative display face, a little larger, firmer weights. */
:root { --font-display: var(--font); --fs-base: 1.1875rem; }
:root[lang="ar"] { --fs-base: 1.25rem; }
body { font-weight: 500; line-height: 1.8; letter-spacing: 0; }
h1, h2, h3, .brand-name, .svc-group, .price-line, .pick-body b { font-family: var(--font); font-weight: 700; letter-spacing: 0; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.2rem; }
.btn, button, label, input, select, textarea { font-family: var(--font); font-weight: 600; }
input, select, textarea { font-size: 1.1rem; font-weight: 500; }
small, .muted, .hint, .footnote { font-size: 1rem; }

/* 1.8.0: staff screens (hairstylist "My day" and the salon desk) */
.day-summary { margin: 0 0 .6rem; color: var(--text-2); font-size: 1.05rem; font-weight: 600; }
.btn-xl { min-height: 60px; font-size: 1.2rem; font-weight: 700; }
.visit-contact .btn { min-height: 52px; padding-inline: .4rem; font-size: 1rem; }
.visit-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-size: .9rem; color: var(--text-2); }
.visit-steps li { border-block-start: 3px solid var(--line); padding-block-start: 6px; text-align: center; }
.visit-steps li.y { border-color: var(--gold); color: var(--text); font-weight: 700; }
.visit-box.visit-next { background: var(--gold); color: var(--on-gold); padding: 16px; margin-inline: -4px; border: 0; }
.visit-box.visit-next .facts a, .visit-box.visit-next h2, .visit-box.visit-next dt { color: var(--on-gold); }
.visit-box.visit-next .btn-outline { color: var(--on-gold); border-color: var(--on-gold); background: transparent; }
.visit-box.visit-next .btn-primary { background: var(--on-gold); color: var(--gold-text); border-color: var(--on-gold); }
.visit-box.visit-next .visit-steps { color: var(--on-gold); }
.visit-box.visit-next .visit-steps li { border-color: color-mix(in srgb, var(--on-gold) 35%, transparent); }
.visit-box.visit-next .visit-steps li.y { border-color: var(--on-gold); color: var(--on-gold); }
.visit-box.visit-next .finish-direct summary { color: var(--on-gold); }
.finish-direct summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--text-2); }
.close-form input { min-height: 60px; font-size: 1.5rem; font-weight: 700; }
.desk-seg { display: flex; border: 1px solid var(--line); margin-block: .4rem .8rem; }
.desk-seg a { flex: 1; text-align: center; padding: .8rem .4rem; text-decoration: none; color: var(--text); font-weight: 600; border-inline-start: 1px solid var(--line); }
.desk-seg a:first-child { background: var(--gold); color: var(--on-gold); border-inline-start: 0; }
.slot-head { display: flex; justify-content: space-between; align-items: center; font-size: 1.25rem; padding: .6rem 0; border-block-end: 1px solid var(--line); }
.badge.seats-full { color: #9B2C2C; border-color: #9B2C2C; font-weight: 700; }
:root[data-theme="dark"] .badge.seats-full { color: #E58A8A; border-color: #E58A8A; }
.salon-actions .btn { min-height: 48px; }
.desk-day .alert, .alert-info { font-weight: 600; }

/* 1.9.0: needs-attention strip, today numbers, approval page, Manage groups */
.attention { border: 1px solid var(--st-warn, var(--gold-text)); margin-block: .4rem .8rem; background: color-mix(in srgb, var(--gold) 10%, var(--bg)); }
.attention-head { display: flex; justify-content: space-between; align-items: center; padding: .6rem .9rem; font-weight: 700; color: var(--gold-text); border-block-end: 1px solid var(--gold-text); }
.attention ul { list-style: none; margin: 0; padding: 0; }
.attention li + li { border-block-start: 1px solid color-mix(in srgb, var(--gold-text) 35%, transparent); }
.attention a { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .85rem .9rem; min-height: 52px; text-decoration: none; color: var(--text); font-weight: 600; }
.attention a i { font-style: normal; color: var(--gold-text); font-size: 1.2rem; }
:root[dir="ltr"] .attention a i, html[dir="ltr"] .attention a i { transform: scaleX(-1); }
.today-stats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line); background: var(--surface); margin-block-end: .8rem; }
.today-stats div { padding: .8rem .5rem; text-align: center; }
.today-stats div + div { border-inline-start: 1px solid var(--line); }
.today-stats span { display: block; font-size: .85rem; color: var(--text-2); }
.today-stats b { display: block; font-size: 1.6rem; }
.review-card { border-color: var(--gold); }
.review-bar { position: sticky; bottom: 0; z-index: 5; display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-block-start: 1px solid var(--line); margin-block-start: 1rem; }
.manage-group { margin-block: 1.4rem; }
.manage-group h2 { margin-block-end: .1rem; }

/* 1.10.0: home-visit board */
.board-row { flex-wrap: wrap; min-width: 0; }
.board-row .row-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; flex: 1 1 100%; width: auto; min-width: 0; }
.board-row .row-actions .btn { min-height: 48px; padding-inline: .3rem; font-size: .9rem; text-align: center; line-height: 1.3; white-space: normal; min-width: 0; }

/* 1.11.0: booking page = one main button + a window per action (pure CSS, :target, no script) */
.has-actbar { padding-block-end: 190px; }
.actbar2 { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; background: var(--bg); border-block-start: 1px solid var(--line); padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.actbar2-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.actbar2-row .btn { min-height: 48px; padding-inline: .3rem; font-size: .95rem; line-height: 1.25; text-align: center; white-space: normal; }
.btn-danger-outline { background: transparent; color: #9B2C2C; border: 1px solid #9B2C2C; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 600; }
:root[data-theme="dark"] .btn-danger-outline { color: #E58A8A; border-color: #E58A8A; }
.sheetx { display: none; position: fixed; inset: 0; z-index: 80; align-items: flex-end; justify-content: center; }
.sheetx:target { display: flex; }
.sheetx-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.sheetx-panel { position: relative; width: 100%; max-width: 640px; max-height: 92dvh; overflow: auto; background: var(--surface); border-block-start: 2px solid var(--gold); padding: 18px 18px calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
.sheetx-panel h2 { margin: 0; font-size: 1.5rem; }
.sheetx-panel h3 { margin: .4rem 0 0; font-size: 1.1rem; }
.sheetx-panel form + form { border-block-start: 1px solid var(--line); padding-block-start: 12px; }

/* 1.12.0: bottom tab bar on phones (the top menu takes over from 768px) */
.tabbar { display: none; }
@media (max-width: 767px) {
    .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 30; background: var(--surface); border-block-start: 1px solid var(--line); padding-block-end: env(safe-area-inset-bottom); }
    .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 64px; padding: 6px 2px; text-decoration: none; color: var(--text-2); font-size: .8rem; font-weight: 600; line-height: 1.2; text-align: center; }
    .tabbar a[aria-current="page"] { color: var(--gold-text); box-shadow: inset 0 3px 0 var(--gold); }
    body:has(.tabbar) { padding-block-end: calc(72px + env(safe-area-inset-bottom)); }
    body:has(.actbar2) .tabbar { display: none; }
    body:has(.actbar2) { padding-block-end: 0; }
}

/* 1.13.0: day / week views */
.vs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); margin-block-end: 10px; }
.vs a { text-align: center; padding: 12px 0; font-weight: 600; color: var(--text-2); text-decoration: none; min-height: 48px; display: flex; align-items: center; justify-content: center; }
.vs a.on { background: var(--gold); color: var(--on-gold, #14110F); }
.dn { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; border: 1px solid var(--line); background: var(--surface); margin-block-end: 12px; }
.dn > a { display: flex; align-items: center; justify-content: center; min-height: 56px; font-size: 1.6rem; color: var(--gold-text); text-decoration: none; }
.dn .m { display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; border-inline: 1px solid var(--line); padding: 6px; text-align: center; }
.dn .m small { font-weight: 500; color: var(--text-2); font-size: .8rem; }
.dn-today { margin: 0 0 12px; text-align: center; }
.dwk { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--line); background: var(--surface); padding: 12px; margin-block-end: 8px; text-decoration: none; color: var(--text); }
.dwk.td { border-color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); }
.dwk .d { color: var(--text-2); font-size: .85rem; line-height: 1.3; display: block; }
.dwk .d b { display: block; font-size: 1.5rem; color: var(--text); }
.dwk .t { display: block; font-size: .85rem; color: var(--text-2); margin-block-start: 6px; }
.dwk .c { font-weight: 700; text-align: end; }
.dwk .c small { display: block; font-weight: 500; color: var(--text-2); font-size: .75rem; }
progress.bar { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border: 1px solid var(--line); background: transparent; display: block; }
progress.bar::-webkit-progress-bar { background: transparent; }
progress.bar::-webkit-progress-value { background: var(--gold); }
progress.bar::-moz-progress-bar { background: var(--gold); }
progress.bar.full::-webkit-progress-value { background: #B5453A; }
progress.bar.full::-moz-progress-bar { background: #B5453A; }
.wk-tabs { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.wk-tab { min-width: 0; font-size: .66rem; overflow: hidden; }
@media (max-width: 767px) { body:has(.tabbar) .icon-btn[href$="/account"] { display: none; } }

/* Theme button shows the mode you will switch TO (dark screen: sun, light screen: moon) */
:root[data-theme="light"] .icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: block; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }

/* 1.14.0: Home | Salon switch next to the logo (current app filled with its colour) */
.mode-switch { margin: 0; flex: none; }
.mode-seg { display: grid; grid-template-columns: auto auto; border: 1px solid var(--line); height: 30px; }
.mode-seg .seg { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 9px; font: inherit; font-size: .78rem; font-weight: 700; color: var(--text-2); background: transparent; border: 0; border-radius: 0; cursor: pointer; white-space: nowrap; min-height: 0; }
.mode-seg .seg.on.seg-home { background: var(--gold); color: var(--on-gold); }
.mode-seg .seg.on.seg-salon { background: var(--st-ok); color: var(--bg); }
.mode-seg button.seg:hover { color: var(--text); }

/* 1.15.0: quick amount buttons in the Close window */
.qamounts { display: flex; flex-direction: column; gap: 6px; margin-block: -4px 8px; }
.qrow { display: flex; flex-wrap: wrap; gap: 8px; }
.qrow5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.qchip { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; padding: 4px 10px; background: transparent; color: var(--gold-text); border: 1px solid var(--gold); border-radius: 0; font: inherit; cursor: pointer; line-height: 1.25; min-width: 0; }
.qchip b { font-size: 1.15rem; font-weight: 700; }
.qchip small { font-size: .72rem; font-weight: 500; opacity: .85; }
.qchip[aria-pressed="true"] { background: var(--gold); color: var(--on-gold); }

/* 1.15.0: salon booking card */
.scard { list-style: none; border: 1px solid var(--line); background: var(--surface); padding: 14px; display: flex; flex-direction: column; gap: 10px; margin-block-end: 10px; }
.scard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.scard-who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.scard-name { font-size: 1.3rem; line-height: 1.3; overflow-wrap: anywhere; }
.scard-who small, .scard-notes small { color: var(--text-2); }
.scard-manage { flex: none; border-color: var(--gold-text); color: var(--gold-text); font-weight: 700; }
.scard-phone { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 1.1rem; }
.scard-notes { display: flex; flex-direction: column; gap: 4px; border-block-start: 1px dashed var(--line); padding-block-start: 8px; line-height: 1.6; }
.scard-actions { display: flex; flex-direction: column; gap: 8px; }
.scard-actions form { margin: 0; display: flex; }
.scard-actions form .btn, .scard-actions > a.btn { width: 100%; justify-content: center; }
.scard-main { min-height: 54px; font-size: 1.2rem; font-weight: 700; display: inline-flex; align-items: center; text-decoration: none; }
.scard-sec { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.scard-sec .btn { min-height: 46px; }
.scard-wa { border: 1px solid var(--line); }
.scard-wa summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; list-style: none; }
.scard-wa summary::-webkit-details-marker { display: none; }
.scard-wa summary span { color: var(--text-2); font-size: .9rem; }
.scard-wa summary span::after { content: " ▾"; }
.scard-wa[open] summary span::after { content: " ▴"; }
.scard-wa-btns { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 12px; }

/* Pearl light mode (1.17.0 / 1.12.0): ivory page, near-white cards, soft lines, ink main buttons. Dark mode is unchanged. */
:root[data-theme="light"] .btn-primary:not(.pub-flip *):not(.visit-next *) { background: #2A2420; border-color: #2A2420; color: #FFFDF8; }
:root[data-theme="light"] .btn-primary:not(.pub-flip *):not(.visit-next *):hover { background: #3A322C; }
:root[data-theme="light"] .card, :root[data-theme="light"] .tile, :root[data-theme="light"] .scard { box-shadow: 0 1px 0 #fff inset, 0 6px 18px -12px rgba(60, 40, 20, .35); }

/* 1.18.0: each client card stands out from the next (thick status bar, brighter card, wider gap) */
.scard { background: color-mix(in srgb, var(--surface) 86%, var(--text) 14%); border-inline-start: 7px solid var(--gold); margin-block-end: 20px; }
.scard-arrived { border-inline-start-color: var(--st-ok); }
.scard-done { border-inline-start-color: var(--text-2); }
.scard-no_show { border-inline-start-color: var(--st-danger); }
:root[data-theme="light"] .scard { background: var(--surface); border-color: #CDBFA8; border-inline-start-color: var(--gold); }
:root[data-theme="light"] .scard-arrived { border-inline-start-color: var(--st-ok); }
:root[data-theme="light"] .scard-done { border-inline-start-color: var(--text-2); }
:root[data-theme="light"] .scard-no_show { border-inline-start-color: var(--st-danger); }

/* 1.20.0: staff screens redesign (mockup 16): time first, one-tap tiles, day timeline */
.bsum { background: var(--surface); border: 1px solid var(--line); border-inline-start: 7px solid var(--gold); padding: 14px 16px; display: grid; gap: 12px; margin-block-end: 14px; }
.bsum.st-confirmed, .bsum.st-completed { border-inline-start-color: var(--st-ok); }
.bsum.st-pending { border-inline-start-color: var(--st-warn, var(--gold)); }
.bsum.st-cancelled, .bsum.st-declined, .bsum.st-no_show, .bsum.st-no_answer { border-inline-start-color: var(--st-danger); }
.bsum-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.bigtime { font-size: 2.6rem; font-weight: 700; line-height: 1; letter-spacing: -.5px; color: var(--text); }
.bsum-side { display: grid; gap: 4px; justify-items: end; text-align: end; }
.bsum-side small { color: var(--text-2); font-size: .9rem; }
.in-soon { color: var(--st-ok) !important; font-weight: 700; font-size: .95rem !important; }
.bsum .who { margin: 0; display: grid; gap: 2px; }
.bsum .who b { font-size: 1.3rem; }
.bsum .who small { color: var(--text-2); font-size: .95rem; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tile-a { appearance: none; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 64px; padding: 8px 4px; border: 1px solid var(--line); background: var(--bg); color: var(--text); text-decoration: none; font-size: .85rem; font-weight: 600; text-align: center; }
.tile-a svg { width: 22px; height: 22px; stroke: var(--gold-text, var(--gold)); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tile-a.tile-wa svg { stroke: var(--st-ok); }
.tile-a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.tiles:has(.tile-a:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bfacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--surface); margin: 0 0 14px; }
.bfacts div { padding: 10px 6px; text-align: center; min-width: 0; }
.bfacts div + div { border-inline-start: 1px solid var(--line); }
.bfacts dt { font-size: .82rem; color: var(--text-2); }
.bfacts dd { margin: 2px 0 0; font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
.bplace { border: 1px solid var(--line); background: var(--surface); padding: 12px 14px; display: grid; gap: 10px; margin-block-end: 14px; }
.bp-row { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.bp-row svg { flex: none; width: 20px; height: 20px; margin-top: 2px; stroke: var(--gold-text, var(--gold)); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bp-row span { display: grid; gap: 2px; min-width: 0; }
.bp-row small { color: var(--text-2); font-size: .88rem; }
.bnote { margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--st-warn, var(--gold)); background: color-mix(in srgb, var(--st-warn, var(--gold)) 10%, var(--bg)); display: grid; gap: 2px; line-height: 1.7; }
.bnote small { font-weight: 700; color: var(--st-warn, var(--gold-text)); }
.bnote.bnote-quiet { border-color: var(--line); background: var(--surface); }
.bnote.bnote-quiet small { color: var(--text-2); }
.bfold { border: 1px solid var(--line); background: var(--surface); padding: 0 14px; margin-block-end: 14px; }
.bfold > summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.bfold > summary::-webkit-details-marker { display: none; }
.bfold > summary::after { content: "\2039"; color: var(--text-2); font-size: 1.4rem; transition: transform .2s; }
.bfold[open] > summary::after { transform: rotate(-90deg); }
.bfold[open] { padding-block-end: 12px; }
.bfold.card { padding-inline: 14px; }
.btn-nav { gap: 10px; }
.btn-nav svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* day timeline on the home screen */
.tl { list-style: none; margin: 0; padding: 0; position: relative; display: grid; }
.tl::before { content: ""; position: absolute; inset-block: 10px; inset-inline-start: 62px; width: 2px; background: var(--line); }
.tl .st { display: grid; grid-template-columns: 54px 18px minmax(0, 1fr); gap: 6px; align-items: start; padding-block: 7px; }
.tl .st .t { font-weight: 700; text-align: end; padding-top: 12px; font-size: .95rem; }
.tl .st .d { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--gold); background: var(--bg); margin-top: 17px; position: relative; z-index: 1; }
.tl .st.now .d { background: var(--st-ok); border-color: var(--st-ok); box-shadow: 0 0 0 5px color-mix(in srgb, var(--st-ok) 22%, transparent); }
.tl .st .c { background: var(--surface); border: 1px solid var(--line); padding: 10px 12px; display: grid; gap: 8px; min-width: 0; }
.tl .st .c .row-main { display: grid; gap: 2px; }
.tl .st .c .row-main b { font-size: 1.05rem; }
.tl .st .c .row-main small { color: var(--text-2); }
/* attention: a quieter strip */
.attention-head { padding-block: .5rem; }
.attention a { min-height: 46px; padding-block: .6rem; }
/* hairstylist day: big time and bars */
.slot-card-head .visit-time { font-size: 2rem; letter-spacing: -.3px; color: var(--text); }
.visit-box.visit-next { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-inline-start: 7px solid var(--gold); margin-inline: 0; }
.visit-box.visit-next .facts a, .visit-box.visit-next h2, .visit-box.visit-next dt { color: inherit; }
.visit-box.visit-next .btn-outline { color: var(--text); border-color: var(--line); background: var(--bg); }
.visit-steps li.y { border-color: var(--st-ok); color: var(--st-ok); }
@media (max-width: 380px) { .bigtime { font-size: 2.2rem; } .tile-a { font-size: .78rem; } }
/* free slots are quiet one-line rows, so booked visits stand out */
.slot-card.st-free { padding-block: 8px; }
.slot-card.st-free > p.muted { display: none; }
.slot-card.st-free .visit-time { font-size: 1.25rem; font-weight: 600; color: var(--text-2); }
.slot-card.st-free .slot-card-head { margin: 0; }
.week-legend { display: none; }

/* 1.22.0: salon screens redesign (mockup 17): grouped desk, compact cards, stage line, chips */
.desk-day { margin-block-end: 1rem; display: grid; gap: .6rem; }
.desk-day-h { margin: .2rem 0; font-size: 1.15rem; }
.seat-strip { display: flex; align-items: center; gap: .6rem; border: 1px solid var(--line); background: var(--surface); padding: .6rem .8rem; font-size: .95rem; }
.seat-boxes { display: flex; gap: 4px; margin-inline-start: auto; }
.seat-boxes i { width: 20px; height: 14px; border: 1px solid var(--gold); display: block; }
.seat-boxes i.f { background: var(--st-ok); border-color: var(--st-ok); }
.grp-h { margin: .4rem 0 0; font-size: 1.05rem; font-weight: 700; display: flex; justify-content: space-between; align-items: baseline; }
.grp-h small { color: var(--text-2); font-weight: 400; }
.scards { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.scards .scard { margin: 0; padding: 11px 13px; gap: 10px; }
.scard-top { align-items: flex-start; }
.scard-time { font-size: 1.7rem; flex: none; }
.scard-who { min-width: 0; }
.scard-late { border-inline-start-color: var(--st-warn, var(--gold)); background: color-mix(in srgb, var(--st-warn, var(--gold)) 7%, var(--surface)); }
.scard-late .late-note { color: var(--st-warn, var(--gold-text)); font-weight: 700; }
.scard-row { display: flex; gap: 6px; align-items: stretch; position: relative; }
.scard-row > form { flex: 1; display: flex; }
.scard-row > form .btn, .scard-row > a.scard-main, .scard-row > .scard-main { flex: 1; min-height: 46px; justify-content: center; }
.scard-state { display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); color: var(--text-2); font-weight: 600; }
.scard-finish { background: var(--st-ok) !important; border-color: var(--st-ok) !important; color: #fff !important; }
:root[data-theme="dark"] .scard-finish { color: #14110F !important; }
.scard-ic { width: 46px; min-height: 46px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--bg); color: var(--gold-text, var(--gold)); cursor: pointer; list-style: none; text-decoration: none; }
.scard-ic svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.scard-ic-wa { color: var(--st-ok); }
.scard-ic:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.scard-more-box { display: none; background: var(--surface); border: 1px solid var(--line); padding: 10px; gap: 8px; grid-template-columns: minmax(0, 1fr); }
.scard-more-box form { display: flex; }
.scard-more-box form .btn, .scard-more-box > .btn { flex: 1; justify-content: center; }
.grp-fin > summary { cursor: pointer; list-style: none; }
.grp-fin > summary::-webkit-details-marker { display: none; }
.grp-fin > summary::after { content: "\2039"; color: var(--text-2); font-size: 1.3rem; }
.grp-fin[open] > summary::after { transform: rotate(-90deg); }
.grp-fin .scards { margin-block-start: .6rem; }
.stage-line { margin-block: 0 14px; }
.stage-line li.c { border-color: var(--gold); color: var(--text); font-weight: 700; }
.tiles.tiles-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.chipx { position: relative; }
.chipx input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chipx span { display: inline-flex; gap: 6px; align-items: baseline; border: 1px solid var(--line); background: var(--surface); padding: 10px 14px; font-weight: 600; min-height: 44px; align-items: center; }
.chipx span small { font-weight: 400; color: var(--text-2); }
.chipx input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.chipx input:checked + span small { color: inherit; opacity: .8; }
:root[data-theme="dark"] .chipx input:checked + span { background: var(--gold); color: #14110F; border-color: var(--gold); }
.chipx input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.field > .lab { display: block; font-weight: 600; margin-block-end: 6px; }

/* 1.23.0 home-visit reorganization */
.stage-line.stage4 { grid-template-columns: repeat(4, minmax(0, 1fr)); font-size: .88rem; }
.stage-who { margin: 6px 0 12px; color: var(--text-2); font-size: .95rem; }
.qtabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-block: .4rem .9rem; }
.qtabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--text); text-align: center; min-height: 64px; justify-content: center; }
.qtabs a b { font-size: 1.35rem; line-height: 1.1; }
.qtabs a span { font-size: .8rem; color: var(--text-2); overflow-wrap: anywhere; }
.qtabs a[aria-current="page"] { background: var(--text); border-color: var(--text); }
.qtabs a[aria-current="page"] b, .qtabs a[aria-current="page"] span { color: var(--bg); }
:root[data-theme="dark"] .qtabs a[aria-current="page"] { background: var(--gold); border-color: var(--gold); }
:root[data-theme="dark"] .qtabs a[aria-current="page"] b, :root[data-theme="dark"] .qtabs a[aria-current="page"] span { color: #14110F; }
.scard-when { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.scard-when small { color: var(--text-2); }
.badge-stage { color: var(--text-2); }
.qfilter { display: flex; gap: 8px; margin-block: .3rem .7rem; }
.qfilter input[type="search"] { flex: 1; min-width: 0; }
.qchips { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: .8rem; }
.qchips a { border: 1px solid var(--line); background: var(--surface); padding: 8px 14px; text-decoration: none; color: var(--text); font-weight: 600; min-height: 40px; display: inline-flex; align-items: center; gap: 6px; }
.qchips a[aria-current="page"] { background: var(--text); color: var(--bg); border-color: var(--text); }
:root[data-theme="dark"] .qchips a[aria-current="page"] { background: var(--gold); color: #14110F; border-color: var(--gold); }
.chipx input:disabled + span { text-decoration: line-through; opacity: .45; cursor: not-allowed; }
.daypick.js-on .daypanel { display: none; }
.daypick.js-on .daypanel.on { display: block; }
.daypanel { margin-block-start: 10px; }
.tcompare { display: flex; flex-wrap: wrap; gap: 8px 18px; border: 1px solid var(--line); background: var(--bg); padding: 10px 12px; margin-block: 6px 12px; }
.tcompare div { display: flex; flex-direction: column; }
.tcompare small { color: var(--text-2); }
.tcompare b.new { color: var(--gold-text, var(--gold)); }
.who-box summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.who-box p { margin: .3rem 0; }
.bstage { display: inline-flex; margin-inline-start: 6px; }
.day-progress { width: 100%; height: 8px; margin-block: 2px 10px; accent-color: var(--gold); }
.day-nav { grid-template-columns: auto minmax(0, 1fr) auto; }
.day-nav .btn { white-space: normal; }
.day-nav-mid { overflow-wrap: anywhere; }
p[dir="ltr"] code { overflow-wrap: anywhere; word-break: break-all; }
.limit-msg { color: var(--st-danger, #9B2C2C); font-weight: 600; margin: 6px 0 0; }
.limit-msg[hidden] { display: none; }
[data-limit][aria-invalid="true"] { border-color: var(--st-danger, #9B2C2C); }
.scard-tgl { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.scard-tgl:checked ~ .scard-more-box { display: grid; }
.scard-tgl:checked ~ .scard-row .scard-more-btn { background: var(--text); color: var(--bg); border-color: var(--text); }
:root[data-theme="dark"] .scard-tgl:checked ~ .scard-row .scard-more-btn { background: var(--gold); color: #14110F; border-color: var(--gold); }
.scard-tgl:focus-visible ~ .scard-row .scard-more-btn { outline: 3px solid var(--gold); outline-offset: 2px; }
.scard { position: relative; }

/* 1.23.4 Management page: one column, grouped cards with icon rows */
.mgroup { margin-block-start: 22px; }
.mgroup-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.mgroup-h h2 { margin: 0; font-size: 1.15rem; }
.mgroup > .muted { margin: 2px 0 10px; font-size: .9rem; }
.mlock { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--gold-text); color: var(--gold-text); padding: 2px 8px; font-size: .78rem; }
.mlock svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.mcard { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); }
.mcard li + li { border-block-start: 1px solid var(--line); }
.mrow { display: flex; align-items: center; gap: 14px; padding: 14px; min-height: 64px; color: inherit; text-decoration: none; }
.mrow:hover, .mrow:focus-visible { background: var(--sel, var(--bg)); }
.mico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; background: var(--sel, var(--bg)); color: var(--gold-text); }
.mico svg, .mchev svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mtxt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mtxt b { font-weight: 700; }
.mtxt small { color: var(--text-2); font-size: .86rem; overflow-wrap: anywhere; }
.mchev { flex: none; color: var(--text-2); }
.mchev svg { width: 18px; height: 18px; }
:root[dir="rtl"] .mchev svg { transform: scaleX(-1); }
.mhealth { margin: 0; }

/* 1.23.6 customer card on the booking page */
.ccard { background: var(--surface); border: 1px solid var(--line); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.ccard-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ccard-h h2 { margin: 0; font-size: 1.05rem; }
.ccard-h a { color: var(--gold-text); font-size: .9rem; }
.ccard-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.ccard .chip { border: 1px solid var(--line); background: var(--bg); padding: 3px 10px; font-size: .85rem; }
.ccard .chip-gold { color: var(--gold-text); border-color: var(--gold-text); }
.ccard .chip-warn { color: var(--st-warn); border-color: var(--st-warn); }
.ccard-note { margin: 0; padding: 8px 10px; background: var(--bg); border-inline-start: 3px solid var(--gold-text); font-size: .92rem; overflow-wrap: anywhere; }
.ccard-v { border-block-start: 1px solid var(--line); padding-block-start: 8px; display: flex; flex-direction: column; gap: 2px; }
.ccard-v small { color: var(--text-2); overflow-wrap: anywhere; }
.ccard-new { margin: 0; border: 1px dashed var(--line); padding: 12px; color: var(--text-2); font-size: .92rem; }

/* 1.23.7 salon settings: sections, paired fields, switches, price table, hairstylist rows */
.sform { display: flex; flex-direction: column; gap: 12px; margin-block-end: 12px; }
.sec { background: var(--surface); border: 1px solid var(--line); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; margin-block-end: 12px; }
.sform > .sec { margin-block-end: 0; }
.sec h2 { margin: 0; font-size: 1.05rem; }
.sec .field { margin: 0; }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.g2 input { width: 100%; min-width: 0; }
.swrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.sw-in { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw-track { flex: none; width: 46px; height: 26px; border-radius: 13px; background: var(--line); position: relative; transition: background .15s; }
.sw-track::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); transition: inset-inline-start .15s; }
.sw-in:checked + .sw-track { background: var(--gold-text); }
.sw-in:checked + .sw-track::after { inset-inline-start: 23px; }
.sw-in:focus-visible + .sw-track { outline: 2px solid var(--gold-text); outline-offset: 2px; }
.savebar { position: sticky; bottom: 0; background: var(--surface); border-block-start: 1px solid var(--line); padding: 10px 0; margin-inline: -14px; padding-inline: 14px; z-index: 2; }
.has-savebar .savebar { bottom: 64px; }
.ptable { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ptable th, .ptable td { padding: 4px 3px; text-align: center; font-weight: 400; }
.ptable thead th { font-size: .8rem; color: var(--text-2); }
.ptable tbody th { text-align: start; font-weight: 700; width: 34%; font-size: .92rem; overflow-wrap: anywhere; }
.ptable td input { width: 100%; min-width: 0; text-align: center; padding-inline: 2px; }
.ptable-on { display: flex; align-items: center; gap: 4px; font-weight: 400; font-size: .78rem; color: var(--text-2); }
.ptable-on input { width: auto; }
.strow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-block-start: 1px solid var(--line); padding-block-start: 10px; }
.strow-name { flex: 1 1 160px; display: flex; gap: 6px; min-width: 0; }
.strow-name input { flex: 1; min-width: 0; }
.tag { font-size: .78rem; padding: 1px 8px; border: 1px solid var(--line); color: var(--text-2); }
.tag-ok { color: var(--st-ok); border-color: var(--st-ok); }
.strow-add { border-block-start: 1px solid var(--line); padding-block-start: 10px; display: flex; flex-direction: column; gap: 8px; }
.sec .field > label { font-size: .86rem; font-weight: 500; color: var(--text-2); }
.sec .swrow b { font-size: 1rem; }
.sec .hint { font-size: .82rem; margin: 2px 0 0; }

/* 1.24.0 awwwards pass on the staff app: Waiting, Bookings, Customers (look only, same markup behaviour) */
.page-head h1 { font-size: clamp(2rem, 9vw, 2.7rem); line-height: 1.1; }
.today-stats { background: transparent; border: 0; border-block: 1px solid var(--line); margin-block: .6rem; }
.today-stats div { padding: 14px 4px; }
.today-stats b { font-size: 2.1rem; line-height: 1.05; }
.qtabs, .qchips { display: flex; flex-wrap: nowrap; gap: 20px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-block: .6rem .2rem; scrollbar-width: none; }
.qtabs::-webkit-scrollbar, .qchips::-webkit-scrollbar { display: none; }
.qtabs a, .qchips a, :root[data-theme="dark"] .qtabs a, :root[data-theme="dark"] .qchips a { flex: none; flex-direction: row; gap: 6px; min-height: 46px; padding: 10px 0; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; color: var(--text-2); white-space: nowrap; font-weight: 500; }
.qtabs a b { order: 2; font-size: .78rem; font-weight: 600; background: var(--selected); color: var(--text); padding: 0 7px; line-height: 1.6; }
.qtabs a span { font-size: 1rem; color: inherit; }
.qtabs a[aria-current="page"], .qchips a[aria-current="page"], :root[data-theme="dark"] .qtabs a[aria-current="page"], :root[data-theme="dark"] .qchips a[aria-current="page"] { background: transparent; color: var(--text); border-color: transparent; border-bottom-color: var(--text); font-weight: 700; }
.qtabs a[aria-current="page"] b, .qtabs a[aria-current="page"] span, :root[data-theme="dark"] .qtabs a[aria-current="page"] b, :root[data-theme="dark"] .qtabs a[aria-current="page"] span { color: var(--text); }
.qfilter input[type="search"] { border: 0; border-bottom: 1px solid var(--text); background: transparent; }
.scards { gap: 0; }
.scards .scard, :root[data-theme="light"] .scards .scard { background: transparent; border: 0; border-bottom: 1px solid var(--line); box-shadow: none; padding: 16px 0; margin: 0; }
.scards .scard-late { border-inline-start: 3px solid var(--st-warn, var(--gold)); padding-inline-start: 12px; }
.scard-top .scard-when { order: -1; align-items: flex-start; min-width: 4.4rem; }
.scard-time { font-size: 1.9rem; }
.scard-top .scard-who { flex: 1; }
.scard-name { font-size: 1.2rem; }
.rows-cards { grid-template-columns: 1fr; gap: 0; }
.rows-cards .tile, :root[data-theme="light"] .rows-cards .tile { background: transparent; border: 0; border-bottom: 1px solid var(--line); box-shadow: none; padding: 16px 0; }
.rows-cards .tile .row-main b { font-size: 1.15rem; }
.tile .row-time { flex: none; min-width: 4.6rem; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.tile .row-time b { font-size: 1.6rem; line-height: 1; font-weight: 700; }
.tile .row-time small { font-size: .78rem; }
.rows-cards .tile { gap: 12px; }
.tile .row-main { flex: 1; }

/* 1.25.0 awwwards pass on the staff app: Day page, Booking detail, Reports, Management (look only) */
.tabs.tabs-scroll, .tabs { gap: 20px; border-bottom: 1px solid var(--line); margin-block-end: 14px; scrollbar-width: none; }
.tabs.tabs-scroll::-webkit-scrollbar { display: none; }
.tabs a, :root[data-theme="dark"] .tabs a, :root[data-theme="light"] .tabs a { padding: 10px 0; min-height: 46px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; border-radius: 0; background: transparent; color: var(--text-2); font-weight: 500; }
.tabs a[aria-current="page"], :root[data-theme="dark"] .tabs a[aria-current="page"], :root[data-theme="light"] .tabs a[aria-current="page"] { background: transparent; border-bottom-color: var(--text); color: var(--text); font-weight: 700; }
/* day page */
.day-nav { border-block: 1px solid var(--line); padding-block: 8px; }
.day-nav-mid b { font-size: 1.25rem; }
.day-summary { font-size: 1rem; }
.day-progress { height: 3px; }
.slot-card, :root[data-theme="light"] .slot-card, :root[data-theme="dark"] .slot-card { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-inline-start: 3px solid var(--c); box-shadow: none; padding: 16px 0 16px 0; padding-inline-start: 12px; margin: 0; }
.slot-card.st-free { border-inline-start-color: transparent; opacity: .75; }
.slot-card-head .visit-time { font-size: 2rem; font-weight: 700; }
/* booking detail */
.bsum, :root[data-theme="light"] .bsum, :root[data-theme="dark"] .bsum { background: transparent; border: 0; border-block-end: 1px solid var(--text); padding: 4px 0 14px; }
.bigtime { font-size: clamp(2.6rem, 13vw, 3.4rem); }
.bfacts, :root[data-theme="light"] .bfacts, :root[data-theme="dark"] .bfacts { background: transparent; border: 0; border-block: 1px solid var(--line); }
.bfacts dd { font-size: 1.15rem; }
.bplace, :root[data-theme="light"] .bplace, :root[data-theme="dark"] .bplace { background: transparent; border: 0; border-block-end: 1px solid var(--line); padding: 4px 0 14px; }
.ccard, :root[data-theme="light"] .ccard, :root[data-theme="dark"] .ccard { background: transparent; border: 0; border-block-end: 1px solid var(--line); padding: 4px 0 14px; }
.ccard-h h2 { font-size: 1.3rem; }
/* reports */
.rep-today, .rep-kpis.card, :root[data-theme="light"] .rep-today, :root[data-theme="light"] .rep-kpis.card, :root[data-theme="dark"] .rep-today, :root[data-theme="dark"] .rep-kpis.card { background: transparent; border: 0; border-block: 1px solid var(--line); box-shadow: none; border-radius: 0; }
.rep-kpis b { font-size: 2rem; line-height: 1.05; }
.rep-kpis small { font-size: .85rem; }
main section.card > h2, .rep-today h2 { font-size: 1.35rem; border-bottom: 1px solid var(--text); padding-bottom: 8px; margin-bottom: 4px; }
main section.card:has(> h2):has(> .rows-flat), :root[data-theme="light"] main section.card:has(> h2):has(> .rows-flat), :root[data-theme="dark"] main section.card:has(> h2):has(> .rows-flat) { background: transparent; border: 0; box-shadow: none; padding-inline: 0; }
/* management */
.mgroup-h h2 { font-size: 1.5rem; border-bottom: 1px solid var(--text); padding-bottom: 8px; width: 100%; }
.mcard, :root[data-theme="light"] .mcard, :root[data-theme="dark"] .mcard { background: transparent; border: 0; }
.mrow { padding-inline: 0; }
.month-nav { flex-wrap: wrap; justify-content: center; }
.month-nav > * { min-width: 0; }

/* 1.26.0 awwwards pass on the remaining staff screens: customer detail, schedule, prices, staff, new phone booking, account, messages (look only; staff pages only via the tab bar) */
body:has(.tabbar) main .card.form, :root[data-theme="light"] body:has(.tabbar) main .card.form, :root[data-theme="dark"] body:has(.tabbar) main .card.form { background: transparent; border: 0; border-block-end: 1px solid var(--line); padding-inline: 0; }
body:has(.tabbar) main .card.form > h2, body:has(.tabbar) main .card > h2:first-child { font-size: 1.35rem; border-bottom: 1px solid var(--text); padding-bottom: 8px; }
body:has(.tabbar) main .field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), body:has(.tabbar) main .field select, body:has(.tabbar) main .field textarea { background: transparent; border: 0; border-bottom: 1px solid var(--text); padding-inline: 0; }
body:has(.tabbar) main .field label, body:has(.tabbar) main .field > .lab { font-weight: 500; color: var(--text-2); font-size: .92rem; }
/* prices (menu) */
body:has(.tabbar) main .card:has(> .cat-head), :root[data-theme="light"] body:has(.tabbar) main .card:has(> .cat-head), :root[data-theme="dark"] body:has(.tabbar) main .card:has(> .cat-head) { background: transparent; border: 0; padding-inline: 0; }
.cat-head h2 { font-size: 1.5rem; border-bottom: 1px solid var(--text); padding-bottom: 8px; margin-bottom: 4px; flex: 1 1 100%; }
.cat-actions .btn, :root[data-theme="light"] .cat-actions .btn, :root[data-theme="dark"] .cat-actions .btn, .rows-flat .row-actions .btn-small { background: transparent; border: 0; text-decoration: underline; padding-inline: 8px; min-height: 40px; color: var(--text-2); font-weight: 500; }
.rows-flat .row-main b { font-size: 1.1rem; }
.rows-flat .row { border-bottom: 1px solid var(--line); }
/* staff list + customer detail */
body:has(.tabbar) main .rows-cards .tile, body:has(.tabbar) main .rows-cards .tile-static { background: transparent; border: 0; border-bottom: 1px solid var(--line); box-shadow: none; padding: 16px 0; }
body:has(.tabbar) main .rows-cards .tile .row-main b { font-size: 1.2rem; }
body:has(.tabbar) main .card:not(.dash-block):has(> .rows-flat), :root[data-theme="light"] body:has(.tabbar) main .card:not(.dash-block):has(> .rows-flat), :root[data-theme="dark"] body:has(.tabbar) main .card:not(.dash-block):has(> .rows-flat) { background: transparent; border: 0; border-radius: 0; padding-inline: 0; }
body:has(.tabbar) main .chipx, body:has(.tabbar) main .chipset .chipx { border-radius: 0; }

/* 1.26.1 fix: the 1.25.0 big-time rule also enlarged the list cards; keep the big time for the detail summary and the top card only */
.scard .bigtime, .scard .scard-time { font-size: clamp(1.6rem, 7vw, 1.9rem); line-height: 1.1; }
.scard-top { align-items: center; gap: 12px; }
.scard-who { min-width: 0; flex: 1 1 0; }
.next-hero + p { margin-block: 10px 6px; }
.next-hero { margin-block-end: 6px; }

/* 1.27.0 Day page: flat attention strip, one-line cancelled slots, flat booked-visit block (look only) */
.attention, :root[data-theme="light"] .attention, :root[data-theme="dark"] .attention { background: transparent; border: 0; border-block: 1px solid var(--text); }
.attention-head { padding-inline: 0; }
.attention a { padding-inline: 0; }
.slot-card.st-cancelled, :root[data-theme="light"] .slot-card.st-cancelled, :root[data-theme="dark"] .slot-card.st-cancelled { padding-block: 8px; opacity: .65; border-inline-start-color: transparent; }
.slot-card.st-cancelled .slot-card-head .visit-time { font-size: 1.1rem; }
.slot-card.st-cancelled .slot-dead { text-decoration: none; margin: 0; font-size: .85rem; }
.slot-card .visit-box, .slot-card .visit-box.visit-next, :root[data-theme="light"] .slot-card .visit-box.visit-next, :root[data-theme="dark"] .slot-card .visit-box.visit-next { background: transparent; border: 0; border-top: 0; padding: 0; margin: 0; color: var(--text); }
.slot-card .visit-box h2 { font-size: 1.5rem; margin-block: 6px; }
.slot-card .facts { gap: 0; margin: 0 0 12px; }
.slot-card .facts div { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.slot-card .facts dt { font-size: .85rem; flex: 0 0 auto; }
.slot-card .facts dd { text-align: end; min-width: 0; overflow-wrap: anywhere; }
.slot-card .facts dd[dir="ltr"] { align-self: baseline; }
.slot-card .visit-box.visit-next .visit-steps, .slot-card .visit-box.visit-next .finish-direct summary, .slot-card .visit-box.visit-next .facts a, .slot-card .visit-box.visit-next dt, .slot-card .visit-box.visit-next h2 { color: var(--text-2); }
.slot-card .visit-box.visit-next h2, .slot-card .visit-box.visit-next .facts a { color: var(--text); }
.slot-card .visit-box.visit-next .visit-steps li { border-color: var(--line); }
.slot-card .visit-box.visit-next .visit-steps li.y { border-color: var(--text); color: var(--text); }
.slot-card .visit-box.visit-next .btn-outline, :root[data-theme="dark"] .slot-card .visit-box.visit-next .btn-outline, :root[data-theme="light"] .slot-card .visit-box.visit-next .btn-outline { color: var(--text); border-color: var(--line); background: transparent; }
.slot-card .visit-box.visit-next .btn-primary, :root[data-theme="dark"] .slot-card .visit-box.visit-next .btn-primary, :root[data-theme="light"] .slot-card .visit-box.visit-next .btn-primary { background: var(--text); color: var(--bg); border-color: var(--text); }

/* 1.29.0 Week page and Account page flat look (look only) */
.card.dash-block.week, :root[data-theme="light"] .card.dash-block.week, :root[data-theme="dark"] .card.dash-block.week { background: transparent; border: 0; box-shadow: none; padding-inline: 0; }
.week-head h2 { font-size: 1.5rem; }
.wk-tabs { gap: 0; border-block: 1px solid var(--line); margin-block: 10px 6px; }
.wk-tab, :root[data-theme="light"] .wk-tab, :root[data-theme="dark"] .wk-tab { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--text-2); margin-bottom: -1px; padding-block: 8px; }
.wk-tab b { font-size: 1.25rem; color: var(--text); }
.wk-tab.is-today b { color: var(--gold-text); }
.wk-dot.on { width: 6px; min-width: 6px; height: 6px; line-height: 6px; font-size: 0; background: var(--gold-text); color: transparent; }
.wk>input:nth-of-type(1):checked~.wk-tabs .wk-tab:nth-child(1), :root[data-theme="dark"] .wk>input:nth-of-type(1):checked~.wk-tabs .wk-tab:nth-child(1), :root[data-theme="light"] .wk>input:nth-of-type(1):checked~.wk-tabs .wk-tab:nth-child(1) { background: transparent; border-color: transparent; border-bottom-color: var(--gold-text); color: var(--text); }
.wk>input:nth-of-type(1):checked~.wk-tabs .wk-tab:nth-child(1) b { color: var(--gold-text); }
.wk>input:nth-of-type(1):checked~.wk-tabs .wk-tab:nth-child(1) .wk-dot.on { background: var(--gold-text); color: transparent; }
.wk>input:nth-of-type(2):checked~.wk-tabs .wk-tab:nth-child(2), :root[data-theme="dark"] .wk>input:nth-of-type(2):checked~.wk-tabs .wk-tab:nth-child(2), :root[data-theme="light"] .wk>input:nth-of-type(2):checked~.wk-tabs .wk-tab:nth-child(2) { background: transparent; border-color: transparent; border-bottom-color: var(--gold-text); color: var(--text); }
.wk>input:nth-of-type(2):checked~.wk-tabs .wk-tab:nth-child(2) b { color: var(--gold-text); }
.wk>input:nth-of-type(2):checked~.wk-tabs .wk-tab:nth-child(2) .wk-dot.on { background: var(--gold-text); color: transparent; }
.wk>input:nth-of-type(3):checked~.wk-tabs .wk-tab:nth-child(3), :root[data-theme="dark"] .wk>input:nth-of-type(3):checked~.wk-tabs .wk-tab:nth-child(3), :root[data-theme="light"] .wk>input:nth-of-type(3):checked~.wk-tabs .wk-tab:nth-child(3) { background: transparent; border-color: transparent; border-bottom-color: var(--gold-text); color: var(--text); }
.wk>input:nth-of-type(3):checked~.wk-tabs .wk-tab:nth-child(3) b { color: var(--gold-text); }
.wk>input:nth-of-type(3):checked~.wk-tabs .wk-tab:nth-child(3) .wk-dot.on { background: var(--gold-text); color: transparent; }
.wk>input:nth-of-type(4):checked~.wk-tabs .wk-tab:nth-child(4), :root[data-theme="dark"] .wk>input:nth-of-type(4):checked~.wk-tabs .wk-tab:nth-child(4), :root[data-theme="light"] .wk>input:nth-of-type(4):checked~.wk-tabs .wk-tab:nth-child(4) { background: transparent; border-color: transparent; border-bottom-color: var(--gold-text); color: var(--text); }
.wk>input:nth-of-type(4):checked~.wk-tabs .wk-tab:nth-child(4) b { color: var(--gold-text); }
.wk>input:nth-of-type(4):checked~.wk-tabs .wk-tab:nth-child(4) .wk-dot.on { background: var(--gold-text); color: transparent; }
.wk>input:nth-of-type(5):checked~.wk-tabs .wk-tab:nth-child(5), :root[data-theme="dark"] .wk>input:nth-of-type(5):checked~.wk-tabs .wk-tab:nth-child(5), :root[data-theme="light"] .wk>input:nth-of-type(5):checked~.wk-tabs .wk-tab:nth-child(5) { background: transparent; border-color: transparent; border-bottom-color: var(--gold-text); color: var(--text); }
.wk>input:nth-of-type(5):checked~.wk-tabs .wk-tab:nth-child(5) b { color: var(--gold-text); }
.wk>input:nth-of-type(5):checked~.wk-tabs .wk-tab:nth-child(5) .wk-dot.on { background: var(--gold-text); color: transparent; }
.wk>input:nth-of-type(6):checked~.wk-tabs .wk-tab:nth-child(6), :root[data-theme="dark"] .wk>input:nth-of-type(6):checked~.wk-tabs .wk-tab:nth-child(6), :root[data-theme="light"] .wk>input:nth-of-type(6):checked~.wk-tabs .wk-tab:nth-child(6) { background: transparent; border-color: transparent; border-bottom-color: var(--gold-text); color: var(--text); }
.wk>input:nth-of-type(6):checked~.wk-tabs .wk-tab:nth-child(6) b { color: var(--gold-text); }
.wk>input:nth-of-type(6):checked~.wk-tabs .wk-tab:nth-child(6) .wk-dot.on { background: var(--gold-text); color: transparent; }
.wk>input:nth-of-type(7):checked~.wk-tabs .wk-tab:nth-child(7), :root[data-theme="dark"] .wk>input:nth-of-type(7):checked~.wk-tabs .wk-tab:nth-child(7), :root[data-theme="light"] .wk>input:nth-of-type(7):checked~.wk-tabs .wk-tab:nth-child(7) { background: transparent; border-color: transparent; border-bottom-color: var(--gold-text); color: var(--text); }
.wk>input:nth-of-type(7):checked~.wk-tabs .wk-tab:nth-child(7) b { color: var(--gold-text); }
.wk>input:nth-of-type(7):checked~.wk-tabs .wk-tab:nth-child(7) .wk-dot.on { background: var(--gold-text); color: transparent; }
.wk-panel, :root[data-theme="light"] .wk-panel, :root[data-theme="dark"] .wk-panel { background: transparent; border: 0; border-radius: 0; padding-inline: 0; }
.wk-panel header { border-bottom: 1px solid var(--text); padding-bottom: 8px; }
.slot, :root[data-theme="light"] .slot, :root[data-theme="dark"] .slot { background: transparent; border-radius: 0; border-inline-start: 3px solid transparent; border-bottom: 1px solid var(--line); padding: 12px 0 12px 0; padding-inline-start: 10px; }
.slot.st-booked, .slot.st-pending { border-inline-start-color: var(--c); }
.slot.is-passed { opacity: .55; }
.slot-time { font-size: 1.05rem; }
.slot-dead { text-decoration: none; }
/* account */
main:has(.pin-input) .card, :root[data-theme="light"] main:has(.pin-input) .card, :root[data-theme="dark"] main:has(.pin-input) .card { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding-inline: 0; }
main:has(.pin-input) .card h1 { font-size: clamp(2.2rem, 10vw, 2.8rem); }
main:has(.pin-input) .card h2 { font-size: 1.35rem; border-bottom: 1px solid var(--text); padding-bottom: 8px; }
main:has(.pin-input) .facts div { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
main:has(.pin-input) .rows .row { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding-inline: 0; }
.slot, :root[data-theme="light"] .slot, :root[data-theme="dark"] .slot { grid-template-columns: 5.2rem minmax(0, 1fr) auto; }
.slot-time { white-space: nowrap; }

/* 1.30.0 flat look for the last boxed staff screens: salon booking settings, messages editor, schedule, add staff, report cards (look only; staff pages only via the tab bar) */
body:has(.tabbar) main .sec, :root[data-theme="light"] body:has(.tabbar) main .sec, :root[data-theme="dark"] body:has(.tabbar) main .sec { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding-inline: 0; padding-block: 6px 10px; margin-block-end: 8px; }
body:has(.tabbar) main .sec > h2 { font-size: 1.35rem; border-bottom: 1px solid var(--text); padding-bottom: 8px; }
body:has(.tabbar) main .sec .swrow { padding-block: 10px; border-bottom: 1px solid var(--line); }
body:has(.tabbar) main .card:not(.hero):not(.dash-block):not(.rep-kpis):not(.card-soft):not(.slot-card), :root[data-theme="light"] body:has(.tabbar) main .card:not(.hero):not(.dash-block):not(.rep-kpis):not(.card-soft):not(.slot-card), :root[data-theme="dark"] body:has(.tabbar) main .card:not(.hero):not(.dash-block):not(.rep-kpis):not(.card-soft):not(.slot-card) { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding-inline: 0; }
body:has(.tabbar) main .card.card-soft { border: 0; border-inline-start: 3px solid var(--gold); background: transparent; padding-inline: 12px; }
body:has(.tabbar) main .card:not(.hero) > h2:first-child { font-size: 1.35rem; border-bottom: 1px solid var(--text); padding-bottom: 8px; }
body:has(.tabbar) main textarea { background: transparent; border: 1px solid var(--line); }
body:has(.tabbar) main .wa-preview { background: transparent; border: 0; border-inline-start: 3px solid var(--gold); border-radius: 0; }
body:has(.tabbar) main .tag-list code { background: transparent; border: 1px solid var(--line); border-radius: 0; }

/* 1.32.0 tablet top bar: from 768 to 1099px there is no room for the salon name next to the Home | Salon switch and the menu links, so the name is hidden (as on phones) and the links tighten; the buttons always stay on screen */
@media (min-width: 768px) and (max-width: 1099px) {
    .header-row:has(.mode-switch) .brand-text { display: none; }
    .header-row:has(.mode-switch) .main-nav { min-width: 0; margin-inline-start: 8px; gap: 2px; }
    .header-row:has(.mode-switch) .main-nav a { padding-inline: 10px; white-space: nowrap; }
}

/* 1.33.0 (mockups 39 A, 40 B, 41 B, 42 A, 44 B): tab numbers on top, green only for done, dot progress line, visit panels, one-line visit header */
.qchips, :root[data-theme="dark"] .qchips { gap: 0; overflow: visible; justify-content: stretch; }
.qchips a, :root[data-theme="dark"] .qchips a, :root[data-theme="light"] .qchips a { flex: 1 1 0; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding-inline: 2px; text-align: center; }
.qchips .qn { font-size: 1.4rem; font-weight: 700; line-height: 1.1; color: var(--text); }
.qchips .ql { font-size: .95rem; font-weight: 500; color: var(--text-2); }
.qchips a[aria-current="page"] .ql { color: var(--text); font-weight: 700; }
.qchips a.q-done .qn, .qchips a.q-done .ql, :root[data-theme="dark"] .qchips a.q-done .qn, :root[data-theme="dark"] .qchips a.q-done .ql { color: var(--st-ok); }
.badge.status-completed { background: var(--ok-bg); color: var(--st-ok); border-color: var(--st-ok); font-weight: 600; }

/* progress line: four dots, only the current step word is shown (the others stay for screen readers) */
.stage-line.stage4, .slot-card .stage-line.stage4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; font-size: 1rem; margin-block: 8px 12px; }
.stage-line.stage4 li, .slot-card .stage-line.stage4 li, .visit-box.visit-next .stage-line.stage4 li { position: relative; display: flex; flex-direction: column; align-items: center; min-height: 2.9rem; padding: 0; border: 0; color: var(--text-2); font-weight: 400; text-align: center; }
.stage-line.stage4 li .dot { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); display: block; }
.stage-line.stage4 li::before { content: ""; position: absolute; top: 6px; inset-inline-start: 50%; width: 100%; height: 2px; background: var(--line); }
.stage-line.stage4 li:last-child::before { display: none; }
.stage-line.stage4 li.y .dot { background: var(--text); border-color: var(--text); }
.stage-line.stage4 li.y:not(.c)::before { background: var(--text); }
.stage-line.stage4 li.c .dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 25%, transparent); }
.stage-line.stage4 li .stg-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.stage-line.stage4 li.c .stg-l { position: static; width: auto; height: auto; overflow: visible; clip-path: none; margin-top: 8px; font-size: 1.05rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.stage-line.stage4.stage-done li .dot { background: var(--st-ok); border-color: var(--st-ok); box-shadow: none; }
.stage-line.stage4.stage-done li::before { background: var(--st-ok); }
.stage-line.stage4.stage-done li.c .stg-l { color: var(--st-ok); }
.stage-line.stage4.stage-done li.c .stg-l::before { content: "\2713\00a0"; }
.stage-who { margin: 0 0 10px; }

/* Day page: each visit is its own panel, header on one line */
.slot-card.st-booked, .slot-card.st-pending, :root[data-theme="light"] .slot-card.st-booked, :root[data-theme="light"] .slot-card.st-pending, :root[data-theme="dark"] .slot-card.st-booked, :root[data-theme="dark"] .slot-card.st-pending {
    background: color-mix(in srgb, var(--gold) 9%, var(--bg)); border: 0; border-inline-start: 4px solid var(--gold); border-radius: 2px; padding: 14px 14px 16px; margin-block: 14px; }
.slot-card.st-booked.is-done, .slot-card.st-pending.is-done, :root[data-theme="light"] .slot-card.st-booked.is-done, :root[data-theme="dark"] .slot-card.st-booked.is-done { border-inline-start-color: var(--st-ok); }
.slot-card.st-booked .facts div, .slot-card.st-pending .facts div { border-color: color-mix(in srgb, var(--text) 14%, transparent); }
.slot-card-head { flex-wrap: nowrap; gap: 10px; min-width: 0; }
.slot-card-head .visit-time, .slot-card.st-booked .slot-card-head .visit-time, .slot-card.st-pending .slot-card-head .visit-time { font-size: 1.5rem; white-space: nowrap; flex: none; }
.slot-card-head .vh-name { flex: 1 1 0; min-width: 0; margin: 0; font-size: 1.2rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot-card-head .badge, .slot-card-head .lg { flex: none; white-space: nowrap; }
.slot-card.st-free .slot-card-head { flex-wrap: wrap; }

/* 1.37.0: Bookings upcoming/past switch, day bands; Reports tab bar */
.qswitch { display: grid; grid-template-columns: 1fr 1fr; margin: 4px 0 6px; border: 1px solid var(--line); }
.qswitch a, :root[data-theme="dark"] .qswitch a, :root[data-theme="light"] .qswitch a { padding: 12px 8px; text-align: center; font-weight: 700; text-decoration: none; color: var(--text-2); background: transparent; }
.qswitch a[aria-current="page"], :root[data-theme="dark"] .qswitch a[aria-current="page"], :root[data-theme="light"] .qswitch a[aria-current="page"] { background: var(--text); color: var(--bg); }
.day-band { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0 0; padding: 12px 14px; font-size: 1.05rem; font-weight: 800; background: var(--selected); border-inline-start: 5px solid var(--gold-text); color: var(--text); }
.day-band .db-c { font-size: .85rem; font-weight: 700; opacity: .8; white-space: nowrap; }
.day-band.is-today { background: var(--text); color: var(--bg); border-inline-start-color: var(--gold); }
.day-band + .rows { margin-top: 0; }
@media (min-width: 768px) {
  .tabs.tabs-scroll { flex-wrap: wrap; overflow: visible; row-gap: 4px; }
}
@media (max-width: 767px) {
  .tabs.tabs-scroll {
    background:
      linear-gradient(to right, var(--bg) 30%, transparent) left center / 36px 100% no-repeat local,
      linear-gradient(to left, var(--bg) 30%, transparent) right center / 36px 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, color-mix(in srgb, var(--text) 28%, transparent), transparent) left center / 14px 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, color-mix(in srgb, var(--text) 28%, transparent), transparent) right center / 14px 100% no-repeat scroll;
  }
}
/* 1.37.0: on very narrow phones the booked-visit header may wrap so the Close button never leaves the screen (it wraps only when it does not fit) */
@media (max-width: 420px) {
  .slot-card .slot-card-head { flex-wrap: wrap; row-gap: 6px; }
}

/* 1.39.0: undo a rejection or cancellation */
.undo-card { margin: 14px 0; padding: 16px; border: 1.5px solid var(--gold-text); background: var(--selected); border-radius: 14px; }
.undo-card p { margin: 0 0 12px; font-weight: 600; line-height: 1.7; }

/* 1.41.0: pop-up when the phone refuses to share its location */
.lo-bg { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .55); }
.lo-bg[hidden] { display: none; }
.lo { width: 100%; max-width: 640px; max-height: 92dvh; overflow: auto; display: grid; gap: 12px; padding: 20px 18px calc(24px + env(safe-area-inset-bottom)); background: var(--surface); color: var(--text); border-block-start: 2px solid var(--gold); border-radius: 18px 18px 0 0; }
.lo h2 { margin: 0; font-size: 1.35rem; display: flex; gap: 10px; align-items: center; }
.lo p { margin: 0; line-height: 1.8; }
.lo ol { margin: 0; padding-inline-start: 1.3em; line-height: 2; font-weight: 600; }
.lo ol[hidden] { display: none; }
.lo-ico { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--selected); display: inline-flex; align-items: center; justify-content: center; }

/* 1.42.0: customer booking polish (day buttons, one summary card, photo picker) */
.day-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin: 0 -2px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; touch-action: pan-x; }
.day-strip[hidden] { display: none; }
.day-strip::-webkit-scrollbar { display: none; }
.day-chip { flex: none; min-width: 66px; min-height: 44px; padding: 10px 8px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; line-height: 1.35; text-align: center; cursor: pointer; touch-action: pan-x; }
.day-chip small { display: block; font-size: .78rem; font-weight: 600; opacity: .75; }
.day-chip b { display: block; font-size: 1.25rem; }
.day-chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.day-chip.full:not(.on) { opacity: .5; }
.day-chip.full b { text-decoration: line-through; }
.day-chip:focus-visible { outline: 3px solid var(--gold-text); outline-offset: 2px; }
.day-card[hidden] { display: none; }
.sum-card { padding: 0; }
.sum-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-block-end: 1px solid var(--line); }
.sum-row:last-child { border-block-end: 0; }
.sum-body { flex: 1; min-width: 0; }
.sum-k { font-size: .82rem; color: var(--text-2); margin-block-end: 2px; }
.sum-v { font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
.sum-s { color: var(--text-2); line-height: 1.6; overflow-wrap: anywhere; }
.sum-edit { flex: none; font-size: .9rem; font-weight: 700; padding: 2px 0 10px; }
.file-pick-on { display: flex; align-items: center; gap: 12px; border: 1.5px dashed var(--line); border-radius: var(--radius-sm); padding: 12px 14px; position: relative; }
.file-pick-on input[type="file"] { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
.file-pick-on input[type="file"]:focus-visible + .file-pick-btn { outline: 3px solid var(--gold-text); outline-offset: 2px; }
.file-pick-btn { flex: none; }
.file-pick-btn[hidden], .file-pick-name[hidden] { display: none; }
.file-pick-name { color: var(--text-2); font-size: .92rem; overflow-wrap: anywhere; min-width: 0; }
html[dir="rtl"] .sum-s { text-align: right; }
html[dir="ltr"] .sum-s { text-align: left; }
label.file-pick-btn { display: inline-flex; align-items: center; justify-content: center; margin: 0; cursor: pointer; }
label.file-pick-btn[hidden] { display: none; }

/* 1.43.0: "is this your house?" check on the map step */
.lo-snap { position: relative; block-size: 210px; overflow: hidden; border: 1.5px solid var(--line); border-radius: 12px; background: #e8e2d6; }
.lo-snap .map-tile { position: absolute; max-width: none; }
.lo-where { font-weight: 800; font-size: 1.05rem; }
.lo-where[hidden] { display: none; }
.lo-note { color: var(--text-2); font-size: .95rem; }

/* 1.44.0: staff screens polish */
.visit-next-tag { display: inline-block; margin: 0 0 8px; padding: 2px 10px; border-radius: 99px; background: var(--text); color: var(--bg); font-size: .8rem; font-weight: 700; }
.visit-fold > summary { list-style: none; cursor: pointer; display: grid; gap: 10px; padding-block-start: 10px; }
.visit-fold > summary::-webkit-details-marker { display: none; }
.visit-fold-line { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--text-2); font-size: .95rem; }
.visit-fold-btn { display: block; padding: 10px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); color: var(--gold-text); font-weight: 700; text-align: center; }
.visit-fold[open] > summary { display: none; }
.visit-fold > summary:focus-visible .visit-fold-btn { outline: 3px solid var(--gold-text); outline-offset: 2px; }
.chipset-days { flex-wrap: nowrap; overflow-x: auto; padding-block-end: 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; touch-action: pan-x; }
.chipset-days::-webkit-scrollbar { display: none; }
.chipset-days .chipx { flex: none; touch-action: pan-x; }
.chipset-days .chipx span { white-space: nowrap; }
.scard-meta { display: block; margin-block-start: 6px; color: var(--text-2); overflow-wrap: anywhere; }
body:has(.tabbar) main .slot-rows .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
body:has(.tabbar) main .slot-rows .row-main { flex: 1 1 auto; flex-direction: row; align-items: center; gap: 10px; }
body:has(.tabbar) main .slot-rows .row-main .badge { align-self: center; }
body:has(.tabbar) main .slot-rows .row-actions { flex: none; flex-wrap: nowrap; }
body:has(.tabbar) main .slot-rows .row-actions .btn { min-height: 40px; padding: 6px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 700; }
.visit-next-tag { inline-size: fit-content; justify-self: start; align-self: flex-start; }
.daypick { min-inline-size: 0; max-inline-size: 100%; }
.chipset-days { min-inline-size: 0; max-inline-size: 100%; inline-size: 100%; }

/* 1.45.0: staff booking page and week view polish */
.page-head.page-head-stack { display: block; }
.back-link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-block-end: 4px; color: var(--gold-text); font-weight: 700; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.actbar2-row { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.actbar2-row > * { min-width: 0; }
.actbar2-row form .btn { inline-size: 100%; }
.sheet-more .more-list { display: grid; gap: 10px; margin-block-end: 10px; }
.sheet-more .more-list .btn, .sheet-more .more-list form .btn { display: flex; inline-size: 100%; min-height: 52px; align-items: center; justify-content: center; }
.wk-st { display: inline-block; margin-inline-start: 6px; padding: 1px 8px; border: 1px solid currentColor; font-size: .75rem; font-weight: 700; vertical-align: middle; white-space: nowrap; }
.wk-st-ok { color: #2e7d4f; }
.wk-st-req { color: var(--gold-text); }
:root[data-theme="dark"] .wk-st-ok { color: #6FCF97; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wk-st-ok { color: #6FCF97; } }

/* 1.47.0 Reports overview (mockup 67) */
/* A: big amounts never break onto two lines */
.rep-ov .rep-kpis, .rep-kpis.rep-ov { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rep-ov .rep-kpis b, .rep-kpis.rep-ov b { white-space: nowrap; font-size: clamp(1.35rem, 7.2vw, 2rem); }
/* B: "by day": one line per day */
.rep-compact .row { padding-block: 6px; min-height: 0; }
.rep-compact .row-main { flex-direction: row; align-items: center; gap: 10px; }
.rep-compact .row-main b { flex: none; min-width: 118px; font-size: .95rem; }
.rep-compact .row-main .rep-bar { flex: 1; margin-top: 0; }
/* D: statuses with 0 are greyed out */
.row.rep-zero { opacity: .45; }

/* 1.47.0 WhatsApp message settings (mockup 68): each message folded, tap to edit */
.msg-details > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: center; }
.msg-details > summary::-webkit-details-marker { display: none; }
.msg-details > summary h2 { margin: 0; grid-column: 1; }
.msg-details > summary .msg-when { grid-column: 1; margin-block-start: 4px; }
.msg-details > summary .msg-edit { grid-column: 2; grid-row: 1 / span 2; color: var(--gold-text, var(--gold)); font-weight: 600; white-space: nowrap; }
.msg-details > summary .msg-edit::after { content: " ‹"; }
html[dir="ltr"] .msg-details > summary .msg-edit::after { content: " ›"; }
.msg-details[open] > summary .msg-edit { opacity: .55; }
.msg-details[open] > summary { margin-block-end: 12px; }

/* 1.48.0 Customer booking + staff day (mockups 69, 70) */
/* A: notes in the salon colours instead of blue */
.alert-info, :root[data-theme="light"] .alert-info, :root[data-theme="dark"] .alert-info { background: var(--selected); border-color: var(--gold); color: var(--text); }
/* B: "change or cancel" heading on the done page gets room */
.card.hero > h2 { margin-block-start: 28px; }
/* C: staff sign-in link quieter on customer pages */
.footnote.staff-link { margin-block-start: 24px; font-size: .85rem; }
.footnote.staff-link a { color: var(--text-2); }
/* D: "set agreed price" reads as a tappable link next to the final price */
.slot-card .finish-direct.agreed-price > summary { font-size: 1rem; font-weight: 600; color: var(--gold-text, var(--gold)); text-decoration: underline; text-underline-offset: 4px; min-height: 44px; list-style: none; }
.slot-card .finish-direct.agreed-price > summary::-webkit-details-marker { display: none; }
.slot-card .finish-direct.agreed-price > summary::before { content: "＋ "; }
/* E: secondary actions in the visit card as text links */
.slot-card .btn.btn-quiet { border: 0; background: transparent; text-decoration: underline; text-underline-offset: 4px; font-weight: 500; min-height: 44px; color: var(--text-2); box-shadow: none; }

/* 1.49.0 Customer "my booking" + salon desk (mockup 71) */
.nw { white-space: nowrap; }
/* B: "request to cancel" as a full-width button with red text, not a tiny pill */
details.spot-close.status-cancel { display: block; margin-block-start: 10px; }
details.spot-close.status-cancel > summary.btn { display: flex; width: 100%; justify-content: center; min-height: 48px; font-size: 1rem; border-radius: 0; background: transparent; color: var(--st-danger); border-color: color-mix(in srgb, var(--st-danger) 55%, var(--line)); list-style: none; }
details.spot-close.status-cancel > summary.btn::-webkit-details-marker { display: none; }
form.status-leave { margin-block-start: 10px; }
/* C: salon desk group headings as bands; lateness in amber */
.desk-day h3.grp-h, details.grp-fin > summary.grp-h { background: var(--selected); border-inline-start: 3px solid var(--gold); padding: 10px 12px; margin-block: 18px 6px; font-size: 1rem; }
.late-note { color: #9A5B00; font-weight: 600; }
:root[data-theme="dark"] .late-note { color: #E2B15C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .late-note { color: #E2B15C; } }

/* 1.50.0 (mockup 73) */
/* A: salon booking times: three in one row */
.time-grid.tg-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.time-grid.tg-3 .time-pill span { padding-inline: 4px; }
/* B: phone booking form: service choices all full width */
.chipset.chipset-col { display: grid; grid-template-columns: 1fr; gap: 8px; }
.chipset.chipset-col .chipx { width: 100%; }
.chipset.chipset-col .chipx span { display: flex; width: 100%; justify-content: flex-start; text-align: start; }
/* D: "stay signed in" at normal size */
label.check-row.check-remember b { font-size: 1rem; font-weight: 600; }

/* 1.51.0 Customers pages (mockup 74): "0 completed" greyed */
.badge.badge-zero { opacity: .45; }

/* 1.52.0 First name + family name (mockup 76) */
.name-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.name-pair .field { margin: 0; }
.name-pair input[aria-invalid="true"] { border-color: var(--st-danger); }
@media (max-width: 340px) { .name-pair { grid-template-columns: 1fr; } }

/* 1.53.0 (mockup 77): days off in two columns */
.perm-group.days-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.perm-group.days-2col legend { grid-column: 1 / -1; }

/* 1.54.0 Bigger tap areas (accessibility check); look unchanged */
.mode-seg .seg { min-height: 40px; }
details.spot-close > summary { min-height: 40px; display: inline-flex; align-items: center; }
.slot-card dd a, .facts dd a { display: inline-flex; align-items: center; min-height: 40px; }

/* 1.55.0 End-of-day summary on the Today page (owner and admin only) */
.day-tally { margin-block: 24px; border-top: 3px solid var(--gold) !important; padding-top: 14px; }
.day-tally .tally-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-block: 10px; }
.day-tally .tally-kpis b { white-space: nowrap; font-size: clamp(1.3rem, 6.5vw, 1.7rem); }

/* 1.56.0 Print layout (mockup 79): no menus, buttons or forms; white paper; cards kept whole */
@media print {
    .site-header, .tabbar, .skip-link, .footnote, nav.day-nav, .day-closeall, .week-legend, .page-head .btn, .page-head a.btn,
    .attention, main form, .btn, .tiles, .tile-row, .stage-line, .day-progress, nav.tabs, .rep-tabs, .qtabs, .qchips, .range-form,
    main details:not(.visit-fold), .slot-card.st-free, .sticky-bar, .actbar2, .scard-row, .visit-fold-btn, .spot-close { display: none !important; }
    html, body, main, .card, .slot-card, .visit-box, .rep-kpis, .day-tally { background: #fff !important; box-shadow: none !important; }
    body, body * { color: #000 !important; }
    main { padding: 0 !important; min-height: 0 !important; }
    .slot-card { break-inside: avoid; border: 1px solid #bbb !important; padding: 8px !important; margin: 0 0 6px !important; }
    .row, .rep-kpis, .day-tally, section.card { break-inside: avoid; }
    .day-tally { border-top: 2px solid #000 !important; }
    .rep-bar { border: 1px solid #999; }
    .rep-bar i { background: #555 !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
    a { text-decoration: none !important; }
}

/* 1.58.0 salon week view: today tag, full-time tag, short empty days */
.dwk .dwk-today { display: inline-block; font-size: .7rem; font-weight: 600; color: var(--gold); border: 1px solid currentColor; border-radius: 999px; padding: 0 7px; margin-inline-start: 4px; vertical-align: middle; }
.dwk .dwk-full { display: block; font-size: .8rem; font-weight: 700; color: #B03A32; margin-block-start: 2px; }
:root[data-theme="dark"] .dwk .dwk-full { color: #E8746B; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dwk .dwk-full { color: #E8746B; } }
.dwk.dwk-empty { padding-block: 8px; opacity: .8; }
.dwk.dwk-empty progress { display: none; }
.dwk.dwk-empty .t { margin-block-start: 0; }
.dwk.dwk-empty .d b { font-size: 1.1rem; }
.dwk.dwk-empty .c { color: var(--text-2); }

/* 1.59.0: customers list and page, reports on the phone */
.cu-sort { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 4px; }
.cu-sort a { padding: 6px 12px; border: 1px solid var(--line); font-size: .9rem; color: var(--text); text-decoration: none; }
.cu-sort a[aria-current="page"] { border-color: var(--gold); color: var(--gold-text); font-weight: 700; }
.cu-sum { margin: 6px 0 2px; color: var(--text-2); font-size: .9rem; }
.cu-list .tile { padding-block: 11px; min-height: 0; }
.cu-list .tile .row-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cu-l1 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cu-amt { flex: none; font-size: .88rem; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.cu-list small { line-height: 1.6; }
.cu-lost { color: var(--st-danger); }
.cu-phone { margin: 0; font-size: 1.2rem; font-weight: 600; }
.cu-names { margin: 2px 0 6px; color: var(--text-2); font-size: .9rem; line-height: 1.7; }
.btn-row.cu-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btn-row.cu-btns .btn { margin: 0; width: 100%; }
.cu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 10px; }
.cu-grid > div { min-width: 0; padding: 9px 11px; border: 1px solid var(--line); background: var(--surface); }
.cu-grid small { display: block; color: var(--text-2); font-size: .8rem; }
.cu-grid b { display: block; margin-top: 2px; font-size: 1.05rem; overflow-wrap: anywhere; }
.cu-h { display: flex; align-items: center; gap: 8px; margin: 24px 0 4px; }
.cu-h span { padding: 0 8px; border: 1px solid var(--line); font-size: .8rem; font-weight: 600; }
.rep-kpis, .rep-kpis.card { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
.rep-kpis b { white-space: nowrap; font-size: clamp(1.2rem, 6.4vw, 2rem); }
.rep-kpis b.rep-ud { white-space: normal; font-size: 1.15rem; line-height: 1.5; }
details.rep-range { margin: 4px 0 10px; }
details.rep-range > summary { cursor: pointer; padding: 6px 0; color: var(--gold-text); font-weight: 600; }
@media (max-width: 767px) {
  .tabs.rep-tabs { flex-wrap: wrap; overflow: visible; gap: 6px; border-bottom: 0; background: none; }
  .tabs.rep-tabs a, :root[data-theme="dark"] .tabs.rep-tabs a, :root[data-theme="light"] .tabs.rep-tabs a { min-height: 0; margin: 0; padding: 6px 12px; border: 1px solid var(--line); font-size: .9rem; white-space: nowrap; color: var(--text); }
  .tabs.rep-tabs a[aria-current="page"], :root[data-theme="dark"] .tabs.rep-tabs a[aria-current="page"], :root[data-theme="light"] .tabs.rep-tabs a[aria-current="page"] { border: 1px solid var(--gold); color: var(--gold-text); }
}

/* 1.60.0: staff pages and the schedule page */
.st-l1 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.st-l1 .badge { font-size: .78rem; }
.st-back { margin-top: 4px; }
.st-sub { margin: -4px 0 14px; color: var(--text-2); font-size: .95rem; line-height: 1.7; }
.st-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
.st-pair .field { min-width: 0; margin-bottom: 4px; }
.st-pair select { width: 100%; min-width: 0; }
.st-pair .hint { grid-column: 1 / -1; margin: 2px 0 14px; }
@media (max-width: 340px) { .st-pair { grid-template-columns: 1fr; } }
details.st-reset > summary { color: var(--st-danger); }
form.action-row .hint { margin: 6px 0 0; }
.jump-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 16px; }
.jump-nav a { padding: 6px 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: .9rem; text-decoration: none; }
.jump-nav a:hover { border-color: var(--gold); }
[id^="sc-"] { scroll-margin-top: 84px; }
details.sc-preview > summary { cursor: pointer; display: flex; align-items: center; gap: 8px; }
details.sc-preview > summary h2 { display: inline; margin: 0; }
details.sc-preview[open] > summary { margin-bottom: 8px; }
.when-off { margin: 6px 0 12px; color: var(--text-2); font-size: .92rem; }
.when-on[hidden], .when-off[hidden] { display: none !important; }

/* 1.61.0: bookings list rows, expenses page, account page */
ul.rows.rows-cards.bk-list { min-width: 0; }
ul.rows.rows-cards.bk-list > li { min-width: 0; }
ul.rows.rows-cards.bk-list .tile { padding-block: 10px; gap: 10px; min-height: 0; min-width: 0; }
ul.rows.rows-cards.bk-list .tile .row-time { min-width: 3.9rem; }
ul.rows.rows-cards.bk-list .tile .row-time b { font-size: 1.25rem; }
ul.rows.rows-cards.bk-list .tile .row-main { min-width: 0; gap: 3px; overflow: hidden; }
ul.rows.rows-cards.bk-list .tile .row-main > b { font-size: 1.02rem; }
ul.rows.rows-cards.bk-list .badges { flex-wrap: nowrap; overflow: hidden; min-width: 0; max-width: 100%; }
ul.rows.rows-cards.bk-list .badges .badge { flex: none; white-space: nowrap; }
ul.rows.rows-cards.bk-list .badges .badge.bk-svc { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.exp-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 10px; }
.exp-two .field { min-width: 0; }
.exp-two input, .exp-two select { width: 100%; min-width: 0; box-sizing: border-box; }
details.exp-target > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
details.exp-target > summary h2 { display: inline; margin: 0; }
details.exp-target > summary small { flex-basis: 100%; color: var(--text-2); font-size: .9rem; }
details.exp-target[open] > summary { margin-bottom: 10px; }
details.del-confirm { display: inline-block; }
details.del-confirm > summary { cursor: pointer; list-style: none; color: var(--st-danger); text-decoration: underline; font-weight: 600; padding: 6px 2px; }
details.del-confirm > summary::-webkit-details-marker { display: none; }
details.del-confirm[open] > summary { display: none; }
details.del-confirm form { margin: 0; }

.acc-name { margin-bottom: 2px; }
.acc-sub { margin: 0 0 14px; color: var(--text-2); }
.acc-name-form { display: flex; align-items: flex-end; gap: 10px; }
.acc-name-form .field { flex: 1; min-width: 0; margin: 0; }
.acc-name-form .btn { flex: none; margin: 0; }
.acc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.acc-sec h2 + .acc-row { border-top: 0; }
.acc-row-text { min-width: 0; }
.acc-row-text b { display: block; }
.acc-row-text small { display: block; margin-top: 2px; color: var(--text-2); font-size: .86rem; line-height: 1.6; }
.acc-row .btn { flex: none; margin: 0; }
details.acc-pin { display: block; }
details.acc-pin > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
details.acc-pin > summary::-webkit-details-marker { display: none; }
details.acc-pin[open] > summary { margin-bottom: 12px; }
details.acc-pin[open] > summary .btn { visibility: hidden; }
details.acc-pin-remove { margin-top: 4px; }

/* 1.62.0 home prices page */
.mn-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mn-head h2 { margin: 0; min-width: 0; }
.mn-count { color: var(--text-2); font-size: .88rem; white-space: nowrap; flex: none; }
.mn-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin: 4px 0; font-size: .92rem; }
.mn-links form { display: inline; margin: 0; }
.mn-links a, .mn-links button, :root[data-theme="light"] .mn-links button, :root[data-theme="dark"] .mn-links button { color: var(--gold-text); text-decoration: underline; background: none; border: 0; padding: 6px 0; min-height: 36px; font: inherit; font-weight: 600; cursor: pointer; box-shadow: none; }
ul.rows.rows-flat.mn-list li.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 2px 12px; padding-block: 12px; }
ul.rows.rows-flat.mn-list li.row .row-actions { grid-column: 1 / -1; justify-content: flex-start; margin: 0; }
.mn-price { font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.mn-price s { color: var(--text-2); font-weight: 400; font-size: .85rem; margin-inline-start: 4px; }
a.mn-add { display: block; margin-top: 10px; border: 1px dashed var(--line); padding: 11px; text-align: center; color: var(--gold-text); text-decoration: none; font-weight: 600; }
a.mn-add:hover { border-color: var(--gold-text); }

/* 1.62.0 salon settings */
.sform .g2 { align-items: end; }
.sform .g2 .field { min-width: 0; }
table.ptable, table.ptable tbody { display: block; width: 100%; }
table.ptable thead { display: none; }
table.ptable tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 8px; padding-block: 12px; border-block-start: 1px solid var(--line); }
table.ptable tbody th { grid-column: 1 / -1; width: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0; font-size: 1rem; }
table.ptable .pt-name { min-width: 0; }
table.ptable .ptable-on { flex: none; white-space: nowrap; font-size: .86rem; gap: 6px; }
table.ptable td { padding: 0; display: block; }
table.ptable td::before { content: attr(data-l); display: block; font-size: .8rem; color: var(--text-2); margin-bottom: 3px; text-align: start; }
.ss-copy { display: flex; gap: 8px; align-items: stretch; margin-block: 8px 12px; }
.ss-copy code.share-url { flex: 1; min-width: 0; word-break: break-all; }
.ss-copy .btn { flex: none; margin: 0; }
.sform .jump-nav, main > .jump-nav { scroll-margin-top: 80px; }
section.sec[id^="ss-"] { scroll-margin-top: 80px; }

/* sign-in and PIN screens (booking 1.62.0 / website 1.50.0) */
.auth-card > h1, .auth-card > p.muted { text-align: center; }
img.auth-logo { display: block; width: 76px; height: 76px; margin: 4px auto 10px; border-radius: 50%; object-fit: cover; }
.auth-card > h1 { margin-bottom: 4px; }
.auth-card .check-remember, :root[data-theme="light"] .auth-card .check-remember, :root[data-theme="dark"] .auth-card .check-remember { border: 0; background: none; padding-inline: 0; box-shadow: none; }
.auth-card input.pin-input { text-align: center; font-size: 1.6rem; letter-spacing: .6em; padding-block: 12px; padding-inline-start: .6em; }
.auth-card form.form-secondary { margin-top: 6px; text-align: center; }
button.auth-link, :root[data-theme="light"] button.auth-link, :root[data-theme="dark"] button.auth-link { background: none; border: 0; box-shadow: none; color: var(--gold-text); text-decoration: underline; font-family: inherit; font-size: .95rem; font-weight: 600; padding: 10px 8px; min-height: 44px; width: auto; cursor: pointer; }

/* ===== 1.63.0: settings menu groups, late requests, week links, offline icon ===== */
.mgroup { margin-block-start: 26px; }
.mgroup-h { margin-block-end: 8px; }
.mgroup-h h2, :root[data-theme] .mgroup-h h2 { font-size: .95rem; border: 0; padding: 0; width: auto; color: var(--gold-text); font-weight: 700; }
.mlock, :root[data-theme] .mlock { border: 0; padding: 0; font-size: .8rem; color: var(--text-2); }
.mcard, :root[data-theme="light"] .mcard, :root[data-theme="dark"] .mcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mrow { padding-inline: 14px; min-height: 58px; padding-block: 10px; }
.mico { border-radius: 50%; width: 38px; height: 38px; }
.mtxt small { font-size: .84rem; }
.mhealth { border-radius: 14px; padding: 4px 14px; }
.mhealth .row { padding-block: 10px; }
.q-late-h { margin-block-start: 28px; }
.q-late-hint { font-size: .88rem; margin: 2px 0 6px; }
.q-late .scard { opacity: .8; }
.badge.badge-late { border-color: var(--st-danger, #b3261e); color: var(--st-danger, #b3261e); background: transparent; }
.week-head { align-items: center; }
.week-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
a.week-link { display: inline-block; padding: 10px 0; font-size: .95rem; font-weight: 600; color: var(--gold-text); text-decoration: underline; text-underline-offset: 4px; }
.offline-ic { display: block; margin: 0 auto 6px; color: var(--gold-text); }
:root[dir="rtl"] a.week-link span { display: inline-block; transform: scaleX(-1); }

/* Forced link underlines (browser setting or add-on that beats the site's CSS): app.js tests a hidden link
   and, only when the underline is forced, wraps link text in .nu spans; an inline-block box stops the underline. */
.nu-probe { position: absolute; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; text-decoration: none !important; }
html.forced-ul .nu { display: inline-block; text-decoration: none; text-indent: 0; }
html.forced-ul .nu-nobefore::before, html.forced-ul .nu-noafter::after { content: none !important; }

/* Owner (2026-11-23): no underlines anywhere. Links keep their colour and weight. */
a, a *, summary, button, .btn, :root[data-theme] a, :root[data-theme] button { text-decoration: none !important; }

/* ===== 1.64.0 (mockups 87 + 88) ===== */
/* Phone booking form: numbered sections, map inside "Address" */
.fnum-h { display: flex; align-items: center; gap: 10px; }
.fnum { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold-text, var(--gold)); color: var(--bg); font-size: .9rem; font-weight: 700; flex: none; }
.map-form .card .map-h { font-size: 1rem; margin: 16px 0 2px; }
.map-form .card .map-box { margin-block: 8px 4px; }
.form-actions.form-actions-stack { display: flex; flex-direction: column; gap: 10px; }
.form-actions.form-actions-stack .btn { width: 100%; }
/* Salon steps: price line with bold amounts, smaller notes, day cards */
.price-guide, .price-line { color: var(--text-2); font-weight: 400; }
.check-row .price-guide span.pl-i, .price-guide .pl-i, .price-line .pl-i { display: inline; }
.price-guide b, .price-line b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.price-guide { display: block; font-size: .88rem; }
.soft-note { font-size: .88rem; color: var(--text-2); margin: 6px 0 0; }
fieldset.day-card { padding: 10px 12px 12px; margin-block: 0 10px; }
fieldset.day-card > legend { float: inline-start; width: 100%; padding: 0; margin: 0 0 8px; font-size: .98rem; font-weight: 700; background: none; }
fieldset.day-card > legend + * { clear: both; }
/* Day page */
.slot-card-head .vh-name { white-space: normal; overflow: visible; text-overflow: clip; flex: 1 1 120px; }
.slot-card-head { flex-wrap: wrap; }
.slot-close-foot { margin-block-start: 10px; padding-block-start: 6px; border-block-start: 1px dashed var(--line); text-align: center; }
.slot-close-foot .spot-close > summary, .day-closeall .spot-close > summary { border: 0; background: none; font-size: .9rem; color: var(--text-2); padding: 8px 4px; min-height: 40px; display: inline-flex; align-items: center; }
.slot-close-foot .spot-close[open] form, .day-closeall .spot-close[open] form { text-align: start; }
.day-closeall { text-align: center; margin-block: 12px 0; }
.day-nav-top { grid-template-columns: 44px minmax(0, 1fr) 44px; }
.day-arrow { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); color: var(--gold-text, var(--gold)); font-size: 1.4rem; line-height: 1; }
.day-progress { height: 8px; }
.slot-card .finish-direct.agreed-price > summary::before { content: "＋"; margin-inline-end: 6px; }
/* WhatsApp message pages */
.msg-list-h { font-size: .95rem; color: var(--gold-text, var(--gold)); margin: 22px 0 6px; border: 0; padding: 0; }
.msg-list { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; overflow: hidden; margin-block: 0 16px; }
.msg-list .msg-fold { margin: 0; padding: 14px 16px; }
.msg-list .msg-fold + .msg-fold { border-block-start: 1px solid var(--line); }
.msg-list .msg-details > summary h2 { font-size: 1.05rem; border: 0; padding: 0; margin: 0; }
.msg-list .msg-details > summary .msg-when { font-size: .85rem; }
.msg-list .msg-details > summary .msg-edit { font-size: .95rem; }
.tag-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.tag-chips small { width: 100%; color: var(--text-2); }
.tag-chip { font: 600 .8rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; min-height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--gold-text, var(--gold)); background: var(--bg); cursor: pointer; }
.tag-chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wa-bubble-h { font-size: .8rem; color: var(--text-2); margin: 10px 0 0; }
main pre.wa-preview.wa-bubble, body:has(.tabbar) main pre.wa-preview.wa-bubble { font-family: inherit; white-space: pre-wrap; overflow-wrap: anywhere; background: #dcf8c6; color: #111; border: 0; border-radius: 12px 12px 4px 12px; padding: 10px 12px; margin: 6px 0 0; font-size: .92rem; line-height: 1.7; box-shadow: 0 1px 1px rgba(0,0,0,.12); }
:root[data-theme="dark"] main pre.wa-preview.wa-bubble { background: #005c4b; color: #e9edef; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) main pre.wa-preview.wa-bubble { background: #005c4b; color: #e9edef; } }
.field label.msg-reset, .msg-reset { display: flex; flex-direction: row; align-items: center; gap: 8px; margin-block-start: 8px; font-size: .9rem; }
.msg-en { margin-block-start: 6px; }
.msg-en > summary { font-size: .95rem; font-weight: 600; color: var(--text-2); cursor: pointer; padding: 10px 0; min-height: 44px; }
.msg-tags { border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; background: var(--surface); margin-block-end: 14px; }
.msg-tags > summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
.msg-save { position: sticky; bottom: 0; z-index: 5; background: var(--bg); padding-block: 10px 12px; border-block-start: 1px solid var(--line); margin: 0; }
@media (max-width: 767px) { body:has(.tabbar) .msg-save { bottom: calc(65px + env(safe-area-inset-bottom)); } }
.msg-save .btn { width: 100%; }
/* Salon desk: group headings */
.desk-day h3.grp-h, details.grp-fin > summary.grp-h { background: transparent; border: 0; border-block-end: 1px solid var(--line); padding: 6px 0; justify-content: flex-start; gap: 8px; align-items: center; margin-block: 20px 4px; }
.grp-h small { background: var(--selected); color: var(--text); font-weight: 700; border-radius: 999px; padding: 2px 9px; font-size: .8rem; }
.grp-fin > summary::after { margin-inline-start: auto; }

/* ===== 1.65.0 (mockup 89) ===== */
/* Salon staff form + shared list */
.salon-staff-form .check-row span { font-weight: 400; font-size: .95rem; }
.salon-staff-form .chipx small.seat-n { display: block; font-size: .75rem; color: var(--text-2); font-weight: 400; }
.late-grid .chipset { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.late-grid .chipset .chipx span { justify-content: center; text-align: center; }
h3.slot-head { display: flex; justify-content: flex-start; align-items: baseline; gap: 6px; }
h3.slot-head .slot-n { color: var(--text-2); font-weight: 400; font-size: .9rem; }
/* Customer status pages */
.status-acts { display: flex; flex-direction: column; gap: 10px; }
.status-acts > .btn { width: 100%; }
details.status-cancel.status-cancel-link > summary::-webkit-details-marker { display: none; }
details.status-cancel.status-cancel-link > summary { list-style: none; border: 0; background: none; color: var(--st-danger); font-weight: 600; font-size: .95rem; min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 8px 0; width: 100%; cursor: pointer; }
.leave-link { display: block; width: 100%; text-align: center; color: var(--text-2); font: inherit; font-size: .92rem; padding: 12px 0; min-height: 44px; background: none; border: 0; cursor: pointer; }
form.status-leave { margin-block: 4px 0; }
.full-days { font-size: .9rem; color: var(--text-2); margin: 4px 0 12px; padding: 10px 12px; border: 1px dashed var(--line); }
/* Reports */
.rep-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); margin-block: 6px 0; }
.rep-seg.rep-seg-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-block: 6px 14px; }
.rep-seg a { display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px 2px; min-height: 44px; font-size: .8rem; line-height: 1.3; color: var(--text); border-inline-start: 1px solid var(--line); }
.rep-seg a:first-child { border-inline-start: 0; }
.rep-seg a[aria-current="page"] { background: var(--gold-text, var(--gold)); color: var(--bg); font-weight: 700; }
.rep-rangeline { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; margin-block: 8px 14px; }
.rep-rangeline > p { margin: 0; }
.rep-rangeline > details.rep-range { flex: 0 1 auto; }
.rep-rangeline > details.rep-range[open] { flex-basis: 100%; }
.month-nav.month-arrows { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; text-align: center; gap: 8px; }
.month-nav.month-arrows b { font-size: 1.15rem; }
main:has(.rep-tabs, .rep-seg) ul.rows .row-actions .badge { background: none; border: 0; padding: 0 4px; font-weight: 700; color: var(--text); font-size: .92rem; }
main:has(.rep-tabs, .rep-seg) ul.rows .row-actions .badge + .badge { color: var(--text-2); font-weight: 600; }
main ul.rows > li.row:has(.rep-bar-0) { opacity: .45; }

/* ===== 1.66.0 (mockup 90) ===== */
.steps li.done span { background: color-mix(in srgb, var(--gold) 22%, transparent); border-color: var(--gold); color: var(--gold-text); }
.steps li.done span svg { display: block; }
.steps li.done b { color: var(--text); }
.day-strip + .full-days, .full-days { font-size: .88rem; color: var(--text-2); margin: 2px 0 12px; }
.day-strip[hidden] + .full-days { display: none; }
.wk-n { display: block; font-style: normal; font-size: .78rem; line-height: 1.2; color: var(--text-2); margin-block-start: 2px; }
.wk-n.on { color: var(--gold-text); font-weight: 700; }
a.wk-open { font-size: .95rem; font-weight: 700; color: var(--gold-text); }
.q-result { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: -4px 0 12px; font-size: .92rem; color: var(--text-2); }
.q-result a { color: var(--gold-text); font-weight: 700; white-space: nowrap; }
.bk-late-h { font-size: 1rem; margin: 26px 0 4px; color: var(--st-danger); border: 0; padding: 0; }
.bk-late-hint { font-size: .88rem; color: var(--text-2); margin: 0 0 8px; }
h2.day-band.is-late { background: color-mix(in srgb, var(--st-danger) 12%, transparent); border-inline-start-color: var(--st-danger); }

/* ===== 1.67.0 (mockup 91) ===== */
.cust-first { color: var(--text-2); font-size: .92rem; margin: 0; }
.bfacts.bfacts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bfacts.bfacts-2 > div:first-child { grid-column: 1 / -1; border-block-end: 1px solid var(--line); }
.bfacts.bfacts-2 > div:nth-child(2) { border-inline-start: 0; }

/* ===== 1.68.0 (mockup 92) ===== */
/* Contrast (axe): late requests no longer faded with opacity; zero report rows use the muted text colour instead of opacity; darker green for "confirmed" in the week. */
.q-late .scard { opacity: 1; }
.q-late .scard .scard-name, .q-late .scard .bigtime { color: var(--text-2); }
.row.rep-zero, main ul.rows > li.row:has(.rep-bar-0) { opacity: 1; }
.row.rep-zero, .row.rep-zero b, .row.rep-zero .badge, main ul.rows > li.row:has(.rep-bar-0) b, main ul.rows > li.row:has(.rep-bar-0) .badge, main ul.rows > li.row:has(.rep-bar-0) small { color: var(--text-2); }
.row.rep-zero .rep-bar, main ul.rows > li.row:has(.rep-bar-0) .rep-bar { opacity: .5; }
.wk-st-ok { color: #256B42; }
/* Customer file: note line at the top, summary as a lined two-column table */
.cu-note-top { margin: 10px 0 0; padding: 10px 12px; border: 1px solid var(--line); font-size: .92rem; }
.cu-note-top a { color: var(--gold-text); font-weight: 700; white-space: nowrap; }
.cu-note-top.cu-note-none { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; border-style: dashed; color: var(--text-2); }
.cu-grid.cu-table { grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.cu-grid.cu-table > div { border: 0; border-bottom: 1px solid var(--line); background: none; padding: 10px 4px; }
.cu-grid.cu-table > div:nth-child(odd) { border-inline-end: 1px solid var(--line); padding-inline-end: 10px; }
.cu-grid.cu-table > div:nth-child(even) { padding-inline-start: 10px; }
.cu-grid.cu-table b { font-size: 1rem; }

/* ===== 1.69.0 (mockup 94) ===== */
/* بانتظاري: one heading per kind with a count pill; new requests grouped by day (date once). */
.q-grp-h { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin: 22px 0 6px; border: 0; padding: 0; }
.q-grp-h:first-child { margin-block-start: 8px; }
.q-grp-h small { background: var(--selected); color: var(--text); border-radius: 999px; padding: 2px 9px; font-size: .8rem; font-weight: 700; }
.q-by-day > li.q-day { list-style: none; font-size: .85rem; font-weight: 700; color: var(--text-2); margin: 12px 0 2px; padding-block-end: 4px; border-block-end: 1px solid var(--line); }
.q-by-day .scard-when small { display: none; }

/* ===== 1.71.0 (mockup 97) ===== */
.salon-wa { margin-top: 12px; }

/* 1.72.0: home booking prices + service from-price + done note; day card one dark button, finish stacked */
main > p.soft-note { font-size: .95rem; line-height: 1.7; margin: 4px 0 18px; }
.home-price { white-space: nowrap; }
.home-price b { font-size: 1.05rem; }
.choice > span:has(.ch-from) { flex-wrap: wrap; }
.choice .ch-from { display: block; flex-basis: 100%; font-weight: 400; font-size: .88rem; color: var(--text-2); margin-top: 2px; }
.choice .ch-from b { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.card.hero p.soft-note { font-size: .95rem; margin: 6px 0 10px; }
form.close-form.close-stack { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
form.close-form.close-stack input, form.close-form.close-stack button { width: 100%; }

/* 1.73.0: salon desk coming list grouped by time; bookings list service as plain text; booking page first-visit line */
.scards > li.scard-th { list-style: none; display: flex; align-items: baseline; gap: 8px; padding: 16px 0 6px; border-bottom: 1px solid var(--line); font-weight: 700; }
.scards > li.scard-th:first-child { padding-top: 4px; }
.scard-th-t { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.scard-th small { color: var(--text-2); font-weight: 400; font-size: .88rem; }
.scards-bytime .scard-time { display: none; }
ul.rows.rows-cards.bk-list .badges .bk-svc { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); font-size: .85rem; font-weight: 400; align-self: center; }
p.cust-first { margin: 4px 0 12px; }

/* 1.74.0: salon time page tighter; salon review one summary card; waiting tab headings with a gold count */
fieldset.day-card { margin-block: 0 12px; padding: 12px 12px 14px; }
fieldset.day-card .time-pill span { min-height: 46px; padding-block: 8px; }
.sum-card.salon-sum .sum-s { font-size: .92rem; }
.sum-card.salon-sum .price-line { display: inline; }
.q-grp-h, .q-grp-h.q-late-h { font-size: 1.1rem; margin-block-start: 22px; }
.q-grp-h small { background: var(--gold); color: #1d1915; }

/* ===== 1.75.0: status page rows, change page current box, customers, reports list ===== */
.st-hero .st-ref { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.st-sum { margin: 14px 0 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); text-align: start; }
.st-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 14px; border-block-end: 1px solid var(--line); }
.st-row:last-child { border-block-end: 0; }
.st-row > span { flex: 0 0 auto; font-size: .82rem; color: var(--text-2); }
.st-row > b { text-align: end; overflow-wrap: anywhere; min-width: 0; }
.st-hero .soft-note { margin-top: 14px; }
.status-acts { display: flex; flex-direction: column; gap: 10px; }
.status-acts .st-cancel-last { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); text-align: center; }
.st-cur { background: var(--surface); border: 1px solid var(--gold); border-radius: var(--radius-sm); padding: 10px 14px; margin: 10px 0 6px; }
.st-cur small { display: block; color: var(--text-2); font-size: .82rem; }
.st-cur b { font-size: 1.05rem; }
main:has(.st-cur) p.full-days { border: 0; background: none; padding: 0; color: var(--text-2); font-size: .9rem; }
.cu-next { color: var(--gold-text); font-weight: 700; }
.cu-new { margin: 0; color: var(--text-2); }
ul.rep-status > li.rep-zero { display: none; }
main .card h2.rep-src-h { font-size: 1rem; margin-top: 18px; }
.rep-pick { display: none; }
@media (max-width: 767px) {
  .rep-pick:not([hidden]) { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
  .rep-pick label { flex: 0 0 auto; color: var(--text-2); font-size: .9rem; margin: 0; }
  .rep-pick select { flex: 1; min-width: 0; min-height: 46px; padding: 8px 12px; border: 1px solid var(--gold); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; border-radius: var(--radius-sm); }
  .rep-pick-on nav.rep-tabs { display: none; }
}

/* 1.76.0: map step caption bar, day page finish fold */
#locate-me { display: flex; align-items: center; justify-content: center; gap: 8px; }
#locate-me .locate-ic { flex: none; }
.map-form .map-box { border-end-start-radius: 0; border-end-end-radius: 0; margin-block-end: 0; }
.map-form .card .map-box { margin-block-end: 0; }
.map-cap { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border: 1.5px solid var(--line); border-block-start: 0; background: var(--surface); color: var(--text-2); font-size: .92rem; }
.map-cap svg { flex: none; color: var(--gold-text); }
.map-cap .cap-ok { display: none; }
.map-cap.is-set { color: var(--st-ok); background: var(--ok-bg); font-weight: 700; }
.map-cap.is-set svg { color: var(--st-ok); }
.map-cap.is-set .cap-ok { display: block; }
.map-cap.is-set .cap-pin { display: none; }
:root[dir="rtl"] input[type="tel"]:placeholder-shown { direction: rtl; text-align: right; }
details.finish-early { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 6px; }
details.finish-early > summary { list-style: none; cursor: pointer; padding: 10px 0; min-height: 44px; color: var(--text-2); font-weight: 600; display: flex; align-items: center; gap: 6px; }
details.finish-early > summary::-webkit-details-marker { display: none; }
details.finish-early > summary::before { content: "+"; font-size: 1.2rem; line-height: 1; }
details.finish-early[open] > summary::before { content: "−"; }
.day-nav-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.map-form > .map-cap { margin-block-start: -12px; }

/* 1.77.0: home booking address card, review price and cash line, booking page customer card */
.card.form.arr-card { margin-top: 14px; }
.card.form.arr-card > h2 { font-size: 1.05rem; margin: 0 0 4px; }
.sum-s b { color: var(--text); }
.pay-note.rv-pay { margin: 14px 0 0; }
section.ccard + dl.bfacts, :root[data-theme] section.ccard + dl.bfacts { border-block-start: 0; }

/* ===== 1.78.0: salon steps, tab badge ===== */
.pay-methods { gap: 8px 18px; }
.pay-methods > b { flex-basis: 100%; }
main form:has(> fieldset.day-card) { row-gap: 12px; }
main form > fieldset.card.day-card, main form > fieldset.card.day-card + fieldset.card.day-card { margin-block: 0; }
.card.hero .pay-methods + .btn, .card.hero .pay-methods + a { margin-top: 16px; }
.tabbar a { position: relative; }
.tabbar .tab-n { position: absolute; top: 4px; inset-inline-start: calc(50% + 6px); min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--gold-text); color: var(--surface); font-size: .72rem; font-weight: 700; line-height: 20px; text-align: center; }

/* ===== 1.79.0: time step, reports, customers ===== */
main form p.full-days { border: 0; background: none; padding: 0; margin: -4px 0 0; color: var(--text-2); font-size: .88rem; }
.day-strip:not([hidden]) ~ fieldset.day-card > legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.day-strip:not([hidden]) ~ fieldset.day-card { padding-top: 14px; }
.rep-pick:not([hidden]) label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
details.rep-range > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; }
details.rep-range > summary::-webkit-details-marker { display: none; }
details.rep-range > summary::marker { content: ""; }
.rep-rangeline + section.card { margin-block-start: 6px; }
details.del-confirm > summary { color: var(--text-2); font-size: .85rem; font-weight: 600; }
.cu-list .tile { display: flex; align-items: center; gap: 12px; }
.cu-av { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--selected); color: var(--gold-text); font-weight: 700; font-size: 1.05rem; }
form[role=search] .btn { min-width: 0; padding-inline: 18px; }
.cu-list .tile > .row-main { flex: 1; min-width: 0; }

/* ===== 1.80.0: waiting cards, bookings list, salon desk ===== */
.q-by-day > li.q-day { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-block: 14px 0; padding: 8px 12px; background: var(--selected); color: var(--text); font-weight: 700; font-size: .92rem; border: 0; }
.q-by-day > li.q-day .qd-n { color: var(--gold-text); font-size: .82rem; font-weight: 600; white-space: nowrap; }
.qcard .scard-meta { display: block; }
.qcard .scard-meta > span { display: block; }
.qcard .scard-meta .qm-s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.scard .scard-row .btn, .scard .scard-ic { min-height: 44px; }
.scard .scard-row { margin-top: 10px; }
.scards > li.scard { padding-block: 14px; }
nav.qswitch { gap: 8px; border: 0; }
nav.qswitch a { border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text-2); font-size: .95rem; min-height: 42px; }
nav.qswitch a[aria-current="page"] { background: var(--selected); color: var(--text); border-color: var(--gold); }
nav.qchips a.is-zero { opacity: .45; }
p.q-result { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; background: var(--selected); }
.scard-who .sw-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.scard-who .sw-line .badge { font-size: .72rem; padding: 1px 8px; }
.scard-who .sw-dot { color: var(--text-2); }

/* ===== 1.81.0: messages page, schedule, week, customer status ===== */
.msg-form { display: flex; flex-direction: column; }
.msg-form > section.card.form.msg-set { margin-top: 8px; }
.msg-set > h2.msg-set-h { font-size: 1.05rem; margin: 0 0 10px; }
.jump-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.jump-nav::-webkit-scrollbar { display: none; }
.jump-nav a { flex: none; white-space: nowrap; }
ul.slot-rows > li.row-off b { opacity: .55; }
details.slot-del > summary { list-style: none; cursor: pointer; color: var(--st-danger, #a8382c); font-size: .88rem; font-weight: 600; padding: 6px 4px; }
details.slot-del > summary::-webkit-details-marker { display: none; }
details.slot-del > summary::marker { content: ""; }
details.slot-del[open] > summary { display: none; }
.wk-legend { margin: 6px 0 0; color: var(--text-2); font-size: .8rem; text-align: center; }
.st-hero .st-state { margin: 6px 0 14px; text-align: center; font-weight: 600; color: var(--text-2); }
.st-hero .st-state.st-is-confirmed, .st-hero .st-state.st-is-completed { color: var(--st-ok, #256B42); }
.st-hero .st-state.st-is-pending { color: var(--gold-text); }
a .wa-ic { vertical-align: -3px; margin-inline-end: 6px; }

/* ===== 1.82.0: home prices rows, salon settings, done page ===== */
ul.mn-list > li.row > a.mn-tile { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; width: 100%; color: inherit; text-decoration: none; padding-block: 4px; }
ul.mn-list > li.row .mn-arrow { color: var(--gold-text); font-size: 1.1rem; }
.slot-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }
.slot-chips:empty { display: none; }
.slot-chips li { padding: 3px 10px; border: 1px solid var(--line); background: var(--surface); font-size: .85rem; font-weight: 600; }
.strow-view { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 0; }
.strow-view > b { min-width: 0; }
details.strow-ren > summary { list-style: none; cursor: pointer; color: var(--gold-text); font-size: .88rem; font-weight: 600; }
details.strow-ren > summary::-webkit-details-marker { display: none; }
details.strow-ren > summary::marker { content: ""; }
details.strow-ren[open] { flex-basis: 100%; }
.card.hero .ref-box .ref-copy { margin-inline-start: 8px; padding: 4px 10px; border: 1px solid var(--line); background: transparent; color: var(--gold-text); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.card.hero .done-box { margin: 12px 0 16px; padding: 10px 14px; background: var(--selected); display: grid; gap: 6px; text-align: start; }
.card.hero .done-box p { margin: 0; }

/* ===== 1.83.0: reports, staff page, salon "my booking" ===== */
.rep-kpis > div.is-zero { opacity: .45; }
p.st-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
p.st-sub .st-role { padding: 2px 10px; background: var(--selected); color: var(--text); font-weight: 700; font-size: .85rem; }
p.st-sub .st-last { flex-basis: 100%; color: var(--text-2); font-size: .88rem; }
.st-hero .st-state.st-is-arrived, .st-hero .st-state.st-is-done { color: var(--st-ok, #256B42); }
.st-hero .st-sum .price-line { font-weight: 400; }

/* ===== 1.84.0: salon week, sign-in label ===== */
a.dwk.dwk-empty { min-height: 0; padding-block: 8px; margin-bottom: 0; }
a.dwk.dwk-empty + a.dwk.dwk-empty { margin-top: -12px; }
a.dwk.dwk-empty .d { display: flex; align-items: baseline; gap: 6px; }
a.dwk.dwk-empty .d b { font-size: 1rem; }
a.dwk.dwk-empty progress { display: none; }
.auth-app { display: table; margin: 2px auto 6px; padding: 2px 12px; background: var(--selected); color: var(--gold-text); font-size: .82rem; font-weight: 700; }
.auth-other { margin: 12px 0 0; font-size: .88rem; color: var(--text-2); text-align: center; }
.auth-other a { color: var(--gold-text); font-weight: 600; }

/* ===== 1.85.0: computer layout, prices names, contrast, print ===== */
@media (min-width: 1000px) {
  ul.scards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  ul.scards > li.q-day, ul.scards > li.scard-th { grid-column: 1 / -1; }
  nav.qswitch { max-width: 520px; }
}
section.price-card > h2 .pc-sub { display: block; font-size: .85rem; font-weight: 500; color: var(--text-2); margin-top: 2px; }
h2.q-grp-h small { color: var(--surface); }
@media print {
  nav.rep-seg, nav.rep-tabs, .rep-pick, details.rep-range, nav.qswitch, nav.qchips { display: none !important; }
}

/* 1.86.0: salon time step (chosen treatment line), money report (jump buttons, no-income line, folded lists), error pages */
.sl-pick { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); background: var(--surface); padding: 10px 14px; margin: 0 0 14px; }
.sl-pick > span { min-width: 0; }
.sl-pick b { display: block; }
.sl-pick .price-guide { display: block; color: var(--text-2); font-size: .85rem; }
.sl-pick a { flex: none; padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; font-weight: 700; background: var(--bg); }
.rep-jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 16px; }
.rep-jump a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; font-weight: 600; background: var(--surface); }
main section[id^="rm-"] { scroll-margin-top: 80px; }
.rep-zero { margin: 10px 0 0; color: var(--text-2); font-size: .9rem; }
ul[data-fold] > li.fold-hide { display: none; }
.rep-more { margin-top: 10px; }
.err-sub { margin: 18px 0 6px; font-size: .9rem; color: var(--text-2); }
.err-more { display: grid; gap: 8px; margin-top: 12px; }
.err-more .btn { margin: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
@media print {
    .rep-jump, .rep-more { display: none !important; }
    ul[data-fold] > li.fold-hide { display: flex !important; }
}

/* 1.87.0: review notes box and small "تعديل" buttons, customer page (letter circle, chips, note in place, zero faded, 4 columns on a computer), empty boxes, field errors */
.sum-edit { align-self: flex-start; padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; background: var(--bg); }
.rv-notes { margin: 16px 0 0; border: 1px solid var(--line); background: var(--surface); padding: 4px 14px; }
.rv-notes > p { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 10px 0; color: var(--text); font-size: .95rem; }
.rv-notes > p + p { border-top: 1px solid var(--line); }
.rv-notes svg { flex: none; color: var(--gold-text); margin-top: 1px; }
.rv-notes + .hint { font-size: .82rem; margin-top: 14px; }
.page-head.cu-headx { display: flex; align-items: center; justify-content: flex-start; gap: 14px; }
.page-head.cu-headx .cu-av { width: 52px; height: 52px; font-size: 1.4rem; }
.page-head.cu-headx h1 { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.cu-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; padding: 0; }
.cu-chips span { border: 1px solid var(--line); background: var(--bg); padding: 3px 10px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.cu-grid > div.is-zero b { opacity: .45; }
details.cu-note-box { margin-top: 10px; }
details.cu-note-box > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
details.cu-note-box > summary::-webkit-details-marker { display: none; }
details.cu-note-box > summary .cu-note-act { flex: none; color: var(--gold-text); font-weight: 700; }
details.cu-note-box[open] > summary .cu-note-act { opacity: .5; }
.cu-note-form { margin-top: 10px; }
.cu-note-form .hint { margin-top: 0; }
@media (min-width: 900px) {
    .cu-grid.cu-table { grid-template-columns: repeat(4, 1fr); }
    .cu-grid.cu-table > div, .cu-grid.cu-table > div:nth-child(odd), .cu-grid.cu-table > div:nth-child(even) { border-inline-end: 1px solid var(--line); padding: 10px 12px; }
    .cu-grid.cu-table > div:nth-child(4n) { border-inline-end: 0; }
}
.empty-box { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 28px 16px; border: 1px dashed var(--line); background: var(--surface); margin: 14px 0; }
.empty-box svg { color: var(--gold-text); }
.empty-box p { margin: 0; font-size: 1rem; color: var(--text); overflow-wrap: anywhere; }
.empty-box small { color: var(--text-2); }
.empty-box .btn { margin-top: 6px; }
.field-err { color: var(--st-danger); font-size: .88rem; font-weight: 600; margin: 6px 0 0; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--st-danger); box-shadow: 0 0 0 1px var(--st-danger); }

/* 1.88.0: week view (faded empty days, service line, 7 columns on a computer), customer booking lookup and page */
.wk-tab.is-zero { opacity: .5; }
.wk-n:empty { visibility: hidden; }
.wk-svc { display: block; font-size: .85rem; font-weight: 600; color: var(--text); margin-top: 1px; }
@media (min-width: 1000px) {
    .wk .wk-tabs { display: none; }
    .wk .wk-panels { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
    .wk .wk-panel, :root[data-theme="light"] .wk .wk-panel, :root[data-theme="dark"] .wk .wk-panel { grid-area: auto; visibility: visible; display: block; border-inline-start: 1px solid var(--line); padding: 8px; min-width: 0; }
    .wk .wk-panel:first-child { border-inline-start: 0; }
    .wk .wk-panel.is-today { background: var(--selected); }
    .wk .wk-panel header { display: block; margin-bottom: 6px; }
    .wk .wk-panel header b { display: block; font-size: .9rem; }
    .wk .wk-panel header .wk-open { font-size: .8rem; }
    .wk .week-slots .slot { display: block; padding: 6px 0; min-height: 0; }
    .wk .week-slots .slot-time { display: block; font-size: .8rem; width: auto; }
    .wk .week-slots .slot.st-free { opacity: .45; }
    .wk .week-slots .slot-body b { font-size: .85rem; }
    .wk .week-slots .slot-body small { font-size: .75rem; overflow-wrap: anywhere; }
}
.st-forgot { margin: 14px 0 0; text-align: center; font-size: .92rem; }
.st-forgot a { color: var(--gold-text); font-weight: 700; }
.st-near { color: var(--st-ok); font-weight: 700; }
.st-prep { margin: 16px 0 0; border: 1px solid var(--line); background: var(--surface); padding: 4px 14px; text-align: start; }
.st-prep h2 { margin: 10px 0 2px; font-size: 1rem; border: 0; padding: 0; text-align: center; }
.st-prep p { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 9px 0; font-size: .95rem; color: var(--text); }
.st-prep p + p { border-top: 1px solid var(--line); }
.st-prep svg { flex: none; color: var(--gold-text); margin-top: 2px; }

/* 1.89.0: map step (numbered steps, full-screen map), reports (busiest day, faded weeks, up/down), service step, booking page note and copy, settings warning and columns */
.map-guide { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; counter-reset: g; }
.map-guide li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--text); counter-increment: g; }
.map-guide li::before { content: counter(g); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--selected); color: var(--gold-text); font-weight: 700; font-size: .85rem; }
.map-big { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 44px; margin: 0; padding: 8px; border: 1px dashed var(--line); border-top: 0; background: transparent; color: var(--gold-text); font: inherit; font-weight: 700; cursor: pointer; }
.map-big[hidden] { display: none; }
.map-box.is-full { position: fixed; inset: 0; z-index: 300; height: auto !important; min-height: 0; max-height: none !important; border: 0; border-radius: 0; margin: 0; }
.map-full-bar { position: fixed; inset: auto 0 0 0; z-index: 310; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 10px max(16px, env(safe-area-inset-left, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid var(--line); }
.map-full-bar[hidden] { display: none; }
.map-full-bar .btn { margin: 0; }
html.map-full-open, html.map-full-open body { overflow: hidden; }
.rep-peak { margin: 8px 0 0; font-size: .9rem; color: var(--text-2); }
.rep-up { color: var(--st-ok) !important; }
.rep-down { color: var(--st-danger) !important; }
li.row.is-zero { opacity: .45; }
p.rep-zero { color: var(--text-2); }
.ch-sub { display: block; font-size: .85rem; color: var(--text-2); font-weight: 500; margin-top: 2px; }
label.choice:has(input:checked) { border-color: var(--gold-text); box-shadow: 0 0 0 1px var(--gold-text); background: var(--selected); }
.file-pick-thumb { display: block; width: 64px; height: 64px; object-fit: cover; margin-top: 8px; border: 1px solid var(--line); }
.file-pick-thumb[hidden] { display: none; }
.bk-note { margin: 10px 0 0; padding: 10px 12px; border: 1px solid var(--gold-text); background: var(--selected); font-size: .95rem; display: flex; gap: 8px; align-items: flex-start; color: var(--text); }
.bk-note svg { flex: none; color: var(--gold-text); margin-top: 2px; }
.bk-near { color: var(--st-ok); font-weight: 700; }
.bk-ref { display: inline-flex; align-items: center; gap: 6px; }
.bk-copy { border: 1px solid var(--line); background: transparent; color: var(--gold-text); font: inherit; font-size: .78rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; cursor: pointer; min-height: 28px; }
.mt-warn { margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--st-pending); background: var(--selected); display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
.mt-warn svg { flex: none; color: var(--st-pending); margin-top: 2px; }
.mt-warn b { display: block; }
.mt-warn a { font-weight: 700; color: var(--gold-text); }
@media (min-width: 1000px) { .mgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; align-items: start; } .mgrid > .mgroup { min-width: 0; } }

/* 1.90.0: salon "my booking" (past booking, before-the-visit box, address link), customers filter buttons */
.st-state.st-is-past { color: var(--text-2); }
.st-addr { display: flex; justify-content: center; margin: 12px 0 0; }
.st-addr a { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; color: var(--gold-text); }
.cu-filter { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 10px; padding: 2px 0; scrollbar-width: none; touch-action: pan-x; }
.cu-filter::-webkit-scrollbar { display: none; }
.cu-filter a { flex: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; font-weight: 600; background: var(--surface); color: var(--text); }
.cu-filter a[aria-current] { background: var(--text); color: var(--bg); border-color: var(--text); }
.cu-filter a.is-zero:not([aria-current]) { opacity: .5; }
.cu-filter a small { opacity: .7; margin-inline-start: 6px; }

/* ===== 1.91.0 (mockup 119) ===== */
/* A done page: next steps + round copy button */
.ref-box .ref-copy { border-radius: 999px; min-height: 40px; padding: 6px 16px; }
ol.done-steps { list-style: none; margin: 6px 0 16px; padding: 0; display: grid; gap: 8px; text-align: start; }
ol.done-steps li { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
ol.done-steps li i { flex: 0 0 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: .85rem; background: var(--selected); color: var(--gold-text); }
ol.done-steps li.is-now i { background: var(--gold); color: var(--on-gold); }
/* B salon details: chosen treatment, day and time */
.sl-pick-sum small { display: block; color: var(--text-2); font-size: .88rem; }
/* E waiting tabs: four equal columns, count under the label */
nav.qtabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; overflow: visible; }
nav.qtabs a, :root[data-theme="dark"] nav.qtabs a { min-width: 0; padding-inline: 2px; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 2px; white-space: normal; }
nav.qtabs a span { font-size: .85rem; line-height: 1.25; }
li.q-day .qd-when { font-weight: 700; color: var(--gold-text); }
/* F salon desk: more bookings than seats at one time */
.scard-th .th-over { margin-inline-start: 8px; font-size: .78rem; font-weight: 700; color: var(--st-danger); background: var(--danger-bg); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
/* G schedule rules: number box beside the question */
#sc-rules .field.rule-row { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 4px 12px; align-items: center; }
#sc-rules .field.rule-row label { grid-column: 1; margin: 0; }
#sc-rules .field.rule-row input { grid-column: 2; grid-row: 1; text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 6px; min-height: 44px; }
#sc-rules .field.rule-row .hint { grid-column: 1 / -1; margin: 0; }
/* H expenses */
.rep-kpis .kpi-profit { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 10px; }
.rep-kpis .kpi-profit b { color: var(--st-ok); }
.rep-kpis .kpi-profit.is-loss b { color: var(--st-danger); }
.amt-wrap { position: relative; display: block; }
.amt-wrap input { padding-inline-end: 46px; }
.amt-wrap .amt-cur { position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); font-size: .85rem; color: var(--text-2); pointer-events: none; }

/* ===== 1.92.0 (mockups 120 + 121) ===== */
/* Phone booking: days in three columns, weekday over date */
.chipset-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; overflow: visible; flex-wrap: wrap; padding-block-end: 0; }
.chipset-days .chipx { flex: initial; min-width: 0; }
.chipset-days .chipx span { white-space: normal; display: flex; flex-direction: column; align-items: center; line-height: 1.25; padding: 8px 4px; text-align: center; }
.chipset-days .chipx span small { font-size: .8rem; color: var(--text-2); }
.chipset-days .chipx input:checked + span small { color: inherit; }
.chipset-days .chipx input:disabled + span { opacity: .45; }
/* Shared salon list: more bookings than seats */
.slot-head .th-over { margin-inline-start: 8px; font-size: .78rem; font-weight: 700; color: var(--st-danger); background: var(--danger-bg); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
/* Day page */
.day-nav-mid .dn-when { font-size: .75rem; font-weight: 700; color: var(--gold-text); border: 1px solid var(--gold-text); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.slot-card.st-pending, :root[data-theme="light"] .slot-card.st-pending, :root[data-theme="dark"] .slot-card.st-pending { border-inline-start-color: var(--st-pending); border-inline-start-style: dashed; }
.slot-card.st-pending .visit-fold-btn { border-style: dashed; }
/* WhatsApp messages: groups and "edited" */
h3.msg-grp { font-size: .95rem; color: var(--gold-text); margin: 18px 0 8px; font-weight: 700; }
.msg-list > h3.msg-grp:first-child { margin-top: 4px; }
.msg-mine { font-size: .72rem; font-weight: 700; border: 1px solid var(--gold-text); color: var(--gold-text); border-radius: 999px; padding: 1px 8px; margin-inline-start: 6px; vertical-align: middle; white-space: nowrap; font-family: inherit; }
/* Change-time page */
.chg-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; border: 1px solid var(--gold); background: var(--selected); border-radius: 12px; padding: 10px 14px; margin: 12px 0 0; font-size: .95rem; }
.chg-pick[hidden] { display: none; }
.day-strip { -webkit-mask-image: linear-gradient(to left, #000 88%, transparent); mask-image: linear-gradient(to left, #000 88%, transparent); }
:root[dir="ltr"] .day-strip { -webkit-mask-image: linear-gradient(to right, #000 88%, transparent); mask-image: linear-gradient(to right, #000 88%, transparent); }
/* Staff */
.st-av { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--selected); color: var(--gold-text); font-weight: 700; font-size: 1.05rem; margin-inline-end: 10px; }
section.card.st-perms { padding-top: 0; margin-top: 12px; }
section.card.st-perms > details > summary { display: flex; align-items: center; gap: 6px; }
section.card.st-perms > details > summary::after { content: "▾"; margin-inline-start: auto; font-size: .85em; }
section.card.st-perms > details[open] > summary::after { content: "▴"; }
/* Salon settings: on/off word, link on one line */
.swrow .mtxt { order: 0; }
.swrow .sw-state { order: 1; margin-inline-start: auto; font-size: .8rem; font-weight: 700; white-space: nowrap; color: var(--text-2); }
.swrow .sw-track { order: 2; }
.swrow .sw-in:checked ~ .sw-state { color: var(--st-ok); }
.swrow .sw-in:checked ~ .sw-state .sw-off, .swrow .sw-in:not(:checked) ~ .sw-state .sw-on { display: none; }
.ss-copy.ss-link { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.ss-copy.ss-link code { flex: 1 1 0; width: 0; min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: .85rem; display: block; word-break: normal; }
.ss-copy.ss-link .btn { min-height: 44px; display: inline-flex; align-items: center; }

/* ===== 1.93.0 (mockup 122) ===== */
/* Salon done: round copy button, address and WhatsApp links */
.done-links { display: grid; gap: 8px; margin-top: 10px; }
.done-links a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid var(--line); border-radius: 999px; color: var(--gold-text); font-weight: 600; padding: 6px 14px; text-align: center; }
/* Bookings list: a request looks like a request (dashed, as on the day page) */
.bk-list .badge.status-pending { border: 1px dashed var(--st-pending); color: var(--st-pending); background: transparent; }
/* Contact report: last service line */
.rc-svc { display: block; color: var(--text-2); font-size: .85rem; }

/* ===== 1.94.0: extras with a home treatment, walk-in visit, phone location ===== */
.xt-card h2 { margin-bottom: 4px; }
.xt-card .hint { margin: 0 0 10px; }
.xt-set { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.xt-leg { font-weight: 700; font-size: .95rem; margin-bottom: 6px; padding: 0; }
.xt-opt { display: flex; align-items: center; gap: 10px; min-height: 48px; border: 1px solid var(--line); padding: 8px 12px; margin-bottom: 6px; cursor: pointer; }
.xt-opt input { width: 20px; height: 20px; accent-color: var(--gold); flex: none; margin: 0; }
.xt-opt > span:not(.xt-p) { flex: 1; min-width: 0; }
.xt-opt .xt-p { flex: none; white-space: nowrap; color: var(--text-2); }
.xt-opt .xt-p b { color: var(--text); }
.xt-opt:has(input:checked) { border-color: var(--gold); background: var(--selected); }
.xt-opt:has(input:focus-visible) { outline: 2px solid var(--gold-text); outline-offset: 2px; }
.xt-sub { margin: -2px 0 8px; padding-inline-start: 14px; border-inline-start: 2px solid var(--gold); }
.xt-sub[hidden], .xt-sum[hidden], [data-xt-err][hidden] { display: none; }
.xt-ask { font-size: .9rem; color: var(--text-2); margin: 4px 0 6px; }
.xt-sum { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 10px; margin: 0; font-weight: 700; }
.xt-list { display: grid; gap: 0; margin-bottom: 12px; }
.xt-bad .xt-opt { border-color: var(--st-danger); }
.wk-svc { border: 0; padding: 0; margin: 0; min-width: 0; }
.wk-svc legend { padding: 0; margin: 0 0 8px; }
.wk-add { margin: 10px 0 14px; }
.wk-gps-msg { margin-block: 8px 12px; }
.wk-bar { display: flex; gap: 10px; }
.wk-bar .btn { flex: 1; }
.loc-ask { margin-bottom: 14px; }
.loc-ask-h { margin: 0 0 10px; font-weight: 700; }
.loc-ask-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.acc-loc form { margin: 0; }
.loc-row { align-items: center; }
.loc-row .row-main b .badge { margin-inline-start: 4px; font-weight: 600; }

/* ===== 1.95.0: one page per lady, address page, polish of the 1.94.0 pages ===== */
.pp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 6px; }
.pp-of { font-size: .9rem; color: var(--text-2); }
.pp-dots { display: flex; gap: 6px; }
.pp-dots span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-size: .85rem; color: var(--text-2); }
.pp-dots span.is-on { background: var(--gold-text); color: var(--bg); border-color: var(--gold-text); font-weight: 700; }
.pp-dots span.is-done { border-color: var(--gold-text); color: var(--gold-text); }
.pp-name { margin-bottom: 14px; }
.pp-done { border: 1px solid var(--line); padding: 8px 12px; margin: 0 0 12px; font-size: .88rem; color: var(--text-2); }
.pp-done b { color: var(--text); }
.pp-list { list-style: none; margin: 0; padding: 0; }
.pp-list li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.pp-list li:first-child { border-top: 0; padding-top: 2px; }
.pp-n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--selected); color: var(--gold-text); font-size: .8rem; font-weight: 700; }
.pp-t { display: flex; flex-direction: column; min-width: 0; }
.pp-t small { color: var(--text-2); }
.st-row.st-row-pp { flex-direction: column; align-items: stretch; gap: 6px; }
.bf-pp { grid-column: 1 / -1; }
.wk-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.wk-meta span { border: 1px solid var(--line); background: var(--selected); padding: 3px 10px; font-size: .85rem; border-radius: 999px; color: var(--text); }
.wk-sub { font-weight: 700; font-size: .92rem; color: var(--gold-text); margin: 10px 0 6px; }
.xt-list > .wk-sub:first-child { margin-top: 0; }
.xt-opt .xt-name { display: flex; flex-direction: column; }
.xt-opt .xt-name small { font-size: .8rem; color: var(--text-2); font-weight: 400; }
.wk-other-hint { margin: -4px 0 10px; font-size: .88rem; color: var(--gold-text); }
.wk-other-hint[hidden] { display: none; }
.wk-gps { display: flex; align-items: center; justify-content: center; gap: 8px; }
.wk-gps svg { flex: none; }
.wk-cap { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 8px 12px; margin: 8px 0 12px; font-size: .88rem; color: var(--text-2); }
.wk-cap .wk-ok { display: none; flex: none; }
.wk-cap.is-set { border-color: var(--st-ok); color: var(--st-ok); font-weight: 600; }
.wk-cap.is-set .wk-ok { display: block; }
.wk-or { margin: 0 0 4px; }
.loc-sum { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.loc-sum span { border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; font-size: .85rem; }
.loc-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--text-2); margin-inline-end: 6px; vertical-align: middle; }
.loc-dot.is-fresh { background: var(--st-ok); }
.loc-h { font-size: 1rem; margin: 18px 0 8px; color: var(--text-2); }
.loc-off .row { opacity: .6; }
.loc-row .btn { display: inline-flex; gap: 6px; align-items: center; }
.xt-opt .xt-from { font-size: .9rem; }
.xe-sub { margin: -6px 0 12px; color: var(--text-2); }
.xe-note { border-inline-start: 3px solid var(--gold); padding: 6px 12px; background: var(--selected); margin: 0 0 14px; font-size: .92rem; }

/* 1.96.0: "I'm on my way" with the Google Maps trip link */
.trip-d > summary { list-style: none; cursor: pointer; }
.trip-d > summary::-webkit-details-marker { display: none; }
.trip-d[open]:not(.trip-again) > summary { display: none; }
.trip { border: 1px solid var(--gold-soft); background: var(--selected); border-radius: 14px; padding: 14px; display: grid; gap: 10px; }
.trip-again .trip { margin-top: 8px; }
.trip h3 { margin: 0; font-size: 1.05rem; color: var(--text); }
.trip > p { margin: 0; color: var(--text-2); font-size: .92rem; line-height: 1.6; }
.trip label { font-weight: 700; color: var(--text); font-size: .95rem; }
.trip-row { display: flex; gap: 8px; }
.trip-row input { flex: 1; min-width: 0; }
.trip-row .btn { flex: none; padding-inline: 16px; }
.trip .trip-ok { color: var(--st-ok); font-size: .88rem; }
.trip .trip-bad { color: var(--st-danger); font-size: .88rem; }
.trip .trip-ok[hidden], .trip .trip-bad[hidden] { display: none; }
.trip-help { font-size: .92rem; color: var(--text-2); }
.trip-help summary { color: var(--gold-text); cursor: pointer; }
.trip-help ol { margin: .4rem 0 0; padding-inline-start: 1.2rem; display: grid; gap: 4px; line-height: 1.6; }
.trip .btn.is-off { opacity: .45; }
.trip-again > summary { display: flex; gap: 8px; align-items: center; justify-content: space-between; background: var(--ok-bg); color: var(--st-ok); border-radius: 12px; padding: 10px 12px; font-size: .92rem; }
.trip-again .trip-re { white-space: nowrap; color: var(--text-2); font-size: .85rem; }

/* 1.96.1: opened from the booking page, the card starts below the top bar */
.trip-d { scroll-margin-top: 5rem; }

/* 1.96.2: the trip link card in the booking page's WhatsApp messages */
.msg-row-trip { flex-wrap: wrap; }
.msg-row-trip .trip-d[open] { flex-basis: 100%; }
.msg-row-trip .trip-d[open] > summary { display: none; }
