/* Bookluit / Navy, Mint & Coral
 * Opt-in compatibility layer: load last, then add bookluit-modern to body.
 * State, routing, payment widgets, map canvases and media geometry stay owned
 * by their existing components. !important bridges legacy visual overrides.
 */
body.bookluit-modern {
  --bl-ink: #172b43;
  --bl-muted: #6b7d8c;
  --bl-forest: #087e75;
  --bl-forest-hover: #176458;
  --bl-mint: #ecf8f5;
  --bl-paper: #f3f6f7;
  --bl-surface: #ffffff;
  --bl-border: #dce5e9;
  --bl-coral: #ff715f;
  --bl-coral-ink: #b34537;
  --bl-navy: #193e55;
  --bl-black: #101318;
  --bl-danger: #b13b36;
  --bl-radius: 16px;
  --bl-radius-control: 10px;
  --bl-shadow: 0 4px 20px rgb(23 61 56 / 4%);
  --bl-font: 'DM Sans', 'Segoe UI', sans-serif;
  --ink: var(--bl-ink);
  --muted: var(--bl-muted);
  --green: var(--bl-forest);
  --coral: var(--bl-coral);
  --cream: var(--bl-paper);
  --line: var(--bl-border);
  --navy: var(--bl-navy);
  --blue: var(--bl-mint);
  background: var(--bl-paper) !important;
  color: var(--bl-ink) !important;
  font-family: var(--bl-font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* White navigation, navy actions and soft mint/coral accents from the reference. */
@media(min-width: 861px) {
  html body.bookluit-modern header.top > nav { background: transparent !important; }
  html body.bookluit-modern .top nav .nav:not(.active) { color: var(--bl-navy) !important; background: transparent !important; }
}
html body.bookluit-modern :is(.owner-hero,.mobile-profile-hero) { background: var(--bl-navy) !important; color: white !important; }
html body.bookluit-modern :is(.owner-hero,.mobile-profile-hero) :is(h1,h2,p,.eyebrow) { color: white !important; }

/* Header layout is owned by bookluit-shell.ts. No floating account strip. */
html body.bookluit-modern header.top { height: auto !important; min-height: 76px; gap: 20px; padding: 14px 4vw !important; }
html body.bookluit-modern header.top > nav { margin-left: auto; top: auto !important; }
html body.bookluit-modern header.top #utilityBar {
  position: static !important; inset: auto !important; width: auto !important;
  max-width: none !important; margin: 0 !important; padding: 0 !important;
  min-height: 0 !important; gap: 10px !important; flex-wrap: nowrap !important;
  background: transparent !important; border: 0 !important; box-shadow: none !important;
}
html body.bookluit-modern #utilityBar :is(#portalSwitch,.lang-trigger) {
  min-width: 0 !important; min-height: 40px !important; font-size: 12px !important;
  padding: 9px 12px !important; border-radius: 10px !important; box-shadow: none !important;
}
html body.bookluit-modern #utilityBar #accountBtn { position: static !important; margin: 0 !important; }
html body.bookluit-modern header.top #accountBtn { background: var(--bl-navy) !important; color: white !important; border: 0 !important; border-radius: 10px !important; box-shadow: none !important; font-weight: 600 !important; }
@media(min-width: 861px) {
  html body.bookluit-modern header.top { flex-wrap: nowrap !important; }
  html body.bookluit-modern header.top > nav { position: static !important; flex-wrap: nowrap !important; gap: 6px !important; }
}
@media(max-width: 860px) {
  html body.bookluit-modern header.top { gap: 12px; min-height: 72px; }
  html body.bookluit-modern header.top > nav {
    position: fixed !important; inset: 82px 16px auto 16px !important;
    width: auto !important; height: auto !important; min-height: 0 !important;
    max-height: calc(100dvh - 112px) !important; margin: 0 !important; padding: 18px !important;
    overflow-y: auto !important; border: 1px solid var(--bl-border) !important;
    border-radius: 16px !important; background: white !important; transform: none !important;
    box-shadow: 0 16px 40px rgb(23 61 56 / 12%) !important;
    flex-direction: column !important; gap: 8px !important;
    display: none !important; visibility: hidden !important; pointer-events: none !important; opacity: 0 !important;
  }
  html body.bookluit-modern header.top.menu-open > nav { display: flex !important; visibility: visible !important; pointer-events: auto !important; opacity: 1 !important; }
  html body.bookluit-modern header.top > nav::before { position: static !important; margin: 0 0 8px !important; padding: 0 !important; height: auto !important; }
  html body.bookluit-modern header.top > #accountBtn { margin: 0 0 0 auto !important; position: static !important; padding: 10px 14px !important; }
  html body.bookluit-modern header.top #utilityBar { flex-direction: column; align-items: stretch !important; padding-top: 16px !important; border-top: 1px solid var(--bl-border) !important; }
  html body.bookluit-modern header.top #utilityBar .lang-list { position: relative; width: 100%; max-height: 220px; overflow-y: auto; }
  html body.bookluit-modern header.top #utilityBar #portalSwitch { flex: none !important; }
}

