:root {
  --accent: #1f7a54;
  --accent-dark: #15553a;
  --accent-tint: #e3efe8;
  --ink: #10231a;
  --ink-2: #34443b;
  --muted: #4a5a52;
  --border: #86948b;
  --hairline: #dfe6e1;
  --bg: #f5f7f4;
  --surface: #ffffff;
  --surface-alt: #fbfdfb;
  --soft: #edf4ed;
  --focus: #9ad4b8;
  --amber: #986717;
  --amber-tint: #fbf4e4;
  --red: #9a3412;
  --red-tint: #fff3ef;
  --disabled: #76857c;
  --hairline-soft: #eef2ee;
  --chip: #dce6df;
  --chip-soft: #f1f5f2;
  --input-border: #c3cfc7;
  --placeholder: #66766d;
  --red-border: #f0cdc2;
  --red-hover: #fde5dd;
  --done-bg: #eaeef2;
  --done-ink: #354756;
  --on-accent: #ffffff;
  --toast-bg: #10231a;
  --toast-ink: #ffffff;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #3fae82;
    --accent-dark: #8fd6b5;
    --accent-tint: #1d3328;
    --ink: #eaf2ed;
    --ink-2: #cddbd2;
    --muted: #9eb1a6;
    --border: #3d5247;
    --hairline: #27372f;
    --hairline-soft: #22312a;
    --bg: #0e1612;
    --surface: #15211b;
    --surface-alt: #121c17;
    --soft: #1a2d23;
    --focus: #3fae82;
    --disabled: #6b7d73;
    --chip: #24362d;
    --chip-soft: #1c2b23;
    --input-border: #3d5247;
    --placeholder: #7f9087;
    --amber: #f1c27d;
    --amber-tint: #3a2a12;
    --red: #f0907d;
    --red-tint: #3a1d17;
    --red-border: #5a2c22;
    --red-hover: #4a241c;
    --done-bg: #25303a;
    --done-ink: #b9c8d6;
    --on-accent: #08130d;
    --toast-bg: #eaf2ed;
    --toast-ink: #10231a;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--ink);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Shared controls */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.btn:hover {
  background: var(--bg);
  border-color: var(--border);
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.btn.primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

.btn.ghost:hover {
  background: var(--soft);
  color: var(--ink);
}

.btn.danger {
  color: var(--red);
  border-color: var(--red-border);
  background: var(--red-tint);
}

.btn.danger:hover {
  background: var(--red-hover);
}

.btn.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 8px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 4px 0;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 650;
}

.text-link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  background: var(--surface);
  font-size: 14px;
}

textarea {
  min-height: 86px;
  resize: vertical;
  line-height: 1.55;
}

input::placeholder,
textarea::placeholder {
  color: var(--placeholder);
}

label.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.field-hint {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

/* Host workspace shell */
.app {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100%;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px 16px 18px;
  background: var(--surface);
  border-right: 1px solid var(--hairline);
  overflow-y: auto;
}

.identity {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 8px;
}

.brand {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand span {
  color: var(--accent);
}

.brand-note {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav button,
.nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}

.nav button:hover,
.nav a:hover {
  background: var(--bg);
}

.nav button.active {
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-weight: 650;
}

.nav-count {
  margin-left: auto;
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 650;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.side-bottom {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.side-label {
  padding: 0 12px 4px;
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
}

.main {
  min-width: 0;
  padding: 30px clamp(18px, 4vw, 52px) 56px;
  max-width: 1180px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar h1 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.topbar-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--surface);
  font-size: 12px;
  color: var(--ink-2);
}

.link-pill code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  color: var(--accent-dark);
}

.mobile-menu,
.nav-backdrop {
  display: none;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--hairline);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink-2);
}

.icon-btn:hover {
  background: var(--soft);
  color: var(--accent-dark);
}

/* Sample banner */
.notice-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  margin-bottom: 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--soft);
  font-size: 13px;
  color: var(--ink-2);
  flex-wrap: wrap;
}

/* Summary strip */
.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.metric {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.metric-label {
  font-size: 12px;
  color: var(--muted);
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.metric small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 18px;
  overflow-x: auto;
}

.tab {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 550;
  color: var(--muted);
  white-space: nowrap;
}

.tab.active {
  border-bottom-color: var(--accent);
  color: var(--accent-dark);
  font-weight: 650;
}

/* Panels & rows */
.panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline-soft);
  flex-wrap: wrap;
}

.panel-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
}

.panel-head p {
  margin: 3px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.panel-body {
  padding: 20px;
}

.date-group-head {
  padding: 10px 20px;
  background: var(--surface-alt);
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}

.date-group-head:first-child {
  border-top: 0;
}

.booking-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline-soft);
}

.booking-row:last-child {
  border-bottom: 0;
}

