:root {
  --bg: #050505;
  --surface: #0b0b10;
  --surface-2: #111118;
  --surface-3: #171720;
  --text: #ffffff;
  --text-sec: rgba(255,255,255,.68);
  --text-muted: rgba(255,255,255,.42);
  --border: rgba(255,255,255,.10);
  --accent: #3B2EFF;
  --accent-soft: rgba(59,46,255,.18);
  --success: #49d17d;
  --danger: #ff5a68;
  --warning: #ffbf47;
  --r: 8px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --dock: 66px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100%;
  background:
    radial-gradient(circle at 50% -15%, rgba(59,46,255,.22), transparent 36%),
    var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

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

a {
  color: inherit;
}

#halftone-bg,
#noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#halftone-bg {
  z-index: 0;
  background-image:
    linear-gradient(rgba(59,46,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,46,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, #000, transparent 76%);
}

#noise-overlay {
  z-index: 1;
  opacity: .04;
}

#app {
  position: relative;
  z-index: 2;
  width: min(480px, 100%);
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  background: rgba(5,5,5,.96);
  overflow: hidden;
}

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

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

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

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

.page-title,
.section-label,
.step-title,
.service-group-title,
.form-label,
.booking-info-meta {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.page-title {
  padding: 22px 18px 14px;
  font-size: 22px;
  line-height: 1.05;
}

.section-label {
  margin: 0 18px 12px;
  color: var(--text-muted);
  font-size: 13px;
}

.section-label.inline {
  margin-top: 8px;
}

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

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

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

.empty-state,
.state-card {
  margin: 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text-sec);
  text-align: center;
}

.empty-state {
  padding: 28px 18px;
}

.compact-empty {
  margin-top: 8px;
}

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

.state-card {
  min-height: 180px;
  padding: 24px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
}

.hero {
  position: relative;
  min-height: 44vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  padding: 34px 18px 22px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(5,5,5,.18), rgba(5,5,5,.5) 48%, #050505 100%),
    url('img/hero-studio.jpg') center / cover no-repeat;
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 58%;
  background: linear-gradient(180deg, transparent, #050505 92%);
}

.hero canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 1;
}

.hero-logo {
  width: min(292px, 78vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 34px rgba(0,0,0,.42));
}

.hero-btn-wrap {
  margin-top: 22px;
}

.hero-btn {
  min-height: 46px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.hero-btn:active,
.btn-primary:active,
.btn-secondary:active,
.contact-action:active,
.service-card:active,
.booking-card:active {
  transform: scale(.985);
}

.hero-btn svg {
  width: 16px;
  height: 16px;
}

.services-grid {
  display: grid;
  gap: 16px;
  padding: 0 14px;
}

.service-group {
  display: grid;
  gap: 8px;
}

.service-group-title {
  color: var(--text-muted);
  font-size: 12px;
  padding: 0 4px;
}

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

.service-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  min-height: 118px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  overflow: hidden;
  cursor: pointer;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}

.service-card.disabled {
  opacity: .46;
  cursor: default;
}

.service-card-media {
  position: relative;
  background: var(--surface-2);
  min-height: 118px;
}

.service-card-img {
  width: 100%;
  height: 100%;
  min-height: 118px;
  object-fit: cover;
  display: block;
}

.service-card-body {
  min-width: 0;
  padding: 12px 12px 11px;
  display: flex;
  flex-direction: column;
}

.service-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.2;
}

.service-card-topline span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.service-card-topline strong {
  color: var(--text);
  font-size: 11px;
  white-space: nowrap;
}

