/* Product CSS. Tokens from design/tokens.css. Screens follow docs/DESIGN.md. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html:has(.market) { scroll-padding-top: var(--space-16); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  font-weight: var(--weight-regular);
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.page {
  width: min(var(--canvas-max), calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 96px;
}
.page.wide { width: calc(100% - 48px); }
.page.narrow { width: min(420px, calc(100% - 32px)); padding-top: 72px; }
.page.book {
  width: min(480px, calc(100% - 32px));
  padding: 32px 0 72px;
}
.lede { margin: 0 0 var(--space-6); color: var(--ink-soft); font-size: var(--text-body); }
.panel .lede, .stack .lede { margin: 0; }
.stack { display: grid; gap: 12px; }
.continue { margin-top: var(--space-5); }

.btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--control-height);
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  line-height: 1;
  text-decoration: none;
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease), color var(--duration) var(--ease);
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { border-color: var(--line); background: var(--surface); }
.btn-secondary:hover, .btn-quiet:hover { background: var(--bg-muted); }
.btn-quiet { color: var(--ink-soft); }
.btn-danger { background: var(--alert); color: var(--on-primary); }
.btn-danger:hover { background: color-mix(in srgb, var(--alert) 85%, var(--ink)); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-tiny { min-height: 28px; padding: 4px 8px; font-size: var(--text-caption); }
.btn-icon { width: var(--control-height); padding: 8px; }
.btn-icon.btn-tiny { width: 28px; padding: 4px; }
.service-actions { display: grid; gap: var(--space-3); }
.service-actions.split { grid-template-columns: 1fr 1fr; }
.service-actions .btn { width: 100%; }

i[data-lucide] {
  display: inline-block;
  flex: none;
  vertical-align: middle;
}

.tip { position: relative; }
.tip[aria-label]::after {
  content: attr(aria-label);
  position: absolute;
  z-index: 8;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--on-primary);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  line-height: var(--leading-tight);
  width: max-content;
  max-width: 220px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-fast) var(--ease);
}
.tip[aria-label]:hover::after,
.tip[aria-label]:focus-visible::after { opacity: 1; }
.desk-bar .actions .tip[aria-label]::after {
  left: auto;
  right: 0;
  transform: none;
}

.field { display: grid; gap: var(--space-2); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.field label {
  color: var(--ink-faint);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  line-height: 1.3;
}
.field input, .field select, .field textarea {
  width: 100%;
  min-height: var(--control-height);
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-body);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder { color: var(--ink-faint); }
.field small { color: var(--ink-soft); font-size: var(--text-caption); }
.field a { overflow-wrap: anywhere; }
.link-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: fit-content;
  max-width: min(100%, 28rem);
  min-height: var(--control-height);
  padding: 8px 8px 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.link-row-url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--primary);
  text-decoration: none;
  font-size: var(--text-body);
}
.link-row-url:hover { color: var(--primary-hover); }
.link-row .btn[data-copied="true"] { color: var(--ok); }
.field.error input, .field.error select, .field.error textarea { border-color: var(--alert); }
.page-booking-toggle {
  margin-top: var(--space-4);
  font-weight: var(--weight-medium);
}
.file-pick {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.file-pick-control {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 1;
  min-width: 0;
  min-height: var(--control-height);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--duration) var(--ease);
}
.file-pick-control:hover { border-color: var(--line-strong); }
.file-pick-control:focus-within { box-shadow: var(--shadow-focus); }
.field.error .file-pick-control { border-color: var(--alert); }
.file-pick input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  opacity: 0;
  cursor: pointer;
  background: transparent;
}
.file-pick input[type="file"]:focus,
.file-pick input[type="file"]:focus-visible { box-shadow: none; }
.file-pick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  color: var(--ink);
  font-weight: var(--weight-medium);
  pointer-events: none;
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease), color var(--duration) var(--ease);
}
.file-pick-control:hover .file-pick-btn {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}
.file-pick-name {
  min-width: 0;
  color: var(--ink-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}
.file-pick .avatar { pointer-events: none; }
.optional { color: var(--ink-faint); font-weight: var(--weight-regular); }
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-body);
  cursor: pointer;
}
.check > label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.check input[type="checkbox"],
.agree input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease);
}
.check input[type="checkbox"]:hover,
.agree input[type="checkbox"]:hover { border-color: var(--primary); }
.check input[type="checkbox"]:checked,
.agree input[type="checkbox"]:checked {
  background-color: var(--primary);
  border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.2 8.4 6.6 11.6 12.8 4.4'/%3E%3C/svg%3E");
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}
.check input[type="checkbox"]:checked:hover,
.agree input[type="checkbox"]:checked:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}
.check input[type="checkbox"]:disabled,
.agree input[type="checkbox"]:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.check-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-faint);
  cursor: help;
}
.check-help:hover { color: var(--ink-soft); }
.check-help.tip[aria-label]::after {
  left: 0;
  transform: none;
  text-align: left;
}
.check-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-8);
}
.check-row .check { flex: none; white-space: nowrap; }

.choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  text-align: left;
  color: inherit;
  text-decoration: none;
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.choice.priced, .choice.menu { grid-template-columns: minmax(0, 1fr) auto auto; }
.choice.person { grid-template-columns: auto minmax(0, 1fr) auto; }
.choice:hover { border-color: var(--line-strong); }
.choice[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.choice.menu { cursor: default; }
.choice.menu:hover { border-color: var(--line); }
.choice .copy { min-width: 0; }
.choice .title, .choice .desc { display: block; }
.choice .title { margin: 0; font-size: var(--text-section); font-weight: var(--weight-semibold); letter-spacing: -.01em; }
.choice .desc {
  margin: var(--space-2) 0 0;
  color: var(--ink-soft);
  font-size: var(--text-meta);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.choice .price { font-size: var(--text-section); font-weight: var(--weight-semibold); }
.choice .meta { color: var(--ink-soft); font-size: var(--text-meta); white-space: nowrap; }
.choice .chev { color: var(--primary); width: var(--icon); height: var(--icon); }

.catalog { display: grid; gap: var(--space-5); }
.catalog > .panel + .panel { margin-top: 0; }
.menu-list { display: grid; }
.panel.menu-list {
  padding: 0;
  overflow: hidden;
}
.menu-label {
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
}
.menu-list form { margin: 0; }
.menu-list form + form,
.menu-list > .menu-row + .menu-row { border-top: 1px solid var(--line); }
.menu-list .lede { padding: var(--space-3) var(--space-4); }
.menu-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: start;
  gap: var(--space-3) var(--space-4);
  width: 100%;
  margin: 0;
  padding: var(--space-3) var(--space-4);
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
  color: inherit;
  text-decoration: none;
  transition: background var(--duration) var(--ease);
}
.menu-row:hover { background: var(--bg-muted); }
.menu-row[aria-pressed="true"] { background: var(--accent-soft); }
.menu-row .copy {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: var(--space-2);
  row-gap: var(--space-1);
}
.menu-row .title {
  margin: 0;
  min-width: 0;
  font-size: var(--text-section);
  font-weight: var(--weight-semibold);
  letter-spacing: -.01em;
}
.menu-row .badge { flex: none; }
.menu-row .desc {
  flex: 1 1 100%;
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text-meta);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
.menu-row .meta {
  color: var(--ink-soft);
  font-size: var(--text-meta);
  white-space: nowrap;
  text-align: right;
  padding-top: 2px;
}
.menu-row .price {
  font-size: var(--text-section);
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
  min-width: 3.25rem;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-3);
}
.staff-card {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: var(--space-4);
  min-width: 0;
  padding: var(--space-6) var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  text-align: center;
  color: inherit;
  text-decoration: none;
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.staff-card:hover { border-color: var(--line-strong); }
.staff-card .avatar {
  width: var(--logo);
  height: var(--logo);
  font-size: var(--text-section);
}
.staff-card .copy {
  display: grid;
  justify-items: center;
  gap: var(--space-2);
  min-width: 0;
  width: 100%;
}
.staff-card .title {
  margin: 0;
  font-size: var(--text-section);
  font-weight: var(--weight-semibold);
  letter-spacing: -.01em;
}
.staff-card .desc {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text-meta);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.avatar {
  width: var(--avatar);
  height: var(--avatar);
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--bg-muted);
  color: var(--ink-soft);
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  overflow: hidden;
  flex-shrink: 0;
}
.avatar.icon { background: var(--primary-soft); color: var(--primary); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.step-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  min-height: 48px;
  margin-bottom: var(--space-3);
}
.back {
  display: grid;
  place-items: center;
  width: var(--space-8);
  height: var(--space-8);
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--primary);
  text-decoration: none;
}
.back svg { width: var(--icon-lg); height: var(--icon-lg); }
.step-head h2 {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: var(--text-title);
  font-weight: var(--weight-semibold);
  letter-spacing: -.02em;
}
.step-head-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: none;
}
.step-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
  color: var(--ink-faint);
  font-size: var(--text-micro);
  font-weight: var(--weight-medium);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ring {
  width: var(--ring-size);
  height: var(--ring-size);
  border-radius: var(--radius-pill);
  background: conic-gradient(var(--ok) var(--p, 50%), var(--line) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent 62%, #000 64%);
          mask: radial-gradient(farthest-side, transparent 62%, #000 64%);
}

.callout {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.callout .ico { color: var(--ink-faint); width: var(--icon); height: var(--icon); flex: none; }
.callout .label { flex: 1; min-width: 0; color: var(--ink-soft); font-size: var(--text-body); }
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: max-content;
  min-height: var(--space-8);
  padding: 0 var(--space-3);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--on-primary);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  line-height: 1.2;
  white-space: nowrap;
}

.panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.cal-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.cal-month { padding: 0 var(--space-4); }
.cal-month + .cal-month { border-left: 1px solid var(--line); }
.cal-month h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 12px;
  font-size: var(--text-section);
  font-weight: var(--weight-semibold);
}
.cal-nav {
  display: grid;
  place-items: center;
  width: var(--ring-size);
  height: var(--ring-size);
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-soft);
  text-decoration: none;
}
.mobile-only { display: none; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
}
.cal-grid .dow {
  padding: 6px 0;
  color: var(--ink-faint);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
}
.day {
  width: var(--chip-height);
  height: var(--chip-height);
  margin: 0 auto;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  display: grid;
  place-items: center;
  text-decoration: none;
}
.day.mute, .day:disabled { color: var(--ink-faint); font-weight: var(--weight-regular); cursor: not-allowed; }
.day[aria-pressed="true"] { background: var(--accent); color: var(--on-primary); }
.day:not(.mute):not([aria-pressed="true"]):not(:disabled):hover { background: var(--accent-soft); }

.when-label {
  margin: var(--space-5) 0 var(--space-2);
  color: var(--ink-faint);
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
}
.cal-wrap + .when-label { margin-top: var(--space-5); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--chip-height);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  text-decoration: none;
}
.chip-time:hover { border-color: var(--line-strong); }
.chip-time[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--on-primary);
}
.chip-time:disabled {
  color: var(--ink-faint);
  background: var(--bg-muted);
  border-color: var(--line);
  cursor: not-allowed;
}

.summary {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  position: sticky;
  top: var(--space-6);
}
.summary h3 { margin: 0 0 16px; font-size: var(--text-section); font-weight: var(--weight-semibold); }
.sum-row {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: start;
  gap: 12px;
  padding: 10px 0;
  color: var(--ink-soft);
  font-size: var(--text-meta);
}
.sum-row.person { grid-template-columns: var(--avatar) 1fr; align-items: center; }
.sum-row.person div > span { display: block; }
.sum-row .ico { color: var(--ink-faint); margin-top: 2px; width: var(--icon-sm); height: var(--icon-sm); }
.sum-row strong { display: block; color: var(--ink); font-weight: var(--weight-medium); }
.sum-line { display: flex; justify-content: space-between; gap: 12px; }
.sum-row .amt { color: var(--ink); font-weight: var(--weight-semibold); }
.sum-empty {
  flex: 1;
  display: grid;
  place-content: center;
  place-items: center;
  gap: var(--space-3);
  text-align: center;
  color: var(--ink-faint);
}
.sum-empty p { margin: 0; }
.sum-empty .well {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--bg-muted);
}
.sum-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.sum-total {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-section);
  font-weight: var(--weight-semibold);
}
.sum-sub {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: var(--text-caption);
}

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--summary-width);
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg);
}
.shell.solo { grid-template-columns: minmax(0, 1fr); }
.shell-main { display: grid; gap: 16px; align-content: start; }

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: var(--text-micro);
  font-weight: var(--weight-medium);
}
.badge.ok { background: var(--ok-bg); color: var(--ok-fg); }
.badge.warn { background: var(--warn-bg); color: var(--warn-fg); }
.badge.alert { background: var(--alert-bg); color: var(--alert-fg); }
.badge.neutral { background: var(--bg-muted); color: var(--ink-soft); }

.banner {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.banner.alert { background: var(--alert-bg); color: var(--alert-fg); border-color: transparent; }
.banner.ok { background: var(--ok-bg); color: var(--ok-fg); border-color: transparent; }
.banner.warn { background: var(--warn-bg); color: var(--warn-fg); border-color: transparent; }
.banner p { margin: 0; }
.sheet .banner { margin-bottom: var(--space-4); }

.toasts {
  position: fixed;
  top: 72px;
  right: var(--space-4);
  z-index: 40;
  display: grid;
  gap: var(--space-2);
  width: min(360px, calc(100vw - 32px));
  margin: 0;
  pointer-events: none;
}
.toasts .banner {
  pointer-events: auto;
  box-shadow: var(--shadow-card);
  animation: toast-in var(--duration) var(--ease);
}
.toasts .banner.is-leaving {
  animation: toast-out var(--duration) var(--ease) forwards;
}
@keyframes toast-in {
  from { transform: translateX(calc(100% + 24px)); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toast-out {
  to { transform: translateX(calc(100% + 24px)); opacity: 0; }
}

.sheet {
  width: min(100% - 32px, 640px);
  max-height: min(90vh, 840px);
  margin: auto;
  padding: var(--space-5);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}
.sheet.side {
  inset: 0 0 0 auto;
  width: min(100%, 480px);
  height: 100%;
  max-height: 100%;
  margin: 0;
  border-right: 0;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.sheet.side[open] {
  animation: sheet-side-in var(--duration) var(--ease);
}
@keyframes sheet-side-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.sheet::backdrop { background: color-mix(in srgb, var(--ink) 40%, transparent); }
.sheet .step-head { margin-bottom: var(--space-4); }
.sheet h3 {
  margin: var(--space-5) 0 8px;
  font-size: var(--text-section);
  font-weight: var(--weight-semibold);
}
.sheet.side .stack > :first-child h3 { margin-top: 0; }
.sheet.narrow {
  width: min(100% - 32px, 400px);
}
.sheet.narrow .step-head h2 {
  font-size: var(--text-section);
  letter-spacing: -0.01em;
}
.sheet.narrow .lede { margin: 0 0 var(--space-4); }
.confirm {
  width: min(100% - 32px, 400px);
  margin: auto;
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}
.confirm::backdrop { background: color-mix(in srgb, var(--ink) 40%, transparent); }
.confirm h2 {
  margin: 0;
  font-size: var(--text-section);
  font-weight: var(--weight-semibold);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.confirm .lede { margin: 8px 0 0; }
.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.confirm-actions .btn { width: 100%; }

.policy-text { color: var(--ink-soft); font-size: var(--text-meta); white-space: pre-wrap; }
.agree { display: flex; align-items: center; gap: 8px; font-size: var(--text-body); }
.book-policy { display: grid; gap: var(--space-3); }
.book-policy-label {
  margin: 0;
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
}
.book-policy .policy-text { margin: 0; }

.desk-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-4);
  min-height: 56px;
  padding: 0 var(--space-8);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: relative;
  z-index: 30;
}
.desk-brand, .shop-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.desk-brand strong, .shop-brand strong { font-size: var(--text-section); font-weight: var(--weight-semibold); }
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.brand-lockup .brand-mark,
.brand-wordmark {
  display: block;
  height: 22px;
  width: auto;
}
.brand-lockup.sm .brand-mark,
.brand-lockup.sm .brand-wordmark { height: var(--icon-sm); }
.brand-lockup.lg .brand-mark,
.brand-lockup.lg .brand-wordmark { height: 36px; }
.panel.auth .brand-lockup { margin-bottom: var(--space-5); }
.desk-brand { justify-self: start; }
.desk-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-1); justify-self: center; }
.desk-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  text-decoration: none;
}
.desk-nav a:hover { background: var(--bg-muted); color: var(--ink); }
.desk-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); }
.desk-bar .actions { justify-self: end; display: flex; align-items: center; gap: var(--space-2); flex: none; }
.desk-bar .actions form { margin: 0; }
.desk-menu { position: relative; flex: none; }
.desk-menu > summary { list-style: none; cursor: pointer; }
.desk-menu > summary::-webkit-details-marker { display: none; }
.desk-menu-btn { max-width: min(280px, 48vw); padding: 8px 10px; justify-content: flex-start; background: transparent; }
.desk-menu-btn .desk-menu-chev {
  flex: none;
  color: var(--ink-faint);
  transition: color var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.desk-menu .desk-menu-btn:hover,
.desk-menu .desk-menu-btn:focus-visible,
.desk-menu[open] > .desk-menu-btn {
  background: var(--bg-muted);
  border-color: transparent;
  color: var(--ink);
}
.desk-menu .desk-menu-btn:hover .desk-menu-chev,
.desk-menu .desk-menu-btn:focus-visible .desk-menu-chev,
.desk-menu[open] > .desk-menu-btn .desk-menu-chev { color: var(--ink); }
.desk-menu[open] > .desk-menu-btn .desk-menu-chev { transform: rotate(180deg); }
.desk-menu > .desk-menu-btn[aria-current="page"] {
  background: var(--primary-soft);
  border-color: transparent;
  color: var(--primary);
}
.desk-who {
  min-width: 0;
  display: grid;
  justify-items: start;
  line-height: var(--leading-tight);
  text-align: left;
}
.desk-owner,
.desk-shop {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.desk-owner {
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  color: var(--ink);
}
.desk-shop {
  font-size: var(--text-caption);
  font-weight: var(--weight-regular);
  font-style: italic;
  color: var(--ink-soft);
}
.desk-menu-panel,
.more-menu-panel {
  position: absolute;
  z-index: 12;
  top: calc(100% + 6px);
  right: 0;
  min-width: 176px;
  padding: var(--space-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  display: grid;
}
.more-menu { position: relative; flex: none; }
.more-menu > summary { list-style: none; cursor: pointer; }
.more-menu > summary::-webkit-details-marker { display: none; }
.more-menu .more-menu-panel { min-width: 200px; }
.more-menu .more-menu-panel form {
  border-top: 0;
  margin: 0;
  padding: 0;
}
.desk-menu-panel a,
.desk-menu-panel button,
.more-menu-panel a,
.more-menu-panel button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  text-align: left;
  text-decoration: none;
}
.desk-menu-panel a:hover,
.desk-menu-panel button:hover,
.more-menu-panel a:hover,
.more-menu-panel button:hover { background: var(--bg-muted); }
.desk-menu-panel a[aria-current="page"],
.more-menu-panel a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); }
.desk-menu-panel form { border-top: 1px solid var(--line); margin-top: 2px; padding-top: 2px; }
.shop-bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 56px;
  padding: 0 var(--space-8);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.shop-brand { min-width: 0; }
.shop-bar .btn { margin-left: auto; }
.logo-mark {
  width: var(--logo);
  height: var(--logo);
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--bg-muted);
  color: var(--ink-soft);
  font-size: var(--text-section);
  font-weight: var(--weight-semibold);
  overflow: hidden;
  flex-shrink: 0;
}
.logo-mark.sm { width: var(--avatar); height: var(--avatar); font-size: var(--text-caption); }
.logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.hero h1 { margin: 0 0 8px; font-size: var(--text-title); font-weight: var(--weight-semibold); letter-spacing: -.02em; }
.hero p { margin: 0; color: var(--ink-soft); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.shop-facts {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.shop-facts a { color: var(--ink); }
.book-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin: 0 0 var(--space-5);
}
.book-tabs a {
  padding: 6px 9px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  text-decoration: none;
}
.book-tabs a:hover { background: var(--bg-muted); color: var(--ink); }
.book-tabs a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); }

.book-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.book-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5) var(--space-3);
}
.book-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}
.book-powered {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: var(--space-1);
  color: var(--ink-faint);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}
.book-powered:hover { color: var(--ink-soft); }
.book-brand strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-section);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
}
.book-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 0 var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--line);
}
.book-step {
  color: var(--ink);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  line-height: 1.2;
}
a.book-step {
  color: var(--primary);
  text-decoration: none;
}
a.book-step:hover { color: var(--primary-hover); }
.book-step.is-current {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-primary);
}
.book-step-sep { display: grid; place-items: center; color: var(--ink-faint); }
.book-step-sep svg { width: 14px; height: 14px; }
.book-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  margin: 12px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
}
.book-total span:first-child {
  color: var(--ink-faint);
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.book-total .price {
  color: var(--ink);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
}
.book-body { padding: 0; }
.book-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: var(--space-3) var(--space-5) 0;
  color: var(--primary);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  text-decoration: none;
}
.book-list { display: grid; }
.book-chosen {
  display: grid;
  gap: 2px;
  padding: 14px 20px;
  background: var(--accent-soft);
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.book-chosen .title {
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
}
.book-chosen:hover { color: var(--primary); }
.book-cat { border-bottom: 1px solid var(--line); }
.book-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 16px 20px;
  list-style: none;
  cursor: pointer;
  color: var(--ink);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.book-cat-head::-webkit-details-marker { display: none; }
.book-cat-head::marker { content: ""; }
.book-cat-head:hover,
.book-cat[open] > .book-cat-head { background: var(--primary-soft); color: var(--primary); }
.book-cat-chev { display: grid; place-items: center; color: var(--ink-faint); transition: transform var(--duration) var(--ease); }
.book-cat[open] .book-cat-chev { transform: rotate(90deg); color: var(--primary); }
.book-service { border-top: 1px solid var(--line); }
.book-service form { margin: 0; }
.book-service-pick,
.book-staff {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: 14px 20px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.book-staff {
  grid-template-columns: var(--avatar) minmax(0, 1fr) auto;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.book-service:hover,
.book-service-pick:hover,
.book-staff:hover { background: var(--bg-muted); }
.book-service:has(.book-service-pick[aria-pressed="true"]),
.book-service-pick[aria-pressed="true"],
.book-staff[aria-pressed="true"] { background: var(--accent-soft); }
.book-service-pick .copy,
.book-staff .copy { display: grid; gap: 2px; min-width: 0; }
.book-service-pick .title,
.book-staff .title {
  color: var(--ink);
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
}
.book-staff:hover .title,
.book-cat-head:hover { color: var(--primary); }
.book-service-pick .desc {
  color: var(--ink-soft);
  font-size: var(--text-meta);
}
.book-service-pick .price,
.book-staff .price {
  color: var(--ink);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
}
.book-days {
  color: var(--ink-faint);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.book-info {
  padding: 0 20px 12px;
  color: var(--ink-soft);
  font-size: var(--text-caption);
}
.book-info summary {
  display: inline;
  cursor: pointer;
  color: var(--ink-faint);
  text-decoration: underline;
}
.book-info p { margin: 8px 0 0; }
.book-yours {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.book-yours h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.book-yours ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.book-yours li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: var(--space-3);
  margin: 0 0 8px;
}
.book-yours li:last-child { margin-bottom: 0; }
.book-yours li > div { min-width: 0; }
.book-yours li > div strong { line-height: 1; }
.book-yours .price {
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.book-yours form { display: flex; align-items: center; margin: 0; }
.book-option {
  display: block;
  color: var(--ink-soft);
  font-size: var(--text-meta);
  font-weight: var(--weight-regular);
}
.book-when {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: var(--text-meta);
}
.book-ask {
  padding: 28px 20px 32px;
  text-align: center;
}
.book-ask p {
  margin: 0 0 20px;
  font-size: var(--text-body);
}
.book-ask-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.book-ask-actions form { margin: 0; }
.book-ask-actions .btn { width: 100%; }
.book-body .stack,
.book-body .banner,
.book-body .callout,
.book-body .panel { margin: var(--space-4) var(--space-5); }
.book-body .book-list,
.book-body .book-yours,
.book-body .book-ask { margin: 0; }
.book-body .field-grid { margin-bottom: 0; grid-template-columns: 1fr; }
.book-cal {
  padding: var(--space-5) var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--line);
}
.book-cal .cal-wrap { grid-template-columns: 1fr; }
.book-cal .cal-month { padding: 0; }
.book-period { border-bottom: 1px solid var(--line); }
.book-period-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 16px 20px;
  min-width: 0;
  list-style: none;
  cursor: pointer;
  color: var(--ink);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.book-period-head > span:first-child { min-width: 0; }
.book-period-head::-webkit-details-marker { display: none; }
.book-period-head::marker { content: ""; }
.book-period-head:hover,
.book-period[open] > .book-period-head { background: var(--primary-soft); color: var(--primary); }
.book-period .chips { padding: var(--space-4) 20px 16px; }
.book-empty-times { padding: var(--space-5); }
.book-visit,
.book-done {
  padding: 28px 20px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.book-done { border-bottom: 0; }
.book-done h1 {
  margin: 0 0 8px;
  font-size: var(--text-title);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.02em;
}
.book-done .lede { margin: 0 0 20px; }
.book-visit-day,
.book-visit-time {
  margin: 0;
  color: var(--ink);
  font-size: var(--text-body);
}
.book-visit-service { margin: 10px 0; }
.book-visit-service .book-option { margin-top: 4px; }
.book-visit-total {
  margin: 16px 0 0;
  color: var(--ink);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
}
.book-form { padding: 20px; display: grid; gap: var(--space-4); }
.book-form .btn { width: 100%; }
.book-form > .book-confirm { order: 1; }
.book-body .field-grid.book-names { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.book-body .field-grid.book-contact { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.book-sms-note {
  margin: calc(var(--space-2) * -1) 0 0;
  color: var(--ink-soft);
  font-size: var(--text-caption);
}
.book-done-foot {
  padding: 24px 20px 28px;
  border-top: 1px solid var(--line);
  background: var(--bg-muted);
  text-align: center;
}
.book-done-foot p { margin: 0 0 16px; }
.book-done-foot .btn { width: 100%; }
.book-done .book-status { margin: 0 0 16px; }
.book-done .banner { margin: 0 0 20px; text-align: left; }
.book-manage-cancel {
  margin: 12px 0 0;
}
.book-manage-cancel .btn { width: 100%; }
.book-done-help {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: var(--text-meta);
}
.field-error {
  margin: 0;
  color: var(--alert-fg);
  font-size: var(--text-caption);
}
.field-label {
  color: var(--ink-faint);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  line-height: 1.3;
}

.book-body .book-cal,
.book-body .book-form,
.book-body .book-visit,
.book-body .book-period,
.book-body .book-empty-times { margin: 0; }
.book-body .book-cal + .book-list,
.book-body .book-cal + .book-empty-times { margin-top: var(--space-5); }

.visit {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  position: sticky;
  top: var(--space-6);
}
.visit h3 { margin: 0 0 12px; font-size: var(--text-section); font-weight: var(--weight-semibold); }
.visit a { color: var(--ink); }
.hours-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-meta);
}
.hours-row:last-child { border-bottom: 0; }
.hours-row .hours-day { color: var(--ink); font-weight: var(--weight-medium); }
.hours-row .when { color: var(--ink-soft); }
.hours-row.is-closed .when { color: var(--ink-faint); }
.hours-edit { display: grid; gap: var(--space-3); }
.hours-edit-row {
  display: grid;
  grid-template-columns: 110px auto 1fr 1fr;
  gap: 12px;
  align-items: center;
}
.hours-edit-row.staff { grid-template-columns: 110px auto auto 1fr 1fr; }
.hours-edit-row .time-field { min-width: 0; }
.catalog-table {
  padding: 0;
  overflow: hidden;
}
.catalog-table .menu-row .title {
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
}
.catalog-table .menu-row .price { font-size: var(--text-body); }
.menu-list-head {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 56px;
  padding: var(--space-3);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.menu-list-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  width: 100%;
}
.menu-list-tools {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: none;
}
.menu-search {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
}
.menu-search input {
  width: 100%;
  min-height: 36px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
}
.menu-pane .category-name input {
  font-size: var(--text-caption);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.menu-pane .add-category[open] > .category-row {
  right: auto;
  left: 0;
  width: min(280px, calc(var(--summary-width) - 24px));
}
.menu-list-body { padding: var(--space-2) 0 var(--space-6); }
.menu-group { display: grid; }
.menu-cat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--space-1);
  align-items: center;
  padding: var(--space-1) var(--space-2) var(--space-1) var(--space-3);
}
.menu-cat.is-loose { grid-template-columns: minmax(0, 1fr); padding-left: var(--space-4); }
.menu-cat h3,
.menu-cat .menu-label {
  margin: 0;
  padding: 4px 8px;
  color: var(--ink-faint);
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.panel.menu-pane { padding: 0; overflow: hidden; }
.menu-handle {
  display: grid;
  place-items: center;
  width: 20px;
  color: var(--ink-faint);
  cursor: grab;
}
.menu-handle:active { cursor: grabbing; }
.menu-items { display: grid; }
.menu-items > .menu-row + .menu-row { border-top: 1px solid var(--line); }
.menu-pane .menu-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  padding: var(--space-2) var(--space-3) var(--space-2) var(--space-5);
}
.menu-pane .menu-row .title {
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  letter-spacing: 0;
}
.menu-pane .menu-row.is-dragging,
.menu-group.is-dragging { opacity: 0.5; }
.menu-pane .is-drop-before { box-shadow: inset 0 2px 0 var(--primary); }
.menu-pane .is-drop-after { box-shadow: inset 0 -2px 0 var(--primary); }
.menu-add {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-1) var(--space-3) var(--space-3) var(--space-5);
  padding: var(--space-2) 0;
  color: var(--primary);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  text-decoration: none;
}
.menu-add:hover { color: var(--primary-hover); }
.menu-empty { padding: var(--space-3) var(--space-4); }
.menu-detail-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 56px;
  padding: var(--space-5) var(--space-6) var(--space-4);
  background: var(--bg);
}
.menu-crumb p {
  margin: 0 0 var(--space-1);
  color: var(--ink-faint);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
}
.menu-crumb h2 {
  margin: 0;
  font-size: var(--text-title);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.02em;
}
.menu-detail-body {
  padding: 0 var(--space-6) var(--space-12);
}
.menu-detail-body .banner { margin-bottom: var(--space-4); }
.menu-card {
  max-width: 560px;
  padding: var(--space-5);
}
.menu-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--line);
}
.menu-card-head h3 {
  margin: 0;
  font-size: var(--text-section);
  font-weight: var(--weight-semibold);
}
.menu-card .stack { gap: var(--space-4); }
.menu-read {
  display: grid;
  gap: var(--space-4);
  margin: 0;
}
.menu-read div { display: grid; gap: var(--space-1); }
.menu-read dt {
  color: var(--ink-faint);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
}
.menu-read dd {
  margin: 0;
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
}
.menu-card .menu-read + h3 { margin-top: var(--space-5); }
.menu-detail-empty {
  min-height: 100%;
  display: grid;
  place-content: center;
  place-items: center;
  gap: var(--space-3);
  padding: var(--space-8);
  text-align: center;
  color: var(--ink-faint);
}
.menu-detail-empty p { margin: 0; max-width: 280px; }
.menu-detail-empty .well {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--bg-muted);
  color: var(--ink-soft);
}
.staff-id {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}
.staff-id .avatar {
  width: var(--logo);
  height: var(--logo);
  font-size: var(--text-section);
}
.menu-pane .staff-row {
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}
.menu-card .hours-edit-row.staff {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.menu-card .hours-edit-row.staff > span:first-child {
  grid-column: 1 / -1;
}
.catalog-group { display: grid; }
.catalog-group + .catalog-group { border-top: 1px solid var(--line); }
.catalog-group .menu-list { border-top: 1px solid var(--line); }
.catalog-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-2) var(--space-3);
  align-items: center;
  padding: var(--space-2) var(--space-3) var(--space-2) var(--space-4);
  background: var(--bg-muted);
}
.catalog-head h3 {
  margin: 0;
  padding: 4px 8px;
  color: var(--ink-faint);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
}
.catalog-head .lede {
  margin: 0;
  padding: 0 8px 4px;
  color: var(--ink-soft);
  font-size: var(--text-meta);
}
.category-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: end;
}
.category-name { min-width: 0; }
.category-name input {
  width: 100%;
  min-height: 36px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-faint);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
}
.category-name input:hover,
.category-name input:focus {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}
.category-tools {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}
.category-tools form {
  display: flex;
  gap: var(--space-1);
  align-items: center;
  margin: 0;
}
.add-category { position: relative; flex: none; }
.add-category > summary { list-style: none; }
.add-category > summary::-webkit-details-marker { display: none; }
.add-category > .category-row { display: none; }
.add-category[open] > .category-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 6;
  width: min(360px, calc(100vw - 48px));
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.service-add { white-space: nowrap; }
.visit .btn { align-self: start; margin-top: var(--space-4); }
.section-label {
  margin: 28px 0 12px;
  color: var(--ink-faint);
  font-size: var(--text-micro);
  font-weight: var(--weight-semibold);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.section-label:first-child { margin-top: 0; }
.shop-foot {
  margin-top: 32px;
  color: var(--ink-faint);
  font-size: var(--text-caption);
}
.shop-foot a,
.shop-foot button {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  color: var(--ink-soft);
  font: inherit;
}
.shop-foot button:disabled { opacity: 0.4; cursor: not-allowed; }
.panel + .panel { margin-top: var(--space-5); }
.panel h2 { margin: 0 0 16px; font-size: var(--text-title); font-weight: var(--weight-semibold); }
.panel h3 { margin: 0 0 16px; font-size: var(--text-section); font-weight: var(--weight-semibold); }

[x-cloak] { display: none !important; }

.calendar-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--summary-width);
  gap: 24px;
  align-items: start;
}
body.desk-app {
  overflow: hidden;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}
body.desk-app .calendar-shell {
  flex: 1;
  min-height: 0;
  gap: 0;
  align-items: stretch;
  grid-template-rows: auto minmax(0, 1fr);
}
body.desk-app .calendar-shell > .calendar {
  display: contents;
}
body.desk-app .calendar-shell .calendar-head {
  grid-column: 1 / -1;
  margin-bottom: 0;
  min-height: 56px;
  padding: var(--space-3) var(--space-5);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
body.desk-app .calendar-shell .calendar-work {
  min-width: 0;
  min-height: 0;
  display: grid;
  background: var(--surface);
}
body.desk-app .calendar-shell .calendar-work > .lede {
  margin: 0;
  padding: var(--space-5);
  align-self: start;
}
body.desk-app .calendar-shell .calendar-board {
  max-height: none;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body.desk-app .calendar-shell .visit-pane.summary {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  height: auto;
  margin: 0;
  padding: 0 0 var(--space-5);
  border: 0;
  border-left: 1px solid var(--line-strong);
  border-radius: 0;
  box-shadow: none;
  background: var(--bg);
  position: static;
  align-self: stretch;
  z-index: 1;
}
body.desk-app .calendar-shell .desk-panel-head {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0 0 var(--space-4);
  padding: 0 var(--space-5);
  min-height: 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
body.desk-app .calendar-shell .desk-create .desk-panel-head,
body.desk-app .calendar-shell .pay.visit-pane .desk-panel-head,
body.desk-app .calendar-shell .sale.visit-pane .desk-panel-head {
  margin-bottom: 0;
}
body.desk-app .calendar-shell .visit-pane.summary > :not(.desk-panel-head):not(.desk-create) {
  margin-left: var(--space-5);
  margin-right: var(--space-5);
}
body.desk-app .calendar-shell .desk-create > :not(.desk-panel-head) {
  margin-left: var(--space-5);
  margin-right: var(--space-5);
}
body.desk-app .calendar-shell .sum-empty {
  margin: 0;
  padding: var(--space-5);
  min-height: 100%;
}
body.desk-app .calendar-shell .desk-panel-head .btn-quiet {
  color: var(--ink);
}
.sales-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--summary-width);
  gap: 24px;
  align-items: start;
}
body.desk-app .sales-shell {
  flex: 1;
  min-height: 0;
  gap: 0;
  align-items: stretch;
}
body.desk-app .sales-shell .sales {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
body.desk-app .sales-shell .visit-pane.summary {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  height: auto;
  margin: 0;
  padding: 0 0 var(--space-5);
  border: 0;
  border-left: 1px solid var(--line-strong);
  border-radius: 0;
  box-shadow: none;
  background: var(--bg);
  position: static;
  align-self: stretch;
  z-index: 1;
}
body.desk-app .sales-shell .desk-panel-head {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0 0 var(--space-4);
  padding: 0 var(--space-5);
  min-height: 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
body.desk-app .sales-shell .desk-create .desk-panel-head,
body.desk-app .sales-shell .pay.visit-pane .desk-panel-head,
body.desk-app .sales-shell .sale.visit-pane .desk-panel-head {
  margin-bottom: 0;
}
body.desk-app .sales-shell .visit-pane.summary > :not(.desk-panel-head):not(.desk-create) {
  margin-left: var(--space-5);
  margin-right: var(--space-5);
}
body.desk-app .sales-shell .desk-create > :not(.desk-panel-head) {
  margin-left: var(--space-5);
  margin-right: var(--space-5);
}
body.desk-app .sales-shell .sum-empty {
  margin: 0;
  padding: var(--space-5);
  min-height: 100%;
}
body.desk-app .sales-shell .desk-panel-head .btn-quiet {
  color: var(--ink);
}
.sales-head {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 56px;
  padding: var(--space-3) var(--space-5);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.sales-search {
  flex: 1;
  min-width: 0;
}
.sales-search input {
  width: 100%;
  min-height: 36px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  color: var(--ink);
  appearance: textfield;
  -webkit-appearance: none;
}
.sales-search input::-webkit-search-cancel-button,
.sales-search input::-webkit-search-decoration,
.sales-search input::-webkit-clear-button,
.sales-search input::-ms-clear,
.sales-search input::-ms-reveal {
  display: none;
  appearance: none;
  -webkit-appearance: none;
  width: 0;
  height: 0;
}
.sales-table { padding-bottom: var(--space-6); }
.sales-row {
  display: grid;
  grid-template-columns: minmax(6.5rem, 1.1fr) minmax(5.5rem, 0.8fr) minmax(6.5rem, 0.9fr) minmax(8rem, 1.4fr) minmax(5.5rem, 0.8fr);
  gap: var(--space-3);
  align-items: center;
  min-height: 52px;
  padding: 0 var(--space-5);
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.sales-row.is-head {
  min-height: 40px;
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  color: var(--ink-faint);
  border-bottom-color: var(--line-strong);
}
a.sales-row:hover { background: var(--bg-muted); }
a.sales-row[aria-pressed="true"] { background: var(--accent-soft); }
.sales-row .desk-status { margin: 0; }
.sales-amt {
  justify-self: end;
  font-variant-numeric: tabular-nums;
}
.sales-empty {
  margin: 0;
  padding: var(--space-5);
}
.customers-head {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 56px;
  padding: var(--space-3) var(--space-5);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.customers-search {
  flex: 1;
  min-width: 0;
}
.customers-count {
  flex: 0 0 auto;
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.customers-search input {
  width: 100%;
  min-height: 36px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  color: var(--ink);
  appearance: textfield;
  -webkit-appearance: none;
}
.customers-search input::-webkit-search-cancel-button,
.customers-search input::-webkit-search-decoration,
.customers-search input::-webkit-clear-button,
.customers-search input::-ms-clear,
.customers-search input::-ms-reveal {
  display: none;
  appearance: none;
  -webkit-appearance: none;
  width: 0;
  height: 0;
}
.customers-table { padding-bottom: var(--space-6); }
.customers-row {
  display: grid;
  grid-template-columns: minmax(8rem, 1.4fr) minmax(7rem, 1fr) minmax(8rem, 1.4fr) minmax(6.5rem, 0.9fr) minmax(4.5rem, 0.6fr);
  gap: var(--space-3);
  align-items: center;
  min-height: 52px;
  padding: 0 var(--space-5);
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.customers-row.is-head {
  min-height: 40px;
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  color: var(--ink-faint);
  border-bottom-color: var(--line-strong);
}
a.customers-row:hover { background: var(--bg-muted); }
a.customers-row[aria-pressed="true"] { background: var(--accent-soft); }
.customers-amt {
  justify-self: end;
  font-variant-numeric: tabular-nums;
}
.customers-empty {
  margin: 0;
  padding: var(--space-5);
}
.customers-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--summary-width);
  gap: 24px;
  align-items: start;
}
body.desk-app .customers-shell {
  flex: 1;
  min-height: 0;
  gap: 0;
  align-items: stretch;
}
body.desk-app .customers-shell .customers {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
body.desk-app .customers-shell .customers-pane.summary {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  height: auto;
  margin: 0;
  padding: 0 0 var(--space-5);
  border: 0;
  border-left: 1px solid var(--line-strong);
  border-radius: 0;
  box-shadow: none;
  background: var(--bg);
  position: static;
  align-self: stretch;
  z-index: 1;
}
.customers-pane { align-self: start; overflow: visible; }
.customers-pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.customers-pane-head h3 { margin: 0; }
body.desk-app .customers-shell .customers-pane-head {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: 0 0 var(--space-4);
  padding: 0 var(--space-5);
  min-height: 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
body.desk-app .customers-shell .customers-form .customers-pane-head {
  margin-bottom: 0;
}
body.desk-app .customers-shell .customers-pane.summary > :not(.customers-pane-head):not(.customers-form) {
  margin-left: var(--space-5);
  margin-right: var(--space-5);
}
body.desk-app .customers-shell .customers-form > :not(.customers-pane-head) {
  margin-left: var(--space-5);
  margin-right: var(--space-5);
}
body.desk-app .customers-shell .sum-empty {
  margin: 0;
  padding: var(--space-5);
  min-height: 100%;
}
body.desk-app .customers-shell .customers-pane-head .btn-quiet {
  color: var(--ink);
}
.customers-form { display: grid; gap: var(--space-4); }
.customers-form > .btn-primary { margin-top: var(--space-2); min-width: 0; }
.customers-names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.staff-shell,
.services-shell {
  display: grid;
  grid-template-columns: var(--summary-width) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
body.desk-app .staff-shell,
body.desk-app .services-shell {
  flex: 1;
  min-height: 0;
  gap: 0;
  align-items: stretch;
}
body.desk-app .staff-shell .menu-pane,
body.desk-app .services-shell .menu-pane {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: var(--surface);
  box-shadow: 1px 0 0 var(--line);
}
body.desk-app .staff-shell .menu-detail,
body.desk-app .services-shell .menu-detail {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: var(--bg);
}
.calendar { min-width: 0; }
.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}
.calendar-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.calendar-head-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
}
.calendar-staff-pick { position: relative; flex: none; }
.calendar-staff-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
}
.calendar-staff-btn:hover,
.calendar-staff-btn[aria-expanded="true"] { background: var(--bg-muted); }
.calendar-staff-btn .avatar {
  width: var(--space-8);
  height: var(--space-8);
  font-size: var(--text-micro);
}
.calendar-staff-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
}
.calendar-staff-chev {
  flex: none;
  color: var(--ink-faint);
  transition: transform var(--duration) var(--ease);
}
.calendar-staff-btn[aria-expanded="true"] .calendar-staff-chev { transform: rotate(180deg); }
.calendar-staff-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  min-width: 220px;
  padding: var(--space-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  display: grid;
}
.calendar-staff-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  text-decoration: none;
}
.calendar-staff-menu a:hover { background: var(--bg-muted); }
.calendar-staff-menu a[aria-current="true"] { background: var(--accent-soft); }
.calendar-staff-check {
  flex: none;
  margin-left: auto;
  color: var(--primary);
}
.calendar-head h2 { margin: 0; font-size: var(--text-title); font-weight: var(--weight-semibold); letter-spacing: -.02em; }
.calendar-date { position: relative; min-width: 0; }
.calendar-date-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
}
.calendar-date-btn:hover { background: var(--bg-muted); }
.calendar-date-btn svg { color: var(--ink-faint); }
.desk-date-popover, .calendar-date-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  width: 320px;
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.date-field-popover {
  width: 320px;
  max-width: 100%;
}
.desk-picker, .calendar-picker { padding: 0; }
.desk-picker h3, .calendar-picker h3 { margin-bottom: 12px; }
.date-field { position: relative; display: grid; gap: var(--space-2); }
.date-field-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: var(--control-height);
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-body);
  text-align: left;
  cursor: pointer;
}
.date-field-btn:hover { border-color: var(--line-strong); }
.date-field-btn:disabled {
  color: var(--ink-faint);
  background: var(--bg-muted);
  cursor: not-allowed;
}
.date-field-btn.is-empty { color: var(--ink-faint); }
.date-field-btn svg { color: var(--ink-faint); flex-shrink: 0; }
.time-field { position: relative; min-width: 0; }
.time-field-popover { width: calc(var(--chip-height) * 6); }
.time-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}
.time-col {
  display: grid;
  align-content: start;
  gap: var(--space-1);
  max-height: calc(var(--chip-height) * 6 + var(--space-1) * 5);
  overflow: auto;
}
.time-col .chip-time { width: 100%; }
.field > .cal-month { padding: 0; }
.calendar-view-toggle {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.calendar-view-toggle .btn {
  min-height: 36px;
  padding: 8px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--primary);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
}
.calendar-view-toggle .btn[aria-pressed="true"] {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: none;
}
.calendar-view-toggle .btn:disabled {
  opacity: 1;
  color: var(--primary);
  cursor: not-allowed;
}
.calendar-board {
  --cal-lane: 160px;
  position: relative;
  display: grid;
  grid-template-columns: 72px repeat(var(--lanes, 1), minmax(var(--cal-lane), 1fr));
  grid-auto-flow: column;
  grid-auto-columns: minmax(var(--cal-lane), 1fr);
  max-height: min(70vh, 900px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.calendar-board.week {
  --cal-lane: 108px;
  grid-template-columns: 56px repeat(7, minmax(var(--cal-lane), 1fr));
}
.calendar-gutter {
  position: sticky;
  left: 0;
  z-index: 5;
  background: var(--surface);
  box-shadow: 1px 0 0 var(--line);
}
.calendar-lane { border-left: 1px solid var(--line); min-width: 0; }
.calendar-gutter + .calendar-lane { border-left: 0; }
.calendar-lane-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  min-width: 0;
  padding: 12px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  font-weight: var(--weight-semibold);
  font-size: var(--text-caption);
  white-space: nowrap;
}
.calendar-lane-head .avatar { flex-shrink: 0; }
.calendar-board.week .calendar-lane-head {
  flex-direction: column;
  justify-content: center;
  gap: 0;
  text-align: center;
}
.calendar-lane-dow {
  color: var(--ink-faint);
  font-size: var(--text-micro);
  font-weight: var(--weight-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.calendar-lane.is-today .calendar-lane-head,
.calendar-lane.is-today .calendar-lane-dow { color: var(--primary); }
.calendar-gutter .calendar-lane-head {
  z-index: 4;
  border-bottom: 0;
}
.calendar-gutter .calendar-lane-body {
  background-color: var(--surface);
  background-image: none;
  cursor: default;
}
.calendar-lane-body {
  position: relative;
  height: calc(var(--minutes) / 15 * var(--cal-slot));
  background-image: linear-gradient(
    to bottom,
    transparent calc(var(--cal-slot) - 1px),
    var(--line) 0
  );
  background-size: 100% var(--cal-slot);
  background-repeat: repeat-y;
  cursor: cell;
}
.calendar-lane-body[data-writable="0"],
.calendar-lane-body.is-closed { cursor: default; }
.calendar-closed {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--ink-faint);
  font-size: var(--text-caption);
  pointer-events: none;
}
.calendar-tick {
  position: absolute;
  left: 8px;
  right: 4px;
  color: var(--ink-faint);
  font-size: var(--text-micro);
  line-height: 1.2;
  transform: translateY(-50%);
}
.calendar-tick.is-start {
  transform: none;
}
.calendar-now {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  height: 2px;
  margin-top: -1px;
  background: var(--accent);
  pointer-events: none;
}
.calendar-block {
  position: absolute;
  z-index: 2;
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 6px 8px;
  overflow: hidden;
  border-radius: 0;
  cursor: pointer;
  font-size: var(--text-caption);
  border: 1px solid transparent;
}
.calendar-block[draggable="true"] { cursor: grab; }
.calendar-block:active { cursor: grabbing; }
.calendar-block.selected {
  border-color: var(--ink);
  z-index: 2;
}
.calendar-block.is-creating {
  cursor: default;
  z-index: 3;
  overflow: visible;
  padding-right: 32px;
}
.calendar-block.is-hovering {
  z-index: 1;
  pointer-events: none;
  cursor: cell;
  background: var(--primary-soft);
  border: 1px dashed var(--primary);
  box-shadow: none;
}
.calendar-block.is-hovering strong {
  color: var(--primary);
  font-weight: var(--weight-medium);
}
.calendar-block strong,
.calendar-block > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.calendar-block strong { font-weight: var(--weight-semibold); color: var(--ink); }
.calendar-block-service {
  font-size: var(--text-micro);
  font-weight: var(--weight-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.calendar-block-when { color: var(--ink-soft); }
.calendar-block-staff { color: var(--ink-soft); }
.calendar-block-s { padding: 4px 6px; gap: 0; }
.calendar-block-s .calendar-block-when { display: none; }
.calendar-block-s .calendar-block-service { display: none; }
.calendar-block-s .calendar-block-staff { display: none; }
.calendar-block-m .calendar-block-when { display: none; }
.calendar-block-off {
  background-color: var(--surface);
  background-image: repeating-linear-gradient(
    -45deg,
    var(--bg-muted) 0,
    var(--bg-muted) 5px,
    var(--surface) 5px,
    var(--surface) 10px
  );
  border-color: var(--ink);
  box-shadow: none;
}
.calendar-block-off .calendar-block-when { display: block; }
.calendar-block-off.calendar-block-s .calendar-block-when { display: none; }
.calendar-block.lane-primary { background: var(--primary-soft); box-shadow: inset 3px 0 0 var(--primary); }
.calendar-block.lane-primary .calendar-block-service { color: var(--primary); }
.calendar-block.lane-muted { background: var(--bg-muted); box-shadow: inset 3px 0 0 var(--ink-faint); }
.calendar-block.lane-muted .calendar-block-service { color: var(--ink-faint); }
.calendar-block.lane-warn { background: var(--warn-bg); box-shadow: inset 3px 0 0 var(--warn); }
.calendar-block.lane-warn .calendar-block-service { color: var(--warn-fg); }
.calendar-block.lane-ok { background: var(--ok-bg); box-shadow: inset 3px 0 0 var(--ok); }
.calendar-block.lane-ok .calendar-block-service { color: var(--ok-fg); }
.calendar-block.lane-accent { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.calendar-block.lane-accent .calendar-block-service { color: var(--accent); }
.calendar-block.lane-alert { background: var(--alert-bg); box-shadow: inset 3px 0 0 var(--alert); }
.calendar-block.lane-alert .calendar-block-service { color: var(--alert-fg); }

.visit-pane { align-self: start; overflow: visible; }
.desk-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.desk-panel-head h3 { margin: 0; }
.desk-panel-head-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.desk-panel-head-copy h3 { margin: 0; }
.desk-create-switch {
  color: var(--primary);
  font-size: var(--text-meta);
  font-weight: var(--weight-medium);
  text-underline-offset: 2px;
}
.desk-create-switch:hover { color: var(--primary-hover); }
.desk-panel-tools {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: none;
}
.visit-pane.is-closed .desk-panel-head {
  margin-bottom: 0;
}
.visit-pane.is-closed .sum-row.person { padding-top: 14px; }
.closed-items {
  display: grid;
  gap: var(--space-3);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.closed-item {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  color: var(--ink-soft);
  font-size: var(--text-meta);
}
.closed-item strong {
  display: block;
  color: var(--ink);
  font-weight: var(--weight-medium);
}
.closed-item .amt {
  color: var(--ink);
  font-weight: var(--weight-semibold);
  font-variant-numeric: tabular-nums;
  flex: none;
}
.closed-totals {
  display: grid;
  gap: 6px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.closed-totals .sum-sub { margin-top: 0; }
.closed-pay {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: var(--text-meta);
  font-weight: var(--weight-medium);
}
.closed-pay .amt { font-variant-numeric: tabular-nums; }
.closed-details {
  display: grid;
  gap: 0;
  padding-top: 16px;
}
.closed-details h4 {
  margin: 0 0 4px;
  color: var(--ink-faint);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
}
.closed-details .sum-row { padding: 8px 0; }
.desk-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
}
.desk-status-row form { margin: 0; }
.desk-status-row .desk-status { margin: 0; }
.desk-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: var(--text-meta);
  font-weight: var(--weight-medium);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--ink-faint);
  flex: none;
}
.status-dot.lane-warn { background: var(--warn); }
.status-dot.lane-ok { background: var(--ok); }
.status-dot.lane-primary { background: var(--primary); }
.status-dot.lane-accent { background: var(--accent); }
.status-dot.lane-muted { background: var(--ink-faint); }
.status-dot.lane-alert { background: var(--alert); }
.desk-more { flex: none; }
.desk-more > summary { list-style: none; cursor: pointer; }
.desk-more > summary::-webkit-details-marker { display: none; }
.desk-more .desk-menu-panel {
  min-width: 200px;
}
.desk-more .desk-menu-panel form {
  border-top: 0;
  margin: 0;
  padding: 0;
}
.desk-menu-sep {
  height: 1px;
  margin: 4px 6px;
  background: var(--line);
}
.desk-more-status {
  justify-content: space-between;
}
.desk-more-status[aria-pressed="true"].lane-warn { background: var(--warn-bg); }
.desk-more-status[aria-pressed="true"].lane-ok { background: var(--ok-bg); }
.desk-more-status[aria-pressed="true"].lane-primary { background: var(--primary-soft); }
.desk-more-status[aria-pressed="true"].lane-accent { background: var(--accent-soft); }
.pay.visit-pane .desk-panel-head {
  justify-content: flex-start;
  gap: var(--space-2);
}
.checkout.visit-pane .desk-panel-head {
  justify-content: flex-start;
  gap: var(--space-2);
}
.sale.visit-pane .desk-panel-head {
  justify-content: flex-start;
  gap: var(--space-2);
  margin-bottom: 0;
}
.sale.visit-pane .desk-panel-head h3 {
  flex: 1;
  min-width: 0;
}
.checkout .sum-foot {
  margin-top: 0;
}
.checkout .continue {
  margin-top: var(--space-4);
}
.desk-checkout-add {
  padding: 10px 0;
}
.desk-checkout-amt {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  flex: none;
}
.desk-checkout-remove { margin: 0; }
.desk-checkout-remove .btn { color: var(--ink-faint); }
.desk-checkout-add select {
  width: 100%;
  min-height: var(--control-height);
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
}
.desk-checkout-add select:invalid,
.desk-checkout-add select:has(option[value=""]:checked) {
  color: var(--primary);
  font-weight: var(--weight-medium);
}
.pay-lines {
  display: grid;
  gap: 6px;
  padding: 12px 0;
}
.pay-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
  font-size: var(--text-meta);
}
.pay-line .amt {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  flex: none;
}
.pay-line.is-total {
  margin-top: var(--space-2);
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: var(--text-section);
  font-weight: var(--weight-semibold);
}
.pay-tip {
  align-items: center;
  gap: var(--space-2);
}
.pay-tip-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  flex: 1;
}
.pay-tip-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}
.pay-tip-chips .chip-time {
  min-height: 0;
  padding: 0 var(--space-2);
  font-size: var(--text-micro);
}
.pay-tip input {
  width: 5.5rem;
  min-height: 28px;
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  text-align: right;
  font-size: var(--text-body);
  font-variant-numeric: tabular-nums;
}
.pay-charge { margin: 0; }
.pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.pay-methods .btn { width: 100%; }
.desk-panel-when {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: var(--text-meta);
}
.desk-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.desk-create { display: grid; gap: var(--space-4); }
.desk-create > .btn-primary { margin-top: var(--space-2); min-width: 0; }
.desk-create select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-width: 0;
  min-height: var(--control-height);
  padding: 8px 12px;
  padding-right: var(--space-8);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a7f89' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: var(--icon-sm);
  color: var(--ink);
  font-size: var(--text-body);
  cursor: pointer;
}
.desk-create select:invalid { color: var(--ink-faint); }
.desk-create select optgroup {
  font-style: normal;
  font-weight: var(--weight-medium);
  color: var(--ink);
}
.desk-create-lines { display: grid; gap: var(--space-3); }
.desk-create-line { display: grid; gap: var(--space-3); }
.desk-create-line-pick.has-remove {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-1);
  align-items: center;
}
.desk-create-add { justify-self: start; }
.desk-create-total {
  display: flex;
  justify-content: space-between;
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
  font-size: var(--text-section);
  font-weight: var(--weight-semibold);
}
.desk-create-slot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.desk-create-slot > div { padding: 10px 12px; }
.desk-create-slot > div + div { border-left: 1px solid var(--line); }
.desk-create-slot span {
  display: block;
  color: var(--ink-faint);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
}
.desk-create-slot strong { font-weight: var(--weight-medium); }
.calendar-block-facts {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
}
.calendar-block-facts span {
  display: block;
  color: var(--ink-faint);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
}
.calendar-block-facts strong {
  display: block;
  margin-top: 2px;
  font-weight: var(--weight-medium);
}
.desk-create-search {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.desk-create-search:focus-within { box-shadow: var(--shadow-focus); }
.desk-create-search input {
  min-width: 0;
  border: 0;
  box-shadow: none;
}
.desk-create-search input:focus-visible { box-shadow: none; }
.desk-create-search .btn { margin-right: var(--space-1); color: var(--ink-faint); }
.desk-client-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
}
.desk-new-client {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-1) 0;
}
.desk-new-names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.desk-new-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}
.desk-new-actions .btn { width: 100%; }
.client-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.client-list .btn {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  display: grid;
  gap: 2px;
  height: auto;
  min-height: 0;
  padding: 8px 10px;
}
.client-list .btn span { color: var(--ink-soft); font-size: var(--text-caption); font-weight: var(--weight-regular); }
.client-list .client-add {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--primary);
}

.auth h2 { margin: 0 0 16px; font-size: var(--text-title); font-weight: var(--weight-semibold); }
.panel.auth .lede { margin-bottom: var(--space-8); }
.panel.auth .btn { width: 100%; }

/* Product landing */
.market { background: var(--bg); }
.market-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-4);
  min-height: 56px;
  padding: 0 var(--space-8);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.market-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-1); }
