:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f7f5f1;
  --text: #0a0a0a;
  --muted: #7a7a7a;
  --soft: #a0a0a0;
  --border: rgba(10, 10, 10, 0.08);
  --accent: #c8aa73;
  --accent-strong: #9f7f44;
  --danger: #c0392b;
  --success: #247a4d;
  --warning: #a66b00;
  --shadow: 0 14px 38px rgba(10, 10, 10, 0.08);
  --radius: 8px;
  --dock: 66px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: #f2f2f0;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.wave-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-radial-gradient(ellipse at 20% 10%, rgba(200, 170, 115, 0.22) 0 1px, transparent 1px 24px),
    repeating-radial-gradient(ellipse at 80% 40%, rgba(200, 170, 115, 0.16) 0 1px, transparent 1px 28px);
  background-size: 520px 260px, 680px 320px;
  opacity: 0.24;
}

.pulse-lines {
  position: fixed;
  inset: auto 0 15% 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  pointer-events: none;
  opacity: 0.28;
}

.pulse-lines span {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform-origin: center;
  animation: pulseLine 4.8s ease-in-out infinite;
}

.pulse-lines span:nth-child(2) {
  animation-delay: 0.7s;
}

.pulse-lines span:nth-child(3) {
  animation-delay: 1.4s;
}

@keyframes pulseLine {
  0%, 100% { transform: scaleX(0.44); opacity: 0.12; }
  50% { transform: scaleX(0.92); opacity: 0.36; }
}

#app {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(10, 10, 10, 0.04);
}

#pages {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.page {
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 16px calc(var(--dock) + var(--safe-bottom) + 22px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.page.active {
  opacity: 1;
  pointer-events: auto;
}

.page::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar,
.booking-shell::-webkit-scrollbar,
.filter-row::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.page-head,
.section-head {
  padding: calc(22px + var(--safe-top)) 2px 14px;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-head h2,
.section-head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
}

.text-action {
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font-weight: 700;
  cursor: pointer;
}

.hero {
  min-height: min(64vh, 620px);
  padding: calc(32px + var(--safe-top)) 18px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 18px 0 auto;
  height: 48%;
  background: radial-gradient(ellipse at center, rgba(200, 170, 115, 0.18), transparent 68%);
}

.hero-mark {
  position: relative;
  width: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: #0a0a0a;
  overflow: hidden;
}

.hero-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(ellipse at center, rgba(200, 170, 115, 0.2) 0 1px, transparent 1px 22px);
  opacity: 0.22;
}

.hero-mark img {
  position: relative;
  z-index: 1;
  width: min(86%, 360px);
  height: auto;
  display: block;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  margin: 0 0 8px;
  font-size: 42px;
  line-height: 0.95;
  font-weight: 800;
}

.hero-copy p {
  margin: 0;
  max-width: 390px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.48;
}

.hero-action,
.btn-primary,
.btn-secondary,
.contact-action {
  min-height: 46px;
  border-radius: 999px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.14s ease, opacity 0.14s ease, background 0.14s ease;
}

.hero-action,
.btn-primary,
.contact-action.primary {
  background: var(--accent);
  color: #0a0a0a;
}

.btn-primary {
  width: 100%;
}

.btn-secondary,
.contact-action {
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary.compact {
  min-height: 38px;
  width: auto;
  padding: 0 14px;
  font-size: 13px;
}

.hero-action:active,
.btn-primary:active,
.btn-secondary:active,
.contact-action:active {
  transform: scale(0.98);
}

.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: 0.42;
  cursor: default;
}

.services-grid {
  display: grid;
  gap: 12px;
}

.service-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  min-height: 136px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(10, 10, 10, 0.055);
  cursor: pointer;
}

.service-media {
  min-width: 0;
  min-height: 136px;
  background: var(--surface-soft);
  position: relative;
  overflow: hidden;
}

.service-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.08));
}

.service-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.service-card.no-image .service-media {
  background:
    repeating-radial-gradient(ellipse at center, rgba(200, 170, 115, 0.26) 0 1px, transparent 1px 18px),
    var(--surface-soft);
}

.service-body {
  min-width: 0;
  padding: 13px 13px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.service-topline {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
}

.service-topline strong {
  color: var(--accent-strong);
  text-align: right;
  white-space: nowrap;
}

.service-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.15;
  font-weight: 800;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.38;
}

.loading,
.empty-state {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
}

.empty-state {
  flex-direction: column;
  gap: 12px;
}