.service-card h3 {
  margin-top: 8px;
  color: var(--text);
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  line-height: 1.08;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.service-card p {
  margin-top: 7px;
  color: var(--text-sec);
  font-size: 12px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.btn-primary {
  width: 100%;
  background: var(--accent);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.btn-primary.compact {
  width: auto;
  min-width: 160px;
  padding: 0 20px;
}

.btn-primary:disabled {
  opacity: .36;
  cursor: default;
  transform: none;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.btn-danger {
  background: transparent;
  color: var(--danger);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 0;
  min-height: 34px;
}

.btn-danger.filled {
  padding: 0 16px;
  background: rgba(255,90,104,.14);
}

.form-label {
  display: block;
  margin: 0 0 7px 2px;
  color: var(--text-muted);
  font-size: 11px;
}

.field-block {
  display: block;
}

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

.form-input:focus {
  border-color: rgba(59,46,255,.8);
  box-shadow: 0 0 0 3px rgba(59,46,255,.18);
}

.form-input::placeholder {
  color: rgba(255,255,255,.34);
}

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

.assistant-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 12px;
}

.assistant-page .page-title {
  padding: 0;
}

.assistant-dismiss-btn {
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.assistant-shell {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 0 14px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
}

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

.chat-message-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.chat-bubble {
  max-width: 86%;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

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

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

.chat-typing {
  align-self: flex-start;
  color: var(--text-muted);
  font-weight: 700;
  padding: 4px 2px;
}

.chat-service-card {
  width: min(286px, 100%);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface-2);
}

.chat-service-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.chat-service-body {
  padding: 12px;
}

.chat-service-name {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 18px;
  line-height: 1.1;
}

.chat-service-price {
  margin: 6px 0 10px;
  color: var(--text-sec);
  font-size: 12px;
  font-weight: 700;
}

.chat-service-btn {
  min-height: 38px;
  padding: 0 14px;
}

.assistant-composer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  gap: 8px;
  padding: 10px 10px calc(10px + var(--safe-bottom));
  border-top: 1px solid var(--border);
  background: rgba(11,11,16,.96);
}

.assistant-composer input {
  min-width: 0;
  flex: 1;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #07070a;
  color: var(--text);
  outline: none;
  padding: 0 13px;
  font-size: 16px;
}

.assistant-composer input:focus {
  border-color: var(--accent);
}

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

.booking-card,
.profile-card,
.contacts-panel,
.summary-card {
  margin: 0 14px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
}

.booking-card {
  padding: 13px 13px 12px;
  cursor: pointer;
}

.booking-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.booking-id {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
}

.booking-status {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.booking-status.pending { background: rgba(255,191,71,.12); color: var(--warning); }
.booking-status.confirmed { background: rgba(73,209,125,.12); color: var(--success); }
.booking-status.in_progress { background: var(--accent-soft); color: #bcb7ff; }
.booking-status.completed { background: rgba(255,255,255,.08); color: var(--text-sec); }
.booking-status.cancelled { background: rgba(255,90,104,.12); color: var(--danger); }

.booking-service {
  margin-top: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 19px;
  line-height: 1.08;
  text-transform: uppercase;
}

.booking-meta {
  margin-top: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--text-sec);
  font-size: 12px;
}

.booking-meta span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  padding: 0 9px;
}

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

.booking-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-sec);
  font-size: 12px;
}

.booking-detail-row strong {
  color: var(--text);
  text-align: right;
}

.booking-comment {
  margin-top: 8px;
  color: var(--text-sec);
  font-size: 12px;
  line-height: 1.5;
}

.booking-detail .btn-danger {
  margin-top: 10px;
}

.profile-card {
  padding: 16px;
}

.profile-head {
  margin-bottom: 16px;
}

.profile-name {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 22px;
  line-height: 1.05;
}

.profile-username {
  margin-top: 5px;
  color: var(--text-sec);
  font-size: 12px;
}

.profile-card .btn-primary {
  margin-top: 12px;
}

.contacts-panel {
  padding: 16px;
}

.contact-block {
  display: grid;
  gap: 6px;
}

.contact-block span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.contact-block strong {
  font-family: 'Oswald', sans-serif;
  font-size: 21px;
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.contact-block small {
  color: var(--text-sec);
  font-size: 12px;
  line-height: 1.45;
}

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

.contact-action {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.contact-action.primary {
  background: var(--accent);
  border-color: var(--accent);
}

#dock {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 100;
  width: min(480px, 100%);
  height: calc(var(--dock) + var(--safe-bottom) + 12px);
  transform: translateX(-50%);
  pointer-events: none;
}

.dock-inner {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(8px + var(--safe-bottom));
  height: var(--dock);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 6px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px;
  background: rgba(13,13,18,.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  pointer-events: auto;
}

body.assistant-input-mode #dock,
body.booking-open #dock {
  opacity: 0;
  pointer-events: none;
}

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

.dock-item.active {
  color: #fff;
  background: var(--accent);
}

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

#booking-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  --booking-viewport-height: 100dvh;
  background: #050505;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform .24s ease, opacity .24s ease;
}

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

.booking-shell {
  width: min(480px, 100%);
  height: var(--booking-viewport-height);
  min-height: var(--booking-viewport-height);
  margin: 0 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #050505;
}

.booking-step-shell {
  min-height: var(--booking-viewport-height);
  display: flex;
  flex-direction: column;
}

.booking-topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 12px 14px 8px;
  background: rgba(5,5,5,.92);
  backdrop-filter: blur(14px);
}