.market-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  text-decoration: none;
}
.market-nav a:hover { background: var(--bg-muted); color: var(--ink); }
.market-bar-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.market-wrap {
  width: min(var(--canvas-max), calc(100% - 48px));
  margin: 0 auto;
}
.market-section { padding: var(--space-20) 0; scroll-margin-top: var(--space-16); }
.market h2 { scroll-margin-top: var(--space-16); }
.market-eyebrow {
  margin: 0 0 var(--space-2);
  color: var(--ink-faint);
  font-size: var(--text-micro);
  font-weight: var(--weight-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.market h1,
.market h2,
.market h3 { margin: 0 0 var(--space-3); color: var(--ink); font-weight: var(--weight-semibold); }
.market h1 {
  font-size: var(--text-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.market h2 {
  font-size: var(--text-feature);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.market h3 {
  font-size: var(--text-section);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.market .lede { max-width: 36em; }
.market-center-title,
.market-center-lede { text-align: center; margin-left: auto; margin-right: auto; }
.market-top {
  position: relative;
  overflow: hidden;
}
.market-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 80% at 6% 18%, color-mix(in srgb, var(--accent) 32%, var(--bg)), transparent 60%),
    radial-gradient(ellipse 85% 75% at 94% 8%, color-mix(in srgb, var(--primary) 20%, var(--bg)), transparent 58%),
    radial-gradient(ellipse 75% 60% at 50% 100%, color-mix(in srgb, var(--accent) 22%, var(--bg)), transparent 55%),
    radial-gradient(ellipse 50% 40% at 70% 55%, color-mix(in srgb, var(--accent-soft) 80%, transparent), transparent 70%),
    var(--bg);
}
.market-hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(36vh, 280px);
  padding: var(--space-16) 0 var(--space-8);
}
.market-hero-copy {
  max-width: 48em;
  margin: 0 auto;
  text-align: center;
}
.market-hero-copy h1 {
  text-wrap: balance;
}
.market-hero-copy .lede {
  margin: 0 auto;
  max-width: 32em;
  color: var(--ink-soft);
}
.market-show {
  position: relative;
  z-index: 1;
  padding-top: 0;
  padding-bottom: var(--space-20);
}
.market-hero-show { position: relative; }
.market-show-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.market-show-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-1);
  margin-bottom: var(--space-6);
}
.market-show-tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  cursor: pointer;
}
.market-show-tab:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--ink); }
.market-hero-show:has(#show-cal:checked) label[for="show-cal"],
.market-hero-show:has(#show-book:checked) label[for="show-book"],
.market-hero-show:has(#show-sales:checked) label[for="show-sales"] {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-card);
}
.market-hero-show:has(#show-cal:focus-visible) label[for="show-cal"],
.market-hero-show:has(#show-book:focus-visible) label[for="show-book"],
.market-hero-show:has(#show-sales:focus-visible) label[for="show-sales"] {
  box-shadow: var(--shadow-focus);
}
.market-show-stage {
  width: min(720px, 100%);
  min-height: 360px;
  margin: 0 auto;
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 72%, var(--accent-soft));
  box-shadow: var(--shadow-card);
}
.market-show-panel { display: none; }
.market-hero-show:has(#show-cal:checked) [data-panel="cal"],
.market-hero-show:has(#show-book:checked) [data-panel="book"],
.market-hero-show:has(#show-sales:checked) [data-panel="sales"] { display: block; }
.market-show [data-panel="book"] { width: min(480px, 100%); margin: 0 auto; }
.market-frame-card,
.market-desk,
.market-sales { pointer-events: none; user-select: none; }
.market .book-cat-head { cursor: default; }
.market .book-cat.is-open > .book-cat-head { background: var(--primary-soft); color: var(--primary); }
.market .book-cat.is-open .book-cat-chev { transform: rotate(90deg); color: var(--primary); }
.market-desk {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.market-desk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
  border-bottom: 1px solid var(--line);
}
.market-desk-head strong {
  font-size: var(--text-title);
  letter-spacing: -0.02em;
}
.market-desk-board {
  display: grid;
  grid-template-columns: 48px repeat(3, minmax(0, 1fr));
  min-height: 280px;
}
.market-desk-gutter {
  display: grid;
  align-content: space-evenly;
  padding: 56px 8px 12px 0;
  color: var(--ink-faint);
  font-size: var(--text-micro);
  text-align: right;
}
.market-desk-lane { border-left: 1px solid var(--line); min-width: 0; }
.market-desk-lane header {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
}
.market-desk-body { position: relative; height: 224px; }
.market-desk .calendar-block { left: 2px; right: 2px; width: auto; cursor: default; }
.market-sales {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  min-height: 320px;
}
.market-sales-list {
  min-width: 0;
  border-right: 1px solid var(--line-strong);
  background: var(--surface);
}
.market-sales-list .sales-head { position: static; }
.market-sales-list .sales-search { flex: 1; min-width: 0; }
.market-sales-list .sales-search input {
  width: 100%;
  min-height: var(--control-height);
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-faint);
  font: inherit;
}
.market-sales-list .sales-row {
  grid-template-columns: minmax(4.5rem, 1fr) minmax(4rem, 0.8fr) minmax(3.5rem, 0.7fr) minmax(5rem, 1.2fr) minmax(3rem, 0.6fr);
  cursor: default;
}
.market-sales-list .sales-row[aria-pressed="true"] { background: var(--accent-soft); }
.market-sales-pay {
  display: grid;
  align-content: start;
  gap: var(--space-4);
  padding: 0 0 var(--space-5);
  background: var(--bg);
}
.market-sales-pay .desk-panel-head {
  position: static;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.market-sales-pay .pay-lines { padding: 0 var(--space-5); }
.market-pay-methods {
  grid-template-columns: 1fr 1fr;
  padding: 0 var(--space-5);
}
.market-pay-methods .btn { cursor: default; }
.market-path,
.market-features { background: var(--bg-muted); }
.market-pricing { background: var(--bg); }
.market-price-card {
  width: min(420px, 100%);
  margin: var(--space-10) auto 0;
  padding: var(--space-8) var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.market-price-card .lede {
  margin: 0 auto var(--space-6);
  max-width: 28em;
}
.market-price-amount {
  margin: 0 0 var(--space-3);
  color: var(--ink-soft);
  font-size: var(--text-section);
  font-weight: var(--weight-medium);
}
.market-price-amount span {
  color: var(--ink);
  font-size: var(--text-display);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.market-price-list {
  margin: 0 0 var(--space-8);
  padding: 0;
  list-style: none;
  text-align: left;
}
.market-price-list li {
  position: relative;
  padding: var(--space-2) 0 var(--space-2) var(--space-6);
  color: var(--ink-soft);
  font-size: var(--text-body);
  border-top: 1px solid var(--line);
}
.market-price-list li:last-child { border-bottom: 1px solid var(--line); }
.market-price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: var(--radius-pill);
  background: var(--primary);
}
.market-faq { background: var(--surface); border-block: 1px solid var(--line); }
.market-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.market-path .panel {
  padding: var(--space-6) var(--space-5);
  margin-top: 0;
  background: var(--surface);
}
.market-path .panel + .panel { margin-top: 0; }
.market-path .panel .market-eyebrow {
  margin: 0 0 var(--space-3);
  color: var(--primary);
  font-size: var(--text-title);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.02em;
  text-transform: none;
}
.market-path .panel h3 { margin: 0 0 var(--space-2); }
.market-path .lede { margin: 0; }
.market-type-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin: var(--space-8) 0 0;
  padding: 0;
  list-style: none;
}
.market-type-chips li {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-height);
  padding: 0 var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-section);
  font-weight: var(--weight-medium);
  box-shadow: var(--shadow-card);
}
.market-feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.market-feature-strip .panel {
  margin-top: 0;
  padding: var(--space-6) var(--space-5);
  background: var(--surface);
}
.market-feature-strip .panel + .panel { margin-top: 0; }
.market-feature-strip .market-eyebrow { margin: 0 0 var(--space-2); color: var(--accent); }
.market-feature-strip h3 { margin: 0 0 var(--space-2); }
.market-feature-strip .lede { margin: 0; }
.market-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: var(--space-12);
  align-items: start;
}
.market-faq-list { display: grid; }
.market-faq-list details { border-bottom: 1px solid var(--line); }
.market-faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  list-style: none;
  cursor: pointer;
  color: var(--ink);
  font-size: var(--text-section);
  font-weight: var(--weight-semibold);
}
.market-faq-list summary::-webkit-details-marker { display: none; }
.market-faq-list summary::marker { content: ""; }
.market-faq-list summary::after {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  border-right: 1.75px solid var(--ink-faint);
  border-bottom: 1.75px solid var(--ink-faint);
  transform: rotate(45deg);
  transition: transform var(--duration) var(--ease);
}
.market-faq-list details[open] summary::after { transform: rotate(-135deg); }
.market-faq-list details p {
  margin: 0 0 var(--space-4);
  color: var(--ink-soft);
  font-size: var(--text-body);
}
.market-close {
  position: relative;
  overflow: hidden;
  padding-bottom: var(--space-16);
  background:
    radial-gradient(ellipse 80% 85% at 16% 90%, color-mix(in srgb, var(--accent) 28%, var(--bg)), transparent 60%),
    radial-gradient(ellipse 75% 80% at 90% 12%, color-mix(in srgb, var(--primary) 18%, var(--bg)), transparent 58%),
    var(--bg);
}
.market-close-card {
  position: relative;
  z-index: 1;
  padding: var(--space-12) var(--space-8);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.market-close-card .lede,
.market-close-card .hero-actions { justify-content: center; margin-left: auto; margin-right: auto; }
.market-foot {
  padding: var(--space-10) 0;
  border-top: 1px solid var(--line);
  background: var(--bg-muted);
}
.market-foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-6);
}
.market-foot p {
  margin: var(--space-3) 0 0;
  color: var(--ink-soft);
  font-size: var(--text-meta);
}
.market-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
}
.market-foot nav a {
  color: var(--ink-soft);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  text-decoration: none;
}
.market-foot nav a:hover { color: var(--primary); }

