/* True Services — Site B v2 (navy + blue, Archivo). Colors mirror config/business.yml. */
:root {
  --blue: #2F6BFF;
  --blue-text: #1F4FD1;
  --blue-dark: #163A9E;
  --blue-tint: #EEF3FF;
  --sky: #7FA6FF;
  --navy: #0B1220;
  --navy-line: #1F2A3F;
  --mist: #F3F6FB;
  --line: #DCE3EE;
  --line-soft: #E6EBF3;
  --input-line: #C5CFDF;
  --ink: #0B1220;
  --muted: #4A5568;
  --on-dark: #C7D2E5;
  --on-dark-dim: #A9B6CC;
  --ok-bg: #E6EEFF; --ok-fg: #163A9E;
  --warn-bg: #FFF1E0; --warn-fg: #7A3A00;
  --bad-bg: #FDECEA; --bad-fg: #A3261A;
  --mute-bg: #EEF1F6;
  --radius: 14px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #FFFFFF; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.page-mist { background: var(--mist); }
img, svg { display: block; }
h1, h2, h3, p { margin: 0; }
a { color: var(--blue-text); }
a:hover { color: var(--blue-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; background: #FFFFFF; color: var(--ink); padding: 10px 14px; border-radius: 8px; z-index: 10; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* Layout */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: 24px; }
.container--wide { max-width: 1320px; }
.container--narrow { max-width: 880px; }
.container--xs { max-width: 440px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; border: 0; margin: 0; padding: 0; min-width: 0; }
.stack-lg { display: flex; flex-direction: column; gap: 36px; }
.band { padding-block: 88px; }
.band--mist { background: var(--mist); }
.band--blue { background: var(--blue); color: #FFFFFF; }
.dark-band { background: var(--navy); color: #FFFFFF; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.strong { font-weight: 800; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; word-break: break-all; }
.text-sky { color: var(--sky); }

/* Buttons & links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 8px; border: 0; font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; transition: background .15s, opacity .15s; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--blue { background: var(--blue); color: #FFFFFF; }
.btn--blue:hover { background: var(--blue-text); color: #FFFFFF; }
.btn--navy { background: var(--navy); color: #FFFFFF; }
.btn--navy:hover { background: #1A2333; color: #FFFFFF; }
.btn--outline { background: #FFFFFF; color: var(--ink); border: 1.5px solid var(--input-line); }
.btn--outline:hover { border-color: var(--ink); color: var(--ink); }
.btn--lg { min-height: 56px; padding: 16px 28px; font-size: 17px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.text-link { font-weight: 700; text-decoration: none; display: inline-flex; padding-block: 8px; }
.link-btn { background: none; border: 0; padding: 6px 0; font-weight: 700; color: var(--sky); cursor: pointer; }
.link-btn--light { color: var(--on-dark); }
.link-btn--light:hover { color: #FFFFFF; }

/* Header / footer */
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #FFFFFF; text-decoration: none; }
.brand:hover { color: #FFFFFF; }
.brand--dark, .brand--dark:hover { color: var(--ink); }
.brand__name { font-weight: 900; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; }
.brand__name--sm { font-size: 17px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-weight: 600; font-size: 15px; }
.site-nav a:not(.btn) { color: var(--on-dark); text-decoration: none; padding-block: 10px; }
.site-nav a:not(.btn):hover { color: #FFFFFF; }
.sandbox-badge { font-size: 13px; font-weight: 700; color: #FFE2B8; border: 1px solid #6B4A2A; padding: 6px 12px; border-radius: 999px; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 28px 40px; border-top: 1px solid var(--navy-line); font-size: 14px; color: var(--on-dark-dim); }
.site-footer a { color: var(--on-dark); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-block: 64px 88px; }
.hero__copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.eyebrow { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.eyebrow--sky { color: var(--sky); }
.display { font-weight: 900; font-size: clamp(56px, 9vw, 96px); line-height: .92; letter-spacing: -.03em; text-transform: uppercase; }
.lead { font-size: 20px; line-height: 1.5; color: var(--on-dark); max-width: 540px; }
.lead--light { color: #FFFFFF; font-size: 18px; }
.lead--dark { color: var(--muted); font-size: 17px; max-width: none; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-weight: 600; font-size: 15px; }
.checks li { display: flex; align-items: center; gap: 8px; }

.quick-book { flex: 1 1 360px; min-width: 0; background: #FFFFFF; color: var(--ink); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.quick-book__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.quick-book__head h2 { font-size: 22px; font-weight: 800; }
.quick-book__note { font-size: 13px; color: var(--muted); text-align: center; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; min-width: 0; }
.field-row > .field { flex: 1 1 240px; }
.field__hint { font-weight: 500; color: var(--muted); }
.field-label { font-size: 14px; font-weight: 700; color: var(--muted); padding: 0; margin-bottom: 4px; }
.field-row { display: flex; flex-wrap: wrap; gap: 16px; }
.input { width: 100%; padding: 13px 14px; border: 1.5px solid var(--input-line); border-radius: 10px; background: #FFFFFF; font-weight: 500; font-size: 16px; }
.input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(47, 107, 255, .2); }
/* Own chevron instead of the browser's, inset to match the text padding */
select.input {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234A5568' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
select.input::-ms-expand { display: none; }
textarea.input { resize: vertical; }
.input--code { max-width: 260px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.input--code.is-valid { border-color: var(--blue); }
.input--code.is-invalid { border-color: var(--bad-fg); }
.checkbox { width: 20px; height: 20px; accent-color: var(--blue); }
.check-field { display: flex; align-items: center; gap: 10px; font-weight: 600; }

/* Sections */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.section-head__aside { font-size: 17px; max-width: 440px; }
.section-title { font-weight: 900; font-size: clamp(36px, 5vw, 52px); line-height: 1; text-transform: uppercase; letter-spacing: -.02em; }
.section-title--xl { font-size: clamp(40px, 6vw, 56px); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.service-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.service-card p { color: var(--muted); flex-grow: 1; }
.service-card h3 { font-size: 22px; font-weight: 800; }
.service-card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.service-card__price { font-weight: 800; font-size: 18px; white-space: nowrap; }
.service-card .btn, .service-card .text-link { align-self: flex-start; }
.service-card--dark { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.service-card--dark p { color: var(--on-dark); }
.service-card--dark .service-card__price { color: var(--sky); }

.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split__main { flex: 1 1 460px; min-width: 0; }
.split__main .btn { align-self: flex-start; }
.split__side { flex: 1 1 340px; min-width: 0; }
.checklist-card { list-style: none; margin: 0; padding: 28px; background: var(--navy); border-radius: 20px; display: flex; flex-direction: column; gap: 14px; font-size: 18px; font-weight: 600; }
.checklist-card li { display: flex; align-items: center; gap: 12px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.steps li { display: flex; flex-direction: column; gap: 8px; border-top: 4px solid var(--blue); padding-top: 20px; }
.steps strong { font-size: 22px; font-weight: 800; }
.steps p { color: var(--muted); }
.steps__num { font-weight: 900; font-size: 15px; color: var(--blue-text); }

.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); padding-block: 22px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 800; font-size: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue-text); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin-top: 12px; color: var(--muted); font-size: 17px; line-height: 1.6; }

.cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-block: 72px; }

/* Panels & notices */
.panel { background: #FFFFFF; border: 1px solid var(--line); border-radius: 18px; padding: 28px; min-width: 0; }
.panel--flush { padding: 0; overflow: hidden; }
.panel--dark { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
.panel-title { font-size: 18px; font-weight: 800; }
.notice { padding: 14px 16px; border-radius: 10px; background: var(--blue-tint); font-weight: 600; font-size: 15px; }
.notice--ok { background: var(--ok-bg); color: var(--ok-fg); }
.notice--warn { background: var(--warn-bg); color: var(--warn-fg); }
.notice--bad { background: var(--bad-bg); color: var(--bad-fg); }
.label-caps { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.label-caps--sky { color: var(--sky); }

/* Booking */
.booking { padding-block: 36px 64px; display: flex; flex-direction: column; gap: 24px; }
.progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.progress li { display: flex; flex-direction: column; gap: 8px; }
.progress__bar { height: 6px; border-radius: 3px; background: var(--line); }
.progress li.is-active { color: var(--ink); }
.progress li.is-active .progress__bar { background: var(--blue); }
.booking__layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.booking__main { flex: 999 1 560px; display: flex; flex-direction: column; gap: 24px; }
.booking__main > section { display: flex; flex-direction: column; gap: 22px; }
.booking__main > section[hidden] { display: none; }
.step-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.step-head p { margin-top: 6px; }
.step-head__count { font-size: 14px; font-weight: 700; color: var(--blue-text); }
.step-title { font-weight: 900; font-size: 32px; line-height: 1.05; text-transform: uppercase; letter-spacing: -.01em; }
.step-title--lg { font-size: 40px; }

.choice-grid { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.choice { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 18px; border: 2px solid var(--line); border-radius: 14px; background: #FFFFFF; cursor: pointer; min-height: 104px; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__box { flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px; border: 2px solid #9AA6BA; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.choice__box svg { opacity: 0; }
.choice__body { display: flex; flex-direction: column; gap: 6px; flex-grow: 1; min-width: 0; }
.choice__top { display: flex; justify-content: space-between; gap: 10px; font-size: 17px; }
.choice__desc { font-size: 14px; color: var(--muted); line-height: 1.4; }
.choice:has(input:checked) { border-color: var(--blue); background: var(--blue-tint); }
.choice:has(input:checked) .choice__box { background: var(--blue); border-color: var(--blue); }
.choice:has(input:checked) .choice__box svg { opacity: 1; }
.choice:has(input:focus-visible) { outline: 3px solid var(--sky); outline-offset: 2px; }

.hours-box { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; background: var(--blue-tint); border-radius: 14px; padding: 14px 18px; }
.hours-box__label { flex: 1 1 220px; font-weight: 700; }
.hours-box__value { font-weight: 900; font-size: 26px; min-width: 76px; text-align: center; }
.square-btn { width: 48px; height: 48px; border-radius: 10px; border: 1.5px solid var(--input-line); background: #FFFFFF; font-size: 22px; cursor: pointer; }

.day-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.day, .time { position: relative; cursor: pointer; }
.day input, .time input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border: 2px solid var(--line); border-radius: 12px; background: #FFFFFF; }
.day__dow { font-size: 13px; font-weight: 600; color: var(--muted); }
.day__num { font-weight: 900; font-size: 18px; }
.day__open { font-size: 12px; color: var(--muted); }
.time-row { display: flex; flex-wrap: wrap; gap: 8px; }
.time span { display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px; border: 2px solid var(--line); border-radius: 10px; background: #FFFFFF; font-weight: 700; }
.time--taken { cursor: not-allowed; }
.time--taken span { background: var(--mist); color: #6B768A; text-decoration: line-through; }
.day:has(input:checked), .time:has(input:checked) span { border-color: var(--blue); background: var(--blue-tint); }
.day:has(input:focus-visible), .time:has(input:focus-visible) span { outline: 3px solid var(--sky); outline-offset: 2px; }

.referral { background: var(--mist); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.referral__msg { font-size: 14px; font-weight: 600; }
.referral__msg.is-valid { color: var(--blue-text); }
.referral__msg.is-invalid { color: var(--bad-fg); }
.card-box { border: 1.5px solid var(--input-line); border-radius: 14px; padding: 20px 20px 8px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }

.step-nav { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; }

.summary { flex: 1 1 320px; min-width: 0; background: var(--navy); color: #FFFFFF; border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.summary__title { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--sky); }
.summary__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.summary__col { display: flex; flex-direction: column; gap: 4px; flex-grow: 1; min-width: 0; }
.summary__label { font-size: 13px; color: var(--on-dark-dim); }
.summary__lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.summary__lines li { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }
.summary__lines li span + span { color: var(--on-dark); font-weight: 500; }
.summary__empty { color: var(--on-dark); }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--navy-line); padding-top: 16px; color: var(--on-dark); }
.summary__total strong { font-weight: 900; font-size: 32px; color: #FFFFFF; }
.summary__notes { margin: 0; padding-left: 18px; font-size: 13px; color: var(--on-dark); display: flex; flex-direction: column; gap: 6px; }

/* Confirmation & sign-in */
.confirm, .signin { padding-block: 48px 72px; }
.receipt { display: flex; flex-direction: column; gap: 10px; background: var(--mist); border-radius: 14px; padding: 18px 20px; }
.receipt__row { display: flex; justify-content: space-between; gap: 12px; }
.receipt__row--total { border-top: 1px solid var(--line); padding-top: 10px; font-size: 17px; }

/* Admin */
.admin-header { background: var(--navy); color: #FFFFFF; }
.admin-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-block: 12px; }
.admin-header__tag { font-size: 13px; font-weight: 700; color: var(--sky); }
.admin-header__meta { display: flex; align-items: center; gap: 14px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.admin-tab { padding: 11px 16px; border-radius: 8px; color: var(--on-dark); font-weight: 700; text-decoration: none; }
.admin-tab:hover { color: #FFFFFF; }
.admin-tab[aria-current="page"] { background: var(--blue); color: #FFFFFF; }
.admin-main { padding-block: 32px 64px; display: flex; flex-direction: column; gap: 22px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.stat { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.stat__label { font-size: 13px; font-weight: 600; color: var(--muted); }
.stat__value { font-weight: 900; font-size: 30px; }
.stat__sub { font-size: 13px; color: var(--muted); }
.stat--dark { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.stat--dark .stat__label, .stat--dark .stat__sub { color: var(--on-dark); }
.stat--dark .stat__value { color: var(--sky); }

.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.toolbar__right { display: flex; flex-wrap: wrap; gap: 10px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter { padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--input-line); background: #FFFFFF; color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; }
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.search { display: flex; align-items: center; gap: 8px; background: #FFFFFF; border: 1.5px solid var(--input-line); border-radius: 10px; padding: 0 12px; color: var(--muted); }
.search input { border: 0; outline: none; padding: 12px 0; width: 230px; max-width: 60vw; background: transparent; color: var(--ink); }

.table-scroll { overflow-x: auto; }
.table { border-collapse: collapse; width: 100%; font-size: 14px; }
.table th, .table td { text-align: left; padding: 14px 16px; white-space: nowrap; border-bottom: 1px solid var(--line-soft); }
.table th { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; background: #F8FAFD; }
.table tbody tr:hover { background: #F8FAFD; }
.cell-stack { display: flex; flex-direction: column; gap: 2px; }
.empty { padding: 28px; text-align: center; color: var(--muted); }

.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill--ok { background: var(--ok-bg); color: var(--ok-fg); }
.pill--warn { background: var(--warn-bg); color: var(--warn-fg); }
.pill--bad { background: var(--bad-bg); color: var(--bad-fg); }
.pill--mute { background: var(--mute-bg); color: var(--muted); }

.detail-layout { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.detail-layout > :first-child { flex: 999 1 560px; }
.detail-layout > :last-child { flex: 1 1 340px; }
.detail-layout--side-first > :first-child { flex: 1 1 320px; }
.detail-layout--side-first > :last-child { flex: 999 1 600px; }
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.detail-name { font-size: 18px; }
.note-box { background: var(--mist); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.dl { margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.dl div { display: flex; justify-content: space-between; gap: 12px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 700; text-align: right; }
.dl--dark { border-top: 1px solid var(--navy-line); padding-top: 14px; }
.dl--dark dt { color: var(--on-dark); }
.partner-name { font-size: 24px; font-weight: 900; }
.on-dark-muted { color: var(--on-dark); font-size: 14px; }
.owed { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--navy-line); padding-top: 14px; color: var(--on-dark); }
.owed strong { font-size: 34px; font-weight: 900; color: var(--sky); }
.form-panel { max-width: 760px; }

/* Phone-only pieces, hidden on wider screens */
.show-sm, .show-sm-inline { display: none; }
.mobile-menu, .booking-mobile-head, .summary-toggle, .mobile-bar { display: none; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; }

/* ---------- Phone (≤ 640px) — mirrors the 390px boards on the design canvas ---------- */
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .show-sm-inline { display: inline; }

  .container { padding-inline: 16px; }
  .band { padding-block: 48px; }
  .panel { padding: 20px; }
  .stack-lg { gap: 22px; }

  /* Header: logo, Book, menu */
  .site-header { position: relative; }
  .site-header__inner { flex-wrap: nowrap; padding-block: 12px; gap: 10px; }
  .brand { gap: 9px; min-height: 44px; }
  .admin-header__meta .link-btn { min-height: 44px; padding-inline: 8px; }
  .brand svg { width: 32px; height: 32px; }
  .brand__name { font-size: 16px; }
  .site-nav { flex-wrap: nowrap; gap: 6px; }
  .site-nav__link { display: none; }
  .site-nav__book { min-height: 44px; padding: 10px 16px; font-size: 14px; }
  .mobile-menu { display: block; }
  .mobile-menu summary { list-style: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 8px; cursor: pointer; color: #FFFFFF; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu[open] summary { background: var(--navy-line); }
  .mobile-menu__panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: var(--navy); border-top: 1px solid var(--navy-line); border-bottom: 1px solid var(--navy-line); padding: 8px 16px 16px; display: flex; flex-direction: column; box-shadow: 0 20px 40px rgba(0, 0, 0, .35); }
  .mobile-menu__panel a { color: #FFFFFF; text-decoration: none; font-weight: 700; font-size: 17px; padding-block: 14px; border-bottom: 1px solid var(--navy-line); }
  .mobile-menu__panel a:last-child { border-bottom: 0; }
  .sandbox-badge { font-size: 12px; padding: 5px 10px; white-space: nowrap; }

  /* Home: quick-book right under the headline, checks after it */
  .hero { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 22px; padding-block: 32px 40px; }
  .hero__copy { display: contents; }
  .hero__checks { order: 1; flex-direction: column; gap: 10px; }
  .display { font-size: 58px; }
  .lead { font-size: 17px; }
  .eyebrow { font-size: 13px; }
  .quick-book { flex: none; padding: 20px; border-radius: 18px; gap: 16px; }
  .quick-book__head h2 { font-size: 20px; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .section-head__aside { font-size: 16px; }
  .section-title { font-size: 38px; }
  .section-title--xl { font-size: 42px; }
  .card-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .service-card { padding: 18px; gap: 8px; border-radius: 14px; }
  .service-card h3 { font-size: 19px; }
  .service-card__price { font-size: 17px; }
  .service-card p { font-size: 15px; }
  .service-card .text-link { padding-block: 12px 4px; }
  .service-card .btn { align-self: stretch; }

  .split { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 18px; }
  .split__main { display: contents; }
  .split__side { flex: none; }
  .split__main .split__cta { order: 1; align-self: stretch; }
  .checklist-card { padding: 20px; font-size: 16px; gap: 12px; border-radius: 16px; }
  .lead--light { font-size: 16px; }

  .steps--pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .steps li { padding-top: 14px; gap: 6px; }
  .steps strong { font-size: 18px; }
  .steps p { font-size: 14px; }

  .faq details { padding-block: 16px; }
  .faq summary { font-size: 17px; }
  .faq p { font-size: 15px; }

  .cta { flex-direction: column; align-items: stretch; padding-block: 48px 32px; gap: 20px; }
  .cta .section-title { font-size: 36px; }
  .site-footer { font-size: 13px; padding-block: 20px 32px; }

  /* Booking: one step per screen, summary folds away, action pinned to the bottom */
  .booking { padding-block: 0 calc(112px + env(safe-area-inset-bottom)); gap: 14px; }
  .booking-mobile-head { display: flex; align-items: center; gap: 4px; min-height: 52px; margin-inline: -8px; font-size: 14px; font-weight: 700; color: var(--muted); }
  .booking-mobile-head .icon-btn { color: var(--ink); }
  .booking-mobile-head__label { padding-left: 8px; }
  .progress { gap: 4px; margin-top: -6px; }
  .progress li > span:last-child { display: none; }
  .progress__bar { height: 5px; }

  .booking__layout { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 14px; }
  .booking__main { flex: none; padding: 0; background: transparent; border: 0; gap: 18px; }
  .booking__main > section { gap: 18px; }
  .step-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .step-title { font-size: 28px; }
  .step-nav, .booking__pay-inline { display: none; }

  .summary-toggle { display: flex; order: -2; width: 100%; min-height: 52px; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer; }
  .summary-toggle__total { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; font-size: 17px; }
  .summary-toggle__chev { color: var(--blue-text); transition: transform .15s; }
  .booking.is-summary-open .summary-toggle__chev { transform: rotate(180deg); }
  .summary { display: none; order: -1; flex: none; padding: 18px; border-radius: 14px; }
  .booking.is-summary-open .summary { display: flex; }
  .summary .link-btn { padding: 10px 4px; }
  .summary__total strong { font-size: 24px; }

  .choice-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .choice { min-height: 0; padding: 14px; }
  .choice__top { font-size: 16px; }

  .hours-box { padding: 14px 16px; }
  .hours-box__label { flex-basis: 100%; }
  .hours-box .square-btn { width: 52px; height: 52px; font-size: 24px; }
  .hours-box__value { flex-grow: 1; font-size: 28px; }

  .day-grid { display: flex; gap: 8px; overflow-x: auto; margin-inline: -16px; padding: 0 16px 6px; scroll-snap-type: x proximity; }
  .day { flex: 0 0 78px; scroll-snap-align: start; padding: 10px 4px; }
  .day__num { font-size: 16px; white-space: nowrap; }
  .time-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .time span { justify-content: center; min-height: 52px; width: 100%; font-size: 16px; }

  .field-row { flex-direction: column; gap: 18px; }
  .field-row > .field { flex: none; }
  .referral { background: #FFFFFF; border: 1px solid var(--line); padding: 16px; }
  .input--code { max-width: none; }
  .card-box { background: #FFFFFF; padding: 16px 16px 8px; }

  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; align-items: center; gap: 14px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #FFFFFF; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(11, 18, 32, .06); }
  .mobile-bar__total { display: flex; flex-direction: column; min-width: 0; }
  .mobile-bar__total span { font-size: 12px; font-weight: 600; color: var(--muted); }
  .mobile-bar__total strong { font-size: 22px; font-weight: 900; line-height: 1.1; }
  .mobile-bar__btn { flex-grow: 1; min-height: 54px; border-radius: 12px; padding-inline: 16px; }

  /* Confirmation */
  .confirm { padding-block: 24px 48px; }
  .step-title--lg { font-size: 34px; }
  .lead--dark { font-size: 16px; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; }

  /* Admin: segmented tabs, swipeable stats, tables as cards */
  .admin-header__inner { padding-block: 12px 14px; gap: 12px; }
  .admin-header__inner > .brand { flex: 1 1 auto; min-width: 0; }
  .admin-header .brand__name { display: none; }
  .admin-header__meta { gap: 6px; }
  .admin-tabs { order: 1; flex: 1 1 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; background: #1A2438; border-radius: 10px; }
  .admin-tab { min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 0 6px; font-size: 14px; }
  .admin-main { padding-block: 16px 32px; gap: 14px; }

  .stats--strip { display: flex; gap: 10px; overflow-x: auto; margin-inline: -16px; padding: 0 16px 4px; scroll-snap-type: x proximity; }
  .stats--strip .stat { flex: 0 0 156px; padding: 14px; scroll-snap-align: start; }
  .stats--strip .stat--dark { order: -1; }
  .stat__value { font-size: 24px; }
  .stat__label, .stat__sub { font-size: 12px; }

  .toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .toolbar > * { min-width: 0; }
  .toolbar__right { display: grid; grid-template-columns: minmax(0, 1fr); }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px 2px; order: 1; }
  .filter { flex-shrink: 0; min-height: 40px; display: inline-flex; align-items: center; }
  .search { min-width: 0; }
  .search input { flex: 1 1 0; width: 0; min-width: 0; max-width: none; padding-block: 13px; }
  .toolbar__export { order: 2; }

  .panel--flush { padding: 0; }
  .panel--flush:has(.table--cards) { background: transparent; border: 0; border-radius: 0; overflow: visible; }
  .panel--flush:has(.table--cards) .panel-head { padding: 0 0 12px; border: 0; }
  .table--cards, .table--cards tbody { display: block; }
  .table--cards thead { display: none; }
  .table--cards tr { display: grid; position: relative; gap: 4px 10px; align-items: center; background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
  .table--cards tbody tr:hover { background: #FFFFFF; }
  .table--cards td { padding: 0; border: 0; white-space: normal; min-width: 0; }

  /* Bookings: whole card opens the booking */
  .table--bookings tr { grid-template-columns: max-content minmax(0, 1fr) auto; grid-template-areas: "name name total" "ref when when" "svc svc svc" "pay pay payout"; }
  .table--bookings .c-total, .table--bookings .c-payout { justify-self: end; }
  .table--bookings .c-name { grid-area: name; font-weight: 800; font-size: 16px; }
  .table--bookings .c-total { grid-area: total; font-size: 16px; font-weight: 900; }
  .table--bookings .c-ref { grid-area: ref; font-size: 13px; font-weight: 600; color: var(--muted); }
  .table--bookings .c-when { grid-area: when; font-size: 13px; color: var(--muted); }
  .table--bookings .c-when .cell-stack { flex-direction: row; flex-wrap: wrap; gap: 0 6px; }
  .table--bookings .c-when strong { font-weight: 500; }
  .table--bookings .c-when strong::before { content: "· "; }
  .table--bookings .c-svc { grid-area: svc; font-size: 14px; }
  .table--bookings .c-pay { grid-area: pay; margin-top: 4px; }
  .table--bookings .c-payout { grid-area: payout; margin-top: 4px; }
  .table--bookings .c-act { grid-area: name; }
  .table--bookings .row-link { font-size: 0; padding: 0; }
  .row-link::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
  .row-link:focus-visible { outline: none; }
  .row-link:focus-visible::after { outline: 3px solid var(--sky); outline-offset: 2px; }

  /* Payout ledger: tick, who, how much */
  .table--ledger tr { grid-template-columns: 32px auto minmax(0, 1fr) auto; grid-template-areas: "chk name name amt" "chk ref date status" "chk total total status"; padding: 12px 14px; }
  .table--ledger .c-chk { grid-area: chk; align-self: center; }
  .table--ledger .checkbox { width: 24px; height: 24px; }
  .table--ledger .c-name { grid-area: name; font-weight: 800; font-size: 15px; }
  .table--ledger .c-amt { grid-area: amt; justify-self: end; font-weight: 900; }
  .table--ledger .c-ref { grid-area: ref; font-size: 12px; }
  .table--ledger .c-ref .text-link { padding-block: 4px; }
  .table--ledger .c-date { grid-area: date; font-size: 12px; color: var(--muted); }
  .table--ledger .c-date::before { content: "· "; }
  .table--ledger .c-total { grid-area: total; font-size: 12px; }
  .table--ledger .c-status { grid-area: status; justify-self: end; text-align: right; }
  .table--ledger .c-partner { display: none; }

  /* Services */
  .table--services tr { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "name status act" "price price act" "dur dur act" "count count act"; padding: 12px 8px 12px 14px; }
  .table--services .c-name { grid-area: name; font-size: 15px; }
  .table--services .c-status { grid-area: status; }
  .table--services .c-price { grid-area: price; font-size: 13px; font-weight: 600; }
  .table--services .c-count { grid-area: count; font-size: 13px; }
  .table--services .c-dur { grid-area: dur; font-size: 13px; }
  .table--services .c-act { grid-area: act; }
  .table--services .c-act .text-link { min-height: 44px; min-width: 52px; justify-content: center; align-items: center; }
  .table--services .c-order, .table--services .c-type, .table--services .c-min { display: none; }

  .sticky-action { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #FFFFFF; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(11, 18, 32, .06); }
  .sticky-action .btn { width: 100%; min-height: 54px; border-radius: 12px; }
  .admin-main:has(.sticky-action) { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }

  .partner-name { font-size: 21px; }
  .owed strong { font-size: 30px; }
  .detail-layout { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .detail-layout > * { flex: none !important; }
}

/* Admin settings (calendar) */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; align-items: start; }
.howto summary { cursor: pointer; font-weight: 700; color: var(--blue-text); }
.howto ol, .howto-steps { margin: 10px 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.howto p { margin-top: 8px; }

/* Admin → Settings: booking hours day picker */
.settings-hours { grid-column: 1 / -1; }
.daypicker { border: 0; margin: 0; padding: 0; }
.daypicker__days { display: flex; flex-wrap: wrap; gap: 8px; }
.daypicker__day { position: relative; cursor: pointer; }
.daypicker__day input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.daypicker__day span { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; min-height: 44px; padding: 0 12px; border: 1.5px solid var(--input-line); border-radius: 999px; background: #FFFFFF; font-weight: 700; font-size: 14px; color: var(--ink); }
.daypicker__day input:checked + span { background: var(--blue); border-color: var(--blue); color: #FFFFFF; }
.daypicker__day input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
@media (max-width: 640px) {
  .daypicker__days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .daypicker__day span { width: 100%; min-width: 0; }
}