.booking-topbar-btn {
  min-height: 36px;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--text-sec);
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
}

.booking-step {
  flex: 1;
  padding: 0 14px calc(20px + var(--safe-bottom));
}

.booking-step-animated {
  animation: fadeIn .16s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.step-title {
  margin: 12px 4px 8px;
  font-size: 24px;
  line-height: 1.05;
}

.step-subtitle {
  margin: 0 4px 14px;
  color: var(--text-sec);
  font-size: 13px;
  line-height: 1.4;
}

.booking-info-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  margin-bottom: 12px;
}

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

.booking-info-body {
  padding: 15px;
}

.booking-info-meta {
  color: var(--accent);
  font-size: 11px;
  margin-bottom: 8px;
}

.booking-info-card h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 26px;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.booking-info-card p {
  margin-top: 10px;
  color: var(--text-sec);
  font-size: 13px;
  line-height: 1.5;
}

.booking-info-price {
  margin-top: 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.calendar,
.summary-card,
.time-info,
.terms-box {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
}

.calendar {
  padding: 14px;
}

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

.cal-month {
  font-size: 14px;
  font-weight: 800;
  text-transform: capitalize;
}

.cal-nav {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: 22px;
}

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

.cal-weekdays {
  margin-bottom: 6px;
  color: var(--text-muted);
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.cal-days {
  gap: 3px;
}

.cal-day {
  width: 100%;
  aspect-ratio: 1;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.cal-day.today {
  outline: 1px solid rgba(255,255,255,.28);
}

.cal-day.selected {
  background: var(--accent);
  color: #fff;
}

.cal-day.disabled {
  color: rgba(255,255,255,.20);
}

.cal-day.empty {
  pointer-events: none;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.slot {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.slot.start,
.slot.end {
  background: var(--accent);
  border-color: var(--accent);
}

.slot.in-range {
  background: var(--accent-soft);
  border-color: rgba(59,46,255,.38);
}

.slot.taken,
.slot.past,
.slot.range-blocked,
.slot:disabled {
  opacity: .32;
}

.time-info {
  min-height: 50px;
  margin: 10px 0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  font-size: 13px;
}

.time-info strong {
  white-space: nowrap;
}

.time-info.muted {
  color: var(--text-sec);
}

.time-info small {
  color: var(--text-muted);
  font-size: 12px;
}

.summary-card {
  padding: 14px;
  margin: 0 0 10px;
}

.summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 0;
  color: var(--text-sec);
  font-size: 13px;
}

.summary-row strong {
  color: var(--text);
  text-align: right;
}

.summary-total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 16px;
  font-weight: 900;
}

.terms-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 13px;
  margin-bottom: 10px;
  color: var(--text-sec);
  font-size: 12px;
  line-height: 1.5;
}

.terms-box input {
  margin-top: 2px;
  accent-color: var(--accent);
}

.booking-request-input {
  min-height: 170px;
}

.booking-success {
  min-height: calc(var(--booking-viewport-height) - 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 6px calc(26px + var(--safe-bottom));
}

.confirm-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 14px;
}

.booking-success h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  line-height: 1.05;
  text-transform: uppercase;
}

.booking-success p {
  width: min(300px, 100%);
  margin: 10px auto 18px;
  color: var(--text-sec);
  font-size: 13px;
  line-height: 1.5;
}

#dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

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

.confirm-card {
  width: min(340px, 100%);
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface-2);
  padding: 20px 18px;
}

.confirm-card h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 23px;
  line-height: 1.06;
  text-transform: uppercase;
}

.confirm-card p {
  margin: 10px 0 16px;
  color: var(--text-sec);
  font-size: 13px;
  line-height: 1.5;
}

.dialog-actions {
  display: flex;
  gap: 8px;
}

.dialog-actions > * {
  flex: 1;
}

#toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock) + var(--safe-bottom) + 20px);
  z-index: 400;
  max-width: calc(100% - 36px);
  transform: translateX(-50%) translateY(14px);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
}

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

@media (min-width: 520px) {
  #app {
    border-left: 1px solid rgba(255,255,255,.08);
    border-right: 1px solid rgba(255,255,255,.08);
  }

  .service-card {
    grid-template-columns: 124px minmax(0, 1fr);
  }
}
