@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Roboto-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/Roboto-Medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/Roboto-Bold.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/RobotoMono-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/RobotoMono-Medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/RobotoMono-Bold.woff2') format('woff2');
}

:root {
  --bg-page: #faf8f4;
  --bg-card: #ffffff;
  --bg-subtle: #f0ede7;
  --bg-soft: #f7f4ee;
  --line: rgb(32 32 32 / 16%);
  --line-strong: rgb(32 32 32 / 30%);
  --text: #202020;
  --text-dim: rgb(32 32 32 / 74%);
  --text-muted: rgb(32 32 32 / 52%);
  --shadow: 0 24px 60px rgb(42 35 24 / 10%);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 0% 0%, rgb(32 32 32 / 4%), transparent 18%),
    linear-gradient(180deg, #fffefc 0%, var(--bg-page) 100%);
  color: var(--text);
  font-family: 'Roboto', 'Segoe UI', sans-serif;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.hidden {
  display: none !important;
}

.app-shell {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.page-strip {
  display: grid;
  gap: 18px;
}

.page-strip-band {
  min-height: 76px;
  display: grid;
  place-items: center;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}

.page-strip-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.05;
  text-align: center;
  font-weight: 700;
}

.page-strip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.summary-chip,
.build-badge {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 88%);
}

.summary-chip-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.summary-chip-value {
  font-size: 16px;
  font-weight: 700;
}

.build-badge {
  color: var(--text-muted);
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
}

.flash {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 92%);
  color: var(--text-dim);
}

.flash.flash--error {
  border-style: dashed;
  background: var(--bg-soft);
}

.flash.flash--success {
  border-color: var(--line-strong);
}

.booking-surface,
.account-surface {
  margin-top: 22px;
  padding: 30px 28px;
  border-radius: var(--radius-xl);
  border: 1px solid rgb(32 32 32 / 10%);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 392px);
  gap: 34px;
  align-items: start;
}

.booking-main {
  display: grid;
  gap: 22px;
}

.booking-summary {
  max-width: 680px;
  color: var(--text-dim);
  line-height: 1.6;
}

.booking-side {
  min-width: 0;
}

.booking-side-card {
  position: sticky;
  top: 20px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid rgb(32 32 32 / 10%);
}

.form-lines {
  display: grid;
  gap: 14px;
}

