@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;450;500;550;600;650;700;750;800&display=swap');

:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #10251f;
  background: #f7f8f4;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --brand: #0c5d49;
  --focus-ring: #52626e;
  --brand-dark: #073d32;
  --brand-hover: #084b3b;
  --accent: #c9f970;
  --text: #10251f;
  --muted: #64746e;
  --border: #dbe3dc;
  --surface: #ffffff;
  --background: #f7f8f4;
  --soft-green: #edf5ee;
  --danger: #ad373b;
  --radius: 16px;
  --shadow: 0 4px 24px rgb(7 61 50 / 4%);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 0; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; min-width: 0; line-height: 1.55; font-size: 15px; }
body:has(dialog[open]) { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input, select, textarea { min-width: 0; }
button { color: inherit; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: none; }
button:disabled, input:disabled, select:disabled { opacity: .55; cursor: not-allowed; }
button:disabled:hover { transform: none; box-shadow: none; }
img, svg { max-width: 100%; }
svg { vertical-align: middle; flex-shrink: 0; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.22; letter-spacing: -.035em; }
h1 { font-size: clamp(25px, 3vw, 34px); font-weight: 750; }
h2 { font-size: 23px; font-weight: 700; }
h3 { font-size: 18px; font-weight: 650; }
h4 { font-size: 16px; font-weight: 650; }
p { overflow-wrap: anywhere; }
small { font-size: 12px; line-height: 1.5; }
strong { font-weight: 650; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }
::selection { background: #d8f9a4; color: var(--brand-dark); }

.muted { color: var(--muted); }
.eyebrow { display: block; color: var(--brand); font-size: 11px; line-height: 1.4; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.section-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.section-title h2 { font-size: 20px; }
.section-title h3 { font-size: 18px; }
.section-title p { margin-top: 5px; color: var(--muted); font-size: 14px; }
.section-title > div { min-width: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--mobile-action-height, 46px); padding: var(--mobile-action-padding, 11px 18px); border: 1px solid transparent; border-radius: var(--mobile-action-radius, 10px); background: transparent; color: var(--text); font-size: var(--mobile-action-font-size, 14px); font-weight: var(--mobile-action-font-weight, 650); line-height: var(--mobile-action-line-height, 1.45); text-align: center; text-decoration: none; transition: background .16s, border-color .16s, box-shadow .16s, transform .16s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary { color: white; background: var(--brand); border-color: var(--brand); }
.btn.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); box-shadow: 0 3px 10px rgb(12 93 73 / 14%); }
.btn.secondary { color: var(--brand); background: white; border-color: var(--border); }
.btn.secondary:hover { background: var(--soft-green); border-color: #a9c2ae; }
.btn.ghost { color: var(--brand); background: transparent; }
.btn.ghost:hover { background: var(--soft-green); }
.btn.danger { color: var(--danger); background: #fff2f2; border-color: #f1d3d3; }
.btn.danger:hover { background: #fce3e3; }
.btn.small { min-height: var(--mobile-action-height, 44px); padding: var(--mobile-action-padding, 9px 13px); font-size: var(--mobile-action-font-size, 13px); }
.btn.full { width: 100%; }
.btn.accent { background: var(--accent); color: var(--brand-dark); border-color: var(--accent); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: var(--mobile-action-height, 44px); height: var(--mobile-action-height, 44px); flex: 0 0 var(--mobile-action-height, 44px); padding: 0; border: 1px solid var(--border); border-radius: var(--mobile-action-radius, 10px); background: white; color: var(--muted); transition: background .16s; }
.icon-button:hover { background: var(--soft-green); color: var(--brand); }
.badge { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: fit-content; min-height: 25px; padding: 4px 9px; border-radius: 7px; background: #f0f2ee; color: var(--muted); font-size: 10px; font-weight: 700; line-height: 1.35; white-space: nowrap; }
.badge.success { background: #edf6e9; color: #396533; }
.badge.warning { background: #fff3d9; color: #8c6415; }
.badge.danger { background: #ffeded; color: #ab3d3d; }
.badge.neutral { background: #f0f3ef; color: #66766e; }
.badge svg { width: 12px; height: 12px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .field > .label { color: var(--text); font-size: 13px; font-weight: 600; line-height: 1.45; }
.field input, .field select, .field textarea, input.input, select.input, textarea.input { display: block; width: 100%; min-height: 48px; border: 1px solid #d6dfd7; border-radius: 9px; background: #fff; padding: 11px 13px; color: var(--text); font-size: 16px; line-height: 1.45; transition: border-color .15s, box-shadow .15s; }
.field textarea, textarea.input { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #97a39b; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--focus-ring); box-shadow: none; }
.field input[aria-invalid='true'], .field select[aria-invalid='true'], .field textarea[aria-invalid='true'] { border-color: var(--danger); }
.field .hint, .hint { color: var(--muted); font-size: 12px; line-height: 1.55; }
.field .hint a { font-weight: 600; text-decoration: underline; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.form-section { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.form-section + .form-section { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 24px; }
.form-section > h3 { font-size: 17px; }
.form-section > p { color: var(--muted); font-size: 14px; margin-top: -7px; }
.checkbox-field { display: flex; align-items: flex-start; gap: 11px; min-height: 44px; font-size: 13px; line-height: 1.6; color: var(--muted); cursor: pointer; }
.checkbox-field input { width: 19px; height: 19px; min-width: 19px; margin: 2px 0 0; accent-color: var(--brand); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #f5f8f3; border: 1px solid var(--border); border-radius: 12px; padding: 15px; }
.switch-row label, .switch-row strong { font-size: 14px; font-weight: 600; }
.switch-row p, .switch-row small { color: var(--muted); font-size: 12px; margin-top: 3px; }
.switch-row input[type='checkbox'] { appearance: none; -webkit-appearance: none; position: relative; flex: 0 0 44px; width: 44px; height: 26px; border: 0; border-radius: 999px; background: #bcc9bd; cursor: pointer; transition: background .15s; }
.switch-row input[type='checkbox']::after { content: ''; position: absolute; width: 20px; height: 20px; top: 3px; left: 3px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgb(0 0 0 / 12%); transition: transform .15s; }
.switch-row input[type='checkbox']:checked { background: var(--brand); }
.switch-row input[type='checkbox']:checked::after { transform: translateX(18px); }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 38px 20px; text-align: center; color: var(--muted); }
.empty-state > svg { width: 42px; height: 42px; color: #91ad94; padding: 8px; box-sizing: content-box; background: #f1f6ed; border-radius: 15px; }
.empty-state h3 { font-size: 17px; color: var(--text); }
.empty-state p { max-width: 320px; font-size: 13px; }
.empty-state .btn { margin-top: 4px; }
.error-message { padding: 12px 14px; background: #fff1f1; border: 1px solid #edcccc; border-radius: 9px; color: #a23639; font-size: 13px; line-height: 1.55; }
.spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid #d4e5d5; border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast-container, #toast-container { position: fixed; z-index: 100; bottom: calc(88px + env(safe-area-inset-bottom)); left: 16px; right: 16px; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; max-width: 480px; padding: 14px 18px; border: 1px solid #2a705a; border-radius: 12px; background: var(--brand-dark); color: white; box-shadow: 0 10px 36px rgb(7 61 50 / 20%); font-size: 13px; line-height: 1.5; pointer-events: auto; animation: toast-in .18s ease-out; }
.toast.error { background: #8d3337; border-color: #8d3337; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* The owner has a compact header and four fixed destinations on a phone. */
.app-shell { width: 100%; min-width: 0; min-height: 100dvh; }
.sidebar { display: none; }
.workspace { width: 100%; min-width: 0; max-width: 100%; }
.topbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: var(--brand-dark); color: white; }
.topbar-title { min-width: 0; }
.topbar-title h1 { font-size: 20px; letter-spacing: -.03em; }
.topbar-title p { color: #bad1c5; font-size: 11px; margin-top: 3px; }
.topbar .muted { color: #c0d5ca; }
.topbar .eyebrow { color: #c9f970; font-size: 9px; margin-bottom: 4px; }
.topbar .icon-button { background: rgb(255 255 255 / 8%); border-color: rgb(255 255 255 / 14%); color: #e8f4e9; }
.topbar .btn.secondary { background: rgb(255 255 255 / 8%); border-color: rgb(255 255 255 / 20%); color: white; padding-inline: var(--mobile-action-padding-x, 12px); }
.topbar > .row { gap: 8px; flex-shrink: 0; }
.avatar { display: flex; align-items: center; justify-content: center; height: 36px; width: 36px; flex: 0 0 36px; border-radius: 50%; background: #e8f1e1; color: var(--brand); font-size: 12px; font-weight: 700; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 11px; color: var(--brand-dark); background: var(--accent); }
.page-content { width: 100%; min-width: 0; max-width: 1380px; margin: 0 auto; padding: 24px 16px calc(100px + env(safe-area-inset-bottom)); }
.page-content > * { min-width: 0; max-width: 100%; }
.page-content > * + * { margin-top: 24px; }
.bottom-nav { position: fixed; z-index: 30; inset: auto 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / 97%); border-top: 1px solid var(--border); box-shadow: 0 -4px 20px rgb(7 61 50 / 4%); backdrop-filter: blur(12px); }
.bottom-nav-item { min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; border-radius: 10px; background: transparent; color: #76847b; font-size: 10px; font-weight: 550; }
.bottom-nav-item svg { width: 21px; height: 21px; }
.bottom-nav-item.active { background: #eff6e9; color: var(--brand); font-weight: 700; }
.welcome { display: flex; flex-direction: column; gap: 8px; }
.welcome h1 { font-size: 26px; }
.welcome p { font-size: 14px; color: var(--muted); }
.welcome .btn { margin-top: 6px; align-self: flex-start; }
.link-card { display: flex; align-items: flex-start; gap: 13px; padding: 17px; border: 1px solid #d7e5ca; border-radius: 13px; background: #eef5e5; min-width: 0; }
.link-card > svg { width: 20px; height: 20px; color: var(--brand); margin-top: 2px; }
.link-card > div { min-width: 0; flex: 1; }
.link-card strong { font-size: 13px; }
.link-card p { color: var(--muted); font-size: 12px; margin-top: 2px; }
.link-card .row { margin-top: 8px; flex-wrap: wrap; gap: 7px; }
.link-card .btn { min-height: var(--mobile-action-height, 44px); padding: var(--mobile-action-padding, 9px 11px); background: white; border-color: #d3e0c6; }
.link-url { display: block; color: var(--brand); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; margin-top: 3px; }
.module-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.module-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px; background: white; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); min-width: 0; }
.module-card > .between { align-items: flex-start; }
.module-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; color: var(--brand); background: #edf5e7; border-radius: 12px; }
.module-icon svg { width: 22px; height: 22px; }
.module-card:nth-child(2) .module-icon { background: #fff5dc; color: #9b742a; }
.module-card:nth-child(3) .module-icon { background: #f0ecfa; color: #8067a9; }
.module-card h3 { font-size: 17px; margin-bottom: 4px; }
.module-card p { color: var(--muted); font-size: 13px; line-height: 1.65; }
.module-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 4px; margin-top: auto; }
.module-actions .btn { flex: 1; }
.agenda-preview { padding: 18px; border-radius: 16px; border: 1px solid var(--border); background: white; box-shadow: var(--shadow); min-width: 0; }
.appointment-card { display: flex; align-items: flex-start; gap: 12px; padding: 16px 0; border-bottom: 1px solid #edf0ea; min-width: 0; }
.appointment-card:last-child { border-bottom: 0; }
.appointment-time { width: 48px; flex: 0 0 48px; font-size: 15px; font-weight: 650; color: var(--brand); line-height: 1.5; }
.appointment-time small { display: block; color: #8b998e; font-size: 10px; font-weight: 450; margin-top: 2px; }
.appointment-content { flex: 1; min-width: 0; }
.appointment-content h3, .appointment-content strong { display: block; font-size: 14px; font-weight: 650; line-height: 1.45; letter-spacing: -.015em; }
.appointment-content p { color: var(--muted); font-size: 12px; margin-top: 3px; }
.appointment-content .badge { margin-top: 8px; }
.appointment-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px; flex-shrink: 0; max-width: 98px; }
.appointment-actions .icon-button { width: var(--mobile-action-height, 40px); flex-basis: var(--mobile-action-height, 40px); min-height: var(--mobile-action-height, 44px); border-color: #e5ebe3; }
.appointment-actions .btn { padding: var(--mobile-action-padding, 8px 10px); font-size: 11px; }
.status-strip { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; background: #f0f5e9; border: 1px solid #dbe7d2; color: #52674e; border-radius: 10px; padding: 12px 14px; font-size: 12px; }
.status-strip svg { color: #6e925a; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat-card { background: white; border: 1px solid var(--border); padding: 16px; border-radius: 13px; min-width: 0; }
.stat-card > span, .stat-card > p { display: block; color: var(--muted); font-size: 11px; line-height: 1.45; }
.stat-card > strong, .stat-card > h2 { display: block; font-size: 27px; line-height: 1.2; font-weight: 700; letter-spacing: -.04em; margin-top: 7px; color: var(--brand-dark); }
.stat-card .row { justify-content: space-between; gap: 8px; }
.stat-card .row svg { color: #6f9471; width: 18px; height: 18px; }

/* The owner agenda remains a readable list in its weekly view. */
.agenda-toolbar { display: flex; align-items: stretch; flex-direction: column; gap: 15px; }
.agenda-toolbar > .row, .agenda-toolbar > .between { flex-wrap: wrap; }
.agenda-toolbar h1 { font-size: 26px; }
.agenda-toolbar p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.agenda-toolbar > .btn { width: 100%; }
.view-switch { display: inline-flex; gap: 3px; padding: 4px; background: #eaf0e7; border: 1px solid #e1e7dd; border-radius: 11px; }
.view-switch > button { display: inline-flex; align-items: center; justify-content: center; flex: 1; gap: 6px; border: 0; border-radius: 7px; min-height: 40px; padding: 8px 16px; background: transparent; color: #6b7d6b; font-size: 12px; font-weight: 600; white-space: nowrap; }
.view-switch > button.active { background: white; color: var(--brand); box-shadow: 0 1px 5px rgb(7 61 50 / 7%); }
.period-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.period-nav > strong, .period-nav > h2, .period-nav > span { text-align: center; color: var(--text); font-size: 14px; font-weight: 650; line-height: 1.4; }
.period-nav .icon-button { width: var(--mobile-action-height, 40px); flex-basis: var(--mobile-action-height, 40px); }
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; padding: 4px 0; }
.day-pill { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 0; min-height: 69px; padding: 8px 1px; background: white; border: 1px solid var(--border); color: var(--muted); border-radius: 11px; font-size: 10px; line-height: 1.3; }
.day-pill strong { font-size: 19px; line-height: 1.2; font-weight: 650; color: var(--text); }
.day-pill small { font-size: 9px; }
.day-pill.active, .day-pill[aria-pressed='true'] { background: var(--brand); border-color: var(--brand); color: #d0e3d5; box-shadow: 0 4px 12px rgb(12 93 73 / 12%); }
.day-pill.active strong, .day-pill[aria-pressed='true'] strong { color: white; }
.day-pill:hover:not(.active) { background: #f0f6e9; border-color: #aac8a7; }
.day-pill:disabled { background: #f1f3ee; }
.agenda-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.calendar-panel { padding: 16px; background: white; border: 1px solid var(--border); border-radius: 16px; min-width: 0; }
.calendar-panel > .period-nav { margin-bottom: 14px; }
.day-group { border: 1px solid var(--border); border-radius: 13px; background: white; overflow: hidden; }
.day-group + .day-group { margin-top: 14px; }
.day-group-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 16px; background: #f0f5ea; border-bottom: 1px solid #e0e9d8; color: #4c6b42; font-size: 12px; font-weight: 650; }
.day-group-title small { font-size: 10px; color: #7d9075; font-weight: 500; }
.day-group > .appointment-card { margin-inline: 16px; }
.day-group > .empty-state { padding: 24px 16px; }
.day-group .empty-state > svg { display: none; }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; min-width: 0; }
.month-weekday { padding: 8px 0; text-align: center; color: #89967e; font-size: 9px; font-weight: 600; text-transform: uppercase; }
.month-day { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; position: relative; gap: 4px; min-width: 0; min-height: 57px; padding: 6px 2px; border: 1px solid transparent; border-radius: 8px; background: #f8faf5; color: var(--text); text-align: left; transition: background .15s; }
.month-day:hover { background: #eaf3de; }
.month-day.today { background: #e9f4db; border-color: #bed399; }
.month-day.selected { color: white; background: var(--brand); border-color: var(--brand); }
.month-day.outside { color: #bdc7b7; background: #fbfcf9; }
.month-day-num { display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; min-height: 18px; }
.month-count { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; min-height: 16px; border-radius: 4px; padding: 1px 4px; color: var(--brand); background: #dfeecf; font-size: 8px; font-weight: 700; }
.month-day.selected .month-count { color: var(--brand-dark); background: var(--accent); }
.month-event { display: none; }
.agenda-detail { padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: white; min-width: 0; }
.agenda-detail h3 { font-size: 16px; }
.filter-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.filter-bar .field { flex: 1; min-width: 130px; }
.filter-bar input, .filter-bar select { min-height: 44px; font-size: 16px; }
.filter-bar .search-field { position: relative; flex: 1; }
.filter-bar .search-field input { width: 100%; padding-left: 38px; }
.filter-bar .search-field svg { position: absolute; left: 12px; top: 13px; color: #84937e; }

/* Public booking: service, day, and available time without calendar clutter. */
.public-shell { min-height: 100dvh; background: #f7f8f4; }
.public-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: var(--brand-dark); color: white; }
.public-header .brand, .public-header a { color: white; }
.public-header .btn { color: #e4eee3; border-color: rgb(255 255 255 / 22%); font-size: 11px; padding: var(--mobile-action-padding, 9px 12px); }
.business-header { display: flex; align-items: center; gap: 15px; padding: 26px 0 22px; }
.business-header .avatar { width: 58px; height: 58px; flex-basis: 58px; font-size: 21px; background: #e7efda; border: 1px solid #d6e2c6; border-radius: 17px; }
.business-header h1 { font-size: 25px; }
.business-header p { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.business-header svg { width: 14px; height: 14px; }
.public-content { width: 100%; max-width: 980px; padding: 0 16px 32px; margin: 0 auto; }
.public-content > * + * { margin-top: 20px; }
.public-content > .business-header { margin-top: 0; }
.public-content .section-title h2 { font-size: 19px; }
.step-label { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: var(--brand); font-weight: 650; margin-bottom: 12px; }
.step-label > span:first-child { display: inline-flex; align-items: center; justify-content: center; width: 23px; height: 23px; border-radius: 7px; background: #eaf3df; font-size: 10px; }
.service-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.service-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-width: 0; min-height: 74px; padding: 15px; text-align: left; background: white; border: 1px solid var(--border); border-radius: 11px; }
.service-option > div { min-width: 0; }
.service-option strong { display: block; font-size: 14px; font-weight: 600; }
.service-option small, .service-option p { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.service-option > span { flex-shrink: 0; font-size: 13px; font-weight: 650; }
.service-option > svg { width: 18px; height: 18px; color: #a9b9a7; }
.service-option.selected { border-color: var(--brand); background: #f0f7e9; box-shadow: 0 0 0 1px var(--brand); }
.service-option.selected > svg { color: var(--brand); }
.public-schedule { padding: 18px; background: white; border: 1px solid var(--border); border-radius: 16px; min-width: 0; }
.public-schedule .period-nav { margin-bottom: 14px; }
.public-schedule .period-nav > strong { font-size: 13px; }
.public-schedule .week-strip { gap: 4px; }
.public-schedule .day-pill { min-height: 65px; font-size: 9px; border-radius: 9px; }
.public-schedule .day-pill strong { font-size: 18px; }
.slots-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 16px; }
.slot { display: inline-flex; align-items: center; justify-content: center; min-width: 0; min-height: 46px; padding: 9px 7px; background: #f5f9f0; border: 1px solid #dce8d3; color: var(--brand); border-radius: 9px; font-size: 14px; font-weight: 600; }
.slot:hover { background: #eaf4dc; border-color: #a8c18f; }
.slot.selected { background: var(--brand); border-color: var(--brand); color: white; }
.booking-summary { padding: 18px; background: #edf5e5; border: 1px solid #d6e5c6; border-radius: 13px; }
.booking-summary h3 { font-size: 15px; margin-bottom: 12px; }
.booking-summary p { color: #53694c; font-size: 13px; }
.booking-summary .row { align-items: flex-start; gap: 9px; margin-top: 8px; font-size: 13px; }
.booking-summary .row svg { color: #5c8551; width: 17px; height: 17px; margin-top: 1px; }
.booking-summary .btn { margin-top: 16px; }
.public-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 24px 16px; font-size: 11px; color: #8b9887; text-align: center; }
.public-footer strong, .public-footer a { color: var(--brand); font-size: 11px; }

/* Landing: a real illustrated product preview, with a quiet editorial rhythm. */
.landing { overflow: clip; background: #fbfcf8; }
.landing-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1200px; margin: 0 auto; min-height: 80px; padding: 17px 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--brand-dark); font-size: 20px; line-height: 1.1; font-weight: 750; letter-spacing: -.055em; white-space: nowrap; }
.brand .brand-mark { width: 32px; height: 34px; flex-basis: 32px; border-radius: 9px; background: var(--brand); color: var(--accent); }
.brand > span > small { display: block; color: var(--muted); font-size: 8px; font-weight: 450; letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }
.landing-nav { display: flex; align-items: center; gap: 6px; }
.landing-nav > a:not(.btn) { color: #6e7f60; font-size: 11px; font-weight: 550; }
.landing-nav .btn { min-height: var(--mobile-action-height, 44px); padding: var(--mobile-action-padding, 9px 11px); font-size: 11px; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 38px; width: 100%; max-width: 1200px; margin: 0 auto; padding: 44px 20px 56px; }
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; min-width: 0; }
.hero-copy > .eyebrow { display: inline-flex; gap: 7px; align-items: center; padding: 7px 11px; border-radius: 100px; background: #eaf4df; color: #597341; font-size: 9px; letter-spacing: .035em; font-weight: 650; }
.hero-copy > .eyebrow svg { width: 13px; height: 13px; }
.hero-title { color: var(--brand-dark); font-size: clamp(38px, 9.6vw, 58px); line-height: 1.08; font-weight: 750; letter-spacing: -.065em; max-width: 600px; }
.hero-title > span, .hero-title > em { font-style: normal; color: #57923b; }
.hero-subtitle { max-width: 445px; color: #65735f; font-size: 15px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; width: 100%; }
.hero-actions .btn.primary { background: var(--brand); min-height: var(--mobile-action-height, 50px); padding-inline: var(--mobile-action-padding-x, 22px); }
.hero-actions .btn { min-height: var(--mobile-action-height, 48px); font-size: var(--mobile-action-font-size, 13px); }
.hero-copy > small, .hero-copy > .muted { color: #839077; font-size: 10px; }
.hero-copy > .row { color: #6c7c61; font-size: 10px; gap: 8px; }
.hero-copy > .row svg { color: #689649; width: 15px; height: 15px; }
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; padding: 20px 0 24px; min-width: 0; }
.hero-visual::before { content: ''; position: absolute; width: 105%; height: 94%; max-width: 530px; background: #e9f1dd; border-radius: 40% 42% 45% 38%; transform: rotate(-5deg); }
.hero-preview { position: relative; width: 100%; max-width: 450px; padding: 20px 17px 12px; background: white; border: 1px solid #d9e3ce; border-radius: 18px; box-shadow: 0 18px 54px rgb(37 66 22 / 9%); transform: rotate(-2deg); z-index: 1; }
.hero-preview > .between { margin-bottom: 17px; }
.hero-preview h3 { font-size: 16px; color: var(--brand-dark); }
.hero-preview p { font-size: 10px; color: #8b9781; margin-top: 4px; }
.hero-preview .badge { font-size: 8px; min-height: 21px; border-radius: 5px; padding: 4px 7px; }
.hero-preview .week-strip { gap: 5px; margin-bottom: 15px; }
.preview-day { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 1px; min-height: 48px; border-radius: 8px; background: #f4f6ef; color: #88957a; font-size: 8px; }
.preview-day strong { color: #617156; font-size: 13px; }
.preview-day.active { color: #e0ecd4; background: var(--brand); }
.preview-day.active strong { color: white; }
.preview-event { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid #edf0e8; }
.preview-event > span:first-child { width: 35px; color: #789164; font-size: 9px; font-weight: 600; }
.preview-event > div { flex: 1; min-width: 0; padding-left: 11px; border-left: 3px solid #bedb9b; }
.preview-event strong { display: block; font-size: 11px; color: #3f5235; }
.preview-event small { display: block; font-size: 8px; color: #95a187; margin-top: 3px; }
.preview-event:nth-last-child(2) > div { border-color: #d5c2e7; }
.floating-note { position: absolute; z-index: 2; right: -3px; bottom: 0; display: flex; align-items: center; gap: 8px; max-width: 220px; padding: 12px; border: 1px solid #d5e4c9; border-radius: 11px; box-shadow: 0 8px 25px rgb(30 66 17 / 9%); background: #fff; font-size: 10px; transform: rotate(2deg); }
.floating-note > svg { color: var(--brand); background: #eaf4df; padding: 6px; width: 31px; height: 31px; border-radius: 9px; }
.floating-note strong { display: block; font-size: 10px; }
.floating-note small { color: #86957b; font-size: 8px; }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 1160px; margin: 0 auto; padding: 20px 20px 56px; }
.feature-card { min-width: 0; padding: 24px; background: white; border: 1px solid #dfe6d7; border-radius: 16px; }
.feature-card .module-icon { margin-bottom: 18px; }
.feature-card h3 { color: var(--brand-dark); font-size: 18px; margin-bottom: 10px; }
.feature-card p { color: #7b876f; font-size: 13px; line-height: 1.8; }
.how-it-works { max-width: 1160px; margin: 0 auto; padding: 0 20px 56px; }
.how-it-works > h2 { text-align: center; color: var(--brand-dark); font-size: 27px; }
.how-it-works > p { text-align: center; color: var(--muted); font-size: 13px; margin-top: 10px; }
.how-it-works > .row, .how-it-works > .steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 30px; }
.how-step { display: flex; align-items: flex-start; gap: 15px; padding: 8px 0; }
.how-step > span { display: inline-flex; justify-content: center; align-items: center; width: 34px; height: 34px; flex: 0 0 34px; color: var(--brand); background: #e7f1dc; border: 1px solid #d3e3c3; border-radius: 50%; font-size: 12px; font-weight: 700; }
.how-step h3 { font-size: 15px; margin-top: 4px; }
.how-step p { font-size: 12px; line-height: 1.7; color: #7c8972; margin-top: 7px; }
.landing-cta { max-width: 1120px; margin: 0 20px 48px; padding: 36px 24px; background: var(--brand-dark); color: white; border-radius: 20px; text-align: center; }
.landing-cta h2 { font-size: 28px; }
.landing-cta p { margin: 14px auto 23px; max-width: 460px; color: #b7cdbd; font-size: 13px; line-height: 1.8; }
.landing-cta .btn.primary, .landing-cta .btn.accent { background: var(--accent); border-color: var(--accent); color: var(--brand-dark); }
.landing-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px 20px; max-width: 1160px; margin: auto; border-top: 1px solid #e1e6da; }
.landing-footer .brand { font-size: 16px; }
.landing-footer p, .landing-footer small, .landing-footer a:not(.brand) { font-size: 10px; color: #8c9781; }

/* Registration and all task flows share the same guided surface. */
.auth-page { min-width: 0; max-width: 100%; min-height: 100dvh; background: var(--background); }
.auth-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 1200px; margin: 0 auto; padding: 20px; min-height: 80px; }
.auth-header .btn { font-size: 12px; padding-inline: var(--mobile-action-padding-x, 12px); }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; width: 100%; min-width: 0; max-width: 1120px; margin: 0 auto; padding: 12px 16px 40px; }
.auth-aside { display: none; }
.auth-content { width: 100%; min-width: 0; }
.auth-card { width: 100%; min-width: 0; max-width: 100%; background: white; padding: 24px 20px; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 26px; }
.auth-card > p, .auth-card > div > p { margin-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.auth-card form { margin-top: 24px; }
.auth-card form:not(.stack) > .field + .field { margin-top: 16px; }
.auth-card form:not(.stack) > .btn.full { margin-top: 22px; }
.auth-card .error-message { margin-block: 16px; }
.auth-card > .progress-steps { margin-top: 24px; }
.auth-card .form-section { margin-top: 24px; }
.auth-card .wizard-actions { margin-top: 8px; }
.progress-steps { display: flex; align-items: flex-start; justify-content: space-between; position: relative; gap: 5px; margin-bottom: 24px; }
.progress-step { position: relative; display: flex; flex: 1; align-items: center; flex-direction: column; justify-content: flex-start; gap: 7px; min-width: 0; text-align: center; color: #9ba692; font-size: 9px; font-weight: 500; line-height: 1.4; }
.progress-step:not(:last-child)::after { content: ''; position: absolute; top: 14px; left: calc(50% + 20px); width: calc(100% - 35px); height: 1px; background: #e1e8db; }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 29px; height: 29px; border-radius: 50%; background: #f0f3ec; border: 1px solid #e2e7dc; color: #95a188; font-size: 11px; font-weight: 650; }
.progress-step.active { color: var(--brand); font-weight: 650; }
.progress-step.active .step-number { color: white; background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 4px #eff5e9; }
.progress-step.done { color: #6e8d5a; }
.progress-step.done .step-number { color: var(--brand); background: #e8f4dc; border-color: #d6e8c1; }
.progress-step.done:not(:last-child)::after { background: #bed6a7; }
.progress-step .step-number svg { width: 14px; height: 14px; }
.step-dots { display: flex; align-items: center; justify-content: center; gap: 5px; }
.step-dots > span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #d7e0cf; }
.step-dots > span.active { width: 20px; background: var(--brand); border-radius: 5px; }
.wizard-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wizard-actions > .btn { flex: 1; }
.choice-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.choice-card { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 16px; background: white; border: 1px solid var(--border); border-radius: 11px; color: var(--text); text-align: left; }
.choice-card > div { flex: 1; min-width: 0; }
.choice-card > svg { width: 22px; height: 22px; color: #7f9d6d; }
.choice-card strong { display: block; font-size: 14px; font-weight: 600; }
.choice-card p, .choice-card small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.choice-card.selected { border-color: var(--brand); background: #f0f7e9; box-shadow: 0 0 0 1px var(--brand); }
.choice-card.selected > svg { color: var(--brand); }
.day-toggles { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.day-toggle { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 44px; padding: 6px 0; color: var(--muted); background: #f6f8f2; border: 1px solid #e0e7d9; border-radius: 8px; font-size: 10px; font-weight: 600; }
.day-toggle.active { color: white; background: var(--brand); border-color: var(--brand); }
.hours-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; padding: 14px; border: 1px solid var(--border); background: #fafbf8; border-radius: 10px; }
.hours-row > label, .hours-row > strong, .hours-row > .row { grid-column: 1 / -1; }
.hours-row > strong { font-size: 13px; }
.hours-row input { font-size: 16px; padding-inline: 8px; }
.template-vars { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.var-chip { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 9px; border: 1px solid #dce7d0; border-radius: 7px; background: #f2f7eb; color: #5e8050; font-size: 11px; font-weight: 550; }
.var-chip:hover { background: #e5f0d5; border-color: #b8cea4; }
.message-editor { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.message-editor textarea { min-height: 180px; }
.message-preview { padding: 19px; border: 1px solid #dde3d2; border-radius: 12px; background-color: #eef0e5; background-image: radial-gradient(#cbd5bd 0.7px, transparent 0.7px); background-size: 17px 17px; }
.message-preview > .eyebrow, .message-preview > p:first-child { margin-bottom: 12px; color: #7a8b6d; font-size: 10px; }
.whatsapp-bubble { position: relative; padding: 14px 15px 20px; max-width: 100%; margin-left: 8px; color: #3d5034; background: #e0f6c9; border-radius: 0 11px 11px 11px; box-shadow: 0 1px 2px rgb(30 56 18 / 7%); font-size: 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.whatsapp-bubble::before { content: ''; position: absolute; left: -7px; top: 0; border-top: 8px solid #e0f6c9; border-left: 8px solid transparent; }
.whatsapp-bubble small { display: block; color: #8d9d7e; text-align: right; margin-top: 5px; font-size: 9px; }
.review-list { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.review-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 16px; background: #fff; border-bottom: 1px solid #edf0e8; font-size: 13px; }
.review-row:last-child { border-bottom: none; }
.review-row > span:first-child { color: var(--muted); flex-shrink: 0; }
.review-row > strong, .review-row > span:last-child { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.success-screen { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 20px 4px; }
.success-screen h2 { font-size: 25px; }
.success-screen p { color: var(--muted); font-size: 14px; max-width: 370px; line-height: 1.8; }
.success-screen .review-list, .success-screen .booking-summary { width: 100%; text-align: left; }
.success-screen .btn { width: 100%; }
.success-icon { display: flex; align-items: center; justify-content: center; width: 68px; height: 68px; border-radius: 50%; background: #e9f4dd; color: var(--brand); margin-bottom: 3px; box-shadow: 0 0 0 8px #f5f8ef; }
.success-icon svg { width: 32px; height: 32px; }
.task-dialog { position: fixed; inset: 0; margin: 0; width: 100%; min-width: 0; max-width: 100%; height: 100dvh; min-height: 0; max-height: 100dvh; border: 0; border-radius: 0; padding: 0; background: #fff; color: var(--text); overflow: hidden; }
.task-dialog[open] { display: flex; flex-direction: column; }
.task-dialog::backdrop { background: rgb(5 30 22 / 50%); backdrop-filter: blur(4px); }
.task-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 18px; border-bottom: 1px solid #e8ede3; flex-shrink: 0; }
.task-header > div { min-width: 0; }
.task-header h2 { font-size: 21px; }
.task-header p { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 6px; }
.task-header .icon-button { flex-shrink: 0; width: var(--mobile-action-height, 40px); flex-basis: var(--mobile-action-height, 40px); border: 0; background: #f3f6ee; }
.task-body { flex: 1 1 auto; overflow: auto; overscroll-behavior: contain; min-width: 0; min-height: 0; padding: 22px 18px; scrollbar-width: thin; scrollbar-color: #c7d5bd transparent; }
.task-body > .form-section + .form-section { margin-top: 24px; }
.task-body h3 { margin-bottom: 7px; font-size: 19px; }
.task-body > p { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.task-body .progress-steps { margin-bottom: 28px; }
.task-body .slots-grid { margin-top: 14px; }
.task-footer { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; min-width: 0; max-width: 100%; flex-shrink: 0; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid #e7ece1; background: white; box-shadow: 0 -4px 20px rgb(7 61 50 / 3%); }
.task-footer .btn { flex: 1; }
.task-footer .wizard-actions { width: 100%; }
.task-progress { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.task-progress progress { width: 100%; height: 5px; border: 0; border-radius: 4px; background: #edf2e8; accent-color: var(--brand); }
.task-step-label { color: var(--brand); font-size: 11px; font-weight: 600; white-space: nowrap; }

/* Automations keep rules, editable text and delivery information together. */
.automation-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.automation-card { padding: 20px; background: white; border: 1px solid var(--border); border-radius: 16px; min-width: 0; }
.automation-card > .between { align-items: flex-start; }
.automation-card h2 { font-size: 20px; }
.automation-card h3 { font-size: 17px; }
.automation-card > p { font-size: 13px; color: var(--muted); line-height: 1.75; margin-top: 12px; }
.automation-card > .btn { margin-top: 20px; }
.rule-summary { display: flex; align-items: flex-start; gap: 10px; padding: 13px; margin-top: 18px; border-radius: 10px; background: #f2f7ec; font-size: 12px; color: #577248; }
.rule-summary svg { width: 18px; height: 18px; margin-top: 1px; }
.rule-summary strong { display: block; color: #45653b; font-size: 12px; }
.rule-summary p { font-size: 11px; margin-top: 3px; color: #829474; }
.message-sample { padding: 17px; margin-top: 15px; border: 1px solid #e3e8da; border-radius: 11px; background: #fafbf7; color: #77876a; font-size: 12px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-sample strong { color: #536d44; }
.activity-list { display: flex; flex-direction: column; }
.activity-item { display: flex; align-items: flex-start; gap: 11px; padding: 15px 0; border-bottom: 1px solid #edf0e8; }
.activity-item:last-child { border-bottom: 0; }
.activity-item > svg { width: 18px; height: 18px; color: #83a36a; margin-top: 2px; }
.activity-item > div { flex: 1; min-width: 0; }
.activity-item strong { display: block; font-size: 12px; }
.activity-item p, .activity-item small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.activity-item .badge { font-size: 9px; }
.tabs { display: flex; border-bottom: 1px solid var(--border); gap: 16px; }
.tabs > button { position: relative; min-height: 46px; padding: 12px 2px; background: transparent; color: #8a967e; border: 0; font-size: 12px; font-weight: 550; }
.tabs > button.active { color: var(--brand); font-weight: 650; }
.tabs > button.active::after { content: ''; position: absolute; bottom: -1px; height: 2px; left: 0; right: 0; background: var(--brand); border-radius: 2px; }
.help-card { display: flex; align-items: flex-start; gap: 11px; padding: 17px; background: #f0f5e8; border: 1px solid #dce8cd; border-radius: 12px; color: #718666; }
.help-card > svg { flex-shrink: 0; width: 19px; height: 19px; margin-top: 1px; color: #789e5c; }
.help-card strong, .help-card h3 { display: block; font-size: 13px; color: #4f7041; }
.help-card p { margin-top: 6px; color: #7c8e70; font-size: 12px; line-height: 1.75; }
.connection-card { padding: 20px; background: white; border: 1px solid var(--border); border-radius: 16px; min-width: 0; }
.connection-card > .row { align-items: flex-start; }
.connection-card > .row > svg { color: #539a62; width: 23px; height: 23px; margin-top: 1px; }
.connection-card h3 { font-size: 16px; }
.connection-card p { font-size: 12px; color: var(--muted); margin-top: 7px; line-height: 1.8; }
.connection-card .btn { margin-top: 15px; }
.connection-card .badge { margin-top: 12px; }
.qr-code { display: block; width: 204px; max-width: 100%; height: auto; margin: 20px auto; padding: 12px; border: 1px solid var(--border); border-radius: 11px; background: white; }
.whatsapp-dialog .task-body { display: flex; flex-direction: column; }
.whatsapp-dialog .whatsapp-connect-content { display: flex; flex: 0 0 auto; flex-direction: column; gap: var(--space-4); width: 100%; min-width: 0; margin-block: auto; }
.whatsapp-dialog .connection-instructions { color: var(--muted); font-size: 14px; line-height: 1.65; text-align: center; }
.whatsapp-dialog .connection-instructions strong { color: var(--text); }
.whatsapp-dialog .connection-qr-panel { display: grid; place-items: center; min-width: 0; }
.whatsapp-dialog .qr-code { width: min(240px, 100%); max-width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; margin: 0; }
.whatsapp-dialog .connection-feedback { text-align: center; }
.whatsapp-dialog .empty-state { padding: var(--space-5) var(--space-2); }
.whatsapp-dialog .success-screen { padding: var(--space-4) 0; }
.whatsapp-dialog .help-card { display: block; padding: var(--space-4); }
.whatsapp-dialog .help-card > .module-icon { margin-bottom: var(--space-3); }
.whatsapp-dialog .help-card ol { padding-left: 20px; margin-block: var(--space-4); font-size: 13px; line-height: 1.7; }
.whatsapp-dialog .help-card li + li { margin-top: var(--space-2); }
.whatsapp-dialog .task-footer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.whatsapp-dialog .task-footer > .btn { width: 100%; min-width: 0; min-height: var(--mobile-action-height, 48px); padding-inline: var(--mobile-action-padding-x, var(--space-2)); }
.whatsapp-dialog .task-footer > .btn:only-child { grid-column: 1 / -1; }
.whatsapp-dialog .task-footer > .btn[aria-disabled="true"] { opacity: .55; cursor: wait; }
@media (min-width: 768px) {
  .task-dialog.whatsapp-dialog { width: min(480px, calc(100% - 64px)); height: fit-content; max-height: calc(100dvh - 64px); }
  .whatsapp-dialog .task-header { padding: var(--space-5); }
  .whatsapp-dialog .task-header h2 { font-size: 22px; }
  .whatsapp-dialog .task-body { flex: 0 1 auto; padding: var(--space-5); }
  .whatsapp-dialog .task-footer { padding: var(--space-4) var(--space-5); }
}
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }

/* Shared flow and application details. */
.app-logo { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-size: 21px; font-weight: 750; letter-spacing: -.05em; }
.logo-text { display: inline-flex; flex-direction: column; gap: 2px; line-height: 1.05; }
.logo-text > .brand-tagline { display: block; margin: 0; color: var(--muted); font-size: 9px; line-height: 1; font-weight: 550; letter-spacing: .055em; text-transform: uppercase; white-space: nowrap; }
.mobile-brand .brand-tagline, .sidebar-brand .brand-tagline { color: #92b4a0; }
.mobile-brand { display: flex; align-items: center; gap: 8px; }
.mobile-brand .brand-mark { width: 31px; height: 33px; flex-basis: 31px; border-radius: 9px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.page-heading > div { min-width: 0; max-width: 100%; }
.page-heading h1 { font-size: 26px; }
.page-heading > .btn { width: 100%; }
.page-subtitle { color: var(--muted); font-size: 13px; line-height: 1.75; margin-top: 7px; }
.text-button { display: inline-flex; justify-content: center; align-items: center; gap: 6px; border: none; background: transparent; color: var(--brand); min-height: 44px; padding: 7px 0; font-size: 12px; font-weight: 600; }
.text-button:hover { color: var(--brand-hover); text-decoration: underline; text-underline-offset: 3px; }
.divider { height: 1px; width: 100%; border: none; background: var(--border); margin-block: 20px; }
.icon-circle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 11px; color: var(--brand); background: #edf5e7; }
.service-meta { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; flex-wrap: wrap; margin-top: 4px; }
.service-meta svg { width: 12px; height: 12px; }
.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.booking-layout > * { min-width: 0; }
.public-week-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.public-week-header h2 { font-size: 18px; }
.public-week-header .period-nav { margin: 0; }
.calendar-day-events { display: flex; flex-direction: column; gap: 3px; min-width: 0; width: 100%; }
.appointment-name { font-size: 14px; font-weight: 650; line-height: 1.45; }
.appointment-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11px; line-height: 1.5; color: var(--muted); margin-top: 4px; }
.appointment-meta svg { width: 12px; height: 12px; }
.appointment-status { display: flex; align-items: center; margin-top: 7px; }
.list-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.rule-message { color: #6c805e; font-size: 12px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-type { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: #6e8a5b; }
.notification-dot { display: inline-block; width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #8db95a; }
.desktop-only { display: none !important; }
.today-tag { display: inline-flex; align-items: center; justify-content: center; padding: 3px 7px; border-radius: 5px; color: var(--brand); background: #e2efcf; font-size: 9px; font-weight: 650; }
.landing-container { width: 100%; max-width: 1160px; padding-inline: 20px; margin-inline: auto; }
.landing-container > .section-title { justify-content: center; text-align: center; margin-bottom: 28px; }
.landing-container > .section-title h2 { font-size: 28px; }
.landing-container > .section-title p { max-width: 460px; margin-inline: auto; font-size: 13px; }
.landing-container .feature-grid { padding-inline: 0; }
.hero-week-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-top: 16px; }
.hero-week-head { padding: 8px 1px; border-radius: 6px; background: #f1f5eb; color: #91a080; font-size: 7px; text-align: center; line-height: 1.5; }
.hero-week-head strong { display: block; font-size: 13px; color: #5f7650; margin-top: 3px; }
.hero-week-head.active { background: var(--brand); color: #c1dbb6; }
.hero-week-head.active strong { color: white; }
.hero-time { display: flex; align-items: flex-start; justify-content: center; padding: 12px 0; font-size: 7px; color: #9da890; }
.hero-appointment { display: flex; flex-direction: column; justify-content: center; gap: 3px; min-height: 54px; min-width: 0; background: #e8f4d9; border-left: 2px solid #91b56f; border-radius: 5px; padding: 6px 4px; color: #5e7d45; font-size: 7px; line-height: 1.5; overflow: hidden; }
.hero-appointment strong { font-size: 8px; font-weight: 600; }
.hero-appointment.purple { background: #f2ecf7; border-color: #baa1d1; color: #8a71a4; }
.hero-appointment.amber { background: #fff6df; border-color: #d7be75; color: #a28a45; }
.hero-mini-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 13px; margin-top: 14px; border-top: 1px solid #e9eee1; color: #94a386; font-size: 8px; }
.hero-mini-footer span { display: inline-flex; align-items: center; gap: 4px; }
.hero-mini-footer svg { width: 11px; height: 11px; }
.eyebrow-dot { display: inline-block; height: 6px; width: 6px; flex: 0 0 6px; background: #7fa94a; border-radius: 50%; }
.flow-heading { margin-bottom: 8px; font-size: 21px; color: var(--brand-dark); }
.flow-heading h2 { color: var(--brand-dark); font-size: 23px; line-height: 1.25; }
.flow-heading > p { margin-top: 9px; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.75; letter-spacing: 0; }
.flow-intro { color: var(--muted); font-size: 13px; line-height: 1.75; margin-bottom: 22px; }
.inline-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 12px; }
.service-editor { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid #e0e7d8; border-radius: 11px; background: #fafbf7; position: relative; }
.service-editor > .field:first-child { padding-right: 34px; }
.service-editor + .service-editor { margin-top: 12px; }
.remove-service { position: absolute; right: 10px; top: 10px; display: inline-flex; align-items: center; justify-content: center; width: var(--mobile-action-height, 40px); height: var(--mobile-action-height, 44px); border: none; background: transparent; border-radius: 8px; color: #a48f85; }
.remove-service:hover { background: #f8eae5; color: var(--danger); }
.review-label { color: var(--muted); font-size: 12px; }
.review-value { color: var(--text); font-size: 13px; font-weight: 600; }
.slot-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin-top: 12px; }
.consent-note, .flow-inline-note { display: flex; align-items: flex-start; gap: 9px; padding: 13px 14px; border: 1px solid #deE8d4; border-radius: 10px; background: #f2f7eb; color: #6e8360; font-size: 12px; line-height: 1.7; }
.consent-note svg, .flow-inline-note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }

.initial-loading { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px; padding: 64px 20px; color: var(--muted); font-size: 13px; }
.skip-link { position: fixed; z-index: 120; top: 10px; left: 10px; transform: translateY(-150%); background: var(--brand-dark); color: white; padding: 12px 18px; border-radius: 8px; font-size: 13px; }
.skip-link:focus { transform: translateY(0); }
.hero-preview-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--brand); }
.hero-preview-top > .row { gap: 7px; }
.hero-preview-top > .row > strong { font-size: 13px; }
.hero-preview-top > .row svg { width: 20px; height: 20px; }
.hero-week-head b { display: block; color: #61794e; font-size: 13px; font-weight: 650; margin-top: 3px; }
.hero-week-head.current { background: var(--brand); color: #c1dbb6; }
.hero-week-head.current b { color: white; }
.hero-day { display: flex; flex-direction: column; gap: 8px; padding: 8px 0; min-height: 177px; min-width: 0; background: #fafcf6; border-radius: 5px; }
.hero-day.current { background: #f1f7e7; }
.hero-appointment b { font-size: 8px; font-weight: 600; }
.hero-appointment span { overflow-wrap: anywhere; }
.hero-appointment small { color: #789564; font-size: 6px; line-height: 1.5; }
.hero-appointment.light { background: #f0f3eb; border-color: #c5d3b5; color: #889779; }
.hero-appointment.light small { color: #a0ac93; }
.hero-mini-footer { justify-content: flex-start; }
.hero-reassurance { display: flex; align-items: flex-start; gap: 7px; color: #7c8c6b; font-size: 10px; line-height: 1.7; }
.hero-reassurance svg { margin-top: 1px; color: #7c9f5d; }
.illustration-caption { position: absolute; bottom: -23px; left: 0; right: 0; font-size: 8px; text-align: center; color: #a2ad95; }
.feature-card h2 { color: var(--brand-dark); font-size: 18px; margin-bottom: 11px; line-height: 1.35; }
.feature-card > a, .feature-caption { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: #6b8b51; font-size: 11px; font-weight: 550; }
.feature-card:nth-child(2) .module-icon { color: #a18b41; background: #fbf4da; }
.feature-card:nth-child(3) .module-icon { color: #8f78a8; background: #f2ecf8; }
.how-it-works > div:first-child > .eyebrow { margin-bottom: 12px; }
.how-it-works > div:first-child > h2 { color: var(--brand-dark); font-size: 27px; letter-spacing: -.045em; }
.how-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 15px; margin-top: 27px; }
.landing-cta .eyebrow { color: #90b373; font-size: 9px; margin-bottom: 14px; }
.landing-footer > span { font-size: 10px; color: #98a28b; }
.sidebar-caption { color: #6f9c81; margin: 0 15px 14px; font-size: 9px; font-weight: 550; letter-spacing: .12em; }
.sidebar-establishment { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #95b39e; font-size: 10px; font-weight: 450; letter-spacing: 0; }
.sidebar-help { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; border: 1px solid #2a5946; background: #124a38; border-radius: 12px; padding: 18px; margin: auto 7px 24px; }
.sidebar-help .module-icon { width: 33px; height: 33px; color: #bdd796; background: #265d42; border-radius: 10px; }
.sidebar-help strong { color: #bdd6b4; font-size: 14px; line-height: 1.5; letter-spacing: -.015em; font-weight: 550; }
.sidebar-help p { color: #76a080; font-size: 10px; line-height: 1.8; }
.nav-active-dot { display: inline-block; width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: var(--brand); margin-left: auto; }
.topbar-business { display: block; color: #bdd2be; font-size: 10px; margin-top: 6px; }
.mobile-brand { color: white; font-size: 17px; font-weight: 650; letter-spacing: -.045em; }
.topbar .avatar { border: 1px solid rgb(255 255 255 / 10%); background: #346952; color: #e2efcc; }
.topbar-actions .demo-badge { color: #d4e5c6; background: #245b46; border: 1px solid #3d7056; font-size: 8px; padding-inline: 7px; }
.top-settings { width: 38px; flex-basis: 38px; height: 40px; }
.link-card-content h2 { font-size: 14px; margin-bottom: 2px; }
.link-card-content > .muted { font-size: 11px; }
.link-card-content { min-width: 0; flex: 1; }
.link-card-actions { display: flex; align-items: center; flex-wrap: nowrap; gap: 7px; flex: 1 0 100% !important; }
.link-card-actions .btn { flex: 1; }
.link-card .module-icon { width: 38px; height: 38px; background: #e0edcf; color: #52794a; border-radius: 10px; }
.link-card.card { flex-wrap: wrap; background: #edf5e4; border-color: #dbe7ce; }
.link-card .link-card-content { display: block; }
.link-card-actions .btn { margin: 0; }
.module-card h2 { font-size: 19px; margin-top: 2px; }
.module-card > .rule-summary { margin-top: 0; padding: 9px 10px; font-size: 10px; min-height: 33px; border-radius: 7px; }
.module-card > .btn { margin-top: auto; }
.module-card .module-actions { margin-top: auto; }
.appointment-card { width: 100%; border-top: none; border-right: none; border-left: none; border-radius: 0; background: transparent; text-align: left; padding-inline: 0; transition: background .15s; }
.appointment-card:hover { background: #f7faf2; }
.appointment-card:focus-visible { outline-offset: -1px; border-radius: 7px; }
.appointment-card > svg { width: 15px; height: 15px; color: #a9b59c; margin-top: 4px; }
.appointment-card.canceled { opacity: .6; }
.appointment-status { margin-top: 0; flex-shrink: 0; }
.appointment-status .badge { font-size: 9px; }
.status-strip { text-align: left; width: 100%; flex-wrap: nowrap; background: white; border-color: var(--border); padding: 15px; gap: 11px; }
.status-strip > span:nth-child(2) { flex: 1; min-width: 0; }
.status-strip > span > strong { display: block; color: #4c6d3c; font-size: 12px; }
.status-strip small { display: block; font-size: 10px; color: #8b9c7d; margin-top: 3px; }
.status-strip > svg { color: #92a780; flex-shrink: 0; width: 17px; }
.status-strip:hover { border-color: #b6cda2; background: #fbfdf7; }
.status-strip .icon-circle { width: 35px; height: 35px; flex-basis: 35px; color: #648f50; background: #edf5e5; }
.demo-note { color: #a0aa95; font-size: 10px; line-height: 1.7; }
.day-agenda { padding: 18px; }
.day-agenda .week-strip { margin-bottom: 15px; }
.week-empty { color: #98a68b; font-size: 11px; padding: 15px 18px; }
.day-pill i { display: block; width: 4px; height: 4px; border-radius: 50%; background: #84ac57; }
.day-pill.active i { background: #d2f18e; }
.calendar-hint { display: flex; align-items: flex-start; gap: 6px; margin-top: 18px; color: #9aa88b; font-size: 10px; }
.icon-button.active { background: #edf5e5; color: var(--brand); border-color: #b5cca0; }
.message-editor-preview { margin-top: 20px; padding: 16px; background: #fafbf7; border: 1px solid #e4eadd; border-radius: 11px; }
.message-editor-preview .eyebrow { font-size: 9px; margin-bottom: 12px; color: #8da477; }
.message-editor-preview .var-chip { min-height: 27px; padding-block: 5px; font-size: 9px; }
.message-preview.card { background: white; background-image: none; }
.message-preview.card > .section-title h2 { font-size: 17px; }
.message-preview.card > .section-title > svg { color: #6f9e59; }
.message-preview.card > .hint { margin-top: 12px; font-size: 10px; }
.whatsapp-preview-surface { background: #eef0e5; background-image: radial-gradient(#ccd5bf .7px, transparent .7px); background-size: 17px 17px; padding: 0 13px 22px; border-radius: 11px; overflow: hidden; }
.whatsapp-preview-header { display: flex; align-items: center; gap: 9px; margin: 0 -13px 21px; padding: 12px 13px; background: #e3e9d9; }
.whatsapp-preview-header .avatar { width: 30px; height: 30px; flex-basis: 30px; font-size: 11px; color: #8aa06d; background: #f0f4e7; }
.whatsapp-preview-header strong { display: block; font-size: 11px; color: #66804f; }
.whatsapp-preview-header small { display: block; font-size: 8px; color: #99a68a; margin-top: 2px; }
.bubble-time { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 8px; color: #9daf87; font-size: 9px; white-space: normal; }
.activity-section { padding: 20px; }
.settings-grid > .card h2 { font-size: 19px; margin: 18px 0 11px; }
.settings-grid > .card > p.muted { font-size: 12px; margin-bottom: 16px; }
.settings-grid > .card > .row:last-child { flex-wrap: wrap; }
.settings-grid > .card > .row:last-child .btn { flex: 1; }
.settings-services { margin: 15px 0 20px; }
.settings-services .review-row { padding-inline: 0; }
.settings-services .review-row strong { max-width: 58%; font-size: 12px; font-weight: 550; }
.settings-services .review-row > span { font-size: 11px; color: #8d9c7d; }
.settings-logout { margin-top: 28px; }
dl.review-list { margin: 20px 0 0; }
.review-row dt { color: var(--muted); font-size: 12px; }
.review-row dd { margin: 0; text-align: right; font-size: 12px; font-weight: 550; overflow-wrap: anywhere; }
.appointment-detail-date { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; }
.appointment-detail-date > div { min-width: 0; flex: 1; }
.appointment-detail-date strong { display: block; font-size: 13px; }
.appointment-detail-date > div > span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.task-body > .flow-inline-note { margin-top: 20px; }
.task-footer > .list-actions { width: 100%; }
.task-footer > p { width: 100%; color: var(--muted); font-size: 13px; }
.task-body > .help-card { display: block; padding: 20px; }
.task-body > .help-card > .module-icon { margin-bottom: 15px; }
.task-body > .help-card h3 { font-size: 18px; }
.task-body > .help-card ol { padding-left: 20px; font-size: 12px; line-height: 1.8; margin-block: 15px; }
.task-body > .help-card li + li { margin-top: 8px; }
.public-header { min-height: 74px; }
.public-header .brand { font-size: 18px; }
.owner-access { min-height: 44px; font-size: 10px; padding: 5px 0; color: #bcd0b9 !important; text-align: right; line-height: 1.5; }
.owner-access svg { width: 13px; height: 13px; }
.business-avatar { display: flex; align-items: center; justify-content: center; width: 53px; height: 56px; flex: 0 0 53px; border-radius: 16px; color: #61804a; background: #e5efda; border: 1px solid #d6e3c6; font-size: 23px; font-weight: 650; }
.business-header { flex-wrap: wrap; gap: 12px; }
.business-header > div { flex: 1; min-width: 0; }
.business-header .eyebrow { font-size: 8px; color: #8ba174; margin-top: 0; margin-bottom: 7px; }
.business-header h1 { font-size: 24px; }
.business-header > div > p:last-child { font-size: 11px; line-height: 1.7; margin-top: 7px; }
.business-header > .demo-badge { flex-basis: auto; margin-left: 65px; margin-top: -2px; font-size: 8px; color: #899a76; background: #edf2e6; }
.public-services > .section-title > div, .public-schedule > .section-title > div { display: flex; align-items: center; gap: 9px; }
.public-services > .section-title > .muted { font-size: 10px; margin-left: 33px; margin-top: -8px; }
.public-services .step-label, .public-schedule .step-label { margin: 0; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 25px; flex: 0 0 24px; border-radius: 8px; background: #e6f0d9; color: #6a8b4e; font-size: 10px; }
.service-option { gap: 10px; align-items: center; }
.service-option > span:nth-child(2) { flex: 1; min-width: 0; white-space: normal; font-size: inherit; }
.service-option strong { font-size: 12px; }
.service-option small { font-size: 10px; margin-top: 5px; }
.service-option small > span { color: #aeb9a3; margin-inline: 3px; }
.service-option-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; height: 36px; border-radius: 10px; color: #9bb185; background: #f3f7ed; }
.service-radio { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; flex: 0 0 17px; border: 1px solid #d6e1cd; border-radius: 50%; background: white; }
.service-option.selected .service-radio { background: var(--brand); border-color: var(--brand); color: white; }
.service-option.selected .service-option-icon { background: #e0efcd; color: #7d9e5f; }
.public-week-header { margin: 20px 0 14px; flex-wrap: nowrap; }
.public-week-header > strong { font-size: 12px; font-weight: 600; text-align: center; color: #6c8459; }
.public-week-header .icon-button { width: var(--mobile-action-height, 35px); flex-basis: var(--mobile-action-height, 35px); border-color: #e3eadd; }
.public-week-strip .day-pill { min-height: 76px; }
.public-week-strip .day-pill.unavailable { background: #f7f8f3; color: #b0baa4; }
.public-week-strip .day-pill.unavailable strong { color: #aebba0; }
.public-week-strip .day-pill.unavailable.active { background: #71876a; color: #e9eee3; }
.public-week-strip .day-pill.unavailable.active strong { color: white; }
.public-week-strip .day-pill small { font-size: 7px; }
.public-selected-day { margin-top: 22px; }
.selected-day-label { font-size: 11px; color: #80946a; text-transform: capitalize; }
.slot-hint { display: flex; align-items: center; gap: 6px; color: #99a58c; font-size: 9px; margin-top: 15px; }
.slot-hint svg { width: 12px; height: 12px; }
.public-slots-week { display: none; }
.slot.unavailable { background: #f3f5ee; color: #bfC8b5; border-color: #e7ecdf; cursor: not-allowed; }
.public-reassurance { display: flex; justify-content: center; align-items: flex-start; gap: 8px; padding: 8px 4px; text-align: center; }
.public-reassurance > svg { margin-top: 2px; color: #a0b38e; width: 16px; height: 16px; }
.public-reassurance p { color: #93a383; font-size: 10px; line-height: 1.8; }
.public-reassurance p span { font-size: 9px; color: #a6b29a; }
.public-footer > span { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; }
.public-footer { flex-direction: column; gap: 9px; }
.public-footer > a { font-size: 9px; color: #9ba98d; }
.hours-row { display: block; padding: 14px; }
.hours-row > .switch-row { margin-bottom: 14px; border: 0; background: transparent; padding: 0; box-shadow: none; border-radius: 0; }
.hours-row > .switch-row > strong { font-size: 12px; }
.hours-row > .form-grid, .hours-row > details > .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hours-row > details { margin-top: 12px; }
.hours-row > details > summary { cursor: pointer; min-height: 44px; font-size: 11px; padding: 10px 0; }
.hours-row > details > .form-grid { margin-top: 6px; }
.hours-row > .muted { color: #9aa890; font-size: 11px; }
.task-body > .step-dots { justify-content: flex-start; margin: -7px 0 25px; }
.task-progress > .muted { font-size: 10px; }
.template-vars > button { min-height: 44px; }
.checkbox-field > span > small { display: block; margin-top: 4px; }
.switch-row > span > small { display: block; margin-top: 4px; }
.service-editor > .row > strong { font-size: 12px; color: #769361; }
.auth-aside > .card > p { margin-top: 12px; font-size: 12px; line-height: 1.8; }
.auth-aside > .card > .row { color: #6d8c58; font-size: 13px; }
.auth-card form .row.between > .muted, .auth-card form .row.between > a { font-size: 11px; }
.section-label { font-size: 12px; font-weight: 550; color: var(--muted); margin-top: 20px; }

@media (min-width: 480px) {
  .page-content { padding-inline: 24px; }
  .slots-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .public-content { padding-inline: 24px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-preview { padding: 24px 21px 15px; }
  .floating-note { right: 1px; bottom: 2px; padding: 14px 17px; }
  .stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .appointment-actions { max-width: none; }
}

@media (min-width: 768px) {
  .card { padding: 24px; }
  .page-content { padding: 32px 32px calc(104px + env(safe-area-inset-bottom)); }
  .topbar { padding: 17px 32px; }
  .topbar-title h1 { font-size: 22px; }
  .topbar-title p { font-size: 12px; }
  .page-heading { align-items: center; }
  .page-heading > .btn { width: auto; }
  .page-heading h1 { font-size: 29px; }
  .landing-container { padding-inline: 36px; }
  .hero-week-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .hero-week-head { font-size: 8px; }
  .hero-appointment { font-size: 7px; padding: 7px 5px; }
  .how-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 36px; }
  .how-it-works > div:first-child > h2 { font-size: 31px; }
  .hero-preview-top > .row > strong { font-size: 14px; }
  .hero-reassurance { font-size: 10px; }
  .feature-card h2 { font-size: 18px; }
  .landing-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; text-align: left; }
  .landing-cta p { margin: 12px 0 0; }
  .landing-cta .btn { flex-shrink: 0; }
  .landing-cta h2 { font-size: 29px; }
  .link-card-actions { flex: 0 0 auto !important; }
  .link-card-actions .btn { flex: 0 0 auto; }
  .link-card-content h2 { font-size: 15px; }
  .appointment-status .badge { font-size: 10px; }
  .status-strip { padding: 16px 20px; }
  .status-strip > span > strong { font-size: 13px; }
  .status-strip small { font-size: 11px; }
  .day-agenda { padding: 24px; }
  .business-avatar { width: 64px; height: 66px; flex-basis: 64px; font-size: 27px; }
  .business-header h1 { font-size: 30px; }
  .business-header .eyebrow { font-size: 9px; }
  .business-header > div > p:last-child { font-size: 12px; }
  .business-header > .demo-badge { margin-left: 0; }
  .public-services > .section-title > .muted { margin: 0; font-size: 11px; }
  .public-services > .section-title > div, .public-schedule > .section-title > div { gap: 11px; }
  .service-option { min-height: 93px; padding: 17px 14px; }
  .service-option strong { font-size: 12px; }
  .service-option-icon { flex-basis: 31px; width: 31px; }
  .public-week-header > strong { font-size: 14px; }
  .public-reassurance p { font-size: 11px; }
  .public-reassurance p span { font-size: 10px; }
  .public-footer { flex-direction: row; gap: 20px; }
  .welcome { position: relative; padding-right: 190px; }
  .welcome h1 { font-size: 31px; }
  .welcome .btn { position: absolute; right: 0; top: 4px; margin-top: 0; }
  .link-card { align-items: center; padding: 18px 20px; }
  .link-card > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
  .link-card > div > .row { margin-top: 0; flex-shrink: 0; }
  .module-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .module-card { padding: 22px; gap: 15px; }
  .module-card h3 { font-size: 17px; }
  .module-actions .btn { padding-inline: var(--mobile-action-padding-x, 8px); font-size: 12px; }
  .agenda-preview { padding: 24px; }
  .appointment-card { align-items: center; gap: 16px; padding-block: 18px; }
  .appointment-time { width: 58px; flex-basis: 58px; font-size: 16px; }
  .appointment-content .badge { display: inline-flex; margin-top: 6px; }
  .appointment-content h3, .appointment-content strong { font-size: 15px; }
  .appointment-content p { font-size: 12px; }
  .appointment-actions .btn { font-size: 12px; }
  .agenda-toolbar { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .agenda-toolbar > .btn { width: auto; }
  .agenda-toolbar .view-switch { order: initial; }
  .agenda-toolbar h1 { font-size: 29px; }
  .day-pill { min-height: 76px; font-size: 11px; }
  .day-pill strong { font-size: 21px; }
  .month-grid { gap: 5px; }
  .month-weekday { padding-block: 10px; font-size: 10px; }
  .month-day { min-height: 88px; padding: 8px; gap: 6px; align-items: flex-start; }
  .month-day-num { font-size: 12px; }
  .month-count { font-size: 9px; align-self: flex-start; }
  .month-event { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #5b7749; background: #e7f1dc; border-radius: 4px; padding: 3px 5px; font-size: 8px; }
  .month-day.selected .month-event { color: #e9f6df; background: #2e7860; }
  .calendar-panel { padding: 24px; }
  .day-group-title { padding-inline: 20px; }
  .day-group > .appointment-card { margin-inline: 20px; }
  .public-header { padding-inline: max(32px, calc((100vw - 932px) / 2)); }
  .public-content { padding: 0 32px 40px; }
  .business-header { padding: 36px 0 27px; }
  .business-header h1 { font-size: 30px; }
  .business-header .avatar { height: 66px; width: 66px; flex-basis: 66px; font-size: 23px; }
  .public-schedule { padding: 24px; }
  .public-schedule .week-strip { gap: 10px; }
  .public-schedule .day-pill { min-height: 78px; font-size: 11px; }
  .public-schedule .day-pill strong { font-size: 23px; }
  .slots-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-option { align-items: flex-start; min-height: 92px; }
  .public-content .section-title h2 { font-size: 21px; }
  .public-content .booking-summary { padding: 22px; }
  .landing-header { padding: 22px 36px; min-height: 90px; }
  .brand { font-size: 23px; }
  .brand .brand-mark { width: 36px; height: 38px; flex-basis: 36px; }
  .landing-nav { gap: 20px; }
  .landing-nav > a:not(.btn) { display: inline-block; color: #77856a; font-size: 12px; }
  .landing-nav .btn { padding-inline: var(--mobile-action-padding-x, 16px); font-size: 12px; }
  .hero { padding: 64px 36px 72px; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; }
  .hero-title { font-size: clamp(41px, 4.7vw, 58px); }
  .hero-copy { gap: 21px; }
  .hero-copy > .eyebrow { font-size: 9px; padding: 8px 11px; }
  .hero-subtitle { font-size: 14px; }
  .hero-actions { gap: 7px; }
  .hero-actions .btn { font-size: 11px; padding-inline: var(--mobile-action-padding-x, 13px); }
  .hero-actions .btn.primary { padding-inline: var(--mobile-action-padding-x, 15px); }
  .hero-visual { padding-bottom: 40px; }
  .hero-preview { padding: 22px 18px 12px; }
  .floating-note { right: -10px; bottom: 10px; padding: 13px 15px; }
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 20px 36px 88px; }
  .feature-card { padding: 26px 22px; }
  .feature-card h3 { font-size: 17px; }
  .feature-card p { font-size: 12px; }
  .how-it-works { padding: 0 36px 80px; }
  .how-it-works > h2 { font-size: 32px; }
  .how-it-works > .row, .how-it-works > .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 40px; }
  .how-step { padding: 0; }
  .landing-cta { margin: 0 36px 64px; padding: 48px 32px; }
  .landing-cta h2 { font-size: 34px; }
  .landing-footer { margin-inline: 36px; padding-inline: 0; padding-block: 28px; }
  .auth-header { padding: 24px 36px; }
  .auth-layout { max-width: 640px; padding: 28px 32px 64px; }
  .auth-card { padding: 36px; border-radius: 20px; }
  .auth-card h1 { font-size: 29px; }
  .auth-card > p { font-size: 14px; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .form-grid > .full { grid-column: 1 / -1; }
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hours-row { grid-template-columns: 100px minmax(0, 1fr) minmax(0, 1fr); }
  .hours-row > label, .hours-row > strong, .hours-row > .row { grid-column: auto; }
  .progress-step { font-size: 10px; gap: 8px; }
  .step-number { width: 32px; height: 32px; font-size: 12px; }
  .progress-step:not(:last-child)::after { top: 16px; }
  .task-dialog { inset: 0; margin: auto; width: min(680px, calc(100vw - 64px)); max-height: min(880px, calc(100dvh - 64px)); height: auto; border: 1px solid #d9e3d1; border-radius: 20px; box-shadow: 0 24px 100px rgb(6 38 25 / 22%); }
  .task-header { padding: 25px 28px 21px; }
  .task-header h2 { font-size: 23px; }
  .task-header p { font-size: 13px; }
  .task-body { padding: 26px 28px; }
  .task-body .slots-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .task-footer { padding: 18px 28px; }
  .task-footer .btn { flex: 0 1 auto; min-width: 134px; }
  .task-footer .wizard-actions .btn { flex: 0 1 auto; }
  .wizard-actions .btn:first-child { flex: 0 1 auto; }
  .wizard-actions .btn:last-child { flex: 0 1 auto; min-width: 150px; }
  .success-screen { padding: 24px 12px; }
  .success-screen .btn { max-width: 280px; }
  .review-row { padding: 16px 18px; }
  .automation-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .automation-card, .connection-card { padding: 24px; }
  .settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .message-preview { padding: 24px; }
  .toast-container, #toast-container { left: auto; right: 24px; bottom: 95px; max-width: 420px; }
}

@media (min-width: 1000px) {
  .desktop-only { display: initial !important; }
  .mobile-only { display: none !important; }
  .app-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); }
  .sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100dvh; max-height: 100dvh; padding: 29px 17px 20px; background: var(--brand-dark); color: #d0ded0; }
  .sidebar-brand { display: grid; grid-template-columns: 33px minmax(0, 1fr); align-items: center; gap: 10px 9px; padding: 2px 11px 28px; color: white; font-size: 20px; font-weight: 750; letter-spacing: -.06em; }
  .sidebar-brand .logo-text { white-space: nowrap; }
  .sidebar-establishment { grid-column: 1 / -1; margin-top: 5px; padding-top: 13px; border-top: 1px solid #235545; font-size: 10px; }
  .sidebar-help { margin-top: auto; }
  .sidebar-footer { margin-top: 0; }
  .sidebar-brand .brand-mark { width: 33px; height: 35px; flex-basis: 33px; color: var(--brand-dark); background: var(--accent); border-radius: 9px; }
  .sidebar-brand small { display: block; font-size: 8px; text-transform: uppercase; color: #92b4a0; letter-spacing: .09em; font-weight: 450; margin-top: 5px; }
  .sidebar > .eyebrow { color: #6e9780; font-size: 9px; margin: 0 14px 12px; }
  .side-nav { display: flex; flex-direction: column; gap: 6px; }
  .nav-item { display: flex; align-items: center; gap: 11px; min-height: 47px; border: 0; border-radius: 9px; padding: 12px 15px; color: #a5c1ae; background: transparent; font-size: 12px; font-weight: 500; text-align: left; width: 100%; }
  .nav-item svg { width: 18px; height: 18px; }
  .nav-item:hover { background: rgb(255 255 255 / 6%); color: white; }
  .nav-item.active { background: var(--accent); color: var(--brand-dark); font-weight: 650; box-shadow: 0 3px 12px rgb(0 0 0 / 4%); }
  .sidebar-footer { margin-top: auto; padding-top: 20px; border-top: 1px solid #235545; }
  .sidebar-footer > .row { padding: 12px 10px; }
  .sidebar-footer .avatar { color: var(--accent); background: #1f5b45; width: 34px; height: 34px; flex-basis: 34px; font-size: 11px; }
  .sidebar-footer strong { display: block; color: #d5e2d3; font-size: 11px; line-height: 1.5; }
  .sidebar-footer small { display: block; color: #6f9c7d; font-size: 9px; margin-top: 2px; }
  .sidebar-footer .nav-item { min-height: 42px; color: #91b09a; font-size: 11px; }
  .topbar { min-height: 88px; padding: 21px 36px; background: white; color: var(--text); border-bottom: 1px solid #e3e8dc; }
  .topbar-title h1 { font-size: 20px; }
  .topbar-title p { color: #8a9781; font-size: 11px; }
  .topbar .muted { color: var(--muted); }
  .topbar .eyebrow { color: #839776; font-size: 9px; }
  .topbar .icon-button { color: #8c9c80; background: white; border-color: #e1e8d9; }
  .topbar .btn.secondary { background: white; color: var(--brand); border-color: var(--border); }
  .topbar .avatar { width: 36px; height: 36px; flex-basis: 36px; background: #eef4e6; }
  .topbar .avatar { color: #6f8c54; border-color: #e2ebd6; }
  .topbar .mobile-brand { display: none; }
  .topbar-business { color: #75876a; font-size: 13px; margin-top: 6px; font-weight: 550; }
  .topbar-actions .demo-badge { color: #94a580; background: #f0f5e9; border-color: #e1e9d5; font-size: 9px; }
  .public-slots-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
  .public-week-strip, .public-selected-day { display: none; }
  .public-week-column { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-width: 0; padding-top: 1px; }
  .public-week-column-label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 64px; border-radius: 9px; background: #f2f6eb; color: #95a785; font-size: 10px; text-transform: capitalize; margin-bottom: 6px; }
  .public-week-column-label strong { color: #6a8554; font-size: 21px; font-weight: 600; }
  .public-week-column .slot { min-height: 43px; padding: 9px 5px; font-size: 12px; }
  .no-slots { display: flex; align-items: center; justify-content: center; min-height: 43px; border-radius: 8px; color: #b9c4ad; background: #f8faf5; font-size: 9px; }
  .booking-layout { grid-template-columns: minmax(0, 1fr) 275px; gap: 24px; }
  .booking-layout > .booking-summary { position: sticky; top: 24px; }
  .page-content { padding: 36px 36px 48px; }
  .page-content > * + * { margin-top: 28px; }
  .bottom-nav { display: none; }
  .welcome h1 { font-size: 29px; }
  .welcome p { font-size: 13px; }
  .module-card { padding: 22px; }
  .module-icon { width: 43px; height: 43px; }
  .module-actions { gap: 6px; }
  .module-actions .btn { font-size: 11px; }
  .stat-card { padding: 18px 20px; }
  .stat-card > strong, .stat-card > h2 { font-size: 29px; }
  .agenda-layout { grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 20px; }
  .agenda-layout:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
  .agenda-detail { position: sticky; top: 24px; padding: 20px; }
  .agenda-detail .appointment-actions { max-width: 48px; }
  .agenda-detail .appointment-card { gap: 10px; align-items: flex-start; }
  .agenda-detail .appointment-time { width: 43px; flex-basis: 43px; font-size: 13px; }
  .agenda-detail .appointment-content h3, .agenda-detail .appointment-content strong { font-size: 12px; }
  .agenda-detail .appointment-content p { font-size: 10px; }
  .agenda-detail .appointment-content .badge { font-size: 8px; }
  .month-day { min-height: 90px; }
  .auth-layout { max-width: 1100px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; gap: 72px; padding: 32px 36px 70px; }
  .auth-aside { display: flex; flex-direction: column; gap: 24px; padding-top: 28px; }
  .auth-aside > .eyebrow { font-size: 10px; }
  .auth-aside h1, .auth-aside h2 { color: var(--brand-dark); font-size: 42px; letter-spacing: -.055em; line-height: 1.16; }
  .auth-aside > p { color: #7f8d73; font-size: 14px; line-height: 1.9; }
  .auth-aside > .row { align-items: flex-start; gap: 12px; font-size: 13px; color: #6f8461; }
  .auth-aside > .row svg { width: 20px; height: 20px; color: #669347; margin-top: 1px; }
  .auth-aside .hero-preview { margin-top: 5px; transform: none; padding: 22px; }
  .auth-card { padding: 32px; }
  .hero { gap: 60px; padding-top: 74px; padding-bottom: 92px; }
  .hero-title { font-size: 57px; }
  .hero-subtitle { font-size: 15px; line-height: 1.85; }
  .hero-copy { gap: 24px; }
  .hero-actions { gap: 11px; }
  .hero-actions .btn { font-size: 12px; padding-inline: var(--mobile-action-padding-x, 17px); }
  .hero-actions .btn.primary { padding-inline: var(--mobile-action-padding-x, 22px); }
  .hero-visual { padding-left: 8px; }
  .hero-preview { padding: 27px 23px 17px; }
  .hero-preview h3 { font-size: 18px; }
  .hero-preview p { font-size: 11px; }
  .hero-preview .week-strip { margin-bottom: 19px; }
  .preview-day { min-height: 59px; font-size: 9px; gap: 6px; }
  .preview-day strong { font-size: 16px; }
  .preview-event { padding-block: 15px; gap: 12px; }
  .preview-event > span:first-child { font-size: 10px; width: 38px; }
  .preview-event strong { font-size: 12px; }
  .preview-event small { font-size: 9px; }
  .floating-note { right: -14px; bottom: 9px; padding: 15px 19px; gap: 11px; max-width: 260px; }
  .floating-note strong { font-size: 12px; }
  .floating-note small { font-size: 9px; }
  .feature-grid { gap: 24px; }
  .feature-card { padding: 30px; }
  .feature-card h3 { font-size: 19px; }
  .feature-card p { font-size: 13px; }
  .landing-cta { margin-inline: auto; width: calc(100% - 72px); }
  .landing-footer { margin-inline: auto; width: calc(100% - 72px); }
  .toast-container, #toast-container { bottom: 24px; }
}

@media (min-width: 1440px) {
  .page-content { padding: 42px 48px 56px; }
  .topbar { padding-inline: 48px; }
  .module-card { padding: 26px; }
  .module-card h3 { font-size: 18px; }
  .module-card p { font-size: 14px; }
  .module-actions .btn { font-size: 12px; }
  .agenda-layout { grid-template-columns: minmax(0, 1.85fr) minmax(300px, 1fr); gap: 24px; }
  .month-day { min-height: 108px; }
  .month-event { font-size: 9px; }
  .automation-grid { grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr); gap: 24px; }
}

@media (max-width: 767px) {
  .module-grid { gap: 12px; }
  .module-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 9px 12px; padding: 14px; min-height: 0; }
  .module-card > .between { display: contents; }
  .module-card > .between > .module-icon { position: absolute; left: 14px; top: 14px; width: 35px; height: 36px; border-radius: 10px; }
  .module-card > .between > .module-icon svg { width: 20px; height: 20px; }
  .module-card > .between > .badge { position: absolute; right: 14px; top: 20px; font-size: 9px; }
  .module-card > h2 { display: flex; align-items: center; grid-column: 1 / -1; grid-row: 1; min-height: 36px; margin: 0 57px 0 47px; font-size: 17px; line-height: 1.2; }
  .module-card > .rule-summary { grid-column: 1; grid-row: 2; align-items: center; min-height: 44px; margin: 0; padding: 7px 9px; font-size: 10px; line-height: 1.5; gap: 6px; }
  .module-card > .rule-summary svg { width: 14px; height: 14px; margin: 0; }
  .module-card > .btn { grid-column: 2; grid-row: 2; min-height: var(--mobile-action-height, 44px); margin: 0; font-size: 11px; padding: var(--mobile-action-padding, 8px); }
  .module-card > .btn svg { display: none; }
  .link-card.card { padding: 13px 14px; gap: 8px 10px; }
  .link-card .module-icon { width: 32px; height: 34px; border-radius: 9px; }
  .link-card-content h2 { font-size: 13px; line-height: 1.3; margin-bottom: 1px; }
  .link-card-content > .muted { font-size: 10px; line-height: 1.4; }
  .link-card .link-url { font-size: 10px; line-height: 1.5; margin-top: 2px; }
  .link-card-actions { gap: 7px; }
  .link-card-actions .btn { min-height: var(--mobile-action-height, 44px); padding-block: var(--mobile-action-padding-y, 8px); font-size: 11px; }
  .link-card-actions .icon-button { height: var(--mobile-action-height, 44px); }
}

@media (max-width: 379px) {
  .page-content { padding-inline: 12px; }
  .topbar { padding-inline: 16px; }
  .topbar-title h1 { font-size: 18px; }
  .public-content { padding-inline: 12px; }
  .public-schedule { padding: 13px; }
  .hero { padding-inline: 16px; }
  .hero-title { font-size: 36px; }
  .landing-header { padding-inline: 16px; gap: 8px; }
  .landing-header .brand { font-size: 18px; }
  .landing-header .brand-mark { width: 28px; flex-basis: 28px; height: 30px; }
  .landing-nav { gap: 0; }
  .landing-nav .btn { font-size: 10px; padding-inline: var(--mobile-action-padding-x, 8px); }
  .landing-nav > a:not(.btn) { font-size: 9px; padding-right: 8px; }
  .landing-nav .btn svg { display: none; }
  .landing-header .brand { font-size: 16px; gap: 7px; }
  .public-header { padding-inline: 14px; }
  .public-header .brand { font-size: 15px; gap: 7px; }
  .public-header .brand-mark { width: 28px; height: 31px; flex-basis: 28px; }
  .owner-access { font-size: 9px; gap: 4px; }
  .topbar .topbar-actions .demo-badge { display: none; }
  .appointment-card { gap: 9px; }
  .appointment-actions { max-width: 44px; }
  .appointment-time { flex-basis: 43px; width: 43px; font-size: 13px; }
  .module-card { padding: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.auth-product-art { display: grid; gap: 20px; padding: 32px; border-radius: 28px; background: #073d32; box-shadow: 0 24px 50px #073d3214; overflow: hidden; }
.auth-art-calendar { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; padding: 22px 18px; border: 1px solid #dce5d8; border-radius: 18px; background: #f7f9f3; transform: rotate(-4deg); box-shadow: 0 12px 20px #001c2120; }
.auth-art-date { color: #073d32; font-size: 52px; font-weight: 750; letter-spacing: -.07em; line-height: 1; }
.auth-art-date > span { display: block; margin-top: 8px; font-size: 10px; letter-spacing: .2em; }
.auth-art-grid { min-height: 66px; background: repeating-linear-gradient(90deg, #dfe8d5 0 1px, transparent 1px 20%), repeating-linear-gradient(0deg, #dfe8d5 0 1px, transparent 1px 33.3%); }
.auth-art-booking { display: flex; grid-column: 1 / -1; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 10px; background: #e8f1dc; color: #073d32; font-size: 12px; }
.auth-art-booking > b { font-size: 17px; }
.auth-art-booking > span { flex: 1; }
.auth-art-booking small { display: block; font-size: 10px; color: #567260; margin-top: 4px; }
.auth-art-connector { display: flex; align-items: center; gap: 16px; width: 75%; margin: 0 auto; color: #c9f970; }
.auth-art-connector > i { flex: 1; height: 1px; background: #c9f97066; position: relative; }
.auth-art-connector > i::after { content: ''; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-right: 1px solid #c9f970; border-top: 1px solid #c9f970; transform: rotate(45deg); }
.auth-art-message { width: 94%; justify-self: end; padding: 18px; border-radius: 16px 16px 3px 16px; background: #dff4ca; color: #12362b; transform: rotate(3deg); box-shadow: 0 12px 20px #001c2120; }
.auth-art-message > span { display: flex; gap: 7px; align-items: center; font-size: 11px; font-weight: 650; }
.auth-art-message > p { margin-top: 12px; line-height: 1.7; font-size: 14px; }
.auth-art-message > small { display: block; margin-top: 12px; font-size: 9px; color: #567260; }

/* Content owns its available width, including when a desktop scrollbar reduces
   a narrow viewport. Text and form controls may shrink inside flex/grid cells. */
.app-shell .btn, .auth-page .btn, .task-dialog .btn { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.app-shell .card, .auth-card, .task-dialog { overflow-wrap: anywhere; }
.app-shell .page-heading h1, .auth-page .flow-heading h2, .task-dialog h2, .task-dialog h3 { overflow-wrap: anywhere; }
.app-shell .automation-grid, .app-shell .settings-grid, .app-shell .agenda-layout,
.app-shell .module-grid, .auth-page form, .task-dialog form { min-width: 0; max-width: 100%; }
.app-shell .automation-grid > *, .app-shell .settings-grid > *, .app-shell .agenda-layout > *,
.auth-card > *, .task-body > *, .task-body .stack > *, .task-body .form-grid > *,
.auth-card .form-grid > * { min-width: 0; max-width: 100%; }
.app-shell .rule-summary > strong, .app-shell .whatsapp-preview-header > div,
.task-dialog .switch-row > span, .task-dialog .checkbox-field > span,
.auth-card .switch-row > span, .auth-card .checkbox-field > span { min-width: 0; overflow-wrap: anywhere; }
.auth-card .hint, .task-dialog .hint, .task-dialog label, .auth-card label { overflow-wrap: anywhere; }
.task-dialog .field input, .task-dialog .field select, .task-dialog .field textarea,
.auth-card .field input, .auth-card .field select, .auth-card .field textarea { min-width: 0; max-width: 100%; }
.task-dialog .review-row > *, .auth-card .review-row > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }

/* Guided tasks use the same green / lime signature as the product artwork.
   Only the body scrolls; the header and action footer remain in the dialog. */
.task-dialog { background: var(--background); }
.task-header { min-width: 0; max-width: 100%; border-bottom: 1px solid #285c47; background: var(--brand-dark); }
.task-header > div { flex: 1 1 0; min-width: 0; }
.task-header .eyebrow { margin-bottom: 9px; color: var(--accent); font-size: 9px; letter-spacing: .13em; }
.task-header h2 { color: #fff; line-height: 1.2; }
.task-header p.muted { color: #b8d1c0; line-height: 1.6; }
.task-header .icon-button { width: var(--mobile-action-height, 44px); height: var(--mobile-action-height, 44px); flex: 0 0 var(--mobile-action-height, 44px); border: 1px solid #3d725a; background: #20533f; color: #e2efd7; }
.task-header .icon-button:hover { border-color: #7eaa71; background: #2c6349; color: var(--accent); }
.task-body { background: var(--background); }
.task-body .task-progress { padding: 12px 14px; margin-bottom: 0; border: 1px solid #d4e3c4; border-radius: 11px; background: #eaf2de; }
.task-body .task-step-label { min-width: 0; color: #466b36; font-size: 12px; font-weight: 650; white-space: normal; }
.task-body .task-progress > .muted { color: #77945e; font-size: 11px; white-space: nowrap; }
.task-body > .step-dots { width: 100%; justify-content: stretch; gap: 5px; margin: 9px 0 23px; }
.task-body > .step-dots > span { flex: 1 1 0; width: auto; height: 4px; border-radius: 4px; background: #d6e3ca; }
.task-body > .step-dots > span.active { width: auto; background: var(--brand); }
.task-body .flow-heading h2 { color: #173d2d; }
.task-body .service-editor, .task-body .hours-row, .task-body .choice-card,
.task-body .checkbox-field.card, .task-body .review-list { border-color: #d9e3d1; background: #fff; box-shadow: 0 2px 9px rgb(7 61 50 / 3%); }
.task-body .choice-card.selected { background: #edf5e4; border-color: var(--brand); }
.task-body .switch-row.card { border-color: #d0e0bf; background: #eaf3de; box-shadow: none; }
.task-body .message-editor { padding: 15px; border: 1px solid #d9e3d1; border-radius: 13px; background: #fff; }
.task-body .message-editor .template-vars { gap: 6px; }
.task-body .message-editor textarea { min-height: 160px; background: #fbfcf8; }
.task-footer { position: relative; z-index: 1; border-top-color: #d9e3d1; background: #fff; }
.task-footer .wizard-actions { min-width: 0; max-width: 100%; }
.task-footer .wizard-actions > .btn:first-child { flex: 0 1 auto; }
.task-footer .wizard-actions > .btn:last-child { flex: 1 1 0; min-width: 0; }
.task-footer .list-actions { min-width: 0; max-width: 100%; }

/* Pagination is a small shared control for appointments, messages and slots. */
.list-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 14px; min-width: 0; max-width: 100%; margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--border); }
.pagination-summary { flex: 1 1 90px; min-width: 0; color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.pagination-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex: 0 1 auto; min-width: 0; max-width: 100%; }
.pagination-actions > .btn { width: var(--mobile-action-height, 44px); min-width: var(--mobile-action-height, 44px); min-height: var(--mobile-action-height, 44px); flex: 0 0 var(--mobile-action-height, 44px); padding: var(--mobile-icon-padding, 9px); }
.pagination-current { display: inline-flex; align-items: center; justify-content: center; min-width: 43px; min-height: 44px; color: #667d5c; font-size: 12px; line-height: 1.4; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pagination-selection { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; min-width: 0; max-width: 100%; margin-top: 11px; padding: 9px 12px; border: 1px solid #dbe5d1; border-radius: 10px; background: #eff5e8; }
.pagination-selection > span { flex: 1 1 140px; min-width: 0; color: #647f52; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.pagination-selection > .btn { min-height: var(--mobile-action-height, 44px); padding-block: var(--mobile-action-padding-y, 8px); font-size: 12px; }

@media (max-width: 999px) {
  .topbar { flex-wrap: wrap; }
  .topbar-title { flex: 1 1 150px; min-width: 0; max-width: 100%; }
  .topbar-actions { flex-wrap: wrap; flex: 0 1 auto; min-width: 0; max-width: 100%; }
  .topbar-business { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
  .mobile-brand { min-width: 0; max-width: 100%; }
  .mobile-brand .logo-text { min-width: 0; overflow-wrap: anywhere; }
  .page-heading > div { flex: 1 1 100%; }
  .page-heading > .btn { flex: 1 1 100%; width: 100%; }
}

@media (max-width: 767px) {
  .auth-header { flex-wrap: wrap; gap: 8px; padding: 16px; }
  .auth-header .brand { min-width: 0; max-width: 100%; gap: 7px; font-size: 18px; }
  .auth-header .brand > svg { width: 24px; height: 24px; }
  .auth-header > .btn { max-width: 100%; padding-inline: var(--mobile-action-padding-x, 8px); font-size: 11px; }
  .auth-card .review-row, .task-body .review-row { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 12px; }
  .task-dialog { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; }
  .task-header { padding: 18px 16px; }
  .task-header h2 { font-size: 22px; }
  .task-header p.muted { font-size: 12px; }
  .task-body { padding: 20px 16px; }
  .task-body .hours-row, .task-body .service-editor { padding: 13px; }
  .task-footer { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .task-footer .btn { min-height: var(--mobile-action-height, 46px); gap: 6px; padding: var(--mobile-action-padding, 10px 12px); font-size: var(--mobile-action-font-size, 13px); }
  .task-footer .wizard-actions { gap: 8px; }
  .task-footer .wizard-actions > .btn:first-child { padding-inline: var(--mobile-action-padding-x, 10px); }
  .task-footer .list-actions { gap: 8px; }
  .task-body .message-editor { padding: 13px; }
}

@media (min-width: 768px) {
  .task-footer .wizard-actions > .btn:last-child { flex: 0 1 auto; min-width: 150px; }
}

.service-editor-disclosure { min-width: 0; max-width: 100%; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.service-editor-disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; min-height: 52px; padding: 11px 13px; border-radius: 11px; color: #365d32; font-size: 13px; font-weight: 600; line-height: 1.5; list-style: none; cursor: pointer; }
.service-editor-disclosure > summary::-webkit-details-marker { display: none; }
.service-editor-disclosure > summary::marker { content: ''; }
.service-editor-disclosure > summary > span { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
.service-editor-disclosure > summary strong, .service-editor-disclosure > summary b { font-size: 13px; font-weight: 600; }
.service-editor-disclosure > summary small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.5; }
.service-editor-disclosure > summary > svg { width: 18px; height: 18px; flex: 0 0 18px; color: #7e9a66; transition: transform .16s; }
.service-editor-disclosure > summary:hover { background: #f1f7e9; }
.service-editor-disclosure[open] { border-color: #b8cfa2; }
.service-editor-disclosure[open] > summary { border-radius: 11px 11px 0 0; background: #edf5e3; }
.service-editor-disclosure[open] > summary > svg { transform: rotate(180deg); }
.service-editor-disclosure > .service-editor { margin: 0; border: 0; border-top: 1px solid #dce6d1; border-radius: 0 0 11px 11px; background: #fff; box-shadow: none; }
.task-body [data-service-editor], .auth-card [data-service-editor] { gap: 10px; }

@media print {
  .sidebar, .bottom-nav, .topbar .row, .appointment-actions, .agenda-toolbar > .btn, .toast-container, #toast-container { display: none !important; }
  .app-shell { display: block; }
  .topbar { background: white; color: black; }
  .page-content { padding: 24px 0; max-width: none; }
  .card, .agenda-preview, .calendar-panel, .day-group { break-inside: avoid; box-shadow: none; }
  body { background: white; }
}

/* Neutral keyboard focus remains visible on the existing dark surfaces. */
.sidebar, .task-header, .public-header, .landing-v2 .landing-header { --focus-ring: #d4dce4; }
@media (max-width: 999px) { .topbar { --focus-ring: #d4dce4; } }

.public-v2 .public-header { --focus-ring: #52626e; }