.booking-time {
  font-variant-numeric: tabular-nums;
}

.booking-time strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}

.booking-time span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.booking-info h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
}

.booking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
}

.booking-notes {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-left: 2px solid var(--accent-tint);
  background: var(--surface-alt);
  font-size: 12px;
  color: var(--ink-2);
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
}

.badge.confirmed {
  background: var(--accent-tint);
  color: var(--accent-dark);
}

.badge.pending {
  background: var(--amber-tint);
  color: var(--amber);
}

.badge.completed {
  background: var(--done-bg);
  color: var(--done-ink);
}

.badge.cancelled {
  background: var(--red-tint);
  color: var(--red);
}

.badge.fee {
  background: var(--chip-soft);
  color: var(--ink-2);
}

/* Booking types grid */
.types-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.type-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
}

.type-card.is-paused {
  opacity: 0.72;
}

.type-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.type-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 650;
}

.type-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.type-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-2);
}

.spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--bg);
  border: 1px solid var(--hairline);
}

.type-card-actions {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Availability */
.avail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: 20px;
  align-items: start;
}

.day-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.day-row:last-child {
  border-bottom: 0;
}

.day-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.day-toggle input {
  width: 18px;
  height: 18px;
  min-height: 0;
  accent-color: var(--accent);
}

.day-times {
  display: flex;
  align-items: center;
  gap: 8px;
}

.day-times input[type="time"] {
  max-width: 132px;
  min-height: 36px;
  padding: 5px 10px;
}

.day-closed {
  font-size: 13px;
  color: var(--muted);
}

.blackout-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.blackout-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--hairline);
  border-radius: 9px;
  background: var(--surface-alt);
  font-size: 13px;
}

/* Settings & forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

.empty {
  padding: 44px 24px;
  text-align: center;
}

.empty-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent-dark);
  margin-bottom: 14px;
}

.empty h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.empty p {
  margin: 0 auto 18px;
  max-width: 380px;
  font-size: 13px;
  color: var(--muted);
}

.empty-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Dialog */
dialog {
  width: min(560px, calc(100% - 28px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(16, 35, 26, 0.22);
}

dialog::backdrop {
  background: rgba(16, 35, 26, 0.45);
  backdrop-filter: blur(2px);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--hairline);
}

.dialog-head h2 {
  margin: 0;
  font-size: 18px;
}

.dialog-body {
  padding: 20px 22px;
  overflow-y: auto;
}

.dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px;
  border-top: 1px solid var(--hairline);
  background: var(--surface-alt);
}

/* Toast */
.toasts {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  pointer-events: none;
  max-width: calc(100% - 28px);
}

.toast {
  background: var(--toast-bg);
  color: var(--toast-ink);
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 550;
  box-shadow: 0 10px 30px rgba(16, 35, 26, 0.22);
  margin-bottom: 8px;
}

.toast.error {
  background: var(--red);
}

/* Public booking page (book.html) */
.public-page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px 48px;
}

.public-shell {
  width: min(1000px, 100%);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
}

.public-aside {
  padding: 28px 24px;
  background: var(--surface-alt);
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.host-badge {
  display: flex;
  align-items: center;
  gap: 13px;
}

.host-avatar-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.host-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-dark);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 2px var(--surface-alt);
  display: grid;
  place-items: center;
  font-weight: 750;
  font-size: 18px;
}

.wa-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #25d366;
  border: 2px solid var(--surface-alt);
  display: grid;
  place-items: center;
}

.wa-dot svg {
  width: 12px;
  height: 12px;
  fill: #ffffff;
}

.host-badge h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.host-badge p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.expect-list {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
}

.expect-list li {
  position: relative;
  padding-left: 18px;
}

.expect-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.service-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-option {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 1.5px solid var(--hairline);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 0.14s ease, background-color 0.14s ease;
}

.service-option:hover {
  border-color: var(--accent);
}

.service-option.active {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.service-option strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}

.service-option span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

.mpesa-box {
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--soft);
  font-size: 12px;
  color: var(--ink-2);
}

.mpesa-box strong {
  display: block;
  margin-bottom: 4px;
  color: var(--accent-dark);
}

.public-main {
  padding: 28px 30px;
}

.public-main h2 {
  margin: 0 0 4px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.public-sub {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted);
}

.tz-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--muted);
}

.tz-row select {
  width: auto;
  min-height: 36px;
  padding: 5px 10px;
  font-size: 13px;
  border-color: var(--hairline);
  background: var(--surface);
}

.picker-layout {
  display: grid;
  grid-template-columns: minmax(270px, 1.05fr) minmax(0, 0.95fr);
  gap: 26px;
  align-items: start;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cal-header strong {
  font-size: 16px;
}

.cal-header .icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.cal-weekdays,
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  text-align: center;
}