/* Navigation: retain the existing desktop/mobile layout and menu behaviour. */
html body.bookluit-modern .top {
  background: #ffffff !important;
  border-bottom: 1px solid var(--bl-border) !important;
  box-shadow: none !important;
}
html body.bookluit-modern .top .logo {
  color: var(--bl-ink) !important;
  letter-spacing: -1.2px;
  font-weight: 700;
}
html body.bookluit-modern .top .logo span { color: var(--bl-coral) !important; }
html body.bookluit-modern .top :is(.nav, .lang-trigger, .mobile-menu-toggle) {
  border-radius: var(--bl-radius-control) !important;
  color: var(--bl-muted) !important;
  box-shadow: none !important;
  font-weight: 600;
}
html body.bookluit-modern .top nav .nav.active {
  background: var(--bl-mint) !important;
  color: var(--bl-forest) !important;
}

/* Clear typographic hierarchy, replacing decorative serif dashboard titles. */
html body.bookluit-modern :is(.dashboard-head, .panel, .bookluit-customer-header,
  .mobile-profile-title, .plans-intro) h1,
html body.bookluit-modern :is(.content, .dashboard) h2,
html body.bookluit-modern :is(.box-card, .copy) h3 {
  font-family: var(--bl-font) !important;
  color: var(--bl-ink) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: -.035em !important;
}
html body.bookluit-modern :is(.dashboard-head, .panel, .bookluit-customer-header) h1 {
  font-size: clamp(28px, 3.5vw, 40px) !important;
}
html body.bookluit-modern :is(.content, .dashboard) h2 { font-size: clamp(24px, 2.6vw, 32px); }
html body.bookluit-modern :is(.box-card, .copy) h3 { font-size: 20px; }
html body.bookluit-modern :is(.dashboard, .panel, .content, .bookluit-customer-shell) .muted {
  color: var(--bl-muted) !important;
  line-height: 1.65;
}
html body.bookluit-modern :is(.dashboard, .panel, .content, .plans-intro) .eyebrow {
  color: var(--bl-forest) !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}

/* Named action classes only: icon controls, switches and map buttons excluded. */
html body.bookluit-modern :is(.primary, .bookluit-primary-action,
  .bookluit-explore-button, .checkout-primary, .bw-next, .bl-salon-book) {
  min-height: 44px;
  padding: 12px 20px;
  border: 1px solid var(--bl-navy) !important;
  border-radius: var(--bl-radius-control) !important;
  background: var(--bl-navy) !important;
  color: #fff !important;
  box-shadow: none !important;
  font-family: var(--bl-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  transition: background-color 160ms ease, border-color 160ms ease;
}
html body.bookluit-modern :is(.primary, .bookluit-primary-action,
  .bookluit-explore-button, .checkout-primary, .bw-next, .bl-salon-book):hover:not(:disabled) {
  background: var(--bl-forest-hover) !important;
  border-color: var(--bl-forest-hover) !important;
  transform: none !important;
}
html body.bookluit-modern :is(.outline, .bookluit-secondary-action, .bw-back) {
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--bl-border) !important;
  border-radius: var(--bl-radius-control) !important;
  background: var(--bl-surface) !important;
  color: var(--bl-ink) !important;
  box-shadow: none !important;
  font-weight: 600;
}
html body.bookluit-modern .link { color: var(--bl-forest) !important; }
html body.bookluit-modern :is(.primary, .checkout-primary, .bw-next):disabled {
  opacity: .5;
  cursor: not-allowed;
}
html body.bookluit-modern :is(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid #298477 !important;
  outline-offset: 3px !important;
}

