:root {
  --bg: #f6f1e7;
  --panel: rgba(255, 252, 246, 0.96);
  --panel-strong: rgba(246, 239, 226, 0.98);
  --line: rgba(48, 40, 28, 0.12);
  --line-strong: rgba(181, 136, 44, 0.34);
  --text: #211c15;
  --muted: #6f665b;
  --purple: #b58a35;
  --purple-soft: #9d762d;
  --purple-deep: #241d14;
  --smoke: #8a8177;
  --gray: #50483f;
  --shadow: 0 18px 48px rgba(39, 31, 20, 0.1);
  --radius-xl: 8px;
  --radius-lg: 8px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --surface-gradient: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(247, 241, 230, 0.96));
  --accent-gradient: linear-gradient(135deg, #a87520, #d6b55f 88%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

html.page-scroll-locked {
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Avenir Next", "Montserrat", "Trebuchet MS", sans-serif;
  background: linear-gradient(180deg, #fbf8f1 0%, var(--bg) 48%, #eee3d0 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #6f4b16, #d6b55f, #6f4b16);
  pointer-events: none;
  z-index: 10;
}

body.page-scroll-locked {
  position: fixed;
  inset: 0;
  width: 100%;
  overflow: hidden;
}

main {
  display: grid;
  gap: 1.6rem;
}

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

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

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

.ambient {
  display: none;
}

.ambient-left {
  top: -6rem;
  left: -10rem;
  background: radial-gradient(circle, rgba(181, 136, 44, 0.22), rgba(181, 136, 44, 0));
}

.ambient-right {
  right: -10rem;
  bottom: 8rem;
  background: radial-gradient(circle, rgba(211, 200, 231, 0.24), rgba(211, 200, 231, 0));
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1060px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.75rem 0 3rem;
}

#experience {
  scroll-margin-top: 8rem;
}

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 13.5rem);
  margin: 0 auto 1.1rem;
  padding: 0.75rem;
  background: linear-gradient(180deg, rgba(38, 34, 29, 0.98), rgba(24, 21, 17, 0.98));
  border: 1px solid rgba(214, 181, 95, 0.24);
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 34px rgba(39, 31, 20, 0.16);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.brand-mark {
  width: clamp(7.2rem, 12vw, 8.8rem);
  height: clamp(7.2rem, 12vw, 8.8rem);
  display: grid;
  place-items: center;
  border-radius: var(--radius-xl);
  background: transparent;
  border: 0;
  font-family: "Didot", "Baskerville", serif;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-action-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 0.3rem;
}

.brand-kicker,
.eyebrow,
.mini-label,
.card-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.72rem;
  color: var(--purple-soft);
}

.brand-name {
  margin: 0.2rem 0 0;
  font-family: "Didot", "Baskerville", serif;
  font-weight: 600;
  letter-spacing: 0;
  font-size: 1.15rem;
}