.empty-state p {
  margin: 0;
  font-size: 14px;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(10, 10, 10, 0.08);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.state-card,
.profile-card,
.contact-card,
.form-card,
.summary-card,
.booking-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(10, 10, 10, 0.055);
}

.state-card {
  min-height: 220px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.state-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.assistant-page {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  --assistant-composer-height: 70px;
}

.assistant-shell {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(10, 10, 10, 0.055);
}

.chat-messages {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding: 14px 14px calc(var(--assistant-composer-height) + 14px);
}

.chat-bubble {
  max-width: 86%;
  padding: 10px 13px;
  border-radius: 15px;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}

.chat-bubble.model {
  align-self: flex-start;
  background: var(--surface-soft);
  border-bottom-left-radius: 4px;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--accent);
  color: #0a0a0a;
  border-bottom-right-radius: 4px;
}

.chat-typing {
  align-self: flex-start;
  color: var(--muted);
  font-size: 13px;
  padding: 8px 2px;
}

.chat-service-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 340px;
  padding: 10px;
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.chat-service-card img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 6px;
}

.chat-service-card div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-service-card strong {
  font-size: 14px;
  line-height: 1.25;
}

.chat-service-card span {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 800;
}

.assistant-composer {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(14px);
}

.assistant-composer input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 6px;
  color: var(--text);
  font-size: 15px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #0a0a0a;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.profile-card,
.contact-card,
.form-card,
.summary-card,
.booking-card {
  padding: 16px;
  margin-bottom: 12px;
}

.profile-head,
.contact-main {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.profile-head span,
.contact-main span,
.field span,
.summary-row span,
.detail-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.profile-head strong,
.contact-main strong {
  font-size: 18px;
  line-height: 1.25;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.form-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  background: #fff;
  color: var(--text);
  padding: 11px 12px;
  font-size: 16px;
}

.form-input.textarea {
  min-height: 156px;
  resize: none;
  line-height: 1.45;
}

.form-input:focus {
  border-color: rgba(200, 170, 115, 0.72);
  box-shadow: 0 0 0 3px rgba(200, 170, 115, 0.16);
}

.contact-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.contact-action {
  min-width: 0;
  min-height: 42px;
  font-size: 13px;
}

.contact-action.primary {
  width: 100%;
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 12px;
  padding-bottom: 2px;
}

.filter-chip {
  min-height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
}

.filter-chip.active {
  background: rgba(200, 170, 115, 0.18);
  border-color: rgba(200, 170, 115, 0.42);
  color: var(--accent-strong);
}

.booking-card {
  cursor: pointer;
}

.booking-card-head,
.booking-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.booking-card-head > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.booking-card h3 {
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.22;
}

.booking-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.booking-meta span {
  padding-right: 8px;
  border-right: 1px solid var(--border);
}

.booking-meta span:last-child {
  border-right: 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  background: var(--surface-soft);
}

.status-badge.pending { background: rgba(200, 170, 115, 0.18); color: var(--accent-strong); }
.status-badge.confirmed { background: rgba(36, 122, 77, 0.12); color: var(--success); }
.status-badge.in_progress { background: rgba(166, 107, 0, 0.12); color: var(--warning); }
.status-badge.completed { background: rgba(10, 10, 10, 0.08); color: var(--text); }
.status-badge.cancelled { background: rgba(192, 57, 43, 0.1); color: var(--danger); }

.booking-detail {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.detail-row.stack {
  display: grid;
}

.detail-row strong {
  text-align: right;
  font-size: 13px;
  line-height: 1.4;
}

.detail-row.stack strong {
  text-align: left;
}

.btn-danger {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--danger);
  font-weight: 800;
  cursor: pointer;
}

.btn-danger.solid {
  background: var(--danger);
  color: #fff;
}

#dock {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 10px;
  width: min(calc(100% - 22px), 498px);
  transform: translateX(-50%);
  padding-bottom: var(--safe-bottom);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.dock-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  min-height: var(--dock);
  padding: 8px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(10, 10, 10, 0.08);
  box-shadow: 0 18px 40px rgba(10, 10, 10, 0.14);
  backdrop-filter: blur(18px);
}

.dock-item {
  min-width: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  line-height: 1.1;
  font-weight: 800;
  cursor: pointer;
}

.dock-item svg {
  width: 20px;
  height: 20px;
}

.dock-item.active {
  background: rgba(200, 170, 115, 0.2);
  color: var(--accent-strong);
}