.cal-weekdays span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 0;
}

.cal-day {
  position: relative;
  aspect-ratio: 1;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.cal-day.is-available {
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-weight: 700;
}

.cal-day.is-available:hover {
  border-color: var(--accent);
}

.cal-day.is-selected {
  background: var(--accent);
  color: var(--on-accent);
}

.cal-day.is-today::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: currentColor;
}

.cal-day:disabled {
  color: var(--disabled);
  cursor: not-allowed;
}

.cal-legend {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

.cal-legend .swatch {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--accent-tint);
  border: 1px solid var(--accent);
  vertical-align: -1px;
  margin-right: 6px;
}

.slots-head {
  font-size: 15px;
  font-weight: 650;
  margin: 0 0 3px;
}

.slots-sub {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--muted);
}

.slots-note {
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-size: 13px;
}

.slots-note button {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 290px;
  overflow-y: auto;
  padding: 2px;
}

.slot-btn {
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--surface);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.slot-btn:hover {
  border-color: var(--accent);
  background: var(--soft);
}

.slot-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.inline-form {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}

.slot-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--soft);
  border: 1px solid var(--hairline);
  font-size: 13px;
}

.slot-summary strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}

.slot-summary span {
  color: var(--muted);
}

.optional-details {
  margin-top: 12px;
}

.optional-details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  list-style: none;
}

.optional-details[open] summary {
  margin-bottom: 12px;
}

.inline-error {
  margin: 10px 0 0;
  font-size: 13px;
  font-weight: 550;
  color: var(--red);
}

.confirm-card {
  padding: 8px 0;
}

.confirm-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 14px;
}

.confirm-details {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--surface-alt);
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.confirm-details div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.confirm-details span {
  color: var(--muted);
}

.confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.powered-by {
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
}

.powered-by a {
  color: var(--accent-dark);
  font-weight: 650;
}

@media (max-width: 900px) {
  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 30;
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  body.menu-open .sidebar {
    transform: translateX(0);
  }

  body.menu-open .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 25;
    background: rgba(16, 35, 26, 0.45);
    border: 0;
  }

  .mobile-menu {
    display: inline-flex;
  }

  .types-grid,
  .avail-grid,
  .public-shell,
  .picker-layout {
    grid-template-columns: 1fr;
  }

  .public-aside {
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }
}

@media (max-width: 640px) {
  .summary-strip {
    grid-template-columns: 1fr;
  }

  .booking-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .booking-actions {
    justify-content: flex-start;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .day-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ---- v2 additions ---- */
.nav-count.is-alert { background: var(--amber-tint); color: var(--amber); }

.topbar-sub button { background: none; border: 0; padding: 0; color: var(--accent-dark); font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }

/* Share card */
.share-card { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--hairline); border-radius: var(--radius-md); background: var(--surface); }
.share-card code { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 6px 10px; border-radius: 8px; background: var(--bg); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; color: var(--accent-dark); }
.qr-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 220px; padding: 14px; text-align: center; border: 1px solid var(--hairline); border-radius: var(--radius-md); background: var(--surface); box-shadow: 0 16px 40px rgba(16, 35, 26, 0.18); font-size: 12px; color: var(--muted); }
.qr-pop svg { width: 100%; height: auto; display: block; margin-bottom: 8px; background: #ffffff; border-radius: 8px; }
.qr-pop .btn { margin-top: 8px; }

/* Setup checklist */
.setup-card { margin-bottom: 20px; padding: 18px 20px; border: 1px solid var(--hairline); border-radius: var(--radius-md); background: var(--surface); }
.setup-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.setup-head h2 { margin: 0; font-size: 16px; }
.setup-head p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.progress { height: 8px; margin: 14px 0; border-radius: 999px; background: var(--accent-tint); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); transition: width 0.3s ease; }
.setup-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.setup-step { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; text-align: left; border: 1px solid var(--hairline); border-radius: 10px; background: var(--surface); }
.setup-step:hover { border-color: var(--accent); }
.setup-step .check { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border: 2px solid var(--border); border-radius: 50%; color: var(--on-accent); font-size: 12px; }
.setup-step.is-done .check { background: var(--accent); border-color: var(--accent); }
.setup-step.is-done strong { text-decoration: line-through; color: var(--muted); }
.setup-step strong { display: block; font-size: 13px; }
.setup-step small { display: block; font-size: 12px; color: var(--muted); }

/* Stats */
.metric.is-alert { border-color: var(--amber); }
.metric.is-alert strong { color: var(--amber); }
.metric strong.is-text { font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 30px; margin-top: 8px; }
.spark i { flex: 1; min-height: 4px; border-radius: 4px; background: var(--accent-tint); }
.spark i.has { background: var(--accent); }

