﻿:root {
  --accent:#9A8979;
  --bg:#F7F5F1;
  --surface:#FCFBF9;
  --surface-soft:#F1EEE9;
  --ink:#242321;
  --muted:#74706A;
  --soft:#A19B93;
  --line:#E7E2DA;
  --line-strong:#D8D1C8;
  --danger:#9A4E48;
  --warning:#A76628;
  --serif:"Instrument Serif", Georgia, "Times New Roman", serif;
  --sans:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing:border-box; }
html { background:var(--bg); }
body { margin:0; color:var(--ink); font-family:var(--sans); font-size:15px; -webkit-font-smoothing:antialiased; }
a { color:inherit; }
button, input, select, textarea { font:inherit; }

.app-body { min-height:100vh; background:linear-gradient(180deg, #FBFAF7 0, var(--bg) 46%, #F5F2ED 100%); }
.app-shell { min-height:100vh; }

.app-header {
  height:104px;
  display:grid;
  grid-template-columns:160px minmax(0, 1fr) auto;
  align-items:center;
  gap:34px;
  padding:0 clamp(28px, 4vw, 68px);
  border-bottom:1px solid var(--line);
  background:rgba(252,251,249,.86);
  backdrop-filter:blur(14px);
  position:relative;
  z-index:20;
}

.brand {
  font-family:var(--serif);
  font-size:44px;
  line-height:1;
  letter-spacing:-1.5px;
  text-decoration:none;
}
.brand::after { content:"."; color:var(--accent); }

.desktop-nav { display:flex; align-items:stretch; gap:38px; height:100%; }
.desktop-nav a {
  position:relative;
  display:flex;
  align-items:center;
  color:var(--ink);
  font-size:14px;
  text-decoration:none;
  white-space:nowrap;
}
.desktop-nav a::after {
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:2px;
  background:transparent;
  transform:scaleX(.45);
  transition:background .18s ease, transform .18s ease;
}
.desktop-nav a:hover::after, .desktop-nav a.active::after { background:var(--accent); transform:scaleX(1); }

.company-menu { display:flex; align-items:center; gap:14px; white-space:nowrap; }
.company-name { font-size:14px; font-weight:500; }
.company-avatar {
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--accent);
  color:#fff;
  font-family:var(--serif);
  font-size:21px;
}

.page { width:min(1540px, calc(100% - clamp(56px, 8vw, 136px))); margin:0 auto; padding:56px 0 90px; }

/* Today */
.today-page { max-width:1510px; }
.today-intro {
  display:grid;
  grid-template-columns:170px minmax(0, 1fr) auto;
  gap:38px;
  align-items:start;
  margin-bottom:18px;
}
.date-signature { display:flex; flex-direction:column; align-items:flex-start; color:var(--accent); padding-top:6px; }
.date-day { font-family:var(--serif); font-size:86px; line-height:.82; letter-spacing:-3px; }
.date-month { margin-top:18px; font-size:13px; letter-spacing:.19em; font-weight:500; }
.date-rule { width:48px; height:1px; background:var(--line-strong); margin:24px 0 17px; }
.date-weekday { color:var(--muted); font-size:14px; text-transform:capitalize; }
.today-heading h1, .page-heading h1 {
  margin:0;
  font-family:var(--serif);
  font-size:64px;
  line-height:.98;
  letter-spacing:-1.8px;
  font-weight:400;
}
.today-heading { padding-top:2px; }

.primary-action {
  display:inline-flex;
  min-height:46px;
  align-items:center;
  justify-content:center;
  border:1px solid transparent;
  border-radius:8px;
  background:var(--accent);
  color:#fff;
  padding:0 20px;
  font-size:14px;
  font-weight:500;
  text-decoration:none;
  cursor:pointer;
  box-shadow:0 8px 22px rgba(36,35,33,.06);
  transition:transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.primary-action:hover { transform:translateY(-1px); filter:brightness(.96); box-shadow:0 11px 24px rgba(36,35,33,.09); }
.button-control { min-width:138px; }

.flow-day { margin-left:208px; }
.flow-item {
  position:relative;
  display:grid;
  grid-template-columns:86px 24px minmax(280px, 1fr) minmax(120px, 220px);
  gap:18px;
  min-height:140px;
  border-bottom:1px solid var(--line);
  padding:27px 0 29px;
}
.flow-time { font-family:var(--serif); font-size:22px; line-height:1.1; padding-top:3px; font-variant-numeric:tabular-nums; }
.flow-rail { position:relative; }
.flow-rail::before {
  content:"";
  position:absolute;
  left:50%;
  top:-27px;
  bottom:-30px;
  width:1px;
  background:var(--line);
}
.flow-item:first-child .flow-rail::before { top:10px; }
.flow-item:last-child .flow-rail::before { bottom:50%; }
.flow-rail span {
  position:absolute;
  z-index:2;
  left:50%;
  top:8px;
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--accent);
  transform:translateX(-50%);
  box-shadow:0 0 0 5px var(--bg);
}
.flow-copy { min-width:0; }
.flow-copy h2 { margin:0; font-family:var(--serif); font-size:27px; line-height:1.04; font-weight:400; }
.flow-primary { margin-top:8px; color:var(--muted); font-size:15px; }
.flow-meta { margin-top:8px; color:var(--muted); font-size:13px; }
.flow-state { align-self:start; padding-top:2px; text-align:left; }
.capacity-value { font-size:17px; font-weight:500; font-variant-numeric:tabular-nums; }
.capacity-value:empty { display:none; }
.opening-value { min-height:18px; margin-top:7px; color:var(--warning); font-size:13px; }
.opening-value:empty { display:none; }
.confirmed-value { min-height:18px; margin-top:8px; color:var(--accent); font-size:13px; }
.confirmed-value:empty { display:none; }

.empty-state { padding:70px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.empty-state h2 { margin:0 0 8px; font-family:var(--serif); font-size:30px; font-weight:400; }
.empty-state p { margin:0; color:var(--muted); }

.day-summary {
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  margin:46px 0 0 208px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.summary-item { position:relative; display:grid; grid-template-columns:44px auto; grid-template-rows:auto auto; column-gap:15px; padding:30px 36px; }
.summary-item + .summary-item::before { content:""; position:absolute; left:0; top:24px; bottom:24px; width:1px; background:var(--line); }
.summary-symbol { grid-row:1 / 3; position:relative; width:40px; height:40px; display:block; border-radius:50%; background:var(--surface-soft); color:var(--muted); }
.summary-bookings::before { content:""; position:absolute; left:12px; top:11px; width:14px; height:13px; border:1.5px solid currentColor; border-radius:3px; }
.summary-bookings::after { content:""; position:absolute; left:15px; top:8px; width:8px; height:5px; border-left:1.5px solid currentColor; border-right:1.5px solid currentColor; }
.summary-occupancy::before { content:""; position:absolute; left:12px; top:10px; width:7px; height:7px; border:1.5px solid currentColor; border-radius:50%; box-shadow:9px 2px 0 -1px var(--surface-soft), 9px 2px 0 0 currentColor; }
.summary-occupancy::after { content:""; position:absolute; left:9px; top:22px; width:20px; height:8px; border:1.5px solid currentColor; border-bottom:0; border-radius:12px 12px 0 0; }
.summary-openings::before, .summary-openings::after { content:""; position:absolute; left:50%; top:50%; background:currentColor; transform:translate(-50%,-50%); border-radius:2px; }
.summary-openings::before { width:14px; height:1.5px; }
.summary-openings::after { width:1.5px; height:14px; }
.summary-item strong { font-family:var(--serif); font-weight:400; font-size:36px; line-height:1; }
.summary-item > span:last-child { margin-top:5px; color:var(--muted); font-size:12px; }

/* Generic page heading */
.page-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:30px; margin-bottom:52px; }
.page-kicker { display:block; margin-bottom:13px; color:var(--accent); font-size:11px; font-weight:600; letter-spacing:.17em; }
.page-heading p { margin:13px 0 0; color:var(--muted); font-size:15px; }

/* Services list */
.services-list-section { border-top:1px solid var(--line); }
.list-heading { min-height:52px; display:flex; align-items:center; justify-content:flex-end; border-bottom:1px solid var(--line); color:var(--muted); font-size:12px; }
.service-row {
  display:grid;
  grid-template-columns:minmax(0, 1fr) 180px 150px;
  gap:32px;
  align-items:center;
  min-height:110px;
  border-bottom:1px solid var(--line);
  padding:20px 0;
}
.service-copy { min-width:0; }
.service-title-line { display:flex; align-items:center; gap:13px; min-width:0; }
.service-title-line h2 { margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-family:var(--serif); font-size:26px; line-height:1.1; font-weight:400; }
.service-meta, .service-price { margin-top:8px; color:var(--muted); font-size:13px; }
.service-price { margin:0; font-size:14px; }
.status { display:inline-flex; align-items:center; gap:6px; color:var(--muted); font-size:11px; white-space:nowrap; }
.status::before { content:""; width:6px; height:6px; border-radius:50%; background:var(--soft); }
.status-active { color:var(--accent); }
.status-active::before { background:var(--accent); }
.row-actions { display:flex; align-items:center; justify-content:flex-end; gap:17px; }
.row-actions a { border:0; background:none; padding:0; color:var(--muted); font-size:12px; cursor:pointer; text-decoration:none; }
.row-actions a:first-child { color:var(--ink); }
.row-actions a:hover { color:var(--accent); }
.text-action { color:var(--accent); text-decoration:none; font-weight:500; }

/* Service editor */
.service-editor { margin:0 0 72px; padding:0 0 52px; border-bottom:1px solid var(--line); }
.editor-heading { margin-bottom:38px; }
.editor-heading h2 { margin:0; font-family:var(--serif); font-size:42px; line-height:1; font-weight:400; }
.form-section { display:grid; grid-template-columns:190px minmax(0, 1fr); gap:32px; padding:32px 0; border-top:1px solid var(--line); }
.form-section-title { color:var(--muted); font-size:12px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; padding-top:3px; }
.form-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:22px; }
.form-grid-main { grid-template-columns:repeat(3, minmax(0, 1fr)); }
.form-grid-payment { grid-template-columns:repeat(3, minmax(0, 1fr)); }
.field { display:flex; min-width:0; flex-direction:column; gap:8px; }
.field-wide { grid-column:1 / -1; }
.field label, .assignment-block > label { font-size:12px; font-weight:600; }
.field label span { color:var(--muted); font-weight:400; }
.field small, .muted-block { color:var(--soft); font-size:11px; line-height:1.45; }
.input {
  width:100%;
  min-height:48px;
  border:1px solid var(--line-strong);
  border-radius:8px;
  background:rgba(252,251,249,.8);
  color:var(--ink);
  padding:11px 13px;
  outline:none;
  font-size:14px;
  transition:border .15s ease, box-shadow .15s ease, background .15s ease;
}
.input-large { font-size:16px; }
.input:focus { border-color:var(--accent); background:#fff; box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 11%, transparent); }
.textarea { min-height:92px; resize:vertical; }
.input-with-suffix { display:flex; align-items:center; overflow:hidden; border:1px solid var(--line-strong); border-radius:8px; background:rgba(252,251,249,.8); }
.input-with-suffix .input { min-width:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
.input-with-suffix:focus-within { border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 11%, transparent); }
.input-with-suffix > span { flex:0 0 auto; color:var(--muted); padding:0 13px 0 4px; font-size:12px; }
.assignment-grid { display:grid; grid-template-columns:1fr 1fr; gap:32px; grid-column:2; }
.assignment-block { min-width:0; }
.check-list {
  list-style:none;
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px 18px;
  margin:15px 0 0;
  padding:0;
}
.check-list li {
  display:flex;
  align-items:center;
  min-width:0;
  gap:10px;
  color:var(--ink);
  font-size:13px;
}
.check-list input[type=checkbox] {
  flex:0 0 auto;
  width:16px;
  height:16px;
  margin:0;
  accent-color:var(--accent);
}
.check-list label {
  margin:0;
  cursor:pointer;
  line-height:1.45;
}
.muted-block { display:block; margin-top:12px; }
.advanced { margin-top:2px; padding:22px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.advanced summary { cursor:pointer; list-style:none; font-size:13px; font-weight:600; }
.advanced summary::-webkit-details-marker { display:none; }
.advanced summary::after { content:"+"; float:right; color:var(--muted); font-size:19px; font-weight:400; }
.advanced[open] summary::after { content:"-"; }
.advanced-grid { margin:25px 0 6px 222px; grid-template-columns:repeat(3, minmax(0, 1fr)); }
.form-footer { display:flex; align-items:center; justify-content:space-between; gap:24px; padding-top:27px; }
.form-actions { display:flex; align-items:center; gap:20px; }
.secondary-link { color:var(--muted); text-decoration:none; font-size:13px; }
.toggle-check { font-size:13px; }
.toggle-check input { margin-right:8px; accent-color:var(--accent); }
.alert { margin:0 0 22px; padding:13px 15px; border-radius:8px; font-size:13px; }
.alert-error { border:1px solid #DCCDC9; background:#FBF6F4; color:var(--danger); }

.mobile-nav { display:none; }

@media (max-width:1100px) {
  .app-header { grid-template-columns:130px minmax(0,1fr) auto; gap:20px; padding:0 30px; }
  .desktop-nav { gap:24px; }
  .page { width:calc(100% - 60px); }
  .flow-day, .day-summary { margin-left:150px; }
  .today-intro { grid-template-columns:112px minmax(0,1fr) auto; }
  .date-day { font-size:70px; }
  .form-section { grid-template-columns:140px minmax(0,1fr); }
  .assignment-grid { grid-column:2; }
  .advanced-grid { margin-left:172px; }
}

@media (max-width:820px) {
  body { padding-bottom:84px; }
  .app-header {
    height:86px;
    display:flex;
    justify-content:space-between;
    padding:0 22px;
  }
  .brand { font-size:39px; }
  .desktop-nav { display:none; }
  .company-name { display:none; }
  .company-avatar { width:38px; height:38px; font-size:19px; }
  .page { width:calc(100% - 36px); padding:40px 0 50px; }

  .today-intro { grid-template-columns:94px minmax(0,1fr); gap:20px; margin-bottom:15px; }
  .date-signature { grid-row:1 / span 2; }
  .date-day { font-size:68px; }
  .date-month { margin-top:14px; font-size:11px; }
  .date-rule { margin:18px 0 13px; }
  .today-heading h1, .page-heading h1 { font-size:49px; letter-spacing:-1px; }
  .today-intro .primary-action { grid-column:2; justify-self:start; margin-top:3px; }

  .flow-day { margin-left:0; }
  .flow-item { grid-template-columns:64px 18px minmax(0,1fr); gap:12px; min-height:150px; padding:26px 0; }
  .flow-time { font-size:19px; }
  .flow-copy h2 { font-size:24px; }
  .flow-state { grid-column:3; display:flex; align-items:center; flex-wrap:wrap; gap:6px 16px; padding-top:7px; }
  .opening-value, .confirmed-value { margin-top:0; }
  .flow-rail::before { top:-26px; bottom:-27px; }

  .day-summary { margin:34px 0 0; }
  .summary-item { grid-template-columns:1fr; grid-template-rows:auto auto auto; justify-items:center; text-align:center; padding:22px 10px; row-gap:5px; }
  .summary-symbol { grid-row:auto; width:34px; height:34px; font-size:16px; margin-bottom:6px; }
  .summary-item strong { font-size:31px; }

  .page-heading { align-items:flex-start; margin-bottom:38px; }
  .page-heading p { max-width:270px; }
  .services-page .page-heading .primary-action { margin-top:5px; }
  .service-row { grid-template-columns:minmax(0,1fr) auto; gap:10px 18px; min-height:102px; }
  .service-price { grid-column:1; }
  .row-actions { grid-column:2; grid-row:1 / span 2; flex-direction:column; align-items:flex-end; }

  .form-section { grid-template-columns:1fr; gap:18px; }
  .form-grid, .form-grid-main, .form-grid-payment { grid-template-columns:1fr 1fr; }
  .form-section-title { padding-top:0; }
  .assignment-grid { grid-column:auto; grid-template-columns:1fr 1fr; }
  .advanced-grid { margin-left:0; grid-template-columns:1fr 1fr; }

  .mobile-nav {
    position:fixed;
    z-index:50;
    left:0;
    right:0;
    bottom:0;
    height:76px;
    display:grid;
    grid-template-columns:repeat(5, 1fr);
    border-top:1px solid var(--line);
    background:rgba(252,251,249,.94);
    backdrop-filter:blur(16px);
  }
  .mobile-nav a { position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; color:var(--muted); font-size:10px; text-decoration:none; }
  .mobile-nav a.active { color:var(--accent); }
  .mobile-nav a.active::after { content:""; position:absolute; bottom:5px; width:25px; height:2px; border-radius:2px; background:var(--accent); }
  .mobile-nav-mark { position:relative; width:20px; height:18px; display:block; color:currentColor; }
  .nav-today::before { content:""; position:absolute; inset:2px 3px; border:1.4px solid currentColor; border-radius:4px; }
  .nav-today::after { content:""; position:absolute; left:6px; right:6px; top:0; height:5px; border-left:1.4px solid currentColor; border-right:1.4px solid currentColor; }
  .nav-schedule::before { content:""; position:absolute; inset:2px; border:1.4px solid currentColor; border-radius:3px; }
  .nav-schedule::after { content:""; position:absolute; left:5px; right:5px; top:7px; height:1px; background:currentColor; box-shadow:0 4px 0 currentColor; }
  .nav-clients::before { content:""; position:absolute; left:3px; top:1px; width:6px; height:6px; border:1.4px solid currentColor; border-radius:50%; box-shadow:9px 2px 0 -1px var(--surface), 9px 2px 0 0 currentColor; }
  .nav-clients::after { content:""; position:absolute; left:1px; bottom:1px; width:18px; height:7px; border:1.4px solid currentColor; border-bottom:0; border-radius:10px 10px 0 0; }
  .nav-services::before { content:""; position:absolute; left:4px; top:3px; width:12px; height:12px; border:1.4px solid currentColor; border-radius:50% 50% 46% 54%; transform:rotate(45deg); }
  .nav-more { display:flex; align-items:center; justify-content:center; gap:2.5px; }
  .nav-more i { width:3px; height:3px; border-radius:50%; background:currentColor; display:block; }
}

@media (max-width:560px) {
  .page { width:calc(100% - 30px); padding-top:31px; }
  .today-intro { grid-template-columns:76px minmax(0,1fr); gap:16px; }
  .date-day { font-size:58px; }
  .today-heading h1, .page-heading h1 { font-size:44px; }
  .primary-action { min-height:43px; padding:0 16px; font-size:13px; }
  .flow-item { grid-template-columns:57px 15px minmax(0,1fr); gap:10px; }
  .flow-time { font-size:17px; }
  .flow-copy h2 { font-size:22px; }
  .flow-primary { font-size:13px; }
  .flow-meta { font-size:12px; }
  .capacity-value { font-size:15px; }
  .day-summary { grid-template-columns:repeat(3,1fr); }
  .summary-item { padding:19px 6px; }
  .summary-item strong { font-size:27px; }
  .summary-item > span:last-child { font-size:10px; }

  .page-heading { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:18px; }
  .page-heading p { display:none; }
  .page-kicker { margin-bottom:9px; }
  .service-title-line h2 { font-size:23px; }
  .service-row { grid-template-columns:minmax(0,1fr) 70px; gap:10px 12px; }
  .row-actions { gap:10px; }
  .form-grid, .form-grid-main, .form-grid-payment, .assignment-grid, .advanced-grid { grid-template-columns:1fr; }
  .field-wide { grid-column:auto; }
  .check-list { grid-template-columns:1fr; }
  .editor-heading h2 { font-size:36px; }
  .form-footer { align-items:flex-start; flex-direction:column; }
  .form-actions { width:100%; justify-content:flex-end; }
}

/* =========================================================
   ALEA Services V1.6 — guided editor
   ========================================================= */
.services-page-refined { padding-top:54px; }
.services-heading-refined {
  display:flex; align-items:flex-end; justify-content:space-between; gap:28px;
  padding:18px 0 34px; border-bottom:1px solid var(--line);
}
.services-heading-refined h1 {
  margin:0; font-family:var(--serif); font-size:58px; line-height:.96; font-weight:400; letter-spacing:-.02em;
}
.services-list-refined { border-top:0; }
.services-count-refined {
  padding:22px 0 8px; color:var(--text-soft); font-size:12px; letter-spacing:.02em;
}
.service-row-refined {
  position:relative; display:block; min-height:0; padding:0; border-bottom:1px solid var(--line);
  background:transparent; transition:background .18s ease;
}
.service-row-refined:hover { background:rgba(154,137,121,.035); }
.service-row-link {
  display:grid; grid-template-columns:minmax(0,1fr) 180px 150px; align-items:center; gap:28px;
  min-height:112px; padding:25px 42px 25px 0; color:inherit; text-decoration:none;
}
.service-main-refined h2 {
  margin:0; font-family:var(--serif); font-size:30px; line-height:1.05; font-weight:400; letter-spacing:-.01em;
}
.service-meta-refined { margin-top:9px; color:var(--muted); font-size:13px; line-height:1.5; }
.service-price-refined { font-family:var(--serif); font-size:22px; color:var(--text); }
.service-status-refined { display:flex; align-items:center; justify-content:flex-end; gap:16px; }
.service-chevron { width:8px; height:8px; border-top:1px solid currentColor; border-right:1px solid currentColor; transform:rotate(45deg); color:var(--text-soft); }
.service-row-secondary { position:absolute; right:42px; bottom:13px; opacity:0; transition:opacity .16s ease; }
.service-row-refined:hover .service-row-secondary { opacity:1; }
.quiet-action { color:var(--text-soft); font-size:11px; text-decoration:none; }
.quiet-action:hover { color:var(--text); }
.refined-empty { padding:90px 0; border:0; background:transparent; text-align:left; }
.refined-empty h2 { font-family:var(--serif); font-size:34px; font-weight:400; }

body.drawer-open { overflow:hidden; }
.service-drawer-backdrop {
  position:fixed; inset:0; z-index:1000; display:flex; justify-content:flex-end;
}
.service-drawer-scrim { position:absolute; inset:0; background:rgba(33,31,28,.22); backdrop-filter:blur(2px); }
.service-drawer {
  position:relative; z-index:1; display:flex; flex-direction:column; width:min(760px, 52vw); height:100vh;
  background:var(--surface); border-left:1px solid rgba(60,55,49,.09);
  box-shadow:-24px 0 70px rgba(34,31,27,.10); animation:aleaDrawerIn .2s ease-out;
}
@keyframes aleaDrawerIn { from { transform:translateX(18px); opacity:.72; } to { transform:none; opacity:1; } }
.drawer-header {
  display:flex; align-items:flex-start; justify-content:space-between; gap:24px;
  padding:38px 46px 26px; border-bottom:1px solid var(--line);
}
.drawer-eyebrow { color:var(--text-soft); font-size:11px; text-transform:uppercase; letter-spacing:.08em; }
.drawer-header h2 { margin:5px 0 0; font-family:var(--serif); font-size:42px; line-height:1; font-weight:400; }
.drawer-close {
  display:grid; place-items:center; width:40px; height:40px; border-radius:50%; color:var(--text);
  font-family:var(--sans); font-size:28px; font-weight:300; text-decoration:none; transition:background .16s ease;
}
.drawer-close:hover { background:var(--surface-soft); }
.drawer-alert { margin:22px 46px 0; }
.drawer-scroll { flex:1; min-height:0; overflow-y:auto; padding:0 46px 38px; }
.guided-section { padding:34px 0; border-bottom:1px solid var(--line); }
.guided-section:last-child { border-bottom:0; }
.guided-section h3 { margin:0 0 22px; font-size:16px; line-height:1.25; font-weight:500; letter-spacing:-.01em; }
.guided-service-name { padding-top:38px; }
.guided-service-name h3 { font-family:var(--serif); font-size:27px; font-weight:400; }
.guided-name-input {
  width:100%; box-sizing:border-box; padding:3px 0 13px; border:0; border-bottom:1px solid var(--line-strong);
  outline:0; background:transparent; color:var(--text); font-family:var(--serif); font-size:38px; line-height:1.12;
  transition:border-color .16s ease;
}
.guided-name-input:focus { border-color:var(--accent); }
.description-disclosure { margin-top:16px; }
.description-disclosure summary { width:max-content; color:var(--muted); font-size:12px; cursor:pointer; list-style:none; }
.description-disclosure summary::-webkit-details-marker { display:none; }
.description-disclosure summary::before { content:"+"; margin-right:8px; color:var(--accent); }
.description-disclosure[open] summary::before { content:"−"; }
.refined-textarea { margin-top:16px; min-height:88px; }
.guided-question + .guided-question { margin-top:27px; }
.guided-label { display:block; margin-bottom:11px; color:var(--muted); font-size:12px; }
.native-choice-source {
  position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important;
  overflow:hidden !important; clip:rect(0,0,0,0) !important; white-space:nowrap !important; border:0 !important;
}
.choice-row { display:flex; flex-wrap:wrap; align-items:center; gap:9px; }
.choice-pill {
  appearance:none; border:1px solid var(--line-strong); border-radius:999px; padding:11px 16px; background:transparent;
  color:var(--text); font:500 13px/1 var(--sans); cursor:pointer; transition:border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease;
}
.choice-pill:hover { border-color:color-mix(in srgb, var(--accent) 56%, var(--line-strong)); transform:translateY(-1px); }
.choice-pill.selected { border-color:var(--accent); background:color-mix(in srgb, var(--accent) 12%, white); color:color-mix(in srgb, var(--accent) 72%, #231f1b); }
.choice-pill.compact { min-width:58px; text-align:center; }
.mini-number-field {
  display:flex; align-items:center; height:38px; padding:0 12px; border:1px solid var(--line-strong); border-radius:999px; background:#fff;
}
.mini-number-field input { width:40px; border:0; outline:0; background:transparent; font:500 13px var(--sans); color:var(--text); text-align:center; }
.mini-number-field span { margin-left:2px; color:var(--text-soft); font-size:11px; }
.capacity-number-field input { width:38px; }
.guided-two-column { display:grid; grid-template-columns:1fr 1fr; gap:34px; }
.selection-panel h3 { margin-bottom:14px; }
.check-list-refined { display:grid; grid-template-columns:1fr; gap:8px; margin:0; padding:0; }
.check-list-refined li { position:relative; display:block; min-height:0; padding:0; border:0; }
.check-list-refined input[type=checkbox] {
  position:absolute; opacity:0; pointer-events:none;
}
.check-list-refined label {
  position:relative; display:flex; align-items:center; min-height:46px; padding:0 42px 0 15px;
  border:1px solid var(--line); border-radius:12px; background:transparent; color:var(--text); font-size:13px;
  cursor:pointer; transition:border-color .15s ease, background .15s ease;
}
.check-list-refined label::after {
  content:""; position:absolute; right:15px; top:50%; width:17px; height:17px; transform:translateY(-50%);
  border:1px solid var(--line-strong); border-radius:50%; background:#fff; box-sizing:border-box;
}
.check-list-refined input:checked + label { border-color:color-mix(in srgb, var(--accent) 52%, var(--line)); background:color-mix(in srgb, var(--accent) 7%, white); }
.check-list-refined input:checked + label::after { border:5px solid var(--accent); }
.payment-values { margin-top:20px; }
.compact-value-field { max-width:250px; }
.compact-value-field label { display:block; margin-bottom:9px; color:var(--muted); font-size:12px; }
.editor-money-input {
  display:flex; align-items:center; height:48px; border-bottom:1px solid var(--line-strong); background:transparent;
}
.editor-money-input input { flex:1; min-width:0; border:0; outline:0; background:transparent; color:var(--text); font-family:var(--serif); font-size:27px; }
.editor-money-input span { color:var(--muted); font-size:12px; }
.booking-rules-refined { padding:0; }
.booking-rules-refined > summary {
  display:flex; align-items:center; justify-content:space-between; gap:20px; padding:27px 0; list-style:none; cursor:pointer;
  font-size:14px; font-weight:500;
}
.booking-rules-refined > summary::-webkit-details-marker { display:none; }
.booking-rules-refined > summary small { color:var(--text-soft); font-size:11px; font-weight:400; }
.booking-rules-refined > summary::after { content:"+"; color:var(--muted); font-size:18px; }
.booking-rules-refined[open] > summary::after { content:"−"; }
.rules-grid-refined { display:grid; grid-template-columns:1fr 1fr; gap:19px; padding:4px 0 30px; }
.drawer-footer {
  flex:0 0 auto; display:flex; align-items:center; justify-content:space-between; gap:20px;
  padding:20px 46px; border-top:1px solid var(--line); background:color-mix(in srgb, var(--surface) 94%, transparent);
}
.drawer-actions { display:flex; align-items:center; gap:18px; }
.refined-active { color:var(--muted); }

@media (max-width: 1080px) {
  .service-drawer { width:min(720px, 68vw); }
  .service-row-link { grid-template-columns:minmax(0,1fr) 130px 120px; }
}

@media (max-width: 760px) {
  .services-page-refined { padding-top:28px; }
  .services-heading-refined { align-items:center; padding:12px 0 22px; }
  .services-heading-refined h1 { font-size:46px; }
  .services-heading-refined .primary-action { padding:11px 14px; font-size:12px; }
  .services-count-refined { padding-top:16px; }
  .service-row-link { grid-template-columns:minmax(0,1fr) auto; gap:12px; min-height:104px; padding:20px 24px 20px 0; }
  .service-main-refined h2 { font-size:25px; }
  .service-price-refined { grid-column:1; font-size:17px; margin-top:-2px; }
  .service-status-refined { grid-row:1 / span 2; grid-column:2; }
  .service-status-refined .status { display:none; }
  .service-row-secondary { display:none; }

  .service-drawer { width:100vw; max-width:none; border-left:0; box-shadow:none; }
  .service-drawer-scrim { display:none; }
  .drawer-header { padding:24px 20px 18px; }
  .drawer-header h2 { font-size:35px; }
  .drawer-scroll { padding:0 20px 28px; }
  .drawer-alert { margin:18px 20px 0; }
  .guided-service-name { padding-top:28px; }
  .guided-service-name h3 { font-size:24px; }
  .guided-name-input { font-size:32px; }
  .guided-two-column { grid-template-columns:1fr; gap:28px; }
  .rules-grid-refined { grid-template-columns:1fr; }
  .drawer-footer { padding:14px 20px calc(14px + env(safe-area-inset-bottom)); }
  .drawer-actions { margin-left:auto; }
  .refined-active { display:none; }
  .choice-pill { padding:10px 13px; }
}


/* Group minimum attendance rule */
.minimum-participants-note {
    grid-column: 1 / -1;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-top: -2px;
    padding: 16px 18px;
    border: 1px solid var(--line, #E7E2DA);
    border-radius: 14px;
    background: rgba(154, 137, 121, 0.055);
}
.minimum-participants-note[hidden] { display: none !important; }
.minimum-participants-dot {
    width: 9px;
    height: 9px;
    margin-top: 5px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: var(--accent, #9A8979);
}
.minimum-participants-note strong {
    display: block;
    margin-bottom: 3px;
    font-weight: 600;
    color: var(--text, #232320);
}
.minimum-participants-note p {
    margin: 0;
    color: var(--text-muted, #6F6C66);
    line-height: 1.55;
}

/* =========================================================
   ALEA Services V1.8 — service schedules + duplication
   ========================================================= */
.service-row-secondary {
  display:flex;
  align-items:center;
  gap:9px;
}
.service-action-separator {
  width:2px;
  height:2px;
  border-radius:50%;
  background:var(--line-strong);
}
.guided-section-heading p {
  max-width:560px;
  margin:-12px 0 22px;
  color:var(--muted);
  font-size:12px;
  line-height:1.65;
}
.schedule-mode-choices {
  display:grid;
  grid-template-columns:1fr;
  gap:9px;
}
.schedule-mode-card {
  appearance:none;
  width:100%;
  display:grid;
  grid-template-columns:minmax(160px, .72fr) 1fr;
  gap:20px;
  align-items:center;
  padding:17px 18px;
  border:1px solid var(--line);
  border-radius:14px;
  background:transparent;
  color:var(--text);
  text-align:left;
  cursor:pointer;
  transition:border-color .16s ease, background .16s ease, transform .16s ease;
}
.schedule-mode-card:hover {
  border-color:color-mix(in srgb, var(--accent) 44%, var(--line));
  transform:translateY(-1px);
}
.schedule-mode-card strong {
  font-size:13px;
  font-weight:500;
}
.schedule-mode-card span {
  color:var(--muted);
  font-size:11px;
  line-height:1.55;
}
.schedule-mode-card.selected {
  border-color:color-mix(in srgb, var(--accent) 66%, var(--line));
  background:color-mix(in srgb, var(--accent) 7%, white);
}
.schedule-mode-card.selected strong { color:color-mix(in srgb, var(--accent) 76%, #241f1a); }
.schedule-interval-field {
  display:grid;
  grid-template-columns:minmax(160px, .72fr) 180px;
  align-items:center;
  gap:8px 20px;
  margin-top:22px;
  padding:18px 0 2px;
}
.schedule-interval-field[hidden], .schedule-rules-area[hidden] { display:none !important; }
.schedule-interval-field .guided-label { margin:0; color:var(--text); font-size:13px; }
.schedule-interval-field small {
  grid-column:2;
  color:var(--text-soft);
  font-size:10px;
  line-height:1.5;
}
.schedule-interval-select { height:44px; }
.schedule-rules-area {
  margin-top:24px;
  padding-top:23px;
  border-top:1px solid var(--line);
}
.schedule-rules-heading {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:14px;
}
.schedule-rules-heading > div { display:flex; flex-direction:column; gap:4px; }
.schedule-rules-title { font-size:13px; font-weight:500; }
.schedule-rules-subtitle { color:var(--text-soft); font-size:10px; line-height:1.5; }
.quiet-add-action {
  appearance:none;
  border:0;
  background:transparent;
  padding:2px 0;
  color:var(--accent);
  font:500 11px/1.4 var(--sans);
  cursor:pointer;
  white-space:nowrap;
}
.quiet-add-action span { margin-right:4px; font-size:15px; font-weight:400; }
.schedule-rules-list { display:grid; gap:8px; }
.schedule-rule-row {
  display:grid;
  grid-template-columns:130px minmax(190px, .8fr) minmax(210px, 1fr) auto;
  gap:9px;
  align-items:center;
  padding:11px;
  border:1px solid var(--line);
  border-radius:13px;
  background:color-mix(in srgb, var(--surface) 97%, var(--accent));
}
.schedule-rule-control,
.schedule-time-control input {
  width:100%;
  box-sizing:border-box;
  height:38px;
  border:0;
  border-bottom:1px solid var(--line-strong);
  border-radius:0;
  outline:0;
  background:transparent;
  color:var(--text);
  font:400 11px/1 var(--sans);
}
.schedule-rule-control:focus,
.schedule-time-control input:focus { border-bottom-color:var(--accent); }
.schedule-time-group,
.schedule-scope-group {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.schedule-time-control { display:block; min-width:0; }
.schedule-time-control span {
  display:block;
  margin-bottom:-2px;
  color:var(--text-soft);
  font-size:9px;
  line-height:1;
}
.schedule-time-control input { padding-top:7px; }
.schedule-remove {
  appearance:none;
  border:0;
  background:transparent;
  color:var(--text-soft);
  font:400 10px/1 var(--sans);
  cursor:pointer;
}
.schedule-remove:hover { color:var(--text); }
.schedule-empty-note {
  padding:18px 0 4px;
  color:var(--text-soft);
  font-size:11px;
}
.schedule-empty-note[hidden] { display:none; }
.schedule-editor-templates { display:none !important; }

@media (max-width: 900px) {
  .schedule-rule-row { grid-template-columns:105px 1fr; }
  .schedule-scope-group { grid-column:1 / -1; }
  .schedule-remove { justify-self:end; }
}

@media (max-width: 760px) {
  .service-row-secondary {
    position:static;
    display:flex;
    opacity:1;
    padding:0 0 16px;
  }
  .schedule-mode-card {
    grid-template-columns:1fr;
    gap:5px;
    padding:15px;
  }
  .schedule-interval-field {
    grid-template-columns:1fr 130px;
  }
  .schedule-rule-row {
    grid-template-columns:1fr;
    gap:7px;
    padding:13px;
  }
  .schedule-time-group,
  .schedule-scope-group { grid-template-columns:1fr 1fr; grid-column:auto; }
  .schedule-remove { justify-self:start; padding:5px 0 0; }
}


/* Services V1.9 - payment experience */
.online-payment-options,
.deposit-field,
.external-payment-field {
  display:none;
}

.online-payment-options {
  margin-top:18px;
  padding-top:2px;
}

.field-kicker {
  margin-bottom:10px;
  color:var(--text-muted);
  font:500 11px/1.3 var(--sans);
  letter-spacing:.01em;
}

.external-payment-field {
  margin-top:18px;
}

.external-payment-field > label {
  display:block;
  margin-bottom:8px;
  color:var(--text);
  font:500 12px/1.3 var(--sans);
}

.payment-instructions-textarea {
  min-height:86px;
  resize:vertical;
}

.external-payment-field > small {
  display:block;
  margin-top:7px;
  color:var(--text-soft);
  font:400 11px/1.45 var(--sans);
}

.quick-payment-note {
  display:flex;
  align-items:flex-start;
  gap:9px;
  margin-top:14px;
  padding-top:13px;
  border-top:1px solid var(--line);
  color:var(--text-muted);
  font:400 11px/1.5 var(--sans);
}

.quick-payment-dot {
  width:7px;
  height:7px;
  margin-top:4px;
  flex:0 0 7px;
  border-radius:50%;
  background:var(--accent);
}

@media (max-width: 680px) {
  .online-payment-choice-row {
    display:grid;
    grid-template-columns:1fr 1fr;
  }
}


/* =========================================================
   ALEA Services V1.9.1 — payment layout polish
   ========================================================= */

.payment-choice-row {
  display:flex;
  flex-wrap:wrap;
  gap:9px;
}

.payment-values {
  display:flex;
  flex-wrap:wrap;
  gap:26px;
  align-items:flex-start;
  margin-top:20px;
}

.payment-values .compact-value-field {
  width:min(250px, 100%);
  max-width:250px;
  flex:0 0 250px;
}

.online-payment-options {
  margin-top:22px;
}

.online-payment-choice-row {
  display:flex;
  flex-wrap:wrap;
  gap:9px;
}

.external-payment-field {
  width:100%;
  margin-top:26px;
  padding-top:2px;
}

.external-payment-heading {
  display:flex;
  flex-direction:column;
  gap:5px;
  margin-bottom:11px;
}

.external-payment-heading label {
  color:var(--text);
  font:500 13px/1.35 var(--sans);
}

.external-payment-heading small {
  max-width:560px;
  color:var(--text-soft);
  font:400 11px/1.5 var(--sans);
}

.payment-instructions-textarea {
  display:block;
  width:100%;
  min-height:104px;
  box-sizing:border-box;
  resize:vertical;
  padding:14px 15px;
  border:1px solid var(--line-strong);
  border-radius:13px;
  outline:none;
  background:color-mix(in srgb, var(--surface) 97%, var(--accent));
  color:var(--text);
  font:400 13px/1.55 var(--sans);
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.payment-instructions-textarea:focus {
  border-color:var(--accent);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 11%, transparent);
  background:var(--surface);
}

.quick-payment-note {
  display:flex;
  align-items:flex-start;
  gap:9px;
  margin-top:12px;
  padding:0;
  border-top:0;
  color:var(--text-muted);
  font:400 11px/1.5 var(--sans);
}

.quick-payment-dot {
  width:6px;
  height:6px;
  margin-top:5px;
  flex:0 0 6px;
  border-radius:50%;
  background:var(--accent);
}

@media (max-width:680px) {
  .payment-values {
    display:grid;
    grid-template-columns:1fr;
    gap:18px;
  }

  .payment-values .compact-value-field {
    width:100%;
    max-width:none;
    flex:auto;
  }

  .online-payment-choice-row {
    display:grid;
    grid-template-columns:1fr 1fr;
  }
}


/* =========================================================
   ALEA Services V1.9.2 — refined payment editor
   ========================================================= */

.payment-section-v2 {
  padding-top:36px;
}

.payment-heading-v2 {
  margin-bottom:18px;
}

.payment-heading-v2 h3 {
  margin-bottom:5px;
}

.payment-heading-v2 p {
  max-width:560px;
  margin:0;
  color:var(--text-soft);
  font:400 12px/1.55 var(--sans);
}

.payment-methods-v2 {
  margin-bottom:0;
}

.payment-details-v2 {
  width:100%;
  margin-top:24px;
}

.payment-config-v2,
.external-payment-v2 {
  width:100% !important;
  box-sizing:border-box;
  margin:0 !important;
  padding:18px 20px !important;
  border:1px solid var(--line) !important;
  border-radius:15px !important;
  background:color-mix(in srgb, var(--surface) 94%, var(--accent)) !important;
}

.payment-config-v2 {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.payment-config-copy,
.external-payment-copy {
  display:flex;
  flex-direction:column;
  gap:4px;
}

.payment-config-copy strong,
.external-payment-copy strong {
  color:var(--text);
  font:500 13px/1.35 var(--sans);
}

.payment-config-copy span,
.external-payment-copy span {
  color:var(--text-soft);
  font:400 11px/1.5 var(--sans);
}

.payment-values-v2 {
  display:grid !important;
  grid-template-columns:repeat(2, minmax(0, 250px));
  gap:30px !important;
  align-items:end !important;
  margin-top:24px !important;
}

.payment-values-v2 .payment-value-v2 {
  width:100% !important;
  max-width:none !important;
  flex:none !important;
}

.payment-value-v2 label {
  display:block;
  margin-bottom:8px;
  color:var(--text-muted);
  font:500 11px/1.35 var(--sans);
}

.payment-money-v2 {
  height:52px !important;
  padding:0 !important;
  border:0 !important;
  border-bottom:1px solid var(--line-strong) !important;
  border-radius:0 !important;
  background:transparent !important;
}

.payment-money-v2 input {
  width:100%;
  height:50px;
  padding:0 !important;
  border:0 !important;
  outline:0 !important;
  background:transparent !important;
  color:var(--text) !important;
  font:400 29px/1 var(--serif) !important;
}

.payment-money-v2 span {
  padding-left:12px;
  color:var(--text-soft) !important;
  font:500 11px/1 var(--sans) !important;
}

.external-payment-v2 {
  margin-top:24px !important;
}

.external-payment-copy {
  margin-bottom:13px;
}

.payment-instructions-v2 {
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  min-height:104px !important;
  height:auto !important;
  box-sizing:border-box !important;
  margin:0 !important;
  padding:14px 15px !important;
  resize:vertical !important;
  border:1px solid var(--line-strong) !important;
  border-radius:12px !important;
  outline:0 !important;
  background:var(--surface) !important;
  color:var(--text) !important;
  font:400 13px/1.55 var(--sans) !important;
}

.payment-instructions-v2:focus {
  border-color:var(--accent) !important;
  box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent) !important;
}

.payment-note-v2 {
  margin-top:11px !important;
  padding:0 !important;
  border:0 !important;
  color:var(--text-muted) !important;
  font:400 11px/1.5 var(--sans) !important;
}

.online-payment-summary {
  display:none;
  align-items:flex-start;
  gap:9px;
  margin-top:18px;
  color:var(--text-muted);
  font:400 12px/1.5 var(--sans);
}

.payment-summary-mark {
  width:7px;
  height:7px;
  margin-top:5px;
  flex:0 0 7px;
  border-radius:50%;
  background:var(--accent);
}

.payment-editor-texts {
  display:none !important;
}

@media (max-width:680px) {
  .payment-config-v2 {
    align-items:flex-start;
    flex-direction:column;
    gap:14px;
  }

  .payment-values-v2 {
    grid-template-columns:1fr !important;
    gap:20px !important;
  }

  .online-payment-choice-row {
    display:flex !important;
    width:100%;
  }

  .online-payment-choice-row .choice-pill {
    flex:1 1 0;
  }
}


/* =========================================================
   ALEA Services V1.9.3 — payment + schedule refinement
   ========================================================= */

.payment-heading-v3 {
  margin-bottom:17px !important;
}

.payment-heading-v3 h3 {
  margin:0 !important;
  color:var(--text) !important;
  font:500 16px/1.25 var(--sans) !important;
}

.payment-details-v2 {
  margin-top:20px !important;
}

.payment-online-v3 {
  display:none;
  width:100%;
  margin:0 0 22px 0;
  padding:15px 17px;
  box-sizing:border-box;
  border:1px solid var(--line);
  border-radius:14px;
  background:color-mix(in srgb, var(--surface) 96%, var(--accent));
}

.payment-online-topline {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.payment-online-topline > div:first-child {
  display:flex;
  flex-direction:column;
  gap:3px;
}

.payment-online-topline strong {
  color:var(--text);
  font:500 12px/1.3 var(--sans);
}

.payment-online-topline span {
  color:var(--text-soft);
  font:400 10.5px/1.4 var(--sans);
}

.payment-values-v2 {
  margin-top:0 !important;
}

.payment-value-v2 label {
  font-size:10.5px !important;
  color:var(--text-soft) !important;
}

.payment-money-v2 input {
  font-size:27px !important;
}

.external-payment-v3 {
  display:none;
  width:100%;
  margin-top:22px;
}

.external-payment-v3 > label {
  display:block;
  margin-bottom:8px;
  color:var(--text);
  font:500 12px/1.35 var(--sans);
}

.payment-instructions-v3 {
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  min-height:92px !important;
  box-sizing:border-box !important;
  margin:0 !important;
  padding:13px 14px !important;
  resize:vertical !important;
  border:1px solid var(--line-strong) !important;
  border-radius:12px !important;
  outline:0 !important;
  background:var(--surface) !important;
  color:var(--text) !important;
  font:400 12px/1.55 var(--sans) !important;
}

.payment-instructions-v3:focus {
  border-color:var(--accent) !important;
  box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 9%, transparent) !important;
}

.payment-example-v3 {
  display:block;
  margin-top:7px;
  color:var(--text-soft);
  font:400 10.5px/1.45 var(--sans);
}

.payment-note-v3 {
  margin-top:11px !important;
  padding:0 !important;
  border:0 !important;
  color:var(--text-muted) !important;
  font:400 10.5px/1.45 var(--sans) !important;
}

.online-payment-summary {
  margin-top:14px !important;
  font:400 11px/1.45 var(--sans) !important;
}

.payment-editor-texts {
  display:none !important;
  visibility:hidden !important;
  position:absolute !important;
  width:0 !important;
  height:0 !important;
  overflow:hidden !important;
}

.schedule-rule-row {
  grid-template-columns:minmax(120px, 1.15fr) minmax(190px, 1fr) auto !important;
}

.schedule-scope-group {
  display:none !important;
}

.schedule-rules-subtitle {
  max-width:420px;
}

@media (max-width:680px) {
  .payment-online-topline {
    align-items:flex-start;
    flex-direction:column;
    gap:12px;
  }

  .schedule-rule-row {
    grid-template-columns:1fr !important;
  }
}


/* =========================================================
   ALEA Services V1.9.4
   Payment visibility + scoped schedules
   ========================================================= */

/* Visibility is controlled by the HTML hidden attribute + JS.
   These classes must NOT permanently hide the blocks. */
.payment-online-v3,
.external-payment-v3 {
  display:block;
}

.payment-online-v3[hidden],
.external-payment-v3[hidden],
.online-payment-summary[hidden] {
  display:none !important;
}

/* Keep the payment copy deliberately small and quiet. */
.payment-online-topline strong,
.external-payment-v3 > label {
  font-size:12px !important;
}

.payment-online-topline span,
.payment-example-v3,
.payment-note-v3,
.online-payment-summary {
  font-size:10.5px !important;
}

/* Specific schedule rules can optionally narrow the already selected
   service locations/professionals. */
.schedule-scope-group {
  display:grid !important;
  grid-template-columns:minmax(135px, 1fr) minmax(150px, 1fr);
  gap:12px;
  min-width:0;
}

.schedule-rule-row {
  grid-template-columns:
    minmax(115px, .9fr)
    minmax(190px, 1.15fr)
    minmax(285px, 1.55fr)
    auto !important;
  gap:14px !important;
  align-items:end !important;
}

.schedule-scope-group .schedule-rule-control {
  min-width:0;
  width:100%;
}

@media (max-width:900px) {
  .schedule-rule-row {
    grid-template-columns:1fr 1.2fr !important;
  }

  .schedule-scope-group {
    grid-column:1 / -1;
  }

  .schedule-remove {
    justify-self:end;
  }
}

@media (max-width:680px) {
  .schedule-rule-row {
    grid-template-columns:1fr !important;
  }

  .schedule-scope-group {
    grid-template-columns:1fr !important;
  }
}


/* =========================================================
   ALEA Services V1.9.5 — deposit visibility fix
   ========================================================= */

/* V1.9 initially hid .deposit-field permanently.
   JavaScript controls the hidden attribute, so when Sinal is selected
   the field must become visible again. */
.deposit-field:not([hidden]) {
  display:block !important;
}

.deposit-field[hidden] {
  display:none !important;
}


/* =========================================================
   ALEA Wordmark + Account Menu V1
   ========================================================= */

.brand,
.login-brand {
  display:inline-flex;
  align-items:baseline;
  gap:0;
  color:#6B655F !important;
  text-decoration:none;
  font-family:var(--serif);
  font-weight:400;
  line-height:.92;
  letter-spacing:-.027em;
  white-space:nowrap;
}

.brand {
  font-size:43px;
}

.login-brand {
  font-size:47px;
}

.brand::after,
.login-brand::after {
  content:none !important;
  display:none !important;
}

.brand-word {
  color:#6B655F !important;
}

.brand-dot {
  display:inline-block;
  margin-left:-1px;
  color:var(--accent) !important;
  font-size:.76em;
  line-height:1;
  transform:translateY(-.01em);
}

.account-menu-wrap {
  margin-left:auto;
}

.account-menu {
  position:relative;
}

.account-menu-trigger {
  display:flex;
  align-items:center;
  gap:10px;
  list-style:none;
  cursor:pointer;
  user-select:none;
}

.account-menu-trigger::-webkit-details-marker {
  display:none;
}

.account-menu-name {
  max-width:145px;
  overflow:hidden;
  color:var(--text-muted);
  text-overflow:ellipsis;
  white-space:nowrap;
  font:500 12px/1 var(--sans);
}

.account-menu-avatar {
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--accent);
  color:#fff;
  font:500 13px/1 var(--sans);
}

.account-menu-chevron {
  width:6px;
  height:6px;
  border-right:1px solid var(--text-soft);
  border-bottom:1px solid var(--text-soft);
  transform:rotate(45deg) translateY(-2px);
  transition:transform .15s ease;
}

.account-menu[open] .account-menu-chevron {
  transform:rotate(225deg) translate(-1px,-1px);
}

.account-menu-popover {
  position:absolute;
  z-index:80;
  top:calc(100% + 14px);
  right:0;
  width:260px;
  box-sizing:border-box;
  padding:18px;
  border:1px solid var(--line);
  border-radius:15px;
  background:var(--surface);
  box-shadow:0 18px 50px rgba(52,46,41,.09);
}

.account-menu-identity {
  display:flex;
  flex-direction:column;
  gap:4px;
}

.account-menu-identity strong {
  color:var(--text);
  font:500 12px/1.35 var(--sans);
}

.account-menu-identity span {
  color:var(--text-soft);
  font:400 10.5px/1.4 var(--sans);
}

.account-menu-section {
  display:flex;
  flex-direction:column;
  gap:1px;
  margin-top:17px;
}

.account-menu-label {
  margin-bottom:7px;
  color:var(--text-soft);
  font:500 9.5px/1 var(--sans);
  letter-spacing:.09em;
  text-transform:uppercase;
}

.account-menu-section > a,
.account-menu-link-panel a,
.account-menu-logout {
  display:block;
  margin:0 -8px;
  padding:9px 8px;
  border-radius:8px;
  color:var(--text-muted);
  text-decoration:none;
  font:500 11px/1.25 var(--sans);
}

.account-menu-section > a:hover,
.account-menu-link-panel a:hover,
.account-menu-logout:hover {
  background:var(--surface-soft);
  color:var(--text);
}

.account-menu-link-panel {
  display:block;
}

.account-menu-divider {
  height:1px;
  margin:13px 0 8px;
  background:var(--line);
}

.account-menu-logout {
  color:var(--text-muted);
}

.settings-page {
  padding-top:62px;
  padding-bottom:110px;
}

.settings-heading {
  max-width:780px;
  margin-bottom:48px;
}

.settings-heading h1 {
  margin:0;
  color:var(--text);
  font:400 54px/1 var(--serif);
  letter-spacing:-.03em;
}

.settings-heading p {
  max-width:520px;
  margin:10px 0 0;
  color:var(--text-muted);
  font:400 13px/1.6 var(--sans);
}

.settings-sheet,
.settings-list {
  width:100%;
  border-top:1px solid var(--line);
}

.settings-row {
  min-height:72px;
  display:grid;
  grid-template-columns:minmax(180px, .7fr) minmax(0, 1.3fr);
  align-items:center;
  gap:32px;
  border-bottom:1px solid var(--line);
}

.settings-row > span {
  color:var(--text-soft);
  font:500 11px/1.3 var(--sans);
}

.settings-row > strong {
  color:var(--text);
  font:500 13px/1.4 var(--sans);
}

.settings-color-value {
  display:flex;
  align-items:center;
  gap:9px;
}

.settings-color-swatch {
  width:18px;
  height:18px;
  border:1px solid var(--line-strong);
  border-radius:50%;
}

.settings-list-row {
  min-height:84px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  border-bottom:1px solid var(--line);
}

.settings-list-row h2 {
  margin:0;
  color:var(--text);
  font:400 21px/1.15 var(--serif);
}

.settings-list-row p {
  margin:5px 0 0;
  color:var(--text-soft);
  font:400 11px/1.45 var(--sans);
}

.settings-status {
  color:var(--text-soft);
  font:500 10.5px/1 var(--sans);
}

.settings-status.active {
  color:var(--accent);
}

.settings-empty {
  padding:40px 0;
  color:var(--text-muted);
  font:400 13px/1.5 var(--sans);
}

@media (max-width:780px) {
  .account-menu-name {
    display:none;
  }

  .account-menu-chevron {
    display:none;
  }

  .brand {
    font-size:39px;
  }

  .settings-page {
    padding-top:42px;
  }

  .settings-heading h1 {
    font-size:45px;
  }

  .settings-row {
    grid-template-columns:1fr;
    gap:7px;
    padding:18px 0;
  }
}

/* Prevent currency values from stacking vertically on narrow screens. */
.service-price-refined { white-space:nowrap; word-break:keep-all; overflow-wrap:normal; }

/* =========================================================
   ALEA Services V2.0 — progressive editor + mobile focus
   ========================================================= */
.service-drawer { width: min(700px, 54vw); }

.service-essential-card {
  margin-top: 24px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 97%, var(--accent));
}

.service-essential-card .guided-service-name { padding-top: 28px; }
.service-essential-card .guided-section:last-child { border-bottom: 0; }

.service-editor-group {
  margin: 12px 0 0;
  padding: 0 !important;
  border: 1px solid var(--line) !important;
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}

.service-editor-summary,
.booking-rules-refined > .service-editor-summary {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-sizing: border-box;
  padding: 16px 18px !important;
  list-style: none;
  cursor: pointer;
}

.service-editor-summary::-webkit-details-marker { display: none; }
.service-editor-summary > span { min-width: 0; }
.service-editor-summary strong,
.service-editor-summary small { display: block; }

.service-editor-summary strong {
  margin: 0;
  color: var(--text);
  font: 500 13px/1.3 var(--sans);
}

.service-editor-summary small {
  max-width: 480px;
  margin-top: 5px;
  color: var(--text-soft);
  font: 400 10px/1.45 var(--sans);
}

.service-editor-summary::after,
.booking-rules-refined > .service-editor-summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--accent);
  font: 400 20px/1 var(--sans);
}

.service-editor-group[open] > .service-editor-summary {
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.service-editor-group[open] > .service-editor-summary::after,
.booking-rules-refined[open] > .service-editor-summary::after { content: "−"; }

.service-editor-group-body {
  position: relative;
  padding: 22px 18px 24px;
}

.service-editor-group-tools {
  display: flex;
  justify-content: flex-end;
  margin: -8px 0 10px;
}

.service-editor-group .rules-grid-refined {
  display: grid;
  padding: 22px 18px 24px;
}

.service-editor-group .schedule-mode-card { padding: 14px 15px; }
.service-editor-group .schedule-rules-area { margin-top: 20px; }

@media (max-width: 760px) {
  .services-page-refined {
    width: calc(100% - 24px);
    padding-top: 18px;
    padding-bottom: 105px;
  }

  .services-heading-refined { padding: 8px 0 18px; }
  .services-heading-refined h1 { font-size: 40px; }
  .services-heading-refined .primary-action { min-height: 42px; display: inline-flex; align-items: center; }
  .service-row-link { min-height: 94px; padding: 17px 18px 17px 0; }
  .service-row-secondary { padding-bottom: 14px; }

  .service-drawer { height: 100dvh; }
  .drawer-header { padding: max(18px, env(safe-area-inset-top)) 18px 16px; }
  .drawer-header h2 { max-width: calc(100vw - 90px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 31px; }
  .drawer-close { width: 42px; height: 42px; flex: 0 0 42px; }
  .drawer-scroll { padding: 0 14px 24px; }
  .drawer-alert { margin: 14px 14px 0; }

  .service-essential-card {
    margin-top: 14px;
    padding: 0 14px;
    border-radius: 14px;
  }

  .guided-section { padding: 25px 0; }
  .guided-service-name { padding-top: 23px !important; }
  .guided-service-name h3 { margin-bottom: 16px; font-size: 21px; }
  .guided-name-input { font-size: 29px; }
  .guided-two-column { gap: 22px; }
  .choice-row { gap: 7px; }
  .choice-pill { min-height: 43px; padding: 10px 12px; }
  .check-list-refined label { min-height: 48px; }

  .service-editor-group { margin-top: 9px; border-radius: 13px; }
  .service-editor-summary,
  .booking-rules-refined > .service-editor-summary { min-height: 72px; padding: 14px !important; }
  .service-editor-summary small { padding-right: 4px; }
  .service-editor-group-body { padding: 18px 14px 20px; }
  .service-editor-group .rules-grid-refined { grid-template-columns: 1fr; padding: 18px 14px 20px; }
  .service-editor-group-tools { margin: -5px 0 8px; }
  .schedule-mode-card { gap: 4px; padding: 13px !important; }
  .schedule-interval-field { grid-template-columns: 1fr 118px; gap: 7px 12px; }
  .schedule-rules-heading { align-items: center; }
  .schedule-time-group,
  .schedule-scope-group { grid-template-columns: 1fr; }
  .schedule-rule-control,
  .schedule-time-control input,
  .schedule-interval-select { min-height: 44px; font-size: 16px; }

  .drawer-footer {
    gap: 10px;
    padding: 11px 14px calc(11px + env(safe-area-inset-bottom));
  }
  .refined-active { display: inline-flex; flex: 0 1 auto; font-size: 11px; }
  .drawer-actions { gap: 8px; }
  .drawer-actions .secondary-link { min-height: 44px; display: inline-flex; align-items: center; padding: 0 8px; }
  .drawer-actions .primary-action { min-height: 44px; padding-left: 14px; padding-right: 14px; }
}

@media (max-width: 390px) {
  .services-heading-refined h1 { font-size: 36px; }
  .services-heading-refined .primary-action { padding-left: 11px; padding-right: 11px; }
  .drawer-footer { align-items: center; }
  .refined-active { max-width: 84px; }
  .drawer-actions .secondary-link { font-size: 10px; }
  .drawer-actions .primary-action { font-size: 10px; padding-left: 11px; padding-right: 11px; }
}
