:root {
  --bg: #0A0A0A;
  --panel: #121212;
  --panel-soft: #171717;
  --panel-strong: #1D1D1D;
  --border: rgba(245, 245, 245, 0.1);
  --text: #F5F5F5;
  --text-soft: rgba(245, 245, 245, 0.74);
  --text-muted: rgba(245, 245, 245, 0.46);
  --accent: #F5F5F5;
  --danger: #FF6F6F;
  --success: #94F7AF;
  --warning: #FFD889;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --dock-height: 74px;
  --page-x: 16px;
  --space-xs: 6px;
  --space-sm: 10px;
  --space-md: 14px;
  --space-lg: 18px;
  --space-xl: 24px;
  --card-pad: 14px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  background:
    radial-gradient(circle at top, rgba(245, 245, 245, 0.06), transparent 38%),
    linear-gradient(180deg, #121212 0%, #090909 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(245, 245, 245, 0.08) 0.6px, transparent 0.6px);
  background-size: 14px 14px;
  opacity: 0.12;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

#app {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  background: rgba(10, 10, 10, 0.92);
  overflow: hidden;
}

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

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

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

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

.page-head {
  padding: calc(16px + var(--safe-top)) var(--page-x) 10px;
}

.page-title,
.section-title,
.booking-title,
.hero-copy,
.category-title,
.profile-label,
.contact-title,
.detail-label,
.step-kicker {
  font-family: 'Archivo Black', sans-serif;
  letter-spacing: 0.06em;
}

.page-title {
  margin: 0;
  font-size: 22px;
  line-height: 1;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.section-title {
  margin: 0;
  font-size: 28px;
  line-height: 0.96;
}

.section-note {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-muted);
  letter-spacing: 0.12em;
}

.page-section {
  padding: 18px var(--page-x) 0;
}

.hero {
  position: relative;
  padding: calc(12px + var(--safe-top)) var(--page-x) 0;
}

#hero-wave {
  position: absolute;
  inset: calc(12px + var(--safe-top)) var(--page-x) auto;
  height: 400px;
  width: calc(100% - (var(--page-x) * 2));
  pointer-events: none;
  opacity: 1;
}

.hero-media {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  min-height: 280px;
  background: var(--panel);
  border: 1px solid rgba(245, 245, 245, 0.08);
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.18), rgba(10, 10, 10, 0.75));
}

.hero-photo {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: block;
  object-fit: cover;
}

.hero-panel {
  position: relative;
  margin: -56px 12px 0;
  padding: var(--card-pad);
  border-radius: 24px;
  border: 1px solid rgba(245, 245, 245, 0.08);
  background: rgba(12, 12, 12, 0.88);
  backdrop-filter: blur(18px);
}

.hero-logo-card {
  width: min(160px, 52vw);
  padding: 10px;
  border-radius: 18px;
  background: #F5F5F5;
}

.hero-logo {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.hero-copy {
  margin: 12px 0 14px;
  max-width: 230px;
  font-size: 15px;
  line-height: 1.15;
}

.hero-cta {
  width: auto;
  min-width: 180px;
}

.category-group {
  margin-bottom: 18px;
}

.category-title {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1;
}

.services-list {
  display: grid;
  gap: 8px;
}

.service-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  color: var(--text);
  text-align: left;
}

.service-card:active,
.dock-item:active,
.action-btn:active,
.chip:active {
  transform: scale(0.985);
}

.service-thumb-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 1 / 1.02;
  background: #111;
}

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

.service-thumb-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.24) 100%);
}

.service-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: space-between;
}

.service-name {
  margin: 0;
  font-size: 15px;
  line-height: 1.08;
  font-family: 'Archivo Black', sans-serif;
}

.service-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
}