.form-line {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.form-line-label {
  font-size: 18px;
  font-weight: 700;
}

.form-line-control {
  display: block;
}

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

.field-group.field-group--full {
  grid-column: 1 / -1;
}

.field-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.text-input,
.text-area,
.auth-code-input {
  width: 100%;
  padding: 13px 18px;
  border: 1px solid rgb(32 32 32 / 24%);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.text-area {
  min-height: 112px;
  border-radius: var(--radius-md);
  resize: vertical;
}

.text-input:focus,
.text-area:focus,
.auth-code-input:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgb(32 32 32 / 7%);
  transform: translateY(-1px);
}

.choice-section {
  display: grid;
  gap: 14px;
}

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

.choice-head--center {
  justify-content: center;
}

.choice-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.choice-subtitle {
  margin-top: 8px;
  color: var(--text-muted);
  line-height: 1.5;
}

.master-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.master-card {
  position: relative;
  padding: 14px 14px 10px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background: transparent;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.master-card:hover {
  transform: translateY(-2px);
}

.master-card.is-selected {
  background: var(--bg-soft);
  border-color: var(--line);
}

.master-card-pick {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: center;
}

.master-card-head {
  min-height: 46px;
  display: grid;
  align-items: end;
}

.master-card-name {
  font-size: 18px;
  line-height: 1.25;
}

.avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgb(32 32 32 / 12%);
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: #f3f3f3;
  color: #fff;
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.master-selection-mark {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.master-rating-actions,
.side-master-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.rating-trigger,
.reviews-trigger {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
}

.reviews-trigger {
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stars {
  letter-spacing: 0.12em;
  font-size: 18px;
  line-height: 1;
}

.product-list {
  display: grid;
  gap: 12px;
}

.product-option {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
}

.product-option-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgb(32 32 32 / 60%);
  position: relative;
  flex-shrink: 0;
}

.product-option.is-selected .product-option-radio::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--text);
}

.product-option-copy {
  display: grid;
  gap: 4px;
}

.product-option-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.product-option-meta {
  color: var(--text-muted);
  line-height: 1.4;
}

.product-option-price {
  white-space: nowrap;
  font-size: 28px;
  font-weight: 500;
}

.consent-card {
  padding: 4px 0 0;
}

.consent-toggle {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.consent-toggle input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
}

.consent-text {
  color: var(--text-dim);
  line-height: 1.55;
}

.quiet-link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.submit-row,
.actions-row,
.auth-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.submit-row {
  margin-top: 4px;
}

.primary-btn,
.secondary-btn,
.quiet-btn {
  min-height: 54px;
  padding: 0 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.primary-btn {
  min-width: 280px;
  justify-content: center;
  background: #202020;
  color: #fff;
  border-color: #202020;
}

.primary-btn:hover,
.secondary-btn:hover,
.quiet-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgb(32 32 32 / 10%);
}

.primary-btn:disabled,
.secondary-btn:disabled,
.quiet-btn:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.secondary-btn,
.quiet-btn {
  background: #fff;
}

.meta-copy,
.empty-copy,
.booking-meta,
.detail-meta,
.selection-copy {
  color: var(--text-muted);
  line-height: 1.55;
}

.account-surface-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.account-surface-body {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.session-state {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.session-state.is-online {
  background: #202020;
  color: #fff;
  border-color: #202020;
}

.session-phone {
  font-family: 'Roboto Mono', monospace;
  color: var(--text-dim);
}

.auth-panel,
.detail-card,
.booking-card,
.kv-item,
.checklist-item,
.review-item,
.empty-state {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.auth-panel,
.detail-card,
.booking-card,
.empty-state {
  padding: 18px;
}

.auth-form-grid,
.bookings-layout,
.booking-list,
.review-feed,
.review-form,
.checklist-grid {
  display: grid;
  gap: 12px;
}

.auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.captcha-slot {
  min-height: 84px;
  padding-top: 6px;
}

.booking-card {
  width: 100%;
  text-align: left;
  color: inherit;
}

.booking-card.is-selected {
  border-color: var(--line-strong);
}

.booking-topline,
.detail-headline,
.review-item-head,
.review-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.booking-name {
  font-size: 17px;
  font-weight: 700;
}

.pill-row,
.media-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill,
.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pill.pill--ready {
  background: #202020;
  color: #fff;
  border-color: #202020;
}

.pill.pill--danger {
  border-style: dashed;
}

.detail-section + .detail-section {
  margin-top: 18px;
}

.detail-section-title,
.kv-label,
.checklist-status,
.consent-rich-heading {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

.kv-item,
.checklist-item {
  padding: 12px 14px;
}

.kv-value {
  margin-top: 8px;
  color: var(--text-dim);
  line-height: 1.45;
}

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

.checklist-item.is-complete {
  border-color: var(--line-strong);
}

.checklist-item.is-complete .checklist-status {
  color: var(--text);
}

.review-preview-name {
  font-weight: 700;
}

.review-preview-date,
.footer-note {
  color: var(--text-muted);
}

.review-preview-comment,
.review-item-comment {
  margin-top: 10px;
  color: var(--text-dim);
  line-height: 1.55;
}

.side-review-card {
  display: grid;
  gap: 18px;
}

.side-review-title {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.side-master-summary {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.side-master-meta {
  display: grid;
  gap: 10px;
}

.side-master-name {
  font-size: 22px;
  line-height: 1.2;
}

.side-review-feed {
  display: grid;
  gap: 14px;
}

.review-preview-item {
  padding-top: 14px;
  border-top: 1px solid rgb(32 32 32 / 10%);
}

.review-preview-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.rating-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rating-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-dim);
}

.rating-btn.is-selected {
  background: #202020;
  color: #fff;
  border-color: #202020;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(18 18 18 / 34%);
  backdrop-filter: blur(12px);
}

.modal-card {
  width: min(760px, 100%);
  max-height: min(88vh, 880px);
  overflow: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 30px 70px rgb(18 18 18 / 18%);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 22px 14px;
  border-bottom: 1px solid rgb(32 32 32 / 10%);
}

.modal-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.modal-body {
  padding: 18px 22px 24px;
}

.consent-rich-heading {
  margin: 18px 0 10px;
}

.consent-rich-paragraph,
.consent-rich-list {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.6;
}

.consent-rich-list {
  padding-left: 18px;
}

.consent-rich-list li + li {
  margin-top: 4px;
}

@media (max-width: 1120px) {
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .booking-side-card {
    position: static;
  }

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

@media (max-width: 780px) {
  .app-shell {
    padding: 16px;
  }

  .page-strip-meta,
  .account-surface-head,
  .booking-topline,
  .detail-headline,
  .review-item-head,
  .review-preview-head {
    flex-direction: column;
  }

  .form-line,
  .auth-code-row,
  .kv-grid {
    grid-template-columns: 1fr;
  }

  .form-line {
    gap: 8px;
  }

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

  .product-option {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .product-option-price {
    grid-column: 2;
    padding-left: 2px;
  }

  .primary-btn {
    width: 100%;
    min-width: 0;
  }

  .side-master-summary {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
