:root {
    color-scheme: light;
    --brand-950: #12333b;
    --brand-900: #0f7474;
    --brand-700: #168b89;
    --brand-600: #39aaa5;
    --brand-100: #dff3f1;
    --brand-50: #f3f8f8;
    --ink: #17343c;
    --muted: #60747a;
    --line: #dbe7e7;
    --surface: #ffffff;
    --canvas: #f3f7f7;
    --success: #16794a;
    --warning: #a65300;
    --shadow: 0 18px 55px rgba(8, 47, 73, .10);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); line-height: 1.55; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #f5b942; outline-offset: 3px; }
.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: fixed; z-index: 100; top: .75rem; left: .75rem; padding: .7rem 1rem; background: #fff; border-radius: .5rem; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.public-header, .app-header { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 1rem clamp(1rem, 4vw, 4rem); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.app-header { position: sticky; z-index: 20; top: 0; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; color: #fff; background: linear-gradient(135deg, var(--brand-900), var(--brand-600)); border-radius: .8rem; font-weight: 800; letter-spacing: -.04em; }
.brand span:last-child { display: grid; line-height: 1.2; }
.brand strong { font-size: 1.05rem; }
.brand small { margin-top: .15rem; color: var(--muted); font-size: .72rem; }
.public-main, .app-main { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.public-main { padding: clamp(3rem, 8vw, 7rem) 0 4rem; }
.app-main { padding: clamp(1.5rem, 4vw, 3rem) 0 5rem; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.eyebrow { margin: 0 0 .65rem; color: var(--brand-700); font-size: .75rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2 { margin-top: 0; line-height: 1.12; letter-spacing: -.035em; }
.hero h1 { max-width: 760px; margin-bottom: 1.25rem; color: var(--brand-950); font-size: clamp(2.4rem, 6vw, 4.8rem); }
.lede { max-width: 660px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.3rem; margin-top: 2rem; }
.button { display: inline-flex; min-height: 2.75rem; align-items: center; justify-content: center; padding: .72rem 1.15rem; border: 1px solid transparent; border-radius: .7rem; font-weight: 750; text-decoration: none; cursor: pointer; }
.button-primary { color: #fff; background: var(--brand-900); box-shadow: 0 8px 20px rgba(12,74,110,.2); }
.button-primary:hover { background: var(--brand-700); }
.button-secondary { color: var(--brand-900); background: var(--brand-50); border-color: #bae6fd; }
.button-quiet { min-height: 2.4rem; color: var(--brand-900); background: #fff; border-color: var(--line); }
.button:disabled { opacity: .65; cursor: not-allowed; }
.security-note { color: var(--muted); font-size: .9rem; }
.security-note span { color: var(--success); font-weight: 900; }
.preview-card { overflow: hidden; background: #fff; border: 1px solid #cae5f2; border-radius: 1.4rem; box-shadow: var(--shadow); transform: rotate(1.2deg); }
.preview-top { display: flex; gap: .4rem; padding: 1rem; background: var(--brand-950); }
.preview-top span { width: .55rem; height: .55rem; background: rgba(255,255,255,.5); border-radius: 50%; }
.preview-body { padding: clamp(1.25rem, 4vw, 2rem); }
.preview-body > p { margin: 0; color: var(--brand-700); font-weight: 750; }
.preview-body h2 { margin: .2rem 0 1.5rem; font-size: 1.45rem; }
.preview-body article { display: grid; grid-template-columns: 3.4rem 1fr; align-items: center; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.preview-body article time { color: var(--brand-900); font-weight: 800; }
.preview-body article span { display: grid; }
.preview-body article small { color: var(--muted); }
.preview-body article.is-open strong { color: var(--success); }
.feature-strip, .foundation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: clamp(3rem, 8vw, 6rem); }
.feature-strip article, .card { padding: clamp(1.25rem, 3vw, 2rem); background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 8px 30px rgba(8,47,73,.04); }
.feature-strip article > span, .feature-icon { color: var(--brand-700); font-size: 1.5rem; }
.feature-strip h2, .foundation-grid h2 { margin: .8rem 0 .45rem; font-size: 1.1rem; letter-spacing: -.01em; }
.feature-strip p, .foundation-grid p, .setup-card p { margin: 0; color: var(--muted); }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem clamp(1rem, 4vw, 4rem); color: var(--muted); border-top: 1px solid var(--line); font-size: .82rem; }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-actions form { margin: 0; }
.business-context { display: grid; text-align: right; line-height: 1.2; }
.business-context small { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.workspace-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.workspace-heading h1 { margin-bottom: .5rem; font-size: clamp(2rem, 5vw, 3.1rem); }
.workspace-heading p:last-child { margin: 0; color: var(--muted); }
.status-pill { display: inline-flex; flex: none; gap: .4rem; align-items: center; padding: .55rem .75rem; color: var(--success); background: #eaf8f0; border: 1px solid #bde5ce; border-radius: 999px; font-size: .82rem; font-weight: 800; }
.setup-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.2rem; background: linear-gradient(135deg, #fff, var(--brand-50)); border-color: #bae6fd; }
.setup-card h2 { margin-bottom: .45rem; font-size: 1.35rem; }
.setup-progress { display: grid; gap: .3rem; }
.setup-progress i { width: .42rem; height: 1rem; background: #bae6fd; border-radius: 999px; }
.setup-progress i.is-complete { background: var(--brand-700); }
.dashboard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.metric-card { display: grid; }
.metric-card span { color: var(--muted); font-size: .82rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.metric-card strong { margin: .4rem 0; color: var(--brand-950); font-size: 2rem; }
.metric-card small { color: var(--muted); }
.foundation-grid { margin-top: 1rem; }
.message-card { max-width: 620px; margin: clamp(2rem, 8vw, 6rem) auto; text-align: center; }
.message-card h1 { margin-bottom: 1rem; font-size: clamp(2rem, 5vw, 3rem); }
.message-card p:not(.eyebrow) { color: var(--muted); }
.message-card .button { margin-top: 1rem; }
.message-icon { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin: 0 auto 1.2rem; color: var(--brand-900); background: var(--brand-100); border-radius: 50%; font-size: 1.5rem; font-weight: 900; }
.message-icon.is-warning { color: var(--warning); background: #fff3df; }
.mobile-nav { display: none; }

.onboarding-shell { max-width: 1040px; margin: 0 auto; }
.onboarding-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.5rem; }
.onboarding-heading h1 { max-width: 760px; margin-bottom: .55rem; font-size: clamp(2rem, 5vw, 3.35rem); }
.onboarding-heading p:last-child { margin: 0; color: var(--muted); }
.progress-badge { flex: none; padding: .55rem .8rem; color: var(--brand-900); background: var(--brand-100); border-radius: 999px; font-size: .82rem; font-weight: 800; }
.stepper { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); margin-bottom: 1.25rem; }
.stepper::before { position: absolute; z-index: 0; top: 1.05rem; right: 10%; left: 10%; height: 2px; background: var(--line); content: ""; }
.stepper > a, .stepper > span { position: relative; z-index: 1; display: grid; justify-items: center; gap: .35rem; color: var(--muted); text-align: center; text-decoration: none; }
.stepper > a > span, .stepper > span > span { display: grid; place-items: center; width: 2.15rem; height: 2.15rem; background: var(--surface); border: 2px solid var(--line); border-radius: 50%; font-size: .78rem; font-weight: 850; }
.stepper small { font-size: .72rem; font-weight: 750; }
.stepper .is-current > span { color: #fff; background: var(--brand-900); border-color: var(--brand-900); box-shadow: 0 0 0 5px var(--brand-100); }
.stepper .is-current small { color: var(--brand-900); }
.stepper .is-complete > span { color: #fff; background: var(--success); border-color: var(--success); }
.stepper .is-locked { opacity: .72; }
.onboarding-card { padding: clamp(1.25rem, 4vw, 2.6rem); }
.onboarding-card h2 { margin-bottom: .65rem; font-size: clamp(1.55rem, 4vw, 2.15rem); }
.step-copy { max-width: 740px; margin-bottom: 1.6rem; }
.step-copy > p:last-child, .welcome-grid p { color: var(--muted); }
.welcome-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(1.5rem, 5vw, 4rem); }
.welcome-icon { display: grid; place-items: center; width: 4rem; height: 4rem; margin-bottom: 1.2rem; color: #fff; background: linear-gradient(135deg, var(--brand-900), var(--brand-600)); border-radius: 1.15rem; font-size: 2rem; }
.setup-promises { display: grid; gap: .8rem; padding: 0; margin: 0; list-style: none; }
.setup-promises li { display: grid; grid-template-columns: 2.3rem 1fr; gap: .8rem; padding: 1rem; background: var(--brand-50); border: 1px solid #cae8f6; border-radius: .8rem; }
.setup-promises li > span { display: grid; place-items: center; width: 2rem; height: 2rem; color: var(--brand-900); background: #fff; border-radius: 50%; font-weight: 850; }
.setup-promises li div { display: grid; }
.setup-promises small { margin-top: .15rem; color: var(--muted); }
.wizard-actions { display: flex; justify-content: space-between; gap: .75rem; padding-top: 1.5rem; margin-top: 1.5rem; border-top: 1px solid var(--line); }
.choice-grid { display: grid; gap: .85rem; }
.industry-grid { grid-template-columns: repeat(3, 1fr); }
.model-grid { grid-template-columns: repeat(3, 1fr); }
.choice-card { position: relative; display: grid; min-height: 9.2rem; align-content: start; gap: .35rem; padding: 1rem; background: #fff; border: 2px solid var(--line); border-radius: .9rem; cursor: pointer; }
.choice-card:hover { border-color: #8ecce8; }
.choice-card:has(input:checked) { background: var(--brand-50); border-color: var(--brand-700); box-shadow: 0 0 0 3px rgba(3,105,161,.08); }
.choice-card input { position: absolute; top: .85rem; right: .85rem; width: 1.15rem; height: 1.15rem; accent-color: var(--brand-700); }
.choice-card .choice-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-bottom: .35rem; color: var(--brand-900); background: var(--brand-100); border-radius: .7rem; font-size: 1.2rem; font-weight: 850; }
.choice-card strong { padding-right: 1.3rem; }
.choice-card small { color: var(--muted); }
.field-row { display: grid; align-content: start; align-self: start; gap: .4rem; margin-top: 1.2rem; color: var(--ink); font-weight: 700; }
.field-row input, .field-row select, .field-row textarea, .term-row input { width: 100%; min-height: 2.8rem; padding: .65rem .75rem; color: var(--ink); background: #fff; border: 1px solid #bfcbd4; border-radius: .6rem; }
.field-row textarea { resize: vertical; }
.field-row small, .field-help { color: var(--muted); font-size: .76rem; font-weight: 500; }
.terminology-table { overflow: hidden; border: 1px solid var(--line); border-radius: .9rem; }
.term-head, .term-row { display: grid; grid-template-columns: .8fr 1fr 1fr; gap: 1rem; align-items: center; padding: .8rem 1rem; }
.term-head { color: var(--muted); background: var(--brand-50); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.term-row + .term-row { border-top: 1px solid var(--line); }
.terminology-example, .privacy-note { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem; margin-top: 1rem; color: var(--brand-950); background: var(--brand-50); border-radius: .8rem; }
.terminology-example > span, .privacy-note > span { color: var(--success); font-weight: 900; }
.terminology-example p, .privacy-note p { margin: 0; }
.suggestion-summary { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.1rem; }
.suggestion-summary span { display: inline-flex; gap: .35rem; align-items: baseline; padding: .5rem .7rem; color: var(--muted); background: var(--brand-50); border-radius: 999px; font-size: .82rem; }
.suggestion-summary strong { color: var(--brand-900); }
.suggestion-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.suggestion-grid article { display: grid; gap: .8rem; padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; }
.suggestion-grid article > div:first-child { display: grid; }
.suggestion-category { color: var(--brand-700); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.suggestion-grid dl { display: flex; gap: 1rem; margin: 0; }
.suggestion-grid dl div { display: grid; }
.suggestion-grid dt { color: var(--muted); font-size: .68rem; text-transform: uppercase; }
.suggestion-grid dd { margin: 0; font-size: .82rem; font-weight: 700; }
.form-notice { padding: 1rem; margin-bottom: 1rem; border-radius: .8rem; }
.form-notice.is-error { color: #8a250f; background: #fff0ec; border: 1px solid #f2b6a8; }
.form-notice.is-success { color: #0f633d; background: #eaf8f0; border: 1px solid #bde5ce; }
.form-notice ul { margin: .4rem 0 0; padding-left: 1.2rem; }

.services-heading { align-items: center; }
.services-heading > div:first-child { max-width: 760px; }
.heading-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.service-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; margin-bottom: 1rem; background: var(--line); border: 1px solid var(--line); border-radius: .9rem; }
.service-metrics div { display: grid; justify-items: center; padding: .9rem; background: #fff; }
.service-metrics strong { color: var(--brand-950); font-size: 1.5rem; }
.service-metrics span { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.empty-state { display: grid; justify-items: center; max-width: 760px; margin: 1rem auto; padding: clamp(2rem, 7vw, 4rem); text-align: center; }
.empty-state h2, .empty-state h3 { margin-bottom: .6rem; }
.empty-state p:not(.eyebrow) { max-width: 580px; margin: 0 0 1.4rem; color: var(--muted); }
.archived-empty-link { margin-top: 1rem; color: var(--brand-700); font-size: .86rem; font-weight: 750; }
.empty-state.compact { padding: 1.4rem; margin: 1rem 0 0; background: var(--brand-50); border-radius: .8rem; }
.empty-state.compact p { margin-bottom: 0; }
.empty-icon { display: grid; place-items: center; width: 3.6rem; height: 3.6rem; margin-bottom: 1rem; color: var(--brand-900); background: var(--brand-100); border-radius: 1rem; font-size: 1.8rem; }
.services-filter { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: .8rem .2rem; color: var(--muted); font-size: .86rem; }
.services-filter p { margin: 0; }
.services-filter a { color: var(--brand-700); font-weight: 750; }
.service-list { display: grid; gap: .85rem; }
.service-card { display: grid; gap: 1rem; padding: 1.25rem; }
.service-card.is-archived { opacity: .76; }
.service-card-main { display: grid; grid-template-columns: 1fr auto; gap: 1rem; }
.service-card-title { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.service-card-title h2 { flex-basis: 100%; margin: .25rem 0 0; font-size: 1.3rem; }
.service-card-title p { flex-basis: 100%; margin: 0; color: var(--muted); font-size: .86rem; }
.status-badge, .online-badge { display: inline-flex; padding: .25rem .5rem; border-radius: 999px; font-size: .68rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.status-active { color: #0f633d; background: #e0f4e9; }
.status-draft { color: #755002; background: #fff4cd; }
.status-inactive { color: #56616e; background: #edf1f4; }
.status-archived { color: #71433b; background: #f7e9e6; }
.online-badge { color: var(--brand-900); background: var(--brand-100); }
.service-facts { display: grid; grid-template-columns: repeat(3, minmax(5.5rem, auto)); gap: 1rem; margin: 0; }
.service-facts div { display: grid; align-content: center; }
.service-facts dt { color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.service-facts dd { margin: 0; font-weight: 750; }
.service-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.service-card-actions form, .variation-actions form, .reorder-actions form { margin: 0; }
.button-danger-quiet { min-height: 2.4rem; color: #9a2f1b; background: #fff; border-color: #f0c3ba; }
.button-small { min-height: 2.35rem; padding: .5rem .75rem; font-size: .78rem; }
.reorder-actions { display: flex; gap: .25rem; margin-left: auto; }
.reorder-actions button { width: 2.4rem; height: 2.4rem; color: var(--brand-900); background: var(--brand-50); border: 1px solid #bae6fd; border-radius: .55rem; cursor: pointer; }
.reorder-actions button:disabled { opacity: .35; cursor: not-allowed; }
.suggestion-picker { padding: clamp(1rem, 4vw, 2rem); }
.suggestion-check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; padding: 0; margin: 1.2rem 0 0; border: 0; }
.suggestion-check { position: relative; display: grid; grid-template-columns: auto 1fr; gap: .8rem; padding: 1rem; background: #fff; border: 2px solid var(--line); border-radius: .85rem; cursor: pointer; }
.suggestion-check:has(input:checked) { background: var(--brand-50); border-color: var(--brand-700); }
.suggestion-check.is-selected { cursor: default; opacity: .72; }
.suggestion-check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--brand-700); }
.suggestion-check-copy { display: grid; }
.suggestion-check-copy small { margin-top: .25rem; color: var(--muted); }
.selected-label { position: absolute; top: .65rem; right: .65rem; color: var(--success); font-size: .7rem; font-weight: 800; }
.form-footer { display: flex; justify-content: flex-end; gap: .7rem; padding-top: 1.2rem; margin-top: 1.2rem; border-top: 1px solid var(--line); }
.service-form { display: grid; gap: 1rem; }
.availability-settings-form { margin-bottom: 1.5rem; }
.form-section { padding: clamp(1.2rem, 3vw, 2rem); }
.form-section-heading { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: start; margin-bottom: 1.2rem; }
.form-section-heading > span { display: grid; place-items: center; width: 2rem; height: 2rem; color: #fff; background: var(--brand-900); border-radius: .6rem; font-size: .8rem; font-weight: 850; }
.form-section-heading h2 { margin-bottom: .25rem; font-size: 1.25rem; }
.form-section-heading p { margin: 0; color: var(--muted); font-size: .86rem; }
.form-grid { display: grid; align-items: start; gap: 1rem; }
.form-grid.two-columns { grid-template-columns: repeat(2, 1fr); }
.form-grid.three-columns { grid-template-columns: repeat(3, 1fr); }
.range-price-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.toggle-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin: 1rem 0; }
.toggle-card { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; padding: 1rem; background: var(--brand-50); border: 1px solid #cae8f6; border-radius: .8rem; cursor: pointer; }
.toggle-card input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; accent-color: var(--brand-700); }
.toggle-card span { display: grid; }
.toggle-card small { color: var(--muted); }
.single-toggle { margin-top: 1rem; }
.sticky-form-actions { position: sticky; z-index: 10; bottom: .75rem; display: flex; justify-content: flex-end; gap: .7rem; padding: .8rem; background: rgba(255,255,255,.95); border: 1px solid var(--line); border-radius: .85rem; box-shadow: 0 10px 35px rgba(8,47,73,.12); }
.variations-section { margin-top: 1.2rem; }
.section-heading-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.section-heading-row h2 { margin-bottom: .35rem; }
.section-heading-row p:last-child { margin: 0; color: var(--muted); }
.variation-list { display: grid; gap: .7rem; margin-top: 1.2rem; }
.variation-list article { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; }
.variation-list h3 { display: inline; margin: 0 0 0 .4rem; font-size: 1rem; }
.variation-list p { margin: .3rem 0 0; color: var(--muted); font-size: .82rem; }
.variation-actions { display: flex; gap: .5rem; }

/* Durham Connect portal-style application shell */
.booking-shell { min-height: 100vh; display: grid; grid-template-columns: 268px minmax(0, 1fr); }
.booking-sidebar { position: sticky; z-index: 40; top: 0; height: 100vh; display: flex; flex-direction: column; overflow-y: auto; color: #d8e8e9; background: linear-gradient(180deg, #12333b, #0d2930); box-shadow: 8px 0 28px rgba(11,36,42,.08); }
.booking-brand-row { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 1.1rem; border-bottom: 1px solid rgba(255,255,255,.09); }
.booking-brand { min-width: 0; display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; }
.booking-brand-mark { width: 2.55rem; height: 2.55rem; flex: 0 0 2.55rem; display: grid; place-items: center; border-radius: .7rem; color: #fff; background: linear-gradient(135deg, #168b89, #39aaa5); font-weight: 850; }
.booking-brand > span:last-child { min-width: 0; display: grid; line-height: 1.15; }
.booking-brand strong { font-size: 1rem; white-space: nowrap; }
.booking-brand small { margin-top: .16rem; color: #9fbfc3; font-size: .68rem; }
.booking-sidebar-close { display: none; width: 2.5rem; height: 2.5rem; padding: 0; border: 0; border-radius: .6rem; color: #fff; background: rgba(255,255,255,.08); font-size: 1.7rem; cursor: pointer; }
.booking-nav { flex: 1; padding: 1.1rem .75rem; }
.booking-nav-label { margin: 1.2rem .75rem .4rem; color: #8fb0b5; font-size: .69rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.booking-nav-label:first-child { margin-top: 0; }
.booking-nav-item { min-height: 46px; display: flex; align-items: center; gap: .75rem; margin: .25rem 0; padding: .65rem .75rem; border-radius: .6rem; color: #d8e8e9; text-decoration: none; font-weight: 680; transition: background .16s, color .16s, transform .16s; }
a.booking-nav-item:hover { color: #fff; background: rgba(255,255,255,.08); transform: translateX(2px); }
.booking-nav-item.is-active { color: #fff; background: linear-gradient(135deg, #1aa5a0, #168b89); box-shadow: 0 8px 18px rgba(15,126,124,.28); }
.booking-nav-item.is-disabled { opacity: .52; cursor: default; }
.booking-nav-item > small { margin-left: auto; padding: .12rem .38rem; border-radius: 999px; background: rgba(255,255,255,.09); font-size: .58rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.booking-nav-icon { width: 1.7rem; height: 1.7rem; flex: 0 0 1.7rem; display: grid; place-items: center; border-radius: .45rem; color: #d8f1f0; background: rgba(255,255,255,.07); }
.booking-nav-item.is-active .booking-nav-icon { background: rgba(255,255,255,.16); }
.booking-sidebar-account { display: flex; align-items: center; gap: .7rem; margin: .75rem; padding: .8rem; border-radius: .65rem; background: rgba(255,255,255,.07); }
.booking-avatar { width: 2.35rem; height: 2.35rem; flex: 0 0 2.35rem; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #168b89, #48aaa5); font-weight: 850; }
.booking-sidebar-account > span:last-child { min-width: 0; display: grid; line-height: 1.25; }
.booking-sidebar-account strong { overflow: hidden; color: #fff; text-overflow: ellipsis; white-space: nowrap; }
.booking-sidebar-account small { color: #9fbfc3; font-size: .72rem; }
.booking-return-link { display: flex; align-items: center; gap: .55rem; padding: .75rem 1.5rem 1.25rem; color: #b7d0d3; font-size: .78rem; font-weight: 750; text-decoration: none; }
.booking-return-link:hover { color: #fff; }
.booking-sidebar-scrim { display: none; }
.booking-workspace { min-width: 0; }
.booking-topbar { position: sticky; z-index: 30; top: 0; min-height: 82px; display: flex; align-items: center; gap: 1.1rem; padding: .85rem clamp(1.1rem,3vw,2.5rem); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.95); backdrop-filter: blur(14px); }
.booking-menu-toggle { display: none; width: 2.7rem; height: 2.7rem; flex: 0 0 2.7rem; place-content: center; gap: .25rem; padding: 0; border: 1px solid var(--line); border-radius: .65rem; color: var(--ink); background: #fff; cursor: pointer; }
.booking-menu-toggle span { width: 1.2rem; height: 2px; display: block; border-radius: 2px; background: currentColor; }
.booking-topbar-context { min-width: 0; display: grid; line-height: 1.25; }
.booking-topbar-context strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.booking-topbar-context small { color: var(--muted); font-size: .75rem; }
.booking-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.booking-topbar-actions form { margin: 0; }
.booking-help-link { color: var(--brand-900); font-size: .82rem; font-weight: 750; text-decoration: none; }
.booking-signout { min-height: 2.65rem; padding: 0 .95rem; border: 1px solid var(--line); border-radius: .6rem; color: var(--ink); background: #fff; font-weight: 750; cursor: pointer; }
.booking-workspace .app-main { width: min(1600px, 100%); padding: clamp(1.5rem,3vw,2.6rem); margin: 0 auto; }
.booking-workspace .site-footer { padding-inline: clamp(1.5rem,3vw,2.6rem); }

.portal-page-heading { align-items: flex-end; margin-bottom: 1.75rem; }
.portal-page-heading h1 { font-size: clamp(1.85rem,3vw,2.45rem); }
.button-prominent { min-height: 3rem; padding-inline: 1.25rem; }
.page-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; margin: 0 0 1rem; color: var(--muted); font-size: .78rem; }
.page-breadcrumbs a { color: var(--brand-900); font-weight: 750; text-decoration: none; }
.page-breadcrumbs a:hover { text-decoration: underline; }
.page-breadcrumbs span[aria-current="page"] { font-weight: 650; }
.portal-metric-grid { margin: 0 0 1.25rem; }
.portal-metric-grid .metric-card { position: relative; min-height: 9rem; align-content: center; justify-content: stretch; padding-right: 4.6rem; overflow: hidden; }
.portal-metric-grid .metric-card > i { position: absolute; top: 1.25rem; right: 1.2rem; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: .75rem; color: #fff; background: var(--brand-700); font-style: normal; font-size: 1.2rem; }
.portal-metric-grid .metric-card:nth-child(2) > i { background: #8368bd; }
.portal-metric-grid .metric-card:nth-child(3) > i { background: #d7982d; }
.overview-metric-grid .metric-card.has-attention > i { background: #c85f45; }
.overview-metric-grid .metric-card small { line-height: 1.4; }
.booking-dashboard-layout { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(320px,.75fr); gap: 1.25rem; }
.overview-primary-grid,.overview-secondary-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(320px,.65fr); gap: 1.25rem; margin-top: 1.25rem; }
.overview-primary-grid { margin-top: 0; }
.card-heading-link { flex: 0 0 auto; color: var(--brand-900); font-size: .78rem; font-weight: 800; text-decoration: none; }
.card-heading-link:hover { text-decoration: underline; }
.activity-stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .65rem; }
.activity-stat-grid > div { min-width: 0; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; gap: .05rem .65rem; padding: .8rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--brand-50); }
.activity-stat-grid .task-icon { grid-row: 1 / 3; }
.activity-stat-grid strong { color: var(--brand-950); font-size: 1.35rem; }
.activity-stat-grid small { overflow: hidden; color: var(--muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.overview-empty-note { margin: 1rem 0 0; color: var(--muted); font-size: .82rem; }
.attention-total { min-width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: 50%; color: #8b3c29; background: #fbe9e4; font-weight: 850; }
.attention-list { display: grid; }
.attention-list a { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: .75rem; padding: .85rem .1rem; color: var(--ink); border-top: 1px solid var(--line); text-decoration: none; }
.attention-list a:first-child { border-top: 0; }
.attention-list a > span { min-width: 0; display: grid; }
.attention-list a:hover strong { color: var(--brand-700); }
.attention-list small { color: var(--muted); font-size: .75rem; line-height: 1.35; }
.attention-list b { min-width: 2rem; padding: .25rem .45rem; border-radius: 999px; color: var(--brand-900); background: var(--brand-100); text-align: center; }
.capacity-card { margin-top: 1.25rem; }
.capacity-heading { align-items: center; }
.capacity-heading > div:first-child > p:last-child { margin: .3rem 0 0; color: var(--muted); font-size: .82rem; }
.next-opening { min-width: 15rem; display: grid; padding: .75rem 1rem; border: 1px solid #abd3d0; border-radius: .75rem; background: var(--brand-50); }
.next-opening span { color: var(--muted); font-size: .67rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.next-opening strong { margin-top: .1rem; color: var(--brand-950); }
.next-opening small { color: var(--muted); }
.capacity-day-list { display: grid; }
.capacity-day { display: grid; grid-template-columns: 4.4rem minmax(10rem,1fr) 7rem auto; align-items: center; gap: 1rem; padding: .75rem .15rem; color: var(--ink); border-top: 1px solid var(--line); text-decoration: none; }
.capacity-day:first-child { border-top: 0; }
.capacity-day:hover .capacity-date strong { color: var(--brand-700); }
.capacity-date,.capacity-open { display: grid; }
.capacity-date small,.capacity-open small,.capacity-progress small { color: var(--muted); font-size: .7rem; }
.capacity-progress { min-width: 0; display: grid; gap: .3rem; }
.capacity-progress > i { height: .55rem; overflow: hidden; border-radius: 999px; background: #e3eeee; }
.capacity-progress > i > b { width: var(--capacity-fill); height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,var(--brand-600),var(--brand-700)); }
.capacity-open { text-align: right; }
.capacity-day > b { color: var(--brand-700); font-size: 1.35rem; }
.capacity-day.is-closed { opacity: .62; }
.capacity-day.is-closed .capacity-progress > i > b { display: none; }
.upcoming-list { display: grid; }
.upcoming-list > a { display: grid; grid-template-columns: 4.8rem minmax(0,1fr) auto; align-items: center; gap: .9rem; padding: .8rem .1rem; color: var(--ink); border-top: 1px solid var(--line); text-decoration: none; }
.upcoming-list > a:first-child { border-top: 0; }
.upcoming-list time,.upcoming-list > a > span { min-width: 0; display: grid; }
.upcoming-list time { padding: .5rem; border-radius: .65rem; color: var(--brand-950); background: var(--brand-50); text-align: center; }
.upcoming-list time span { color: var(--muted); font-size: .7rem; }
.upcoming-list > a > span > strong { margin-top: .25rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upcoming-list > a > span > small { overflow: hidden; color: var(--muted); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.upcoming-list > a > b { color: var(--brand-700); font-size: 1.35rem; }
.overview-empty-state { display: flex; align-items: center; gap: .8rem; min-height: 7rem; padding: 1rem; border: 1px dashed #b8caca; border-radius: .75rem; background: var(--brand-50); }
.overview-empty-state > span { color: var(--brand-700); font-size: 1.5rem; }
.overview-empty-state p { margin: .2rem 0 0; color: var(--muted); }
.card-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.card-heading-row h2 { margin: .15rem 0 0; font-size: 1.25rem; }
.setup-count { flex: 0 0 auto; padding: .38rem .65rem; border-radius: 999px; color: var(--brand-900); background: var(--brand-100); font-size: .72rem; font-weight: 800; }
.setup-task-list, .quick-action-list { display: grid; }
.setup-task { display: grid; grid-template-columns: 2.6rem minmax(0,1fr) auto; align-items: center; gap: .75rem; padding: .9rem .2rem; color: var(--ink); border-top: 1px solid var(--line); text-decoration: none; }
.setup-task:first-child { border-top: 0; }
a.setup-task:hover strong { color: var(--brand-700); }
.setup-task-status { width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border: 2px solid #aed8d5; border-radius: 50%; color: var(--brand-900); background: var(--brand-50); font-weight: 850; }
.setup-task.is-complete .setup-task-status { color: #fff; background: var(--success); border-color: var(--success); }
.setup-task > span:nth-child(2) { min-width: 0; display: grid; }
.setup-task small { color: var(--muted); line-height: 1.35; }
.setup-task > b { padding: .28rem .5rem; border-radius: .45rem; color: var(--brand-900); background: var(--brand-50); font-size: .7rem; }
.setup-task.is-upcoming { opacity: .62; }
.quick-action-list a { display: grid; grid-template-columns: 2.7rem minmax(0,1fr) auto; align-items: center; gap: .7rem; padding: .82rem .15rem; color: var(--ink); border-top: 1px solid var(--line); text-decoration: none; }
.quick-action-list a:first-child { border-top: 0; }
.quick-action-list a:hover strong { color: var(--brand-700); }
.quick-action-list a > span:nth-child(2) { min-width: 0; display: grid; }
.quick-action-list small { color: var(--muted); line-height: 1.35; }
.quick-action-list b { color: var(--brand-700); font-size: 1.35rem; }
.task-icon { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: .7rem; font-style: normal; }
.task-icon.is-teal { color: #126d6b; background: #dff3f1; }
.task-icon.is-violet { color: #684a9a; background: #eee7f8; }
.task-icon.is-amber { color: #956817; background: #fff1d1; }
.task-icon.is-green { color: #226d45; background: #e2f4e9; }
.task-icon.is-blue { color: #245f92; background: #e1eef9; }
.task-icon.is-slate { color: #48636c; background: #e7eff1; }
.workspace-note { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; padding: 1.1rem 1.25rem; }
.workspace-note .feature-icon { flex: 0 0 auto; }
.workspace-note p { margin: .15rem 0 0; color: var(--muted); }
.mobile-primary-action { display: none; }

/* Staff management */
.staff-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.staff-card { display: grid; align-content: start; gap: 1rem; padding: 1.25rem; }
.staff-card.is-archived { opacity: .72; }
.staff-card-profile { display: grid; grid-template-columns: 4.4rem minmax(0,1fr); align-items: center; gap: 1rem; }
.staff-card-profile img,.staff-initial { width: 4.4rem; height: 4.4rem; display: grid; place-items: center; border-radius: 1rem; object-fit: cover; }
.staff-initial { color: #fff; background: linear-gradient(135deg,var(--brand-700),var(--brand-600)); font-size: 1.55rem; font-weight: 850; }
.staff-card-profile h2 { margin: .3rem 0 .1rem; font-size: 1.25rem; }
.staff-card-profile p { margin: 0; color: var(--muted); font-size: .82rem; }
.staff-facts { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: .7rem; background: var(--line); }
.staff-facts div { display: grid; padding: .7rem; background: var(--brand-50); }
.staff-facts dt { color: var(--muted); font-size: .67rem; font-weight: 800; text-transform: uppercase; }
.staff-facts dd { margin: .1rem 0 0; font-weight: 800; }
.staff-photo-editor { display: grid; grid-template-columns: 6rem minmax(0,1fr); align-items: center; gap: 1rem; }
.staff-photo-editor > img,.staff-photo-placeholder { width: 6rem; height: 6rem; display: grid; place-items: center; border-radius: 1rem; object-fit: cover; color: var(--brand-900); background: var(--brand-100); font-size: 2rem; }
.staff-photo-editor .field-row { margin-top: 0; }
.staff-photo-editor .inline-check { grid-column: 2; }
.inline-check { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); font-weight: 700; }
.prominent-check { padding: .8rem; margin-top: 1rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--brand-50); }
.staff-service-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; margin-top: 1rem; }
.staff-schedule-list { display: grid; gap: .8rem; margin-top: 1.2rem; }
.schedule-copy-tool { display: grid; gap: .85rem; margin-top: 1.2rem; padding: 1rem; border: 1px solid #abd3d0; border-radius: .85rem; background: var(--brand-50); }
.schedule-copy-heading { display: grid; grid-template-columns: minmax(0,1fr) minmax(11rem,15rem); align-items: end; gap: 1rem; }
.schedule-copy-heading strong { color: var(--brand-950); font-size: 1rem; }
.schedule-copy-heading p { margin: .2rem 0 0; color: var(--muted); font-size: .8rem; }
.schedule-copy-heading label { display: grid; gap: .3rem; color: var(--brand-950); font-size: .75rem; font-weight: 800; }
.schedule-copy-heading select { width: 100%; min-height: 2.55rem; padding: .5rem .7rem; border: 1px solid #a9c8c9; border-radius: .6rem; background: #fff; }
.schedule-copy-targets { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; border: 0; }
.schedule-copy-targets legend { width: 100%; margin-bottom: .15rem; color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.schedule-copy-targets label { position: relative; cursor: pointer; }
.schedule-copy-targets input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.schedule-copy-targets span { display: grid; place-items: center; min-width: 3.2rem; min-height: 2.35rem; padding: .45rem .7rem; border: 1px solid #a9c8c9; border-radius: 999px; color: var(--brand-900); background: #fff; font-size: .78rem; font-weight: 800; }
.schedule-copy-targets input:checked + span { color: #fff; border-color: var(--brand-700); background: var(--brand-700); }
.schedule-copy-targets input:focus-visible + span { outline: 3px solid rgba(14,165,164,.25); outline-offset: 2px; }
.schedule-copy-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.schedule-copy-spacer { flex: 1 1 1rem; }
.schedule-copy-status { min-height: 1.15rem; margin: 0; color: var(--brand-900); font-size: .78rem; font-weight: 700; }
.schedule-copy-status.is-error { color: #9a2f1b; }
.staff-schedule-day { display: grid; grid-template-columns: 8rem minmax(0,1fr) minmax(0,1.2fr); gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; }
.staff-schedule-day legend { float: left; width: 100%; padding: .15rem 0; color: var(--brand-950); font-weight: 850; }
.schedule-column { display: grid; align-content: start; gap: .55rem; }
.schedule-column > strong { color: var(--muted); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; }
.time-pair,.break-row { display: grid; gap: .45rem; }
.time-pair { grid-template-columns: 1fr 1fr; }
.break-row { grid-template-columns: minmax(5rem,1fr) 1fr 1fr; }
.time-pair label,.break-row label { min-width: 0; display: grid; gap: .2rem; }
.time-pair label span,.break-row label span { color: var(--muted); font-size: .66rem; font-weight: 750; }
.time-pair input,.break-row input { width: 100%; min-width: 0; min-height: 2.5rem; padding: .45rem .55rem; border: 1px solid #bfcbd4; border-radius: .55rem; }
.staff-time-off { margin-top: 1rem; }
.time-off-form { padding-top: .4rem; border-top: 1px solid var(--line); }
.time-off-list { display: grid; margin-top: 1rem; border-top: 1px solid var(--line); }
.time-off-list article { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem .1rem; border-bottom: 1px solid var(--line); }
.time-off-list p { margin: .15rem 0 0; color: var(--muted); font-size: .82rem; }

/* Business availability */
.business-hours-list { display: grid; grid-template-columns: 1fr; gap: .8rem; margin-top: 1rem; }
.business-hours-day { display: grid; grid-template-columns: 7rem minmax(0,1fr) minmax(0,1fr); align-items: center; gap: .75rem; padding: .9rem; border: 1px solid var(--line); border-radius: .8rem; }
.business-hours-day legend { float: left; width: 100%; color: var(--brand-950); font-weight: 850; }
.exception-form { padding-top: .5rem; border-top: 1px solid var(--line); }
.exception-periods { display: grid; grid-template-columns: 12rem minmax(0,1fr) minmax(0,1fr); align-items: center; gap: .75rem; margin-top: 1rem; padding: .85rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--brand-50); }
.exception-periods > strong { color: var(--muted); font-size: .74rem; text-transform: uppercase; }
.preview-filter { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr auto; align-items: end; gap: .75rem; }
.preview-filter .field-row { margin-top: 0; }
.preview-results { display: grid; gap: 1rem; margin-top: 1.2rem; padding-top: 1.1rem; border-top: 1px solid var(--line); scroll-margin-top: 6rem; }
.preview-results > div:first-child { display: flex; justify-content: space-between; gap: 1rem; }
.preview-results > div:first-child span { color: var(--muted); }
.slot-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .6rem; }
.slot-grid > span { display: grid; gap: .1rem; padding: .7rem; border: 1px solid #abd3d0; border-radius: .65rem; color: var(--brand-950); background: var(--brand-50); text-align: center; }
.slot-grid small { color: var(--muted); font-size: .66rem; }

/* Public booking page and publishing */
.booking-link-card { display: grid; gap: 1rem; margin-bottom: 1rem; }
.booking-link-card h2 { margin: .1rem 0 .3rem; }
.booking-link-card p:not(.eyebrow) { margin: 0; color: var(--muted); }
.booking-link-card .field-row { margin-top: 0; }
.booking-link-card input[readonly] { background: var(--brand-50); }
.booking-link-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.booking-link-actions [role="status"] { color: var(--success); font-size: .8rem; font-weight: 750; }
.booking-publish-toggle { max-width: 680px; }
.public-slug-input { display: grid; grid-template-columns: auto minmax(10rem,1fr); align-items: center; overflow: hidden; border: 1px solid #bfcbd4; border-radius: .6rem; background: var(--brand-50); }
.public-slug-input > span { padding: .65rem .1rem .65rem .75rem; color: var(--muted); font-size: .82rem; font-weight: 600; white-space: nowrap; }
.public-slug-input input { border: 0; border-radius: 0; background: transparent; }
.booking-brand-settings { display: flex; align-items: end; gap: 1rem; }
.booking-brand-settings .field-row { width: min(18rem,100%); }
.booking-brand-settings input[type="color"] { min-height: 3.2rem; padding: .25rem; }
.booking-colour-preview { display: grid; place-items: center; min-width: 8rem; min-height: 3.2rem; padding: .7rem 1rem; border-radius: .7rem; color: #fff; background: var(--brand-900); font-weight: 850; }
.booking-logo-settings { display: grid; grid-template-columns: minmax(8rem,12rem) minmax(0,1fr); align-items: center; gap: 1rem; padding: 1rem; margin-bottom: 1rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--brand-50); }
.booking-logo-preview { display: grid; place-items: center; min-height: 5.25rem; padding: .65rem; overflow: hidden; border: 1px solid var(--line); border-radius: .7rem; color: #fff; background: #fff; }
.booking-logo-preview img { display: block; width: 100%; max-height: 4rem; object-fit: contain; }
.booking-logo-preview > span { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: .8rem; background: var(--brand-900); font-weight: 850; }
.booking-logo-settings .field-row { margin: 0; }
.booking-logo-settings .inline-check { margin-top: .65rem; }

.has-public-booking { --public-accent: #168b89; --public-accent-ink: #fff; background: #f4f8f8; }
.has-public-booking .public-header { position: sticky; z-index: 20; top: 0; padding-block: .75rem; box-shadow: 0 4px 18px rgba(8,47,73,.05); }
.has-public-booking .brand-mark { color: var(--public-accent-ink); background: var(--public-accent); }
.public-business-logo { display: grid; place-items: center; width: clamp(7rem,14vw,11rem); height: 2.75rem; }
.public-business-logo img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.public-business-brand.has-logo .public-business-logo { width: clamp(12rem,24vw,20rem); height: 3.5rem; }
.public-powered-by { color: var(--muted); font-size: .75rem; }
.public-powered-by strong { color: var(--ink); }
.has-public-booking .public-main { width: min(980px,calc(100% - 2rem)); padding: clamp(1.8rem,5vw,4rem) 0; }
.public-booking-page { display: grid; gap: 1rem; }
.public-booking-hero { padding: clamp(1.2rem,4vw,2rem) .2rem; text-align: center; }
.public-booking-hero h1 { margin: .2rem 0 .6rem; color: var(--brand-950); font-size: clamp(2rem,6vw,3.6rem); letter-spacing: -.045em; }
.public-booking-hero > p:not(.eyebrow) { max-width: 650px; margin: 0 auto; color: var(--muted); font-size: 1.05rem; }
.public-booking-trust { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1rem; color: var(--success); font-size: .78rem; font-weight: 750; }
.public-booking-progress { display: grid; grid-template-columns: repeat(3,1fr); max-width: 680px; width: 100%; padding: 0; margin: 0 auto 1rem; list-style: none; }
.public-booking-progress li { position: relative; display: grid; justify-items: center; gap: .3rem; color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.public-booking-progress li::before { position: absolute; z-index: 0; top: 1rem; left: -50%; width: 100%; height: 2px; content: ""; background: var(--line); }
.public-booking-progress li:first-child::before { display: none; }
.public-booking-progress span { z-index: 1; display: grid; place-items: center; width: 2rem; height: 2rem; border: 2px solid var(--line); border-radius: 50%; background: #fff; }
.public-booking-progress .is-current { color: var(--public-accent); }
.public-booking-progress .is-current span { color: var(--public-accent-ink); border-color: var(--public-accent); background: var(--public-accent); }
.public-booking-progress .is-current::before { background: var(--public-accent); }
.public-booking-errors { margin: 0; }
.public-booking-errors p { margin: .3rem 0 0; }
.public-booking-section { padding: clamp(1.2rem,4vw,2rem); scroll-margin-top: 6rem; border: 1px solid var(--line); border-radius: 1.1rem; background: #fff; box-shadow: 0 12px 36px rgba(8,47,73,.06); }
.public-section-heading { display: grid; grid-template-columns: auto minmax(0,1fr); gap: .8rem; align-items: start; margin-bottom: 1rem; }
.public-section-heading > span { display: grid; place-items: center; width: 2.15rem; height: 2.15rem; color: var(--public-accent-ink); background: var(--public-accent); border-radius: .65rem; font-weight: 850; }
.public-section-heading h2 { margin: .05rem 0 .15rem; font-size: clamp(1.35rem,3vw,1.75rem); }
.public-section-heading p:last-child { margin: 0; color: var(--muted); }
.public-service-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.public-service-card { position: relative; cursor: pointer; }
.public-service-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.public-service-card > span { height: 100%; display: grid; align-content: start; padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; background: #fff; transition: border-color .15s,box-shadow .15s,transform .15s; }
.public-service-card:hover > span { transform: translateY(-2px); border-color: var(--public-accent); }
.public-service-card input:checked + span { border-color: var(--public-accent); box-shadow: 0 0 0 3px color-mix(in srgb,var(--public-accent) 18%,transparent); }
.public-service-card input:focus-visible + span { outline: 3px solid #f5b942; outline-offset: 3px; }
.public-service-card small { color: var(--public-accent); font-size: .68rem; font-weight: 850; text-transform: uppercase; }
.public-service-card strong { margin-top: .25rem; font-size: 1.05rem; }
.public-service-card p { margin: .35rem 0; color: var(--muted); font-size: .82rem; }
.public-service-card b { margin-top: auto; padding-top: .5rem; color: var(--brand-950); font-size: .78rem; }
.public-booking-actions { display: flex; justify-content: flex-end; margin-top: 1rem; }
.public-booking-page .button-primary { color: var(--public-accent-ink); background: var(--public-accent); }
.public-booking-page .button-secondary { color: var(--public-accent); border-color: color-mix(in srgb,var(--public-accent) 35%,#fff); background: color-mix(in srgb,var(--public-accent) 8%,#fff); }
.public-schedule-form { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: end; gap: .8rem; }
.public-schedule-form .field-row { margin: 0; }
.public-schedule-form .public-booking-actions { margin: 0; }
.public-schedule-form .button { width: 100%; }
.public-empty-state { padding: 1.2rem; border: 1px dashed #b8caca; border-radius: .8rem; color: var(--muted); text-align: center; background: var(--brand-50); }
.public-empty-state strong { color: var(--brand-950); }
.public-empty-state p { margin: .3rem 0 1rem; }
.public-time-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .55rem; padding: 0; border: 0; }
.public-time-grid legend { grid-column: 1/-1; margin-bottom: .2rem; color: var(--brand-950); font-weight: 850; }
.public-time-grid label { position: relative; cursor: pointer; }
.public-time-grid input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.public-time-grid span { display: grid; place-items: center; min-height: 2.75rem; padding: .55rem; border: 1px solid #a9c8c9; border-radius: .65rem; color: var(--public-accent); background: #fff; font-weight: 800; }
.public-time-grid input:checked + span { color: var(--public-accent-ink); border-color: var(--public-accent); background: var(--public-accent); }
.public-time-grid input:focus-visible + span { outline: 3px solid #f5b942; outline-offset: 2px; }
.public-customer-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; padding-top: 1rem; margin-top: 1rem; border-top: 1px solid var(--line); }
.public-customer-fields .public-notes-field { grid-column: 1/-1; }
.public-policy { padding: 1rem; margin-top: 1rem; border-radius: .75rem; color: var(--brand-950); background: var(--brand-50); }
.public-policy p { margin: .3rem 0 0; color: var(--muted); }
.public-policy-check { display: flex; gap: .65rem; align-items: flex-start; margin-top: 1rem; font-weight: 700; }
.public-policy-check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--public-accent); }
.public-final-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; margin-top: 1rem; border: 1px solid color-mix(in srgb,var(--public-accent) 30%,#fff); border-radius: .85rem; background: color-mix(in srgb,var(--public-accent) 6%,#fff); }
.public-final-summary div { display: grid; }
.public-final-summary span,.public-final-summary small { color: var(--muted); }
.website-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.public-confirmation-page { width: min(720px,100%); margin: 0 auto; }
.public-confirmation-card { padding: clamp(1.3rem,5vw,2.5rem); border: 1px solid var(--line); border-radius: 1.2rem; background: #fff; box-shadow: var(--shadow); text-align: center; }
.confirmation-check { display: grid; place-items: center; width: 4rem; height: 4rem; margin: 0 auto 1rem; border-radius: 50%; color: var(--public-accent-ink); background: var(--public-accent); font-size: 2rem; font-weight: 900; }
.public-confirmation-card h1 { margin: .1rem 0 .4rem; font-size: clamp(2rem,6vw,3rem); }
.public-confirmation-card > p:not(.eyebrow) { margin: 0 auto 1.3rem; color: var(--muted); }
.confirmation-details { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; margin: 1rem 0; border: 1px solid var(--line); border-radius: .8rem; background: var(--line); text-align: left; }
.confirmation-details div { display: grid; padding: .9rem; background: #fff; }
.confirmation-details dt { color: var(--muted); font-size: .68rem; font-weight: 850; text-transform: uppercase; }
.confirmation-details dd { display: grid; margin: .15rem 0 0; font-weight: 850; }
.confirmation-details small { color: var(--muted); font-weight: 600; }
.confirmation-note,.confirmation-future-actions { padding: 1rem; margin-top: 1rem; border-radius: .8rem; text-align: left; background: var(--brand-50); }
.confirmation-note p,.confirmation-future-actions p { margin: .3rem 0 0; color: var(--muted); }
.confirmation-email-note { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem; margin-top: 1rem; border: 1px solid color-mix(in srgb,var(--public-accent) 25%,#fff); border-radius: .8rem; text-align: left; }
.confirmation-email-note > span { color: var(--public-accent); font-size: 1.3rem; }
.confirmation-email-note p { margin: .2rem 0 0; color: var(--muted); }
.public-confirmation-card > .button { margin-top: 1.2rem; color: var(--public-accent-ink); background: var(--public-accent); }
.public-unavailable-card { width: min(720px,100%); margin: 2rem auto; }

@media (max-width: 1050px) {
    .booking-dashboard-layout { grid-template-columns: 1fr; }
    .overview-primary-grid,.overview-secondary-grid { grid-template-columns: 1fr; }
    .staff-schedule-day { grid-template-columns: 7rem 1fr; }
    .staff-schedule-day .schedule-column:last-child { grid-column: 2; }
    .business-hours-list { grid-template-columns: 1fr; }
    .preview-filter { grid-template-columns: 1fr 1fr; }
    .preview-filter .button { align-self: stretch; }
    .slot-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .public-time-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

@media (max-width: 900px) {
    .booking-shell { grid-template-columns: 1fr; }
    .booking-sidebar { position: fixed; left: 0; width: min(292px,86vw); transform: translateX(-105%); transition: transform .22s ease; }
    .booking-shell.is-nav-open .booking-sidebar { transform: translateX(0); }
    .booking-sidebar-close, .booking-menu-toggle { display: grid; }
    .booking-sidebar-scrim { position: fixed; z-index: 35; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(7,24,29,.5); opacity: 0; pointer-events: none; transition: opacity .22s; }
    .booking-shell.is-nav-open .booking-sidebar-scrim { display: block; opacity: 1; pointer-events: auto; }
    body.has-open-navigation { overflow: hidden; }
}

@media (max-width: 820px) {
    .hero { grid-template-columns: 1fr; }
    .preview-card { max-width: 600px; transform: none; }
    .feature-strip, .foundation-grid { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr 1fr; }
    .overview-metric-grid .metric-card:last-child { grid-column: 1 / -1; }
    .activity-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .setup-card { grid-template-columns: auto 1fr; }
    .setup-card .button { grid-column: 2; justify-self: start; }
    .brand small { display: none; }
    .industry-grid { grid-template-columns: repeat(2, 1fr); }
    .model-grid, .welcome-grid { grid-template-columns: 1fr; }
    .form-grid.three-columns { grid-template-columns: 1fr 1fr; }
    .form-grid.three-columns > :last-child { grid-column: 1 / -1; }
    .public-schedule-form { grid-template-columns: 1fr 1fr; }
    .public-schedule-form .public-booking-actions { grid-column: 1/-1; }
}

@media (max-width: 600px) {
    .public-main, .app-main { width: min(100% - 1.25rem, 1180px); }
    .public-main { padding-top: 2.4rem; }
    .app-header { padding: .75rem; }
    .header-actions { gap: .5rem; }
    .business-context { max-width: 9rem; }
    .business-context strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .85rem; }
    .button-quiet { min-height: 2.3rem; padding: .5rem .65rem; font-size: .82rem; }
    .workspace-heading { display: grid; }
    .status-pill { justify-self: start; }
    .setup-card { grid-template-columns: 1fr; }
    .setup-progress { display: flex; }
    .setup-progress i { width: 1.2rem; height: .35rem; }
    .setup-card .button { grid-column: auto; justify-self: stretch; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .overview-metric-grid .metric-card:last-child { grid-column: auto; }
    .activity-stat-grid { grid-template-columns: 1fr 1fr; }
    .activity-stat-grid > div { grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: .2rem; }
    .activity-stat-grid .task-icon { grid-row: auto; width: 2rem; height: 2rem; }
    .activity-stat-grid small { white-space: normal; }
    .capacity-heading { display: grid; }
    .next-opening { width: 100%; min-width: 0; }
    .capacity-day { grid-template-columns: 3.5rem minmax(0,1fr) auto; gap: .7rem; }
    .capacity-progress { grid-column: 2 / -1; grid-row: 2; }
    .capacity-open { grid-column: 2; grid-row: 1; }
    .capacity-day > b { grid-column: 3; grid-row: 1; }
    .upcoming-list > a { grid-template-columns: 4.2rem minmax(0,1fr) auto; gap: .7rem; }
    .site-footer { flex-direction: column; padding-bottom: 6rem; }
    .has-app-shell .site-footer { display: none; }
    .mobile-nav { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, 1fr); padding: .35rem .25rem max(.35rem, env(safe-area-inset-bottom)); background: rgba(255,255,255,.98); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(8,47,73,.08); }
    .mobile-nav a, .mobile-nav span { display: grid; place-items: center; gap: .1rem; padding: .35rem .15rem; color: var(--muted); font-size: .68rem; text-decoration: none; }
    .mobile-nav a span, .mobile-nav > span span { font-size: 1.05rem; }
    .mobile-nav .is-active { color: var(--brand-700); font-weight: 800; }
    .app-main { padding-bottom: 6rem; }
    .onboarding-heading { display: grid; }
    .progress-badge { justify-self: start; }
    .stepper small { display: none; }
    .stepper::before { right: 8%; left: 8%; }
    .industry-grid, .suggestion-grid { grid-template-columns: 1fr; }
    .choice-card { min-height: 7.5rem; }
    .term-head { display: none; }
    .term-row { grid-template-columns: 1fr; gap: .55rem; }
    .term-row label::before { display: block; margin-bottom: .2rem; color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
    .term-row label:nth-child(2)::before { content: "Singular label"; }
    .term-row label:nth-child(3)::before { content: "Plural label"; }
    .wizard-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .wizard-actions .button { width: 100%; }
    .services-heading { align-items: stretch; }
    .heading-actions, .services-heading > .button { width: 100%; }
    .heading-actions .button { flex: 1; }
    .service-metrics { grid-template-columns: repeat(2, 1fr); }
    .services-filter { align-items: flex-start; }
    .service-card-main { grid-template-columns: 1fr; }
    .service-facts { grid-template-columns: repeat(3, 1fr); }
    .service-card-actions .button { min-height: 2.35rem; padding: .55rem .7rem; font-size: .8rem; }
    .reorder-actions { width: 100%; margin-left: 0; }
    .suggestion-check-grid, .form-grid.two-columns, .form-grid.three-columns, .toggle-grid { grid-template-columns: 1fr; }
    .form-grid.three-columns > :last-child { grid-column: auto; }
    .form-footer, .sticky-form-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .sticky-form-actions { z-index: 31; bottom: calc(.75rem + env(safe-area-inset-bottom)); }
    .section-heading-row { display: grid; }
    .variation-list article { display: grid; }
    .variation-actions .button { flex: 1; }
    .booking-topbar { min-height: 70px; padding: .65rem .75rem; }
    .booking-help-link { display: none; }
    .booking-signout { min-height: 2.45rem; padding-inline: .7rem; font-size: .78rem; }
    .booking-workspace .app-main { width: 100%; padding: 1.1rem .75rem 6rem; }
    .portal-page-heading { align-items: stretch; }
    .portal-page-heading .heading-actions { display: grid; grid-template-columns: 1fr; }
    .portal-page-heading .heading-actions .button { width: 100%; }
    .card-heading-row { display: grid; }
    .setup-count { justify-self: start; }
    .setup-task { grid-template-columns: 2.4rem minmax(0,1fr); }
    .setup-task > b { grid-column: 2; justify-self: start; }
    .workspace-note { align-items: flex-start; }
    .mobile-primary-action { position: fixed; z-index: 26; right: .85rem; bottom: calc(.85rem + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: .3rem; min-height: 3rem; padding: .7rem 1rem; border-radius: 999px; color: #fff; background: var(--brand-900); box-shadow: 0 12px 30px rgba(15,116,116,.3); font-weight: 800; text-decoration: none; }
    .staff-grid,.staff-service-grid { grid-template-columns: 1fr; }
    .staff-card-profile { grid-template-columns: 3.7rem minmax(0,1fr); }
    .staff-card-profile img,.staff-initial { width: 3.7rem; height: 3.7rem; }
    .staff-photo-editor { grid-template-columns: 4.8rem minmax(0,1fr); }
    .staff-photo-editor > img,.staff-photo-placeholder { width: 4.8rem; height: 4.8rem; }
    .schedule-copy-heading { grid-template-columns: 1fr; align-items: stretch; }
    .schedule-copy-heading label { max-width: none; }
    .schedule-copy-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .schedule-copy-actions .button { width: 100%; }
    .schedule-copy-spacer { display: none; }
    .schedule-copy-targets { display: grid; grid-template-columns: repeat(4,1fr); }
    .schedule-copy-targets span { min-width: 0; }
    .staff-schedule-day { grid-template-columns: 1fr; }
    .staff-schedule-day .schedule-column:last-child { grid-column: 1; }
    .break-row { grid-template-columns: 1fr 1fr; }
    .break-row label:first-child { grid-column: 1 / -1; }
    .time-off-list article { align-items: flex-start; }
    .business-hours-day { grid-template-columns: 1fr; }
    .exception-periods,.preview-filter { grid-template-columns: 1fr; }
    .slot-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .preview-results > div:first-child { display: grid; }
    .has-public-booking .public-main { width: min(100% - 1rem,980px); padding-top: 1rem; }
    .has-public-booking .public-header { padding-inline: .75rem; }
    .public-powered-by { max-width: 7rem; text-align: right; }
    .public-service-grid,.public-schedule-form,.public-customer-fields { grid-template-columns: 1fr; }
    .public-schedule-form .public-booking-actions,.public-customer-fields .public-notes-field { grid-column: auto; }
    .public-time-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .public-booking-actions .button { width: 100%; }
    .public-final-summary { display: grid; }
    .public-final-summary .button { width: 100%; }
    .confirmation-details { grid-template-columns: 1fr; }
    .booking-link-actions { display: grid; grid-template-columns: 1fr; }
    .booking-link-actions .button { width: 100%; }
    .public-slug-input { grid-template-columns: 1fr; }
    .public-slug-input > span { overflow: hidden; padding-bottom: 0; text-overflow: ellipsis; }
    .booking-brand-settings { display: grid; }
    .booking-logo-settings { grid-template-columns: 1fr; }
    .booking-logo-preview { justify-content: start; }
    .public-business-logo { width: 7.5rem; }
    .public-business-brand.has-logo .public-business-logo { width: min(13rem,58vw); height: 3rem; }
    .has-public-booking .site-footer { padding-bottom: 2rem; }
}

@media (max-width: 480px) {
    .public-powered-by { display: none; }
    .public-business-brand > span:last-child { min-width: 0; }
    .public-business-brand strong { display: block; overflow: hidden; max-width: 8rem; text-overflow: ellipsis; white-space: nowrap; }
}

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

/* Milestone 7: appointment calendar, appointment management, and staff portal. */
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.25rem; margin-bottom: 1.5rem; }
.page-heading h1 { margin-bottom: .45rem; font-size: clamp(1.9rem,4vw,2.7rem); }
.page-heading p:last-child { margin: 0; color: var(--muted); }
.heading-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.form-grid.four-columns { grid-template-columns: repeat(4,minmax(0,1fr)); }
.button-danger { color: #fff; background: #a43b27; }
.button-danger:hover { background: #862d1d; }

.calendar-toolbar { display: grid; grid-template-columns: auto auto 1fr; align-items: end; gap: 1rem; padding: 1rem; }
.calendar-view-tabs { display: inline-flex; overflow-x: auto; padding: .25rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--brand-50); }
.calendar-view-tabs a { padding: .55rem .85rem; border-radius: .55rem; color: var(--muted); font-size: .82rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.calendar-view-tabs a.is-active { color: #fff; background: var(--brand-900); box-shadow: 0 5px 14px rgba(15,116,116,.2); }
.calendar-date-nav { display: flex; align-items: center; gap: .4rem; }
.calendar-date-nav .button { min-width: 2.75rem; padding-inline: .75rem; }
.calendar-filters { display: flex; align-items: end; justify-content: flex-end; gap: .65rem; }
.calendar-filters label { display: grid; gap: .25rem; color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.calendar-filters select { min-width: 9.5rem; padding: .6rem 2rem .6rem .7rem; border: 1px solid #b9cbcf; border-radius: .6rem; color: var(--ink); background: #fff; }
.calendar-period-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 1.5rem 0 .8rem; }
.calendar-period-title h2 { margin: 0; font-size: clamp(1.35rem,3vw,1.8rem); }
.calendar-period-title > span { color: var(--muted); font-size: .82rem; font-weight: 750; }
.month-calendar { overflow-x: auto; padding: 0; }
.month-weekdays,.month-grid { display: grid; grid-template-columns: repeat(7,minmax(9rem,1fr)); min-width: 63rem; }
.month-weekdays strong { padding: .7rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .7rem; text-transform: uppercase; }
.month-day { min-height: 9.5rem; padding: .5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.month-day:nth-child(7n) { border-right: 0; }
.month-day.is-outside { background: #f8fafa; opacity: .65; }
.month-day.is-today { box-shadow: inset 0 0 0 2px var(--brand-600); }
.month-day header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .35rem; }
.month-day header span { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; font-size: .78rem; font-weight: 850; }
.month-day.is-today header span { color: #fff; background: var(--brand-900); border-radius: 50%; }
.month-day header a { color: var(--brand-700); text-decoration: none; font-weight: 850; }
.calendar-event { display: grid; grid-template-columns: auto minmax(0,1fr); gap: .35rem; overflow: hidden; padding: .3rem .4rem; margin-bottom: .25rem; border-left: 3px solid var(--brand-600); border-radius: .35rem; color: var(--ink); background: var(--brand-50); font-size: .68rem; text-decoration: none; }
.calendar-event time { font-weight: 800; white-space: nowrap; }
.calendar-event span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calendar-more { color: var(--brand-700); font-size: .7rem; font-weight: 800; text-decoration: none; }

.agenda-calendar { display: grid; gap: 1rem; }
.agenda-day { padding: 0; overflow: hidden; }
.agenda-day > header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .85rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); background: var(--brand-50); }
.agenda-day > header > div { display: grid; place-items: center; min-width: 2.5rem; line-height: 1; }
.agenda-day > header span { color: var(--muted); font-size: .62rem; font-weight: 850; text-transform: uppercase; }
.agenda-day > header strong { margin-top: .2rem; font-size: 1.2rem; }
.agenda-day > header h3 { margin: 0; font-size: 1rem; }
.agenda-day > header a { color: var(--brand-700); font-size: .78rem; font-weight: 850; text-decoration: none; }
.agenda-list { display: grid; }
.agenda-appointment { display: grid; grid-template-columns: 6.5rem minmax(0,1fr) auto; align-items: center; gap: 1rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.agenda-appointment:last-child { border-bottom: 0; }
.agenda-appointment:hover { background: #f9fbfb; }
.agenda-appointment > time { display: grid; color: var(--brand-950); font-size: .78rem; }
.agenda-appointment > time span { color: var(--muted); }
.agenda-appointment h4 { margin: .25rem 0 0; }
.agenda-appointment p { margin: .1rem 0 0; color: var(--muted); font-size: .8rem; }

.status-badge.status-pending { color: #825000; background: #fff1cf; }
.status-badge.status-confirmed,.status-badge.status-active { color: #08615e; background: #dff3f1; }
.status-badge.status-checked_in,.status-badge.status-in_progress { color: #174ea6; background: #e4eeff; }
.status-badge.status-completed { color: #16794a; background: #e4f6eb; }
.status-badge.status-cancelled,.status-badge.status-no_show,.status-badge.status-disabled { color: #8d3321; background: #fbe9e5; }
.status-badge.status-invited { color: #6d4b00; background: #fff2cc; }
.status-badge.status-sent { color: #16794a; background: #e4f6eb; }
.status-badge.status-failed { color: #8d3321; background: #fbe9e5; }
.status-badge.status-processing { color: #174ea6; background: #e4eeff; }

.appointment-detail-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(16rem,1fr); gap: 1rem; margin-bottom: 1rem; }
.appointment-status-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; color: var(--muted); font-size: .8rem; }
.detail-list { display: grid; gap: 0; margin: 0; }
.detail-list > div { display: grid; grid-template-columns: 9rem minmax(0,1fr); gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.detail-list dt { color: var(--muted); font-size: .72rem; font-weight: 850; text-transform: uppercase; }
.detail-list dd { display: grid; gap: .15rem; margin: 0; font-weight: 700; }
.detail-list dd small { color: var(--muted); font-weight: 600; }
.detail-list dd a { color: var(--brand-700); }
.appointment-actions h2 { margin-bottom: 1rem; font-size: 1.15rem; }
.appointment-actions form { display: grid; gap: .55rem; padding: .65rem 0; border-top: 1px solid var(--line); }
.appointment-actions form .button { width: 100%; }
.appointment-actions .field-row { margin: 0; }
.appointment-money-input { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.appointment-money-input i { display: grid; place-items: center; padding: 0 .8rem; background: var(--surface-soft); font-style: normal; font-weight: 800; }
.appointment-money-input input { min-width: 0; border: 0; border-radius: 0; }
.appointment-status-action small, .appointment-outcome-confirmed small { color: var(--muted); line-height: 1.45; }
.check-in-window-note { display: grid; gap: .2rem; padding: .85rem; margin: .75rem 0 1rem; border: 1px solid #b9d8eb; border-radius: .7rem; color: #174e76; background: #edf7fd; }
.check-in-window-note.is-closed { color: #79521a; border-color: #ead4aa; background: #fff8e9; }
.check-in-window-note small { color: inherit; line-height: 1.45; }
.appointment-outcome-confirmed { display: grid; gap: .3rem; padding: 1rem; border-radius: 14px; background: #e8f5f2; color: #145e50; }
.appointment-editor { padding-top: 0; }
.appointment-slot-search .form-footer { margin-top: 1rem; }
.appointment-history { display: grid; gap: 0; padding: 0; margin: 0; list-style: none; }
.appointment-history li { display: grid; grid-template-columns: 1rem minmax(0,1fr); gap: .75rem; }
.appointment-history li > span { position: relative; width: .65rem; height: .65rem; margin-top: .4rem; border: 2px solid var(--brand-600); border-radius: 50%; }
.appointment-history li > span::after { position: absolute; top: .6rem; left: .16rem; width: 2px; height: calc(100% + 2.4rem); background: var(--line); content: ""; }
.appointment-history li:last-child > span::after { display: none; }
.appointment-history li > div { padding-bottom: 1.2rem; }
.appointment-history time,.appointment-history small { display: block; color: var(--muted); font-size: .72rem; }
.appointment-history p { margin: .25rem 0; }

.public-manage-card { text-align: left; }
.public-manage-card > h1,.public-manage-card > .eyebrow { text-align: center; }
.public-manage-card > .status-badge { display: flex; width: max-content; margin: 0 auto 1rem; }
.public-manage-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1rem; }
.public-cancel-form { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1rem; }
.public-cancel-form .field-row { flex-basis: 100%; }
.public-manage-date { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .75rem; margin-bottom: 1rem; }
.public-manage-date .field-row { margin: 0; }
.public-manage-help { margin: 0; padding-top: 2rem; color: var(--muted); text-align: center; font-size: .8rem; }
.public-manage-return { display: flex; justify-content: center; margin-top: .75rem; }

.staff-access-link { color: var(--brand-700); font-size: .75rem; font-weight: 800; text-decoration: none; }
.staff-access-status { display: flex; align-items: center; gap: .9rem; padding: 1rem; margin-bottom: 1rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--brand-50); }
.staff-access-status p { margin: .15rem 0 0; color: var(--muted); font-size: .78rem; }
.danger-zone { padding-top: 1rem; margin-top: 1rem; border-top: 1px solid #f0c3ba; }
.staff-portal-shell { width: min(940px,100%); margin: 0 auto; }
.staff-portal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.staff-portal-heading h1 { margin-bottom: .35rem; }
.staff-portal-heading p:last-child { margin: 0; color: var(--muted); }
.staff-view-tabs { margin-bottom: 1rem; }
.staff-agenda-item { grid-template-columns: 6.5rem minmax(0,1fr); }
.staff-customer-alert { margin-top: .4rem !important; padding: .45rem .55rem; border-radius: .45rem; color: #67330f !important; background: #fff3d9; }

.notification-settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-bottom: 1rem; }
.notification-feature-list { display: grid; gap: .75rem; padding: 0; margin: 0; list-style: none; }
.notification-feature-list li { display: grid; grid-template-columns: 2rem minmax(0,1fr); gap: .75rem; align-items: start; padding: .8rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--brand-50); }
.notification-feature-list li > span { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; color: #fff; background: var(--brand-900); border-radius: 50%; font-size: .75rem; font-weight: 900; }
.notification-feature-list li div { display: grid; }
.notification-feature-list small { color: var(--muted); }
.notification-activity { margin-top: 1rem; }
.notification-list { display: grid; }
.notification-list article { display: grid; grid-template-columns: minmax(0,1fr) minmax(11rem,auto); gap: 1rem; align-items: center; padding: 1rem 0; border-top: 1px solid var(--line); }
.notification-list article > div { display: grid; justify-items: start; gap: .2rem; }
.notification-list article > div:last-child { justify-items: end; text-align: right; }
.notification-list strong { margin-top: .2rem; }
.notification-list p { margin: 0; color: var(--muted); font-size: .8rem; }
.notification-list time,.notification-list small { color: var(--muted); font-size: .75rem; }
.notification-list .notification-error { max-width: 30rem; color: #8d3321; }

.customer-toolbar { display: grid; grid-template-columns: minmax(18rem,1fr) auto; align-items: end; gap: 1rem; padding: 1rem; margin-bottom: 1rem; }
.customer-search { display: grid; gap: .35rem; }
.customer-search > label { color: var(--muted); font-size: .7rem; font-weight: 850; text-transform: uppercase; }
.customer-search > div { display: flex; gap: .5rem; }
.customer-search input[type="search"] { width: 100%; min-width: 0; padding: .72rem .85rem; border: 1px solid #b9cbcf; border-radius: .65rem; color: var(--ink); background: #fff; font: inherit; }
.customer-filters { display: inline-flex; overflow-x: auto; padding: .25rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--brand-50); }
.customer-filters a { padding: .55rem .8rem; border-radius: .55rem; color: var(--muted); font-size: .76rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.customer-filters a.is-active { color: #fff; background: var(--brand-900); }
.customer-list { padding: 0; overflow: hidden; }
.customer-list-item { display: grid; grid-template-columns: 2.75rem minmax(14rem,1fr) 7rem 11rem auto auto; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.customer-list-item:last-child { border-bottom: 0; }
.customer-list-item:hover { background: #f8fbfb; }
.customer-initial { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: .75rem; color: #fff; background: linear-gradient(135deg,var(--brand-600),#3578a5); font-weight: 900; }
.customer-list-identity,.customer-frequency,.customer-recency { display: grid; gap: .15rem; min-width: 0; }
.customer-list-identity > strong,.customer-list-identity > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-list-item small { color: var(--muted); font-size: .72rem; }
.customer-frequency { text-align: center; }
.customer-frequency strong { font-size: 1.15rem; }
.customer-recency strong { font-size: .8rem; }
.customer-alert-badge { display: grid; place-items: center; width: 1.65rem; height: 1.65rem; border-radius: 50%; color: #8a3b16; background: #fff0d5; font-weight: 950; }
.customer-chevron { color: var(--muted); font-size: 1.45rem; }
.customer-tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .25rem; }
.customer-tags i { padding: .2rem .45rem; border-radius: 999px; color: #176251; background: #e1f4ed; font-size: .64rem; font-style: normal; font-weight: 800; }
.customer-pagination { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; color: var(--muted); font-size: .78rem; font-weight: 800; }
.customer-pagination > div { display: flex; gap: .5rem; }
.customer-alert { display: grid; grid-template-columns: 2.1rem minmax(0,1fr); align-items: start; gap: .8rem; padding: 1rem; margin-bottom: 1rem; border: 1px solid #edc27e; border-radius: .8rem; color: #67330f; background: #fff8e9; }
.customer-alert > span { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; color: #fff; background: #a85a20; font-weight: 950; }
.customer-alert strong,.customer-alert p { margin: 0; }
.customer-alert p { margin-top: .2rem; line-height: 1.45; }
.customer-alert.compact { margin: 0 0 1rem; }
.customer-profile-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(17rem,1fr); gap: 1rem; margin-bottom: 1rem; }
.customer-summary-card { align-self: start; }
.customer-summary-tags { display: grid; gap: .4rem; padding-top: 1rem; margin-top: 1rem; border-top: 1px solid var(--line); }
.customer-summary-tags > strong { color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.customer-appointment-list { display: grid; }
.customer-appointment-list > a { display: grid; grid-template-columns: 9rem minmax(0,1fr) auto; align-items: center; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.customer-appointment-list time,.customer-appointment-list > a > span { display: grid; justify-items: start; gap: .2rem; }
.customer-appointment-list time span,.customer-appointment-list small { color: var(--muted); font-size: .72rem; }
.customer-appointment-list > a > b { color: var(--muted); font-size: 1.35rem; }

@media (max-width: 1050px) {
    .calendar-toolbar { grid-template-columns: 1fr auto; }
    .calendar-filters { grid-column: 1/-1; justify-content: flex-start; }
    .form-grid.four-columns { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .customer-list-item { grid-template-columns: 2.75rem minmax(12rem,1fr) 7rem auto auto; }
    .customer-recency { display: none; }
}

@media (max-width: 700px) {
    .page-heading,.staff-portal-heading { display: grid; align-items: stretch; }
    .page-heading > .button,.staff-portal-heading .button { width: 100%; }
    .calendar-toolbar { grid-template-columns: 1fr; align-items: stretch; }
    .calendar-view-tabs { width: 100%; }
    .calendar-view-tabs a { flex: 1; text-align: center; }
    .calendar-date-nav { justify-content: center; }
    .calendar-filters { grid-column: auto; display: grid; grid-template-columns: 1fr 1fr; }
    .calendar-filters select { width: 100%; min-width: 0; }
    .calendar-filters .button { grid-column: 1/-1; width: 100%; }
    .appointment-detail-grid { grid-template-columns: 1fr; }
    .agenda-appointment { grid-template-columns: 5.5rem minmax(0,1fr) auto; gap: .65rem; }
    .form-grid.four-columns { grid-template-columns: 1fr; }
    .notification-settings-grid { grid-template-columns: 1fr; }
    .customer-toolbar,.customer-profile-grid { grid-template-columns: 1fr; }
    .customer-filters { width: 100%; }
    .customer-filters a { flex: 1; text-align: center; }
    .customer-list-item { grid-template-columns: 2.75rem minmax(0,1fr) auto auto; gap: .65rem; }
    .customer-frequency { display: none; }
    .customer-profile-form .form-footer { align-items: stretch; }
}

@media (max-width: 480px) {
    .calendar-view-tabs a { padding-inline: .55rem; font-size: .74rem; }
    .calendar-period-title { align-items: flex-start; }
    .agenda-day > header { grid-template-columns: auto 1fr; }
    .agenda-day > header > a { grid-column: 2; }
    .agenda-appointment,.staff-agenda-item { grid-template-columns: 4.8rem minmax(0,1fr); }
    .agenda-appointment > span:last-child { display: none; }
    .detail-list > div { grid-template-columns: 1fr; gap: .2rem; }
    .public-manage-date { grid-template-columns: 1fr; }
    .public-manage-date .button { width: 100%; }
    .notification-list article { grid-template-columns: 1fr; }
    .notification-list article > div:last-child { justify-items: start; text-align: left; }
    .customer-search > div { display: grid; grid-template-columns: 1fr auto; }
    .customer-search input[type="search"] { grid-column: 1/-1; }
    .customer-pagination { align-items: flex-start; }
    .customer-appointment-list > a { grid-template-columns: 1fr auto; }
    .customer-appointment-list time { grid-column: 1/-1; }
}