.service-price {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.service-mode {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.25;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.state-card,
.panel,
.assistant-shell,
.history-card,
.profile-card,
.contacts-card,
.booking-card,
.dialog-card {
  background: rgba(18, 18, 18, 0.96);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.state-card,
.panel,
.history-card,
.profile-card,
.contacts-card {
  margin: 0 var(--page-x) 12px;
  padding: var(--card-pad);
}

.state-card,
.empty-state {
  text-align: center;
  color: var(--text-soft);
}

.state-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.state-card p,
.empty-state p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.loading {
  display: flex;
  justify-content: center;
  padding: 42px 0;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(245, 245, 245, 0.12);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: spin 0.7s linear infinite;
}

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

.btn-primary,
.btn-secondary,
.action-btn,
.chip,
.dock-item,
.slot-btn,
.time-btn,
.history-toggle,
.editor-toggle {
  transition: transform 0.14s ease, opacity 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.btn-primary,
.btn-secondary,
.action-btn {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  width: 100%;
  padding: 0 18px;
  background: var(--accent);
  color: #0A0A0A;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.btn-primary:disabled {
  opacity: 0.3;
  cursor: default;
}

.btn-secondary {
  width: 100%;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.btn-row {
  display: grid;
  gap: 10px;
}

.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 var(--page-x) 10px;
}

.chip {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.chip.active {
  background: rgba(245, 245, 245, 0.12);
  border-color: rgba(245, 245, 245, 0.22);
  color: var(--text);
}

.history-card {
  padding: 14px 16px;
}

.history-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.history-name {
  margin: 0;
  font-size: 15px;
  line-height: 1.1;
  font-family: 'Archivo Black', sans-serif;
}

.history-meta,
.history-subline,
.contact-note,
.detail-note,
.booking-note,
.summary-note,
.profile-note {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-soft);
}

.history-subline {
  margin-top: 6px;
}

.status-badge {
  align-self: flex-start;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-badge.pending {
  background: rgba(255, 216, 137, 0.14);
  color: var(--warning);
}

.status-badge.confirmed,
.status-badge.completed {
  background: rgba(148, 247, 175, 0.14);
  color: var(--success);
}

.status-badge.in_progress {
  background: rgba(245, 245, 245, 0.14);
  color: var(--text);
}

.status-badge.cancelled {
  background: rgba(255, 111, 111, 0.14);
  color: var(--danger);
}

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

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  line-height: 1.45;
}

.detail-row span:first-child {
  color: var(--text-muted);
}

.history-actions {
  display: grid;
  gap: 8px;
}

.history-group {
  margin-top: 8px;
}

.history-group-title {
  margin: 0 var(--page-x) 10px;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-family: 'Archivo Black', sans-serif;
}

.profile-card {
  display: grid;
  gap: 14px;
}

.profile-block {
  display: grid;
  gap: 8px;
}

.profile-label {
  font-size: 11px;
  line-height: 1;
  color: var(--text-muted);
}

.profile-value {
  font-size: 15px;
  line-height: 1.25;
}

.form-input,
.form-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 13px 14px;
  font-size: 14px;
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder,
.chat-input::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  min-height: 132px;
  resize: vertical;
}

.contacts-card {
  display: grid;
  gap: 14px;
}

.contact-title {
  margin: 0;
  font-size: 18px;
  line-height: 1;
}

.contact-list {
  display: grid;
  gap: 10px;
}

.contact-row {
  display: grid;
  gap: 4px;
}

.contact-row strong {
  font-size: 12px;
  line-height: 1.2;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.contact-row span {
  font-size: 14px;
  line-height: 1.45;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.action-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.page-chat {
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--dock-height) + var(--safe-bottom) + 18px);
}

.assistant-shell {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin: 0 var(--page-x);
  min-height: calc(100dvh - 176px);
  overflow: hidden;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-bubble {
  max-width: 86%;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.55;
}

.chat-bubble.model {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  align-self: flex-start;
}

.chat-bubble.user {
  background: var(--accent);
  color: #0A0A0A;
  align-self: flex-end;
}

.chat-card {
  overflow: hidden;
  max-width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
  align-self: flex-start;
  width: min(320px, 100%);
}

.chat-card-thumb {
  width: 100%;
  height: 122px;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

.chat-card-body {
  padding-top: 10px;
}

.chat-card-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.1;
  font-family: 'Archivo Black', sans-serif;
}

.chat-card-meta {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-soft);
}

.chat-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: rgba(18, 18, 18, 0.96);
}

.chat-input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  outline: none;
}

.chat-send {
  min-height: 48px;
  border: none;
  border-radius: 14px;
  background: var(--accent);
  color: #0A0A0A;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.dock {
  position: fixed;
  left: 50%;
  bottom: max(12px, calc(12px + var(--safe-bottom)));
  transform: translateX(-50%);
  z-index: 40;
  width: min(calc(100% - 18px), 430px);
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  border-radius: 26px;
  background: rgba(15, 15, 15, 0.92);
  border: 1px solid rgba(245, 245, 245, 0.08);
  backdrop-filter: blur(20px);
}

.dock-item {
  min-height: 58px;
  padding: 6px 4px;
  border: none;
  border-radius: 18px;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

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

.dock-item.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.booking-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #0A0A0A;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.booking-overlay.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.booking-shell {
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  width: min(100%, 460px);
  margin: 0 auto;
  background: #0A0A0A;
}

.booking-layout {
  min-height: 100dvh;
  padding: calc(14px + var(--safe-top)) var(--page-x) calc(24px + var(--safe-bottom));
}

.booking-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.booking-topbar-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  min-height: 38px;
  padding: 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.step-kicker {
  font-size: 11px;
  line-height: 1;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.booking-title {
  margin: 0;
  font-size: 26px;
  line-height: 0.96;
}

.booking-subtitle {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-soft);
}

.booking-stack {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.booking-card {
  margin: 0;
  padding: var(--card-pad);
}

.booking-hero {
  overflow: hidden;
  border-radius: 18px;
  margin: calc(var(--card-pad) * -1) calc(var(--card-pad) * -1) 14px;
  background: #111;
}

.booking-hero img {
  width: 100%;
  height: 196px;
  display: block;
  object-fit: cover;
}

.booking-service-name {
  margin: 0;
  font-size: 19px;
  line-height: 1;
  font-family: 'Archivo Black', sans-serif;
}

.booking-description {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-soft);
}

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

.booking-price-main,
.summary-total-value,
.time-total,
.summary-money {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.booking-price-main {
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.booking-price-note {
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-soft);
}

.money-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
}

.price-prefix,
.money-currency,
.money-suffix {
  font-size: 0.95em;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-soft);
}

