:root {
  color-scheme: light;
  --page: #f8f5fb;
  --paper: #fff;
  --ink: #302637;
  --purple: #623c78;
  --accent: #71498c;
  --plum: #412650;
  --muted: #66586e;
  --line: #e8dfee;
  --lilac: #f2e9f9;
  --lilac-strong: #eadbf3;
  --green: #2d644f;
  --green-soft: #e8f5ed;
  --green-line: #c9e4d4;
  --rose: #80445d;
  --rose-soft: #faf0f5;
  --rose-line: #eed9e4;
  --amber: #745019;
  --amber-soft: #fcf1de;
  --error: #a13150;
  --radius: 17px;
  --sidebar: 192px;
  --shadow: 0 4px 24px #4731540a;
  --serif: "Instrument Serif", Georgia, "Noto Serif", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-family: var(--sans);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100svh; color: var(--ink); font-size: 15px; line-height: 1.5;
  background: radial-gradient(ellipse at 100% 0%, #f0e5f9, transparent 35rem), var(--page);
}
h1, h2, h3, p, dl, dd { margin: 0; }
h1 { font: 400 clamp(36px, 4.6vw, 51px)/1.02 var(--serif); letter-spacing: -.06em; }
h2 { font-size: 18px; line-height: 1.25; letter-spacing: -.032em; }
h3 { font-size: 15px; line-height: 1.35; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button[disabled] { cursor: default; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, .button { touch-action: manipulation; }
:where(button, a, input, select, textarea, summary):focus-visible { outline: 3px solid #885ead; outline-offset: 3px; }
svg { display: block; flex: 0 0 auto; }
fieldset { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }
.sr-only, .choice input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 15; padding: 10px 14px; background: var(--paper); border-radius: 10px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.noscript { margin: 1rem; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.money, .time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.strong-purple { color: var(--plum); font-weight: 650; }
.multiline { white-space: pre-wrap; }
.full { width: 100%; }
.annotation { margin-top: 8px; line-height: 1.45; overflow-wrap: anywhere; }
.icon-line { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.icon-line > svg { color: var(--purple); }

.mobile-header, .mobile-nav { display: none; }
.app-sidebar {
  position: fixed; z-index: 2; inset: 0 auto 0 0; width: var(--sidebar);
  display: flex; flex-direction: column; padding: 23px 14px 14px; overflow: auto;
  background: radial-gradient(ellipse at 10% 0%, #754e8d, transparent 58%), linear-gradient(155deg, #57366e, var(--plum) 66%, #38243f);
  color: #fbf5fc;
}
.brand { display: inline-flex; align-items: center; gap: 11px; min-height: 47px; width: fit-content; white-space: nowrap; }
.app-sidebar > .brand { margin: 0 0 24px 3px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; flex: 0 0 auto;
  background: #f8f3fb; color: #49325d; font: 400 26px/.92 var(--serif); padding-bottom: 3px;
}
.brand-type { display: grid; gap: 3px; }
.brand-name { font: 400 29px/1 var(--serif); letter-spacing: -.065em; }
.brand-description { font-size: 9px; line-height: 1.25; color: #e4d5ee; font-weight: 600; }
.desktop-nav { display: grid; gap: 5px; }
.desktop-nav a {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 42px;
  border-radius: 11px; padding: 8px 11px; color: #eee4f3; font-size: 14px; font-weight: 625;
  border: 1px solid transparent;
}
.desktop-nav a:hover { background: #ffffff12; color: white; }
.desktop-nav a[aria-current] { background: #f0d8ff26; border-color: #f0d8ff45; color: #fff; }
.desktop-nav a[aria-current]::before {
  content: ""; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: #e9c8f2;
}
.nav-ico { display: inline-grid; place-items: center; }
.nav-count {
  border-radius: 999px; background: #efe3f6; color: var(--plum); font-size: 11px; line-height: 1.4;
  padding: 2px 6px; min-width: 18px; text-align: center; font-variant-numeric: tabular-nums;
}
.desktop-nav .nav-count { margin-left: auto; }
.sidebar-footer { display: grid; gap: 11px; margin-top: auto; padding-top: 27px; }
.owner {
  display: flex; align-items: center; gap: 10px; min-height: 54px; margin: 3px 0 0;
  padding: 8px 4px; border-top: 1px solid #ffffff23; font-size: 14px;
}
.owner span:last-child { display: grid; line-height: 1.3; gap: 2px; }
.owner small { color: #e4d5ee; font-size: 11px; }
.owner-avatar, .avatar { display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; }
.owner-avatar { width: 36px; height: 36px; color: var(--plum); background: #ede1f4; font-weight: 650; }
.demo-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px;
  padding: 5px 10px; border: 1px solid #ffffff42; color: inherit; background: transparent;
  border-radius: 10px; white-space: nowrap; font-size: 12px; font-weight: 650;
}
.demo-button:hover { background: #ffffff1a; }
.demo-dot { width: 7px; height: 7px; border-radius: 50%; background: #dbc0ef; }
.app { margin-left: var(--sidebar); padding: 26px clamp(18px, 2.7vw, 38px) 43px; min-width: 0; }
.app:focus { outline: none; }
.app > :where(.page-heading, .agenda-grid) { max-width: 1330px; margin-inline: auto; }

.page-heading {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 15px;
  margin-bottom: 18px; color: var(--ink);
}
.heading-info { color: var(--muted); font-size: 14px; margin-top: 7px; }
.heading-actions, .turn-actions, .text-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.agenda-banner {
  display: grid; align-content: center; min-height: 105px; max-width: 1330px;
  margin: 0 auto 15px; padding: 18px 21px; border: 1px solid #e6d8ed;
  border-radius: var(--radius); box-shadow: var(--shadow);
  background-color: #f6eef9;
  background-image: linear-gradient(100deg, #faf5fc 4%, #f8eff9eb 44%, #f4e9f751 100%), var(--agenda-art, none);
  background-position: center, right center;
  background-repeat: no-repeat;
  background-size: cover, auto clamp(220px, 35vw, 380px);
}
.agenda-banner .page-heading { margin: 0; }
.turn-actions { margin: 14px 0 16px; }
.text-actions { margin-top: 9px; gap: 5px 14px; }
.agenda-tools { margin-top: 0; justify-content: space-between; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  padding: 9px 14px; border-radius: 11px; border: 1px solid transparent;
  text-align: center; font-size: 14px; font-weight: 700; line-height: 1.25;
  transition: background 140ms, border-color 140ms;
}
.button.primary { color: white; background: linear-gradient(135deg, var(--accent), var(--purple)); border-color: var(--purple); }
.button.primary:hover { background: var(--plum); border-color: var(--plum); }
.button.secondary { color: var(--plum); background: var(--lilac); border-color: var(--lilac-strong); }
.button.secondary:hover { background: var(--lilac-strong); }
.button.outline { background: #fff; color: var(--purple); border-color: #ded0e7; }
.button.outline:hover, .button.quiet:hover { background: var(--lilac); }
.button.quiet { background: transparent; color: var(--purple); }
.button[disabled] { background: #e9e1ed; border-color: #e9e1ed; color: #62516c; }
.text-button {
  display: inline-flex; align-items: center; gap: 7px; min-height: 43px; padding: 3px 0; border: 0;
  background: transparent; color: var(--purple); font-size: 13px; font-weight: 700; text-align: left;
}
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }

.panel {
  min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow);
}
.panel-pad { padding: 18px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 9px; margin-bottom: 12px; }
.panel-heading > svg { color: var(--purple); }
.split-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 9px; }
.stack { display: grid; gap: 11px; min-width: 0; }
.stack.wide { gap: 15px; }
.kicker { display: flex; align-items: center; gap: 8px; color: var(--plum); font-size: 14px; font-weight: 720; letter-spacing: -.017em; }
.kicker-ico, .service-ico, .method-ico {
  display: inline-grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px;
  color: var(--purple); background: var(--lilac);
}
.avatar { width: 36px; height: 36px; background: var(--lilac-strong); color: var(--plum); font-size: 11px; font-weight: 750; }
.avatar.rose { background: #f3e0ea; color: #71394d; }
.avatar.sage { background: #e8eee6; color: #405c42; }
.avatar.peach { background: #f6e9df; color: #714c39; }
.avatar.large { width: 66px; height: 66px; font: 400 27px/1 var(--serif); letter-spacing: -.04em; }
.badge {
  display: inline-flex; align-items: center; width: fit-content; max-width: 100%;
  border-radius: 999px; padding: 4px 8px; white-space: nowrap; color: var(--purple); background: #efe7f4;
  font-size: 11px; line-height: 1.35; font-weight: 700;
}
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.neutral { background: #f3eff4; color: #625669; }
.badge.amber { background: var(--amber-soft); color: var(--amber); }

.agenda-grid { display: grid; grid-template-columns: minmax(0, 2.28fr) minmax(248px, 1fr); gap: 15px; align-items: start; }
.agenda-grid.calendar-wide { grid-template-columns: 1fr; }
.calendar-panel { padding: 16px 18px 18px; }
.calendar-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px 12px; margin-bottom: 11px; }
.calendar-title { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.calendar-title h2 { min-width: 0; }
.controls { display: flex; flex: 0 0 auto; align-items: center; gap: 2px; }
.icon-button, .small-button {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 40px;
  padding: 5px 7px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--purple);
}
.small-button { padding-inline: 10px; font-weight: 680; font-size: 13px; border-color: var(--line); }
.icon-button:hover, .small-button:hover { background: var(--lilac); }
.view-toggle {
  display: inline-grid; grid-template-columns: repeat(3, auto); gap: 2px; padding: 3px;
  background: #f4eef7; border-radius: 10px; font-size: 13px; font-weight: 650; color: var(--muted);
}
.view-toggle a { display: grid; place-items: center; border-radius: 7px; padding-inline: 10px; min-height: 34px; }
.view-toggle a[aria-current] { color: #fff; background: var(--purple); box-shadow: 0 1px 3px #412c5340; }
.view-toggle a:hover:not([aria-current]) { color: var(--plum); background: var(--lilac-strong); }

.week-strip {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; padding: 5px;
  background: #f6eef9; border-radius: 13px;
}
.week-day {
  display: grid; justify-items: center; align-content: center; gap: 1px; min-height: 46px;
  border: 1px solid transparent; border-radius: 9px; color: var(--muted); font-size: 12px;
}
.week-day strong { font-size: 16px; color: var(--ink); line-height: 1.18; font-variant-numeric: tabular-nums; }
.week-day:hover { background: var(--lilac); }
.week-day.is-today:not([aria-current]) { border-color: #d6bce7; }
.week-day[aria-current] { background: var(--purple); color: #f8effc; box-shadow: 0 2px 6px #59346e30; }
.week-day[aria-current] strong { color: #fff; }
.list-caption {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px;
  margin-bottom: 9px; color: var(--muted); font-size: 13px;
}
.list-caption strong { color: var(--ink); font-weight: 680; }
.timeline { display: grid; gap: 6px; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 58px; top: 16px; bottom: 16px; width: 1px; background: #eae1ef;
}
.timeline-row { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; }
.timeline-time {
  display: grid; justify-content: start; gap: 1px; position: relative; padding-right: 8px;
  color: var(--ink); font-weight: 680; font-size: 14px;
}
.timeline-time::after {
  content: ""; position: absolute; top: 9px; left: 55px; width: 7px; height: 7px;
  border-radius: 50%; background: #cdb8db; border: 1px solid #fff;
}
.timeline-time span { color: var(--muted); font-size: 11px; font-weight: 520; }
.turn-card {
  display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 54px; padding: 6px 9px;
  border: 1px solid #eee7f1; border-radius: 12px; background: #fcfafc;
}
.turn-card.is-next { background: var(--lilac); border-color: var(--lilac-strong); border-left: 3px solid var(--accent); padding-left: 8px; }
.turn-card:hover { background: #f0e6f6; border-color: #ddc9e9; }
.turn-text { display: grid; flex: 1; min-width: 0; gap: 2px; }
.turn-text strong { font-size: 14px; font-weight: 720; }
.turn-text span { color: var(--muted); font-size: 12px; }
.turn-arrow { color: #7c5f91; }
.empty-box { padding: 16px 10px; text-align: center; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 14px; }

.month-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(285px, 1fr); gap: 16px; align-items: start; }
.month-layout .day-list { border-left: 1px solid var(--line); padding-left: 17px; }
.month-layout .list-caption { margin-top: 3px; }
.month-layout .timeline-row { grid-template-columns: 54px minmax(0, 1fr); }
.month-layout .timeline::before { left: 44px; }
.month-layout .timeline-time::after { left: 41px; }
.month-layout .turn-card > .avatar, .month-layout .turn-card > .turn-arrow { display: none; }
.month-weekdays, .month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.month-weekdays { text-align: center; margin-bottom: 5px; font-size: 12px; color: var(--muted); font-weight: 650; }
.month-day, .month-blank { min-height: 50px; border-radius: 9px; }
.month-day {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 6px 7px;
  background: #faf7fc; border: 1px solid var(--line); font-variant-numeric: tabular-nums; font-size: 15px;
}
.month-day:hover { background: var(--lilac); }
.month-day.is-today, .month-day[aria-current] { border-color: #a582be; }
.month-day[aria-current] { background: var(--purple); color: white; }
.month-marker { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.month-marker i { width: 6px; height: 6px; border-radius: 50%; background: var(--rose); }
.month-day[aria-current] .month-marker { color: #f2e9f7; }
.month-day[aria-current] .month-marker i { background: #dfc6ee; }

.week-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-items: stretch; }
.week-column { min-width: 0; min-height: 124px; background: #fbf8fc; border: 1px solid var(--line); border-radius: 11px; padding: 5px; }
.week-column.current-day { border-color: #cdb5df; background: #f8f0fb; }
.week-column-head { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; border-radius: 7px; font-size: 12px; color: var(--purple); }
.week-column-head strong { font-size: 16px; }
.week-column-head:hover { background: #efe5f5; }
.week-column-head svg { display: none; }
.week-events { display: grid; gap: 5px; }
.week-event {
  display: grid; gap: 2px; padding: 6px; min-height: 44px; border-radius: 7px; background: #ece1f4;
  border: 1px solid #e6d7ee; font-size: 11px; overflow-wrap: anywhere;
}
.week-event time { color: var(--purple); font-weight: 700; }
.week-event strong { font-size: 12px; line-height: 1.25; }
.week-event span { color: var(--muted); }
.week-event.attended { background: var(--green-soft); border-color: var(--green-line); }
.week-event:hover { background: #e8d7f1; }
.week-empty { text-align: center; font-size: 11px; color: var(--muted); padding: 6px 0 9px; }

.mini-person { display: flex; align-items: center; gap: 9px; margin: 9px 0 11px; }
.mini-person > div { display: grid; gap: 1px; min-width: 0; }
.mini-person > div > span { color: var(--muted); font-size: 12px; }
.next-panel .kicker-ico { color: var(--green); background: var(--green-soft); }
.today-tasks .kicker-ico { color: var(--amber); background: var(--amber-soft); }
.task-glance { margin-top: 10px; }
.task-glance a {
  display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 5px 0;
  border-bottom: 1px solid var(--line); color: var(--purple); font-size: 13px;
}
.task-glance a:hover { color: var(--plum); background: #faf6fc; }
.task-glance span { flex: 1; color: var(--ink); }
.task-glance b { margin-left: auto; font-weight: 700; }
.today-tasks .text-button { margin-bottom: -5px; }

.subpage { max-width: 1060px; margin-inline: auto; }
.subpage.narrow, .directory { max-width: 675px; margin-inline: auto; }
.back { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; margin-bottom: 9px; color: var(--purple); font-size: 14px; font-weight: 650; }
.back:hover { text-decoration: underline; text-underline-offset: 3px; }
.profile-head {
  display: flex; align-items: center; gap: 13px; padding: 18px;
  color: var(--plum); background: linear-gradient(112deg, #f0e5f7, #faf4fc);
  border: 1px solid #eadcf0; border-radius: var(--radius);
}
.profile-head h1 { margin: 2px 0 5px; font-size: clamp(30px, 4.7vw, 43px); }
.profile-head .kicker { font-size: 12px; }
.profile-head .small { margin-top: 5px; }
.subgrid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(252px, 1fr); gap: 15px; align-items: start; }
.subgrid > * { min-width: 0; }
.service-list { display: grid; margin: 8px 0 0; padding: 0; list-style: none; }
.service-row { display: flex; align-items: center; gap: 9px; min-height: 51px; padding-block: 7px; }
.service-row + .service-row { border-top: 1px solid var(--line); }
.service-row .service-label { flex: 1; min-width: 0; }
.service-label { display: grid; gap: 2px; }
.service-label small { color: var(--muted); font-size: 12px; }
.service-row > .money { font-size: 14px; }
.service-row .icon-button { color: var(--muted); }
.next-detail { margin-top: 8px; }
.history-item { padding-block: 9px; border-bottom: 1px solid var(--line); }
.history-item:last-child { border-bottom: 0; padding-bottom: 0; }
details summary {
  cursor: pointer; min-height: 43px; display: flex; align-items: center; justify-content: space-between;
  list-style: none; color: var(--purple); font-size: 13px; font-weight: 650;
}
details summary::-webkit-details-marker { display: none; }
details[open] > summary > .chevron { transform: rotate(180deg); }

.steps {
  list-style: none; padding: 0; margin: 0 0 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
}
.steps li { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; line-height: 1.3; }
.steps li.current { color: var(--plum); font-weight: 760; }
.step-dot {
  display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid #e3d9ea;
  border-radius: 50%; background: #fcf9fd; font-size: 11px; font-weight: 700;
}
.current .step-dot { background: var(--plum); border-color: var(--plum); color: #fff; }
.finished .step-dot { color: var(--green); background: var(--green-soft); border-color: #d9e9df; }
.step-divider { color: #a98fb5; }
.flow .page-heading { margin-bottom: 17px; }
.session-totals {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  padding-top: 9px; margin-top: 5px; border-top: 1px solid var(--line);
}
.duration-edit { display: inline-flex; gap: 7px; align-items: center; }
.session-totals .money { font-size: 22px; color: var(--plum); letter-spacing: -.045em; }
label.field { display: grid; gap: 7px; color: var(--ink); font-size: 14px; font-weight: 680; min-width: 0; }
.label-line { display: flex; align-items: center; gap: 7px; }
.label-line small { color: var(--muted); font-weight: 510; }
input:not([type="radio"]):not([type="checkbox"]), textarea, select {
  display: block; width: 100%; min-width: 0; min-height: 44px; padding: 9px 11px;
  border: 1px solid #dfd4e5; border-radius: 10px; background: #fffdff; color: var(--ink); font-size: 16px;
}
input::placeholder, textarea::placeholder { color: #7b6e82; font-weight: 400; }
textarea { resize: vertical; min-height: 82px; font-weight: 450; }
input#duration { width: 73px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--purple); }
.form-error { color: var(--error); font-size: 13px; font-weight: 650; margin-top: 3px; }
.action-dock { display: grid; gap: 5px; margin-top: 3px; }
.action-dock .button { min-height: 48px; }
.action-dock .quiet { min-height: 41px; }

.method-group legend { margin-bottom: 9px; font-weight: 720; font-size: 14px; }
.methods, .slots, .payment-types { display: grid; gap: 8px; min-width: 0; }
.methods, .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.payment-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { cursor: pointer; position: relative; min-width: 0; }
.choice-tile {
  display: grid; justify-items: center; gap: 4px; min-width: 0; min-height: 47px; align-items: center; align-content: center;
  padding: 6px 4px; border: 1px solid #e5d9eb; background: #fffdff; color: var(--plum); border-radius: 11px;
  font-size: 13px; line-height: 1.25; text-align: center;
}
.choice-tile > strong { font-weight: 700; }
.choice input:checked + .choice-tile { border-color: #916cad; background: var(--lilac); box-shadow: 0 0 0 1px #916cad; }
.choice input:focus-visible + .choice-tile { outline: 3px solid #9369b7; outline-offset: 2px; }
.choice input:disabled + .choice-tile { background: #f3f0f4; border-color: #eee8f0; color: var(--muted); cursor: default; }
.method-ico { width: 32px; height: 31px; background: transparent; }
.status-note {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 11px; border-radius: 10px;
  color: var(--green); background: var(--green-soft); font-size: 13px; font-weight: 670;
}
.status-note.pending { background: var(--amber-soft); color: var(--amber); }
.service-picker {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px;
  align-items: end; margin-block: 12px 8px;
}
.service-picker .button { min-height: 44px; }
.client-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.contact-details { display: grid; gap: 6px; margin-top: 8px; font-size: 14px; }
.contact-details > div { display: grid; grid-template-columns: minmax(48px, .22fr) minmax(0, 1fr); gap: 8px; }
.contact-details dt { color: var(--muted); }
.contact-details dd { overflow-wrap: anywhere; }
.slot-label { font-variant-numeric: tabular-nums; }
.slot-label small { font-size: 10px; line-height: 1; }

.balance { display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.balance > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.balance dd { font-weight: 700; color: var(--ink); }
.balance .balance-final { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; color: var(--plum); font-weight: 720; }
.balance-final dd { color: var(--plum); font-size: 24px; letter-spacing: -.045em; }
.payment-history { display: grid; margin: 11px 0 0; padding: 0; list-style: none; }
.payment-history li {
  display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 7px 0;
  border-top: 1px solid var(--line); font-size: 13px;
}
.payment-history li small { display: block; color: var(--muted); }
.mobile-payment-detail { display: none; }
.cash-turns { margin-top: 17px; }
.gift-shortcut, .gift-intro { display: flex; align-items: center; gap: 9px; }
.gift-shortcut { justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.gift-shortcut h2 { font-size: 16px; }
.gift-shortcut p { margin-top: 3px; }
.cash-balance {
  background: radial-gradient(ellipse at 100% 0%, #f2e8f8 0%, transparent 57%), var(--paper);
}
.cash-balance h2 { color: var(--muted); font-size: 14px; font-weight: 670; }
.cash-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 13px; }
.cash-metric { display: grid; gap: 4px; min-width: 0; background: #fffdfd; border: 1px solid var(--line); border-radius: 11px; padding: 10px; color: var(--purple); }
.cash-metric small { color: var(--muted); font-size: 12px; }
.cash-metric strong { font-size: clamp(15px, 3vw, 22px); letter-spacing: -.045em; }
.cash-total { font-size: 39px; line-height: 1.12; font-weight: 650; color: var(--plum); letter-spacing: -.06em; margin-top: 4px; }
.analytics-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 15px; }
.metric { display: grid; align-content: start; gap: 5px; }
.metric p { color: var(--muted); font-size: 13px; font-weight: 620; }
.metric strong { color: var(--plum); font-size: clamp(23px, 4vw, 34px); line-height: 1.12; letter-spacing: -.045em; }
.rank-table { border-collapse: collapse; width: 100%; margin-block: 10px; text-align: left; font-size: 14px; }
.rank-table th, .rank-table td { padding: 9px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rank-table th { font-size: 12px; color: var(--muted); }
.rank-table :is(th, td):not(:first-child) { text-align: right; }
.rank-table td:first-child, .combination-list strong { overflow-wrap: anywhere; }

.directory .panel-pad { padding-bottom: 10px; }
.search { position: relative; display: block; margin: 2px 0 11px; }
.search svg { position: absolute; top: 13px; left: 12px; color: var(--purple); }
.search input[type="search"] { padding-left: 39px; }
.client-row {
  display: flex; align-items: center; gap: 8px; padding: 9px 4px; min-height: 59px;
  border-bottom: 1px solid var(--line); font-size: 14px;
}
.client-row:last-child { border-bottom: 0; }
.client-row:hover { background: #faf6fc; }
.client-row .client-copy { flex: 1; display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.client-row .small { color: var(--muted); font-size: 12px; }
.client-row > svg { color: var(--purple); }

.task-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.pending-section .kicker { font-size: 15px; }
.pending-item { padding: 10px 0 8px; }
.pending-item + .pending-item { border-top: 1px solid var(--line); }
.pending-item:first-child { padding-top: 0; }
.pending-item:last-child { padding-bottom: 0; }
.pending-main { display: flex; align-items: flex-start; gap: 9px; }
.pending-main h3 { margin-bottom: 2px; }
.pending-main > .kicker-ico { background: #f6f1f8; width: 32px; height: 32px; }
.pending-item .text-actions { gap: 4px 6px; margin-top: 7px; }
.pending-item .button { font-size: 13px; padding: 7px 9px; }
.return-intro { margin-bottom: 10px; }
.return-setting { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
.return-setting .button { min-height: 44px; }
.return-setting .field { gap: 4px; font-size: 13px; }
#inactive-days { width: 99px; }
.return-list { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.person-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.success-page .panel { text-align: center; padding: 22px; }
.success-mark {
  display: inline-grid; place-items: center; width: 59px; height: 59px; border-radius: 50%;
  background: var(--green-soft); color: var(--green); margin-bottom: 12px;
}
.success-mark.gift-mark { background: var(--lilac); color: var(--purple); }
.success-page h1 { font-size: clamp(32px, 4.7vw, 43px); margin-bottom: 6px; }
.success-booking, .voucher-ticket {
  margin-block: 17px 13px; padding: 13px; border-radius: 13px; border: 1px solid #e8dbef; background: #f8f1fb; color: var(--plum);
}
.success-booking { text-align: left; }
.success-booking .icon-line { margin-top: 4px; }
.receipt-amount { display: inline-block; font-size: 28px; line-height: 1.1; letter-spacing: -.044em; }
.receipt-line { display: flex; align-items: flex-start; gap: 7px; padding-block: 7px 8px; font-size: 13px; text-align: left; }
.receipt-line svg { color: var(--green); margin-top: 2px; }
.voucher-ticket label { margin-bottom: 11px; }
input#voucher-code { background: #fefbff; text-align: center; font-size: 22px; font-weight: 720; letter-spacing: .06em; }
.voucher-ticket > span { display: block; margin-top: 4px; }
.success-page .action-dock { margin-top: 12px; }

dialog {
  width: min(470px, calc(100% - 30px)); max-height: calc(100dvh - 40px); overflow-y: auto;
  margin: auto; padding: 0; border: 1px solid var(--line); border-radius: 19px; color: var(--ink);
  background: var(--paper); box-shadow: 0 22px 75px #26142a36;
}
dialog::backdrop { background: #30213c66; }
.dialog-body { padding: 17px; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-bottom: 7px; }
.dialog-header h2 { font-size: 22px; }
.dialog-actions { display: grid; gap: 5px; margin-top: 12px; }
.toast {
  position: fixed; right: 20px; bottom: 21px; z-index: 5; max-width: min(420px, calc(100% - 28px)); padding: 9px 14px;
  border-radius: 11px; background: #3e2a4b; color: #fff; box-shadow: var(--shadow); font-size: 13px; font-weight: 650;
  pointer-events: none;
}

@media (max-width: 1110px) {
  .agenda-grid { grid-template-columns: 1fr; }
  .agenda-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .month-layout { grid-template-columns: 1fr; }
  .month-layout .day-list { border: 0; border-top: 1px solid var(--line); padding: 11px 0 0; }
  .week-calendar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .week-column { min-height: auto; padding: 5px 7px; }
  .week-column-head { justify-content: flex-start; padding-inline: 5px; }
  .week-column-head svg { display: block; margin-left: auto; }
  .week-event { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; }
  .week-event strong { flex: 1; }
  .week-event span { flex: 1 1 100%; }
  .week-empty { text-align: left; padding-inline: 5px; }
}
@media (max-width: 890px) and (min-width: 731px) {
  :root { --sidebar: 179px; }
  .app-sidebar { padding-inline: 13px; }
  .brand-mark { width: 35px; height: 35px; font-size: 25px; }
  .brand { gap: 7px; }
  .brand-name { font-size: 27px; }
  .desktop-nav a { gap: 8px; padding-inline: 8px; font-size: 13px; }
  .subgrid, .task-grid { grid-template-columns: 1fr; }
}
@media (max-width: 730px) {
  html { scroll-padding-bottom: 72px; }
  .app-sidebar { display: none; }
  .mobile-header {
    display: flex; justify-content: space-between; align-items: center; gap: 6px;
    padding: 7px 14px; border-bottom: 1px solid var(--line); background: #fffdff; color: var(--plum);
  }
  .mobile-header .brand { gap: 8px; }
  .mobile-header .brand-mark { width: 34px; height: 34px; background: var(--plum); color: #f8f3fb; font-size: 23px; }
  .mobile-header .brand-name { font-size: 27px; }
  .mobile-header .brand-description { color: var(--muted); }
  .mobile-header .demo-button { color: var(--purple); background: #f8f1fb; border-color: var(--line); min-height: 44px; }
  .mobile-header .demo-dot { background: #9976b1; }
  .mobile-nav {
    position: fixed; z-index: 3; inset: auto 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 4px max(5px, env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(5px, env(safe-area-inset-left));
    background: #fffdff; border-top: 1px solid var(--line); box-shadow: 0 -3px 16px #5c366609;
  }
  .mobile-nav a {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1px; min-height: 49px; color: var(--muted); font-size: 11px; font-weight: 675;
  }
  .mobile-nav a[aria-current] { color: var(--plum); }
  .mobile-nav .nav-ico { width: 41px; padding: 3px 0; border-radius: 8px; }
  .mobile-nav a[aria-current] .nav-ico { background: var(--lilac); }
  .mobile-nav .nav-count { position: absolute; top: 1px; left: calc(50% + 8px); font-size: 9px; padding: 1px 4px; min-width: 14px; }
  .has-form-dock .mobile-nav { display: none; }
  .app { margin-left: 0; padding: 13px 13px calc(75px + env(safe-area-inset-bottom)); }
  .has-form-dock .app { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .has-form-dock.has-secondary .app { padding-bottom: calc(128px + env(safe-area-inset-bottom)); }
  .page-heading { align-items: stretch; flex-direction: column; gap: 10px; margin-bottom: 13px; }
  .page-heading h1 { font-size: clamp(32px, 8.5vw, 43px); }
  .heading-info { font-size: 13px; margin-top: 5px; }
  .heading-actions .button { flex: 1 0 auto; }
  .agenda-banner {
    min-height: 0; margin-bottom: 10px; padding: 12px; border-radius: 15px;
    background-image: linear-gradient(100deg, #faf6fc 0%, #f8f0fae8 44%, #f3e5f762 100%), var(--agenda-art, none);
    background-size: cover, auto 170%;
  }
  .turn-actions { margin-block: 12px; }
  .turn-actions .button { flex: 1 1 auto; }
  .panel { border-radius: 15px; }
  .panel-pad, .calendar-panel { padding: 12px; }
  .panel-heading h2, .calendar-title h2 { font-size: 17px; }
  .calendar-top { display: grid; grid-template-columns: 1fr; gap: 7px; margin-bottom: 11px; }
  .calendar-title { gap: 5px; }
  .view-toggle { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .view-toggle a, .controls > a { min-height: 42px; }
  .controls .icon-button { min-width: 42px; padding-inline: 4px; }
  .week-strip { gap: 3px; padding: 4px; }
  .week-day { min-height: 48px; font-size: 11px; }
  .week-day strong { font-size: 15px; }
  .list-caption { margin-top: 12px; }
  .timeline-row { grid-template-columns: 52px minmax(0, 1fr); }
  .timeline::before { left: 42px; }
  .timeline-time { font-size: 13px; }
  .timeline-time::after { left: 39px; top: 8px; }
  .timeline-time span { font-size: 10px; }
  .turn-card { min-height: 54px; padding: 6px 7px; gap: 5px; }
  .turn-card.is-next { padding-left: 5px; }
  .turn-card > .avatar { display: none; }
  .turn-text strong { font-size: 13px; }
  .turn-text span { font-size: 11px; line-height: 1.28; }
  .turn-card .badge { font-size: 9.5px; padding-inline: 6px; }
  .turn-arrow { width: 12px; height: 12px; }
  .agenda-aside { display: none; }
  .month-layout { gap: 13px; }
  .month-grid, .month-weekdays { gap: 3px; }
  .month-day, .month-blank { min-height: 44px; border-radius: 7px; }
  .month-day { align-items: center; justify-content: center; gap: 2px; padding: 2px; font-size: 13px; }
  .month-marker { font-size: 0; }
  .month-marker i { width: 6px; height: 6px; }
  .week-calendar { grid-template-columns: 1fr; }
  .week-event span { flex: 0 1 auto; }
  .week-event { gap: 4px 8px; padding: 6px 8px; }
  .subgrid, .task-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .back { min-height: 44px; margin: -5px 0 4px; }
  .profile-head { padding: 14px; gap: 10px; border-radius: 15px; }
  .profile-head .avatar.large { width: 50px; height: 50px; font-size: 21px; }
  .profile-head h1 { font-size: clamp(28px, 8vw, 39px); }
  .profile-head .small { font-size: 12px; }
  .flow .page-heading { margin-bottom: 13px; }
  .steps { gap: 5px; margin-bottom: 12px; }
  .steps li { gap: 4px; font-size: 12px; }
  .step-dot { width: 19px; height: 19px; font-size: 10px; }
  .service-row { gap: 6px; }
  .service-ico { width: 30px; height: 30px; border-radius: 8px; }
  .service-row strong { font-size: 13px; }
  .service-row .icon-button { min-width: 44px; min-height: 44px; }
  .client-fields { grid-template-columns: 1fr; gap: 11px; }
  .analytics-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .metric:last-child { grid-column: 1 / -1; }
  .visit-context { display: none; }
  .mobile-payment-detail { display: block; margin-top: 8px; }
  .mobile-payment-detail:not([open]) > summary { margin-bottom: -5px; }
  form > .action-dock {
    position: fixed; z-index: 3; inset: auto 0 0;
    padding: 7px max(13px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(13px, env(safe-area-inset-left));
    background: #fffdff; border-top: 1px solid var(--line);
  }
  form > .action-dock .button { min-height: 46px; }
  form > .action-dock .quiet { min-height: 41px; }
  .cash-metric { padding: 8px 6px; }
  .cash-metric small { font-size: 11px; }
  .success-page .panel { padding: 18px; }
  dialog { margin: auto auto max(9px, env(safe-area-inset-bottom)); max-height: 83dvh; }
  .toast { right: 13px; bottom: calc(66px + env(safe-area-inset-bottom)); }
  .has-secondary .toast { bottom: calc(106px + env(safe-area-inset-bottom)); }
}
@media (max-width: 365px) {
  .app { padding-inline: 10px; }
  .panel-pad, .calendar-panel { padding: 11px; }
  .turn-card > .turn-arrow { display: none; }
  .methods, .slots, .payment-types { gap: 5px; }
  .choice-tile { font-size: 12px; }
  .success-page .panel { padding: 14px; }
  .cash-metric small { font-size: 10px; }
  .mobile-nav a { font-size: 10px; }
  .service-picker { grid-template-columns: 1fr; }
  .service-picker .button { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

.booking-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(265px, 1fr); gap: 14px; align-items: start; }
.booking-page > .status-note { margin-bottom: 11px; }
.booking-calendar-title { margin-bottom: 11px; }
.booking-week-top { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 5px 12px; margin-bottom: 9px; }
.booking-week-top .controls strong { font-size: 13px; white-space: nowrap; }
.booking-week-top .icon-button:disabled { color: #a69aaf; background: transparent; }
.booking-jump { display: grid; gap: 3px; color: var(--muted); font-size: 12px; font-weight: 630; }
.booking-jump input { min-height: 40px; max-width: 171px; padding: 5px 8px; }
.booking-week .week-day { background: transparent; min-height: 61px; padding: 3px 0; font-size: 11px; }
.booking-week .week-day small { font-size: 9px; line-height: 1.15; white-space: nowrap; }
.booking-week .week-day[aria-pressed="true"] { background: var(--purple); color: white; box-shadow: 0 2px 6px #59346e30; }
.booking-week .week-day[aria-pressed="true"] strong { color: white; }
.booking-week .week-day:disabled { opacity: .55; }
.booking-timeline { display: grid; gap: 6px; }
.booking-block {
  display: grid; grid-template-columns: minmax(100px, auto) minmax(0, 1fr) auto; gap: 8px;
  align-items: center; min-height: 46px; padding: 7px 9px; color: var(--ink); font-size: 13px;
}
.booking-block .booking-interval { color: var(--muted); font-size: 12px; font-weight: 660; font-variant-numeric: tabular-nums; }
.booking-block-copy { display: grid; min-width: 0; overflow-wrap: anywhere; }
.booking-block-copy > span { color: var(--muted); font-size: 12px; }
.busy-block { border: 1px solid var(--rose-line); background: var(--rose-soft); border-left: 3px solid #ba829d; border-radius: 9px; }
.busy-block .badge { background: #f4e2ec; color: var(--rose); }
.gap-block { border: 1px solid var(--green-line); border-radius: 9px; background: var(--green-soft); }
.gap-block strong { color: var(--green); }
.gap-block.selected-gap { border-color: #ac8dc1; box-shadow: 0 0 0 1px #ac8dc1; }
.gap-block .choice input:checked + .choice-tile { background: var(--purple); border-color: var(--purple); box-shadow: none; }
.gap-block .choice input:checked + .choice-tile strong { color: white; }
.gap-prompt { display: flex; align-items: center; gap: 5px; color: var(--green); font-size: 11px; white-space: nowrap; }
details.gap-block > summary.booking-block { display: grid; justify-content: stretch; list-style: none; }
.gap-block[open] .gap-prompt svg { transform: rotate(180deg); }
.gap-block .slots { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); padding: 0 8px 8px; gap: 5px; }
.gap-block .slots .choice-tile { min-height: 43px; }
.unavailable-gap { background: #f7f4f8; border-color: var(--line); }
.unavailable-gap strong, .unavailable-gap small { color: var(--muted); }
.unavailable-gap small { text-align: right; }
.booking-selection { margin-top: 5px; color: var(--purple); font-weight: 650; }
.booking-details { scroll-margin-top: 10px; }
.booking-details:focus { outline-offset: 2px; }
.booking-hours {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0 10px; color: var(--muted); border-top: 1px solid var(--line);
}
.working-hours-day {
  display: grid; grid-template-columns: minmax(95px, 1fr) minmax(0, 2fr);
  align-items: center; gap: 10px; padding-block: 9px;
}
.working-hours-day + .working-hours-day { border-top: 1px solid var(--line); }
.working-hours-toggle { display: flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; }
.working-hours-toggle input { width: 16px; height: 16px; margin: 0; }
.working-hours-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.working-hours-range:disabled { opacity: .55; }
.working-hours-range .field { gap: 3px; font-size: 12px; }
.working-hours-range input { padding-inline: 6px; }

@media (max-width: 980px) {
  .booking-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 730px) {
  .booking-week { gap: 2px; }
  .booking-week .week-day { min-height: 62px; }
  .booking-week-top .controls strong { font-size: 12px; }
  .booking-block { grid-template-columns: minmax(86px, auto) minmax(0, 1fr) auto; gap: 5px; padding-inline: 7px; }
  .booking-block .booking-interval, .booking-block-copy > span { font-size: 11px; }
  .booking-block .badge { padding-inline: 5px; }
  .working-hours-day { grid-template-columns: 1fr; gap: 0; }
}

.waitlist-board { gap: 20px; }
.waitlist-toolbar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px 18px; }
.waitlist-toolbar .field { width: min(100%, 212px); }
.waitlist-toolbar .icon-button:disabled { color: var(--muted); opacity: .54; }
.waitlist-group { display: grid; gap: 8px; min-width: 0; }
.waitlist-group-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; }
.waitlist-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.waitlist-card { display: grid; align-content: start; gap: 7px; min-width: 0; padding: 13px; border: 1px solid #e7dcea; border-radius: 12px; background: #fcfafd; }
.waitlist-card.has-times { border-color: #d9e3d9; background: #f8fbf8; }
.waitlist-card-head { display: flex; align-items: center; gap: 9px; }
.waitlist-person, .waitlist-note { min-width: 0; overflow-wrap: anywhere; }
.waitlist-constraints { color: var(--plum); font-weight: 650; }
.waitlist-times { display: flex; flex-wrap: wrap; gap: 6px; }
.waitlist-times .button { min-width: 61px; min-height: 44px; padding: 7px 9px; font-variant-numeric: tabular-nums; }
.waitlist-more > summary, .waitlist-booked > summary { justify-content: flex-start; gap: 7px; }
.waitlist-remove { justify-self: start; min-height: 44px; }
.waitlist-booked { padding-top: 5px; border-top: 1px solid #e7dcea; }
.waitlist-service-field legend { margin-bottom: 8px; color: var(--ink); font-size: 14px; font-weight: 680; }
.waitlist-service-field legend small { color: var(--muted); font-weight: 510; }
.waitlist-services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.waitlist-service {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 7px 9px; cursor: pointer;
  border: 1px solid #e5d9eb; border-radius: 9px; font-size: 13px; overflow-wrap: anywhere;
}
.waitlist-service:has(input:checked) { border-color: #916cad; background: var(--lilac); }
.waitlist-service input { width: 17px; height: 17px; flex-shrink: 0; margin: 0; }
.waitlist-service small { margin-left: auto; color: var(--muted); white-space: nowrap; }

@media (max-width: 730px) {
  .waitlist-grid, .waitlist-services { grid-template-columns: 1fr; }
  .waitlist-toolbar .field { width: 100%; }
}

.booking-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 13px;
}
.booking-shortcut {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1px;
  min-height: 49px;
  padding: 3px 4px;
  border: 1px solid #e5d8f0;
  border-radius: 9px;
  background: #f7effc;
  color: var(--plum);
  font-size: 13px;
  line-height: 1.25;
}
.booking-shortcut small { color: var(--muted); font-size: 11px; }
.booking-shortcut:not(:disabled):hover { background: #efe2f9; }
.booking-shortcut[aria-pressed="true"] { border-color: #ad85c4; background: #ebdcf6; }
.booking-shortcut:disabled { opacity: .55; }
.booking-period-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
  margin-bottom: 10px;
}
.booking-period-bar .controls strong { font-size: 13px; white-space: nowrap; }
.booking-period-bar .icon-button:disabled { color: #a69aaf; background: transparent; }
.booking-period-bar .booking-view-toggle { width: auto; grid-template-columns: repeat(2, auto); }
.booking-view-toggle button {
  min-height: 40px;
  padding: 5px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--purple);
  font-size: 13px;
  font-weight: 650;
}
.booking-view-toggle button[aria-pressed="true"] { background: var(--purple); color: #fff; }
.booking-view-toggle button:not([aria-pressed="true"]):hover { background: var(--lilac); }
.booking-month-grid .month-day {
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 4px 1px;
  gap: 1px;
  background: #f8fbf8;
  border-color: var(--green-line, #dbe8de);
  color: var(--ink);
}
.booking-month-grid .month-day.has-turns { background: var(--rose-soft, #f9edf2); border-color: var(--rose-line, #edd6e2); }
.booking-month-grid .month-day.is-closed:where(:not(.has-turns)) { background: #f4f0f6; border-color: var(--line); color: var(--muted); }
.booking-month-grid .month-day.is-today { border-color: #a582be; }
.booking-month-grid .month-day:disabled { opacity: .5; background: #faf8fb; border-color: var(--line); }
.booking-month-grid .month-day:not(:disabled):not([aria-pressed="true"]):hover { background: var(--lilac); color: var(--plum); }
.booking-month-grid .month-day[aria-pressed="true"] {
  background: var(--plum);
  border-color: var(--plum);
  color: #fff;
}
.booking-month-marker {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--rose, #80445e);
  font-size: 10px;
  line-height: 1;
}
.booking-month-marker i, .booking-month-key i {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #b26a89;
}
.booking-month-grid .month-day[aria-pressed="true"] .booking-month-marker { color: #f3e9f7; }
.booking-month-grid .month-day[aria-pressed="true"] .booking-month-marker i { background: #e7b7cc; }
.booking-month-key { display: flex; align-items: center; gap: 5px; margin: 7px 0 0; }
.booking-jump { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 9px; margin-top: 9px; }
.booking-jump input { width: auto; min-height: 40px; padding: 5px 8px; }
@media (max-width: 730px) {
  .booking-period-bar .icon-button { min-width: 38px; min-height: 44px; }
  .booking-view-toggle button { min-height: 44px; }
  .booking-month-grid .month-day { min-height: 44px; font-size: 14px; }
  .booking-shortcuts { margin-bottom: 8px; }
}

.waitlist-board { gap: 12px; }
.waitlist-group { gap: 12px; }
.waitlist-card, .waitlist-card.has-times {
  gap: 9px;
  border-color: var(--line);
  background: var(--paper);
}
.waitlist-card-head .avatar {
  width: 40px;
  height: 40px;
}
.waitlist-person h3 { line-height: 1.25; }
.waitlist-constraints { color: var(--muted); font-weight: 560; }

.waitlist-suggestion {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 3px;
  padding: 9px 10px;
  border: 1px solid var(--green-line, #d0e3d7);
  border-radius: 9px;
  background: var(--green-soft);
  color: var(--green);
}
.waitlist-suggestion > svg { margin-top: 2px; }
.waitlist-suggestion strong { display: block; font-size: 14px; font-variant-numeric: tabular-nums; }
.waitlist-suggestion-empty { padding: 5px 0; }

.waitlist-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 12px;
}
.waitlist-actions .button { min-height: 44px; }
.waitlist-actions .waitlist-remove { padding-inline: 2px; color: var(--muted); }
.waitlist-actions .waitlist-remove:hover { color: var(--plum); }

.waitlist-reference { border-top: 1px solid var(--line); }
.waitlist-reference > summary, .waitlist-preferences > summary {
  justify-content: flex-start;
  gap: 8px;
}
.waitlist-reference .waitlist-toolbar { margin-bottom: 8px; }
.waitlist-preferences {
  padding-inline: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.waitlist-preferences summary small { color: var(--muted); font-weight: 510; }
.waitlist-preference-fields { margin-bottom: 12px; }

:root { --agenda-art: url('/agenda-detalle.webp'); }

.staging-access {
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 20px 14px;
}
.staging-login { width: min(100%, 395px); background: var(--page); }
.staging-login-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--paper);
}
.staging-login-header .brand { color: var(--purple); }
.staging-login-header .brand-mark { background: var(--purple); color: var(--paper); }
.staging-login-header .brand-description { color: var(--muted); }
.staging-login-content { display: grid; gap: 11px; padding: 28px clamp(17px, 5vw, 27px); }
.staging-login-content h1 { font-size: 39px; }
.staging-login-content .button { margin-top: 6px; }
.staging-banner {
  max-width: 1330px;
  margin: 0 auto 10px;
  padding: 2px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--lilac);
  color: var(--plum);
  font-size: 13px;
  font-weight: 650;
}
.staging-banner .text-button { min-width: 44px; min-height: 44px; justify-content: center; }