.mode-banner {
  display: none !important;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.95rem;
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  background: rgba(181, 136, 44, 0.12);
  border: 1px solid rgba(181, 136, 44, 0.18);
  color: var(--purple-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar-actions,
.hero-actions,
.owner-header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

#topStylesButton {
  min-height: 3.05rem;
  min-width: 12.5rem;
  padding: 0.78rem 1.45rem;
  background: linear-gradient(135deg, #211c15, #3a3023 92%);
  border: 1px solid rgba(214, 181, 95, 0.42);
  box-shadow: 0 12px 24px rgba(39, 31, 20, 0.14);
  color: #f8efd9;
  font-weight: 700;
  letter-spacing: 0;
}

#topStylesButton:hover,
#topStylesButton.is-active {
  background: linear-gradient(135deg, #2b2319, #493b29 92%);
  border-color: rgba(214, 181, 95, 0.58);
}

.button,
.ghost-button,
.tab-button {
  border: 0;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.button:hover,
.ghost-button:hover,
.tab-button:hover,
.contact-chip:hover,
.contact-card:hover {
  transform: translateY(-1px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  color: #201912;
}

.button-full {
  width: 100%;
}

.button-accent {
  background: var(--accent-gradient);
  border: 1px solid rgba(122, 82, 21, 0.22);
  box-shadow: 0 14px 28px rgba(84, 58, 18, 0.18);
}

.button-secondary {
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid rgba(48, 40, 28, 0.14);
  color: var(--text);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid rgba(48, 40, 28, 0.12);
  color: var(--text);
}

.owner-entry-button {
  min-height: 2.7rem;
  padding: 0.7rem 0.95rem;
  font-size: 0.88rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
  gap: 1.25rem;
  align-items: stretch;
  margin-bottom: 1.75rem;
}

.hero-openings {
  grid-template-columns: minmax(0, 1fr);
}

.hero-copy,
.hero-card,
.panel,
.feature-band,
.feature-card,
.dashboard-card {
  background: var(--surface-gradient);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  padding: 3rem;
  border-radius: var(--radius-xl);
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -4rem -5rem auto;
  width: 18rem;
  height: 18rem;
  border-radius: 45% 55% 65% 35%;
  background: radial-gradient(circle, rgba(181, 136, 44, 0.18), rgba(181, 136, 44, 0));
  pointer-events: none;
}

.hero h2,
.section-heading h2,
.panel-header h3,
.feature-band h2,
.owner-gate h2,
.owner-header h2,
.dashboard-card h3 {
  font-family: "Didot", "Baskerville", serif;
  font-weight: 600;
  line-height: 1.08;
}

.hero h2 {
  margin: 0.8rem 0 1rem;
  max-width: 12ch;
  font-size: clamp(2.8rem, 7vw, 4.9rem);
}

.hero-text,
.section-note,
.panel-caption,
.feature-band p,
.feature-card p,
.owner-gate p,
.helper-text {
  color: var(--muted);
  line-height: 1.7;
}

.helper-text:empty {
  display: none;
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.15rem;
}

.delivery-frame-hidden,
.delivery-form-hidden {
  position: absolute;
  width: 0;
  height: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.contact-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  min-height: 3.7rem;
  padding: 0.78rem 1rem;
  min-width: 12rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
}

.contact-chip-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  color: #f8efd9;
  background: linear-gradient(135deg, #201912, #b9892f);
}

.contact-chip-icon svg {
  display: block;
  width: 0.95rem !important;
  height: 0.95rem !important;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-chip-text {
  display: grid;
  gap: 0.2rem;
}

.chip-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--purple-soft);
}

.chip-value {
  font-size: 0.98rem;
  font-weight: 700;
}

.hero-card {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.hero-card-openings {
  display: grid;
  gap: 1rem;
  justify-content: stretch;
  min-height: 0;
  padding: 1.2rem 1.3rem;
}

.hero-openings-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.hero-openings-head h3 {
  margin: 0.35rem 0 0;
  font-family: "Didot", "Baskerville", serif;
  font-weight: 600;
  line-height: 1.02;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.slot-stack,
.summary-list,
.list-stack {
  display: grid;
  gap: 0.85rem;
}

.slot-stack-openings {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.notice-card {
  display: grid;
  gap: 0.55rem;
  padding: 0.95rem 1rem;
  border-radius: 1.05rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(181, 136, 44, 0.14);
}

.notice-card strong {
  margin: 0;
  font-size: 1rem;
}

.notice-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.notice-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.notice-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.85rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(181, 136, 44, 0.1);
  color: var(--purple-soft);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.notice-time {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.slot-card,
.summary-item,
.list-item {
  padding: 1rem 1.05rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
}

.slot-card strong,
.summary-item strong,
.list-item strong,
.contact-card strong {
  display: block;
  margin-bottom: 0.25rem;
}

.hero-card-divider {
  height: 1px;
  margin: 1.25rem 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(181, 136, 44, 0.36), rgba(255, 255, 255, 0));
}

.hero-card-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.mini-value {
  margin: 0.35rem 0 0;
  line-height: 1.5;
}

.experience,
.rhythm-grid {
  margin-top: 0.2rem;
}

.section-heading,
.panel-header,
.card-heading,
.owner-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.panel-header > div,
.card-heading > div {
  min-width: 0;
}

.section-heading {
  margin-bottom: 1rem;
}

.section-heading h2,
.feature-band h2,
.owner-gate h2,
.owner-header h2 {
  margin: 0.55rem 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.owner-dashboard {
  display: grid;
  align-content: start;
  gap: 1.45rem;
  min-width: 0;
}

.owner-header {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.85rem 1rem;
}

.owner-header > :first-child {
  min-width: 0;
  flex: 1 1 22rem;
}

.owner-header h2 {
  margin: 0.45rem 0 0.4rem;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.owner-header-actions {
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.section-note,
.panel-caption {
  margin: 0;
  max-width: 31rem;
}

.panel-header-simple {
  margin-bottom: 0.2rem;
}

.tab-strip {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  border: 1px solid var(--line);
}

.tab-button {
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.tab-button.is-active {
  background: rgba(181, 136, 44, 0.14);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(181, 136, 44, 0.22);
}

.booking-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.95rem;
  margin-top: 1.25rem;
}

#booking-panel .booking-flow {
  margin-top: 0;
}

#bookingStatusMessage:not(.hidden) + .booking-flow {
  margin-top: 0.8rem;
}

.booking-step-screen,
.booking-calendar-card,
.booking-form-card {
  display: grid;
  gap: 0.95rem;
  padding: 1.15rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid var(--line);
}

.booking-step-screen {
  opacity: 0;
  transform: translateY(0.95rem);
}

.booking-step-screen.is-active {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.calendar-card-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(48, 40, 28, 0.1);
}

.calendar-card-header h4,
.booking-form-intro h4 {
  margin: 0;
  font-size: 1.22rem;
}

.booking-form-intro p:last-child {
  margin: 0.6rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.calendar-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.calendar-nav-button {
  width: 2.45rem;
  height: 2.45rem;
  border: 0;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid var(--line);
  cursor: pointer;
}

.calendar-nav-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.calendar-month {
  min-width: 0;
  text-align: right;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--gray);
}

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

.calendar-weekdays {
  padding: 0 0.12rem;
}

.calendar-weekdays span {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--smoke);
}

.calendar-pad {
  min-height: 4.85rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.38);
  border: 1px dashed rgba(48, 40, 28, 0.1);
}

.calendar-loading {
  grid-column: 1 / -1;
  min-height: 4.85rem;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(181, 136, 44, 0.24);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.58);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.calendar-day {
  min-height: 4.85rem;
  padding: 0.55rem 0.5rem;
  border: 1px solid rgba(48, 40, 28, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(255, 254, 250, 0.96);
  color: var(--text);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.45rem;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: none;
}

.calendar-day-number,
.calendar-day-meta {
  display: block;
}

.calendar-day-number {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1;
}

.calendar-day-meta {
  font-size: 0.72rem;
  line-height: 1.25;
  color: var(--muted);
}

.calendar-day.is-open {
  border-color: rgba(181, 136, 44, 0.3);
  background: linear-gradient(180deg, rgba(255, 254, 250, 0.98), rgba(252, 246, 232, 0.98));
}

.calendar-day.is-open .calendar-day-meta {
  color: var(--purple-soft);
}

.calendar-day.is-selected {
  border-color: rgba(181, 136, 44, 0.62);
  background: linear-gradient(180deg, rgba(226, 194, 111, 0.4), rgba(255, 250, 239, 0.98));
  box-shadow:
    0 12px 22px rgba(87, 62, 22, 0.12),
    inset 0 0 0 1px rgba(181, 136, 44, 0.18);
}

.calendar-day.is-today {
  border-color: rgba(181, 136, 44, 0.36);
  box-shadow: inset 0 0 0 1px rgba(181, 136, 44, 0.18);
}

.calendar-day.is-today .calendar-day-number {
  color: var(--purple);
}

.calendar-day.is-unavailable {
  background: rgba(244, 238, 228, 0.62);
  border-style: dashed;
  color: rgba(93, 84, 74, 0.7);
  opacity: 0.62;
  filter: saturate(0.82);
}

.calendar-day.is-unavailable .calendar-day-number,
.calendar-day.is-unavailable .calendar-day-meta {
  color: rgba(111, 100, 130, 0.62);
}

.calendar-day.is-outside-window {
  cursor: default;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.3);
  border-style: dashed;
  box-shadow: none;
  color: rgba(94, 83, 112, 0.45);
}

.calendar-day:disabled {
  cursor: default;
  box-shadow: none;
}

.calendar-selection {
  min-height: 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.owner-hours-mode-strip {
  display: inline-flex;
  margin-top: 1rem;
}

.hours-shared-field {
  margin-top: 1rem;
  max-width: min(20rem, 100%);
}

.owner-hours-mode-panel {
  display: none;
  gap: 1rem;
  margin-top: 1rem;
}

.owner-hours-mode-panel.is-active {
  display: grid;
}

.hours-editor-form {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(181, 136, 44, 0.14);
}

.owner-availability-editor {
  display: grid;
  gap: 0.9rem;
}

.owner-availability-date-fields {
  display: grid;
  gap: 0.8rem;
}

.owner-date-action-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.owner-date-action-with-info {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.owner-date-action-with-info > .button {
  flex: 1 1 auto;
  width: auto;
}

.owner-date-action-info {
  align-self: center;
}

.owner-availability-calendar-card {
  gap: 0.95rem;
}

.owner-availability-calendar-card .calendar-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.owner-availability-calendar-card .calendar-day {
  min-height: 5.9rem;
}

.owner-availability-calendar-card .calendar-day-meta {
  font-size: 0.68rem;
  line-height: 1.15;
}

.owner-availability-calendar-card .calendar-day.is-owner-empty {
  background: rgba(243, 239, 248, 0.96);
  border-style: dashed;
  box-shadow: none;
}

.owner-availability-calendar-card .calendar-day.is-owner-weekly {
  border-color: rgba(110, 134, 189, 0.28);
  background: linear-gradient(180deg, rgba(240, 245, 255, 0.98), rgba(229, 235, 248, 0.98));
}

.owner-availability-calendar-card .calendar-day.is-owner-custom {
  border-color: rgba(181, 136, 44, 0.34);
  background: linear-gradient(180deg, rgba(252, 247, 255, 0.98), rgba(235, 224, 247, 0.98));
}

.owner-availability-calendar-card .calendar-day.is-owner-closed {
  border-color: rgba(168, 120, 144, 0.28);
  background: linear-gradient(180deg, rgba(249, 239, 244, 0.98), rgba(241, 225, 234, 0.98));
}

.owner-availability-calendar-card .calendar-day.is-selected {
  box-shadow:
    0 12px 24px rgba(87, 62, 22, 0.14),
    inset 0 0 0 1px rgba(181, 136, 44, 0.18);
}

.notice-panel-actions {
  justify-content: flex-end;
  margin-bottom: 0.15rem;
}

.step-toolbar {
  display: flex;
  justify-content: flex-start;
}

.step-back-button {
  min-height: 2.65rem;
  touch-action: manipulation;
}

.selected-style-booking-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(181, 136, 44, 0.22);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(255, 253, 248, 0.92), rgba(248, 238, 214, 0.72));
  box-shadow: 0 12px 24px rgba(39, 31, 20, 0.08);
}

.selected-style-booking-banner__image {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(36, 29, 20, 0.96), rgba(181, 136, 44, 0.86));
  color: white;
  font-size: 1.45rem;
  font-weight: 800;
}

.selected-style-booking-banner__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.selected-style-booking-banner__copy {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.selected-style-booking-banner__copy span {
  color: var(--purple-soft);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.selected-style-booking-banner__copy strong {
  color: var(--text);
  font-size: 1.04rem;
  line-height: 1.22;
}

.selected-style-booking-banner__copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.selected-style-booking-banner__change {
  min-height: 2.45rem;
  padding-inline: 1rem;
}

.selected-date-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(181, 136, 44, 0.16), rgba(255, 253, 248, 0.72));
  border: 1px solid rgba(181, 136, 44, 0.18);
}

.selected-date-banner__slot,
.selected-date-banner__style {
  display: grid;
  gap: 0.22rem;
}

.selected-date-banner__style {
  margin-left: auto;
  text-align: right;
}

.selected-date-banner__slot {
  max-width: min(36rem, 100%);
}

.selected-date-banner__style {
  min-width: 11rem;
}

.selected-date-banner__slot strong,
.selected-date-banner__slot span,
.selected-date-banner__style strong,
.selected-date-banner__style span {
  display: block;
}

.selected-date-banner__slot span,
.selected-date-banner__style span {
  color: var(--purple-soft);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.selected-date-banner__detail {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.details-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.details-card-header h4 {
  margin: 0.35rem 0 0;
  font-size: 1.22rem;
}

.date-select-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.panel-stack {
  display: grid;
}

.panel {
  display: none;
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  background: var(--surface-gradient);
  border: 1px solid rgba(48, 40, 28, 0.1);
  box-shadow: var(--shadow);
}

.panel.is-active {
  display: block;
}

#booking-panel {
  padding-top: 1.1rem;
}

.booking-layout,
.payment-layout,
.contact-layout,
.dashboard-grid,
.metrics-grid,
.rhythm-grid {
  display: grid;
  gap: 1rem;
}

.booking-layout {
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.2fr);
  margin-top: 1.25rem;
}

.booking-side,
.booking-form,
.payment-card,
.callback-form,
.owner-gate,
.owner-dialog-shell {
  display: grid;
  gap: 1rem;
}

.mini-grid {
  display: grid;
  gap: 0.8rem;
}

.mini-card,
.payment-card,
.contact-card,
.callback-form,
.owner-gate,
.dashboard-card {
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid var(--line);
}

.mini-card-number {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.8rem;
  border-radius: 999px;
  background: rgba(181, 136, 44, 0.16);
  color: var(--purple-soft);
  font-weight: 700;
}

.mini-card h4,
.payment-card h4,
.callback-form h4,
.feature-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
}

.mini-card p,
.payment-card p,
.contact-card p,
.callback-form p,
.summary-item p,
.list-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.booking-summary-card {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(181, 136, 44, 0.12), rgba(255, 253, 248, 0.72));
  border: 1px solid rgba(181, 136, 44, 0.18);
}

.field,
.checkbox-field {
  display: grid;
  gap: 0.45rem;
}

.field span {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gray);
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.field-label-row > span:first-child {
  flex: 1 1 auto;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  color: var(--text);
  background: rgba(255, 254, 250, 0.94);
  border: 1px solid rgba(48, 40, 28, 0.16);
  border-radius: var(--radius-sm);
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(181, 136, 44, 0.42);
  box-shadow: 0 0 0 4px rgba(181, 136, 44, 0.12);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.booking-consent {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.booking-consent a {
  color: var(--purple-soft);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.settings-form {
  gap: 1rem;
}

.settings-section {
  display: grid;
  gap: 0.95rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.82), rgba(237, 231, 245, 0.92));
  border: 1px solid rgba(181, 136, 44, 0.14);
}

.settings-access-section {
  background: linear-gradient(160deg, rgba(255, 253, 248, 0.96), rgba(247, 238, 219, 0.94));
}

.settings-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.settings-section-head > div {
  min-width: 0;
  flex: 1 1 18rem;
}

.settings-section-head h3 {
  margin: 0.28rem 0 0;
  font-size: 1.08rem;
}

.settings-section-copy {
  margin: 0;
  max-width: 35rem;
  color: var(--muted);
  line-height: 1.6;
}

.settings-submit-button {
  margin-top: 0.2rem;
}

.style-photo-workspace {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, rgba(247, 244, 251, 0.96), rgba(232, 226, 241, 0.9));
  border: 1px solid rgba(181, 136, 44, 0.14);
}

.style-photo-note {
  font-size: 0.76rem;
  color: var(--muted);
}

.style-photo-preview-shell {
  width: 100%;
  max-width: 32rem;
  justify-self: stretch;
  overflow: hidden;
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at top right, rgba(142, 115, 194, 0.22), transparent 42%),
    linear-gradient(150deg, rgba(251, 249, 253, 0.98), rgba(233, 227, 241, 0.94));
  border: 1px dashed rgba(181, 136, 44, 0.28);
}

.style-photo-preview-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.style-photo-preview-button:disabled {
  cursor: default;
}

.style-photo-preview-button::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background:
    linear-gradient(
      to right,
      transparent 33.1%,
      rgba(255, 255, 255, 0.18) 33.1%,
      rgba(255, 255, 255, 0.18) 33.6%,
      transparent 33.6%,
      transparent 66.1%,
      rgba(255, 255, 255, 0.18) 66.1%,
      rgba(255, 255, 255, 0.18) 66.6%,
      transparent 66.6%
    ),
    linear-gradient(
      to bottom,
      transparent 33.1%,
      rgba(255, 255, 255, 0.18) 33.1%,
      rgba(255, 255, 255, 0.18) 33.6%,
      transparent 33.6%,
      transparent 66.1%,
      rgba(255, 255, 255, 0.18) 66.1%,
      rgba(255, 255, 255, 0.18) 66.6%,
      transparent 66.6%
    );
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.style-photo-preview-button.is-editing {
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.style-photo-preview-button.is-editing::after {
  opacity: 1;
}

.style-photo-preview-button.is-dragging {
  cursor: grabbing;
}

.style-photo-preview-button:focus-visible {
  outline: 3px solid rgba(181, 136, 44, 0.3);
  outline-offset: 4px;
}

.style-photo-preview-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}

.style-photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding-top: max(1rem, env(safe-area-inset-top));
  padding-right: max(1rem, env(safe-area-inset-right));
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  padding-left: max(1rem, env(safe-area-inset-left));
  background: rgba(22, 14, 35, 0.82);
  backdrop-filter: blur(14px);
}