.money-amount {
  font-family: inherit;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.booking-meta-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.booking-meta-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  line-height: 1.4;
}

.booking-meta-item span:first-child {
  color: var(--text-muted);
}

.calendar {
  padding: 14px;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.calendar-nav {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 18px;
}

.calendar-month {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

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

.calendar-weekdays span {
  text-align: center;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

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

.calendar-day {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.calendar-day.today {
  border-color: rgba(245, 245, 245, 0.26);
}

.calendar-day.selected {
  background: var(--accent);
  color: #0A0A0A;
}

.calendar-day:disabled {
  opacity: 0.22;
}

.slot-list,
.time-grid {
  display: grid;
  gap: 8px;
}

.slot-btn,
.time-btn {
  min-height: 50px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.slot-btn.selected,
.time-btn.selected,
.time-btn.in-range {
  background: rgba(245, 245, 245, 0.12);
  border-color: rgba(245, 245, 245, 0.24);
}

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

.time-btn.boundary {
  border-style: dashed;
}

.time-btn:disabled,
.slot-btn:disabled {
  opacity: 0.22;
}

.time-info,
.summary-box,
.terms-box {
  display: grid;
  gap: 10px;
}

.time-info {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.time-main {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.time-sub {
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-soft);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  line-height: 1.4;
}

.summary-row span:first-child {
  color: var(--text-muted);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
}

.terms-box {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.terms-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.terms-check input {
  margin-top: 2px;
}

.terms-copy {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-soft);
}

.contact-step-form {
  display: grid;
  gap: 10px;
}

.contact-step-line {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-soft);
}

.contact-field {
  display: grid;
  gap: 8px;
}

.contact-field-label {
  font-family: 'Archivo Black', sans-serif;
  font-size: 11px;
  line-height: 1;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.contact-input {
  min-height: 48px;
}

.booking-success {
  min-height: calc(100dvh - 140px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.success-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 8px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(245, 245, 245, 0.08);
  border: 1px solid rgba(245, 245, 245, 0.14);
}

.success-mark svg {
  width: 36px;
  height: 36px;
}

.booking-success h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1;
  font-family: 'Archivo Black', sans-serif;
}

.booking-success p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-soft);
}

.dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.58);
  opacity: 0;
  pointer-events: none;
}

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

.dialog-card {
  width: min(100%, 380px);
  padding: 18px;
}

.dialog-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1;
  font-family: 'Archivo Black', sans-serif;
}

.dialog-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-soft);
}

.dialog-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock-height) + var(--safe-bottom) + 28px);
  transform: translateX(-50%) translateY(10px);
  z-index: 90;
  max-width: calc(100% - 36px);
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(245, 245, 245, 0.92);
  color: #0A0A0A;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  text-align: center;
}

.toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 480px) {
  #app {
    border-left: 1px solid rgba(245, 245, 245, 0.06);
    border-right: 1px solid rgba(245, 245, 245, 0.06);
  }
}
