@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/instrument-serif.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap; src: url("/fonts/dm-sans.woff2") format("woff2"); }
: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; }

/* Ajustes de la tanda de correcciones: acciones sensibles, anulaciones, huecos libres, caja por día. */
.button.danger { background: var(--error); color: #fff; border-color: var(--error); }
.button.danger:hover { background: #8a2843; }
.danger-text { color: var(--error); }
.text-actions .danger-text { margin-left: auto; }

.payment-side { display: flex; align-items: center; gap: 10px; }
.payment-side .text-button { min-height: 32px; font-size: 13px; }
.payment-history li.is-void b, .payment-history li.is-void strong, .client-row.is-void b { color: var(--muted); }
.payment-history li.is-void strong, .client-row.is-void > b.money { text-decoration: line-through; }
.payment-history li.is-negative strong { color: var(--error); }
.void-tag {
  font-style: normal; font-size: 11px; font-weight: 650; padding: 1px 6px; margin-left: 4px;
  border-radius: 20px; background: #f3eff4; color: #625669; text-decoration: none;
}

.gap-row .timeline-time { color: var(--muted); font-weight: 520; }
.gap-card {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 6px 11px;
  border: 1px dashed #dccfe5; border-radius: 12px; color: var(--muted); font-size: 13px;
}
.gap-card strong { color: var(--green); font-weight: 650; }
.gap-card .gap-add { display: inline-flex; align-items: center; gap: 4px; color: var(--purple); font-weight: 650; }
.gap-card:hover { background: var(--green-soft); border-color: var(--green-line); border-style: solid; }

.cash-day { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cash-day .icon-button[aria-disabled] { opacity: .3; }
.cash-month { margin-top: 2px; }
.cash-month b { color: var(--plum); }

.duration-hint { color: var(--amber); background: var(--amber-soft); padding: 8px 10px; border-radius: 10px; }
.absence-list { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); }
.absence-list summary { display: flex; align-items: center; gap: 5px; cursor: pointer; font-size: 13px; font-weight: 650; color: var(--muted); list-style: none; }
.absence-list summary::-webkit-details-marker { display: none; }
.absence-list[open] .chevron { transform: rotate(180deg); }
.absence-list p { margin-top: 7px; }

.pending-main > .avatar { flex: 0 0 auto; }
.staging-banner.is-live { background: transparent; border-color: transparent; color: var(--muted); font-weight: 520; padding-inline: 2px; }
#app-dialog .method-group + .method-group, #app-dialog .payment-types { margin-top: 2px; }
code { font-size: 12px; overflow-wrap: anywhere; }

@media (min-width: 731px) {
  .dialog-actions:has(.danger) { grid-auto-flow: column; justify-content: start; }
}

@media (max-width: 730px) {
  /* En el celular la pestaña ya dice «Agenda»: el título se oculta a la vista y los
     dos botones suben, para que el primer turno aparezca más arriba. */
  .agenda-banner { padding: 0; border: 0; box-shadow: none; background: none; }
  .agenda-banner h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .agenda-banner .page-heading { gap: 0; }
  .text-actions .danger-text { margin-left: 0; }
}

/* Ficha: datos importantes, notas de seguimiento, buscador de clienta, deshacer */
.client-alert {
  display: flex; align-items: flex-start; gap: 10px; max-width: 1330px; margin: 0 auto 14px; padding: 11px 14px;
  border: 1px solid #f0deb8; border-left: 4px solid #a9772a; border-radius: 12px; background: var(--amber-soft); color: #5a3d10;
}
.client-alert svg { margin-top: 2px; color: #a9772a; }
.client-alert b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--amber); }
.client-alert p { font-size: 14px; font-weight: 550; overflow-wrap: anywhere; }
.client-alert.is-empty { align-items: center; border: 1px dashed #dccfe5; border-left-width: 1px; background: transparent; color: var(--muted); font-size: 13px; }
.client-alert.is-empty svg { margin: 0; color: var(--purple); }
.client-alert.is-empty:hover { background: var(--lilac); border-style: solid; }
.subpage.flow > .client-alert, .subpage > .client-alert { margin-inline: 0; }

.note-form { display: grid; gap: 8px; }
.note-form textarea { min-height: 62px; resize: vertical; }
.note-form .button { justify-self: start; }
.note-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; }
.note-item { position: relative; padding: 10px 0 10px 18px; border-left: 2px solid var(--lilac-strong); }
.note-item::before { content: ""; position: absolute; left: -6px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--paper); }
.note-head { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.note-head time { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--plum); }
.note-actions { display: flex; gap: 2px; margin-left: auto; }
.note-actions .text-button { min-height: 32px; padding-inline: 6px; font-size: 13px; }
.note-item p { font-size: 14px; overflow-wrap: anywhere; }
.multiline { white-space: pre-line; }
.history-note { margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: #faf7fc; }
.history-note .annotation { margin-top: 0; }
.inline-undo { min-height: 24px; margin-left: 6px; font-size: 12px; }

.person-picker { display: grid; gap: 6px; }
.person-results { display: grid; }
.person-option { width: 100%; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.person-option:first-child { border-top: 0; }
.person-option:hover, .person-option:focus-visible { background: var(--lilac); }
.person-picked { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--st-confirmed-line, #dfcdec); border-radius: 12px; background: var(--st-confirmed-soft, #f4ecfa); }
.person-picked .client-copy { flex: 1; min-width: 0; display: grid; }
.booking-person { display: grid; gap: 8px; }

.service-row.is-inactive strong, .service-row.is-inactive .money { color: var(--muted); }
.service-row.is-inactive .service-ico { opacity: .45; }
.check-line { display: flex; align-items: center; gap: 9px; min-height: 44px; font-weight: 600; cursor: pointer; }
.check-line input { width: 18px; height: 18px; margin: 0; }
.text-actions.centered { justify-content: center; margin-top: 10px; }
.text-actions.centered .danger-text { margin-left: 0; }

.toast { display: flex; align-items: center; gap: 12px; }
.toast-undo {
  flex: 0 0 auto; min-height: 36px; padding: 4px 12px; border: 1px solid #ffffff59; border-radius: 9px;
  background: #ffffff1f; color: #fff; font-weight: 700; font-size: 13px;
}
.toast-undo:hover { background: #ffffff38; }

/* Más: estado del respaldo y accesos */
.backup-line { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; padding: 9px 11px; border-radius: 10px; background: var(--green-soft); color: var(--green); }
.backup-line svg { margin-top: 2px; }
.backup-line.is-late { background: #fbeef2; color: var(--error); font-weight: 600; }
.access-removed summary { display: flex; align-items: center; gap: 5px; cursor: pointer; font-weight: 650; color: var(--muted); list-style: none; }
.access-removed summary::-webkit-details-marker { display: none; }
.access-removed[open] .chevron { transform: rotate(180deg); }
.access-removed .pending-list { margin-top: 10px; }

/* Con Instrument Serif cargada de verdad, el espaciado apretado que compensaba
   a la letra de reemplazo deja las letras pegadas: se afloja y se sube apenas el tamaño. */
h1 { letter-spacing: -.015em; line-height: 1.05; }
.brand-name { letter-spacing: -.02em; }
.avatar.large { letter-spacing: 0; }
.staging-login-content h1 { letter-spacing: -.015em; }
@media (max-width: 730px) {
  .page-heading h1 { font-size: clamp(34px, 9.4vw, 46px); }
  .profile-head h1 { font-size: clamp(32px, 8.8vw, 42px); }
}

/* Pendientes: lo de hoy arriba y a la vista; lo demás, plegado con su cantidad. */
.pending-group { max-width: 1330px; margin: 18px auto 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pending-group:first-of-type { margin-top: 0; }
.pending-group small { font-size: 13px; font-weight: 520; text-transform: none; letter-spacing: 0; }
.pending-section.is-folded > summary { cursor: pointer; list-style: none; margin-bottom: 0; }
.pending-section.is-folded > summary::-webkit-details-marker { display: none; }
.pending-section.is-folded > summary .chevron { margin-left: 6px; color: var(--purple); transition: transform .15s; }
.pending-section.is-folded > summary h2 { margin-right: auto; }
.pending-section.is-folded[open] > summary { margin-bottom: 10px; }
.pending-section.is-folded[open] > summary .chevron { transform: rotate(180deg); }
.pending-section.is-folded:not([open]) { padding-block: 11px; }

/* Aviso de ficha posiblemente repetida */
.similar-alert { border-color: var(--lilac-strong); border-left-color: var(--accent); background: var(--lilac); color: var(--plum); }
.similar-alert svg { color: var(--accent); }
.similar-alert b { color: var(--purple); }
.similar-alert .text-actions { margin-top: 8px; }
.similar-alert .button { font-size: 13px; padding: 7px 11px; background: #fff; }

/* Accesos: invitar por correo */
.invite-form { margin-top: 10px; }
.invite-form .button { justify-self: start; }
.invite-list { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }

/* Caja: resumen del mes */
.cash-views { grid-template-columns: repeat(2, auto); justify-self: start; }
.cash-trend { margin-top: 3px; }
.nowrap { white-space: nowrap; }
.trend { font-weight: 700; }
.trend.is-up { color: #2f7a55; }
.trend.is-down { color: #b3473f; }
.trend.is-flat { color: var(--muted); }
.cash-day-row {
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto 15px; align-items: center; gap: 11px;
  padding: 10px 4px; border-bottom: 1px solid var(--line); border-radius: 8px;
}
.cash-day-row:last-child { border-bottom: 0; }
.cash-day-row:hover { background: #faf6fc; }
.cash-day-row > svg { color: var(--purple); }
.cash-day-date { display: grid; justify-items: center; line-height: 1.1; }
.cash-day-date b { font-size: 17px; color: var(--plum); }
.cash-day-date small, .cash-day-bar small { color: var(--muted); font-size: 11px; }
.cash-day-bar { display: grid; gap: 4px; min-width: 0; }
.cash-day-bar i { display: block; height: 7px; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--purple), #b48fd0); transition: width .25s ease; }
.cash-kinds { margin-top: 10px; }
@media (max-width: 640px) {
  .cash-views { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Analíticas: ideas de la semana y panel de un vistazo */
.idea-list-wrap { display: grid; gap: 0; }
.idea { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 11px; padding: 13px 0; border-top: 1px solid var(--line); }
.idea:first-child { border-top: 0; padding-top: 2px; }
.idea-copy { display: grid; gap: 4px; min-width: 0; }
.idea-copy h3 { font-size: 15.5px; line-height: 1.3; color: var(--plum); }
.idea-list summary { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; color: var(--purple); font-size: 13px; font-weight: 650; padding-block: 6px; list-style: none; }
.idea-list summary::-webkit-details-marker { display: none; }
.idea-list[open] summary .chevron { transform: rotate(180deg); }
.idea-list ul { list-style: none; display: grid; margin: 4px 0 0; padding: 0; }
.idea-person { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.idea-person .client-copy { flex: 1; display: grid; gap: 1px; min-width: 130px; }
.idea-person small { color: var(--muted); font-size: 12px; }
.idea-person-actions { display: flex; align-items: center; gap: 6px; }
.glance { display: grid; gap: 15px; }
.glance-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.glance-metrics .metric small { font-size: 12px; }
.heat-map { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; font-size: 12px; }
.heat-map th { color: var(--muted); font-weight: 620; padding: 2px; }
.heat-map th[scope="row"] { text-align: left; white-space: nowrap; }
.heat-map thead th:first-child { width: 62px; }
.heat { height: 40px; border-radius: 8px; text-align: center; font-weight: 680; font-variant-numeric: tabular-nums; }
.heat.is-closed { background: repeating-linear-gradient(135deg, #f6f1f8, #f6f1f8 5px, #efe8f3 5px, #efe8f3 10px); }
.heat.is-0 { background: #f4edf8; color: #7a6887; }
.heat.is-1 { background: #e4d3ef; color: #5b4370; }
.heat.is-2 { background: #c9a9de; color: #3f2853; }
.heat.is-3 { background: #9b6fba; color: #fff; }
.heat.is-4 { background: #6a4388; color: #fff; }
.heat-legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.heat-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.heat-legend i.heat { display: inline-block; width: 14px; height: 14px; border-radius: 4px; }
.strength-list { list-style: none; display: grid; gap: 12px; padding: 0; margin: 0; }
.strength-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: baseline; }
.strength-name { display: grid; gap: 1px; min-width: 0; overflow-wrap: anywhere; }
.strength-name small, .strength-list strong small { font-size: 12px; font-weight: 500; color: var(--muted); }
.strength-list strong { color: var(--plum); }
.strength-bar { grid-column: 1 / -1; height: 6px; border-radius: 4px; background: #f1e9f5; overflow: hidden; }
.strength-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--purple), #b48fd0); transition: width .25s ease; }
.period-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.period-heading h2 { font-size: 19px; }
@media (max-width: 900px) { .glance-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .heat-map { border-spacing: 3px; font-size: 11px; }
  .heat-map thead th:first-child { width: 50px; }
  .heat { height: 36px; }
  .glance-metrics .metric:last-child { grid-column: auto; }
}

/* Voucher: tarjeta para regalar */
.voucher-detail { margin-top: 6px; }
.voucher-card-wrap { display: grid; gap: 12px; justify-items: center; margin-block: 18px 6px; }
#voucher-card { width: min(100%, 320px); height: auto; aspect-ratio: 4 / 5; border-radius: 16px; box-shadow: 0 10px 28px #3d274f2e; }

/* Turno con voucher anotado */
.voucher-reminder { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; background: #f1e6f8; color: var(--plum); margin-block: 10px; }
.voucher-reminder span { flex: 1; min-width: 180px; overflow-wrap: anywhere; }
.voucher-reminder > svg { color: var(--purple); flex: none; }
.voucher-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ——— Mover el día ——— */
.move-days { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; margin: 12px 0 13px; }
.move-day {
  display: grid; justify-items: center; align-content: center; gap: 1px; min-height: 86px; padding: 8px 4px 9px;
  border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--muted);
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; text-align: center;
  transition: background 140ms, border-color 140ms;
}
.move-day strong { color: var(--ink); font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.move-day small { margin-top: 4px; padding: 2px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; text-transform: none; letter-spacing: 0; line-height: 1.35; white-space: nowrap; }
.move-day.fits-all small { color: var(--green); background: var(--green-soft); }
.move-day.fits-moved small { color: var(--purple); background: #efe7f4; }
.move-day.fits-some small { color: var(--amber); background: var(--amber-soft); }
.move-day.fits-none small { color: var(--muted); background: #f3eff4; }
.move-day:hover { background: var(--lilac); }
.move-day[aria-current] { border-color: var(--purple); background: var(--purple); color: #f1e4f8; box-shadow: 0 2px 6px #59346e30; }
.move-day[aria-current] strong { color: #fff; }
.move-day[aria-current] small { color: var(--plum); background: #f1e4f8; }
.move-other { max-width: 212px; font-size: 13px; }
.move-hint p { line-height: 1.5; }
.move-hint a { color: var(--purple); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.move-heading { align-items: flex-start; margin-bottom: 6px; }
.move-heading p { margin-top: 4px; }

.move-list { display: grid; margin: 0; padding: 0; list-style: none; }
.move-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto 118px; align-items: center; gap: 8px 13px;
  padding: 11px 0; border-top: 1px solid var(--line);
}
.move-row:first-child { border-top: 0; }
.move-check { display: grid; place-items: center; width: 40px; height: 44px; margin-left: -9px; cursor: pointer; }
.move-check input { width: 20px; height: 20px; }
.move-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.move-who > span { display: grid; gap: 1px; min-width: 0; }
.move-who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.move-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12.5px; }
.move-when { display: flex; align-items: center; gap: 9px; }
.move-from, .move-to { display: grid; gap: 2px; }
.move-from small, .move-to small { color: var(--muted); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.move-from b { display: flex; align-items: center; min-height: 42px; color: var(--muted); font-size: 15px; font-weight: 600; text-decoration: line-through; text-decoration-color: #c9b9d3; }
.move-arrow { margin-top: 15px; color: #b29fc0; }
.move-to select { width: 96px; min-height: 42px; padding-block: 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.move-row > .badge { justify-self: start; }
.move-note { grid-column: 3 / -1; max-width: 400px; line-height: 1.45; }
.move-note .text-button { min-height: 30px; }
.move-row.is-stay .move-who, .move-row.is-out .move-who { opacity: .62; }
.move-row.is-out .move-note { padding: 8px 11px; border-radius: 11px; color: var(--amber); background: var(--amber-soft); }
.move-row.is-out .move-note .text-button { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }

.notify-list { display: grid; margin: 15px 0 4px; padding: 0; list-style: none; text-align: left; }
.notify-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.notify-text { display: grid; gap: 1px; flex: 1; min-width: 0; }
.notify-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; }
.notify-text small { color: var(--muted); font-size: 12.5px; }
.notify-row .button { min-height: 40px; padding: 6px 12px; font-size: 13px; }
.notify-done { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.day-move-done .annotation { text-align: left; }
.list-caption .caption-action { min-height: 32px; margin-left: 14px; white-space: nowrap; }

@media (max-width: 730px) {
  .move-days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .move-day { min-height: 78px; }
  .move-row { grid-template-columns: auto minmax(0, 1fr); gap: 6px 4px; padding: 12px 0; }
  .move-when, .move-row > .badge, .move-note { grid-column: 2; }
  .move-row > .badge { margin-top: -2px; }
  .move-other { max-width: none; }
  .notify-row { flex-wrap: wrap; }
  .notify-row .button { margin-left: auto; }
}

/* Agenda, calendario y horarios: lectura por estado y por hora. */
:root {
  --st-confirmed: #71498c; --st-confirmed-soft: #f4ecfa; --st-confirmed-line: #dfcdec;
  --st-pending: #a9772a; --st-pending-soft: #fdf5e6; --st-pending-line: #f0deb8;
  --st-attended: #2d644f; --st-attended-soft: #edf7f1; --st-attended-line: #cfe6d9;
}

/* Tira de la semana con carga por día */
.week-strip { gap: 4px; padding: 0; background: none; }
.week-day { min-height: 62px; gap: 0; padding: 5px 0 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.week-day strong { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.week-day.is-closed { background: #faf8fb; color: #a99db1; }
.week-day.is-closed strong { color: #a99db1; }
.week-day.is-today:not([aria-current]) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.week-day[aria-current] { border-color: var(--purple); }
.load-dots { display: flex; align-items: center; justify-content: center; gap: 2px; height: 7px; margin-top: 2px; }
.load-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.load-dots b { font-size: 9px; line-height: 1; color: var(--accent); font-weight: 700; margin-left: 1px; }
.week-day[aria-current] .load-dots i { background: #e6d3f2; }
.week-day[aria-current] .load-dots b { color: #e6d3f2; }
.booking-week .week-day { border-color: transparent; text-transform: none; letter-spacing: 0; }

.calendar-title h2 { font-size: 20px; letter-spacing: -.035em; }
.list-caption { margin-top: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.list-caption strong { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.list-caption span { font-variant-numeric: tabular-nums; }

/* Lista del día (celular): cada turno lleva el color de su estado */
.turn-card { position: relative; padding-left: 13px; background: #fff; border-color: var(--line); box-shadow: 0 1px 2px #4731540a; }
.turn-card::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--st-confirmed); }
.turn-card.is-pending::before { background: var(--st-pending); }
.turn-card.is-attended::before { background: var(--st-attended); }
.turn-card.is-attended { background: #fbfdfc; }
.turn-card.is-attended .turn-text strong { color: #4d5f57; }
.turn-card.is-next { background: var(--st-confirmed-soft); border-color: var(--st-confirmed-line); border-left-width: 1px; padding-left: 13px; box-shadow: 0 3px 12px #5c366614; }
.timeline::before, .timeline-time::after { display: none; }
.timeline-row { grid-template-columns: 54px minmax(0, 1fr); align-items: stretch; }
.timeline-time { align-content: center; font-size: 13px; }
.gap-row .timeline-time { font-size: 12px; }
.gap-card { min-height: 36px; border-color: #e3d9ea; }

/* Grilla horaria (tablet y escritorio) */
.cal-grid { display: none; }
@media (min-width: 731px) {
  .day-list:not(.compact-list) .day-rows { display: none; }
  .cal-grid { display: block; position: relative; margin-top: 14px; }
  .cal-hour { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--line); }
  .cal-hour span { position: absolute; top: -9px; left: 0; width: 46px; padding-right: 8px; background: var(--paper); color: var(--muted); font-size: 12px; font-weight: 600; }
  .cal-lane {
    position: absolute; inset: 0 0 0 54px;
    background-image: linear-gradient(to bottom, transparent 43px, #f1eaf5 43px, #f1eaf5 44px, transparent 44px);
    background-size: 100% 88px;
  }
  .cal-closed { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, #f7f3f9 0 6px, #fff 6px 12px); }
  .cal-event, .cal-gap { position: absolute; left: 4px; right: 4px; border-radius: 9px; overflow: hidden; }
  .cal-event {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 6px 10px 6px 14px;
    background: var(--st-confirmed-soft); border: 1px solid var(--st-confirmed-line); color: var(--ink);
    transition: box-shadow .12s, transform .12s;
  }
  .cal-event::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--st-confirmed); }
  .cal-event.is-pending { background: var(--st-pending-soft); border-color: var(--st-pending-line); }
  .cal-event.is-pending::before { background: var(--st-pending); }
  .cal-event.is-attended { background: var(--st-attended-soft); border-color: var(--st-attended-line); }
  .cal-event.is-attended::before { background: var(--st-attended); }
  .cal-event.is-next { box-shadow: 0 0 0 2px var(--accent), 0 6px 16px #5c366626; z-index: 1; }
  .cal-event:hover { box-shadow: 0 4px 14px #47315426; transform: translateY(-1px); z-index: 2; }
  .cal-event-main { display: grid; min-width: 0; gap: 1px; }
  .cal-event-main strong { font-size: 14px; font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cal-event-service { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cal-event-meta { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
  .cal-event .badge { background: #ffffffc4; }
  .cal-event.is-short, .cal-event.is-tiny { align-items: center; padding-block: 0; }
  .cal-event.is-short .cal-event-main, .cal-event.is-tiny .cal-event-main { display: flex; align-items: baseline; gap: 8px; }
  .cal-event.is-tiny .cal-event-main strong { font-size: 12px; }
  .cal-event.is-tiny .cal-event-service, .cal-event.is-tiny .cal-event-meta { font-size: 11px; }
  .cal-event.is-tiny .badge { display: none; }
  .cal-gap { display: grid; place-items: center; color: transparent; border: 1px dashed transparent; font-size: 12px; font-weight: 650; }
  .cal-gap span { display: inline-flex; align-items: center; gap: 4px; }
  .cal-gap:hover, .cal-gap:focus-visible { color: var(--green); background: var(--green-soft); border-color: var(--green-line); }
  .cal-gap.is-tiny span { font-size: 11px; }
  .cal-now { position: absolute; left: -6px; right: 0; height: 0; border-top: 2px solid var(--error); z-index: 3; pointer-events: none; }
  .cal-now::before { content: ""; position: absolute; left: -4px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--error); }
  .cal-now span { position: absolute; right: 4px; top: -19px; font-size: 11px; font-weight: 700; color: var(--error); }
}

/* Semana */
.week-calendar { gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.week-column { border: 0; border-radius: 0; background: #fff; padding: 0 6px 8px; min-height: 210px; }
.week-column + .week-column { border-left: 1px solid var(--line); }
.week-column.is-closed { background: repeating-linear-gradient(135deg, #f9f6fb 0 6px, #fff 6px 12px); }
.week-column.current-day { background: #fcf8fe; }
.week-column-head { flex-direction: column; gap: 0; min-height: 58px; margin: 0 -6px 8px; border-radius: 0; border-bottom: 1px solid var(--line); position: relative; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.week-column-head strong { font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; line-height: 1.15; }
.week-column.current-day .week-column-head strong { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--purple); color: #fff; font-size: 16px; }
.week-column-head em { position: absolute; top: 6px; right: 6px; font-style: normal; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 20px; background: var(--lilac); color: var(--purple); letter-spacing: 0; }
.week-event { position: relative; padding-left: 11px; background: var(--st-confirmed-soft); border-color: var(--st-confirmed-line); overflow: hidden; }
.week-event::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--st-confirmed); }
.week-event.is-pending { background: var(--st-pending-soft); border-color: var(--st-pending-line); }
.week-event.is-pending::before { background: var(--st-pending); }
.week-event.is-attended { background: var(--st-attended-soft); border-color: var(--st-attended-line); }
.week-event.is-attended::before { background: var(--st-attended); }
.week-event time { color: var(--ink); }
.week-empty { padding-top: 14px; color: #a99db1; }

/* Mes */
.month-calendar .month-weekdays { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 0; padding: 8px 0; border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; background: #fbf8fc; }
.month-calendar .month-weekdays, .month-calendar .month-grid { gap: 0; }
.month-calendar .month-grid { border: 1px solid var(--line); border-radius: 0 0 14px 14px; overflow: hidden; background: var(--line); gap: 1px; }
.month-calendar .month-day, .month-calendar .month-blank { min-height: 74px; border-radius: 0; border: 0; background: #fff; }
.month-calendar .month-blank { background: #fbf9fc; }
.month-calendar .month-day { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 4px; padding: 7px 8px; position: relative; }
.month-calendar .month-day strong { display: grid; place-items: center; min-width: 26px; height: 26px; border-radius: 50%; font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.month-calendar .month-day.is-past strong { color: #8d8096; }
.month-calendar .month-day.is-closed { background: repeating-linear-gradient(135deg, #f9f6fb 0 6px, #fff 6px 12px); }
.month-calendar .month-day.is-closed strong { color: #a99db1; }
.month-calendar .month-day.is-today strong { background: var(--purple); color: #fff; }
.month-calendar .month-day:hover { background: var(--st-confirmed-soft); }
.month-calendar .month-day[aria-current] { background: var(--st-confirmed-soft); color: var(--ink); box-shadow: inset 0 0 0 2px var(--purple); z-index: 1; }
.month-calendar .month-day[aria-current] .load-dots i { background: var(--accent); }
.month-calendar .month-day[aria-current] .load-dots b { color: var(--accent); }
.month-calendar .month-load { display: flex; align-items: center; gap: 5px; }
.month-calendar .month-load small { font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.month-calendar .month-load .load-dots { margin: 0; }
@media (min-width: 731px) {
  .month-calendar .month-load .load-dots { display: none; }
  .month-calendar .month-load::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
}

/* Horarios de atención */
.hours-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.hours-summary { font-weight: 650; color: var(--plum); }
.working-hours-list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.working-hours-day { display: grid; grid-template-columns: 132px auto minmax(60px, 1fr); align-items: center; gap: 4px 14px; padding: 8px 14px; background: #fff; }
.working-hours-day.is-off { background: #fbf9fc; }
.working-hours-toggle { gap: 10px; }
.working-hours-toggle strong { font-size: 14px; }
.working-hours-day.is-off .working-hours-toggle strong { color: var(--muted); font-weight: 600; }
.working-hours-toggle input.switch {
  appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 38px; height: 22px; margin: 0; border-radius: 22px;
  background: #d9cfe0; position: relative; cursor: pointer; transition: background .15s;
}
.working-hours-toggle input.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px #2e1e3640; transition: transform .15s;
}
.working-hours-toggle input.switch:checked { background: var(--purple); }
.working-hours-toggle input.switch:checked::after { transform: translateX(16px); }
.working-hours-range { display: flex; align-items: center; gap: 8px; }
.working-hours-range input { width: 104px; min-height: 40px; padding: 6px 8px; border: 1px solid #ded0e7; border-radius: 10px; background: #fff; font-variant-numeric: tabular-nums; font-weight: 600; text-align: center; }
.hours-dash { color: var(--muted); font-size: 13px; }
.hours-closed { display: none; }
.working-hours-day.is-off .working-hours-range { display: none; }
.working-hours-day.is-off .hours-closed { display: block; }
.hours-bar { position: relative; height: 8px; border-radius: 8px; background: #f1eaf5; overflow: hidden; }
.hours-bar i { position: absolute; top: 0; bottom: 0; border-radius: 8px; background: linear-gradient(90deg, var(--accent), var(--purple)); transition: left .15s, width .15s; }
@media (max-width: 730px) {
  .working-hours-day { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 6px 12px 10px; }
  .working-hours-day.is-off { padding-bottom: 6px; }
  .working-hours-range { grid-column: 1 / -1; grid-row: 2; }
  .working-hours-range label { flex: 1; min-width: 0; }
  .working-hours-range input { width: 100%; min-width: 0; }
  .hours-closed { grid-column: 2; grid-row: 1; }
  .hours-bar { grid-column: 1 / -1; grid-row: 3; height: 5px; margin-top: 6px; }
  .working-hours-day.is-off .hours-bar { display: none; }
  .day-list:not(.compact-list) .list-caption strong { display: none; }
  .day-list:not(.compact-list) .list-caption { margin-top: 12px; }
  .month-calendar .month-day, .month-calendar .month-blank { min-height: 52px; }
  .month-calendar .month-day { align-items: center; justify-content: center; padding: 4px 2px; gap: 2px; }
  .month-calendar .month-load small { display: none; }
  .week-calendar { border: 0; border-radius: 0; background: none; display: grid; gap: 8px; overflow: visible; }
  .week-column { border: 1px solid var(--line); border-radius: 12px; min-height: 0; padding: 0 8px 8px; }
  .week-column + .week-column { border-left: 1px solid var(--line); }
  .week-column-head { flex-direction: row; justify-content: flex-start; gap: 8px; min-height: 44px; margin: 0 -8px 8px; padding-inline: 12px; border-radius: 0; }
  .week-column-head em { position: static; margin-left: auto; }
  .week-column-head svg { margin-left: 4px; }
  .week-column:has(.week-empty) .week-column-head { margin-bottom: 0; border-bottom: 0; }
  .week-column:has(.week-empty) { padding-bottom: 0; }
  .week-empty { display: none; }
}
@media (max-width: 1110px) and (min-width: 731px) {
  .week-calendar { grid-template-columns: repeat(7, minmax(128px, 1fr)); overflow-x: auto; }
  .week-column-head { flex-direction: column; justify-content: center; padding-inline: 0; }
  .week-column-head svg { display: none; }
  .week-event { display: block; }
  .week-event strong, .week-event span { display: block; }
  .week-empty { text-align: center; }
}
.booking-week .week-day { font-weight: 500; }
.booking-week .week-day small { overflow: hidden; text-overflow: clip; max-width: 100%; }

/* En tablet la semana se desliza de costado: se avisa, porque los días que faltan no se ven. */
.week-hint { display: none; }
@media (max-width: 1110px) and (min-width: 731px) {
  .week-hint { display: flex; align-items: center; justify-content: flex-end; gap: 5px; margin-top: 8px; }
  .week-calendar { scroll-snap-type: x proximity; scrollbar-width: thin; }
  .week-column { scroll-snap-align: start; }
}

/* Camillas: una columna por cada una en la grilla del día. */
.cal-beds { display: none; }
.turn-bed { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: -4px 0 14px; }
.beds-choice { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 320px; }
.beds-choice .choice-tile { min-height: 46px; cursor: pointer; font: inherit; }
.beds-choice .choice-tile[aria-pressed="true"] { background: var(--lilac-strong); border-color: var(--purple); color: var(--plum); }
.simultaneo-aviso { display: flex; align-items: flex-start; gap: 7px; margin-top: 8px; padding: 8px 10px; border-radius: 9px; background: var(--amber-soft); color: var(--amber); font-weight: 600; }
.simultaneo-aviso svg { flex: 0 0 auto; margin-top: 2px; }
.shared-gap > summary .gap-prompt { color: var(--purple); }
@media (min-width: 731px) {
  .cal-beds { display: grid; margin: 14px 0 -8px 54px; gap: 0; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
  .cal-beds span { padding: 0 8px 6px; border-bottom: 2px solid var(--lilac-strong); }
  .cal-beds.beds-2 { grid-template-columns: repeat(2, 1fr); }
  .cal-beds.beds-3 { grid-template-columns: repeat(3, 1fr); }
  .cal-beds.beds-4 { grid-template-columns: repeat(4, 1fr); }
  .cal-lane[class*="beds-"]::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-repeat: no-repeat; }
  .cal-lane.beds-2::after { background-image: linear-gradient(var(--line), var(--line)); background-size: 1px 100%; background-position: 50% 0; }
  .beds-2 .cal-event.bed-1 { right: calc(50% + 3px); }
  .beds-2 .cal-event.bed-2 { left: calc(50% + 3px); }
  .beds-3 .cal-event.bed-1 { right: calc(66.667% + 3px); }
  .beds-3 .cal-event.bed-2 { left: calc(33.333% + 3px); right: calc(33.333% + 3px); }
  .beds-3 .cal-event.bed-3 { left: calc(66.667% + 3px); }
  .beds-4 .cal-event.bed-1 { right: calc(75% + 3px); }
  .beds-4 .cal-event.bed-2 { left: calc(25% + 3px); right: calc(50% + 3px); }
  .beds-4 .cal-event.bed-3 { left: calc(50% + 3px); right: calc(25% + 3px); }
  .beds-4 .cal-event.bed-4 { left: calc(75% + 3px); }
  .cal-lane[class*="beds-"] .cal-event { flex-direction: column; gap: 2px; }
  .cal-lane[class*="beds-"] .cal-event.is-short, .cal-lane[class*="beds-"] .cal-event.is-tiny { flex-direction: row; }
  .cal-lane[class*="beds-"] .cal-gap { z-index: 0; }
}

/* Tiempo de pose: el rato de manos libres dentro de un turno. */
.pose-fields { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.pose-fields > legend { font-weight: 600; margin-bottom: 6px; }
.hands-free { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-size: 12px; font-weight: 650; }
.choice.is-suggested .choice-tile { border-color: var(--green-line); background: var(--green-soft); }
.choice.is-suggested .choice-tile small { display: block; font-size: 10px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .04em; }
.choice.is-suggested input:checked + .choice-tile small { color: inherit; }
.simultaneo-aviso.is-ok { background: var(--green-soft); color: var(--green); }
.glance-metrics.has-five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .glance-metrics.has-five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .glance-metrics.has-five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cal-pose { display: none; }
@media (min-width: 731px) {
  .cal-pose {
    display: block; position: absolute; left: 4px; right: 4px; z-index: 1; pointer-events: none; border-radius: 0 6px 6px 0;
    /* Sólo una marca en el borde: no tapa el nombre ni el servicio. */
    border-left: 4px solid var(--green); background: linear-gradient(to right, #2f7d5b14, transparent 38%);
  }
  .cal-pose i { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); padding: 1px 5px; border-radius: 6px; background: #ffffffd9; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--green); }
  .beds-2 .cal-pose.bed-1 { right: calc(50% + 3px); }
  .beds-2 .cal-pose.bed-2 { left: calc(50% + 3px); }
  .beds-3 .cal-pose.bed-1 { right: calc(66.667% + 3px); }
  .beds-3 .cal-pose.bed-2 { left: calc(33.333% + 3px); right: calc(33.333% + 3px); }
  .beds-3 .cal-pose.bed-3 { left: calc(66.667% + 3px); }
  .beds-4 .cal-pose.bed-1 { right: calc(75% + 3px); }
  .beds-4 .cal-pose.bed-2 { left: calc(25% + 3px); right: calc(50% + 3px); }
  .beds-4 .cal-pose.bed-3 { left: calc(50% + 3px); right: calc(25% + 3px); }
  .beds-4 .cal-pose.bed-4 { left: calc(75% + 3px); }
}
.pose-rows { display: grid; gap: 8px; }
.pose-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.pose-row .icon-button { margin-bottom: 3px; }
.pose-fields > .button { justify-self: start; }

/* Agendar sobre la grilla: horarios libres tocables y el turno nuevo en su lugar. */
.booking-grid-hint { margin: 12px 0 0; }
@media (min-width: 731px) {
  .booking-grid { margin-top: 10px; }
  .cal-slot {
    position: absolute; left: 4px; right: 4px; display: flex; align-items: center; justify-content: center;
    border: 1px dashed transparent; border-radius: 7px; color: var(--muted); font-size: 11px; font-weight: 650;
    font-variant-numeric: tabular-nums; cursor: pointer; transition: background .1s, border-color .1s;
  }
  .cal-slot input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
  .cal-slot span { opacity: .5; pointer-events: none; }
  .cal-slot:hover, .cal-slot:has(input:focus-visible) { background: var(--lilac); border-color: var(--lilac-strong); color: var(--plum); }
  .cal-slot:hover span, .cal-slot:has(input:focus-visible) span, .cal-slot.is-suggested span { opacity: 1; }
  .cal-slot:has(input:focus-visible) { outline: 2px solid var(--purple); outline-offset: 1px; }
  .cal-slot.is-suggested { background: var(--green-soft); border-color: var(--green-line); color: var(--green); }
  .cal-event.is-taken { background: #f7f3f9; border-color: var(--line); color: var(--muted); cursor: default; }
  .cal-event.is-taken::before { background: #c9bbd3; }
  .cal-event.is-taken:hover { box-shadow: none; transform: none; }
  .cal-event.is-taken strong { color: var(--ink); }
  .cal-new {
    position: absolute; left: 4px; right: 4px; z-index: 3; pointer-events: none; overflow: hidden;
    display: flex; align-items: baseline; gap: 8px; padding: 3px 10px; border-radius: 9px;
    background: var(--purple); color: #fff; font-size: 12px; box-shadow: 0 6px 16px #5c366640;
  }
  .cal-new strong { font-size: 13px; }
  .beds-2 :is(.cal-slot, .cal-new).bed-1 { right: calc(50% + 3px); }
  .beds-2 :is(.cal-slot, .cal-new).bed-2 { left: calc(50% + 3px); }
  .beds-3 :is(.cal-slot, .cal-new).bed-1 { right: calc(66.667% + 3px); }
  .beds-3 :is(.cal-slot, .cal-new).bed-2 { left: calc(33.333% + 3px); right: calc(33.333% + 3px); }
  .beds-3 :is(.cal-slot, .cal-new).bed-3 { left: calc(66.667% + 3px); }
  .beds-4 :is(.cal-slot, .cal-new).bed-1 { right: calc(75% + 3px); }
  .beds-4 :is(.cal-slot, .cal-new).bed-2 { left: calc(25% + 3px); right: calc(50% + 3px); }
  .beds-4 :is(.cal-slot, .cal-new).bed-3 { left: calc(50% + 3px); right: calc(25% + 3px); }
  .beds-4 :is(.cal-slot, .cal-new).bed-4 { left: calc(75% + 3px); }
}

/* Lista para agendar (pantallas angostas): mismo lenguaje que la agenda del día. */
.hands-free { display: block; overflow-wrap: normal; }
.hands-free svg { vertical-align: -2px; margin-right: 2px; }
.booking-timeline { gap: 8px; }
.booking-timeline .busy-block { background: #fff; border: 1px solid var(--line); border-left: 4px solid #c9bbd3; border-radius: 12px; }
.booking-timeline .busy-block .badge { background: var(--lilac); color: var(--muted); }
.booking-timeline .booking-block-copy > strong { color: var(--ink); }
.booking-timeline .gap-block { background: transparent; border: 1px dashed var(--green-line); border-radius: 12px; }
.booking-timeline .gap-block[open], .booking-timeline .gap-block.selected-gap { background: var(--green-soft); border-style: solid; }
.booking-timeline .shared-gap { border: 0; background: transparent; }
.booking-timeline .shared-gap[open] { background: var(--lilac); border-radius: 12px; }
.booking-timeline .shared-gap > summary .gap-prompt { grid-column: 1 / -1; justify-self: end; }
.booking-timeline .unavailable-gap { border-color: var(--line); color: var(--muted); }
.hands-free svg { display: inline; }

/* Agenda con camillas: cada columna tiene sus huecos, también al lado de un turno. */
@media (min-width: 731px) {
  .cal-gap span { max-width: 100%; min-width: 0; padding-inline: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .cal-gap span svg { flex: 0 0 auto; }
  .beds-2 .cal-gap.bed-1 { right: calc(50% + 3px); }
  .beds-2 .cal-gap.bed-2 { left: calc(50% + 3px); }
  .beds-3 .cal-gap.bed-1 { right: calc(66.667% + 3px); }
  .beds-3 .cal-gap.bed-2 { left: calc(33.333% + 3px); right: calc(33.333% + 3px); }
  .beds-3 .cal-gap.bed-3 { left: calc(66.667% + 3px); }
  .beds-4 .cal-gap.bed-1 { right: calc(75% + 3px); }
  .beds-4 .cal-gap.bed-2 { left: calc(25% + 3px); right: calc(50% + 3px); }
  .beds-4 .cal-gap.bed-3 { left: calc(50% + 3px); right: calc(25% + 3px); }
  .beds-4 .cal-gap.bed-4 { left: calc(75% + 3px); }
  /* Donde conviene se ve sin pasar el mouse; donde va a estar con dos a la vez, avisa en ámbar. */
  .cal-gap.is-pose { color: var(--green); border-color: var(--green-line); background: #2d644f0d; }
  .cal-gap.is-pose:hover, .cal-gap.is-pose:focus-visible { background: var(--green-soft); }
  .cal-gap.is-shared:hover, .cal-gap.is-shared:focus-visible { color: var(--amber); background: var(--amber-soft); border-color: var(--amber); }
}
.combine-help { margin-top: -8px; }
.turn-adjust { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.turn-adjust p { margin: 0; }

.encargo-filtros { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.encargo-filtros a { padding: 7px 12px; border-radius: 20px; font-size: 13px; color: var(--muted); }
.encargo-filtros a[aria-current] { background: var(--lilac-strong); color: var(--plum); font-weight: 650; }
.encargo-fila .client-copy { min-width: 0; overflow-wrap: anywhere; }
.encargo-producto + .encargo-producto, .encargo-renglon + .encargo-renglon { border-top: 1px solid var(--line); padding-top: 15px; }
.encargo-nombre { display: grid; grid-template-columns: minmax(0,1fr) 80px; align-items: end; gap: 10px; }
.encargo-producto input { min-width: 0; width: 100%; }
.encargo-producto > .button { justify-self: start; align-self: flex-start; }
.encargo-opcional > summary { color: var(--purple); cursor: pointer; font-size: 14px; font-weight: 600; }
.encargo-opcional[open] > summary { margin-bottom: 10px; }
.encargo-cuenta { align-self: start; min-width: 0; }
.encargo-cuenta .balance dd { font-variant-numeric: tabular-nums; }
.encargo-renglon, .encargo-clienta { overflow-wrap: anywhere; }
.encargo-renglon > strong { display: block; }
.encargo-clienta { margin-bottom: 14px; }
#acuerdo-retiro { scroll-margin-top: 70px; }
@media (max-width: 520px) {
  .encargo-filtros { gap: 3px; }
  .encargo-filtros a { padding: 7px 9px; }
  .encargo-nombre { grid-template-columns: minmax(0,1fr) 70px; }
}
.encargo-dos-fechas { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.encargo-fecha, .encargo-fecha input { min-width:0; width:100%; }
.encargo-fecha input { min-height:42px; }
.encargo-clienta-selector > legend { font-weight:650; margin-bottom:5px; }
.encargo-clienta-selector .person-results:empty { display:none; }
.encargo-clienta-selector .person-picked { flex-wrap:wrap; }
.encargo-aviso { color:var(--amber); font-size:13px; font-weight:600; }
.historial-clienta { min-width:0; align-self:start; }
.historial-filtros { display:flex; flex-wrap:wrap; gap:5px; margin:6px 0 12px; }
.historial-filtros button { background:transparent; border:1px solid var(--line); color:var(--muted); border-radius:16px; padding:5px 10px; font-size:13px; }
.historial-filtros button[aria-pressed="true"] { color:var(--plum); background:var(--lilac); border-color:var(--lilac-strong); }
.historial-clienta .history-item { overflow-wrap:anywhere; }
.historial-clienta .split-row { flex-wrap:wrap; }
.historial-clienta .history-item small { color:var(--muted); }
@media (max-width:480px) { .encargo-dos-fechas { grid-template-columns:1fr; } }
.encargo-marcha { margin-top: -6px; }
.encargo-correcciones { border-top: 1px solid var(--line); padding-top: 14px; }
.encargo-correcciones > p { margin-bottom: 10px; }
.encargo-correcciones .text-actions .danger-text { margin-left: 0; }
.encargo-cancelado { margin-bottom: 14px; }
.encargo-cancelado .text-actions { margin-top: 10px; }
.encargo-correcciones > .text-actions + p { margin-top: 10px; margin-bottom: 0; }

/* Lista de encargos: el paso que sigue y el saldo, sin abrir el encargo. */
.encargo-fila { gap: 10px; }
.encargo-fila a.client-copy { color: inherit; text-decoration: none; padding-block: 4px; }
.encargo-lado { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.encargo-saldo { font-size: 13px; font-weight: 650; color: var(--plum); white-space: nowrap; font-variant-numeric: tabular-nums; }
.encargo-saldo.is-ok { color: var(--green); }
.encargo-lado .button { min-height: 44px; padding-inline: 16px; white-space: nowrap; }
.encargo-ir { display: grid; place-items: center; width: 36px; min-height: 44px; color: var(--purple); border-radius: 10px; }
.encargo-ir:hover { background: var(--lilac); }
@media (max-width: 520px) {
  .encargo-fila { flex-wrap: wrap; }
  .encargo-fila a.client-copy { flex: 1 1 calc(100% - 46px); }
  .encargo-lado { order: 3; flex: 1 1 100%; justify-content: space-between; }
}
/* Alta: con un solo producto no hay nada que quitar; el retiro queda plegado hasta que haga falta. */
#productos-encargo .encargo-producto:only-child [data-action="quitar-producto-encargo"] { display: none; }
.encargo-retiro > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.encargo-retiro > summary::-webkit-details-marker { display: none; }
.encargo-retiro > summary h2 { margin: 0; }
.encargo-retiro > summary .chevron { margin-left: auto; color: var(--purple); transition: transform .15s; }
.encargo-retiro[open] > summary .chevron { transform: rotate(180deg); }
.encargo-retiro[open] > summary { margin-bottom: 14px; }
.encargo-sena h2 small { font-size: 13px; font-weight: 500; }

/* Productos ya encargados: se ofrecen debajo del nombre para no escribirlos de nuevo. */
.producto-sugerencias { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.producto-sugerencias:empty { display: none; }
.producto-sugerido {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 13px; border-radius: 22px;
  border: 1px solid var(--lilac-strong); background: var(--lilac); color: var(--plum); font: inherit; font-size: 13px; cursor: pointer;
}
.producto-sugerido b { font-weight: 650; }
.producto-sugerido span { color: var(--muted); font-variant-numeric: tabular-nums; }
.producto-sugerido:hover { background: var(--lilac-strong); }
/* Filtros con su cantidad, y la vista para el proveedor. */
.encargo-filtros a b { margin-left: 4px; padding: 1px 7px; border-radius: 10px; background: #ffffffb3; color: var(--plum); font-size: 12px; font-weight: 700; }
.encargo-filtros a:not([aria-current]) b { background: var(--lilac); }
.proveedor-fila .client-copy a { color: var(--purple); font-weight: 600; }
.proveedor-pagina > .panel + .panel { margin-top: 14px; }

/* Táctil: Bonanza se usa sobre todo en tablet y a veces en el celular. En esas pantallas no hay
   mouse: todo lo que se toca mide al menos 44 px y nada depende de pasar el cursor por encima.
   Vale para cualquier pantalla táctil y para todo ancho de tablet, tenga el puntero que tenga. */
@media (pointer: coarse), (max-width: 1100px) {
  .desktop-nav a { min-height: 46px; }
  .text-button, .back, summary { min-height: 44px; }
  :is(a, button).icon-button, :is(a, button).small-button { min-width: 44px; min-height: 44px; }
  .gap-card { min-height: 44px; }
  .view-toggle a, .view-toggle button { min-height: 44px; padding-inline: 14px; }
  .encargo-filtros a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 14px; }
  .historial-filtros button { min-height: 44px; padding-inline: 14px; }
  .task-glance a { min-height: 46px; }
  .text-button.caption-action { min-height: 44px; }
  .encargo-opcional > summary, summary.panel-heading, .panel > summary, .waitlist-reference summary { min-height: 44px; align-content: center; }
  .payment-side .text-button, .note-actions .text-button, .move-note .text-button { min-height: 44px; }
  /* Enlaces dentro de un texto: el renglón no crece, pero el dedo tiene de dónde agarrar. */
  .person-link { display: inline-block; padding-block: 13px; margin-block: -13px; }
}

/* Sin mouse no existe «pasar por encima»: lo que antes aparecía al acercar el cursor queda a la vista. */
@media (hover: none), (max-width: 1100px) {
  /* Agendar sobre la grilla: cada horario libre se lee y se ve que se puede tocar. */
  /* Sin recuadro: una columna limpia de horas, con buen contraste. El recuadro queda para lo sugerido. */
  .cal-slot { color: #5f4c6d; font-size: 12.5px; }
  .cal-slot span { opacity: 1; }
  .cal-slot.is-suggested { border-color: var(--green-line); background: var(--green-soft); color: var(--green); }
  /* Agenda: los huecos dicen qué son sin esperar a que el cursor pase. */
  .cal-gap { color: #8c7a99; border-color: #e6dcec; }
  .cal-gap.is-pose { color: var(--green); border-color: var(--green-line); }
  .cal-gap.is-shared { color: var(--amber); border-color: #e8cf9c; background: #fff9ee; }
}

/* Celular: al agendar, el botón queda siempre a mano en vez de al final de tres pantallas. */
@media (max-width: 730px) {
  #booking-form { padding-bottom: 70px; }
  #save-booking {
    position: fixed; z-index: 3; left: 12px; right: 12px; bottom: calc(66px + env(safe-area-inset-bottom));
    min-height: 50px; box-shadow: 0 8px 22px #3b234a40;
  }
  #save-booking:disabled { box-shadow: 0 4px 14px #3b234a1f; }
}