body.assistant-input-mode #dock,
body.booking-open #dock {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 110%);
}

#booking-overlay {
  position: fixed;
  z-index: 250;
  inset: 0;
  left: 50%;
  width: 100%;
  max-width: 520px;
  transform: translate(-50%, 100%);
  opacity: 0;
  pointer-events: none;
  background: var(--bg);
  transition: transform 0.24s ease, opacity 0.24s ease;
  --booking-viewport-height: 100dvh;
}

#booking-overlay.active {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.booking-shell {
  height: var(--booking-viewport-height);
  min-height: var(--booking-viewport-height);
  overflow-y: auto;
  background: var(--bg);
}

.booking-topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: calc(12px + var(--safe-top)) 18px 8px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(10, 10, 10, 0.04);
  backdrop-filter: blur(14px);
}

.booking-back {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
  min-height: 34px;
  padding: 0;
}

.booking-step {
  min-height: calc(var(--booking-viewport-height) - 56px);
  padding: 16px 18px calc(24px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
}

.booking-title {
  margin-bottom: 14px;
}

.booking-title h2 {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 800;
}

.booking-title p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.booking-info-card {
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(10, 10, 10, 0.055);
}

.booking-info-card img {
  width: 100%;
  height: 210px;
  display: block;
  object-fit: cover;
}

.booking-info-copy {
  padding: 16px;
}

.booking-info-copy span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.booking-info-copy h2 {
  margin: 7px 0 8px;
  font-size: 26px;
  line-height: 1.05;
}

.booking-info-copy p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.booking-info-copy strong {
  font-size: 15px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 14px;
}

.tag-list span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.inline-link {
  display: inline-flex;
  margin: 0 16px 16px;
  color: var(--accent-strong);
  font-weight: 800;
}

.calendar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}

.cal-header {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.cal-header button {
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.cal-header strong {
  text-align: center;
  text-transform: capitalize;
}

.cal-weekdays,
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-weekdays span {
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.cal-day,
.cal-empty {
  aspect-ratio: 1;
}

.cal-day {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.cal-day.today {
  border-color: rgba(200, 170, 115, 0.7);
  color: var(--accent-strong);
}

.cal-day:disabled {
  opacity: 0.25;
  cursor: default;
}

.pick-list {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.pick-card {
  min-height: 58px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  cursor: pointer;
}

.pick-card span {
  font-weight: 800;
}

.pick-card strong {
  color: var(--accent-strong);
}

.pick-card:disabled {
  opacity: 0.45;
  cursor: default;
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.time-cell {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.time-cell.start,
.time-cell.end,
.time-cell.range {
  background: rgba(200, 170, 115, 0.2);
  border-color: rgba(200, 170, 115, 0.48);
  color: var(--accent-strong);
}

.time-cell.taken,
.time-cell:disabled {
  opacity: 0.34;
  cursor: default;
}

.summary-strip {
  min-height: 48px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  margin-bottom: 12px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.summary-strip span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.summary-strip strong {
  color: var(--accent-strong);
  white-space: nowrap;
}

.summary-card {
  display: grid;
  gap: 10px;
}

.summary-row,
.summary-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.summary-row strong,
.summary-total strong {
  text-align: right;
}

.summary-total {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 18px;
}

.terms-box {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.terms-box input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.terms-box span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.success-card {
  min-height: calc(var(--booking-viewport-height) - 112px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(200, 170, 115, 0.24);
  color: var(--accent-strong);
  font-size: 32px;
  font-weight: 800;
}

.success-card h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
}

.success-card p {
  margin: 0 0 8px;
  max-width: 310px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

#dialog-overlay {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 16px calc(16px + var(--safe-bottom));
  background: rgba(10, 10, 10, 0.26);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

#dialog-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.confirm-card {
  width: min(100%, 488px);
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.confirm-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.confirm-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

#toast {
  position: fixed;
  z-index: 360;
  left: 50%;
  bottom: calc(var(--dock) + var(--safe-bottom) + 28px);
  width: min(calc(100% - 32px), 456px);
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 14px;
  border-radius: 14px;
  background: #111;
  color: #fff;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 380px) {
  .service-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .service-card h3 {
    font-size: 16px;
  }

  .service-card p {
    font-size: 12px;
  }

  .time-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-actions-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 760px) {
  body {
    padding: 12px 0;
  }

  #app {
    height: calc(100vh - 24px);
    height: calc(100dvh - 24px);
    border-radius: 26px;
  }
}