.style-photo-lightbox-close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border-radius: 999px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  background: rgba(18, 11, 29, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0.9rem 1.8rem rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.style-photo-lightbox-image {
  display: block;
  width: auto;
  max-width: min(100%, 54rem);
  max-height: calc(100vh - 5.5rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.3);
}

.style-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.style-form-actions .button,
.style-form-actions .ghost-button {
  flex: 1 1 12rem;
}

.confirmation-card {
  margin-top: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, rgba(181, 136, 44, 0.14), rgba(255, 253, 248, 0.74));
  border: 1px solid rgba(181, 136, 44, 0.22);
}

.confirmation-payment {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(181, 136, 44, 0.18);
}

.confirmation-payment p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.confirmation-payment .mini-label {
  color: var(--purple-soft);
}

.confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.confirmation-actions .button {
  flex: 1 1 9rem;
}

.payment-verification-feedback {
  font-weight: 700;
}

.action-toast {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  top: max(1rem, env(safe-area-inset-top));
  bottom: auto;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: min(calc(100% - 2rem), 24rem);
  padding: 0.9rem 1rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(247, 238, 219, 0.98)),
    rgba(255, 253, 248, 0.98);
  border: 1px solid rgba(181, 136, 44, 0.22);
  box-shadow: 0 22px 40px rgba(39, 31, 20, 0.2);
  color: var(--text);
  transform: translateY(-0.8rem) scale(0.98);
  transform-origin: top right;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 140ms ease,
    opacity 140ms ease;
}

.action-toast.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.action-toast strong,
.action-toast p {
  margin: 0;
}

.action-toast p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.action-toast-mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(160deg, rgba(36, 29, 20, 0.94), rgba(181, 136, 44, 0.96));
  box-shadow: 0 10px 18px rgba(166, 115, 31, 0.22);
  color: white;
  font-size: 1.05rem;
  font-weight: 800;
}

.site-footer {
  width: min(1060px, calc(100% - 2rem));
  margin: 0 auto 2rem;
  padding-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.footer-call-button {
  min-height: 2.7rem;
  padding: 0.72rem 1.15rem;
  font-size: 0.88rem;
}

.footer-owner-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--purple);
  font-size: 0.84rem;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
}

.legal-shell {
  padding-bottom: 1rem;
}

.legal-page {
  width: min(860px, 100%);
  margin: 0 auto 2rem;
  display: grid;
  gap: 1rem;
}

.legal-hero,
.legal-section {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-gradient);
  box-shadow: var(--shadow);
}

.legal-hero h1,
.legal-section h2 {
  margin: 0;
  letter-spacing: 0;
}

.legal-hero h1 {
  max-width: 12ch;
  font-size: clamp(2.1rem, 7vw, 4.6rem);
  line-height: 0.96;
}