@media (max-width: 1079px) {
  .cal-wrap { grid-template-columns: 1fr; }
  .cal-month + .cal-month { display: none; }
  .mobile-only { display: grid; }
  .desktop-only { display: none; }
}
@media (max-width: 960px) {
  .market-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
    padding: 12px 16px;
  }
  .market-bar .desk-brand { grid-area: brand; }
  .market-nav {
    grid-area: nav;
    justify-content: flex-start;
  }
  .market-bar-actions { grid-area: actions; }
  .market-hero {
    min-height: 0;
    padding: var(--space-12) 0 var(--space-6);
  }
  .market h1 { font-size: var(--text-feature); }
  .market h2 { font-size: var(--text-title); }
  .market-section { padding: var(--space-16) 0; }
  .market-show { padding-bottom: var(--space-16); }
  .market-show-stage { width: 100%; padding: var(--space-4); min-height: 0; }
  .market-desk-head { flex-wrap: wrap; }
  .market-desk-board { grid-template-columns: 40px repeat(2, minmax(0, 1fr)); }
  .market-desk-lane:last-child { display: none; }
  .market-sales { grid-template-columns: 1fr; }
  .market-sales-list { border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .market-faq-grid,
  .market-feature-strip { grid-template-columns: 1fr; }
  .shell, .field-grid, .calendar-shell, .sales-shell, .customers-shell, .staff-shell, .services-shell { grid-template-columns: 1fr; }
  body.desk-app .calendar-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(220px, 1fr) minmax(180px, 38%);
  }
  body.desk-app .calendar-shell .calendar-head { grid-column: 1; }
    body.desk-app .calendar-shell .visit-pane.summary {
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }
  body.desk-app .sales-shell,
  body.desk-app .customers-shell {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(220px, 1fr) minmax(180px, 38%);
  }
  body.desk-app .sales-shell .visit-pane.summary,
  body.desk-app .customers-shell .customers-pane.summary {
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }
  body.desk-app .staff-shell,
  body.desk-app .services-shell {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(220px, 38%) minmax(0, 1fr);
  }
  body.desk-app .staff-shell .menu-pane,
  body.desk-app .services-shell .menu-pane { box-shadow: 0 1px 0 var(--line); }
  .hours-edit-row { grid-template-columns: 1fr 1fr; }
  .hours-edit-row.staff { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hours-edit-row.staff > span:first-child { grid-column: 1 / -1; }
  .summary, .visit, .visit-pane, .customers-pane { position: static; }
  .page { width: min(100% - 32px, 720px); }
  .page.wide { width: calc(100% - 32px); }
  .page.book { width: min(480px, calc(100% - 32px)); }
  .shell { padding: 16px; gap: 16px; }
  .hero { flex-wrap: wrap; }
  .callout { flex-wrap: wrap; }
  .calendar-head-left { flex-wrap: wrap; }
  .desk-date-popover, .calendar-date-popover { width: min(320px, calc(100vw - 32px)); max-width: 100%; }
  .calendar-board {
    --cal-lane: 140px;
    grid-template-columns: 56px repeat(var(--lanes, 1), minmax(var(--cal-lane), 1fr));
  }
  .calendar-board.week {
    --cal-lane: 88px;
    grid-template-columns: 48px repeat(7, minmax(var(--cal-lane), 1fr));
  }
  .desk-bar, .shop-bar { padding: 12px 16px; flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .desk-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 12px;
    padding: 10px 16px;
  }
  .desk-brand { grid-column: 1; grid-row: 1; }
  .desk-bar .actions { grid-column: 2; grid-row: 1; margin-left: 0; }
  .desk-nav { grid-column: 1 / -1; grid-row: 2; }
  .desk-nav a { min-height: var(--control-height); padding: 8px 10px; }
  .market-nav a { min-height: var(--control-height); }
  .market-path-grid { grid-template-columns: 1fr; }
  .toasts {
    top: auto;
    bottom: var(--space-4);
    left: var(--space-4);
    right: var(--space-4);
    width: auto;
  }
  .shop-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 12px;
  }
  .shop-bar .btn { margin-left: 0; }
  .shop-brand strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