/* Let the row menu overflow the panel */
.panel.list-panel { overflow: visible; }

/* Tabs counts + toolbar */
.tab .tab-count { margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-dark); font-size: 11px; font-weight: 650; }
.list-tools { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--hairline-soft); }
.list-tools input { max-width: 320px; min-height: 36px; padding: 5px 12px; font-size: 13px; }

/* Booking rows v2 */
.booking-row { align-items: center; }
.booking-who { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.avatar-sm { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--accent-tint); color: var(--accent-dark); font-size: 13px; font-weight: 700; }
.booking-who h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.booking-who h3 .svc-name { font-weight: 500; color: var(--muted); }
.badge.reminded { background: var(--chip-soft); color: var(--ink-2); }
.more { position: relative; }
.more > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 10px; border: 1px solid var(--hairline); border-radius: 8px; background: var(--surface); font-size: 12px; font-weight: 600; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary:hover { border-color: var(--border); }
.more-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 15; min-width: 170px; padding: 6px; display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--surface); box-shadow: 0 14px 34px rgba(16, 35, 26, 0.18); }
.more-menu button { width: 100%; padding: 8px 10px; text-align: left; border: 0; border-radius: 7px; background: none; font-size: 13px; }
.more-menu button:hover { background: var(--soft); }
.more-menu button.danger-item { color: var(--red); }

/* Photo / logo upload */
.field-title { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.photo-field { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.profile-preview { display: grid; place-items: center; flex: none; width: 72px; height: 72px; overflow: hidden; border: 2px solid var(--accent); border-radius: 50%; background: var(--accent-tint); color: var(--accent-dark); font-size: 22px; font-weight: 750; }
.profile-preview.is-square { border-radius: 16px; }
.profile-preview img, .host-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a5a52' stroke-width='2' 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: 15px 15px;
}
.select-compact { width: auto; min-height: 34px; padding: 5px 36px 5px 12px; font-size: 12px; font-weight: 600; border-radius: 8px; border-color: var(--hairline); }
.tz-row select { padding-right: 34px; }
.panel + .panel { margin-top: 18px; }

/* Public page v2 */
.host-avatar { overflow: hidden; }
.host-avatar.is-square { border-radius: 14px; }
.host-bio { margin: 0; font-size: 13px; color: var(--ink-2); }
.cal-day.is-outside { color: var(--disabled); opacity: 0.45; display: grid; place-items: center; cursor: default; font-size: 14px; }
.slots-empty { grid-column: 1 / -1; }
.slots-empty .text-link { display: inline; padding: 0; text-decoration: underline; }
.slot-summary .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mini-avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; overflow: hidden; border-radius: 50%; background: var(--accent-tint); color: var(--accent-dark); font-size: 12px; font-weight: 700; border: 1.5px solid var(--accent); }
.mini-avatar.is-square { border-radius: 10px; }
.mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
.confirm-host { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; color: var(--muted); }

/* Mobile bottom navigation */
.bottom-nav { display: none; }

/* Full-page Cloud Auth Gate (mirrors zola-crm) */
html.bookings-booting .app,
html.bookings-booting .bottom-nav {
  visibility: hidden;
}

body.cloud-gate-open .app,
body.cloud-gate-open .bottom-nav {
  display: none;
}

.cloud-gate {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  background: var(--bg);
  overflow: auto;
}

.cloud-gate-card {
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 32px 30px;
  box-shadow: 0 20px 60px rgba(16, 35, 26, 0.08);
}

.cloud-gate-brand {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.cloud-gate-brand span {
  color: var(--accent);
}

.cloud-gate-kicker {
  margin: 6px 0 20px;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}

.cloud-gate-card h1 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.cloud-gate-copy {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.cloud-gate-card form {
  display: grid;
  gap: 14px;
}

.code-input {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 8px;
  text-align: center;
  padding: 12px;
  font-variant-numeric: tabular-nums;
}

.cloud-gate-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.cloud-gate-foot .text-link {
  justify-content: flex-start;
  padding: 0;
}

@media (max-width: 520px) {
  .cloud-gate-card {
    padding: 26px 20px;
  }
}

@media (max-width: 900px) {
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--hairline); background: var(--surface); }
  .bottom-nav button { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border: 0; background: none; color: var(--muted); font-size: 11px; font-weight: 600; }
  .bottom-nav button.active { color: var(--accent-dark); }
  .bottom-nav .dot { position: absolute; top: 4px; left: calc(50% + 8px); min-width: 16px; padding: 0 4px; border-radius: 999px; background: var(--amber-tint); color: var(--amber); font-size: 10px; line-height: 16px; text-align: center; }
  .main { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .setup-steps { grid-template-columns: 1fr; }
  .share-card code { max-width: 100%; }
  .toasts { top: calc(18px + env(safe-area-inset-top, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