/* Explicit input types avoid altering hidden fields, uploaders and toggles. */
html body.bookluit-modern :is(.panel, .dashboard, .bookluit-customer-shell, .checkout-fields)
  :is(input:not([type]), input[type="text"], input[type="email"], input[type="password"],
  input[type="tel"], input[type="number"], input[type="date"], input[type="time"],
  input[type="search"], select, textarea) {
  min-height: 46px;
  max-width: 100%;
  border: 1px solid #bdcec3 !important;
  border-radius: var(--bl-radius-control) !important;
  background: var(--bl-surface) !important;
  color: var(--bl-ink) !important;
  font: 400 16px/1.5 var(--bl-font) !important;
  box-shadow: none !important;
}
html body.bookluit-modern :is(.panel, .dashboard, .checkout-fields) label {
  color: var(--bl-ink);
  font-size: 13px;
  font-weight: 600;
}

/* Surfaces: leave image wrappers and modal positioning untouched. */
html body.bookluit-modern :is(.panel, .metric, .step, .bookluit-booking-card,
  .bookluit-favourite-card, .bookluit-waitlist-card, .profile-menu-card,
  .profile-verify-card, .bl-salon-section, .checkout-pane, .checkout-cart),
html body.bookluit-modern .box-card:not(.ai-cockpit):not(.stripe-card),
html body.bookluit-modern #explore .card {
  background: var(--bl-surface) !important;
  color: var(--bl-ink) !important;
  border: 1px solid var(--bl-border) !important;
  border-radius: var(--bl-radius) !important;
  box-shadow: var(--bl-shadow) !important;
}
html body.bookluit-modern .panel { padding: clamp(22px, 4vw, 36px); }
html body.bookluit-modern :is(.bookluit-booking-service, .bookluit-favourite-copy) h3 {
  color: var(--bl-ink) !important;
  font-family: var(--bl-font);
}
html body.bookluit-modern :is(.service, .booking-row, .automation, .hours-row,
  .bl-salon-service, .checkout-line) { border-color: var(--bl-border) !important; }

