:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #172033;
  --muted: #667085;
  --line: #e4e7ec;
  --brand: #1f6feb;
  --danger: #b42318;
  --ok: #027a48;
  --shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar { height: 72px; display:flex; align-items:center; justify-content:space-between; padding:0 5vw; background:rgba(255,255,255,.86); backdrop-filter: blur(12px); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:20; }
.brand { color: var(--text); font-weight: 900; font-size: 1.35rem; letter-spacing: -.03em; }
.brand span { color: var(--brand); }
nav { display:flex; gap:18px; align-items:center; flex-wrap: wrap; }
nav a { color: var(--text); font-weight: 600; font-size: .95rem; }
.container { max-width: 1160px; margin: 36px auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.center { text-align:center; }
.hero { display:grid; grid-template-columns: 1.35fr .85fr; gap:48px; align-items:center; max-width:1160px; margin:60px auto; padding:0 24px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 5rem); line-height: .95; letter-spacing:-.08em; margin:10px 0 20px; }
.lead { font-size:1.2rem; color:var(--muted); line-height:1.65; max-width:680px; }
.eyebrow { color:var(--brand); font-weight:800; text-transform:uppercase; letter-spacing:.12em; font-size:.78rem; }
.hero-card, .card, .public-card, .auth-card, .success-card, .empty { background: var(--card); border:1px solid var(--line); border-radius:24px; padding:28px; box-shadow: var(--shadow); }
.auth-card { max-width: 480px; margin: 60px auto; }
.calendar-card { background:#0b1220; border-radius:22px; padding:18px; display:grid; gap:12px; margin-bottom:24px; }
.slot { background:#1e293b; color:white; padding:18px; border-radius:14px; font-weight:700; }
.slot.active { background:var(--brand); }
.slot.muted { opacity:.45; text-decoration: line-through; }
.actions, .row, .split { display:flex; align-items:center; gap:12px; }
.wrap { flex-wrap:wrap; }
.split { justify-content:space-between; }
.button { border:0; border-radius:12px; background:var(--brand); color:white; padding:12px 18px; font-weight:800; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:42px; }
.button:hover { text-decoration:none; filter:brightness(.96); }
.button.secondary { background:#eef4ff; color:#174ea6; }
.button.danger { background:#fee4e2; color:var(--danger); }
.button.small { padding:8px 12px; min-height:34px; font-size:.88rem; }
.link-button { background:none; border:0; color:var(--brand); font-weight:700; cursor:pointer; padding:0; }
.inline { display:inline; }
.stack { display:grid; gap:16px; }
label { display:grid; gap:6px; font-weight:700; }
input, select, textarea { width:100%; border:1px solid var(--line); border-radius:12px; padding:11px 12px; font:inherit; background:white; color:var(--text); }
textarea { resize: vertical; }
.checkbox { display:flex; align-items:center; gap:8px; font-weight:700; }
.checkbox input { width:auto; }
.grid { display:grid; gap:16px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: 1.3fr 1fr 1fr auto; align-items:end; }
.feature-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap:18px; }
.feature-grid article, .tile { background:white; border:1px solid var(--line); border-radius:18px; padding:22px; box-shadow:0 10px 30px rgba(16,24,40,.05); }
.tile { display:grid; gap:8px; color:var(--text); }
.tile span, .muted { color:var(--muted); }
.compact { margin-top:22px; }
.stats { display:grid; grid-template-columns: repeat(3, 1fr); gap:18px; margin:24px 0; }
.stats article { background:white; border:1px solid var(--line); border-radius:18px; padding:22px; box-shadow:0 10px 30px rgba(16,24,40,.05); display:grid; gap:6px; }
.stats strong { font-size:2.2rem; }
.cards { display:grid; gap:18px; }
.event-card p { margin:.4rem 0; }
.page-header { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:24px; }
table { width:100%; border-collapse: collapse; margin-top:16px; }
th, td { padding:13px 10px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
th { color:var(--muted); font-size:.82rem; text-transform:uppercase; letter-spacing:.08em; }
.pill { display:inline-flex; border:1px solid var(--line); background:#f9fafb; border-radius:999px; padding:4px 9px; font-size:.8rem; font-weight:800; }
.flash { max-width:1160px; margin:18px auto -12px; padding:12px 18px; border:1px solid #b2ddff; background:#eff8ff; border-radius:14px; color:#175cd3; }
.error { border:1px solid #fecdca; background:#fef3f2; color:#b42318; padding:12px 14px; border-radius:12px; font-weight:700; }
.footer { text-align:center; color:var(--muted); padding:44px 20px; }
code { background:#eef2f6; padding:2px 6px; border-radius:6px; }
.checklist { padding-left:0; list-style:none; }
.checklist li { margin:10px 0; }
.checklist li:before { content:'✓'; color:var(--ok); font-weight:900; margin-right:8px; }
.availability-row { display:grid; grid-template-columns: 180px 1fr auto 1fr; gap:12px; align-items:center; border:1px solid var(--line); padding:12px; border-radius:14px; }
.embed-code textarea { min-height:75px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size:.8rem; }
.public-shell, .booking-shell, .embed-shell { max-width:1080px; margin:42px auto; padding:0 20px; }
.public-shell { display:grid; grid-template-columns: .65fr 1.35fr; gap:22px; }
.booking-shell { display:grid; grid-template-columns: .85fr 1.15fr; gap:24px; align-items:start; }
.booking-info, .booking-widget { background:white; border:1px solid var(--line); border-radius:24px; padding:28px; box-shadow:var(--shadow); }
.booking-info h1 { font-size:2.5rem; letter-spacing:-.05em; }
.back-link { font-weight:800; color:var(--muted); }
.avatar { width:72px; height:72px; border-radius:20px; background:var(--brand); color:white; display:grid; place-items:center; font-size:2rem; font-weight:900; }
.profile-card { display:grid; gap:8px; align-content:start; }
.public-events { display:grid; gap:14px; }
.public-event { color:var(--text); border:1px solid var(--line); padding:18px; border-radius:16px; display:grid; gap:6px; }
.public-event:hover { border-color:var(--brand); text-decoration:none; }
.public-event span, .public-event small { color:var(--muted); }
.details-list { padding-left:18px; color:var(--muted); }
.slots-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap:10px; margin:16px 0; max-height:460px; overflow:auto; padding-right:4px; }
.slot-button { border:1px solid var(--line); background:white; border-radius:12px; padding:12px; font-weight:800; cursor:pointer; color:var(--text); }
.slot-button:hover, .slot-button.selected { background:var(--brand); color:white; border-color:var(--brand); }
.hidden { display:none !important; }
.selected-box { background:#f9fafb; border:1px solid var(--line); border-radius:12px; padding:12px; }
.success-card { max-width:680px; margin:50px auto; }
.success-icon { width:70px; height:70px; margin:0 auto 16px; border-radius:50%; display:grid; place-items:center; background:#dcfae6; color:#027a48; font-size:2rem; font-weight:900; }
.center-actions { justify-content:center; }
.actions-cell { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.embed-shell { margin:0; padding:12px; max-width:none; }
.embedded { box-shadow:none; }
@media (max-width: 900px) {
  .hero, .public-shell, .booking-shell { grid-template-columns: 1fr; }
  .feature-grid, .stats, .grid.two, .grid.three, .grid.four { grid-template-columns: 1fr; }
  .topbar { height:auto; padding:16px 20px; align-items:flex-start; gap:14px; flex-direction:column; }
  nav { gap:12px; }
  .availability-row { grid-template-columns:1fr; }
  table { display:block; overflow-x:auto; }
}

.alert { border:1px solid #fecdca; background:#fef3f2; color:#b42318; padding:12px 14px; border-radius:12px; font-weight:800; margin:0 0 16px; }
.form-section { border:1px solid var(--line); background:#fbfcfe; border-radius:18px; padding:18px; display:grid; gap:14px; }
.form-section h2 { margin:0; font-size:1.2rem; letter-spacing:-.02em; }
.booking-widget.sleek { display:grid; gap:18px; }
.booking-setup { display:grid; grid-template-columns: 1fr 1fr auto; gap:14px; align-items:end; border:1px solid var(--line); background:#fbfcfe; border-radius:18px; padding:16px; }
.booking-setup.compact { grid-template-columns: 1fr 1fr; }
.price-preview { border:1px solid var(--line); background:white; border-radius:14px; min-width:145px; padding:10px 12px; display:grid; gap:2px; }
.price-preview span { color:var(--muted); font-size:.8rem; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
.price-preview strong { font-size:1.15rem; }
.calendar-card { border:1px solid var(--line); border-radius:22px; padding:16px; background:linear-gradient(180deg, #fff, #fbfcfe); }
.calendar-toolbar { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.icon-button { border:1px solid var(--line); background:white; color:var(--text); width:38px; height:38px; border-radius:12px; font-size:1.55rem; line-height:1; cursor:pointer; }
.icon-button:hover { border-color:var(--brand); color:var(--brand); }
.month-grid { display:grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap:8px; }
.weekday { color:var(--muted); font-size:.78rem; font-weight:900; text-align:center; text-transform:uppercase; letter-spacing:.06em; padding:4px 0; }
.day-cell { aspect-ratio:1/1; border:1px solid var(--line); background:white; color:var(--text); border-radius:14px; display:grid; place-items:center; cursor:pointer; font-weight:900; transition:transform .15s ease, border-color .15s ease, background .15s ease; }
.day-cell:hover { transform:translateY(-1px); border-color:var(--brand); }
.day-cell.outside { color:#a0a7b2; background:#f7f8fa; }
.day-cell.past { color:#c2c8d0; background:#f2f4f7; }
.day-cell.selected { background:var(--brand); border-color:var(--brand); color:white; box-shadow:0 10px 22px rgba(31,111,235,.24); }
.times-panel { border:1px solid var(--line); border-radius:22px; padding:18px; background:white; }
.times-panel h3 { margin:0 0 6px; }
.day-slots { display:grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap:10px; margin-top:14px; max-height:360px; overflow:auto; padding-right:4px; }
.time-button { border:1px solid var(--line); background:white; color:var(--text); border-radius:14px; padding:12px 10px; cursor:pointer; display:grid; gap:2px; text-align:center; min-height:58px; }
.time-button:hover, .time-button.selected { background:var(--brand); border-color:var(--brand); color:white; }
.time-button.unavailable { cursor:not-allowed; color:#a0a7b2; background:#f2f4f7; border-color:#e5e7eb; text-decoration:line-through; }
.time-button.unavailable span { text-decoration:none; font-size:.72rem; color:#98a2b3; }
.time-button strong { font-size:.95rem; }

@media (max-width: 700px) {
  .booking-setup, .booking-setup.compact { grid-template-columns:1fr; }
  .month-grid { gap:5px; }
  .day-cell { border-radius:10px; font-size:.85rem; }
  .day-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Premium polish layer */
:root {
  --bg: #f3f0ea;
  --card: rgba(255,255,255,.88);
  --text: #111827;
  --muted: #667085;
  --line: rgba(17,24,39,.10);
  --brand: #274c77;
  --gold: #b98b3d;
  --ink: #0b1220;
  --shadow: 0 24px 80px rgba(17, 24, 39, .11);
}
body {
  background:
    radial-gradient(circle at 12% -10%, rgba(185,139,61,.18), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(39,76,119,.18), transparent 32%),
    linear-gradient(180deg, #fbfaf7 0%, #f2efe8 44%, #eef1f5 100%);
}
.topbar {
  background:rgba(255,255,255,.76);
  border-bottom:1px solid rgba(17,24,39,.08);
  box-shadow:0 12px 40px rgba(17,24,39,.06);
}
.brand { letter-spacing:-.055em; }
.brand span { color:var(--gold); }
nav a:hover { color:var(--brand); text-decoration:none; }
.button {
  background:linear-gradient(135deg, var(--brand), #18375b);
  box-shadow:0 12px 24px rgba(39,76,119,.18);
  border:1px solid rgba(255,255,255,.24);
}
.button.secondary { background:#fff; color:#18375b; border:1px solid rgba(39,76,119,.16); box-shadow:0 10px 24px rgba(17,24,39,.06); }
.card, .public-card, .booking-info, .booking-widget, .auth-card, .success-card, .empty {
  background:rgba(255,255,255,.82);
  backdrop-filter: blur(18px);
  border:1px solid rgba(255,255,255,.74);
  box-shadow:var(--shadow);
}
input, select, textarea { border-color:rgba(17,24,39,.12); background:rgba(255,255,255,.92); }
input:focus, select:focus, textarea:focus { outline:3px solid rgba(185,139,61,.16); border-color:rgba(185,139,61,.72); }
.eyebrow { color:var(--gold); }

.public-luxe-shell, .booking-luxe-shell {
  width:min(1180px, calc(100% - 40px));
  margin:46px auto;
}
.public-luxe-shell { display:grid; gap:24px; background-color:var(--public-bg, transparent); }
.public-luxe-hero {
  position:relative;
  overflow:hidden;
  min-height:330px;
  border-radius:34px;
  padding:42px;
  color:white;
  background:
    linear-gradient(135deg, rgba(9,18,33,.96), rgba(39,76,119,.88)),
    radial-gradient(circle at top right, rgba(185,139,61,.4), transparent 30%);
  box-shadow:0 32px 90px rgba(9,18,33,.24);
  display:grid;
  align-content:end;
  gap:20px;
}
.public-luxe-hero:after {
  content:'';
  position:absolute;
  inset:auto -10% -42% 36%;
  height:280px;
  background:radial-gradient(circle, rgba(185,139,61,.36), transparent 62%);
  transform:rotate(-8deg);
}
.public-brand-lockup { display:flex; align-items:center; gap:18px; position:relative; z-index:1; }
.public-brand-lockup h1 { font-size:clamp(2.6rem, 7vw, 5.2rem); margin:.1rem 0; letter-spacing:-.08em; line-height:.92; }
.public-luxe-hero .lead { color:rgba(255,255,255,.78); position:relative; z-index:1; }
.luxe-avatar { width:86px; height:86px; border-radius:26px; background:linear-gradient(135deg, var(--gold), #e8c274); color:#111827; box-shadow:0 18px 40px rgba(185,139,61,.26); }
.public-meta-strip { display:flex; flex-wrap:wrap; gap:10px; position:relative; z-index:1; }
.public-meta-strip span { border:1px solid rgba(255,255,255,.22); background:rgba(255,255,255,.11); color:rgba(255,255,255,.86); border-radius:999px; padding:8px 12px; font-weight:800; font-size:.86rem; }
.public-luxe-events { background:rgba(255,255,255,.70); border:1px solid rgba(255,255,255,.78); border-radius:30px; padding:28px; box-shadow:var(--shadow); }
.section-heading h2, .compact-heading h2 { margin:.15rem 0 .2rem; font-size:clamp(1.7rem, 3vw, 2.5rem); letter-spacing:-.055em; }
.luxe-events { grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); }
.luxe-event {
  position:relative;
  overflow:hidden;
  min-height:170px;
  border:1px solid rgba(17,24,39,.08);
  background:linear-gradient(180deg, #fff, rgba(255,255,255,.72));
  border-radius:24px;
  padding:24px;
  box-shadow:0 18px 60px rgba(17,24,39,.08);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.luxe-event:hover { transform:translateY(-3px); border-color:rgba(185,139,61,.55); box-shadow:0 24px 70px rgba(17,24,39,.13); text-decoration:none; }
.luxe-event strong { font-size:1.2rem; }
.luxe-event span { color:#344054; font-weight:800; }
.luxe-event em { font-style:normal; color:var(--brand); font-weight:900; }

.booking-luxe-shell { display:grid; grid-template-columns:.82fr 1.18fr; gap:24px; align-items:start; }
.luxe-booking-info, .luxe-widget { border-radius:32px; }
.luxe-booking-info { position:sticky; top:96px; overflow:hidden; }
.luxe-booking-info:before { content:''; display:block; height:8px; background:linear-gradient(90deg, var(--brand), var(--gold)); margin:-28px -28px 24px; }
.luxe-booking-info h1 { font-size:clamp(2.2rem, 5vw, 3.8rem); line-height:.96; }
.luxe-details { display:grid; gap:10px; padding:0; }
.luxe-details span { display:grid; gap:4px; border:1px solid rgba(17,24,39,.08); background:rgba(255,255,255,.66); border-radius:16px; padding:13px; color:#344054; }
.luxe-details strong { color:#0b1220; text-transform:uppercase; letter-spacing:.08em; font-size:.75rem; }
.luxe-widget { padding:30px; }
.luxe-setup, .luxe-calendar, .luxe-times, .luxe-form { border-radius:24px; border:1px solid rgba(17,24,39,.09); background:rgba(255,255,255,.74); }
.luxe-price { background:linear-gradient(135deg, #111827, #274c77); color:white; border:0; }
.luxe-price span { color:rgba(255,255,255,.72); }
.day-cell.selected { background:linear-gradient(135deg, var(--brand), #18375b); }
.time-button.selected, .time-button:hover { background:linear-gradient(135deg, var(--brand), #18375b); }
.time-button.unavailable { opacity:.78; }

.integrations-page .small-lead { font-size:1rem; max-width:840px; }
.integrations-grid { display:grid; grid-template-columns:1fr 1fr; gap:22px; align-items:start; }
.integration-card h2 { margin:.15rem 0 .45rem; letter-spacing:-.045em; }
.spotlight-card { border-color:rgba(185,139,61,.25); }
.status-dot { border-radius:999px; padding:7px 10px; background:#f2f4f7; color:#475467; font-weight:900; font-size:.8rem; }
.status-dot.ok { background:#ecfdf3; color:#027a48; }
.connected-list { display:grid; gap:10px; margin:14px 0; }
.connected-row { display:flex; justify-content:space-between; gap:12px; align-items:center; border:1px solid rgba(17,24,39,.08); background:rgba(255,255,255,.72); border-radius:16px; padding:14px; }
.connected-row div { display:grid; gap:3px; }
.connected-row span, .connected-row small { color:var(--muted); }
.integration-form { margin-top:16px; }
.processor-fields { display:grid; gap:12px; }
.helper-card, .feed-box { border:1px solid rgba(185,139,61,.22); background:rgba(185,139,61,.08); border-radius:16px; padding:14px; display:grid; gap:6px; }
.helper-card span, .feed-box p { color:#475467; }
.feed-box h3 { margin:0; font-size:1rem; }
.provider-strip { display:flex; flex-wrap:wrap; gap:10px; margin:14px 0; }
.provider-strip span { border:1px solid rgba(17,24,39,.10); background:#fff; border-radius:999px; padding:8px 11px; font-weight:800; color:#344054; }
.full-width { margin-top:22px; }

@media (max-width: 980px) {
  .booking-luxe-shell, .integrations-grid { grid-template-columns:1fr; }
  .luxe-booking-info { position:static; }
}
@media (max-width: 700px) {
  .public-luxe-shell, .booking-luxe-shell { width:min(100% - 24px, 1180px); margin:24px auto; }
  .public-luxe-hero { padding:26px; border-radius:26px; }
  .public-brand-lockup { align-items:flex-start; flex-direction:column; }
  .connected-row { align-items:flex-start; flex-direction:column; }
}

/* Customer database */
.customers-page .small-lead { font-size:1rem; max-width:780px; }
.customer-list { display:grid; gap:18px; }
.customer-card { display:grid; gap:18px; }
.customer-card h2 { margin:.1rem 0; font-size:clamp(1.5rem, 3vw, 2.1rem); letter-spacing:-.045em; }
.customer-metrics { display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-end; }
.customer-metrics span { display:grid; gap:2px; min-width:116px; border:1px solid rgba(17,24,39,.08); background:rgba(255,255,255,.72); border-radius:16px; padding:12px 14px; color:var(--muted); font-size:.82rem; font-weight:800; }
.customer-metrics strong { color:#111827; font-size:1.15rem; }
.customer-summary-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:12px; }
.customer-summary-grid div { border:1px solid rgba(17,24,39,.08); background:rgba(255,255,255,.58); border-radius:16px; padding:14px; display:grid; gap:4px; }
.customer-summary-grid strong { font-size:1rem; }
.booking-history { border:1px solid rgba(17,24,39,.08); border-radius:18px; background:rgba(255,255,255,.56); padding:14px; }
.booking-history summary { cursor:pointer; font-weight:900; color:var(--brand); }
.history-list { display:grid; gap:10px; margin-top:14px; }
.history-row { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; border:1px solid rgba(17,24,39,.07); border-radius:14px; padding:12px; background:#fff; }
.history-row > div:first-child { display:grid; gap:4px; }
.history-row span { color:var(--muted); }
.right-history { justify-content:flex-end; text-align:right; }
@media (max-width: 780px) {
  .customer-header, .history-row { align-items:flex-start; flex-direction:column; }
  .customer-metrics { justify-content:flex-start; }
  .customer-summary-grid { grid-template-columns:1fr 1fr; }
  .right-history { justify-content:flex-start; text-align:left; }
}

/* Security hardening UI */
.security-settings-page { display:grid; gap:18px; }
.security-panel { display:grid; gap:16px; }
.security-form { margin-top:14px; }
.security-secret-box code { display:block; font-size:1.05rem; letter-spacing:.08em; padding:12px; overflow:auto; }
.audit-list { display:grid; gap:10px; margin-top:14px; }
.audit-row { display:flex; align-items:center; justify-content:space-between; gap:12px; border:1px solid rgba(17,24,39,.08); background:rgba(255,255,255,.68); border-radius:14px; padding:12px; }
.audit-row div { display:grid; gap:3px; }
.audit-row span, .audit-row small { color:var(--muted); }
.audit-row strong { color:#111827; }
@media (max-width: 700px) {
  .audit-row { align-items:flex-start; flex-direction:column; }
}

.section-header { margin-bottom:22px; }
.section-header h2, .landing-section h2, .pricing-hero h1 { letter-spacing:-.055em; line-height:1; }
.section-header h2 { font-size:clamp(2rem, 4vw, 3.2rem); margin:.3rem 0 .6rem; }
.landing-section { margin-top:58px; margin-bottom:58px; }
.split-section { display:grid; grid-template-columns:1fr 1fr; gap:22px; }
.spotlight-card { background:linear-gradient(180deg, #fff, #f8fbff); }
.footer { display:grid; gap:14px; place-items:center; }
.footer p { margin:0; }
.footer-links { display:flex; justify-content:center; gap:18px; flex-wrap:wrap; }
.footer-links a { color:var(--muted); font-weight:700; }
.footer-links a:hover { color:var(--brand); }
.pricing-page .pricing-hero { display:block; }
.pricing-page .pricing-hero h1 { font-size:clamp(2.4rem, 6vw, 4.8rem); margin:.2rem 0 .6rem; max-width:920px; }
.pricing-grid { display:grid; grid-template-columns:1.1fr .9fr; gap:22px; align-items:stretch; margin-bottom:24px; }
.pricing-card h2 { font-size:3rem; margin:.25rem 0; letter-spacing:-.06em; }
.pricing-card h2 span { font-size:1rem; color:var(--muted); letter-spacing:0; }
.pricing-card.featured { border-color:#b2ddff; }
.pricing-details { margin:24px 0; }
.pricing-examples strong { display:block; margin:.35rem 0; font-size:1.05rem; }
.billing-page .small-lead { font-size:1rem; max-width:760px; }
.billing-stats article:first-child strong { font-size:1.55rem; }
.billing-overview { display:grid; gap:18px; }
.usage-meter { height:14px; border-radius:999px; background:#eef2f6; overflow:hidden; border:1px solid var(--line); }
.usage-meter span { display:block; height:100%; background:var(--brand); border-radius:999px; }
.mini-card { border:1px solid var(--line); border-radius:16px; background:#fbfcfe; padding:16px; display:grid; gap:5px; }
.mini-card strong { font-size:1.6rem; }
.mini-card span { color:var(--muted); font-weight:700; }
.info-page h1 { font-size:clamp(2rem, 5vw, 3.6rem); letter-spacing:-.06em; line-height:1; margin:.2rem 0 .6rem; }
.info-page .cards article { border-top:1px solid var(--line); padding-top:16px; }

@media (max-width: 900px) {
  .split-section, .pricing-grid { grid-template-columns:1fr; }
}

/* Setup guidance and booking-link tools */
.setup-warning-grid { display:grid; gap:12px; margin:0 0 22px; }
.setup-warning-card { display:flex; justify-content:space-between; align-items:center; gap:14px; border:1px solid #fedf89; background:#fffaeb; color:#7a2e0e; border-radius:16px; padding:14px 16px; box-shadow:0 10px 30px rgba(16,24,40,.05); }
.setup-warning-card div { display:grid; gap:3px; }
.setup-warning-card span { color:#93370d; }
.setup-card { display:grid; gap:18px; margin-bottom:22px; }
.setup-card-header { align-items:flex-start; }
.setup-card-actions { display:flex; align-items:center; gap:10px; }
.setup-toggle-button {
  width:38px;
  height:38px;
  border:1px solid rgba(17,24,39,.1);
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#fff;
  color:#18375b;
  font:inherit;
  font-size:1.45rem;
  line-height:1;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 10px 25px rgba(17,24,39,.08);
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.setup-toggle-button:hover { transform:translateY(-1px); box-shadow:0 14px 30px rgba(17,24,39,.12); }
.setup-card .setup-list {
  max-height:1000px;
  opacity:1;
  overflow:hidden;
  transition:max-height .28s cubic-bezier(.22, 1, .36, 1), opacity .22s ease, transform .28s cubic-bezier(.22, 1, .36, 1);
}
.setup-card.is-collapsed .setup-list {
  max-height:0;
  opacity:0;
  transform:translateY(-6px);
}
.setup-card-header h2, .share-card h2, .owner-preview-tools h2 { margin:.15rem 0 .35rem; letter-spacing:-.045em; }
.setup-list { display:grid; gap:10px; }
.setup-step { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px; border:1px solid rgba(17,24,39,.08); background:rgba(255,255,255,.66); border-radius:16px; padding:12px; }
.setup-step.complete { background:#ecfdf3; border-color:#abefc6; }
.setup-check { width:28px; height:28px; border-radius:999px; border:2px solid #d0d5dd; display:grid; place-items:center; color:#027a48; font-weight:900; background:#fff; }
.setup-step.complete .setup-check { border-color:#12b76a; background:#dcfae6; }
.setup-step div:nth-child(2) { display:grid; gap:2px; }
.setup-step span { color:var(--muted); font-weight:700; font-size:.9rem; }
.share-card { margin-bottom:22px; }
.share-actions { justify-content:flex-end; }
.button:disabled { opacity:.55; cursor:not-allowed; filter:none; }
.owner-preview-tools { display:flex; justify-content:space-between; align-items:center; gap:16px; }
@media (max-width: 760px) {
  .setup-warning-card, .setup-step, .owner-preview-tools { align-items:flex-start; grid-template-columns:1fr; flex-direction:column; }
  .setup-step { display:grid; }
  .share-actions { justify-content:flex-start; }
}

/* Public business page, branding, contact details, and booking policies */
.brand-image { object-fit:contain; background:#fff; border:1px solid rgba(255,255,255,.42); }
.booking-brand-lockup { display:flex; align-items:center; gap:16px; margin:0 0 16px; }
.booking-brand-image { width:72px; height:72px; border-radius:20px; flex:0 0 auto; }
.booking-brand-lockup h1 { margin:.15rem 0; }
.public-luxe-contact { display:grid; gap:18px; }
.contact-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:12px; }
.contact-item { border:1px solid rgba(17,24,39,.08); background:rgba(255,255,255,.68); border-radius:16px; padding:14px; display:grid; gap:5px; }
.contact-item span, .booking-contact-list span { color:var(--muted); font-weight:800; font-size:.82rem; text-transform:uppercase; letter-spacing:.06em; }
.contact-item strong, .contact-item a { font-weight:900; color:#172033; word-break:break-word; }
.social-row { display:flex; flex-wrap:wrap; gap:10px; }
.social-row a { border:1px solid rgba(17,24,39,.08); background:#fff; border-radius:999px; padding:8px 12px; font-weight:800; color:var(--brand); }
.event-meta-list { display:flex; flex-wrap:wrap; gap:8px; margin:4px 0; }
.event-meta-list span { border:1px solid rgba(17,24,39,.08); background:#f9fafb; border-radius:999px; padding:6px 9px; color:#344054; font-weight:800; font-size:.83rem; }
.booking-contact-list { display:grid; gap:10px; margin-top:16px; }
.booking-contact-list div { border:1px solid rgba(17,24,39,.08); background:rgba(255,255,255,.66); border-radius:16px; padding:12px; display:grid; gap:4px; }
.booking-contact-list a, .booking-contact-list strong { color:#172033; font-weight:900; word-break:break-word; }
.policy-box, .trust-note { border:1px solid rgba(17,24,39,.09); background:#fbfcfe; border-radius:16px; padding:14px; }
.policy-box h3 { margin:0 0 8px; letter-spacing:-.02em; }
.policy-box p { margin:8px 0; color:#344054; line-height:1.5; }
.trust-note { color:#475467; font-weight:700; line-height:1.55; }
.branding-upload-section input[type="file"] { padding:10px; }
.brand-preview-row { display:flex; flex-wrap:wrap; gap:12px; }
.brand-preview-item { display:grid; gap:6px; border:1px solid rgba(17,24,39,.08); background:#fff; border-radius:16px; padding:12px; min-width:150px; }
.brand-preview-item span { color:var(--muted); font-weight:800; font-size:.82rem; }
.brand-preview-item img { width:96px; height:96px; object-fit:contain; border-radius:14px; border:1px solid var(--line); background:#fff; }
.success-brand-image { width:86px; height:86px; margin:0 auto; border-radius:22px; object-fit:contain; background:#fff; border:1px solid var(--line); }
.branded-success-card .success-icon { margin-top:4px; }
@media (max-width: 760px) {
  .booking-brand-lockup { align-items:flex-start; flex-direction:column; }
  .event-meta-list { align-items:flex-start; flex-direction:column; }
}

/* Booking flow clarity, timezone, unavailable slots, and intake questions */
.booking-progress { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:10px; }
.booking-progress li { border:1px solid rgba(17,24,39,.09); background:#fff; color:#667085; border-radius:16px; padding:10px; display:flex; align-items:center; gap:8px; font-weight:900; font-size:.9rem; }
.booking-progress li span { width:26px; height:26px; border-radius:999px; border:1px solid #d0d5dd; display:grid; place-items:center; background:#f9fafb; color:#667085; flex:0 0 auto; }
.booking-progress li.active { border-color:var(--brand); color:#172033; box-shadow:0 10px 28px rgba(31,111,235,.12); }
.booking-progress li.active span { background:var(--brand); border-color:var(--brand); color:#fff; }
.booking-progress li.complete { background:#ecfdf3; border-color:#abefc6; color:#027a48; }
.booking-progress li.complete span { background:#12b76a; border-color:#12b76a; color:#fff; }
.compact-progress { grid-template-columns:repeat(2, minmax(0, 1fr)); }
.timezone-note { margin:-4px 0 14px; color:#475467; font-weight:800; line-height:1.45; }
.unavailable-toggle { margin-top:12px; justify-content:flex-start; color:#475467; }
.payment-notice { border:1px solid #fedf89; background:#fffaeb; color:#93370d; border-radius:16px; padding:14px; font-weight:900; line-height:1.45; }
.custom-question-list { display:grid; gap:12px; }
.intake-checkbox { justify-content:flex-start; align-items:flex-start; padding:12px 0; }
.question-builder { display:grid; gap:12px; }
.question-row { display:grid; grid-template-columns:1.5fr .8fr 1fr auto; gap:12px; align-items:end; border:1px solid rgba(17,24,39,.08); background:#fff; border-radius:16px; padding:12px; }
.question-required { padding-bottom:12px; white-space:nowrap; }
.payment-status-list { display:grid; gap:8px; margin:8px auto 4px; max-width:420px; }
.payment-status-list span { border:1px solid #abefc6; background:#ecfdf3; color:#027a48; border-radius:999px; padding:8px 12px; font-weight:900; }
.muted-icon { background:#fffaeb; color:#b54708; }
@media (max-width: 760px) {
  .booking-progress, .compact-progress { grid-template-columns:1fr; }
  .question-row { grid-template-columns:1fr; }
  .question-required { padding-bottom:0; }
}

/* Event setup form improvements */
.event-setup-page.narrow { max-width: 940px; }
.event-setup-form { gap:20px; }
.event-setup-section { display:grid; gap:18px; }
.section-title-row { display:flex; align-items:flex-start; gap:14px; }
.section-number { width:34px; height:34px; border-radius:999px; display:grid; place-items:center; flex:0 0 auto; background:linear-gradient(135deg, var(--brand), #18375b); color:#fff; font-weight:900; box-shadow:0 10px 24px rgba(39,76,119,.16); }
.section-title-row h2 { margin:0 0 4px; letter-spacing:-.035em; }
.section-title-row p { margin:0; }
.help-text { color:var(--muted); font-weight:700; line-height:1.45; }
.url-builder { display:grid; grid-template-columns:minmax(210px, auto) 1fr; align-items:center; border:1px solid var(--line); border-radius:12px; background:#fff; overflow:hidden; }
.url-builder span { padding:11px 12px; color:var(--muted); font-weight:800; border-right:1px solid var(--line); background:#f9fafb; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.url-builder input { border:0; border-radius:0; }
.duration-builder { border:1px solid rgba(17,24,39,.09); background:#fbfcfe; border-radius:18px; padding:16px; display:grid; gap:14px; }
.duration-builder-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; }
.duration-builder-heading h3, .subsection-block h3 { margin:.05rem 0 .25rem; letter-spacing:-.025em; }
.duration-builder-heading p { margin:0; }
.duration-builder-table { display:grid; gap:8px; }
.duration-builder-header, .duration-option-row { display:grid; grid-template-columns:1fr 1fr auto; gap:10px; align-items:end; }
.duration-builder-header { color:var(--muted); font-size:.78rem; font-weight:900; text-transform:uppercase; letter-spacing:.08em; padding:0 4px; }
.duration-option-row { border:1px solid rgba(17,24,39,.08); background:#fff; border-radius:16px; padding:10px; }
.duration-rows { display:grid; gap:10px; }
.input-with-suffix, .input-with-prefix { display:grid; align-items:center; border:1px solid var(--line); border-radius:12px; background:#fff; overflow:hidden; }
.input-with-suffix { grid-template-columns:1fr auto; }
.input-with-prefix { grid-template-columns:auto 1fr; }
.input-with-suffix input, .input-with-prefix input { border:0; border-radius:0; }
.input-with-suffix span, .input-with-prefix span { color:var(--muted); font-weight:900; padding:0 12px; }
.input-with-prefix span { border-right:1px solid var(--line); height:100%; display:grid; place-items:center; background:#f9fafb; }
.input-with-suffix span { border-left:1px solid var(--line); height:100%; display:grid; place-items:center; background:#f9fafb; }
.sr-helper { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.hourly-copy, .pricing-mode-hourly .per-duration-copy, .pricing-mode-per-duration .hourly-copy, .pricing-mode-per-duration .hourly-only { display:none; }
.pricing-mode-hourly .hourly-copy { display:block; }
.pricing-mode-hourly .duration-price-column { display:none; }
.pricing-mode-hourly .duration-builder-header, .pricing-mode-hourly .duration-option-row { grid-template-columns:1fr auto; }
.subsection-block { border-top:1px solid rgba(17,24,39,.08); padding-top:18px; display:grid; gap:14px; }
.event-form-actions { justify-content:flex-end; }
@media (max-width: 760px) {
  .section-title-row, .duration-builder-heading { flex-direction:column; }
  .url-builder { grid-template-columns:1fr; }
  .url-builder span { border-right:0; border-bottom:1px solid var(--line); }
  .duration-builder-header { display:none; }
  .duration-option-row, .pricing-mode-hourly .duration-option-row { grid-template-columns:1fr; }
  .duration-price-column, .pricing-mode-hourly .duration-price-column { display:grid; }
  .pricing-mode-hourly .duration-price-column { display:none; }
  .event-form-actions { justify-content:flex-start; }
}

/* Availability page improvements */
.availability-page { display:grid; gap:22px; }
.availability-editor-card, .weekly-preview-card, .date-exception-card, .blocked-time-card { display:grid; gap:18px; }
.availability-actions { display:flex; justify-content:flex-end; }
.availability-days { display:grid; gap:12px; }
.availability-day-card { border:1px solid rgba(17,24,39,.09); background:rgba(255,255,255,.66); border-radius:18px; padding:14px; display:grid; gap:12px; }
.availability-day-header { display:flex; justify-content:space-between; align-items:center; gap:14px; }
.availability-windows { display:grid; gap:10px; }
.availability-window-row { display:grid; grid-template-columns:1fr 1fr auto; align-items:end; gap:12px; border:1px solid rgba(17,24,39,.07); background:#fff; border-radius:14px; padding:12px; }
.availability-window-row .link-button:disabled { color:#98a2b3; cursor:not-allowed; }
.weekly-preview-list { display:grid; gap:8px; }
.weekly-preview-row { display:grid; grid-template-columns:90px 1fr; gap:12px; align-items:center; border:1px solid rgba(17,24,39,.08); background:#fff; border-radius:14px; padding:12px 14px; }
.weekly-preview-row strong { color:#172033; }
.weekly-preview-row span { color:#344054; font-weight:800; }
.weekly-preview-row.closed span { color:#98a2b3; }
.availability-exception-form, .blocked-time-form { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:14px; align-items:end; }
.blocked-time-form { grid-template-columns:1fr auto 1fr 1fr 1fr auto; }
.all-day-checkbox { padding-bottom:12px; white-space:nowrap; }
.calendar-card-list { display:grid; gap:10px; }
.calendar-style-item { display:grid; grid-template-columns:auto 1fr auto; gap:14px; align-items:center; border:1px solid rgba(17,24,39,.08); background:rgba(255,255,255,.72); border-radius:18px; padding:14px; }
.calendar-style-date { min-width:74px; border:1px solid rgba(39,76,119,.16); background:#f8fbff; border-radius:16px; padding:10px; display:grid; place-items:center; gap:2px; color:var(--brand); }
.calendar-style-date strong { font-size:1.05rem; }
.calendar-style-date span { color:var(--muted); font-size:.78rem; font-weight:900; }
.calendar-style-item > div:nth-child(2) { display:grid; gap:4px; }
.calendar-style-item span, .calendar-style-item small { color:var(--muted); font-weight:800; }
@media (max-width: 920px) {
  .availability-exception-form, .blocked-time-form { grid-template-columns:1fr 1fr; }
}
@media (max-width: 700px) {
  .availability-actions { justify-content:flex-start; }
  .availability-day-header, .calendar-style-item { align-items:flex-start; flex-direction:column; grid-template-columns:1fr; }
  .availability-window-row, .weekly-preview-row, .availability-exception-form, .blocked-time-form { grid-template-columns:1fr; }
  .all-day-checkbox { padding-bottom:0; }
}

.integration-status-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:16px; margin:0 0 22px; }
.status-card { padding:20px; display:grid; gap:10px; align-content:start; }
.status-card h2 { margin:.1rem 0; font-size:1.15rem; letter-spacing:-.025em; }
.status-card p { margin:0; }
.status-card strong { color:#344054; font-size:.92rem; }
.primary-action-card { margin:16px 0; }
.advanced-panel { border:1px solid rgba(17,24,39,.10); background:rgba(255,255,255,.72); border-radius:16px; padding:14px; margin-top:14px; }
.advanced-panel summary { cursor:pointer; font-weight:900; color:var(--brand); }
.advanced-panel .integration-form { margin-top:14px; }
.disabled-button { opacity:.55; cursor:not-allowed; filter:none; }
.warning-card { border-color:#fedf89; background:#fffaeb; }
.calendar-help-list { display:grid; gap:10px; }
.calendar-help-list details { border:1px solid rgba(17,24,39,.10); background:rgba(255,255,255,.72); border-radius:14px; padding:12px 14px; }
.calendar-help-list summary { cursor:pointer; font-weight:900; color:#344054; }
.calendar-help-list p { color:var(--muted); margin:10px 0 0; line-height:1.55; }
@media (max-width: 980px) { .integration-status-grid { grid-template-columns:1fr 1fr; } }
@media (max-width: 700px) { .integration-status-grid { grid-template-columns:1fr; } }

.booking-filters { display:grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap:14px; align-items:end; }
.booking-filters label { display:grid; gap:6px; font-weight:800; }
.booking-filters input, .booking-filters select { width:100%; }
.filter-actions { display:flex; gap:10px; flex-wrap:wrap; align-items:end; }
.calendar-view-card { display:grid; gap:18px; }
.calendar-view-header h2 { margin:.1rem 0; }
.booking-week-grid { display:grid; grid-template-columns: repeat(7, minmax(135px, 1fr)); gap:12px; overflow-x:auto; padding-bottom:4px; }
.booking-day-column { min-height:260px; border:1px solid var(--line); border-radius:18px; background:rgba(255,255,255,.68); padding:12px; display:grid; align-content:start; gap:10px; }
.booking-day-column header { display:flex; justify-content:space-between; align-items:baseline; gap:8px; border-bottom:1px solid var(--line); padding-bottom:8px; }
.booking-day-column header span { color:var(--muted); font-weight:800; font-size:.85rem; }
.day-empty { margin:0; font-size:.9rem; }
.day-bookings { display:grid; gap:8px; }
.calendar-booking-card { display:grid; gap:3px; border:1px solid var(--line); background:white; border-radius:14px; padding:10px; color:var(--text); box-shadow:0 8px 22px rgba(17,24,39,.05); }
.calendar-booking-card:hover { text-decoration:none; border-color:var(--brand); }
.calendar-booking-card span, .calendar-booking-card small { color:var(--muted); }
.calendar-booking-card em { font-style:normal; color:var(--brand); font-weight:900; font-size:.78rem; }
.booking-detail-page { display:grid; gap:18px; }
.booking-detail-header { align-items:start; }
.detail-summary-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap:12px; margin-top:16px; }
.detail-summary-grid div { border:1px solid var(--line); background:#fbfcfe; border-radius:16px; padding:14px; display:grid; gap:4px; }
.detail-summary-grid strong { font-size:1.02rem; }
.history-link { color:var(--text); text-decoration:none; }
.history-link:hover { border-color:var(--brand); text-decoration:none; }
@media (max-width: 900px) {
  .booking-week-grid { grid-template-columns: repeat(7, minmax(220px, 1fr)); }
}

/* Customer CRM controls */
.customer-controls-card { display:grid; gap:12px; margin-bottom:22px; }
.customer-filters { display:grid; grid-template-columns: minmax(260px, 1.4fr) minmax(180px, .8fr) minmax(210px, .8fr) auto; gap:14px; align-items:end; }
.customer-filters label { display:grid; gap:6px; font-weight:800; }
.customer-card-actions { justify-content:flex-end; }
.customer-events { margin:0; font-weight:700; }
.customer-detail-page { display:grid; gap:18px; }
.customer-detail-header { align-items:flex-start; }
.customer-notes-card textarea { min-height:150px; }
.customer-detail-list { margin-top:16px; }
@media (max-width: 900px) {
  .customer-filters { grid-template-columns:1fr; }
  .customer-card-actions { justify-content:flex-start; }
}

.teams-page .small-lead { font-size:1rem; max-width:840px; }
.permissions-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:12px; }
.role-card { align-content:start; }
.plain-list { list-style:none; padding:0; margin:8px 0 0; display:grid; gap:6px; }
.plain-list li { font-weight:800; font-size:.86rem; }
.plain-list .allowed { color:#027a48; }
.plain-list .muted-permission { color:#98a2b3; }
.team-list { margin-top:18px; }
.team-card { display:grid; gap:22px; }
.team-invite-box { border:1px solid rgba(17,24,39,.08); background:rgba(255,255,255,.66); border-radius:18px; padding:16px; display:grid; gap:14px; }
.pending-invites { display:grid; gap:12px; }
.team-member-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:14px; margin-top:12px; }
.team-member-card { border:1px solid rgba(17,24,39,.08); background:rgba(255,255,255,.72); border-radius:18px; padding:16px; display:grid; gap:14px; }
.member-card-top { align-items:flex-start; }
.member-card-top > div { display:grid; gap:3px; }
.member-status-grid { display:flex; flex-wrap:wrap; gap:8px; }
.compact-load-card { box-shadow:none; }
.team-member-actions { display:grid; gap:10px; }
.team-member-actions select { min-width:130px; }
@media (max-width: 900px) {
  .permissions-grid { grid-template-columns:1fr; }
}

/* Settings organization */
.settings-page { scroll-behavior:smooth; }
.settings-tabs { display:flex; flex-wrap:wrap; gap:10px; align-items:center; border:1px solid rgba(17,24,39,.08); background:rgba(255,255,255,.74); border-radius:18px; padding:12px; box-shadow:0 14px 45px rgba(16,24,40,.06); }
.settings-tabs a { border:1px solid rgba(17,24,39,.08); background:#fff; color:#344054; border-radius:999px; padding:9px 13px; font-weight:900; text-decoration:none; }
.settings-tabs a:hover { color:var(--brand); border-color:rgba(31,111,235,.25); }
.settings-section-card { scroll-margin-top:84px; }
.security-summary-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:12px; }
.security-summary-grid .mini-card small { color:var(--muted); font-weight:700; }
.security-subsection, .developer-subsection { border-top:1px solid rgba(17,24,39,.08); padding-top:18px; display:grid; gap:12px; }
.security-subsection h3, .developer-subsection h3 { margin:0; font-size:1.18rem; letter-spacing:-.025em; }
.two-factor-setup-grid { display:grid; grid-template-columns:.8fr 1.2fr; gap:14px; align-items:stretch; }
.qr-card { border:1px solid rgba(17,24,39,.08); background:rgba(255,255,255,.76); border-radius:16px; padding:14px; display:grid; gap:10px; }
.qr-card img { width:min(220px, 100%); height:auto; border:1px solid rgba(17,24,39,.08); border-radius:14px; background:#fff; padding:10px; }
.recovery-code-box pre { margin:8px 0 0; padding:14px; border-radius:14px; background:#111827; color:#fff; overflow:auto; line-height:1.55; font-weight:800; letter-spacing:.04em; }
.compact-audit-list { margin-top:0; }
.detailed-audit-row { align-items:flex-start; }
.detailed-audit-row div { gap:5px; }
@media (max-width: 780px) {
  .settings-tabs { align-items:stretch; flex-direction:column; }
  .settings-tabs a { text-align:center; }
  .security-summary-grid, .two-factor-setup-grid { grid-template-columns:1fr; }
}

/* Dashboard navigation polish */
.topbar-left { display:flex; align-items:center; gap:14px; }
.topnav a.active,
.topnav .button.active {
  color:var(--brand);
  background:rgba(39,76,119,.08);
  border-radius:999px;
  padding:8px 12px;
}
.topnav .button.active { color:white; background:linear-gradient(135deg, var(--brand), #18375b); }
.dashboard-topbar { padding:0 28px; }
.dashboard-top-actions { margin-left:auto; justify-content:flex-end; flex-wrap:nowrap; }
.logout-link { color:#344054; font-weight:900; }
.logout-link:hover { color:var(--brand); }
.mobile-menu-button,
.sidebar-close {
  border:1px solid rgba(17,24,39,.10);
  background:#fff;
  color:#172033;
  border-radius:12px;
  min-height:38px;
  padding:8px 11px;
  font-weight:900;
  cursor:pointer;
  display:none;
  align-items:center;
  gap:8px;
}
.mobile-menu-button span { font-size:.9rem; }
.account-menu { position:relative; }
.account-menu summary {
  list-style:none;
  cursor:pointer;
  border:1px solid rgba(17,24,39,.10);
  background:#fff;
  color:#344054;
  border-radius:999px;
  padding:9px 13px;
  font-weight:900;
}
.account-menu summary::-webkit-details-marker { display:none; }
.account-menu[open] summary { color:var(--brand); border-color:rgba(39,76,119,.25); }
.account-menu-panel {
  position:absolute;
  right:0;
  top:calc(100% + 10px);
  min-width:240px;
  z-index:50;
  display:grid;
  gap:8px;
  border:1px solid rgba(17,24,39,.10);
  background:rgba(255,255,255,.96);
  backdrop-filter:blur(18px);
  border-radius:18px;
  padding:14px;
  box-shadow:0 24px 70px rgba(17,24,39,.16);
}
.account-menu-panel span,
.account-menu-panel small { color:var(--muted); font-weight:700; }
.account-menu-panel a { color:var(--brand); font-weight:900; }
.dashboard-shell {
  display:grid;
  grid-template-columns:268px minmax(0, 1fr);
  align-items:start;
  min-height:calc(100vh - 72px);
}
.dashboard-sidebar {
  position:sticky;
  top:72px;
  min-height:calc(100vh - 72px);
  padding:22px 18px;
  border-right:1px solid rgba(17,24,39,.08);
  background:rgba(255,255,255,.58);
  backdrop-filter:blur(16px);
  box-shadow:14px 0 45px rgba(16,24,40,.04);
  z-index:15;
}
.sidebar-header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:0 0 16px; padding:0 6px; }
.sidebar-header strong { font-size:.88rem; text-transform:uppercase; letter-spacing:.1em; color:var(--muted); }
.sidebar-nav { display:grid; gap:7px; }
.sidebar-nav a {
  display:flex;
  align-items:center;
  min-height:42px;
  border-radius:14px;
  padding:10px 12px;
  color:#344054;
  font-weight:900;
  text-decoration:none;
}
.sidebar-nav a:hover { background:rgba(39,76,119,.07); color:var(--brand); text-decoration:none; }
.sidebar-nav a.active {
  background:linear-gradient(135deg, rgba(39,76,119,.14), rgba(185,139,61,.14));
  color:#18375b;
  box-shadow:inset 0 0 0 1px rgba(39,76,119,.12);
}
.sidebar-account-card {
  margin-top:22px;
  border:1px solid rgba(17,24,39,.08);
  background:rgba(255,255,255,.72);
  border-radius:18px;
  padding:14px;
  display:grid;
  gap:4px;
}
.sidebar-account-card span,
.sidebar-account-card small { color:var(--muted); font-weight:700; word-break:break-word; }
.sidebar-account-card strong { word-break:break-word; }
.dashboard-main-area { min-width:0; }
.dashboard-main-area .container { max-width:1180px; margin:32px auto; }
.dashboard-main-area .footer { padding:30px 20px 42px; }
.dashboard-overlay { display:none; }

@media (max-width: 980px) {
  .dashboard-topbar { height:64px; padding:12px 16px; flex-direction:row; align-items:center; }
  .dashboard-top-actions { gap:10px; }
  .mobile-menu-button { display:inline-flex; }
  .dashboard-shell { display:block; min-height:auto; }
  .dashboard-sidebar {
    position:fixed;
    top:0;
    left:0;
    width:min(86vw, 320px);
    height:100vh;
    min-height:100vh;
    overflow:auto;
    transform:translateX(-104%);
    transition:transform .2s ease;
    z-index:70;
    background:rgba(255,255,255,.96);
  }
  .sidebar-close { display:inline-flex; }
  .dashboard-menu-open .dashboard-sidebar { transform:translateX(0); }
  .dashboard-overlay {
    position:fixed;
    inset:0;
    background:rgba(11,18,32,.38);
    backdrop-filter:blur(3px);
    z-index:60;
  }
  .dashboard-menu-open .dashboard-overlay { display:block; }
  .dashboard-main-area .container { margin:24px auto; }
}

@media (max-width: 640px) {
  .dashboard-top-actions .button { display:none; }
  .account-menu-panel { right:-44px; min-width:220px; }
  .mobile-menu-button span { display:none; }
}

/* Empty states, recovery, and loading polish */
.guided-empty-state { display:grid; gap:14px; align-content:center; }
.guided-empty-state h2,
.guided-empty-state h3 { margin:.1rem 0; letter-spacing:-.035em; }
.empty-action-state { border:1px solid rgba(17,24,39,.08); background:rgba(255,255,255,.62); border-radius:16px; padding:16px; display:grid; gap:8px; }
.compact-empty-state { margin-top:12px; }
.compact-empty-state h3 { margin:0; }
.empty-action-state p { margin:0; }
.booking-recovery-card { text-align:left; }
.booking-recovery-card h1,
.booking-recovery-card .success-icon { text-align:center; }
.recovery-steps { border:1px solid rgba(39,76,119,.14); background:rgba(39,76,119,.06); border-radius:18px; padding:16px; display:grid; gap:8px; }
.recovery-steps h2 { margin:0; font-size:1.15rem; letter-spacing:-.025em; }
.recovery-steps p { margin:0; }
.recovery-steps ul { margin:0; padding-left:20px; display:grid; gap:6px; color:#344054; font-weight:700; }
.day-slots.is-loading { overflow:hidden; }
.slot-skeleton { min-height:58px; border:1px solid rgba(17,24,39,.08); border-radius:14px; padding:12px; background:linear-gradient(90deg, rgba(255,255,255,.55), rgba(242,244,247,.88), rgba(255,255,255,.55)); background-size:240% 100%; animation:bookitSkeleton 1.2s ease-in-out infinite; display:grid; gap:7px; align-content:center; }
.slot-skeleton span,
.slot-skeleton small { display:block; border-radius:999px; background:rgba(102,112,133,.16); height:10px; }
.slot-skeleton span { width:64%; margin:auto; }
.slot-skeleton small { width:44%; margin:auto; }
.slot-load-error { grid-column:1 / -1; border:1px solid #fecdca; background:#fef3f2; color:#b42318; border-radius:14px; padding:14px; font-weight:800; }
.page-loading-overlay { position:fixed; inset:0; display:none; place-items:center; background:rgba(11,18,32,.46); backdrop-filter:blur(6px); z-index:999; padding:20px; }
.page-loading-overlay.visible { display:grid; }
.page-loading-card { width:min(420px, 100%); border:1px solid rgba(255,255,255,.72); background:rgba(255,255,255,.95); border-radius:24px; box-shadow:0 30px 90px rgba(11,18,32,.26); padding:28px; text-align:center; display:grid; gap:12px; justify-items:center; }
.page-loading-card strong { font-size:1.25rem; letter-spacing:-.025em; }
.page-loading-card p { margin:0; color:var(--muted); font-weight:700; line-height:1.45; }
.loading-spinner { width:42px; height:42px; border-radius:999px; border:4px solid rgba(39,76,119,.16); border-top-color:var(--brand); animation:bookitSpin .8s linear infinite; }
@keyframes bookitSkeleton { 0% { background-position:120% 0; } 100% { background-position:-120% 0; } }
@keyframes bookitSpin { to { transform:rotate(360deg); } }

/* Subscription gating and payment warnings */
.danger-flash { border-color:#fecdca; background:#fef3f2; color:#912018; }
.danger-flash a { color:#b42318; font-weight:900; }
.subscription-gate-page { padding-top:34px; }
.subscription-gate-card { text-align:left; }
.subscription-gate-card.center { text-align:center; }
.subscription-summary-row { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; width:100%; margin:10px 0 6px; }
.subscription-status-card { border-color:#abefc6; background:#ecfdf3; color:#027a48; }
.subscription-status-card span { color:#05603a; }
.danger-card { border-color:#fecdca; background:#fef3f2; color:#912018; }
.danger-card span { color:#b42318; }
.tiny-note { font-size:.85rem; }
@media (max-width: 760px) {
  .subscription-summary-row { grid-template-columns:1fr; }
}
.positive-usage-note { margin:0; font-weight:700; color:var(--brand-dark); }
.compact-warning { margin-top:8px; }

/* Public-page customization controls */
.public-luxe-shell .button, .booking-luxe-shell .button, .embed-shell .button { background:var(--button, var(--brand)); }
.public-luxe-shell .button.secondary, .booking-luxe-shell .button.secondary, .embed-shell .button.secondary { background:#fff; color:#18375b; }
.public-banner-image { min-height:210px; border-radius:30px; background-size:cover; background-position:center; box-shadow:var(--shadow); border:1px solid rgba(255,255,255,.78); }
.booking-banner-image { min-height:150px; border-radius:24px; background-size:cover; background-position:center; border:1px solid rgba(17,24,39,.08); margin-bottom:18px; }
.powered-by-bookit { text-align:center; color:#98a2b3; font-weight:800; font-size:.84rem; margin:0 0 8px; }
.public-font-system { font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.public-font-modern { font-family:"Avenir Next", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.public-font-classic { font-family:Georgia, "Times New Roman", serif; }
.public-font-friendly { font-family:"Trebuchet MS", Inter, ui-sans-serif, system-ui, sans-serif; }
.wide-preview-item img { width:180px; height:96px; object-fit:cover; }
.integration-checklist-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:16px; margin:0 0 24px; }
.integration-step-card { display:grid; gap:12px; align-content:start; }
.integration-step-card h2 { margin:.1rem 0; font-size:1.18rem; letter-spacing:-.025em; }
.integration-step-card p { margin:0; }
.connected-summary-card { margin-bottom:20px; }
.section-nav-actions { margin-top:22px; }
@media (max-width: 1100px) { .integration-checklist-grid { grid-template-columns:repeat(2, 1fr); } }
@media (max-width: 700px) { .integration-checklist-grid { grid-template-columns:1fr; } }

.availability-month-card { border:1px solid rgba(17,24,39,.08); background:#fff; border-radius:20px; padding:18px; display:grid; gap:14px; }
.availability-month-card h3 { margin:.2rem 0; font-size:1.45rem; letter-spacing:-.035em; }
.availability-calendar-legend { display:flex; flex-wrap:wrap; gap:12px; color:var(--muted); font-weight:800; font-size:.9rem; }
.availability-calendar-legend span { display:inline-flex; align-items:center; gap:6px; }
.legend-dot { width:10px; height:10px; display:inline-block; border-radius:999px; background:#d0d5dd; }
.business-dot { background:var(--brand); }
.block-dot { background:#b42318; }
.staff-dot { background:#027a48; }
.availability-month-grid { display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); gap:8px; }
.availability-weekday { text-align:center; color:var(--muted); font-size:.78rem; text-transform:uppercase; letter-spacing:.08em; }
.availability-month-day { min-height:88px; border:1px solid rgba(17,24,39,.09); border-radius:16px; background:#fbfcff; padding:10px; text-align:left; display:grid; align-content:start; gap:8px; color:var(--text); cursor:pointer; }
.availability-month-day:disabled { cursor:default; opacity:.92; }
.availability-month-day:not(:disabled):hover { border-color:rgba(31,111,235,.42); box-shadow:0 10px 24px rgba(31,111,235,.09); }
.availability-month-day.has-block { background:#fff7f7; border-color:#fecdca; }
.availability-month-day.muted-day { opacity:.55; }
.availability-month-day .day-number { font-weight:900; }
.day-markers { display:flex; gap:5px; min-height:10px; }
.availability-month-day small { color:var(--muted); font-weight:800; }
.staff-availability-grid { display:grid; gap:16px; }
.staff-availability-card { border:1px solid rgba(17,24,39,.08); background:rgba(255,255,255,.76); border-radius:20px; padding:18px; display:grid; gap:16px; }
.staff-availability-card h3, .staff-unavailable-panel h4 { margin:.1rem 0; }
.compact-availability-days { gap:10px; }
.compact-availability-days .availability-day-card { padding:12px; }
.compact-availability-days .availability-window-row { grid-template-columns:1fr 1fr auto; }
.compact-preview-list { gap:6px; }
.compact-preview-list .weekly-preview-row { padding:10px 12px; }
.staff-unavailable-panel { border-top:1px solid rgba(17,24,39,.08); padding-top:14px; display:grid; gap:12px; }
.staff-unavailable-form { grid-template-columns:auto 1fr 1fr auto; }
.compact-calendar-item { padding:10px; }
.small-muted { font-size:.9rem; }
@media (max-width: 920px) {
  .availability-month-grid { gap:6px; }
  .availability-month-day { min-height:76px; padding:8px; }
  .staff-unavailable-form { grid-template-columns:1fr 1fr; }
}
@media (max-width: 700px) {
  .availability-month-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .availability-weekday { display:none; }
  .staff-unavailable-form, .compact-availability-days .availability-window-row { grid-template-columns:1fr; }
}
.editable-staff-card { cursor:default; }
.editable-staff-card:focus-within { border-color:rgba(31,111,235,.35); box-shadow:0 12px 30px rgba(31,111,235,.08); }

.permissions-checklist {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.checkbox-row input {
  margin-top: 0.2rem;
}

.checkbox-row span {
  display: grid;
  gap: 0.2rem;
}

.checkbox-row small {
  color: var(--muted);
  line-height: 1.35;
}

.advanced-box {
  margin-top: 0.85rem;
  padding: 0.9rem;
  border: 1px dashed var(--border);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.72);
}

.advanced-box summary {
  cursor: pointer;
  font-weight: 700;
}
.routing-option-guide { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:12px; margin:14px 0; }
.skill-chip-grid { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 14px; }
.skill-chip { border:1px solid rgba(17,24,39,.1); border-radius:999px; padding:8px 12px; background:#fff; }
.priority-builder { display:grid; gap:10px; }
.priority-row { display:grid; grid-template-columns:1fr 120px; gap:12px; align-items:end; border:1px solid rgba(17,24,39,.08); border-radius:14px; padding:12px; background:#fbfcfe; }
.priority-row small { display:block; color:var(--muted); margin-top:3px; }
.skill-tag-list { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.skill-tag { display:inline-flex; align-items:center; border-radius:999px; padding:4px 8px; background:rgba(31,111,235,.08); color:#1f4fbf; font-size:.78rem; font-weight:800; }
.compact-skill-form { margin-top:10px; }
.compact-skill-form input { width:100%; }
@media (max-width:720px) { .priority-row { grid-template-columns:1fr; } }

.booking-calendar-legend { display:flex; flex-wrap:wrap; gap:12px; margin:14px 0 18px; color:var(--muted); font-weight:800; font-size:.92rem; }
.booking-calendar-legend span { display:inline-flex; align-items:center; gap:7px; }
.booking-calendar-legend i { width:11px; height:11px; border-radius:999px; background:var(--event-color, var(--brand)); display:inline-block; }
.booking-calendar-legend .blocked-legend-dot { background:#b42318; }
.booking-month-grid { display:grid; grid-template-columns:repeat(7, minmax(135px, 1fr)); gap:10px; overflow-x:auto; padding-bottom:4px; }
.booking-month-weekday { color:var(--muted); font-weight:900; font-size:.78rem; text-transform:uppercase; letter-spacing:.08em; text-align:center; padding:0 0 4px; }
.booking-month-day { min-height:154px; border:1px solid rgba(17,24,39,.09); border-radius:18px; background:rgba(255,255,255,.72); padding:10px; display:grid; align-content:start; gap:8px; }
.booking-month-day.outside-month { opacity:.58; }
.booking-month-day.today { border-color:rgba(185,139,61,.58); box-shadow:0 12px 26px rgba(185,139,61,.10); }
.booking-month-day > header { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.booking-month-day > header strong { font-size:.95rem; }
.blocked-day-pill { font-size:.68rem; text-transform:uppercase; letter-spacing:.08em; font-weight:900; color:#b42318; background:#fee4e2; border-radius:999px; padding:3px 6px; }
.calendar-blocked-list { display:grid; gap:6px; }
.calendar-blocked-card { border:1px solid #fecdca; background:#fff7f7; color:#7a271a; border-radius:12px; padding:7px 8px; display:grid; gap:1px; }
.calendar-blocked-card strong { font-size:.78rem; }
.calendar-blocked-card small { color:#b42318; font-weight:800; font-size:.72rem; }
.month-bookings { display:grid; gap:7px; }
.month-booking-card { text-align:left; border-left:5px solid var(--event-color, var(--brand)); cursor:pointer; width:100%; }
.month-booking-card strong { color:var(--event-color, var(--brand)); }
.day-empty { font-size:.84rem; margin:.2rem 0; }
.booking-drawer-overlay { position:fixed; inset:0; z-index:80; background:rgba(11,18,32,.38); backdrop-filter:blur(8px); display:flex; justify-content:flex-end; padding:18px; }
.booking-drawer-overlay[hidden] { display:none !important; }
.booking-detail-drawer { width:min(560px, 100%); height:100%; overflow:auto; background:rgba(255,255,255,.96); border:1px solid rgba(255,255,255,.72); border-radius:24px; box-shadow:0 30px 90px rgba(11,18,32,.28); padding:24px; display:grid; align-content:start; gap:18px; }
.drawer-header { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; border-bottom:1px solid rgba(17,24,39,.08); padding-bottom:14px; }
.drawer-header h2 { margin:.1rem 0; letter-spacing:-.035em; }
.drawer-section { border-top:1px solid rgba(17,24,39,.08); padding-top:16px; display:grid; gap:10px; }
.drawer-section h3 { margin:0; font-size:1.02rem; letter-spacing:-.02em; }
.compact-detail-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); }
.compact-policy-box { padding:10px 12px; }
.reassign-drawer-form { margin-top:10px; }
.reassign-drawer-form select { min-width:220px; }
.audit-mini-list { display:grid; gap:8px; }
.audit-mini-list article { border:1px solid rgba(17,24,39,.08); border-radius:14px; padding:10px 12px; background:#fbfcfe; display:grid; gap:3px; }
.audit-mini-list span, .audit-mini-list small { color:var(--muted); }
body.booking-drawer-open { overflow:hidden; }
@media (max-width: 920px) {
  .booking-month-grid { grid-template-columns:repeat(7, minmax(170px, 1fr)); }
  .booking-month-day { min-height:140px; }
}
@media (max-width: 700px) {
  .booking-drawer-overlay { padding:8px; }
  .booking-detail-drawer { border-radius:18px; padding:18px; }
  .compact-detail-grid { grid-template-columns:1fr; }
}
.month-booking-card { font:inherit; color:var(--text); }

.impersonation-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.2rem;
  background: #fff7ed;
  border-bottom: 1px solid #fed7aa;
  color: #9a3412;
  font-weight: 700;
}
.impersonation-banner strong { display: inline-block; margin-right: 0.4rem; color: #7c2d12; }
.admin-page .admin-stats article strong { font-size: 1.65rem; }
.admin-signal-grid { margin-bottom: 1rem; }
.admin-signal { display: inline-flex; margin: 0.12rem 0.18rem 0.12rem 0; padding: 0.18rem 0.45rem; border-radius: 999px; background: rgba(31,111,235,.08); color: #1f4fbf; font-size: 0.78rem; font-weight: 800; }
.admin-business-panel { border-color: rgba(185,139,61,.28); }
.admin-actions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin-top: 1rem; }
.admin-action-card { border: 1px solid rgba(17,24,39,.08); border-radius: 18px; padding: 1rem; background: rgba(255,255,255,.74); display: grid; gap: 0.75rem; align-content: start; }
.admin-action-card h3 { margin: 0; }
.stacked-form { display: grid; gap: 0.75rem; }
.stacked-form label { display: grid; gap: 0.35rem; font-weight: 800; }
.stacked-form code { font-size: 0.82rem; background: rgba(17,24,39,.06); border-radius: 8px; padding: 0.15rem 0.32rem; }
.danger-pill { background: #fee4e2; color: #b42318; }
@media (max-width: 760px) { .impersonation-banner { align-items: flex-start; flex-direction: column; } }

.inline-help-card { margin: 0 0 1rem; }
.help-category-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:18px; margin:24px 0; }
.help-category-card { display:grid; gap:12px; align-content:start; }
.help-category-card h2 { margin:0; }
.help-category-card p { margin:0; line-height:1.55; }
.support-promise-card, .support-request-card { margin-bottom:24px; }
.support-request-card form { margin-top:18px; }
.diagnostic-message { white-space: pre-line; }
.health-card strong { text-transform: capitalize; }
.ok-health { border-color: rgba(26,127,55,.24); }
.warning-health { border-color: rgba(185,139,61,.32); }
.danger-health { border-color: rgba(176,0,32,.28); }

/* Dashboard live schedule */
.dashboard-page-title {
  margin-bottom:18px;
  align-items:flex-start;
}
.important-notifications {
  position:relative;
  z-index:12;
  min-width:260px;
}
.important-notifications summary {
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:11px 18px;
  border-radius:16px;
  background:rgba(255,255,255,.78);
  color:#18375b;
  font-weight:950;
  cursor:pointer;
  border:1px solid rgba(39,76,119,.14);
  box-shadow:0 12px 28px rgba(17,24,39,.08);
}
.important-notifications summary::-webkit-details-marker { display:none; }
.important-notifications summary::after {
  content:'⌄';
  margin-left:10px;
  font-size:.9rem;
  transition:transform .22s ease;
}
.important-notifications[open] summary::after { transform:rotate(180deg); }
.important-notifications-panel {
  position:absolute;
  right:0;
  top:calc(100% + 10px);
  width:min(430px, calc(100vw - 32px));
  display:grid;
  gap:12px;
  padding:14px;
  border:1px solid rgba(39,76,119,.12);
  border-radius:20px;
  background:rgba(255,255,255,.98);
  box-shadow:0 24px 70px rgba(17,24,39,.14);
  animation:importantNotificationsIn .18s ease both;
}
@keyframes importantNotificationsIn {
  from { opacity:0; transform:translateY(-6px); }
  to { opacity:1; transform:translateY(0); }
}
.important-notification-item {
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  align-items:start;
  padding:14px;
  border-radius:16px;
  background:rgba(248,250,252,.92);
  border:1px solid rgba(39,76,119,.10);
}
.important-notification-item div { display:grid; gap:4px; }
.important-notification-item strong { color:#18375b; }
.important-notification-item span { color:#475467; font-size:.9rem; font-weight:750; line-height:1.42; }
.important-notification-item .button { justify-self:start; }
.dashboard-live-schedule {
  display:grid;
  gap:16px;
  margin:0 0 24px;
  padding:22px;
}
.dashboard-schedule-toolbar {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.dashboard-schedule-toolbar h2 { margin:.1rem 0 .2rem; letter-spacing:-.045em; }
.dashboard-schedule-timezone { margin:0; font-weight:800; }
.dashboard-members-menu { position:relative; z-index:11; }
.dashboard-members-menu summary {
  list-style:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:40px;
  padding:9px 14px;
  border:1px solid rgba(17,24,39,.10);
  border-radius:999px;
  background:rgba(255,255,255,.74);
  color:#18375b;
  font-weight:950;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(17,24,39,.06);
}
.dashboard-members-menu summary::-webkit-details-marker { display:none; }
.dashboard-members-menu summary::after { content:'⌄'; font-size:.82rem; transition:transform .18s ease; }
.dashboard-members-menu[open] summary::after { transform:rotate(180deg); }
.dashboard-members-panel {
  position:absolute;
  right:0;
  top:calc(100% + 10px);
  width:min(300px, calc(100vw - 32px));
  display:grid;
  gap:8px;
  padding:12px;
  border:1px solid rgba(17,24,39,.10);
  border-radius:18px;
  background:rgba(255,255,255,.98);
  box-shadow:0 24px 70px rgba(17,24,39,.16);
}
.dashboard-member-option {
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:10px;
  border-radius:14px;
  background:rgba(248,250,252,.82);
  border:1px solid rgba(17,24,39,.06);
  cursor:pointer;
}
.dashboard-member-option input { margin-top:3px; }
.dashboard-member-option span { display:grid; gap:2px; }
.dashboard-member-option strong { color:#18375b; line-height:1.2; }
.dashboard-member-option small { color:#667085; font-weight:800; }

.dashboard-schedule-body {
  display:grid;
  gap:16px;
  transition:opacity .24s ease, max-height .24s ease;
  max-height:10000px;
  opacity:1;
  overflow:visible;
}
.dashboard-schedule-tabs {
  display:flex;
  align-items:center;
  gap:8px;
  width:max-content;
  max-width:100%;
  border:1px solid rgba(17,24,39,.08);
  background:rgba(255,255,255,.46);
  border-radius:999px;
  padding:6px;
  overflow:auto;
}
.dashboard-schedule-tab {
  border:0;
  background:transparent;
  color:#344054;
  border-radius:999px;
  padding:10px 15px;
  font:inherit;
  font-weight:900;
  cursor:pointer;
  white-space:nowrap;
  transition:background .24s ease, color .24s ease, box-shadow .24s ease, transform .24s ease;
}
.dashboard-schedule-tab:hover { color:var(--brand); transform:translateY(-1px); }
.dashboard-schedule-tab.active {
  background:#fff;
  color:#18375b;
  box-shadow:0 10px 25px rgba(17,24,39,.08);
}
.dashboard-schedule-panels { display:grid; }
.dashboard-schedule-panel {
  grid-area:1 / 1;
  opacity:0;
  max-height:0;
  overflow:hidden;
  pointer-events:none;
  transition:opacity .28s cubic-bezier(.22, 1, .36, 1), max-height .28s cubic-bezier(.22, 1, .36, 1);
}
.dashboard-schedule-panel.active {
  opacity:1;
  max-height:10000px;
  pointer-events:auto;
  overflow:visible;
}
.dashboard-timeline-shell {
  position:relative;
  width:100%;
  height:var(--shell-height, 604px);
  min-height:var(--shell-height, 604px);
  max-height:var(--shell-height, 604px);
  border-radius:28px;
  background:linear-gradient(135deg, rgba(255,255,255,.38), rgba(255,255,255,.14));
}
.dashboard-timeline-scroll {
  position:relative;
  height:100%;
  overflow:auto;
  border:1px solid rgba(17,24,39,.08);
  border-radius:28px;
  background:rgba(255,255,255,.28);
  scroll-behavior:auto;
}
.dashboard-timeline-spacer {
  position:sticky;
  left:0;
  top:0;
  z-index:7;
  width:176px;
  height:52px;
  background:rgba(249,250,251,.92);
  border-right:1px solid rgba(17,24,39,.08);
  border-bottom:1px solid rgba(17,24,39,.08);
  backdrop-filter:blur(12px);
}
.dashboard-hour-header {
  position:absolute;
  left:176px;
  top:0;
  z-index:5;
  display:flex;
  width:var(--timeline-width);
  height:52px;
  background:rgba(249,250,251,.72);
  border-bottom:1px solid rgba(17,24,39,.08);
  backdrop-filter:blur(10px);
}
.dashboard-hour-cell {
  flex:0 0 var(--time-cell-width, 108px);
  display:flex;
  align-items:center;
  padding:0 10px;
  border-right:1px solid rgba(17,24,39,.07);
  color:#667085;
  font-size:.76rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.055em;
}
.dashboard-schedule-grid {
  position:absolute;
  left:0;
  top:52px;
  min-width:calc(176px + var(--timeline-width));
  min-height:var(--grid-height);
}
.dashboard-schedule-row {
  display:grid;
  grid-template-columns:176px var(--timeline-width);
  min-height:var(--row-height);
}
.dashboard-employee-label {
  position:sticky;
  left:0;
  z-index:4;
  display:grid;
  align-content:center;
  gap:4px;
  min-height:var(--row-height);
  padding:14px 16px;
  border-right:1px solid rgba(17,24,39,.08);
  border-bottom:1px solid rgba(17,24,39,.07);
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(12px);
}
.dashboard-employee-label strong { color:#172033; line-height:1.15; }
.dashboard-employee-label span { color:#667085; font-size:.78rem; font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dashboard-row-track {
  position:relative;
  min-height:var(--row-height);
  border-bottom:1px solid rgba(17,24,39,.07);
  background:
    linear-gradient(90deg, rgba(39,76,119,.08) 1px, transparent 1px) 0 0 / var(--time-cell-width, 108px) 100%,
    linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.08));
}
.dashboard-appointment {
  position:absolute;
  top:12px;
  bottom:12px;
  display:grid;
  align-content:center;
  gap:3px;
  min-width:74px;
  overflow:visible;
  border:1px solid rgba(255,255,255,.42);
  border-left:5px solid var(--event-color, var(--brand));
  border-radius:16px;
  padding:10px 12px;
  color:#fff;
  background:linear-gradient(135deg, var(--event-color, var(--brand)), #18375b);
  box-shadow:0 14px 34px rgba(17,24,39,.16);
  text-decoration:none;
}
.dashboard-appointment:hover { text-decoration:none; transform:translateY(-1px); z-index:18; }
.dashboard-appointment-summary {
  display:grid;
  gap:3px;
  min-width:0;
  overflow:hidden;
}
.dashboard-appointment-summary strong,
.dashboard-appointment-summary span,
.dashboard-appointment-summary small {
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.dashboard-appointment-summary strong { font-size:.88rem; line-height:1.05; }
.dashboard-appointment-summary span { font-size:.75rem; font-weight:800; opacity:.94; }
.dashboard-appointment-summary small { font-size:.7rem; opacity:.9; font-weight:800; }
.dashboard-appointment-popover {
  position:absolute;
  left:50%;
  top:calc(100% + 10px);
  z-index:40;
  width:min(300px, 82vw);
  display:grid;
  gap:6px;
  padding:14px;
  border:1px solid rgba(255,255,255,.68);
  border-radius:18px;
  background:linear-gradient(135deg, var(--event-color, var(--brand)), #18375b);
  color:#fff;
  box-shadow:0 24px 60px rgba(17,24,39,.26);
  opacity:0;
  pointer-events:none;
  transform:translate(-50%, 6px) scale(.96);
  transition:opacity .18s ease, transform .18s ease;
}
.dashboard-appointment-popover strong { font-size:1rem; line-height:1.15; }
.dashboard-appointment-popover span, .dashboard-appointment-popover small { font-size:.82rem; font-weight:850; opacity:.92; white-space:normal; }
.dashboard-appointment:hover .dashboard-appointment-popover,
.dashboard-appointment:focus .dashboard-appointment-popover { opacity:1; transform:translate(-50%, 0) scale(1); }
.dashboard-now-line {
  position:absolute;
  top:52px;
  height:var(--grid-height);
  width:12px;
  z-index:6;
  transform:translateX(-6px);
  pointer-events:auto;
  cursor:default;
  filter:drop-shadow(0 0 8px rgba(31,111,235,.28));
}
.dashboard-now-line::before {
  content:'';
  position:absolute;
  top:0;
  bottom:0;
  left:5px;
  border-left:2px solid #1f6feb;
}
.dashboard-now-line::after {
  content:attr(data-current-time);
  position:sticky;
  top:58px;
  display:inline-flex;
  transform:translate(-50%, -50%);
  border-radius:999px;
  background:#1f6feb;
  color:#fff;
  padding:4px 8px;
  font-size:.68rem;
  font-weight:900;
  letter-spacing:.04em;
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease;
}
.dashboard-now-line:hover::after { opacity:1; }
.dashboard-month-header {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:14px;
  margin:0 0 12px;
}
.dashboard-month-header h3 { margin:0; font-size:1.35rem; letter-spacing:-.035em; }
.dashboard-month-header p { margin:0; font-weight:800; }
.dashboard-expanded-month-day {
  display:grid;
  gap:12px;
  animation:dashboardMonthFadeIn .24s cubic-bezier(.22, 1, .36, 1) both;
}
.dashboard-expanded-month-header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
}
.dashboard-expanded-month-header h3 { margin:0 0 3px; font-size:1.35rem; letter-spacing:-.035em; }
.dashboard-month-close {
  width:40px;
  height:40px;
  border:1px solid rgba(17,24,39,.1);
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#fff;
  color:#18375b;
  font:inherit;
  font-size:1.45rem;
  line-height:1;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 10px 25px rgba(17,24,39,.08);
  transition:transform .2s ease, box-shadow .2s ease;
}
.dashboard-month-close:hover { transform:translateY(-1px); box-shadow:0 14px 30px rgba(17,24,39,.12); }
@keyframes dashboardMonthFadeIn {
  from { opacity:0; transform:translateY(8px); }
  to { opacity:1; transform:translateY(0); }
}
.dashboard-month-grid {
  display:grid;
  grid-template-columns:repeat(7, minmax(122px, 1fr));
  gap:10px;
  align-items:start;
}
.dashboard-month-weekday {
  color:#667085;
  font-weight:900;
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  text-align:center;
}
.dashboard-month-day {
  min-height:132px;
  border:1px solid rgba(17,24,39,.08);
  border-radius:20px;
  background:rgba(255,255,255,.46);
  overflow:hidden;
  transition:background .24s ease, box-shadow .24s ease, transform .24s ease, border-color .24s ease;
}
.dashboard-month-day:hover { transform:translateY(-1px); border-color:rgba(31,111,235,.28); box-shadow:0 14px 30px rgba(17,24,39,.07); }
.dashboard-month-day.outside-month { opacity:.48; }
.dashboard-month-day.today { border-color:rgba(31,111,235,.38); box-shadow:0 14px 30px rgba(31,111,235,.08); }
.dashboard-month-day.expanded {
  grid-column:1 / -1;
  min-height:620px;
  background:rgba(255,255,255,.56);
  box-shadow:0 18px 50px rgba(17,24,39,.08);
}
.dashboard-month-day-button {
  width:100%;
  min-height:132px;
  border:0;
  background:transparent;
  color:var(--text);
  text-align:left;
  padding:14px;
  display:grid;
  align-content:start;
  gap:8px;
  cursor:pointer;
  font:inherit;
}
.dashboard-month-day-button span { color:#667085; font-size:.78rem; font-weight:900; text-transform:uppercase; letter-spacing:.08em; }
.dashboard-month-day-button strong { font-size:1.7rem; letter-spacing:-.05em; }
.dashboard-month-day-button small { color:#344054; font-weight:900; }
.dashboard-expanded-day {
  max-height:0;
  overflow:hidden;
  padding:0 12px;
  opacity:0;
  transform:translateY(10px);
  transition:max-height .38s cubic-bezier(.22, 1, .36, 1), opacity .38s cubic-bezier(.22, 1, .36, 1), transform .38s cubic-bezier(.22, 1, .36, 1), padding .38s cubic-bezier(.22, 1, .36, 1);
}
.dashboard-expanded-day.active {
  max-height:10000px;
  padding:0;
  opacity:1;
  transform:translateY(0);
}
.dashboard-month-day.expanded .dashboard-expanded-day {
  max-height:10000px;
  padding:0 12px 12px;
  opacity:1;
  transform:translateY(0);
}
.dashboard-expanded-day .dashboard-timeline-shell {
  border-radius:20px;
}
.dashboard-expanded-day .dashboard-timeline-scroll { border-radius:20px; }


@media (max-width: 860px) {
  .dashboard-page-title, .dashboard-schedule-toolbar, .dashboard-month-header, .dashboard-expanded-month-header { align-items:flex-start; flex-direction:column; }
  .important-notifications { width:100%; min-width:0; }
  .important-notifications summary { justify-content:space-between; }
  .important-notifications-panel { position:static; width:100%; margin-top:10px; }
  .important-notification-item { grid-template-columns:1fr; }
  .setup-card-header, .setup-card-actions { align-items:flex-start; flex-direction:column; }
  .dashboard-month-grid { grid-template-columns:repeat(7, minmax(96px, 1fr)); overflow-x:auto; padding-bottom:4px; }
  .dashboard-month-day { min-width:96px; }
}

@media (max-width: 640px) {
  .dashboard-schedule-tabs { width:100%; }
  .dashboard-schedule-tab { flex:1 0 auto; }
}

.password-toggle-field {
  position:relative;
  display:block;
  width:100%;
}
.password-toggle-field input { padding-right:44px; }
.password-visibility-toggle {
  position:absolute;
  top:50%;
  right:8px;
  width:32px;
  height:32px;
  transform:translateY(-50%);
  border:0;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:transparent;
  color:#667085;
  cursor:pointer;
}
.password-visibility-toggle:hover { background:rgba(17,24,39,.06); color:#18375b; }
.password-visibility-toggle svg { width:19px; height:19px; fill:currentColor; }


/* Dashboard public page preview editor */
.public-page-preview-card { display:grid; gap:16px; overflow:visible; }
.public-preview-heading { align-items:flex-start; }
.public-preview-editor-help {
  padding:10px 12px;
  border:1px solid rgba(39,76,119,.12);
  border-radius:16px;
  background:rgba(39,76,119,.06);
  color:#344054;
  font-weight:800;
  font-size:.9rem;
}
.public-preview-frame {
  max-height:760px;
  overflow:auto;
  border:1px solid rgba(17,24,39,.08);
  border-radius:28px;
  background:rgba(255,255,255,.36);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
}
.public-preview-surface {
  width:100%;
  min-height:720px;
  margin:0;
  padding:24px;
  border-radius:0;
  background-repeat:no-repeat;
}
.public-preview-surface.public-luxe-shell { width:100%; margin:0; }
.public-preview-banner { position:relative; cursor:pointer; }
.public-preview-banner span {
  position:absolute;
  right:14px;
  bottom:12px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(17,24,39,.62);
  color:#fff;
  font-size:.76rem;
  font-weight:900;
  opacity:0;
  transition:opacity .18s ease;
}
.public-preview-banner:hover span { opacity:1; }
.public-preview-section {
  position:relative;
  cursor:grab;
}
.public-preview-section:active { cursor:grabbing; }
.public-preview-section-bar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:-8px 0 14px;
  padding:8px 10px;
  border-radius:14px;
  background:rgba(249,250,251,.88);
  border:1px solid rgba(17,24,39,.07);
  color:#344054;
  font-size:.78rem;
  font-weight:900;
}
.public-preview-section-bar small {
  color:#667085;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.public-preview-drag-hint { color:#667085; font-size:.75rem; }
.public-preview-editable {
  outline:0;
  border-radius:8px;
  transition:box-shadow .18s ease, background .18s ease;
}
.public-preview-editable:hover, .public-preview-editable:focus {
  background:rgba(255,255,255,.18);
  box-shadow:0 0 0 3px rgba(185,139,61,.16);
}
.public-preview-editable:empty::before {
  content:attr(data-placeholder);
  color:currentColor;
  opacity:.55;
}
.public-preview-contact-grid .public-preview-editable { display:block; min-height:1.2em; }
.public-preview-social-edit {
  display:grid;
  gap:6px;
  padding:12px;
  border:1px dashed rgba(17,24,39,.13);
  border-radius:16px;
}
.public-preview-social-edit span { color:#667085; font-weight:900; font-size:.82rem; }
.public-preview-footer {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  padding-top:2px;
}
.public-style-popover[hidden] { display:none !important; }
.public-style-popover {
  position:fixed;
  inset:0;
  z-index:80;
  display:grid;
  place-items:center;
  padding:20px;
  background:rgba(17,24,39,.34);
  backdrop-filter:blur(6px);
}
.public-style-card {
  width:min(440px, 100%);
  display:grid;
  gap:16px;
  padding:18px;
  border-radius:24px;
  background:#fff;
  box-shadow:0 30px 90px rgba(17,24,39,.28);
}
.public-style-card h3 { margin:.15rem 0; letter-spacing:-.04em; }
.public-style-card label { display:grid; gap:7px; font-weight:900; }
.public-style-card input[type="color"] { min-height:44px; padding:4px; }
@media (max-width: 860px) {
  .public-preview-footer, .public-preview-heading { align-items:flex-start; flex-direction:column; }
  .public-preview-surface { padding:14px; }
}


/* Public customer-facing location-first layout */
.public-location-first-page {
  width:100%;
  min-height:100vh;
  margin:0;
  padding:46px max(20px, calc((100vw - 1180px) / 2));
  background-color:var(--public-bg, #f6f8fb);
  background-repeat:no-repeat;
  display:grid;
  gap:24px;
}
.public-page-brand-header {
  display:grid;
  justify-items:center;
  text-align:center;
  gap:14px;
  padding:14px 0 4px;
}
.public-page-brand-header h1 {
  margin:0;
  font-size:clamp(3rem, 9vw, 7rem);
  line-height:.9;
  letter-spacing:-.08em;
  color:#18375b;
}
.public-page-brand-header p { max-width:720px; margin:0; color:#344054; font-weight:800; font-size:1.05rem; line-height:1.55; }
.public-page-logo { max-width:min(520px, 78vw); max-height:170px; object-fit:contain; background:transparent; }
.public-page-logo-fallback { width:110px; height:110px; border-radius:28px; font-size:2.4rem; }
.public-window-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.public-window-heading h2 { margin:.1rem 0 .2rem; letter-spacing:-.045em; }
.public-location-window, .public-client-info-window { display:grid; gap:18px; }
.public-location-body { display:grid; gap:14px; transition:max-height .26s ease, opacity .22s ease; max-height:1200px; opacity:1; overflow:hidden; }
.public-location-window.is-minimized .public-location-body { max-height:0; opacity:0; pointer-events:none; }
.public-location-instruction { margin:0; color:#344054; font-weight:950; }
.public-location-list { display:grid; gap:14px; }
.public-location-option {
  display:grid;
  grid-template-columns:auto minmax(0, 1fr) minmax(180px, 32%);
  gap:16px;
  align-items:center;
  padding:14px;
  border:1px solid rgba(17,24,39,.10);
  border-radius:24px;
  background:rgba(255,255,255,.74);
  box-shadow:0 16px 42px rgba(17,24,39,.07);
}
.public-location-option.selected { border-color:rgba(31,111,235,.34); box-shadow:0 18px 48px rgba(31,111,235,.10); }
.public-location-selector { display:grid; place-items:center; cursor:pointer; }
.public-location-selector input { position:absolute; opacity:0; pointer-events:none; }
.public-location-selector span { width:22px; height:22px; border-radius:999px; border:2px solid rgba(39,76,119,.35); background:#fff; box-shadow:inset 0 0 0 5px #fff; }
.public-location-selector input:checked + span { background:var(--brand); border-color:var(--brand); }
.public-location-copy { display:grid; gap:5px; }
.public-location-copy strong { color:#18375b; font-size:1.05rem; line-height:1.2; }
.public-location-copy span { color:#667085; font-weight:800; line-height:1.35; }
.public-location-image {
  min-height:132px;
  border-radius:18px;
  overflow:hidden;
  background:linear-gradient(135deg, rgba(39,76,119,.16), rgba(185,139,61,.16));
  background-size:cover;
  background-position:center;
  position:relative;
  display:grid;
  place-items:center;
  color:#667085;
  font-weight:900;
}
.public-location-image a {
  position:absolute;
  left:50%;
  bottom:12px;
  transform:translateX(-50%);
  padding:8px 12px;
  border-radius:999px;
  background:rgba(17,24,39,.55);
  color:#fff;
  font-weight:950;
  text-decoration:none;
  backdrop-filter:blur(8px);
}
.public-location-image a:hover { background:rgba(17,24,39,.72); text-decoration:none; }
.public-after-location { display:none; gap:24px; }
.public-after-location.is-visible { display:grid; }
.public-client-info-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:14px; }
.public-client-info-grid label { display:grid; gap:7px; color:#344054; font-weight:900; }
.public-client-info-grid input { width:100%; }
@media (max-width: 860px) {
  .public-location-first-page { padding:28px 14px; }
  .public-window-heading { flex-direction:column; }
  .public-location-option { grid-template-columns:1fr; }
  .public-location-selector { justify-content:start; }
  .public-client-info-grid { grid-template-columns:1fr; }
}
.public-preview-surface.public-location-first-page {
  min-height:720px;
  padding:24px;
}

/* Scoped dashboard/public-page builder refinements */
.important-notifications summary {
  background:rgba(255,245,245,.92);
  border-color:rgba(220,38,38,.18);
  color:#7f1d1d;
  box-shadow:0 12px 28px rgba(127,29,29,.06);
}
.important-notifications-panel {
  border-color:rgba(220,38,38,.14);
  background:rgba(255,250,250,.98);
}
.important-notification-item {
  grid-template-columns:1fr;
  background:rgba(255,255,255,.88);
  border-color:rgba(220,38,38,.12);
  gap:12px;
}
.important-notification-item strong { color:#7f1d1d; }
.important-notification-item span { display:block; max-width:100%; }
.important-notification-item .button { justify-self:start; margin-top:2px; }

.dashboard-members-panel { width:min(260px, calc(100vw - 32px)); }
.dashboard-member-option {
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  align-items:center;
  gap:12px;
  padding:12px 14px;
}
.dashboard-member-option input { margin:0; width:18px; height:18px; justify-self:end; }
.dashboard-member-option span { min-width:0; }
.dashboard-member-option strong,
.dashboard-member-option small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.public-preview-frame-iframe {
  height:min(760px, 78vh);
  overflow:hidden;
  background:#fff;
}
.public-preview-frame-iframe iframe {
  width:100%;
  height:100%;
  border:0;
  display:block;
  background:#fff;
}

.booking-page-builder-page { display:grid; gap:24px; }
.builder-settings-card { display:grid; gap:18px; }
.form-help { color:#667085; font-size:.86rem; font-weight:750; line-height:1.4; }
.builder-preview-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:14px; }
.builder-preview-item {
  min-height:170px;
  border:1px solid rgba(17,24,39,.10);
  border-radius:24px;
  padding:16px;
  display:grid;
  align-content:end;
  gap:12px;
  color:#18375b;
  font-weight:900;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
  overflow:hidden;
}
.logo-preview-item { background:linear-gradient(135deg, rgba(248,250,252,.94), rgba(255,255,255,.74)); align-content:center; justify-items:center; text-align:center; }
.logo-preview-item img { max-width:100%; max-height:120px; object-fit:contain; }
.logo-preview-item strong { color:#667085; }

.public-location-first-page {
  background-color:var(--public-bg, #f6f8fb);
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center;
}
.public-wordmark-header { padding:26px 0 14px; }
.public-wordmark-logo {
  width:min(620px, 74vw);
  max-height:190px;
  object-fit:contain;
  display:block;
}
.public-page-brand-header h1,
.public-page-brand-header p,
.public-page-logo-fallback { display:none; }
.public-location-option.single-location-option { grid-template-columns:minmax(0, 1fr) minmax(180px, 32%); }
.public-location-expand[hidden],
.public-client-change[hidden],
.public-service-window[hidden],
.client-guest-details[hidden] { display:none !important; }
.public-client-info-window { transition:box-shadow .22s ease, background .22s ease; }
.public-client-info-window.is-minimized .public-client-info-body {
  max-height:0;
  opacity:0;
  overflow:hidden;
  pointer-events:none;
}
.public-client-info-body { display:grid; gap:18px; transition:max-height .26s ease, opacity .22s ease; max-height:3000px; opacity:1; }
.client-question-block { display:grid; gap:12px; }
.client-question-block h3 { margin:0; color:#18375b; letter-spacing:-.025em; }
.client-choice-row { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.client-guest-count-choice {
  min-height:46px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(17,24,39,.10);
  background:#fff;
  color:#18375b;
  font-weight:900;
}
.client-guest-count-choice input,
.client-radio-stack input[type="number"] {
  width:76px;
  min-height:34px;
  padding:6px 8px;
}
.client-question-divider { height:1px; background:rgba(17,24,39,.10); margin:2px 0; }
.client-radio-stack { display:grid; gap:10px; }
.client-radio-stack label {
  display:flex;
  align-items:center;
  gap:9px;
  padding:12px 14px;
  border:1px solid rgba(17,24,39,.08);
  border-radius:16px;
  background:rgba(255,255,255,.76);
  color:#344054;
  font-weight:850;
  line-height:1.35;
}
.guest-card-note {
  padding:11px 13px;
  border-radius:16px;
  background:rgba(39,76,119,.07);
  color:#344054;
  font-weight:850;
}
.guest-card-stack { display:grid; gap:14px; }
.guest-info-card {
  display:grid;
  gap:14px;
  padding:16px;
  border:1px solid rgba(17,24,39,.09);
  border-radius:22px;
  background:rgba(255,255,255,.76);
  box-shadow:0 14px 34px rgba(17,24,39,.06);
}
.guest-card-header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.guest-card-header h4 { margin:0; color:#18375b; letter-spacing:-.03em; }
.guest-fields-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; }
.guest-fields-grid label { display:grid; gap:7px; color:#344054; font-weight:900; }
.public-service-window { display:grid; gap:18px; }

@media (max-width: 860px) {
  .builder-preview-grid { grid-template-columns:1fr; }
  .public-location-option.single-location-option { grid-template-columns:1fr; }
  .client-radio-stack label { align-items:flex-start; }
  .guest-fields-grid { grid-template-columns:1fr; }
}

/* Scoped service manager, client flow, and public page refinements */
.important-notifications summary {
  background:rgba(254,242,242,.82);
  border-color:rgba(220,38,38,.14);
  color:#8a2d2d;
  box-shadow:0 12px 28px rgba(127,29,29,.045);
}
.important-notifications-panel { background:rgba(255,252,252,.98); border-color:rgba(220,38,38,.10); }
.important-notification-item { background:rgba(255,255,255,.94); border-color:rgba(220,38,38,.10); }
.important-notification-item strong { color:#7a2b2b; }
.important-notification-item .button { margin-top:4px; }
.dashboard-members-panel { width:min(230px, calc(100vw - 32px)); padding:8px; }
.dashboard-member-option { grid-template-columns:minmax(0, 1fr) auto; align-items:center; padding:10px 12px; gap:10px; }
.dashboard-member-option input { order:2; }
.dashboard-member-option span { order:1; display:grid; gap:1px; }
.dashboard-member-option small { font-size:.78rem; }
.sidebar-nav a span { display:inline-block; line-height:1.15; }

.public-location-selected-stack { display:none; }
.public-location-window.is-minimized .public-location-selected-stack { display:grid; gap:12px; }
.public-location-selected-card { grid-template-columns:minmax(0, 1fr) minmax(180px, 30%); align-items:center; gap:16px; padding:12px; border:1px solid rgba(17,24,39,.08); border-radius:20px; background:rgba(255,255,255,.66); box-shadow:0 14px 34px rgba(17,24,39,.06); }
.public-location-selected-card:not([hidden]) { display:grid; }
.public-location-image a { background:rgba(31,111,235,.52); color:#fff; border:1px solid rgba(255,255,255,.45); box-shadow:0 8px 20px rgba(31,111,235,.18); }
.public-location-image a:hover { background:rgba(31,111,235,.72); }
.public-location-option.single-location-option { cursor:pointer; }

.client-followup-grid { display:grid; grid-template-columns:minmax(0, .9fr) minmax(0, 1.1fr); gap:18px; align-items:start; }
.client-preference-block { border-left:1px solid rgba(17,24,39,.12); padding-left:18px; }
.client-option-stack { display:grid; gap:10px; }
.client-option-card {
  appearance:none;
  border:1px solid rgba(17,24,39,.09);
  border-radius:16px;
  background:rgba(255,255,255,.82);
  padding:12px 14px;
  color:#344054;
  font:inherit;
  font-weight:850;
  line-height:1.35;
  text-align:left;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  width:100%;
  box-shadow:0 10px 24px rgba(17,24,39,.04);
}
.client-option-card.selected { border-color:rgba(31,111,235,.72); box-shadow:0 0 0 3px rgba(31,111,235,.10), 0 12px 28px rgba(31,111,235,.08); background:#fff; }
.client-option-card-inline { flex-wrap:wrap; }
.client-option-card input { width:78px; min-height:34px; padding:6px 8px; }
.guest-card-section-heading { display:grid; gap:5px; }
.guest-card-section-heading h3 { margin:0; color:#18375b; letter-spacing:-.025em; }
.guest-card-section-heading p { margin:0; color:#667085; font-weight:800; line-height:1.45; }

.service-image-preview img { width:96px; height:96px; object-fit:cover; border-radius:16px; }
.upsell-builder { border:1px solid rgba(17,24,39,.09); background:#fbfcfe; border-radius:18px; padding:16px; display:grid; gap:14px; }
.upsell-builder-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.upsell-builder-heading h3 { margin:0; }
.upsell-rows { display:grid; gap:14px; }
.upsell-editor-row { display:grid; gap:12px; padding:14px; border-radius:18px; border:1px solid rgba(17,24,39,.08); background:rgba(255,255,255,.82); }

.public-service-window { display:grid; gap:18px; }
.public-service-sections { display:grid; gap:20px; }
.public-service-selection-block { display:grid; gap:12px; }
.public-service-selection-block h3 { margin:0; color:#18375b; letter-spacing:-.035em; }
.public-service-list, .public-service-category-stack { display:grid; gap:12px; }
.public-service-category { border:1px solid rgba(17,24,39,.08); border-radius:18px; background:rgba(255,255,255,.58); overflow:hidden; }
.public-service-category summary { list-style:none; cursor:pointer; padding:14px 16px; font-weight:950; color:#18375b; display:flex; justify-content:space-between; align-items:center; }
.public-service-category summary::-webkit-details-marker { display:none; }
.public-service-category summary::after { content:'⌄'; transition:transform .18s ease; }
.public-service-category[open] summary::after { transform:rotate(180deg); }
.public-service-category .public-service-list { padding:0 12px 12px; }
.public-service-card {
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto auto;
  gap:14px;
  align-items:center;
  padding:14px;
  border:1px solid rgba(17,24,39,.09);
  border-radius:20px;
  background:rgba(255,255,255,.84);
  box-shadow:0 14px 34px rgba(17,24,39,.06);
  cursor:pointer;
}
.public-service-card.selected { border-color:rgba(31,111,235,.72); box-shadow:0 0 0 3px rgba(31,111,235,.11), 0 16px 38px rgba(31,111,235,.10); }
.public-service-copy { display:grid; gap:4px; min-width:0; }
.public-service-copy strong { color:#18375b; font-size:1.02rem; line-height:1.2; }
.public-service-copy span { color:#667085; font-weight:800; line-height:1.35; }
.public-service-copy small { color:#344054; font-weight:950; }
.public-service-image img { width:78px; height:78px; object-fit:cover; border-radius:16px; display:block; }
.public-service-book-link { white-space:nowrap; }
.service-upsell-modal[hidden] { display:none !important; }
.service-upsell-modal { position:fixed; inset:0; z-index:90; display:grid; place-items:center; padding:20px; background:rgba(17,24,39,.34); backdrop-filter:blur(6px); }
.service-upsell-card { width:min(560px, 100%); display:grid; gap:14px; padding:18px; border-radius:24px; background:#fff; box-shadow:0 30px 90px rgba(17,24,39,.28); }
.service-upsell-card h3 { margin:.1rem 0; color:#18375b; letter-spacing:-.035em; }
.service-upsell-list { display:grid; gap:10px; }
.service-upsell-option { text-align:left; display:grid; gap:4px; padding:13px 14px; border:1px solid rgba(17,24,39,.09); border-radius:16px; background:rgba(248,250,252,.94); cursor:pointer; font:inherit; }
.service-upsell-option:hover, .service-upsell-option:focus { border-color:rgba(31,111,235,.62); box-shadow:0 0 0 3px rgba(31,111,235,.10); }
.service-upsell-option strong { color:#18375b; }
.service-upsell-option span { color:#667085; font-weight:800; }
.service-upsell-option small { color:#344054; font-weight:950; }

@media (max-width: 860px) {
  .client-followup-grid { grid-template-columns:1fr; }
  .client-preference-block { border-left:0; border-top:1px solid rgba(17,24,39,.12); padding-left:0; padding-top:18px; }
  .public-location-selected-card, .public-service-card { grid-template-columns:1fr; }
  .public-service-book-link { justify-self:start; }
}

/* Business locations, service manager, and public booking flow refinements */
.business-location-builder { border:1px solid rgba(17,24,39,.08); border-radius:20px; background:rgba(255,255,255,.62); padding:18px; display:grid; gap:16px; }
.business-location-builder h3 { margin:0; color:#18375b; letter-spacing:-.025em; }
.location-count-label { max-width:220px; }
.business-location-rows { display:grid; gap:14px; }
.business-location-row { border:1px solid rgba(17,24,39,.08); border-radius:18px; background:#fff; padding:16px; display:grid; gap:12px; }
.business-location-row-heading { display:flex; justify-content:space-between; align-items:center; color:#18375b; }
.service-category-manager { display:grid; gap:16px; }
.category-chip-row { display:flex; flex-wrap:wrap; gap:10px; }
.category-chip { display:inline-flex; align-items:center; gap:8px; border:1px solid rgba(31,111,235,.16); background:rgba(31,111,235,.08); color:#18375b; border-radius:999px; padding:7px 10px 7px 14px; font-weight:900; }
.category-chip form { margin:0; display:inline; }
.category-chip button { border:0; width:22px; height:22px; border-radius:999px; background:rgba(24,55,91,.12); color:#18375b; cursor:pointer; font-weight:950; }
.service-card-category-form { display:flex; align-items:end; gap:10px; flex-wrap:wrap; margin:14px 0; padding:12px; border:1px solid rgba(17,24,39,.08); border-radius:16px; background:rgba(248,250,252,.78); }
.service-card-category-form label { min-width:220px; margin:0; }
.service-editor-panel .section-title-row { cursor:default; align-items:center; }
.service-editor-toggle { margin-left:auto; min-width:40px; padding:8px 12px; }
.service-editor-section-body { display:grid; gap:16px; margin-top:18px; }
.service-editor-window-actions { display:flex; justify-content:flex-end; padding-top:4px; }
.event-setup-section.is-collapsed { padding-bottom:18px; }
.event-setup-section.is-collapsed .section-title-row { margin-bottom:0; }
.public-location-image .public-directions-button,
.public-location-image a { background:rgba(31,111,235,.50); color:#fff; border:1px solid rgba(255,255,255,.55); box-shadow:0 10px 22px rgba(31,111,235,.18); backdrop-filter:blur(6px); }
.public-location-image .public-directions-button:hover,
.public-location-image a:hover { background:rgba(31,111,235,.70); }
.client-followup-grid { grid-template-columns:minmax(0, 1fr) minmax(0, 1fr); gap:20px; }
.client-followup-grid > .client-question-block + .client-question-block { border-left:1px solid rgba(24,55,91,.14); padding-left:20px; }
.client-option-card { width:auto; min-height:0; justify-content:flex-start; text-align:left; padding:14px 16px; }
.client-option-card.selected { border-color:rgba(31,111,235,.72); box-shadow:0 0 0 3px rgba(31,111,235,.12); background:#fff; }
.client-option-card-inline { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.client-option-card-inline input { width:100px; flex:0 0 auto; }
.public-service-window.is-minimized .public-service-sections { display:none; }
.public-service-window.is-minimized { gap:12px; }
.public-service-root-list { gap:10px; }
.public-service-dropdown { background:rgba(255,255,255,.72); }
.public-duration-card { width:100%; border:1px solid rgba(17,24,39,.08); background:#fff; text-align:left; cursor:pointer; font:inherit; }
.public-duration-card:hover { transform:translateY(-1px); border-color:rgba(31,111,235,.28); }
.public-employee-window { display:grid; gap:16px; }
.public-employee-window[hidden] { display:none; }
@media (max-width:760px) {
  .client-followup-grid { grid-template-columns:1fr; }
  .client-followup-grid > .client-question-block + .client-question-block { border-left:0; border-top:1px solid rgba(24,55,91,.14); padding-left:0; padding-top:18px; }
  .service-card-category-form { align-items:stretch; }
  .service-card-category-form label { min-width:0; width:100%; }
}

/* Help Center topic buttons and subpages */
.help-category-button { text-decoration:none; color:inherit; min-height:108px; display:flex; align-items:center; justify-content:center; text-align:center; transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.help-category-button:hover, .help-category-button:focus { transform:translateY(-2px); border-color:rgba(31,111,235,.28); box-shadow:0 18px 44px rgba(17,24,39,.10); }
.help-topic-layout { display:grid; grid-template-columns:minmax(220px, 280px) 1fr; gap:18px; align-items:start; }
.help-topic-nav { display:grid; gap:8px; position:sticky; top:96px; }
.help-topic-nav a { color:#344054; text-decoration:none; font-weight:850; padding:10px 12px; border-radius:14px; }
.help-topic-nav a.active, .help-topic-nav a:hover { background:rgba(31,111,235,.10); color:#18375b; }
.help-topic-sections { display:grid; gap:16px; }
.help-topic-section h2 { margin-top:0; }
.permission-help-table { display:grid; gap:8px; margin-top:12px; }
.permission-help-row { display:grid; grid-template-columns:minmax(180px, .7fr) 1.3fr; gap:12px; padding:12px; border:1px solid rgba(17,24,39,.08); border-radius:14px; background:rgba(248,250,252,.76); }
.permission-help-row span { color:#667085; font-weight:750; line-height:1.45; }

/* Team member bar view and permissions editor */
.team-member-bar-stack { display:grid; gap:12px; margin-top:12px; }
.team-member-bar { border:1px solid rgba(17,24,39,.09); border-radius:18px; background:rgba(255,255,255,.82); overflow:hidden; box-shadow:0 12px 34px rgba(17,24,39,.05); }
.team-member-bar summary { list-style:none; cursor:pointer; display:flex; justify-content:space-between; align-items:center; gap:16px; padding:16px 18px; }
.team-member-bar summary::-webkit-details-marker { display:none; }
.team-member-bar summary > div:first-child { display:grid; gap:3px; }
.team-member-bar summary strong { color:#18375b; font-size:1.05rem; }
.team-member-bar summary span { color:#667085; font-weight:850; }
.team-member-bar-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.team-member-bar-body { border-top:1px solid rgba(17,24,39,.08); padding:16px 18px; display:grid; gap:14px; }
.permission-chip-list { display:flex; flex-wrap:wrap; gap:8px; }
.permission-chip { border:1px solid rgba(17,24,39,.08); border-radius:999px; padding:8px 10px; background:rgba(248,250,252,.88); color:#667085; font-weight:850; cursor:help; }
.permission-chip.allowed { color:#0f5132; background:rgba(16,185,129,.10); border-color:rgba(16,185,129,.26); }
.team-member-editor-form .card { overflow:visible; }
.editor-permissions-checklist { grid-template-columns:1fr; }
.qualified-service-stack { display:grid; gap:12px; }
.qualified-service-card { border:1px solid rgba(17,24,39,.08); background:rgba(248,250,252,.76); border-radius:18px; padding:14px; display:grid; gap:14px; }
.compact-checkbox-row { align-items:flex-start; }
.field-label { display:block; font-weight:900; color:#344054; margin-bottom:8px; }
.duration-chip-checklist { display:flex; flex-wrap:wrap; gap:8px; }
.confirmation-card { border-color:rgba(185,28,28,.20); }

/* Public employee selection and upsell selection */
.public-date-time-window { display:grid; gap:16px; }
.public-date-time-window[hidden] { display:none !important; }
.public-employee-window.is-minimized .public-employee-sections { display:none; }
.public-employee-window.is-minimized { gap:12px; }
.public-employee-sections { display:grid; gap:18px; }
.employee-selection-block { display:grid; gap:12px; }
.employee-selection-block h3 { margin:0; color:#18375b; letter-spacing:-.03em; }
.employee-selection-grid { display:grid; grid-template-columns:minmax(220px, .8fr) 1.2fr; gap:18px; align-items:start; }
.employee-choice-pane { border-left:1px solid rgba(17,24,39,.14); padding-left:18px; display:grid; gap:10px; }
.employee-choice-pane[hidden] { display:none !important; }
.employee-preference-pane { display:grid; gap:10px; }
.employee-preference-pane strong, .employee-choice-pane strong { color:#18375b; font-weight:950; }
.employee-checkbox-list { display:grid; gap:8px; }
.employee-checkbox-row { display:flex; align-items:center; justify-content:space-between; gap:14px; border:1px solid rgba(17,24,39,.08); border-radius:14px; padding:10px 12px; background:rgba(255,255,255,.76); font-weight:850; color:#344054; }
.employee-checkbox-row input { width:auto; min-height:0; }
.service-upsell-option.selected { border-color:rgba(31,111,235,.72); box-shadow:0 0 0 3px rgba(31,111,235,.12); background:#fff; }

@media (max-width: 860px) {
  .help-topic-layout, .employee-selection-grid { grid-template-columns:1fr; }
  .help-topic-nav { position:static; }
  .employee-choice-pane { border-left:0; padding-left:0; border-top:1px solid rgba(17,24,39,.12); padding-top:14px; }
  .permission-help-row { grid-template-columns:1fr; }
}

/* Customer booking window save-flow refinements */
.public-location-first-page .card,
.public-location-first-page .public-location-window,
.public-location-first-page .public-client-info-window,
.public-location-first-page .public-service-window,
.public-location-first-page .public-employee-window,
.public-location-first-page .public-date-time-window,
.public-location-first-page .public-summary-window {
  background:rgba(255,255,255,.67);
  backdrop-filter:blur(18px);
}
.public-location-first-page .public-window-heading h2,
.public-location-first-page .section-heading h2 { display:none; }
.public-location-image .public-directions-button,
.public-location-image a {
  padding:5px 9px;
  font-size:.78rem;
  bottom:8px;
  background:rgba(31,111,235,.50);
  color:#fff;
  border-color:rgba(255,255,255,.62);
}
.client-choice-row .button,
.client-guest-count-choice {
  min-width:190px;
  min-height:54px;
  border-radius:18px;
  justify-content:center;
  text-align:center;
}
.client-choice-row .button.selected,
.client-guest-count-choice:focus-within {
  border-color:rgba(31,111,235,.72);
  box-shadow:0 0 0 3px rgba(31,111,235,.12);
  background:#fff;
}
.client-guest-count-choice input { text-align:center; }
.public-window-actions {
  display:flex;
  justify-content:flex-end;
  align-items:center;
  padding-top:6px;
}
.public-location-window.is-minimized .public-window-actions,
.public-client-info-window.is-minimized .public-window-actions,
.public-service-window.is-minimized .public-window-actions,
.public-employee-window.is-minimized .public-window-actions,
.public-date-time-window.is-minimized .public-window-actions { display:none; }
.public-location-first-page .has-validation-error {
  box-shadow:0 0 0 3px rgba(185,28,28,.12), 0 18px 55px rgba(17,24,39,.08);
  border-color:rgba(185,28,28,.25);
}
.public-date-time-body { display:grid; gap:18px; transition:max-height .26s ease, opacity .22s ease; }
.public-date-time-window.is-minimized .public-date-time-body,
.public-summary-window[hidden] { display:none !important; }
.date-time-top-grid {
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(0, 1fr);
  gap:20px;
  align-items:start;
}
.date-time-question-block { display:grid; gap:12px; }
.date-time-question-block h3 { margin:0; color:#18375b; letter-spacing:-.025em; }
.date-time-preference-block { border-left:1px solid rgba(24,55,91,.14); padding-left:20px; }
.mini-calendar-field,
.multi-select-field { display:grid; gap:8px; color:#344054; font-weight:900; }
.multi-select-field select { min-height:128px; }
.date-time-results { display:grid; gap:14px; }
.date-openings-stack { display:grid; gap:12px; }
.date-openings-day {
  border:1px solid rgba(17,24,39,.09);
  border-radius:18px;
  background:rgba(255,255,255,.68);
  overflow:hidden;
}
.date-openings-day summary {
  list-style:none;
  display:grid;
  grid-template-columns:minmax(0, .72fr) minmax(0, 1fr);
  gap:14px;
  align-items:center;
  padding:14px 16px;
  cursor:pointer;
}
.date-openings-day summary::-webkit-details-marker { display:none; }
.date-openings-day[data-empty="true"] summary { cursor:default; }
.date-openings-day summary span { color:#18375b; font-weight:950; }
.date-openings-day summary strong { color:#111827; font-size:.94rem; line-height:1.35; }
.date-openings-day summary strong.has-openings { color:#166534; }
.date-openings-list { display:grid; gap:10px; padding:0 14px 14px; }
.date-opening-option {
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:16px;
  align-items:center;
  padding:14px;
  border:1px solid rgba(17,24,39,.08);
  border-radius:16px;
  background:rgba(248,250,252,.86);
}
.date-opening-option.selected {
  border-color:rgba(31,111,235,.72);
  box-shadow:0 0 0 3px rgba(31,111,235,.11);
  background:#fff;
}
.date-opening-people { display:grid; gap:10px; }
.date-opening-people section { display:grid; gap:3px; }
.date-opening-people strong { color:#18375b; }
.date-opening-people span,
.date-opening-people small { color:#667085; font-weight:800; }
.date-opening-total { display:grid; gap:8px; justify-items:end; text-align:right; color:#18375b; }
.summary-detail-stack { display:grid; gap:12px; }
.summary-detail-stack article {
  display:grid;
  gap:4px;
  padding:14px;
  border:1px solid rgba(17,24,39,.08);
  border-radius:16px;
  background:rgba(255,255,255,.72);
}
.summary-detail-stack strong { color:#18375b; }
.summary-detail-stack span { color:#667085; font-weight:800; }
@media (max-width: 860px) {
  .date-time-top-grid { grid-template-columns:1fr; }
  .date-time-preference-block { border-left:0; border-top:1px solid rgba(24,55,91,.14); padding-left:0; padding-top:18px; }
  .date-openings-day summary,
  .date-opening-option { grid-template-columns:1fr; }
  .date-opening-total { justify-items:start; text-align:left; }
}

/* Availability builder refinements */
.availability-panel {
  padding:0;
  overflow:hidden;
}
.availability-panel + .availability-panel { margin-top:0; }
.availability-panel-summary {
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:20px 24px;
  cursor:pointer;
  font-weight:950;
  color:#18375b;
}
.availability-panel-summary::-webkit-details-marker { display:none; }
.availability-panel-summary span { font-size:1.05rem; letter-spacing:-.015em; }
.availability-panel-summary::after {
  content:'+';
  width:34px;
  height:34px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#eef4ff;
  color:#174ea6;
  font-size:1.3rem;
  line-height:1;
}
.availability-panel[open] .availability-panel-summary::after { content:'×'; }
.availability-panel-body {
  padding:0 24px 24px;
  display:grid;
  gap:18px;
}
.availability-section-heading { margin-top:4px; }
.availability-month-day.closed-day {
  background:#eef0f3;
  color:#667085;
  border-color:#d0d5dd;
}
.availability-month-day.closed-day small { color:#667085; }
.availability-month-day.closed-day .day-number { opacity:.75; }
.business-hours-planner { gap:20px; }
.business-hours-prompt-grid {
  display:grid;
  grid-template-columns:minmax(0, .92fr) minmax(0, 1.08fr);
  gap:18px;
  align-items:start;
}
.business-hours-prompt {
  border:1px solid rgba(17,24,39,.08);
  background:rgba(248,250,252,.72);
  border-radius:18px;
  padding:16px;
  display:grid;
  gap:12px;
}
.business-hours-prompt h3 {
  margin:0;
  font-size:1rem;
  line-height:1.35;
  letter-spacing:-.018em;
}
.select-menu { position:relative; }
.select-menu summary {
  list-style:none;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  min-height:44px;
  padding:11px 13px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  cursor:pointer;
  font-weight:850;
}
.select-menu summary::-webkit-details-marker { display:none; }
.select-menu summary::after { content:'⌄'; color:#667085; }
.select-menu[open] summary::after { transform:rotate(180deg); }
.select-menu-panel {
  position:absolute;
  z-index:30;
  left:0;
  right:0;
  top:calc(100% + 8px);
  border:1px solid rgba(17,24,39,.10);
  border-radius:16px;
  background:#fff;
  box-shadow:0 24px 70px rgba(17,24,39,.16);
  padding:8px;
}
.vertical-select-stack { display:grid; gap:6px; }
.select-check-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-radius:12px;
  padding:9px 10px;
  background:#f8fafc;
}
.select-check-row input { width:auto; }
.inline-time-fields, .setup-time-fields {
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
  align-items:end;
}
.per-day-hours-fields { display:grid; gap:10px; }
.per-day-hours-row {
  display:grid;
  grid-template-columns:minmax(90px, .65fr) minmax(0, 1fr) minmax(0, 1fr);
  gap:10px;
  align-items:end;
  border:1px solid rgba(17,24,39,.07);
  border-radius:14px;
  background:#fff;
  padding:10px;
}
.per-day-hours-row strong { align-self:center; }
.minimum-staff-builder { display:grid; gap:12px; }
.minimum-staff-stack { display:grid; gap:10px; }
.minimum-staff-row {
  display:grid;
  grid-template-columns:auto minmax(0, 1fr) auto;
  gap:12px;
  align-items:center;
  border:1px solid rgba(17,24,39,.08);
  border-radius:16px;
  background:#fff;
  padding:12px;
}
.minimum-staff-sentence {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  color:#344054;
  font-weight:750;
}
.minimum-staff-sentence input,
.minimum-staff-sentence select {
  width:auto;
  min-width:84px;
  padding:8px 10px;
}
.dashboard-closed-hours {
  position:absolute;
  top:0;
  bottom:0;
  z-index:0;
  background:repeating-linear-gradient(135deg, rgba(102,112,133,.15) 0, rgba(102,112,133,.15) 8px, rgba(102,112,133,.08) 8px, rgba(102,112,133,.08) 16px);
  border-left:1px solid rgba(102,112,133,.18);
  border-right:1px solid rgba(102,112,133,.18);
  pointer-events:none;
}
.dashboard-row-track .dashboard-appointment { z-index:2; }
@media (max-width: 860px) {
  .business-hours-prompt-grid, .inline-time-fields, .setup-time-fields, .per-day-hours-row, .minimum-staff-row { grid-template-columns:1fr; }
  .select-menu-panel { position:static; margin-top:8px; }
}

/* Dashboard schedule count/row-height refinements */
.dashboard-month-day.has-bookings {
  border:3px solid rgba(17,24,39,.68);
  box-shadow:0 18px 42px rgba(17,24,39,.08);
}
.dashboard-month-day-button { position:relative; }
.dashboard-month-booking-count {
  position:absolute;
  right:14px;
  bottom:10px;
  color:#172033;
  font-size:2rem;
  line-height:1;
  font-weight:950;
  letter-spacing:-.06em;
}
.dashboard-timeline-shell { height:var(--shell-height); }
.dashboard-timeline-scroll { height:var(--shell-height); }

/* Booking Page Builder functional customization controls */
.booking-builder-form { display:grid; gap:24px; }
.builder-choice-fieldset {
  display:grid;
  gap:10px;
  padding:16px;
  border:1px solid rgba(17,24,39,.09);
  border-radius:20px;
  background:rgba(255,255,255,.58);
}
.builder-choice-fieldset legend { padding:0 4px; color:#18375b; font-weight:950; }
.builder-choice-fieldset label { display:flex; align-items:center; gap:8px; color:#344054; font-weight:850; }
.prompt-customization-section { display:grid; gap:14px; }
.prompt-editor-stack { display:grid; gap:14px; }
.prompt-editor-stack h3 { margin:8px 0 0; color:#18375b; letter-spacing:-.035em; }
.prompt-editor-row {
  display:grid;
  grid-template-columns:minmax(0, 1.15fr) minmax(220px, .9fr) auto;
  gap:14px;
  align-items:end;
  padding:14px;
  border:1px solid rgba(17,24,39,.08);
  border-radius:18px;
  background:rgba(255,255,255,.72);
}
.prompt-editor-row p { margin:4px 0; color:#344054; font-weight:900; }
.prompt-editor-row small { color:#667085; font-weight:800; line-height:1.35; }
.prompt-editor-row label { display:grid; gap:8px; font-weight:900; color:#344054; }
@media (max-width: 860px) { .prompt-editor-row { grid-template-columns:1fr; } }

/* Customer booking flow customization refinements */
.public-location-first-page .public-window-heading .muted { color:#111827; }
.public-location-first-page .is-minimized .public-window-heading .muted { color:#111827; font-weight:900; }
.booker-info-block { display:grid; gap:12px; }
.public-duration-panel {
  display:grid;
  gap:12px;
  padding:12px;
  border:1px solid rgba(24,55,91,.08);
  border-radius:18px;
  background:rgba(255,255,255,.54);
}
.public-duration-panel[hidden] { display:none !important; }
.public-duration-panel h4,
.inline-upsell-panel h4 { margin:0; color:#18375b; font-size:1rem; letter-spacing:-.025em; }
.public-service-choice-card { grid-template-columns:minmax(0, 1fr) auto; }
.public-duration-card { grid-template-columns:minmax(0, 1fr) auto; }
.inline-upsell-panel {
  display:grid;
  gap:10px;
  padding:12px;
  border:1px solid rgba(31,111,235,.14);
  border-radius:18px;
  background:rgba(31,111,235,.06);
}
.inline-upsell-panel[hidden] { display:none !important; }
.service-upsell-option.selected { border-color:rgba(31,111,235,.72); box-shadow:0 0 0 3px rgba(31,111,235,.11); background:#fff; }


/* Booking Page Builder collapsed window and functional layout polish */
.booking-page-builder-page .page-header { margin-bottom:4px; }
.booking-page-builder-page .page-header .muted { max-width:860px; }
.builder-window-header { align-items:flex-start; }
.builder-settings-card.is-collapsed { gap:0; }
.builder-settings-card.is-collapsed [data-builder-window-body],
.public-page-preview-card.is-collapsed [data-builder-window-body] {
  display:none !important;
}
.builder-window-body { padding-top:4px; }
.functional-booking-card .stack { gap:18px; }
.functional-booking-card .grid.two { gap:18px; align-items:start; }
.builder-choice-fieldset {
  gap:12px;
  padding:18px 20px;
  align-content:start;
}
.builder-choice-fieldset legend {
  float:left;
  width:100%;
  margin:0 0 8px;
  padding:0;
  line-height:1.16;
}
.builder-choice-fieldset label {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  width:fit-content;
  max-width:100%;
  min-height:28px;
  line-height:1.25;
}
.builder-choice-fieldset input[type="radio"] {
  width:auto;
  min-height:0;
  flex:0 0 auto;
}
.functional-booking-card textarea { min-height:152px; }
.prompt-customization-section { border-top:1px solid rgba(17,24,39,.08); padding-top:18px; }
.prompt-editor-stack[hidden] { display:none !important; }
.prompt-editor-stack {
  gap:12px;
  margin-top:2px;
}
.prompt-editor-row {
  grid-template-columns:minmax(0, 1fr);
  align-items:stretch;
}
.prompt-editor-row .button { justify-self:start; }
.prompt-editor-row small { display:block; max-width:760px; }
@media (min-width: 980px) {
  .prompt-editor-row {
    grid-template-columns:minmax(0, 1.05fr) minmax(260px, .95fr);
  }
  .prompt-editor-row .button { grid-column:2; }
}
@media (max-width: 860px) {
  .functional-booking-card .grid.two { grid-template-columns:1fr; }
  .builder-choice-fieldset label { width:100%; }
}

/* Customer booking Change buttons only appear on minimized, changeable windows */
.public-service-window:not(.is-minimized) [data-service-change],
.public-employee-window:not(.is-minimized) [data-employee-change],
.public-date-time-window:not(.is-minimized) [data-date-time-change] {
  display:none !important;
}
.public-service-window.is-minimized [data-service-change]:not([hidden]),
.public-employee-window.is-minimized [data-employee-change]:not([hidden]),
.public-date-time-window.is-minimized [data-date-time-change]:not([hidden]) {
  display:inline-flex;
}


/* Booking Page Builder ordering and compact functional controls */
.booking-builder-save-row { justify-content:flex-start; margin-top:2px; }
.component-order-builder {
  display:grid;
  gap:12px;
  padding:16px;
  border:1px solid rgba(17,24,39,.09);
  border-radius:20px;
  background:rgba(255,255,255,.58);
}
.component-order-builder h3 { margin:0; color:#18375b; letter-spacing:-.035em; }
.component-order-stack { display:grid; gap:8px; }
.component-order-bar {
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border:1px solid rgba(17,24,39,.10);
  border-radius:16px;
  background:#fff;
  color:#18375b;
  font:inherit;
  font-weight:950;
  cursor:grab;
  text-align:left;
}
.component-order-bar small { color:#667085; font-weight:800; }
[data-age-range-options][hidden] { display:none !important; }
.functional-booking-card .builder-window-body > .grid.two { grid-template-columns:repeat(auto-fit, minmax(290px, 1fr)); }
.functional-booking-card .builder-choice-fieldset { min-height:auto; }

/* Customer Date & Time redesign */
.public-location-first-page { display:flex; flex-direction:column; }
.public-after-location.is-visible { display:contents; }
.public-location-window,
.public-client-info-window,
.public-service-window,
.public-employee-window,
.public-date-time-window,
.public-summary-window { width:100%; }
.date-time-redesign-grid {
  display:grid;
  grid-template-columns:minmax(280px, .95fr) minmax(260px, .75fr);
  gap:18px;
  align-items:start;
}
.date-time-calendar-panel,
.date-time-ranges-panel {
  display:grid;
  gap:12px;
  padding:16px;
  border:1px solid rgba(17,24,39,.08);
  border-radius:22px;
  background:rgba(255,255,255,.62);
}
.date-time-calendar-panel h3,
.date-time-ranges-panel h3 { margin:0; color:#18375b; }
.date-calendar-title { font-weight:950; color:#18375b; text-align:center; }
.date-calendar-weekdays,
.date-calendar-grid { display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); gap:6px; }
.date-calendar-weekdays span { text-align:center; color:#667085; font-weight:900; font-size:.76rem; }
.date-calendar-empty { min-height:42px; }
.date-calendar-day {
  min-height:42px;
  border:1px solid rgba(17,24,39,.08);
  border-radius:12px;
  background:#fff;
  color:#172033;
  font-weight:900;
  cursor:pointer;
}
.date-calendar-day.has-openings { background:rgba(16,185,129,.12); border-color:rgba(16,185,129,.26); color:#087f5b; }
.date-calendar-day.removed { background:rgba(102,112,133,.12); color:#667085; border-color:rgba(102,112,133,.22); }
.date-calendar-day.selected { outline:3px solid rgba(245,158,11,.82); outline-offset:2px; }
.date-time-range-list { display:grid; gap:10px; align-content:start; max-height:360px; overflow:auto; padding-right:4px; }
.date-time-range-row {
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  align-items:center;
  gap:10px;
  width:100%;
  min-height:0;
  padding:10px 12px;
  border:1px solid rgba(17,24,39,.08);
  border-radius:14px;
  background:#fff;
  color:#087f5b;
  font-weight:900;
  cursor:pointer;
}
.date-time-range-row.inactive { color:#667085; background:rgba(102,112,133,.08); }
.date-time-range-label {
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  line-height:1.2;
  font-size:1rem;
}
.date-filter-menu {
  position:fixed;
  z-index:90;
  display:grid;
  gap:6px;
  padding:8px;
  border:1px solid rgba(17,24,39,.12);
  border-radius:14px;
  background:#fff;
  box-shadow:0 18px 52px rgba(17,24,39,.18);
}
.date-filter-menu[hidden] { display:none !important; }
.date-filter-menu button { border:0; border-radius:10px; background:rgba(31,111,235,.08); color:#18375b; font-weight:900; padding:8px 10px; cursor:pointer; text-align:left; }
.date-availability-total {
  margin:14px 0 10px;
  color:#18375b;
  font-weight:950;
}
.date-option-stack { display:grid; gap:12px; }
.date-opening-heading { display:block; margin-bottom:8px; color:#172033; }
.date-opening-upsell { display:block; margin-left:14px; color:#667085; }
.summary-checkout-form { display:grid; justify-items:center; gap:14px; margin-top:18px; }
.receipt-choice-box {
  display:grid;
  gap:4px;
  width:min(620px, 100%);
  padding:14px 16px;
  border:1px solid rgba(31,111,235,.13);
  border-radius:18px;
  background:rgba(31,111,235,.06);
  color:#18375b;
  text-align:center;
}
.receipt-choice-box span { color:#667085; font-weight:800; }
.receipt-delivery-options {
  display:grid;
  gap:10px;
  padding:16px;
  border:1px solid rgba(17,24,39,.08);
  border-radius:18px;
  background:rgba(31,111,235,.05);
}
@media (max-width: 860px) {
  .date-time-redesign-grid { grid-template-columns:1fr; }
}

/* Component order warning and calendar sync setup */
.component-order-bar.locked {
  cursor:not-allowed;
  background:rgba(248,250,252,.92);
  color:#667085;
}
.component-order-warning-modal {
  position:fixed;
  inset:0;
  z-index:2000;
  display:grid;
  place-items:center;
  background:rgba(17,24,39,.30);
  padding:24px;
}
.component-order-warning-modal[hidden] { display:none !important; }
.component-order-warning-card {
  width:min(100%, 520px);
  display:grid;
  gap:12px;
  padding:22px;
  border-radius:24px;
  border:1px solid rgba(194,124,23,.24);
  background:#fffaf0;
  color:#18375b;
  box-shadow:0 24px 70px rgba(17,24,39,.24);
}
.component-order-warning-card h3 { margin:0; font-size:1.35rem; }
.component-order-warning-card p { margin:0; color:#344054; line-height:1.55; }
.calendar-sync-step-card { display:grid; gap:18px; }
.calendar-software-picker { position:relative; display:grid; gap:8px; }
.calendar-software-options {
  display:grid;
  gap:6px;
  padding:8px;
  border:1px solid rgba(17,24,39,.10);
  border-radius:16px;
  background:#fff;
  box-shadow:0 16px 40px rgba(17,24,39,.10);
}
.calendar-software-options button {
  width:100%;
  text-align:left;
  border:0;
  border-radius:12px;
  background:rgba(31,111,235,.06);
  color:#18375b;
  padding:10px 12px;
  font-weight:900;
  cursor:pointer;
}
.calendar-software-options button:hover { background:rgba(31,111,235,.12); }
.calendar-software-unknown {
  margin:0;
  padding:12px 14px;
  border-radius:14px;
  background:#fff7ed;
  color:#9a3412;
  font-weight:800;
}
.calendar-sync-instructions { display:grid; gap:14px; }
.calendar-sync-instructions .helper-card { align-content:start; }
.calendar-sync-instructions ol { margin:10px 0 0 20px; padding:0; color:#344054; line-height:1.55; }
.calendar-sync-instructions li + li { margin-top:8px; }
.calendar-sync-form .password-toggle-field { width:100%; }

/* Scoped polish for integrations, bookings, services, and team permissions */
.payment-processor-setup { display:grid; gap:22px; }
.processor-select-label { max-width:560px; font-size:1.05rem; }
.processor-setup-panel { border-top:1px solid rgba(17,24,39,.08); padding-top:20px; display:grid; gap:18px; }
.processor-panel-heading { align-items:flex-start; }
.processor-clean-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:20px; align-items:start; }
.processor-instructions-card { border:1px solid rgba(17,24,39,.08); background:rgba(255,255,255,.78); border-radius:20px; padding:18px; display:grid; gap:14px; box-shadow:0 12px 34px rgba(16,24,40,.045); }
.processor-instructions-card h3 { margin:0; letter-spacing:-.03em; }
.processor-steps { margin:0; padding-left:0; list-style:none; display:grid; gap:10px; color:#475467; line-height:1.45; }
.processor-steps li { border:1px solid rgba(17,24,39,.07); background:#fff; border-radius:14px; padding:12px 13px; }
.readonly-copy-row { display:grid; grid-template-columns:1fr auto; gap:10px; align-items:center; }
.none-panel { border:1px solid rgba(185,139,61,.22); background:rgba(185,139,61,.08); border-radius:18px; padding:18px; }
.compact-payment-form { margin-top:0; }
.calendar-sync-step-card { display:grid; gap:20px; }
.calendar-sync-step-card > .helper-card,
.calendar-sync-step-card .calendar-software-picker,
.calendar-sync-step-card .calendar-sync-instructions,
.calendar-sync-step-card .calendar-sync-form { margin-top:0; }
.calendar-software-picker { border:1px solid rgba(17,24,39,.08); background:rgba(255,255,255,.78); border-radius:18px; padding:16px; }
.calendar-sync-instructions { display:grid; gap:18px; border:1px solid rgba(17,24,39,.08); background:rgba(255,255,255,.62); border-radius:18px; padding:18px; }
.calendar-sync-direction-grid { gap:20px; align-items:start; }
.calendar-sync-direction-grid .helper-card { background:#fff; border-color:rgba(17,24,39,.08); }
.calendar-sync-form { border-top:1px solid rgba(17,24,39,.08); padding-top:20px; }
.booking-view-toggle { gap:8px; flex-wrap:nowrap; }
.service-manager-page .service-category-manager { margin-bottom:24px; }
.service-manager-page .cards { gap:24px; }
.service-manager-page .event-card { margin:0; }
.team-permission-list { display:grid; grid-template-columns:1fr; gap:12px; }
.team-permission-list .checkbox-row { display:grid; grid-template-columns:auto minmax(0, 1fr); align-items:flex-start; gap:12px; padding:14px 16px; min-height:0; }
.team-permission-list .checkbox-row input { justify-self:start; margin:3px 0 0; width:auto; min-height:0; }
.team-permission-list .checkbox-row span { justify-self:stretch; display:grid; gap:4px; text-align:left; }
.team-permission-list .checkbox-row strong,
.team-permission-list .checkbox-row small { text-align:left; }
.advanced-box summary { cursor:pointer; font-weight:900; color:#18375b; padding:2px 0; }
@media (max-width: 900px) {
  .processor-clean-grid { grid-template-columns:1fr; }
  .readonly-copy-row { grid-template-columns:1fr; }
  .booking-view-toggle { flex-wrap:wrap; }
}
.payment-processor-setup [hidden],
.calendar-sync-instructions[hidden],
.calendar-software-options[hidden],
.calendar-software-unknown[hidden] { display:none !important; }

/* Payment processor setup route chooser */
.processor-question-block { display:grid; gap:14px; }
.processor-question { margin:0; font-size:1.15rem; font-weight:900; letter-spacing:-.025em; color:var(--text); }
.processor-route-options { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:12px; }
.processor-route-card { border:1px solid rgba(17,24,39,.10); background:rgba(255,255,255,.84); border-radius:18px; padding:14px; display:flex; align-items:center; gap:10px; cursor:pointer; min-height:68px; box-shadow:0 10px 26px rgba(16,24,40,.05); }
.processor-route-card input { width:auto; margin:0; flex:0 0 auto; }
.processor-route-card span { font-weight:900; line-height:1.25; color:var(--text); }
.processor-route-card:hover { border-color:rgba(31,111,235,.34); box-shadow:0 14px 34px rgba(31,111,235,.08); }
.processor-route-card.selected { border-color:rgba(31,111,235,.60); background:rgba(31,111,235,.07); }
.processor-action-card { align-content:start; }
.processor-check-list { list-style:none; padding:0; margin:0; display:grid; gap:10px; color:#475467; }
.processor-check-list li { border:1px solid rgba(17,24,39,.07); background:#fff; border-radius:14px; padding:12px 13px; font-weight:800; }
.three-card-grid { grid-template-columns:1.1fr .9fr .85fr; }
@media (max-width: 1080px) { .processor-route-options, .three-card-grid { grid-template-columns:1fr; } }

/* Top bar dark mode control */
.theme-toggle { border:1px solid rgba(39,76,119,.16); background:rgba(255,255,255,.82); color:#18375b; border-radius:999px; min-height:34px; padding:7px 11px; font:inherit; font-size:.84rem; font-weight:900; cursor:pointer; box-shadow:0 10px 24px rgba(17,24,39,.06); }
.theme-toggle:hover { filter:brightness(.97); }

/* Dark mode */
html[data-theme="dark"] {
  --bg:#0b1220;
  --card:rgba(15,23,42,.88);
  --text:#f8fafc;
  --muted:#b8c2d6;
  --line:rgba(226,232,240,.14);
  --brand:#7fb3ff;
  --gold:#e1b967;
  --shadow:0 24px 80px rgba(0,0,0,.34);
}
html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 12% -10%, rgba(225,185,103,.12), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(127,179,255,.15), transparent 32%),
    linear-gradient(180deg, #0b1220 0%, #101827 52%, #111827 100%);
  color:var(--text);
}
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .dashboard-sidebar,
html[data-theme="dark"] .account-menu-panel {
  background:rgba(15,23,42,.90);
  border-color:rgba(226,232,240,.12);
  box-shadow:0 12px 40px rgba(0,0,0,.28);
}
html[data-theme="dark"] .brand,
html[data-theme="dark"] nav a,
html[data-theme="dark"] .account-menu summary,
html[data-theme="dark"] .logout-link { color:var(--text); }
html[data-theme="dark"] .card,
html[data-theme="dark"] .public-card,
html[data-theme="dark"] .booking-info,
html[data-theme="dark"] .booking-widget,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .success-card,
html[data-theme="dark"] .empty,
html[data-theme="dark"] .tile,
html[data-theme="dark"] .feature-grid article,
html[data-theme="dark"] .stats article,
html[data-theme="dark"] .form-section,
html[data-theme="dark"] .processor-route-card,
html[data-theme="dark"] .processor-instructions-card,
html[data-theme="dark"] .processor-check-list li,
html[data-theme="dark"] .selected-box,
html[data-theme="dark"] .availability-month-card,
html[data-theme="dark"] .staff-availability-card,
html[data-theme="dark"] .booking-setup,
html[data-theme="dark"] .calendar-card,
html[data-theme="dark"] .price-preview {
  background:rgba(15,23,42,.82);
  border-color:rgba(226,232,240,.13);
  color:var(--text);
}
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background:rgba(2,6,23,.72);
  color:var(--text);
  border-color:rgba(226,232,240,.18);
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color:#8391a8; }
html[data-theme="dark"] .muted,
html[data-theme="dark"] .lead,
html[data-theme="dark"] .tile span,
html[data-theme="dark"] .public-event span,
html[data-theme="dark"] .public-event small,
html[data-theme="dark"] .processor-steps,
html[data-theme="dark"] .processor-check-list { color:var(--muted); }
html[data-theme="dark"] .button.secondary,
html[data-theme="dark"] .theme-toggle { background:rgba(15,23,42,.96); color:#dbeafe; border-color:rgba(127,179,255,.28); }
html[data-theme="dark"] .processor-route-card.selected { background:rgba(127,179,255,.13); border-color:rgba(127,179,255,.58); }
html[data-theme="dark"] code { background:rgba(226,232,240,.12); color:#e2e8f0; }
html[data-theme="dark"] .flash { background:rgba(30,64,175,.20); border-color:rgba(147,197,253,.28); color:#bfdbfe; }

/* Date & Time expanded calendar controls */
.date-time-month-scroll {
  max-height:none;
  overflow:visible;
  padding-right:2px;
}
.date-time-month-scroll.is-expanded {
  max-height:calc(var(--visible-expanded-months, 2) * 360px);
  overflow-y:auto;
}
.date-time-month-view { display:grid; gap:16px; }
.date-calendar-month { display:grid; gap:10px; }
.date-calendar-actions { display:flex; justify-content:flex-end; }
.date-calendar-tooltip {
  position:fixed;
  z-index:1000;
  max-width:220px;
  padding:8px 10px;
  border:1px solid rgba(17,24,39,.12);
  border-radius:12px;
  background:#172033;
  color:#fff;
  box-shadow:0 14px 36px rgba(17,24,39,.22);
  font-weight:900;
  font-size:.82rem;
  pointer-events:none;
}
.date-calendar-tooltip[hidden] { display:none !important; }
.date-time-range-row input[type="checkbox"] { cursor:pointer; pointer-events:auto; justify-self:end; width:18px; height:18px; }
.date-opening-option.selected { border-color:rgba(31,111,235,.38); box-shadow:0 14px 34px rgba(31,111,235,.12); }
[data-expanded-calendar-months][hidden] { display:none !important; }

/* Scoped customer booking summary and receipt updates */
.appointment-summary-window {
  border: 2px solid rgba(31, 111, 235, .28);
  background: linear-gradient(135deg, rgba(255,255,255,.88), rgba(239,246,255,.86));
  box-shadow: 0 28px 80px rgba(23, 32, 51, .16);
}
.appointment-summary-window .public-window-heading {
  border-bottom: 1px solid rgba(31, 111, 235, .18);
  padding-bottom: 16px;
}
.appointment-summary-window .summary-detail-stack article {
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(31,111,235,.14);
}
.receipt-notification-bar {
  width: 100%;
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 800;
  border: 1px solid #badbcc;
  background: #f0fff4;
  color: #027a48;
}
.receipt-notification-bar.error {
  border-color: #f5c2c7;
  background: #fff5f5;
  color: #b42318;
}

/* Scoped customer tab statistics and notes */
.customer-range-filter {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  align-content: start;
}
.customer-range-checkbox {
  align-items: center;
}
.customer-date-range-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}
.customer-date-range-line input {
  width: auto;
  min-width: 150px;
}
.customer-metrics-v2 {
  align-items: stretch;
}
.customer-metrics-v2 span {
  min-width: 150px;
}
.customer-metrics-v2 .customer-total-appointments {
  transform: scale(1.04);
  border-color: rgba(31, 111, 235, .28);
  box-shadow: 0 14px 30px rgba(31, 111, 235, .10);
}
.customer-metrics-v2 .customer-total-appointments strong {
  font-size: 2.15rem;
}
.customer-summary-grid-v2 {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.customer-cancel-split {
  display: grid;
  gap: 8px;
}
.customer-cancel-split div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(228,231,236,.9);
}
.customer-cancel-split small {
  color: #667085;
  font-weight: 800;
  text-transform: none;
}
.customer-notes-attachments-card {
  display: grid;
  gap: 22px;
}
.customer-note-entry-form,
.note-type-manager,
.customer-note-entry,
.customer-local-files {
  border: 1px solid #e4e7ec;
  background: rgba(255,255,255,.7);
  border-radius: 22px;
  padding: 18px;
}
.note-type-manager summary {
  cursor: pointer;
  font-weight: 900;
  color: #172033;
}
.customer-note-log {
  display: grid;
  gap: 14px;
}
.customer-note-entry.is-pinned {
  border-color: rgba(31,111,235,.35);
  box-shadow: inset 5px 0 0 rgba(31,111,235,.55);
}
.customer-note-entry.is-hidden-note {
  opacity: .72;
  border-style: dashed;
}
.note-admin-actions form {
  margin: 0;
}
.note-attachment-list,
.local-file-preview,
[data-customer-local-file-list] {
  display: grid;
  gap: 8px;
}
.note-attachment-list span,
.local-file-preview span,
.local-file-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f6f8fb;
  border: 1px solid #e4e7ec;
  font-weight: 800;
}
.card-lite {
  box-shadow: none;
}

/* Scoped business policy controls */
.business-policy-list,
.business-policy-row,
.crm-policy-box {
  display: grid;
  gap: 14px;
}
.business-policy-row,
.crm-policy-box {
  border: 1px solid #e4e7ec;
  border-radius: 22px;
  padding: 18px;
  background: rgba(255,255,255,.72);
}
.inline-number-input {
  width: 90px;
  display: inline-block;
  margin: 0 6px;
  padding: 8px 10px;
}

/* Customer tab requested compact range and summary formatting */
.customer-range-filter { align-self:end; }
.customer-range-checkbox { display:inline-flex !important; align-items:center; justify-content:flex-start; gap:8px; width:max-content; max-width:100%; margin:0; }
.customer-range-checkbox input { width:auto; margin:0; flex:0 0 auto; }
.customer-date-range-line[hidden] { display:none !important; }
.customer-date-range-line { margin-top:0; }
.customer-summary-grid-v2 { grid-template-columns:repeat(auto-fit, minmax(108px, 1fr)); gap:8px; align-items:start; }
.customer-summary-grid-v2 .customer-compact-summary { padding:7px 9px; border-radius:12px; min-height:0; gap:1px; align-content:center; }
.customer-summary-grid-v2 .customer-compact-summary strong { font-size:.88rem; line-height:1.15; }
.customer-summary-grid-v2 .customer-compact-summary .muted { font-size:.72rem; line-height:1.2; }

/* Requested collapsible and compact scheduling controls */
.staff-availability-card {
  padding: 0;
  overflow: hidden;
  gap: 0;
}
.staff-availability-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
}
.staff-availability-summary::-webkit-details-marker { display: none; }
.staff-availability-summary::after {
  content: '+';
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #eef4ff;
  color: #174ea6;
  font-weight: 950;
  line-height: 1;
  flex: 0 0 auto;
}
.staff-availability-card[open] .staff-availability-summary::after { content: '×'; }
.staff-availability-card-body {
  border-top: 1px solid rgba(17,24,39,.08);
  padding: 18px;
  display: grid;
  gap: 16px;
}
.team-window-list {
  display: grid;
  gap: 14px;
}
.customer-detail-window {
  padding: 0;
  overflow: hidden;
}
.customer-detail-window .availability-panel-body > :first-child,
.team-window-card .availability-panel-body > :first-child,
.collapsible-settings-card .availability-panel-body > :first-child {
  margin-top: 0;
}
.service-time-unit-field {
  grid-template-columns: minmax(0, 1fr) auto;
}
.service-time-unit-field select {
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  height: 100%;
  background: #f9fafb;
  color: var(--muted);
  font-weight: 900;
  min-width: 108px;
  padding: 0 10px;
}
.service-location-list[hidden] { display: none !important; }
.service-location-list {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  margin-top: 2px;
}
.service-location-list > p { margin: 0; }
.service-location-options {
  display: grid;
  gap: 10px;
}
.service-location-option {
  display: grid;
  grid-template-columns: auto 74px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(17,24,39,.09);
  border-radius: 16px;
  padding: 10px;
  background: #fff;
}
.service-location-option input {
  width: auto;
  margin: 0;
}
.service-location-thumb {
  width: 74px;
  height: 52px;
  border-radius: 12px;
  background: #eef2f6 center / cover no-repeat;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 900;
  overflow: hidden;
}
.service-location-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.service-location-copy small {
  color: var(--muted);
  font-weight: 800;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .service-location-option { grid-template-columns: auto 56px minmax(0, 1fr); }
  .service-location-thumb { width: 56px; height: 44px; }
  .service-time-unit-field select { min-width: 96px; }
}

/* Requested customer filter layout tightening */
.customer-filters {
  grid-template-columns: minmax(240px, 1.2fr) minmax(150px, .7fr) minmax(180px, .7fr) minmax(270px, 1fr) auto;
}
.customer-range-filter {
  grid-column: auto;
  gap: 6px;
}
@media (max-width: 1120px) {
  .customer-filters { grid-template-columns: 1fr 1fr; }
  .customer-range-filter { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .customer-filters { grid-template-columns: 1fr; }
}