.legal-hero p,
.legal-section p {
  margin: 0.65rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.legal-section h2 {
  font-size: 1rem;
  text-transform: uppercase;
}

.time-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.time-option-button {
  min-height: 3.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: rgba(255, 254, 250, 0.94);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}

.time-option-button.is-selected {
  border-color: rgba(181, 136, 44, 0.46);
  background: linear-gradient(180deg, rgba(226, 194, 111, 0.38), rgba(255, 250, 239, 0.98));
  box-shadow: inset 0 0 0 1px rgba(181, 136, 44, 0.18);
}

.payment-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.25rem;
}

.payment-card.emphasis {
  background: linear-gradient(160deg, rgba(181, 136, 44, 0.12), rgba(255, 253, 248, 0.7));
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
  align-items: start;
}

.style-selection-bar {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  width: min(34rem, calc(100vw - 1.5rem));
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(100% + 1rem));
  transition:
    opacity 180ms ease,
    transform 220ms ease;
}

.style-selection-bar.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.style-selection-bar .button {
  width: 100%;
  min-height: 4rem;
  font-size: 1rem;
  box-shadow: 0 18px 40px rgba(39, 31, 20, 0.2);
}

.back-to-top-button {
  position: fixed;
  right: calc(1rem + env(safe-area-inset-right, 0px));
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 35;
  display: inline-grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 999px;
  border: 1px solid rgba(209, 173, 88, 0.42);
  color: #f8efd9;
  background: linear-gradient(135deg, #201912, #3a3024);
  box-shadow: 0 18px 36px rgba(39, 31, 20, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.8rem) scale(0.92);
  transition:
    opacity 180ms ease,
    transform 220ms ease,
    box-shadow 180ms ease;
}

.back-to-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top-button:hover {
  transform: translateY(-0.12rem) scale(1);
  box-shadow: 0 22px 42px rgba(39, 31, 20, 0.28);
}

.back-to-top-button svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.style-card {
  display: grid;
  gap: 0;
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(39, 31, 20, 0.08);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.style-card:not(.is-expanded) {
  aspect-ratio: 1 / 1.08;
}

.style-card:hover {
  transform: translateY(-1px);
}

.style-card.is-selected {
  border-color: rgba(166, 115, 31, 0.42);
  box-shadow:
    0 16px 30px rgba(87, 62, 22, 0.12),
    inset 0 0 0 2px rgba(181, 136, 44, 0.32);
}

.style-card.is-expanded {
  grid-column: 1 / -1;
}

.style-tile-button {
  display: grid;
  gap: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.style-visual {
  overflow: hidden;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.style-image,
.style-face {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.style-face {
  display: grid;
  align-content: end;
  gap: 0.4rem;
  padding: 0.95rem;
  background: linear-gradient(160deg, rgba(255, 253, 248, 0.96), rgba(245, 235, 211, 0.92));
}

.style-face strong {
  display: block;
  color: var(--purple-deep);
  font-size: 1.05rem;
  line-height: 1.18;
}

.style-face-value {
  display: block;
}

.style-face-price {
  color: var(--purple-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.style-face-kicker {
  color: var(--purple-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.style-content {
  padding: 0.8rem 0.9rem 0.25rem;
}

.style-summary-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.style-summary-button .style-content {
  padding-bottom: 0.9rem;
}

.style-content h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.style-category-label {
  margin: 0.3rem 0 0;
  color: var(--purple-soft);
  font-size: 0.84rem;
  font-weight: 600;
}

.style-detail-label {
  display: inline-block;
  margin-top: 0.55rem;
  color: var(--purple-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
}

.style-expand-button {
  justify-self: start;
  margin: 0 0.9rem 0.9rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--purple-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
}

.style-details {
  display: none;
  padding: 0 0.9rem 1rem;
}

.style-details.is-open {
  display: block;
}

.style-details p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.style-back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.9rem;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(166, 115, 31, 0.24);
  background: rgba(255, 253, 248, 0.98);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.style-back-button:hover {
  transform: translateY(-1px);
  border-color: rgba(166, 115, 31, 0.34);
  background: rgba(249, 239, 215, 0.98);
}

.style-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  color: var(--purple-soft);
  font-size: 0.82rem;
}

.style-meta span {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(181, 136, 44, 0.11);
  border: 1px solid rgba(181, 136, 44, 0.14);
}

#styles-panel {
  padding-bottom: 6rem;
}

.style-placeholder {
  display: grid;
  place-items: end start;
  padding: 1rem;
  background: linear-gradient(140deg, #fbf8f1, #f1e3c4 68%, #dcc591);
}

.style-placeholder span {
  font-family: "Didot", "Baskerville", serif;
  font-size: 1.7rem;
  letter-spacing: 0;
}

.contact-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  margin-top: 1.25rem;
}

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

.contact-card {
  display: grid;
  gap: 0.4rem;
}

.disabled-link {
  opacity: 0.6;
  pointer-events: none;
}

.rhythm-grid {
  grid-template-columns: 1.3fr 1fr 1fr;
}

.feature-band,
.feature-card {
  padding: 1.6rem;
  border-radius: var(--radius-xl);
}

.feature-band {
  background:
    linear-gradient(150deg, rgba(250, 248, 252, 0.98), rgba(233, 227, 240, 0.96)),
    var(--surface-gradient);
}

.owner-dialog {
  width: min(1180px, calc(100% - 1rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  color: var(--text);
  background: rgba(0, 0, 0, 0);
  border: none;
  box-sizing: border-box;
  overscroll-behavior: contain;
}

.owner-dialog::backdrop {
  background: rgba(100, 91, 117, 0.24);
  backdrop-filter: blur(10px);
}

.owner-dialog-shell {
  position: relative;
  gap: 1.2rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 1.5rem;
  border-radius: 2rem;
  background: linear-gradient(180deg, rgba(249, 247, 252, 0.99), rgba(233, 228, 240, 0.98));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(48, 40, 28, 0.14);
}

.owner-gate {
  max-width: 28rem;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.74);
}

.owner-pin-form,
.tight-form {
  display: grid;
  gap: 0.8rem;
}

.owner-gate-actions {
  margin-top: 1rem;
}

.hidden {
  display: none !important;
}

.owner-tab-strip {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.6rem;
  border-radius: 1.35rem;
  background: rgba(237, 232, 243, 0.92);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  scrollbar-width: none;
}

.owner-tab-strip::-webkit-scrollbar {
  display: none;
}

.owner-tab-button,
.choice-button {
  border: 0;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.owner-tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.8rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

.owner-tab-button.is-active {
  background: linear-gradient(180deg, rgba(181, 136, 44, 0.92), rgba(194, 155, 68, 0.96));
  border-color: rgba(181, 136, 44, 0.34);
  color: white;
  box-shadow: inset 0 0 0 1px rgba(181, 136, 44, 0.16);
}

.owner-tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(181, 136, 44, 0.14);
  color: var(--purple-soft);
  font-size: 0.72rem;
  font-weight: 800;
}

.info-popover {
  position: relative;
  flex: 0 0 auto;
}

.info-popover summary {
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  border: 1px solid rgba(181, 136, 44, 0.22);
  background: rgba(255, 255, 255, 0.86);
  color: var(--purple-soft);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.info-popover summary::-webkit-details-marker {
  display: none;
}

.info-popover-content {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 20;
  width: min(16rem, 78vw);
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(181, 136, 44, 0.18);
  box-shadow: 0 16px 30px rgba(76, 61, 103, 0.12);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.5;
}

.metric-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.owner-panel-stack {
  display: grid;
  gap: 1rem;
}

.owner-panel {
  display: none;
}

.owner-panel.is-active {
  display: block;
}

.choice-grid {
  display: grid;
  gap: 0.65rem;
}

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

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

.choice-button {
  min-height: 3rem;
  padding: 0.8rem 0.85rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  color: var(--gray);
  font-weight: 700;
}

.choice-button.is-selected {
  background: linear-gradient(180deg, rgba(181, 136, 44, 0.44), rgba(244, 240, 248, 0.98));
  border-color: rgba(181, 136, 44, 0.34);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(181, 136, 44, 0.16);
}

.owner-scroll-list {
  max-height: 22rem;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.bookings-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.bookings-toolbar .mini-button {
  white-space: nowrap;
}

.owner-scroll-list::-webkit-scrollbar {
  width: 0.45rem;
}

.owner-scroll-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(181, 136, 44, 0.18);
}

.metrics-grid {
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
}

.metric-card {
  display: grid;
  gap: 0.2rem;
  padding: 1rem;
  min-width: 0;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}

.metric-value {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.85rem;
  font-family: "Didot", "Baskerville", serif;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.metric-value.is-text {
  margin-top: 0.65rem;
  font-size: 1.38rem;
  line-height: 1.12;
}

.metric-subvalue {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}

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

.dashboard-card {
  gap: 1rem;
}

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

.list-item {
  display: grid;
  gap: 0.65rem;
}

.list-item.is-editing {
  border-color: rgba(181, 136, 44, 0.34);
  box-shadow: inset 0 0 0 1px rgba(181, 136, 44, 0.14);
}

.booking-list-item.is-selected {
  border-color: rgba(181, 136, 44, 0.34);
  box-shadow: inset 0 0 0 1px rgba(181, 136, 44, 0.18);
}

.booking-list-item.is-reminder-due {
  border-color: rgba(181, 136, 44, 0.5);
  box-shadow: inset 0 0 0 1px rgba(181, 136, 44, 0.2);
}

.booking-reminder-note {
  margin: 0;
  color: var(--purple-soft);
  font-size: 0.86rem;
  font-weight: 800;
}

.reminder-queue,
.expense-total-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, rgba(181, 136, 44, 0.16), rgba(255, 253, 248, 0.82));
  border: 1px solid rgba(181, 136, 44, 0.24);
}

.expense-total-card {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.expense-total-card span {
  color: var(--muted);
  font-weight: 700;
}

.expense-total-card strong {
  color: var(--text);
  font-size: 1.25rem;
}

.product-list-item.is-low {
  border-color: rgba(181, 136, 44, 0.36);
}

.product-list-item.is-empty {
  opacity: 0.74;
}

.list-item-header,
.list-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.36rem 0.7rem;
  border-radius: 999px;
  background: rgba(181, 136, 44, 0.14);
  color: var(--purple-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
}

.mini-button:disabled {
  opacity: 0.48;
  cursor: default;
}

.compact .list-item {
  padding: 0.8rem 0.9rem;
}

.checkbox-field {
  align-items: center;
  align-content: center;
  grid-template-columns: 1fr auto;
  padding: 0.2rem 0;
}

.checkbox-field input {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: var(--purple);
}

.booking-selection-label {
  color: var(--muted);
  font-size: 0.82rem;
}

.empty-state {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.68);
  border: 1px dashed rgba(181, 136, 44, 0.18);
  color: var(--muted);
}

.visually-muted {
  color: var(--smoke);
}

body[data-device-mode="mobile"] .ambient {
  width: 20rem;
  height: 20rem;
  opacity: 0.3;
}

body[data-device-mode="mobile"] .page-shell {
  width: min(100% - 0.75rem, 30rem);
  padding-top: 0.7rem;
}

body[data-device-mode="mobile"] .topbar,
body[data-device-mode="mobile"] .section-heading,
body[data-device-mode="mobile"] .panel-header,
body[data-device-mode="mobile"] .card-heading,
body[data-device-mode="mobile"] .owner-header,
body[data-device-mode="mobile"] .list-item-header,
body[data-device-mode="mobile"] .list-item-footer {
  flex-direction: column;
  align-items: stretch;
}

body[data-device-mode="mobile"] .topbar {
  width: min(100%, 13.5rem);
  padding: 0.7rem;
  margin-bottom: 0.55rem;
  border-radius: var(--radius-xl);
}

body[data-device-mode="mobile"] .topbar-actions,
body[data-device-mode="mobile"] .hero-actions,
body[data-device-mode="mobile"] .owner-header-actions,
body[data-device-mode="mobile"] .contact-grid,
body[data-device-mode="mobile"] .field-row,
body[data-device-mode="mobile"] .hero-card-footer {
  display: grid;
  grid-template-columns: 1fr;
}

body[data-device-mode="mobile"] .field-label-row {
  align-items: flex-start;
  flex-direction: column;
}

body[data-device-mode="mobile"] .style-photo-lightbox {
  padding-top: max(0.85rem, env(safe-area-inset-top));
  padding-right: max(0.85rem, env(safe-area-inset-right));
  padding-bottom: max(0.85rem, env(safe-area-inset-bottom));
  padding-left: max(0.85rem, env(safe-area-inset-left));
}

body[data-device-mode="mobile"] .style-photo-lightbox-close {
  width: 2.8rem;
  height: 2.8rem;
}

body[data-device-mode="mobile"] .style-photo-lightbox-image {
  max-width: 100%;
  max-height: calc(100vh - 4.8rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  border-radius: 1.15rem;
}

body[data-device-mode="mobile"] .bookings-toolbar {
  width: 100%;
  justify-content: stretch;
}

body[data-device-mode="mobile"] .bookings-toolbar .mini-button {
  flex: 1 1 calc(50% - 0.3rem);
}

body[data-device-mode="mobile"] .hero {
  grid-template-columns: 1fr;
  gap: 0.95rem;
}

body[data-device-mode="mobile"] .slot-stack-openings {
  grid-template-columns: 1fr;
}

body[data-device-mode="mobile"] .hero-copy,
body[data-device-mode="mobile"] .panel,
body[data-device-mode="mobile"] .feature-band,
body[data-device-mode="mobile"] .feature-card,
body[data-device-mode="mobile"] .dashboard-card,
body[data-device-mode="mobile"] .owner-dialog-shell {
  padding: 1.15rem;
  border-radius: 1.45rem;
}

body[data-device-mode="mobile"] .hero h2 {
  max-width: none;
  font-size: clamp(2.35rem, 11vw, 3.35rem);
}

body[data-device-mode="mobile"] .hero-contact {
  display: grid;
  grid-template-columns: 1fr;
}

body[data-device-mode="mobile"] .contact-chip {
  min-width: 0;
  padding: 0.9rem;
}

body[data-device-mode="mobile"] .brand-mark {
  width: min(9.2rem, calc(100vw - 4.4rem));
  height: min(9.2rem, calc(100vw - 4.4rem));
}

body[data-device-mode="mobile"] .header-action-row {
  display: flex;
  justify-content: center;
  width: min(100%, 16rem);
  max-width: 16rem;
  margin: 0 auto 0.15rem;
}

body[data-device-mode="mobile"] .experience {
  margin-top: 0.05rem;
}

body[data-device-mode="mobile"] #booking-panel {
  padding-top: 0.65rem;
}

body[data-device-mode="mobile"] #topStylesButton {
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 3.2rem;
}

body[data-device-mode="mobile"] .style-selection-bar .button {
  width: 100%;
}

body[data-device-mode="mobile"] .tab-strip {
  position: static;
  z-index: 12;
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  padding: 0.45rem;
}

body[data-device-mode="mobile"] .tab-button {
  flex: 1 1 0;
}

body[data-device-mode="mobile"] .booking-flow,
body[data-device-mode="mobile"] .payment-layout,
body[data-device-mode="mobile"] .contact-layout,
body[data-device-mode="mobile"] .dashboard-grid,
body[data-device-mode="mobile"] .metrics-grid,
body[data-device-mode="mobile"] .rhythm-grid,
body[data-device-mode="mobile"] .contact-grid {
  grid-template-columns: 1fr;
}

body[data-device-mode="mobile"] .calendar-card-header,
body[data-device-mode="mobile"] .styles-panel-actions,
body[data-device-mode="mobile"] .details-card-header {
  flex-direction: column;
  align-items: stretch;
}

body[data-device-mode="mobile"] .selected-date-banner {
  align-items: flex-start;
}

body[data-device-mode="mobile"] .selected-style-booking-banner {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  padding: 0.72rem;
}

body[data-device-mode="mobile"] .selected-style-booking-banner__image {
  width: 3.65rem;
  height: 3.65rem;
  border-radius: 0.9rem;
}

body[data-device-mode="mobile"] .selected-style-booking-banner__copy strong {
  font-size: 0.98rem;
}

body[data-device-mode="mobile"] .selected-style-booking-banner__copy p {
  font-size: 0.8rem;
}

body[data-device-mode="mobile"] .selected-style-booking-banner__change {
  grid-column: 1 / -1;
  width: 100%;
}

body[data-device-mode="mobile"] .selected-date-banner__style {
  min-width: min(11rem, 100%);
}

body[data-device-mode="mobile"] .hours-editor-form {
  padding: 0.95rem;
}

body[data-device-mode="mobile"] .owner-date-action-row {
  grid-template-columns: 1fr;
}

body[data-device-mode="mobile"] .owner-date-action-with-info {
  width: 100%;
}

body[data-device-mode="mobile"] .style-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

body[data-device-mode="mobile"] .style-selection-bar {
  width: calc(100vw - 1rem);
  padding: 0;
  bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px));
}

body[data-device-mode="mobile"] .back-to-top-button {
  right: calc(0.8rem + env(safe-area-inset-right, 0px));
  bottom: calc(5.15rem + env(safe-area-inset-bottom, 0px));
  width: 3rem;
  height: 3rem;
}

body[data-device-mode="mobile"] .notice-card-head {
  align-items: flex-start;
}

body[data-device-mode="mobile"] .style-content {
  padding: 0.72rem 0.78rem 0.18rem;
}

body[data-device-mode="mobile"] .style-content h4 {
  font-size: 0.92rem;
}

body[data-device-mode="mobile"] .style-category-label {
  font-size: 0.76rem;
}

body[data-device-mode="mobile"] .style-expand-button {
  margin: 0 0.78rem 0.8rem;
  font-size: 0.78rem;
}

body[data-device-mode="mobile"] .style-back-button {
  width: 100%;
}

body[data-device-mode="mobile"] .calendar-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.32rem;
}

body[data-device-mode="mobile"] .calendar-weekdays {
  gap: 0.32rem;
}

body[data-device-mode="mobile"] .calendar-weekdays span {
  font-size: 0.56rem;
  letter-spacing: 0;
}

body[data-device-mode="mobile"] .calendar-day,
body[data-device-mode="mobile"] .calendar-pad,
body[data-device-mode="mobile"] .calendar-loading {
  min-height: 4.65rem;
}

body[data-device-mode="mobile"] .booking-step-screen,
body[data-device-mode="mobile"] .booking-calendar-card {
  padding: 1rem 0.95rem 1.05rem;
}

body[data-device-mode="mobile"] .calendar-day {
  padding: 0.38rem 0.25rem;
  border-radius: 0.95rem;
}

body[data-device-mode="mobile"] .calendar-day-number {
  font-size: 1rem;
}

body[data-device-mode="mobile"] .calendar-day-meta {
  font-size: 0.52rem;
  line-height: 1.15;
}

body[data-device-mode="mobile"] .owner-availability-calendar-card .calendar-day {
  min-height: 4.65rem;
  padding: 0.38rem 0.22rem;
}

body[data-device-mode="mobile"] .owner-availability-calendar-card .calendar-day-meta {
  font-size: 0.5rem;
}

body[data-device-mode="mobile"] .calendar-card-header h4 {
  font-size: 1.36rem;
}

body[data-device-mode="mobile"] .calendar-month {
  text-align: left;
}

body[data-device-mode="mobile"] .section-note,
body[data-device-mode="mobile"] .panel-caption {
  max-width: none;
}

body[data-device-mode="mobile"] .action-toast {
  left: 0.5rem;
  right: 0.5rem;
  top: calc(0.75rem + env(safe-area-inset-top));
  bottom: auto;
  width: auto;
  transform: translateY(-0.7rem) scale(0.99);
  transform-origin: top center;
}

body[data-device-mode="mobile"] .action-toast.is-visible {
  transform: translateY(0) scale(1);
}

body[data-device-mode="mobile"] .owner-dialog {
  position: fixed;
  inset: 0;
  width: auto;
  max-width: none;
  min-width: 0;
  height: auto;
  max-height: none;
  margin: 0;
  padding: 0;
  border-radius: 0;
  overflow: hidden;
}

body[data-device-mode="mobile"] .owner-dialog-shell {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: none;
  padding: max(0.75rem, env(safe-area-inset-top)) 0.9rem max(1rem, env(safe-area-inset-bottom));
  padding-left: max(0.9rem, env(safe-area-inset-left));
  padding-right: max(0.9rem, env(safe-area-inset-right));
  border-radius: 0;
  gap: 0.8rem;
  overflow-x: clip;
  overflow-y: auto;
}

body[data-device-mode="mobile"] .owner-gate,
body[data-device-mode="mobile"] .owner-dashboard,
body[data-device-mode="mobile"] .owner-header,
body[data-device-mode="mobile"] .owner-header > :first-child,
body[data-device-mode="mobile"] .metrics-grid,
body[data-device-mode="mobile"] .owner-panel-stack,
body[data-device-mode="mobile"] .dashboard-card,
body[data-device-mode="mobile"] .owner-tab-strip,
body[data-device-mode="mobile"] .metric-card {
  min-width: 0;
  max-width: 100%;
}

body[data-device-mode="mobile"] .owner-gate,
body[data-device-mode="mobile"] .owner-dashboard,
body[data-device-mode="mobile"] .owner-panel-stack {
  width: 100%;
  overflow-x: clip;
}

body[data-device-mode="mobile"] .owner-header {
  justify-content: flex-start;
  gap: 0.55rem;
}

body[data-device-mode="mobile"] .owner-header > :first-child,
body[data-device-mode="mobile"] .owner-header-actions {
  width: 100%;
  flex: 0 0 auto;
}

body[data-device-mode="mobile"] .owner-header-actions {
  align-items: stretch;
  justify-content: flex-start;
}

body[data-device-mode="mobile"] .owner-header h2 {
  display: block;
  max-width: 100%;
  font-size: clamp(1.9rem, 8.4vw, 2.55rem);
  line-height: 1.08;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body[data-device-mode="mobile"] .owner-header-actions .button {
  width: 100%;
  max-width: 100%;
}

body[data-device-mode="mobile"] .owner-tab-strip {
  top: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: visible;
  padding: 0.45rem;
  margin: 0;
}

body[data-device-mode="mobile"] .owner-tab-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 100%;
  min-height: 2.95rem;
  min-width: 0;
  padding: 0.72rem 0.55rem;
  font-size: 0.8rem;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
  overflow-wrap: normal;
}

body[data-device-mode="mobile"] .owner-tab-button[data-owner-tab="notifications"] {
  font-size: 0.74rem;
  letter-spacing: 0;
  grid-column: span 2;
}

body[data-device-mode="mobile"] .owner-tab-count {
  flex: 0 0 auto;
}

body[data-device-mode="mobile"] .weekday-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body[data-device-mode="mobile"] .preset-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-device-mode="mobile"] .owner-scroll-list {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

body[data-device-mode="mobile"] .metrics-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body[data-device-mode="mobile"] .metric-card {
  padding: 0.85rem;
}

body[data-device-mode="mobile"] .metric-value {
  font-size: 1.45rem;
}

body[data-device-mode="mobile"] .metric-value.is-text {
  font-size: 1.18rem;
}

body[data-device-mode="mobile"] .time-option-grid {
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

body[data-entry-source="qr"] .mode-banner {
  display: none !important;
}

body[data-entry-source="qr"] .hero {
  display: none;
}

body[data-entry-source="qr"] .page-shell {
  padding-top: 0.85rem;
}

body[data-entry-source="qr"] .topbar {
  margin-bottom: 0.35rem;
}

body[data-entry-source="qr"] .experience {
  margin-top: 0;
}

body[data-entry-source="qr"] .section-note {
  display: none;
}

body[data-entry-source="qr"] .section-heading {
  display: none;
}

body[data-device-mode="mobile"][data-entry-source="qr"] .owner-entry-button {
  display: none !important;
}

body[data-device-mode="mobile"][data-entry-source="qr"] #booking-panel .panel-header {
  display: none;
}

@media (max-width: 1080px) {
  .hero,
  .booking-flow,
  .payment-layout,
  .contact-layout,
  .rhythm-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 780px) {
  .page-shell {
    width: min(100% - 1rem, 1200px);
    padding-top: 0.75rem;
  }

  .topbar,
  .section-heading,
  .panel-header,
  .card-heading,
  .owner-header,
  .list-item-header,
  .list-item-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar {
    border-radius: 1.6rem;
    padding: 1rem;
  }

  .topbar-actions,
  .hero-actions,
  .owner-header-actions,
  .contact-grid,
  .field-row,
  .hero-card-footer {
    grid-template-columns: 1fr;
  }

  .topbar-actions,
  .hero-actions,
  .owner-header-actions,
  .contact-grid {
    display: grid;
  }

  .hero-copy,
  .panel,
  .feature-band,
  .feature-card,
  .dashboard-card,
  .owner-dialog-shell {
    padding: 1.15rem;
  }

  .hero h2 {
    max-width: none;
    font-size: clamp(2.4rem, 11vw, 3.6rem);
  }

  .slot-stack-openings {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 420px) {
  body[data-device-mode="mobile"] .hero-contact {
    grid-template-columns: 1fr;
  }

  body[data-device-mode="mobile"] .calendar-day,
  body[data-device-mode="mobile"] .calendar-pad {
    min-height: 0;
  }

  body[data-device-mode="mobile"] .calendar-grid {
    gap: 0.28rem;
  }

  body[data-device-mode="mobile"] .calendar-day-number {
    font-size: 0.94rem;
  }

  body[data-device-mode="mobile"] .calendar-day-meta {
    font-size: 0.48rem;
  }

  body[data-device-mode="mobile"] .time-option-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  body[data-device-mode="mobile"] .page-shell {
    width: calc(100% - 0.4rem);
    padding-top: 0.45rem;
  }

  body[data-device-mode="mobile"] .brand-mark {
    width: min(8.7rem, calc(100vw - 4.6rem));
    height: min(8.7rem, calc(100vw - 4.6rem));
  }

  body[data-device-mode="mobile"] .hero-copy,
  body[data-device-mode="mobile"] .hero-card,
  body[data-device-mode="mobile"] .panel,
  body[data-device-mode="mobile"] .dashboard-card,
  body[data-device-mode="mobile"] .booking-calendar-card,
  body[data-device-mode="mobile"] .booking-form-card {
    padding: 0.9rem;
    border-radius: 1.2rem;
  }

  body[data-device-mode="mobile"] .hero h2 {
    font-size: clamp(2rem, 13vw, 2.7rem);
    line-height: 0.96;
  }

  body[data-device-mode="mobile"] .owner-dialog {
    position: fixed;
    inset: 0;
    width: auto;
    max-width: none;
    min-width: 0;
    height: auto;
    max-height: none;
    margin: 0;
  }

  body[data-device-mode="mobile"] .owner-dialog-shell {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 100%;
    min-height: 100%;
    max-height: none;
    padding: max(0.7rem, env(safe-area-inset-top)) 0.75rem max(1rem, env(safe-area-inset-bottom));
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
    border-radius: 0;
    gap: 0.7rem;
  }

  body[data-device-mode="mobile"] .dialog-close {
    position: static;
    top: auto;
    right: auto;
    justify-self: end;
    margin-bottom: 0.15rem;
    padding: 0.62rem 0.85rem;
  }

  body[data-device-mode="mobile"] .owner-header {
    gap: 0.5rem;
  }

  body[data-device-mode="mobile"] .owner-header h2 {
    margin-top: 0.2rem;
    font-size: clamp(1.5rem, 8vw, 2rem);
    line-height: 1.02;
  }

  body[data-device-mode="mobile"] .owner-header .owner-header-actions {
    transform: none;
  }

  body[data-device-mode="mobile"] .owner-header-actions .button {
    min-height: 2.7rem;
    padding-block: 0.72rem;
  }

  body[data-device-mode="mobile"] .metrics-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  body[data-device-mode="mobile"] .metric-card {
    padding: 0.8rem 0.9rem;
  }

  body[data-device-mode="mobile"] .metric-card strong {
    font-size: 1.25rem;
  }

  body[data-device-mode="mobile"] .metric-value.is-text {
    font-size: 1.05rem;
  }

  body[data-device-mode="mobile"] .owner-tab-button {
    min-height: 2.6rem;
    padding: 0.66rem 0.48rem;
    font-size: 0.76rem;
  }

  body[data-device-mode="mobile"] .owner-tab-button[data-owner-tab="notifications"] {
    font-size: 0.68rem;
  }

  body[data-device-mode="mobile"] .owner-tab-count {
    min-width: 1.3rem;
    height: 1.3rem;
    font-size: 0.66rem;
  }

  body[data-device-mode="mobile"] .list-item {
    padding: 0.85rem;
  }

  body[data-device-mode="mobile"] .list-item-header strong,
  body[data-device-mode="mobile"] .dashboard-card h3 {
    font-size: 1rem;
  }
}

/* Public salon redesign */
body {
  background:
    linear-gradient(90deg, rgba(166, 115, 31, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, #fbf8f1 0%, #f4ead8 52%, #efe1c7 100%);
  background-size: 5.5rem 100%, auto;
}

body::before {
  height: 4px;
  background: linear-gradient(90deg, #1f1913, #d1ad58, #1f1913);
}

.page-shell {
  width: min(1180px, calc(100% - 2rem));
  padding: 1rem 0 3rem;
}

.topbar {
  position: sticky;
  top: 0.75rem;
  z-index: 20;
  width: 100%;
  min-height: 4.25rem;
  margin: 0 auto 1.3rem;
  padding: 0.55rem 0.65rem;
  display: grid;
  grid-template-columns: minmax(13rem, auto) minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  background: rgba(255, 252, 245, 0.86);
  border: 1px solid rgba(41, 33, 24, 0.1);
  border-radius: 999px;
  box-shadow: 0 18px 44px rgba(42, 33, 22, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  justify-content: flex-start;
  gap: 0.75rem;
  padding-left: 0.15rem;
}

.brand-mark {
  width: 3.35rem;
  height: 3.35rem;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 999px;
  background: #17120e;
  border: 1px solid rgba(209, 173, 88, 0.34);
}

.brand-wordmark {
  display: inline-flex;
  color: #211c15;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.primary-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(0.6rem, 2vw, 1.25rem);
}

.primary-nav a,
.primary-nav button,
.header-action-row .ghost-button {
  min-height: 2.65rem;
  padding: 0.75rem 1.18rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #50483f;
  font-size: 0.9rem;
  font-weight: 750;
  cursor: pointer;
}

.primary-nav a:hover,
.primary-nav button:hover {
  background: rgba(209, 173, 88, 0.13);
  transform: none;
}

.header-action-row {
  margin: 0;
  justify-content: flex-end;
}

#topStylesButton {
  min-width: 0;
  min-height: 3.15rem;
  padding: 0.9rem 1.55rem;
  color: #f8eed8;
  background: linear-gradient(135deg, #201912, #3a3024);
  border: 1px solid rgba(209, 173, 88, 0.36);
  box-shadow: none;
  font-size: 0.96rem;
}

.salon-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.3rem;
  align-items: start;
  margin-bottom: 1.25rem;
}

.salon-hero-copy,
.salon-hero-board {
  border-radius: 18px;
  border: 1px solid rgba(41, 33, 24, 0.12);
  box-shadow: 0 24px 70px rgba(42, 33, 22, 0.12);
}

.salon-hero-copy {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  padding: clamp(1.45rem, 3vw, 2.65rem);
  background:
    linear-gradient(135deg, rgba(255, 252, 245, 0.96), rgba(239, 223, 193, 0.78)),
    #fbf8f1;
}

.salon-hero-copy::before {
  content: "SABLE";
  position: absolute;
  top: 1.2rem;
  left: clamp(1.5rem, 4vw, 4rem);
  color: rgba(166, 115, 31, 0.08);
  font-family: "Didot", "Baskerville", serif;
  font-size: clamp(4rem, 13vw, 10rem);
  line-height: 1;
  pointer-events: none;
}

.salon-hero-copy > * {
  position: relative;
}

.salon-hero h1 {
  margin: 0.75rem 0 1rem;
  max-width: 11ch;
  color: #17120e;
  font-family: "Didot", "Baskerville", serif;
  font-size: clamp(3rem, 5.55vw, 5rem);
  font-weight: 600;
  line-height: 0.88;
}

.salon-hero .hero-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.salon-hero .button,
.salon-hero .ghost-button,
.section-heading .ghost-button {
  min-height: 3.55rem;
  padding-inline: 1.55rem;
  font-size: 1rem;
}

.salon-hero .ghost-button,
.section-heading .ghost-button {
  background: rgba(255, 252, 245, 0.78);
}

.salon-hero-board {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 1rem;
  min-height: 0;
  align-self: start;
  padding: 1.05rem;
  color: #f9efda;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 36%),
    linear-gradient(180deg, #211c17, #11100e);
}

.hero-brand-tile {
  justify-self: end;
  width: 5.4rem;
  height: 5.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(209, 173, 88, 0.28);
  background: #080706;
}

.hero-brand-tile img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.hero-board-copy {
  max-width: 27rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(209, 173, 88, 0.2);
}

.hero-board-copy h2 {
  margin: 0.45rem 0 0.7rem;
  color: #f8efd9;
  font-family: "Didot", "Baskerville", serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 600;
  line-height: 0.95;
}

.hero-board-copy p:last-child {
  max-width: 24rem;
  margin: 0;
  color: rgba(248, 239, 217, 0.72);
  line-height: 1.55;
}

.lookbook-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  align-self: start;
}

.lookbook-tile {
  min-height: 0;
  aspect-ratio: 4 / 3.3;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(209, 173, 88, 0.22);
  border-radius: 12px;
  background: #1d1712;
  cursor: pointer;
}

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

.lookbook-empty {
  grid-column: 1 / -1;
  min-height: 8rem;
  display: grid;
  align-content: end;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid rgba(209, 173, 88, 0.22);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(209, 173, 88, 0.15), rgba(255, 255, 255, 0.04));
}

.lookbook-empty span {
  color: #d1ad58;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.lookbook-empty strong {
  max-width: 22rem;
  color: #f8eed8;
  font-size: 1rem;
  line-height: 1.4;
}

.signature-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid rgba(41, 33, 24, 0.12);
  border-radius: 16px;
  background: rgba(41, 33, 24, 0.12);
}

.public-style-gallery-section {
  scroll-margin-top: 7rem;
  margin-bottom: 4.5rem;
}

.public-style-gallery-section #styles-panel {
  display: block;
  padding-bottom: 1.1rem;
}

.signature-row div {
  display: grid;
  gap: 0.35rem;
  padding: 1.35rem 1.4rem;
  background: rgba(255, 252, 245, 0.86);
}

.signature-row span,
.service-card span {
  color: #9d762d;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.signature-row strong {
  color: #211c15;
  font-size: 1rem;
  line-height: 1.45;
}

.services-section,
.openings-section,
.experience {
  scroll-margin-top: 7rem;
  margin-bottom: 4.5rem;
}

.section-heading {
  align-items: end;
  margin-bottom: 1.15rem;
}

.section-heading h2 {
  max-width: 15ch;
  margin-top: 0.35rem;
  color: #17120e;
  font-family: "Didot", "Baskerville", serif;
  font-size: clamp(2.4rem, 5vw, 4.75rem);
  line-height: 0.98;
}

.booking-heading h2 {
  max-width: none;
}

.service-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  min-height: 17rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.4rem;
  border: 1px solid rgba(41, 33, 24, 0.12);
  border-radius: 16px;
  background: rgba(255, 252, 245, 0.86);
  box-shadow: 0 18px 50px rgba(42, 33, 22, 0.08);
}

.service-card h3 {
  margin: auto 0 0.8rem;
  color: #17120e;
  font-family: "Didot", "Baskerville", serif;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.service-card p {
  margin: 0;
  color: #62584d;
  line-height: 1.65;
}

.slot-stack-openings {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.slot-card,
.summary-item,
.list-item {
  border-radius: 14px;
  background: rgba(255, 252, 245, 0.9);
}

.panel {
  padding: 1.1rem;
  border-radius: 18px;
  background: rgba(255, 252, 245, 0.86);
  border: 1px solid rgba(41, 33, 24, 0.12);
  box-shadow: 0 24px 70px rgba(42, 33, 22, 0.1);
}

.booking-step-screen,
.booking-calendar-card,
.booking-form-card {
  border-radius: 14px;
}

.calendar-day {
  min-height: 5.9rem;
  border-radius: 12px;
}

.calendar-day.is-open {
  border-color: rgba(166, 115, 31, 0.28);
}

.calendar-day.is-selected {
  border-color: rgba(166, 115, 31, 0.62);
}

#styles-panel .panel-header h3 {
  margin: 0.35rem 0 0;
  color: #17120e;
  font-family: "Didot", "Baskerville", serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1;
}

.style-card {
  border-radius: 14px;
}

.style-visual {
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

body[data-entry-source="qr"] .salon-hero,
body[data-entry-source="qr"] .signature-row,
body[data-entry-source="qr"] .services-section,
body[data-entry-source="qr"] .openings-section,
body[data-entry-source="qr"] .booking-heading,
body[data-entry-source="qr"] .primary-nav {
  display: none;
}

body[data-entry-source="qr"] .topbar {
  position: relative;
  top: auto;
  margin-bottom: 0.75rem;
}

@media (max-width: 980px) {
  .topbar {
    position: relative;
    top: auto;
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .brand,
  .primary-nav,
  .header-action-row {
    justify-content: center;
  }

  .salon-hero,
  .service-card-grid,
  .slot-stack-openings {
    grid-template-columns: 1fr;
  }

  .salon-hero-copy,
  .salon-hero-board {
    min-height: auto;
  }

  .salon-hero-copy {
    padding: 2.2rem;
  }

  .salon-hero h1 {
    max-width: 10ch;
  }

  .signature-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 0.75rem, 34rem);
    padding-top: 0.55rem;
  }

  .brand-wordmark {
    font-size: 0.85rem;
  }

  .primary-nav {
    display: none;
  }

  .topbar {
    gap: 0.55rem;
    min-height: 0;
    margin-bottom: 1rem;
    padding: 0.6rem;
  }

  .header-action-row {
    width: 100%;
    max-width: none;
  }

  #topStylesButton {
    width: 100%;
  }

  .salon-hero {
    min-height: 0;
    gap: 0.75rem;
  }

  .salon-hero-copy {
    padding: 1.35rem;
    border-radius: 16px;
  }

  .salon-hero-copy::before {
    top: 0.5rem;
    left: 1rem;
    font-size: 4.3rem;
  }

  .salon-hero h1 {
    font-size: clamp(2.85rem, 15vw, 4.35rem);
  }

  .salon-hero .hero-actions {
    display: grid;
  }

  .salon-hero-board {
    padding: 0.8rem;
    border-radius: 16px;
  }

  .hero-brand-tile {
    width: 5.4rem;
    height: 5.4rem;
  }

  .hero-board-copy h2 {
    font-size: clamp(1.95rem, 8.5vw, 2.65rem);
  }

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

  .signature-row,
  .services-section,
  .openings-section,
  .experience {
    margin-bottom: 2.6rem;
  }

  .section-heading {
    display: grid;
    gap: 0.8rem;
    align-items: start;
  }

  .section-heading h2 {
    font-size: clamp(2.25rem, 12vw, 3.6rem);
  }

  .service-card {
    min-height: 13rem;
  }

  .panel,
  .booking-step-screen,
  .booking-calendar-card,
  .booking-form-card {
    padding: 0.95rem;
  }

  .calendar-day {
    min-height: 4.55rem;
  }

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

body[data-device-mode="mobile"] .topbar {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: 1fr;
  padding: 0.6rem;
  border-radius: 20px;
}

body[data-device-mode="mobile"] .brand {
  justify-content: center;
  gap: 0.65rem;
}

body[data-device-mode="mobile"] .brand-mark {
  width: 3.35rem;
  height: 3.35rem;
}

body[data-device-mode="mobile"] .brand-wordmark {
  display: inline-flex;
  font-size: 0.82rem;
}

body[data-device-mode="mobile"] .header-action-row {
  display: flex;
  width: 100%;
  max-width: none;
}

body[data-device-mode="mobile"] #topStylesButton {
  width: 100%;
  min-height: 2.8rem;
}

body[data-device-mode="mobile"] #stylesHeroButton {
  display: none !important;
}