/* Authentication shares the quiet white/navy business landing theme. */
html body.bookluit-modern #auth {
  padding: 24px !important;
  background: radial-gradient(ellipse at 85% 20%,#eef0ff80,transparent 60%),radial-gradient(ellipse at 10% 90%,#edf7ff80,transparent 60%),#fafbfd !important;
}
html body.bookluit-modern #auth .auth-modern-shell {
  width: min(1080px,100%) !important;
  grid-template-columns: minmax(0,3fr) minmax(0,2fr) !important;
  min-height: 0 !important;
  border: 1px solid #e7eaf1 !important;
  border-radius: 24px !important;
  box-shadow: 0 16px 48px #19244506 !important;
}
html body.bookluit-modern #auth .auth-form-side { padding: 28px 48px !important; gap: 24px; }
html body.bookluit-modern #auth .auth-back-home { width:100%;max-width:360px;margin:0 auto;font-weight:750; }
html body.bookluit-modern #auth .auth-brand-mark { box-shadow:0 4px 12px #1924450a; }
html body.bookluit-modern #auth .auth-form-wrap { margin:0 auto !important;padding:0 !important;max-width:360px; }
html body.bookluit-modern #auth .auth-form-wrap > .eyebrow:empty { display:none; }
html body.bookluit-modern #auth .auth-form-wrap h1 { font-size:clamp(26px,2.7vw,34px) !important;font-weight:700 !important;line-height:1.15 !important;letter-spacing:-.04em !important;color:#171e39; }
html body.bookluit-modern #auth .auth-description { font-size:14px !important;margin:10px 0 22px; }
html body.bookluit-modern #auth .auth-input-group { margin-bottom:14px;gap:6px; }
html body.bookluit-modern #auth .auth-glass-input { background:#fff !important;border-radius:12px !important;box-shadow:none !important;min-height:46px; }
html body.bookluit-modern #auth .auth-glass-input input { font:400 16px var(--bl-font) !important;min-height:46px;padding:11px 14px !important; }
html body.bookluit-modern #auth .auth-glass-input:focus-within { border-color:#8b86b9 !important;box-shadow:0 0 0 3px #8174ce15 !important;transform:none !important; }
html body.bookluit-modern #auth :is(#forgotPassword,#authModeToggle) { color:#324762 !important;font-size:12px !important;font-weight:600 !important; }
html body.bookluit-modern #auth .auth-options input { accent-color:#173f57; }
html body.bookluit-modern #auth :is(.auth-submit,.modern-google) { border-radius:12px !important;min-height:46px !important;transform:none !important;box-shadow:none !important;font-size:14px !important; }
html body.bookluit-modern #auth .auth-submit { background:#171e39 !important; }
html body.bookluit-modern #auth .auth-submit span { margin-left:12px; }
html body.bookluit-modern #auth .auth-divider { margin:16px 0; }
html body.bookluit-modern #auth .auth-mode-copy { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px; }
html body.bookluit-modern #auth #authModeToggle { padding:11px 20px;min-height:44px;border:1px solid #dce2eb;border-radius:12px;background:#fff; }
html body.bookluit-modern #auth #authModeToggle:hover { background:#f5f6fb; }
html body.bookluit-modern #auth #authMsg:empty { display:none; }
html body.bookluit-modern #auth .auth-visual-side { display:flex;flex-direction:column;justify-content:center;gap:28px;margin:10px !important;padding:32px 24px !important;min-height:0;border-radius:18px !important;background:radial-gradient(ellipse at 90% 80%,#e6dff580,transparent 70%),linear-gradient(135deg,#f2f7fc,#f5f4fb) !important; }
html body.bookluit-modern #auth .auth-visual-side::before { content:none !important; }
html body.bookluit-modern #auth .auth-visual-overlay { position:static !important;padding:0 !important; }
html body.bookluit-modern #auth .auth-visual-overlay h2 { color:#171e39;font-size:clamp(24px,2.6vw,32px) !important;line-height:1.15 !important;font-weight:650 !important;letter-spacing:-.04em !important; }
html body.bookluit-modern #auth .auth-visual-overlay > span { color:#738095 !important;font-size:13px;line-height:1.7;margin-top:12px; }
.auth-product-preview { background:#fff;border:1px solid #e1e5ee;border-radius:16px;padding:18px;color:#192e45;box-shadow:0 18px 36px #293b6510; }
.auth-product-brand { display:flex;align-items:center;font-size:15px;font-weight:750;border-bottom:1px solid #edf0f5;padding-bottom:14px;letter-spacing:-.5px; }
.auth-product-brand > span:first-child { color:#ff7568; }
.auth-product-avatar { margin-left:auto;width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:#192e45;color:#fff;font-size:10px; }
.auth-product-heading { display:flex;align-items:center;justify-content:space-between;margin:18px 0;gap:8px; }
.auth-product-heading b { font-size:17px;letter-spacing:-.5px; }
.auth-product-heading span { font-size:9px;background:#f1effb;border-radius:6px;padding:5px 8px; }
.auth-product-days { display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin-bottom:18px;text-align:center; }
.auth-product-days > span { padding:8px 2px;border-radius:8px;font-size:8px;color:#7f8b9b;line-height:1.8; }
.auth-product-days b { font-size:12px;font-weight:600; }
.auth-product-days .selected { background:#192e45;color:#fff; }
.auth-product-event { display:flex;gap:10px;align-items:flex-start;margin:10px 0; }
.auth-product-event time { font-size:8px;color:#8290a1;line-height:2; }
.auth-product-event > div { flex:1;padding:10px;border-radius:7px;border-left:2px solid #339887;background:#eaf5ef;font-size:10px; }
.auth-product-event b { display:block;font-size:10px; }
.auth-product-event small { display:block;font-size:8px;margin-top:4px; }
.auth-product-event.violet > div { background:#efebfb;border-color:#9b8acb; }
.auth-product-event.is-open > div { background:#fff;border:1px dashed #dce4e8;color:#8a94a1;font-size:9px; }
.auth-product-footer { font-size:9px;margin-top:16px;color:#768599; }
.auth-product-footer span { color:#15917d;margin-right:5px; }
html body.bookluit-modern #auth .auth-product-caption { margin:-12px 0 0;text-align:center;font-size:10px;color:#8992a3; }
body.bookluit-modern:has(#auth.show) .bookluit-support-launcher { min-height:38px;padding:0 12px;font-size:12px;box-shadow:0 4px 16px #19244512;background:#fff;color:#324762;border:1px solid #e0e5ed;right:16px;bottom:14px; }
body.bookluit-modern:has(#auth.show) .bookluit-support-launcher > span:first-child { width:22px;height:22px;font-size:13px; }
@media(max-width:760px) {
  html body.bookluit-modern #auth { padding:16px 12px !important; }
  html body.bookluit-modern #auth .auth-modern-shell { display:block !important;min-height:0 !important; }
  html body.bookluit-modern #auth .auth-form-side { padding:26px 22px 32px !important;min-height:0 !important;gap:28px; }
  html body.bookluit-modern #auth .auth-visual-side { display:none !important; }
}

/* Customer discovery: editorial headline, calm background, practical finder. */
html body.bookluit-modern #explore .hero {
  padding: clamp(36px, 5vw, 70px) 24px 36px !important;
  background: radial-gradient(ellipse at 0% 100%,#ffe7e1 0,transparent 55%),radial-gradient(ellipse at 100% 0%,#ddf2ed 0,transparent 60%),#f7faf9 !important;
  border-bottom: 1px solid var(--bl-border) !important;
}
html body.bookluit-modern #explore .hero .wrap { max-width: 1000px !important; }
html body.bookluit-modern #explore .hero .wrap h1 {
  max-width: 780px !important;
  margin: 0 0 26px !important;
  color: var(--bl-ink) !important;
  -webkit-text-fill-color: var(--bl-ink) !important;
  font: 700 clamp(32px, 4.2vw, 52px)/1.12 var(--bl-font) !important;
  letter-spacing: -.045em !important;
}
html body.bookluit-modern #explore .bookluit-finder-bar {
  padding: 12px !important;
  gap: 10px !important;
  background: var(--bl-surface) !important;
  border: 1px solid var(--bl-border) !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 32px rgb(23 61 56 / 6%) !important;
}
html body.bookluit-modern #explore :is(.bookluit-finder-field, .bookluit-finder-location) {
  border-color: var(--bl-border) !important;
  border-radius: var(--bl-radius-control) !important;
  background: #fafbf8 !important;
}
html body.bookluit-modern #explore .bookluit-finder-submit {
  min-height: 48px !important;
  border-radius: var(--bl-radius-control) !important;
  background: var(--bl-navy) !important;
  color: #fff !important;
  box-shadow: none !important;
}
html body.bookluit-modern #explore .content { padding-top: 36px !important; }
html body.bookluit-modern #explore .copy { padding: 20px; }

/* Business workspace: retain sidebar/tab state and preserve real values. */
html body.bookluit-modern :is(#dashboard, #control) { background: var(--bl-paper); }
html body.bookluit-modern :is(#dashboard, #control) .dashboard {
  max-width: 1240px;
  padding-inline: 24px;
}
html body.bookluit-modern :is(#dashboard, #control) .dash-nav {
  background: var(--bl-surface) !important;
  border: 1px solid var(--bl-border) !important;
  border-radius: var(--bl-radius) !important;
  box-shadow: none !important;
}
html body.bookluit-modern :is(#dashboard, #control) .dash-nav button {
  min-height: 44px;
  color: var(--bl-muted) !important;
  border-radius: var(--bl-radius-control) !important;
  font-size: 14px;
}
html body.bookluit-modern :is(#dashboard, #control) .dash-nav button.active {
  background: var(--bl-mint) !important;
  color: var(--bl-forest) !important;
  box-shadow: inset 3px 0 var(--bl-forest) !important;
}
html body.bookluit-modern :is(#dashboard, #control) .metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
html body.bookluit-modern :is(#dashboard, #control) .metric { min-width: 0; padding: 22px; }
html body.bookluit-modern :is(#dashboard, #control) .metric::after { content: none !important; }
html body.bookluit-modern :is(#dashboard, #control) .metric span {
  color: var(--bl-muted) !important;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .04em;
}
html body.bookluit-modern :is(#dashboard, #control) .metric b {
  margin-top: 12px;
  color: var(--bl-ink) !important;
  font-size: clamp(24px, 2.5vw, 32px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}

/* Selected booking choices have a border as well as a colour distinction. */
html body.bookluit-modern :is(.payment-option, .service-option) {
  border-color: var(--bl-border) !important;
  border-radius: 12px !important;
  background: var(--bl-surface) !important;
  color: var(--bl-ink) !important;
  box-shadow: none !important;
}
html body.bookluit-modern :is(.payment-option, .service-option).active,
html body.bookluit-modern :is(.bw-time, .bw-day).selected {
  background: var(--bl-mint) !important;
  color: var(--bl-forest) !important;
  border-color: var(--bl-forest) !important;
  box-shadow: inset 0 0 0 1px var(--bl-forest) !important;
}
html body.bookluit-modern #bookluitLegalFooter {
  background: var(--bl-surface) !important;
  border-color: var(--bl-border) !important;
  color: var(--bl-muted) !important;
}
html body.bookluit-modern #bookluitLegalFooter a { color: var(--bl-forest) !important; }

/* Owner operations: visual treatment only, including the profile dialog shell. */
html body.bookluit-modern #adminPage { background: var(--bl-paper); }
html body.bookluit-modern .owner-console { color: var(--bl-ink); }
html body.bookluit-modern .owner-hero {
  background: var(--bl-forest);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: none;
}
html body.bookluit-modern .owner-hero h1 {
  font: 700 clamp(30px, 3.5vw, 44px)/1.15 var(--bl-font);
  letter-spacing: -.04em;
}
html body.bookluit-modern .owner-hero .eyebrow { color: #efb5a7 !important; }
html body.bookluit-modern .owner-hero p { color: #d0e2d9; }
html body.bookluit-modern :is(.owner-card, .owner-metric, .owner-tabs) {
  background: var(--bl-surface);
  border-color: var(--bl-border);
  border-radius: var(--bl-radius);
  box-shadow: var(--bl-shadow);
}
html body.bookluit-modern :is(.owner-business-row, .owner-ticket-row) {
  background: #fafbf8;
  border-color: var(--bl-border);
  border-radius: 12px;
}
html body.bookluit-modern .owner-card-head h2 {
  color: var(--bl-ink);
  font: 700 22px/1.25 var(--bl-font);
  letter-spacing: -.025em;
}
html body.bookluit-modern :is(.owner-card-head p, .owner-metric span,
  .owner-metric small, .owner-business-row small, .owner-booking-row small,
  .owner-ticket-row small, .owner-empty, .owner-loading) { color: var(--bl-muted); }
html body.bookluit-modern .owner-metric { min-width: 0; }
html body.bookluit-modern .owner-metric b {
  font-size: clamp(24px, 2.5vw, 30px);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
html body.bookluit-modern .owner-metric span { font-weight: 600; line-height: 1.5; }
html body.bookluit-modern :is(.owner-tabs button, .owner-actions button,
  .owner-ticket-row button, .owner-hero button) {
  min-height: 44px;
  border-radius: var(--bl-radius-control);
  font-weight: 600;
}
html body.bookluit-modern .owner-tabs button.active {
  background: var(--bl-mint);
  color: var(--bl-forest);
  box-shadow: inset 0 -2px var(--bl-forest);
}
html body.bookluit-modern .owner-actions .primary-action {
  background: var(--bl-forest);
  border-color: var(--bl-forest);
  color: #fff;
}
html body.bookluit-modern .owner-actions .danger {
  color: var(--bl-danger);
  border-color: #e9b9b3;
}
html body.bookluit-modern .owner-tools :is(input, select) {
  min-height: 46px;
  font-size: 16px;
  color: var(--bl-ink) !important;
  background: var(--bl-surface) !important;
  border-color: #bdcec3 !important;
  border-radius: var(--bl-radius-control);
}
html body.bookluit-modern .owner-profile-modal > section { border-radius: 20px; }
html body.bookluit-modern .owner-profile-modal header { background: var(--bl-forest); }
html body.bookluit-modern .owner-profile-contact :is(a, b) {
  background: var(--bl-mint);
  color: var(--bl-forest);
}

/* Standalone staff app: #app is its stable root, not a generic app-wide card. */
html body.bookluit-modern:has(> main#app) > header {
  background: var(--bl-surface);
  border-color: var(--bl-border);
}
html body.bookluit-modern:has(> main#app) > header > a { color: var(--bl-ink); }
html body.bookluit-modern:has(> main#app) > header > a span { color: var(--bl-coral); }
html body.bookluit-modern #app :is(h1, h2, h3) {
  font-family: var(--bl-font);
  color: var(--bl-ink);
  line-height: 1.2;
  letter-spacing: -.035em;
}
html body.bookluit-modern #app :is(p, small, .muted) { color: var(--bl-muted); }
html body.bookluit-modern #app .card {
  border: 1px solid var(--bl-border);
  border-radius: var(--bl-radius);
  background: var(--bl-surface);
  box-shadow: var(--bl-shadow);
}
html body.bookluit-modern #app .card.hero { background: var(--bl-mint); }
html body.bookluit-modern #app :is(button, input:not([type="checkbox"]), select) {
  min-height: 44px;
  border-radius: var(--bl-radius-control);
  font-family: var(--bl-font);
}
html body.bookluit-modern #app :is(input:not([type="checkbox"]), select) {
  font-size: 16px;
  background: var(--bl-surface);
  color: var(--bl-ink);
  border-color: #bdcec3;
}
html body.bookluit-modern #app nav button.active {
  background: var(--bl-forest);
  border-color: var(--bl-forest);
  color: #fff;
}
html body.bookluit-modern #app :is(.item, .workspace) { border-color: var(--bl-border); }
html body.bookluit-modern:has(> main#app) > #notice {
  background: var(--bl-forest);
  color: #fff;
}

/* Admin/business HTML entry points are redirect loaders, not separate portals. */
html body.bookluit-modern > main.loader .brand { color: var(--bl-ink); }
html body.bookluit-modern > main.loader .brand span { color: var(--bl-coral); }
html body.bookluit-modern > main.loader p { color: var(--bl-muted); }
html body.bookluit-modern > main.loader .dot {
  background: var(--bl-forest);
  box-shadow: 0 0 0 8px rgb(23 76 66 / 10%);
}
@media (max-width: 1050px) {
  html body.bookluit-modern .owner-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  html body.bookluit-modern .owner-metric { padding: 16px; }
  html body.bookluit-modern .owner-metric:last-child { grid-column: auto; }
}
@media (min-width: 861px) {
  html body.bookluit-modern #explore .bookluit-finder-bar {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto !important;
    align-items: stretch;
  }
  html body.bookluit-modern #explore :is(.bookluit-finder-field,
    .bookluit-finder-location, .bookluit-finder-submit) { grid-column: auto !important; }
}
@media (max-width: 999px) {
  html body.bookluit-modern :is(#dashboard, #control) .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 600px) {
  html body.bookluit-modern #explore .hero { padding: 32px 18px 26px !important; }
  html body.bookluit-modern #explore .hero .wrap h1 { font-size: 32px !important; }
  html body.bookluit-modern :is(#dashboard, #control) .dashboard { padding-inline: 16px; }
  html body.bookluit-modern :is(#dashboard, #control) .metric-grid { gap: 10px; }
  html body.bookluit-modern :is(#dashboard, #control) .metric { padding: 15px; }
  html body.bookluit-modern :is(#dashboard, #control) .metric span { font-size: 10px; }
  html body.bookluit-modern :is(#dashboard, #control) .metric b { font-size: 25px; }
  html body.bookluit-modern :is(#dashboard, #control) .dashboard-head {
    gap: 16px;
    flex-wrap: wrap;
  }
  html body.bookluit-modern .panel { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html body.bookluit-modern > main.loader .dot { animation: none; }
  html body.bookluit-modern :is(.primary, .bookluit-primary-action,
    .bookluit-explore-button, .checkout-primary, .bw-next, .bl-salon-book) {
    transition: none !important;
    transform: none !important;
  }
}