@media (max-width: 640px) {
  .market-wrap { width: calc(100% - 24px); }
  .market-bar-actions .btn-secondary { display: none; }
  .market-show-tab { min-height: var(--control-height); }
  .market-close-card { padding: var(--space-8) var(--space-5); }
  .page, .page.wide { width: calc(100% - 24px); padding: 16px 0 72px; }
  .page.narrow { width: min(420px, calc(100% - 24px)); padding-top: 48px; }
  .page.book { width: min(480px, calc(100% - 24px)); padding: 16px 0 72px; }
  .shell { padding: 0; }
  .hero { flex-direction: column; }
  .menu-row { gap: var(--space-2) var(--space-3); }
  .catalog-head { grid-template-columns: minmax(0, 1fr); }
  .category-tools { justify-content: flex-end; }
  .panel { padding: 16px; }
  .step-head h2 { flex: 1 1 auto; }
  .step-head-actions { flex-wrap: wrap; }
  .field input, .field select, .field textarea { font-size: var(--text-section); }
  .sheet { width: min(100% - 24px, 640px); }
  .sheet.side {
    width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0;
    border-radius: 0;
  }
  .confirm { width: min(100% - 24px, 400px); }
  .sheet.narrow { width: min(100% - 24px, 400px); }
  .calendar-board {
    --cal-lane: 128px;
    grid-template-columns: 48px repeat(var(--lanes, 1), minmax(var(--cal-lane), 1fr));
  }
  .calendar-board.week {
    grid-template-columns: 40px repeat(7, minmax(0, 1fr));
  }
  .calendar-board.week .calendar-lane-head { padding: 8px 4px; }
}
@media (max-width: 480px) {
  .shop-bar { grid-template-columns: minmax(0, 1fr); }
  .shop-bar .btn { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .book-body .field-grid.book-contact { grid-template-columns: 1fr; }
  .book-info summary { padding: var(--space-2) 0; }
  .calendar-board.week { grid-template-columns: 32px repeat(7, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .toasts .banner,
  .toasts .banner.is-leaving,
  .sheet.side[open] { animation: none; }
  .setup-pane.is-fwd,
  .setup-pane.is-back,
  .welcome-stage .welcome-block > * { animation: none; }
}

/* Set up your shop + sign in */
body.setup-app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.setup-root {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.setup-brand {
  display: flex;
  flex: none;
  padding: var(--space-6) var(--space-8) 0;
  text-decoration: none;
}
.setup-page {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: var(--space-6) var(--space-6) var(--space-12);
  overflow: auto;
}
.setup-stage {
  width: min(100%, 440px);
  margin: auto 0;
  display: grid;
  justify-items: center;
  gap: var(--space-8);
  text-align: center;
}
.setup-stage.is-wide { width: min(100%, 720px); }
.setup-step {
  margin: 0;
  color: var(--ink-faint);
  font-size: var(--text-micro);
  font-weight: var(--weight-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.setup-body { width: 100%; }
.setup-pane {
  display: grid;
  justify-items: center;
  gap: var(--space-8);
}
.setup-pane.is-fwd { animation: setup-fwd var(--duration) var(--ease); }
.setup-pane.is-back { animation: setup-back var(--duration) var(--ease); }
.setup-copy { max-width: 28em; }
.setup-copy h1 {
  margin: 0 0 var(--space-3);
  font-size: var(--text-feature);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
}
.setup-copy .lede { margin: 0; }
.setup-fields {
  width: 100%;
  text-align: left;
}
.setup-fields.stack { gap: var(--space-5); }
.setup-types {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}
.setup-type {
  appearance: none;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 56px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.setup-type:hover { border-color: var(--line-strong); }
.setup-type[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.setup-type-icon {
  flex: none;
  display: grid;
  place-items: center;
  color: var(--primary);
}
.setup-type .title {
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
}
.setup-staff {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}
.setup-staff-card {
  appearance: none;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: var(--space-5);
  min-height: 180px;
  padding: var(--space-6) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
}
.setup-staff-card:hover { border-color: var(--line-strong); }
.setup-staff-card[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.setup-staff-copy strong {
  font-size: var(--text-section);
  font-weight: var(--weight-semibold);
}
.setup-dots {
  display: grid;
  place-content: center;
  place-items: center;
  gap: 6px;
  min-height: 48px;
}
.setup-dots span {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 22%, transparent);
}
.setup-dots span:nth-child(odd) { background: var(--primary); box-shadow: none; }
.setup-dots[data-size="1"] span {
  width: 28px;
  height: 28px;
  background: var(--primary);
  box-shadow: none;
}
.setup-dots[data-size="few"] { grid-template-columns: repeat(3, 10px); }
.setup-dots[data-size="some"] {
  grid-template-columns: repeat(4, 8px);
  gap: 6px;
}
.setup-dots[data-size="some"] span { width: 8px; height: 8px; }
.setup-dots[data-size="many"] {
  grid-template-columns: repeat(8, 6px);
  gap: 4px;
}
.setup-dots[data-size="many"] span { width: 6px; height: 6px; }
.setup-staff-card[aria-pressed="true"] .setup-dots span {
  background: var(--accent);
  box-shadow: none;
}
.setup-staff-card[aria-pressed="true"] .setup-dots span:nth-child(even) {
  background: color-mix(in srgb, var(--accent) 45%, var(--on-primary));
}
.setup-nav {
  position: relative;
  display: grid;
  justify-items: center;
  width: 100%;
}
.setup-nav .back {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
.setup-cta { min-width: 220px; }
.setup-actions {
  display: grid;
  gap: var(--space-3);
}
.setup-stage > .banner { width: 100%; }
.setup-stage > .shop-foot { margin-top: 0; }
.setup-forgot { margin: 0; }
.setup-code-wrap {
  display: grid;
  gap: var(--space-5);
  justify-items: center;
  width: 100%;
}
.setup-code-wrap .field {
  width: min(100%, 360px);
  justify-items: center;
}
.setup-code-wrap .field label { text-align: center; }
.setup-code {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-2);
  width: 100%;
}
.setup-code-cell {
  width: 100%;
  aspect-ratio: 1;
  min-height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-muted);
  color: var(--ink);
  font-size: var(--text-title);
  font-weight: var(--weight-semibold);
  line-height: 1;
  text-align: center;
  caret-color: var(--primary);
}
.setup-code-cell:hover { border-color: var(--line-strong); }
.setup-code-cell:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: var(--shadow-focus);
}
.setup-resend { min-width: 0; }
@keyframes setup-fwd {
  from { opacity: 0; transform: translateY(var(--space-2)); }
  to { opacity: 1; transform: none; }
}
@keyframes setup-back {
  from { opacity: 0; transform: translateY(calc(-1 * var(--space-2))); }
  to { opacity: 1; transform: none; }
}
.welcome-root {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.welcome-page {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: var(--space-8) var(--space-6) var(--space-16);
  overflow: auto;
}
.welcome-stage {
  width: min(100%, 520px);
  margin: auto 0;
  display: grid;
  justify-items: center;
}
.welcome-block {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: var(--space-5);
  text-align: center;
}
.welcome-block h1 {
  margin: 0;
  font-size: var(--text-feature);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}
.welcome-block .lede { margin: 0; }
.welcome-cta { min-width: 220px; margin-top: var(--space-3); }
.welcome-stage .welcome-block > * {
  animation: welcome-in calc(var(--duration) * 4) var(--ease) both;
}
.welcome-stage .welcome-block h1,
.welcome-stage .welcome-block .lede {
  animation-delay: calc(var(--duration) * 1);
}
.welcome-stage .welcome-block .welcome-cta,
.welcome-stage .welcome-block form {
  animation-delay: calc(var(--duration) * 4);
}
@keyframes welcome-in {
  from { opacity: 0; transform: translateY(var(--space-2)); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 720px) {
  .setup-brand { padding: var(--space-5) var(--space-5) 0; }
  .setup-page { padding-top: var(--space-6); }
  .setup-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setup-staff { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setup-staff-card { min-height: 148px; }
  .welcome-page { padding: var(--space-6) var(--space-5) var(--space-12); }
}
@media (max-width: 480px) {
  .setup-copy h1,
  .welcome-block h1 { font-size: var(--text-title); }
  .setup-pane,
  .setup-stage { gap: var(--space-6); }
  .welcome-block { gap: var(--space-4); }
}
