:root {
  --milk: #fbf7f3;
  --porcelain: #fffdfb;
  --blush: #ead0cf;
  --rose: #c9828b;
  --berry: #8e4252;
  --sage: #8c9d8a;
  --champagne: #d8bf8f;
  --taupe: #9f8e84;
  --mist: #eee7e1;
  --line: #ded3cc;
  --ink: #211d1c;
  --muted: #756b66;
  --shadow: 0 20px 70px rgba(55, 39, 35, 0.13);
  --soft-shadow: 0 12px 36px rgba(73, 54, 47, 0.1);
  --radius: 18px;
  --radius-sm: 12px;
  --topbar: 76px;
  --control-bg: rgba(255, 253, 251, 0.82);
  --control-border: rgba(149, 130, 121, 0.24);
  --control-hover: rgba(255, 255, 255, 0.96);
  --control-active: #211d1c;
  --font-sans: "Manrope", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Cormorant Garamond", "Playfair Display", "Didot", Georgia, serif;
}

body[data-theme="dark"] {
  --milk: #151111;
  --porcelain: #201a19;
  --blush: #3a282b;
  --rose: #d78d9a;
  --berry: #e29baa;
  --sage: #a9b99f;
  --champagne: #dcc08b;
  --taupe: #b9aaa3;
  --mist: #2b2422;
  --line: rgba(255, 246, 240, 0.13);
  --ink: #f7f0ec;
  --muted: #b9aaa3;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.42);
  --soft-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  --control-bg: rgba(35, 29, 28, 0.78);
  --control-border: rgba(255, 246, 240, 0.14);
  --control-hover: rgba(47, 39, 37, 0.96);
  --control-active: #f7f0ec;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(234, 208, 207, 0.55), transparent 34%),
    linear-gradient(120deg, #fbf7f3 0%, #f3e9e2 48%, #f8f3ee 100%);
  color: var(--ink);
  font-family: var(--font-sans);
  letter-spacing: 0;
}

body[data-theme="dark"] {
  background:
    radial-gradient(circle at 20% 8%, rgba(120, 68, 82, 0.32), transparent 34%),
    linear-gradient(130deg, #151111 0%, #211816 54%, #171211 100%);
}

body[data-theme="dark"] img {
  filter: saturate(0.96) brightness(0.88);
}

h1,
h2,
h3,
.hero-copy h1,
.section-head h1,
.section-head h2,
.results-toolbar h1,
.filters-panel h2,
.studio-hero h1,
.recommendation-band h2,
.promo-banner h2,
.product-marketplace-band h2,
.master-body h3,
.map-card .master-body h3,
.empty-state h2,
.profile-id h1,
.auth-card h2,
.detail-content h2,
.collection-modal-head h2,
.booking-detail-modal h2,
.feedback-modal h2,
.ai-match-head h2,
.visual-search-hero h2,
.quick-question-panel h3,
.ops-columns h3,
.brand-copy strong,
.product-card > div:first-of-type strong,
.similar-work-card span,
.collection-copy strong,
.saved-search-card strong,
.saved-master-row strong,
.saved-service-row strong {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

button:hover {
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(201, 130, 139, 0.26);
  outline-offset: 2px;
}

input[type="range"] {
  accent-color: var(--berry);
}

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

.desktop-unsupported {
  display: none;
}

.desktop-unsupported p {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 720;
}

body[data-theme="dark"] .desktop-unsupported {
  background:
    radial-gradient(circle at 22% 0%, rgba(142, 66, 82, 0.22), transparent 42%),
    #151111;
}

.ui-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask: var(--icon-url) center / contain no-repeat;
  mask: var(--icon-url) center / contain no-repeat;
}

body[data-theme="dark"] .app-shell,
body[data-theme="dark"] .main,
body[data-theme="dark"] .side-nav,
body[data-theme="dark"] .topbar,
body[data-theme="dark"] .bottom-nav {
  background: rgba(21, 17, 17, 0.78);
  color: var(--ink);
}

body[data-theme="dark"] .side-nav,
body[data-theme="dark"] .topbar,
body[data-theme="dark"] .bottom-nav {
  border-color: var(--line);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(20px);
}

body[data-theme="dark"] .brand-mark,
body[data-theme="dark"] .primary-button,
body[data-theme="dark"] .segmented button.active,
body[data-theme="dark"] .nav-item.active,
body[data-theme="dark"] .bottom-nav button.active,
body[data-theme="dark"] .role-switcher button.active {
  background: #f7f0ec;
  color: #191312;
}

body[data-theme="dark"] .secondary-button,
body[data-theme="dark"] .text-button,
body[data-theme="dark"] .icon-button,
body[data-theme="dark"] .profile-pill,
body[data-theme="dark"] .notification-pill,
body[data-theme="dark"] .searchbox,
body[data-theme="dark"] .location-pill,
body[data-theme="dark"] .segmented,
body[data-theme="dark"] .role-switcher {
  border-color: var(--line);
  background: rgba(35, 29, 28, 0.82);
  color: var(--ink);
}

body[data-theme="dark"] input,
body[data-theme="dark"] select,
body[data-theme="dark"] textarea {
  border-color: var(--line);
  background: rgba(27, 22, 21, 0.9);
  color: var(--ink);
}

body[data-theme="dark"] input::placeholder,
body[data-theme="dark"] textarea::placeholder {
  color: rgba(247, 240, 236, 0.48);
}

body[data-theme="dark"] .admin-board,
body[data-theme="dark"] .metric-card,
body[data-theme="dark"] .promo-banner,
body[data-theme="dark"] .recommendation-band,
body[data-theme="dark"] .product-marketplace-band,
body[data-theme="dark"] .master-card,
body[data-theme="dark"] .booking-card,
body[data-theme="dark"] .chat-shell,
body[data-theme="dark"] .profile-contact-card,
body[data-theme="dark"] .visual-search-card,
body[data-theme="dark"] .auth-card,
body[data-theme="dark"] .modal-card,
body[data-theme="dark"] .notification-popover,
body[data-theme="dark"] .work-detail-modal,
body[data-theme="dark"] .booking-detail-modal {
  border-color: var(--line);
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 255, 255, 0.05), transparent 36%),
    rgba(32, 26, 25, 0.92);
  color: var(--ink);
  box-shadow: var(--soft-shadow);
}

body[data-theme="dark"] .master-meta,
body[data-theme="dark"] .muted,
body[data-theme="dark"] small,
body[data-theme="dark"] .nav-item,
body[data-theme="dark"] .bottom-nav button,
body[data-theme="dark"] .profile-menu-copy small,
body[data-theme="dark"] .profile-contact-summary small {
  color: var(--muted);
}

body[data-theme="dark"] .badge,
body[data-theme="dark"] .status-pill,
body[data-theme="dark"] .chip-row button,
body[data-theme="dark"] .quick-filters button,
body[data-theme="dark"] .meta-grid span,
body[data-theme="dark"] .profile-menu-icon,
body[data-theme="dark"] .profile-contact-stats div,
body[data-theme="dark"] .profile-contact-status span {
  border-color: var(--line);
  background: rgba(47, 39, 37, 0.86);
  color: var(--ink);
}

body[data-theme="dark"] .badge.promo,
body[data-theme="dark"] .status-pill.warn {
  background: rgba(142, 66, 82, 0.24);
  color: #f2bdc8;
}

body[data-theme="dark"] .status-pill.ok {
  background: rgba(137, 165, 128, 0.2);
  color: #c8dbbf;
}

body[data-theme="dark"] .pin-card,
body[data-theme="dark"] .product-card,
body[data-theme="dark"] .saved-card,
body[data-theme="dark"] .collection-card,
body[data-theme="dark"] .profile-menu-row:hover,
body[data-theme="dark"] .activity-row,
body[data-theme="dark"] .notification-row,
body[data-theme="dark"] .delivery-row,
body[data-theme="dark"] .subscription-row,
body[data-theme="dark"] .product-cart-row,
body[data-theme="dark"] .profile-row,
body[data-theme="dark"] .finance-summary div,
body[data-theme="dark"] .reward-card,
body[data-theme="dark"] .loyalty-history div,
body[data-theme="dark"] .message-bubble,
body[data-theme="dark"] .chat-card,
body[data-theme="dark"] .booking-reference,
body[data-theme="dark"] .saved-service-row,
body[data-theme="dark"] .saved-master-row {
  border-color: var(--line);
  background: rgba(36, 30, 29, 0.76);
  color: var(--ink);
}

body[data-theme="dark"] .pin-overlay {
  background: linear-gradient(180deg, rgba(10, 8, 8, 0.16), transparent 42%, rgba(10, 8, 8, 0.16));
}

body[data-theme="dark"] .hero-card,
body[data-theme="dark"] .visual-search-hero,
body[data-theme="dark"] .profile-hero,
body[data-theme="dark"] .studio-onboarding-head,
body[data-theme="dark"] .studio-onboarding-card,
body[data-theme="dark"] #view-search .results-toolbar,
body[data-theme="dark"] #view-search .master-card,
body[data-theme="dark"] #view-profile .admin-board {
  border-color: var(--line);
  background:
    radial-gradient(circle at 20% 0%, rgba(226, 155, 170, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(35, 29, 28, 0.96), rgba(25, 20, 19, 0.94));
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.34);
}

body[data-theme="dark"] #view-search .filters-panel .field-label select,
body[data-theme="dark"] #view-search .price-presets button,
body[data-theme="dark"] #view-search .toggle-stack label,
body[data-theme="dark"] #view-search .quick-filters button,
body[data-theme="dark"] #view-search .toolbar-actions select {
  border-color: var(--line);
  background: rgba(35, 29, 28, 0.92);
  color: var(--ink);
}

body[data-theme="dark"] #view-search .fav-button {
  background: rgba(226, 155, 170, 0.18);
  color: #f1bcc7;
}

body[data-theme="dark"] #view-search .fav-button.saved {
  background: #f1bcc7;
  color: #191312;
}

body[data-theme="dark"] .bottom-nav {
  background: rgba(25, 20, 19, 0.9);
}

body[data-theme="dark"] .bottom-nav-icon,
body[data-theme="dark"] .searchbox-icon {
  background: rgba(226, 155, 170, 0.14);
  color: #f1bcc7;
}

body[data-theme="dark"] .settings-grid button.active,
body[data-theme="dark"] .settings-master-mode.active,
body[data-theme="dark"] .profile-menu-count {
  background: #f7f0ec;
  color: #191312;
}

body[data-theme="dark"] .toast {
  border-color: var(--line);
  background: rgba(247, 240, 236, 0.94);
  color: #191312;
}

.icon-menu {
  --icon-url: url("./assets/icons/menu.svg");
}

.icon-search {
  --icon-url: url("./assets/icons/search.svg");
}

.icon-home {
  --icon-url: url("./assets/icons/home.svg");
}

.icon-calendar {
  --icon-url: url("./assets/icons/calendar.svg");
}

.icon-message {
  --icon-url: url("./assets/icons/message.svg");
}

.icon-heart {
  --icon-url: url("./assets/icons/heart.svg");
}

.icon-user {
  --icon-url: url("./assets/icons/user.svg");
}

.icon-briefcase {
  --icon-url: url("./assets/icons/briefcase.svg");
}

.icon-shield {
  --icon-url: url("./assets/icons/shield.svg");
}

.icon-shopping-bag {
  --icon-url: url("./assets/icons/shopping-bag.svg");
}

@media (min-width: 821px) {
  body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    overflow: hidden;
  }

  .desktop-unsupported {
    min-height: calc(100vh - 48px);
    display: grid;
    place-items: center;
  }

  .app-shell,
  .modal,
  .toast {
    display: none !important;
  }
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
}

.side-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: rgba(255, 253, 251, 0.72);
  border-right: 1px solid rgba(222, 211, 204, 0.72);
  backdrop-filter: blur(22px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--porcelain);
  background: linear-gradient(145deg, var(--berry), #2d2725);
  font-weight: 800;
  box-shadow: var(--soft-shadow);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 18px;
}

.brand-copy small,
.eyebrow,
.metric-card small,
.master-meta,
.range-value,
.results-toolbar p,
.booking-meta {
  color: var(--muted);
}

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

.nav-item,
.bottom-nav button {
  border: 0;
  background: transparent;
  color: var(--muted);
}

.nav-item {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border-radius: 14px;
}

.nav-item.active {
  color: var(--ink);
  background: #f0dfdc;
  box-shadow: inset 0 0 0 1px rgba(142, 66, 82, 0.08);
}

.nav-ico {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.64);
}

.nav-item.active .nav-ico {
  color: var(--berry);
  background: rgba(255, 253, 251, 0.82);
}

.nav-card {
  margin-top: auto;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(234, 208, 207, 0.5));
  box-shadow: var(--soft-shadow);
  display: grid;
  gap: 8px;
}

.nav-card strong {
  font-size: 28px;
}

.main {
  min-width: 0;
  padding: 20px clamp(18px, 3vw, 44px) 56px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--topbar);
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  background: linear-gradient(180deg, rgba(247, 239, 236, 0.96), rgba(247, 239, 236, 0.78));
  backdrop-filter: blur(18px);
}

.searchbox {
  min-height: 54px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 6px 7px 6px 10px;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 247, 0.8)),
    var(--control-bg);
  box-shadow:
    0 14px 40px rgba(73, 54, 47, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.searchbox:focus-within {
  border-color: rgba(142, 66, 82, 0.34);
  box-shadow:
    0 18px 46px rgba(73, 54, 47, 0.13),
    0 0 0 4px rgba(201, 130, 139, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.searchbox-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--berry);
  background: transparent;
}

.searchbox-icon .ui-icon {
  width: 16px;
  height: 16px;
}

.searchbox input,
.field-label input,
.field-label select,
.results-toolbar select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.searchbox button,
.location-pill,
.profile-pill,
.notification-pill,
.secondary-button,
.text-button,
.quick-filters button,
.segmented button,
.wide-button {
  border: 1px solid var(--control-border);
  background: var(--control-bg);
  color: var(--ink);
  border-radius: 999px;
}

.searchbox button {
  min-height: 40px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.searchbox .search-action {
  border-color: rgba(142, 66, 82, 0.16);
  background: #2b2422;
  color: var(--porcelain);
}

.searchbox .search-action.photo {
  background: rgba(255, 253, 251, 0.9);
  color: var(--ink);
}

.searchbox .search-action:hover,
.location-pill:hover,
.profile-pill:hover,
.secondary-button:hover,
.text-button:hover,
.quick-filters button:hover,
.segmented button:hover,
.wide-button:hover,
.price-presets button:hover,
.subcategory-quick button:hover,
.popular-queries button:hover {
  border-color: rgba(142, 66, 82, 0.28);
  background: var(--control-hover);
  box-shadow: 0 10px 28px rgba(73, 54, 47, 0.1);
}

.location-pill,
.profile-pill {
  min-height: 48px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.profile-pill img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.icon-bell {
  --icon-url: url("./assets/icons/bell.svg");
}

.notification-pill {
  position: relative;
  min-height: 48px;
  min-width: 48px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  box-shadow: 0 8px 24px rgba(73, 54, 47, 0.08);
}

.notification-pill .ui-icon {
  width: 20px;
  height: 20px;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid var(--porcelain);
  border-radius: 999px;
  background: var(--berry);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
}

.notification-popover {
  position: fixed;
  z-index: 75;
  top: 78px;
  right: max(18px, calc((100vw - 1180px) / 2 + 18px));
  width: min(380px, calc(100vw - 24px));
  max-height: min(620px, calc(100dvh - 108px));
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(222, 211, 204, 0.78);
  border-radius: 24px;
  background: rgba(255, 253, 251, 0.96);
  box-shadow: 0 24px 80px rgba(33, 29, 28, 0.18);
  backdrop-filter: blur(18px);
}

.notification-popover[hidden] {
  display: none;
}

.notification-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(222, 211, 204, 0.68);
}

.notification-popover-head strong {
  font-family: var(--font-display);
  font-size: 24px;
}

#topNotificationsList {
  min-height: 0;
  overflow-y: auto;
  padding: 8px;
}

.top-notification-row {
  width: 100%;
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 8px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.top-notification-row:hover {
  background: rgba(247, 239, 236, 0.68);
}

.top-notification-row.read {
  opacity: 0.62;
}

.top-notification-row .notification-dot {
  position: static;
}

.top-notification-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.top-notification-copy strong,
.top-notification-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-notification-copy strong {
  font-size: 14px;
}

.top-notification-copy span {
  color: var(--muted);
  font-size: 12px;
}

.top-notification-row time {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.role-switcher {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  background: rgba(255, 253, 251, 0.72);
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.role-switcher button {
  min-height: 36px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
}

.role-switcher button.active {
  background: var(--control-active);
  color: var(--porcelain);
  box-shadow: 0 8px 22px rgba(33, 29, 28, 0.18);
}

.nav-item.locked,
.bottom-nav button.locked {
  opacity: 0.48;
}

.nav-item.locked .nav-ico::after {
  content: "·";
}

.icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--control-border);
  border-radius: 50%;
  background: var(--control-bg);
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(73, 54, 47, 0.08);
}

.mobile-menu {
  display: none;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.hero-band {
  position: relative;
  min-height: 260px;
  display: grid;
  grid-template-columns: minmax(280px, 580px) auto;
  align-items: end;
  gap: 28px;
  padding: clamp(24px, 4vw, 48px);
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(33, 29, 28, 0.66), rgba(33, 29, 28, 0.1) 56%, rgba(33, 29, 28, 0)),
    url("https://images.unsplash.com/photo-1487412947147-5cebf100ffc2?auto=format&fit=crop&w=1800&q=86") center 35% / cover;
  box-shadow: var(--shadow);
}

.hero-copy {
  color: var(--porcelain);
}

.hero-copy .eyebrow {
  color: rgba(255, 253, 251, 0.72);
}

.hero-copy h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy p:last-child {
  max-width: 520px;
  font-size: 18px;
  line-height: 1.5;
}

.hero-actions {
  align-self: end;
  justify-self: end;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.wide-button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
}

.primary-button {
  border: 0;
  background: var(--ink);
  color: var(--porcelain);
  box-shadow: 0 12px 32px rgba(33, 29, 28, 0.24);
}

.secondary-button {
  background: rgba(255, 253, 251, 0.88);
}

.section-head {
  margin: 34px 0 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.recommendation-band {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid rgba(222, 211, 204, 0.72);
  border-radius: 24px;
  background: rgba(255, 253, 251, 0.68);
  box-shadow: var(--soft-shadow);
}

.recommendation-band h2 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 34px);
}

.promo-banner {
  margin: 18px 0;
}

.promo-banner[hidden] {
  display: none;
}

.promo-banner-inner {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(222, 211, 204, 0.72);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(240, 223, 220, 0.88), rgba(255, 253, 251, 0.86)),
    var(--porcelain);
  box-shadow: var(--soft-shadow);
}

.promo-banner.compact {
  margin: 0 0 14px;
}

.promo-banner.compact .promo-banner-inner {
  min-height: 78px;
  border-radius: 18px;
  background: rgba(247, 239, 236, 0.72);
}

.promo-banner h2,
.promo-banner p {
  margin: 0;
}

.promo-banner span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.4;
}

.recommendation-rail {
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 240px);
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.recommendation-card {
  position: relative;
  min-height: 250px;
  display: grid;
  grid-template-rows: 145px auto auto auto;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(222, 211, 204, 0.76);
  border-radius: 20px;
  background: rgba(255, 253, 251, 0.86);
  text-align: left;
}

.recommendation-card img {
  width: 100%;
  height: 145px;
  border-radius: 14px;
  object-fit: cover;
}

.recommendation-card span,
.recommendation-card small {
  color: var(--muted);
}

.product-marketplace-band {
  margin-top: 18px;
  display: grid;
  gap: 14px;
  padding: 20px 0 20px 20px;
  border: 1px solid rgba(222, 211, 204, 0.72);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 253, 251, 0.92), rgba(250, 242, 238, 0.72)),
    rgba(255, 253, 251, 0.78);
  box-shadow: 0 20px 60px rgba(73, 54, 47, 0.1);
}

.product-marketplace-band .panel-head {
  padding-right: 20px;
}

.product-marketplace-band h2 {
  max-width: 360px;
  font-family: var(--font-display);
  font-size: clamp(38px, 10vw, 56px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0;
}

.product-marketplace-band .text-button {
  min-height: 40px;
  padding-inline: 14px;
  background: rgba(255, 253, 251, 0.72);
}

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

.product-shelf {
  grid-auto-flow: column;
  grid-auto-columns: 208px;
  grid-template-columns: none;
  overflow-x: auto;
  padding: 2px 20px 8px 0;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.product-card {
  min-width: 0;
  min-height: 350px;
  display: grid;
  grid-template-rows: auto minmax(94px, auto) auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(222, 211, 204, 0.72);
  border-radius: 22px;
  background: rgba(255, 253, 251, 0.9);
  box-shadow: 0 14px 38px rgba(73, 54, 47, 0.08);
  scroll-snap-align: start;
}

.product-card.compact {
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 18px;
  background: rgba(238, 231, 225, 0.8);
}

.product-card.compact img {
  height: 76px;
}

.product-card span,
.product-card small,
.product-cart-row span {
  color: var(--muted);
}

.product-card span {
  min-height: 18px;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.08em;
}

.product-card small {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.25;
}

.product-card strong,
.product-card span,
.product-card small {
  display: block;
}

.product-card > div:first-of-type strong {
  overflow: hidden;
  display: -webkit-box;
  min-height: 48px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.product-card-actions {
  align-self: end;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
}

.product-card-actions button {
  width: 44px;
  height: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
}

.product-card-actions > strong {
  font-size: 24px;
  line-height: 0.95;
  white-space: nowrap;
}

.product-card-actions .ui-icon {
  width: 19px;
  height: 19px;
}

.product-cart-board {
  grid-column: 1 / -1;
}

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

.product-cart-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 253, 251, 0.68);
  border: 1px solid rgba(222, 211, 204, 0.58);
}

.product-cart-row img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 14px;
}

.cart-total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-head h1,
.section-head h2,
.results-toolbar h1,
.filters-panel h2,
.studio-hero h1 {
  margin: 0;
  letter-spacing: 0;
}

.section-head h2,
.results-toolbar h1,
.studio-hero h1 {
  font-size: clamp(30px, 3.6vw, 48px);
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.chip-row,
.quick-filters,
.price-presets,
.subcategory-quick,
.popular-queries {
  max-width: 100%;
  min-width: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.section-head > .chip-row {
  width: min(100%, 680px);
}

.chip-row button,
.quick-filters button,
.price-presets button,
.subcategory-quick button,
.popular-queries button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  background: rgba(255, 253, 251, 0.78);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.chip-row button.active,
.quick-filters button.active,
.price-presets button.active,
.subcategory-quick button.active,
.popular-queries button.active {
  border-color: transparent;
  background: var(--control-active);
  color: var(--porcelain);
  box-shadow: 0 10px 26px rgba(33, 29, 28, 0.18);
}

.price-presets,
.subcategory-quick,
.popular-queries {
  margin: -4px 0 14px;
}

.price-presets button,
.subcategory-quick button,
.popular-queries button {
  min-height: 34px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 720;
}

.subcategory-quick button.more {
  border-color: rgba(37, 35, 32, 0.2);
  background: rgba(37, 35, 32, 0.06);
}

.locality-filter {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(222, 211, 204, 0.78);
  background: rgba(255, 253, 251, 0.62);
}

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

.locality-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

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

.field-label.compact {
  gap: 6px;
  font-size: 12px;
}

.compare-panel {
  margin: 0 0 12px;
}

.search-alert-panel {
  margin: 0 0 10px;
}

.search-alert-card {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid rgba(222, 211, 204, 0.56);
  border-radius: 16px;
  background: rgba(255, 253, 251, 0.58);
  box-shadow: none;
}

.search-alert-card.active {
  border-color: rgba(142, 66, 82, 0.22);
  background: rgba(250, 241, 239, 0.9);
}

.search-alert-card strong {
  display: block;
  margin-top: 1px;
  font-size: 15px;
}

.search-alert-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.search-alert-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.search-alert-actions button {
  min-height: 36px;
  padding-inline: 12px;
  font-size: 13px;
}

.compare-empty,
.compare-strip {
  padding: 10px 12px;
  border: 1px solid rgba(222, 211, 204, 0.56);
  border-radius: 16px;
  background: rgba(255, 253, 251, 0.68);
  box-shadow: 0 12px 32px rgba(73, 54, 47, 0.06);
}

.compare-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.compare-empty strong {
  color: var(--ink);
}

.compare-head,
.compare-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.compare-grid {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.compare-card {
  flex: 0 0 min(360px, 82vw);
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 30px 8px 8px;
  border-radius: 14px;
  background: rgba(247, 239, 236, 0.48);
}

.compare-card img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.compare-card-top {
  display: block;
}

.compare-card-top .text-button {
  position: absolute;
  top: 4px;
  right: 4px;
  min-height: 24px;
  padding: 0 7px;
}

.compare-card span {
  color: var(--muted);
  font-size: 13px;
}

.compare-card strong,
.compare-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-card dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.compare-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.compare-card dt {
  color: var(--muted);
}

.compare-card dd {
  margin: 0;
  font-weight: 720;
  text-align: right;
}

.masonry-feed,
.mini-masonry {
  gap: 12px;
}

.masonry-feed {
  display: grid;
  grid-template-columns: repeat(var(--masonry-columns, 5), minmax(0, 1fr));
  align-items: start;
}

.masonry-column {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.pin-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: var(--mist);
  text-align: left;
  box-shadow: none;
  transform: translateZ(0);
}

.pin-card img {
  display: block;
  width: 100%;
  aspect-ratio: var(--ratio, 3 / 4);
  object-fit: cover;
  background: var(--mist);
}

.video-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(33, 29, 28, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.pin-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 9px;
  color: var(--porcelain);
  background: linear-gradient(180deg, rgba(33, 29, 28, 0.2), transparent 34%, rgba(33, 29, 28, 0.36));
  opacity: 0;
  transition: opacity 180ms ease;
}

.pin-card:hover .pin-overlay,
.pin-card:focus-visible .pin-overlay {
  opacity: 1;
}

.pin-card .save-button {
  opacity: 0.98;
}

.pin-info {
  display: none;
}

.feed-loader {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 16px 0 4px;
}

.feed-loader span {
  color: var(--muted);
  font-size: 13px;
}

.feed-loader button[hidden] + span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 251, 0.72);
}

.save-button,
.fav-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  justify-self: end;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 253, 251, 0.92);
  color: var(--ink);
}

.save-button.saved,
.fav-button.saved {
  background: var(--berry);
  color: var(--porcelain);
}

.pin-info {
  display: grid;
  gap: 4px;
}

.pin-info strong,
.pin-info span {
  text-shadow: 0 1px 15px rgba(0, 0, 0, 0.32);
}

.search-layout {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.filters-panel {
  position: sticky;
  top: calc(var(--topbar) + 12px);
  max-height: calc(100vh - var(--topbar) - 28px);
  overflow-y: auto;
  display: grid;
  gap: 13px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 253, 251, 0.7);
  border: 1px solid rgba(222, 211, 204, 0.62);
  box-shadow: 0 16px 44px rgba(73, 54, 47, 0.08);
  scrollbar-width: thin;
}

.panel-head,
.results-toolbar,
.card-top,
.booking-row,
.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.field-label {
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.field-label input:not([type="range"]),
.field-label select,
.results-toolbar select {
  min-height: 42px;
  padding: 0 13px;
  border-radius: 14px;
  border: 1px solid var(--control-border);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.field-label input:not([type="range"]):focus,
.field-label select:focus,
.results-toolbar select:focus {
  border-color: rgba(142, 66, 82, 0.34);
  background: #fff;
}

.price-filter-block {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(158, 140, 132, 0.2);
  border-radius: 16px;
  background: rgba(255, 253, 251, 0.5);
}

.price-input-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.price-input-grid label {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.price-input-grid input {
  width: 100%;
  min-width: 0;
}

.price-range-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price-range-row .text-button {
  flex: 0 0 auto;
}

.toggle-stack {
  display: grid;
  gap: 8px;
}

.toggle-stack label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(158, 140, 132, 0.18);
  border-radius: 14px;
  background: rgba(255, 253, 251, 0.48);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.toggle-stack input {
  accent-color: var(--berry);
}

.wide-button {
  width: 100%;
  border-color: rgba(142, 66, 82, 0.2);
  background: linear-gradient(135deg, #2b2422, #8e4252);
  color: var(--porcelain);
  font-weight: 760;
  box-shadow: 0 12px 30px rgba(142, 66, 82, 0.2);
}

.results-area {
  min-width: 0;
}

.results-toolbar {
  margin-bottom: 12px;
  padding: 20px;
  border: 1px solid rgba(222, 211, 204, 0.66);
  border-radius: 20px;
  background:
    linear-gradient(110deg, rgba(255, 253, 251, 0.92), rgba(248, 239, 235, 0.72)),
    rgba(255, 253, 251, 0.72);
  box-shadow: 0 18px 54px rgba(73, 54, 47, 0.08);
}

.results-toolbar p {
  margin: 8px 0 0;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.segmented {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 253, 251, 0.8);
  border: 1px solid var(--control-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.segmented button {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  background: transparent;
}

.segmented button.active {
  background: var(--control-active);
  color: var(--porcelain);
  box-shadow: 0 8px 22px rgba(33, 29, 28, 0.16);
}

.quick-filters {
  margin-bottom: 12px;
  padding: 0;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
  gap: 14px;
}

.results-grid.list {
  grid-template-columns: 1fr;
}

.master-card {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  overflow: hidden;
  min-height: 264px;
  border-radius: 20px;
  background: rgba(255, 253, 251, 0.9);
  border: 1px solid rgba(222, 211, 204, 0.64);
  box-shadow: 0 14px 42px rgba(73, 54, 47, 0.08);
}

.master-card.list {
  display: grid;
  grid-template-columns: 252px 1fr;
}

.master-media {
  position: relative;
  min-height: 100%;
}

.master-card.list .master-media {
  min-height: 100%;
}

.master-media img {
  width: 100%;
  height: 100%;
  min-height: 264px;
  object-fit: cover;
}

.card-gallery-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(255, 253, 251, 0.72);
  backdrop-filter: blur(10px);
}

.card-gallery-dots button {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 50%;
  background: rgba(37, 35, 32, 0.28);
  cursor: pointer;
}

.card-gallery-dots button.active {
  width: 18px;
  border-radius: 999px;
  background: var(--ink);
}

.card-gallery-strip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: grid;
  gap: 6px;
}

.card-gallery-strip button {
  width: 38px;
  height: 42px;
  overflow: hidden;
  padding: 0;
  border: 2px solid rgba(255, 253, 251, 0.84);
  border-radius: 12px;
  background: var(--porcelain);
  box-shadow: 0 8px 18px rgba(45, 39, 35, 0.16);
  cursor: pointer;
}

.card-gallery-strip img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.badge-row {
  position: absolute;
  left: 12px;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 253, 251, 0.88);
  font-size: 11px;
  font-weight: 720;
}

.badge.promo {
  background: #f0dfdc;
  color: var(--berry);
}

.master-body {
  min-width: 0;
  padding: 16px;
  display: grid;
  gap: 11px;
  align-content: start;
}

.master-body h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.08;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-line strong {
  font-size: 22px;
}

.meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.meta-grid span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(238, 231, 225, 0.72);
  color: var(--muted);
  font-size: 12px;
}

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

.card-actions button {
  min-width: 0;
  min-height: 38px;
  padding-inline: 11px;
  border-radius: 999px;
  font-size: 13px;
}

.card-actions .primary-button {
  grid-column: span 2;
}

.map-view {
  min-height: 620px;
}

.map-canvas {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.24) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.24) 1px, transparent 1px),
    linear-gradient(145deg, #e7ddd4, #d9c9bf);
  background-size: 64px 64px, 64px 64px, auto;
  box-shadow: var(--soft-shadow);
}

#mapPins {
  position: absolute;
  inset: 0;
  transform: translate(var(--map-pan-x, 0), var(--map-pan-y, 0)) scale(var(--map-zoom, 1));
  transform-origin: center;
  transition: transform 180ms ease;
}

.map-controls {
  position: absolute;
  z-index: 6;
  top: 18px;
  left: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: min(520px, calc(100% - 36px));
}

.map-controls button {
  min-height: 36px;
  border: 1px solid rgba(222, 211, 204, 0.78);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 253, 251, 0.92);
  color: var(--ink);
  font-weight: 800;
  box-shadow: var(--soft-shadow);
  cursor: pointer;
}

.map-pin {
  position: absolute;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 0;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 50% 6px;
  background: var(--berry);
  color: white;
  transform: rotate(-45deg);
  box-shadow: 0 12px 28px rgba(142, 66, 82, 0.32);
  cursor: pointer;
}

.map-pin.active {
  outline: 4px solid rgba(255, 253, 251, 0.9);
  transform: rotate(-45deg) scale(1.08);
}

.map-pin::first-letter {
  transform: rotate(45deg);
}

.pin-a { left: 22%; top: 28%; }
.pin-b { left: 64%; top: 18%; background: var(--sage); }
.pin-c { left: 74%; top: 58%; background: var(--ink); }
.pin-d { left: 38%; top: 66%; background: var(--rose); }
.pin-e { left: 52%; top: 44%; background: #8f7a67; }
.pin-f { left: 18%; top: 58%; background: #6b6f62; }

.map-cluster {
  position: absolute;
  z-index: 4;
  min-width: 62px;
  min-height: 62px;
  display: grid;
  place-items: center;
  gap: 1px;
  border: 3px solid rgba(255, 253, 251, 0.86);
  border-radius: 50%;
  background: rgba(33, 29, 28, 0.88);
  color: var(--porcelain);
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(33, 29, 28, 0.24);
  cursor: pointer;
}

.map-cluster span {
  display: block;
  font-size: 10px;
  font-weight: 760;
  opacity: 0.8;
}

.cluster-1 { left: 48%; top: 24%; }
.cluster-2 { left: 30%; top: 46%; }
.cluster-3 { left: 66%; top: 42%; }

.map-card {
  position: absolute;
  z-index: 2;
  left: 28px;
  bottom: 28px;
  max-width: 390px;
}

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

.map-status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-status-line span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 253, 251, 0.9);
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  box-shadow: var(--soft-shadow);
}

.user-location-card {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border-radius: 18px;
  background: rgba(33, 29, 28, 0.9);
  color: var(--porcelain);
  box-shadow: var(--shadow);
}

.user-location-card span {
  color: rgba(255, 253, 251, 0.72);
  font-size: 13px;
}

.map-card .master-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  border-radius: 18px;
}

.map-card .master-media {
  min-height: 100%;
}

.map-card .master-media img {
  min-height: 100%;
}

.map-card .badge-row {
  left: 8px;
  top: 8px;
  right: 8px;
}

.map-card .badge {
  min-height: 24px;
  padding: 0 7px;
  font-size: 11px;
}

.map-card .master-body {
  gap: 8px;
  padding: 12px;
}

.map-card .master-body h3 {
  font-size: 18px;
}

.map-card .price-line strong {
  font-size: 20px;
}

.map-card .meta-grid span:nth-child(n+3) {
  display: none;
}

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

.map-card .card-actions button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.map-selector {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.map-selector button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(222, 211, 204, 0.78);
  border-radius: 999px;
  background: rgba(255, 253, 251, 0.88);
  color: var(--muted);
  font-weight: 720;
}

.map-selector button.active {
  background: var(--ink);
  color: var(--porcelain);
}

.map-master-meta {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 253, 251, 0.88);
  box-shadow: var(--soft-shadow);
}

.map-master-meta span {
  color: var(--muted);
}

.bookings-list,
.studio-grid,
.saved-grid,
.messages-list {
  display: grid;
  gap: 16px;
}

.bookings-list {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.booking-card,
.metric-card,
.admin-board,
.studio-hero {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 253, 251, 0.8);
  border: 1px solid rgba(222, 211, 204, 0.72);
  box-shadow: var(--soft-shadow);
}

.booking-card {
  display: grid;
  gap: 12px;
}

.booking-card h2 {
  margin: 2px 0 0;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.04;
}

.booking-meta {
  color: var(--muted);
  font-size: 16px;
  font-weight: 650;
}

.booking-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-size: 15px;
}

.booking-row span {
  min-width: 0;
  color: var(--ink);
}

.booking-row strong {
  flex: 0 0 auto;
  text-align: right;
}

.booking-card-top,
.booking-actions,
.booking-detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.booking-card-top,
.booking-actions {
  justify-content: space-between;
}

.booking-actions button {
  min-height: 38px;
  padding: 0 12px;
}

.saved-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr) minmax(280px, 0.8fr);
  align-items: start;
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.collection-card {
  overflow: hidden;
  display: grid;
  padding: 0;
  border: 1px solid rgba(222, 211, 204, 0.72);
  border-radius: 22px;
  background: rgba(255, 253, 251, 0.84);
  box-shadow: var(--soft-shadow);
  text-align: left;
}

.collection-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  aspect-ratio: 4 / 3;
  gap: 2px;
  background: var(--line);
}

.collection-collage img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.collection-copy {
  display: grid;
  gap: 4px;
  padding: 14px;
}

.collection-copy strong {
  font-size: 16px;
}

.collection-copy small {
  color: var(--muted);
  line-height: 1.35;
}

.collection-copy em {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.mini-masonry {
  column-count: 3;
}

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

.saved-searches {
  display: grid;
  gap: 12px;
}

.saved-search-card,
.chat-card,
.empty-state,
.work-to-book,
.quick-question-panel {
  border: 1px solid rgba(222, 211, 204, 0.72);
  border-radius: 20px;
  background: rgba(255, 253, 251, 0.8);
  box-shadow: var(--soft-shadow);
}

.saved-search-card {
  padding: 16px;
  display: grid;
  gap: 18px;
}

.saved-search-bottom,
.saved-search-actions,
.chat-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.saved-search-actions {
  justify-content: flex-start;
}

.saved-search-actions button {
  min-height: 36px;
  padding: 0 12px;
}

.saved-master-row {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 253, 251, 0.78);
}

.saved-master-row img {
  width: 74px;
  height: 74px;
  border-radius: 15px;
  object-fit: cover;
}

.saved-service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(222, 211, 204, 0.72);
  border-radius: 18px;
  background: rgba(255, 253, 251, 0.78);
}

.saved-service-row .profile-row-actions {
  grid-column: 1 / -1;
}

.messages-list {
  max-width: 1180px;
}

.messages-shell {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  min-height: 640px;
  overflow: hidden;
  border: 1px solid rgba(222, 211, 204, 0.74);
  border-radius: 28px;
  background: rgba(255, 253, 251, 0.72);
  box-shadow: var(--soft-shadow);
}

.dialog-list {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 12px;
  border-right: 1px solid rgba(222, 211, 204, 0.72);
  background: rgba(255, 253, 251, 0.52);
}

.dialog-item {
  position: relative;
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.dialog-item.active {
  background: rgba(240, 223, 220, 0.72);
}

.dialog-item img,
.conversation-master img {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  object-fit: cover;
}

.dialog-item span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.dialog-item strong,
.dialog-item em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dialog-item em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.dialog-item i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--berry);
}

.conversation {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background:
    linear-gradient(180deg, rgba(255, 253, 251, 0.86), rgba(247, 239, 236, 0.48)),
    var(--porcelain);
}

.conversation.blocked {
  opacity: 0.72;
}

.conversation-head,
.conversation-compose {
  padding: 16px;
  background: rgba(255, 253, 251, 0.82);
}

.conversation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(222, 211, 204, 0.72);
}

.conversation-master {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.conversation-master div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.conversation-master span {
  color: var(--muted);
  font-size: 13px;
}

.conversation-body {
  display: grid;
  align-content: end;
  gap: 10px;
  padding: 18px;
}

.message-bubble {
  max-width: min(560px, 82%);
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border-radius: 20px;
}

.message-bubble p {
  margin: 0;
  line-height: 1.45;
}

.message-bubble span {
  color: var(--muted);
  font-size: 12px;
}

.message-bubble.client {
  justify-self: end;
  color: var(--porcelain);
  background: var(--ink);
  border-bottom-right-radius: 6px;
}

.message-bubble.client span {
  color: rgba(255, 253, 251, 0.68);
}

.message-bubble.master {
  justify-self: start;
  background: rgba(255, 253, 251, 0.92);
  border: 1px solid rgba(222, 211, 204, 0.7);
  border-bottom-left-radius: 6px;
}

.system-message {
  justify-self: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(238, 231, 225, 0.72);
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.chat-attachments {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
}

.chat-mini-card,
.chat-media-card {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 251, 0.76);
  min-width: 160px;
}

.chat-mini-card span,
.chat-mini-card em,
.chat-media-card span {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.chat-media-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  object-fit: cover;
}

.chat-media-card.video {
  position: relative;
}

.chat-play-badge {
  position: absolute;
  left: 18px;
  top: 18px;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(33, 29, 28, 0.76);
  color: #fff;
  font-weight: 800;
}

.chat-attach-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chat-attach-actions button {
  min-height: 34px;
  padding: 0 10px;
}

.chat-offer {
  max-width: 640px;
  margin-top: 2px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(222, 211, 204, 0.72);
  border-radius: 16px;
  background: rgba(247, 239, 236, 0.64);
}

.chat-offer span,
.chat-offer em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.chat-offer strong {
  white-space: nowrap;
}

.conversation-compose {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(222, 211, 204, 0.72);
}

.compose-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.compose-row textarea {
  width: 100%;
  min-height: 46px;
  max-height: 108px;
  resize: vertical;
  padding: 12px 14px;
  border: 1px solid rgba(222, 211, 204, 0.78);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font: inherit;
  line-height: 1.25;
}

.compose-row textarea::placeholder {
  color: var(--muted);
}

.chat-booking-action {
  display: grid;
}

.chat-more-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.chat-more-actions .text-button {
  min-height: 30px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.unread-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--berry);
  box-shadow: 0 0 0 5px rgba(142, 66, 82, 0.1);
}

.empty-state {
  padding: 24px;
}

.empty-state h2,
.empty-state p {
  margin: 0;
}

.studio-hero {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background:
    linear-gradient(90deg, rgba(33,29,28,0.82), rgba(33,29,28,0.12)),
    url("https://images.unsplash.com/photo-1519415510236-718bdfcd89c8?auto=format&fit=crop&w=1800&q=84") center / cover;
  color: var(--porcelain);
}

.studio-onboarding {
  display: none;
  gap: 16px;
}

body:not([data-role="master"]) #view-studio .studio-onboarding {
  display: grid;
}

body:not([data-role="master"]) #view-studio .studio-hero,
body:not([data-role="master"]) #view-studio .studio-grid,
body:not([data-role="master"]) #view-studio .studio-workspace {
  display: none;
}

body[data-role="master"] #view-studio .studio-onboarding {
  display: none;
}

.studio-onboarding-head,
.studio-onboarding-card {
  border: 1px solid rgba(222, 211, 204, 0.72);
  border-radius: 28px;
  background: rgba(255, 253, 251, 0.9);
  box-shadow: var(--soft-shadow);
}

.studio-onboarding-head {
  display: grid;
  gap: 8px;
  padding: 24px 22px;
}

.studio-onboarding-head h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(38px, 12vw, 58px);
  line-height: 0.9;
}

.studio-onboarding-head p:last-child {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
}

.studio-onboarding-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.studio-onboarding-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.studio-onboarding-card .wide,
.studio-onboarding-card .wide-button {
  grid-column: 1 / -1;
}

.studio-onboarding-card input,
.studio-onboarding-card select,
.studio-onboarding-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 251, 0.88);
  color: var(--ink);
  font: inherit;
}

.studio-onboarding-card input,
.studio-onboarding-card select {
  min-height: 46px;
  padding: 0 13px;
}

.studio-onboarding-card textarea {
  resize: vertical;
  padding: 12px 13px;
}

.profile-hero {
  margin-top: 4px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(255, 253, 251, 0.84), rgba(240, 223, 220, 0.72)),
    url("https://images.unsplash.com/photo-1524504388940-b1c1722653e1?auto=format&fit=crop&w=1600&q=78") right center / auto 140%;
  border: 1px solid rgba(222, 211, 204, 0.72);
  box-shadow: var(--soft-shadow);
}

.profile-id {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-id img {
  width: 88px;
  height: 88px;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: var(--soft-shadow);
}

.profile-id h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
}

.profile-id p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
}

.profile-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

#view-profile .admin-board {
  border-radius: 28px;
  background: rgba(255, 253, 251, 0.88);
  box-shadow: 0 14px 42px rgba(73, 54, 47, 0.07);
}

#view-profile .profile-contact-board {
  padding: 0;
  overflow: hidden;
}

#view-profile .profile-contact-board > .panel-head {
  display: none;
}

#view-profile .profile-menu-board {
  padding: 8px;
}

#view-profile .profile-legacy-board {
  display: none;
}

#view-profile .profile-legacy-board.active {
  display: block;
}

#view-profile .loyalty-board,
#view-profile .profile-saved-preview {
  grid-column: auto;
}

.messenger-profile-menu {
  display: grid;
  gap: 2px;
}

.profile-menu-row {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.profile-menu-row:hover {
  background: rgba(239, 232, 227, 0.62);
}

.profile-menu-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(239, 232, 227, 0.86);
  color: var(--ink);
  font-size: 18px;
  font-weight: 860;
}

.profile-menu-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.profile-menu-copy strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.1;
}

.profile-menu-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu-count {
  min-width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 860;
}

.loyalty-panel {
  display: grid;
  gap: 14px;
}

.loyalty-summary {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
}

.loyalty-summary strong {
  display: block;
  margin-top: 2px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.loyalty-summary p {
  margin: 8px 0 0;
  color: var(--muted);
}

.loyalty-tier {
  min-width: 138px;
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: 20px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(28, 23, 22, 0.96), rgba(87, 61, 52, 0.92)),
    radial-gradient(circle at 20% 20%, rgba(255, 230, 204, 0.45), transparent 34%);
  box-shadow: 0 18px 38px rgba(62, 46, 39, 0.22);
}

.loyalty-tier span {
  font: 760 24px/1 "Manrope", sans-serif;
}

.loyalty-tier small {
  color: rgba(255, 255, 255, 0.68);
}

.loyalty-progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(222, 211, 204, 0.72);
}

.loyalty-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2c2522, #d69d94, #f0d5c8);
}

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

.reward-card {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.reward-card.active {
  border-color: rgba(214, 157, 148, 0.8);
  background: rgba(249, 232, 226, 0.78);
}

.reward-card strong,
.reward-card span {
  display: block;
}

.reward-card span {
  margin-top: 5px;
  color: var(--muted);
}

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

.loyalty-history div {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 253, 251, 0.72);
  border: 1px solid rgba(222, 211, 204, 0.6);
}

.loyalty-history span,
.loyalty-history small {
  color: var(--muted);
}

.loyalty-history strong {
  color: #315c43;
}

.loyalty-history strong.negative {
  color: #8d514a;
}

.profile-activity-board {
  grid-column: 1 / -1;
}

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

.activity-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.activity-row {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: inherit;
  text-align: left;
}

.activity-row span {
  color: var(--muted);
  line-height: 1.35;
}

.activity-row:not(.static) {
  cursor: pointer;
}

.activity-row:not(.static):hover strong {
  color: var(--berry);
}

.profile-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.account-status-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.account-status-card strong {
  display: block;
  margin: 4px 0;
}

.account-status-card p {
  margin: 0;
  color: var(--muted);
}

.account-badges {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.finance-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.finance-summary div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.62);
}

.finance-summary span,
.promocode-row input {
  color: var(--muted);
}

.finance-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
}

.promocode-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 10px;
}

.promocode-row input {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.78);
  font: inherit;
}

.subscription-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.subscription-row img {
  width: 48px;
  aspect-ratio: 1;
  border-radius: 16px;
  object-fit: cover;
}

.profile-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-row-actions button {
  min-height: 36px;
  padding: 0 12px;
}

.profile-contact-board {
  grid-column: 1 / -1;
}

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

.profile-contact-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 8px 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.profile-contact-summary img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(73, 54, 47, 0.12);
}

.profile-contact-summary strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  line-height: 0.92;
}

.profile-contact-summary small,
.profile-contact-stats span {
  color: var(--muted);
}

.profile-contact-form,
.profile-contact-stats {
  display: grid;
  gap: 10px;
}

.profile-contact-form {
  display: none;
  grid-template-columns: 1fr;
}

.profile-contact-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.profile-contact-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 12px;
  background: rgba(255, 253, 251, 0.84);
  color: var(--ink);
  font: inherit;
}

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

.profile-contact-stats div {
  min-width: 0;
  padding: 12px 6px;
  border: 0;
  border-radius: 18px;
  background: rgba(239, 232, 227, 0.66);
  text-align: center;
}

.profile-contact-stats strong {
  display: block;
  font-size: 21px;
}

.profile-contact-status,
.profile-contact-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-contact-status span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(239, 232, 227, 0.72);
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.profile-contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 2px;
}

.profile-contact-actions button {
  min-height: 44px;
}

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

.analytics-grid article {
  padding: 12px;
  border-radius: 16px;
  background: rgba(238, 231, 225, 0.58);
}

.analytics-grid span,
.analytics-grid small,
.analytics-highlight span,
.analytics-highlight p {
  color: var(--muted);
}

.analytics-grid strong {
  display: block;
  margin: 4px 0;
  font-size: 24px;
}

.analytics-highlight {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 251, 0.72);
}

.analytics-highlight img {
  width: 88px;
  aspect-ratio: 1;
  border-radius: 16px;
  object-fit: cover;
}

.analytics-highlight p {
  margin: 4px 0 0;
  font-size: 13px;
}

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

.promotion-summary div {
  padding: 12px;
  border-radius: 16px;
  background: rgba(238, 231, 225, 0.58);
}

.promotion-summary span,
.promotion-card .master-meta {
  color: var(--muted);
}

.promotion-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.promotion-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.promotion-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 251, 0.76);
}

.notification-row {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.notification-center {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.notification-center-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.notification-center-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.notification-event-actions,
.delivery-log {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.delivery-log {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: stretch;
}

.delivery-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: rgba(251, 247, 243, 0.82);
}

.delivery-row span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.notification-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--berry);
}

.notification-copy {
  min-width: 0;
}

.notification-copy strong,
.notification-copy small {
  display: block;
}

.notification-copy small {
  margin-top: 3px;
  color: var(--muted);
}

.notification-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.notification-actions .small {
  width: 30px;
  height: 30px;
  min-height: 30px;
  font-size: 18px;
}

.notification-row.read {
  color: var(--muted);
}

.notification-row.read .notification-dot {
  background: var(--line);
}

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

.settings-grid button {
  min-height: 42px;
  border: 1px solid rgba(158, 140, 132, 0.28);
  border-radius: 14px;
  background: rgba(255, 253, 251, 0.76);
}

.settings-grid button.active {
  background: var(--ink);
  color: var(--porcelain);
}

.profile-settings-panel {
  display: grid;
  gap: 12px;
}

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

.settings-field {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 780;
  color: var(--muted);
}

.settings-field input,
.settings-field select {
  min-height: 42px;
  width: 100%;
  border: 1px solid rgba(158, 140, 132, 0.28);
  border-radius: 14px;
  background: rgba(255, 253, 251, 0.86);
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
}

.settings-master-mode {
  min-height: 54px;
  display: grid;
  gap: 3px;
  text-align: left;
  border: 1px solid rgba(158, 140, 132, 0.28);
  border-radius: 16px;
  background: rgba(255, 253, 251, 0.78);
  padding: 10px 12px;
  font-weight: 800;
}

.settings-master-mode span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 620;
}

.settings-master-mode.active {
  border-color: rgba(96, 75, 68, 0.25);
  background: var(--ink);
  color: #fff;
}

.settings-master-mode.active span {
  color: rgba(255, 255, 255, 0.74);
}

.profile-saved-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.profile-saved-item {
  min-height: 170px;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: var(--mist);
}

.profile-saved-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.studio-hero .eyebrow,
.studio-hero p {
  color: rgba(255, 253, 251, 0.76);
}

.studio-grid {
  margin: 18px 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

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

.admin-log-board {
  grid-column: 1 / -1;
}

.admin-role-board {
  grid-column: 1 / -1;
}

.admin-moderation-board {
  grid-column: 1 / -1;
}

.metric-card {
  display: grid;
  gap: 8px;
}

.metric-card strong {
  font-size: 38px;
}

.moderation-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.request-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.document-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.catalog-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.ops-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.moderation-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.catalog-summary div,
.ops-summary div,
.moderation-summary div,
.moderation-case-row,
.ops-row,
.catalog-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.catalog-summary div,
.ops-summary div,
.moderation-summary div {
  padding: 10px;
}

.catalog-summary span,
.ops-summary span,
.moderation-summary span,
.moderation-case-row span,
.ops-row span,
.catalog-row span {
  color: var(--muted);
}

.catalog-summary strong,
.ops-summary strong,
.moderation-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
}

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

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

.ops-columns h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.catalog-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-bottom: 8px;
}

.catalog-row span {
  display: block;
  margin-top: 3px;
}

.ops-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  padding: 10px;
  margin-bottom: 8px;
}

.ops-row strong,
.ops-row span {
  display: block;
}

.ops-row .secondary-button {
  width: 100%;
  min-height: 36px;
}

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

.moderation-case-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
}

.moderation-case-row span,
.moderation-case-row small {
  display: block;
}

.moderation-case-row small {
  color: var(--muted);
  white-space: nowrap;
}

.request-actions,
.service-actions,
.admin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.request-actions button,
.service-actions button,
.admin-actions button {
  min-height: 36px;
  padding: 0 12px;
}

.secondary-button.danger {
  color: var(--berry);
  border-color: rgba(142, 66, 82, 0.28);
  background: rgba(240, 223, 220, 0.78);
}

.status-pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
  background: rgba(238, 231, 225, 0.82);
  color: var(--muted);
}

.status-pill.ok {
  background: rgba(235, 241, 232, 0.92);
  color: #556b52;
}

.status-pill.warn {
  background: rgba(240, 223, 220, 0.92);
  color: var(--berry);
}

.log-line {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

#adminRoles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.role-card {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.role-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.permission-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.permission-grid button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0 10px;
  font-weight: 740;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}

.permission-grid button.active {
  border-color: rgba(96, 75, 68, 0.28);
  background: var(--ink);
  color: #fff;
}

.permission-grid button:focus-visible {
  outline: 2px solid rgba(142, 66, 82, 0.32);
  outline-offset: 2px;
}

.studio-calendar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.slot-card {
  min-height: 120px;
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 14px;
  border: 1px solid rgba(222, 211, 204, 0.78);
  border-radius: 18px;
  background: rgba(255, 253, 251, 0.78);
  text-align: left;
}

.slot-card span,
.slot-card em {
  color: var(--muted);
  font-style: normal;
}

.slot-card.open {
  background: rgba(235, 241, 232, 0.78);
}

.slot-card.busy {
  background: rgba(240, 223, 220, 0.78);
}

.slot-card:not(.open):not(.busy) {
  background: rgba(238, 231, 225, 0.82);
  opacity: 0.78;
}

.salon-board {
  grid-column: 1 / -1;
}

.studio-profile-board {
  grid-column: 1 / -1;
}

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

.studio-profile-main {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 251, 0.76);
}

.studio-profile-main img {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  object-fit: cover;
}

.studio-profile-main span,
.studio-profile-main small {
  color: var(--muted);
}

.studio-profile-main span {
  display: block;
  margin-top: 4px;
}

.studio-profile-main small {
  display: block;
  margin-top: 6px;
}

.studio-profile-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.studio-profile-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.studio-profile-form input,
.studio-profile-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 253, 251, 0.84);
  color: var(--ink);
  font: inherit;
}

.studio-profile-form textarea {
  resize: vertical;
}

.studio-profile-form .wide {
  grid-column: 1 / -1;
}

.studio-category-grid,
.studio-profile-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.studio-category-grid button,
.studio-profile-toggles button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 253, 251, 0.78);
  color: var(--ink);
  font-weight: 760;
  cursor: pointer;
}

.studio-category-grid button.active,
.studio-profile-toggles button.active {
  background: var(--ink);
  color: var(--porcelain);
}

.studio-crm-board {
  grid-column: 1 / -1;
}

.cabinet-rental-board {
  grid-column: 1 / -1;
}

.rental-summary,
.rental-list {
  display: grid;
  gap: 12px;
}

.rental-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rental-summary article {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 253, 251, 0.76);
  border: 1px solid var(--line);
}

.rental-summary span,
.rental-summary small,
.rental-card span {
  color: var(--muted);
}

.rental-summary strong {
  display: block;
  margin: 4px 0;
  font-size: 26px;
}

.rental-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.rental-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(222, 211, 204, 0.72);
  background: rgba(255, 255, 255, 0.62);
}

.rental-meta,
.rental-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rental-actions {
  flex-wrap: wrap;
}

.academy-board {
  grid-column: 1 / -1;
}

.community-board {
  grid-column: 1 / -1;
}

.community-summary,
.community-columns {
  display: grid;
  gap: 12px;
}

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

.community-summary article,
.community-row,
.community-post {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 253, 251, 0.76);
  border: 1px solid var(--line);
}

.community-summary span,
.community-summary small,
.community-row span,
.community-post span,
.community-post small {
  color: var(--muted);
}

.community-summary strong {
  display: block;
  margin: 4px 0;
  font-size: 24px;
}

.community-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.community-columns section {
  min-width: 0;
}

.community-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.community-post {
  display: grid;
  gap: 5px;
  margin-bottom: 8px;
}

.academy-summary,
.academy-list {
  display: grid;
  gap: 12px;
}

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

.academy-summary article {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 253, 251, 0.76);
  border: 1px solid var(--line);
}

.academy-summary span,
.academy-summary small,
.academy-course-head span {
  color: var(--muted);
}

.academy-summary strong {
  display: block;
  margin: 4px 0;
  font-size: 28px;
}

.academy-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.academy-course-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(222, 211, 204, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.academy-course-head {
  display: grid;
  gap: 8px;
}

.academy-progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(222, 211, 204, 0.72);
}

.academy-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sage), #d6b08e);
}

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

.academy-actions button {
  min-height: 34px;
  padding: 0 10px;
}

.crm-summary,
.crm-client-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.crm-summary article,
.crm-client-grid div {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 253, 251, 0.76);
  border: 1px solid var(--line);
}

.crm-summary span,
.crm-summary small,
.crm-client-grid span,
.crm-client-head span,
.crm-client-card p {
  color: var(--muted);
}

.crm-summary strong {
  display: block;
  margin: 4px 0;
  font-size: 24px;
}

.crm-client-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.crm-client-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(222, 211, 204, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.crm-client-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

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

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

.crm-actions button {
  min-height: 34px;
  padding: 0 10px;
}

.studio-work-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid rgba(222, 211, 204, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.before-after-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0;
}

.before-after-strip figure {
  position: relative;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  border-radius: 14px;
  background: var(--mist);
}

.before-after-strip img {
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
}

.before-after-strip figcaption {
  position: absolute;
  left: 7px;
  bottom: 7px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 253, 251, 0.82);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.studio-work-copy {
  display: grid;
  gap: 9px;
}

.studio-work-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.studio-work-meta,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.studio-work-meta span,
.tag-list span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(238, 231, 225, 0.72);
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.studio-work-meta span {
  background: rgba(255, 253, 251, 0.82);
  color: var(--ink);
}

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

.salon-profile-card {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 251, 0.76);
}

.salon-profile-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.salon-profile-head strong {
  display: block;
  font-size: 24px;
}

.salon-profile-head p {
  margin: 5px 0 0;
  color: var(--muted);
}

.salon-profile-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.salon-profile-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.salon-profile-form input,
.salon-profile-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 253, 251, 0.84);
  color: var(--ink);
  font: inherit;
}

.salon-profile-form .wide {
  grid-column: 1 / -1;
}

.salon-profile-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.salon-profile-categories span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(238, 231, 225, 0.72);
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.salon-profile-categories span.active {
  background: var(--ink);
  color: var(--porcelain);
}

.salon-summary article {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 253, 251, 0.76);
  border: 1px solid var(--line);
}

.salon-summary span,
.salon-summary small,
.salon-label {
  color: var(--muted);
}

.salon-summary strong {
  display: block;
  margin: 4px 0;
  font-size: 24px;
}

.salon-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.salon-management-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 251, 0.68);
}

.salon-action-form {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(88px, 0.45fr) auto;
  gap: 8px;
  align-items: center;
}

.salon-action-form input,
.salon-action-form select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 9px 11px;
  background: rgba(255, 253, 251, 0.9);
  color: var(--ink);
  font: inherit;
}

.salon-label {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.salon-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.salon-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.branch-service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.branch-service-list button {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(255, 253, 251, 0.84);
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
}

.branch-service-list button.active {
  border-color: rgba(33, 30, 28, 0.18);
  background: var(--ink);
  color: var(--porcelain);
}

.load-bar {
  width: 100%;
  height: 7px;
  overflow: hidden;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(222, 211, 204, 0.72);
}

.load-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--berry), var(--gold));
}

.empty-state.compact {
  box-shadow: none;
  padding: 16px;
}

.moderation-media {
  position: relative;
  width: 56px;
  height: 56px;
  display: block;
}

.moderation-row img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
}

.moderation-media .video-badge {
  top: 4px;
  left: 4px;
  min-height: 20px;
  padding: 0 6px;
  font-size: 10px;
}

.bottom-nav {
  display: none;
}

.modal[hidden],
.toast[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(33, 29, 28, 0.45);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(1540px, calc(100vw - 56px));
  height: min(920px, calc(100vh - 56px));
  max-width: none;
  transform: translate(-50%, -50%);
  overflow: hidden;
  border-radius: 28px;
  background: var(--milk);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.22);
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 30;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 253, 251, 0.92);
  font-size: 28px;
}

#modalContent {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.detail-grid {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(520px, 0.82fr);
  min-width: 0;
}

.auth-card {
  min-height: 100%;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 18px;
  padding: clamp(28px, 6vw, 72px);
  background:
    linear-gradient(90deg, rgba(251,247,243,0.96), rgba(251,247,243,0.72)),
    url("https://images.unsplash.com/photo-1522337660859-02fbefca4702?auto=format&fit=crop&w=1600&q=82") right center / cover;
}

.auth-card h2 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
}

.auth-card p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.auth-type-grid {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.auth-type-grid button,
.auth-consent {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.auth-type-grid button {
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 14px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.auth-type-grid button.active {
  border-color: rgba(160, 96, 110, 0.4);
  background: rgba(244, 219, 222, 0.86);
}

.auth-type-grid span {
  color: var(--muted);
  line-height: 1.35;
}

.auth-form-grid {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.auth-form-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.auth-form-grid input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font: inherit;
}

.auth-consent {
  width: min(720px, 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: var(--muted);
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-media {
  position: relative;
  background: #151211;
  min-height: 520px;
}

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

.detail-hero-image {
  display: block;
}

.detail-sticky-bar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px;
  margin: 0 0 4px;
  border: 1px solid rgba(222, 211, 204, 0.78);
  border-radius: 18px;
  background: rgba(255, 253, 251, 0.92);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.detail-sticky-bar > div {
  flex: 1 1 260px;
  min-width: 0;
}

.detail-sticky-bar > strong {
  flex: 0 0 auto;
}

.detail-sticky-bar span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-sticky-bar button {
  flex: 0 0 auto;
  min-height: 38px;
  white-space: nowrap;
}

.gallery-thumb-strip {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.gallery-thumb-strip button {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid rgba(255, 253, 251, 0.58);
  border-radius: 14px;
  padding: 0;
  background: rgba(255, 253, 251, 0.18);
  cursor: pointer;
}

.gallery-thumb-strip button.active {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(33, 29, 28, 0.16);
}

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

.gallery-thumb-strip span {
  position: absolute;
  inset: auto 6px 6px auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 253, 251, 0.88);
  color: var(--ink);
  font-size: 12px;
}

.media-fullscreen-button,
.gallery-counter {
  position: absolute;
  z-index: 3;
  top: 18px;
  border-radius: 999px;
  background: rgba(255, 253, 251, 0.9);
  color: var(--ink);
  box-shadow: var(--soft-shadow);
}

.media-fullscreen-button {
  right: 18px;
  min-height: 38px;
  border: 0;
  padding: 0 14px;
  font: inherit;
  font-weight: 760;
  cursor: pointer;
}

.gallery-counter {
  left: 18px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  font-weight: 820;
}

.media-viewer {
  min-height: min(86vh, 920px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  background: #151211;
}

.media-viewer-top {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.media-viewer-top span {
  display: block;
  color: rgba(255, 255, 255, 0.64);
}

.media-viewer img {
  width: 100%;
  height: 100%;
  max-height: calc(86vh - 90px);
  object-fit: contain;
  border-radius: 18px;
  background: #090807;
}

.video-preview img {
  filter: saturate(1.06) contrast(1.02);
}

.play-overlay {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 253, 251, 0.9);
  color: var(--ink);
  font-weight: 820;
  box-shadow: var(--soft-shadow);
}

.detail-content {
  min-height: 0;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 36px clamp(24px, 3vw, 42px);
  display: grid;
  gap: 18px;
  align-content: start;
}

.detail-content > * {
  min-width: 0;
  max-width: 100%;
}

.detail-content h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

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

.service-row {
  min-height: 66px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 253, 251, 0.76);
  border: 1px solid rgba(222, 211, 204, 0.76);
}

.service-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.work-to-book {
  padding: 14px;
  display: grid;
  gap: 4px;
  background: linear-gradient(135deg, rgba(240, 223, 220, 0.88), rgba(255, 253, 251, 0.84));
}

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

.work-action-panel button {
  width: 100%;
  min-height: 42px;
  padding-inline: 14px;
  white-space: nowrap;
}

.work-action-panel .primary-button {
  grid-column: 1 / -1;
}

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

.trust-panel div,
.location-panel,
.review-card {
  border: 1px solid rgba(222, 211, 204, 0.72);
  border-radius: 18px;
  background: rgba(255, 253, 251, 0.78);
  box-shadow: var(--soft-shadow);
}

.trust-panel div {
  min-height: 92px;
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 14px;
}

.trust-panel span {
  color: var(--muted);
  font-size: 13px;
}

.verification-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.master-action-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 12px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid rgba(222, 211, 204, 0.78);
  border-radius: 20px;
  background: rgba(255, 253, 251, 0.84);
}

.master-action-status {
  display: grid;
  gap: 8px;
  align-content: start;
}

.master-action-status .status-pill {
  width: fit-content;
}

.master-action-status p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.master-action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-content: center;
}

.master-action-grid button,
.master-action-grid .action-disabled {
  min-height: 42px;
}

.action-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(238, 231, 225, 0.76);
  color: var(--muted);
  font-weight: 760;
  font-size: 13px;
}

.master-mobile-cta {
  display: none;
}

.location-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
  padding: 14px;
  align-items: stretch;
}

.location-panel p,
.review-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.location-facts {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.location-facts span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(238, 231, 225, 0.68);
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.location-mini-map {
  position: relative;
  min-height: 140px;
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.4) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.4) 1px, transparent 1px),
    linear-gradient(135deg, #e5d9d0, #cfc0b8);
  background-size: 36px 36px, 36px 36px, auto;
}

.location-mini-map span {
  position: absolute;
  left: 52%;
  top: 44%;
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 4px;
  background: var(--berry);
  transform: rotate(-45deg);
  box-shadow: 0 10px 24px rgba(142, 66, 82, 0.36);
}

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

.master-details-panel div {
  min-height: 76px;
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 14px;
  border: 1px solid rgba(222, 211, 204, 0.72);
  border-radius: 18px;
  background: rgba(255, 253, 251, 0.78);
}

.master-details-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.master-details-panel strong {
  line-height: 1.25;
}

.service-description-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(222, 211, 204, 0.78);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 253, 251, 0.92), rgba(246, 239, 235, 0.72)),
    var(--surface);
}

.service-description-lead {
  display: grid;
  gap: 6px;
}

.service-description-lead p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

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

.service-description-grid div {
  min-height: 88px;
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 13px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(222, 211, 204, 0.58);
}

.service-description-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.service-description-grid strong {
  line-height: 1.28;
}

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

.review-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(238, 231, 225, 0.62);
}

.review-summary span {
  color: var(--muted);
}

.review-filter,
.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-filter button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0 12px;
  font-weight: 760;
  color: var(--muted);
  cursor: pointer;
}

.review-filter button.active {
  background: var(--ink);
  color: #fff;
}

.review-card {
  padding: 14px;
}

.review-photo {
  width: 100%;
  max-height: 180px;
  margin-top: 8px;
  border-radius: 14px;
  object-fit: cover;
}

.review-reply {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 253, 251, 0.74);
}

.review-reply span {
  color: var(--muted);
}

.review-actions {
  margin-top: 10px;
}

.review-actions button {
  min-height: 34px;
  padding: 0 12px;
}

.similar-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.similar-offer-panel {
  display: grid;
  gap: 12px;
}

.similar-offer-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.similar-offer-head span {
  max-width: 420px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: right;
}

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

.similar-offer-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(222, 211, 204, 0.74);
  border-radius: 20px;
  background: rgba(255, 253, 251, 0.84);
}

.similar-offer-media {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--porcelain);
}

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

.similar-offer-media span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 253, 251, 0.88);
  font-size: 12px;
  font-weight: 760;
}

.similar-offer-body {
  display: grid;
  gap: 9px;
  align-content: start;
}

.similar-offer-body p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.similar-offer-meta,
.similar-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.similar-offer-meta span,
.similar-reasons span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(238, 231, 225, 0.68);
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.similar-reasons span {
  background: rgba(216, 159, 151, 0.16);
  color: var(--ink);
}

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

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

.similar-work-card {
  position: relative;
  min-height: 156px;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: var(--porcelain);
  box-shadow: var(--soft-shadow);
  text-align: left;
}

.similar-work-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.similar-work-card span {
  display: block;
  padding: 10px;
  font-weight: 720;
}

.collection-modal {
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  gap: 22px;
}

.collection-modal-head {
  max-width: 640px;
}

.collection-modal-head h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.collection-modal-head p {
  color: var(--muted);
  line-height: 1.5;
}

.collection-status,
.collection-editor-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.collection-status span,
.collection-status strong {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(238, 231, 225, 0.72);
}

.collection-status span {
  color: var(--muted);
}

.collection-editor {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 251, 0.74);
}

.collection-editor label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.collection-editor input,
.collection-editor textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--porcelain);
  color: var(--ink);
  font: inherit;
}

.collection-cover {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(238, 231, 225, 0.58);
}

.collection-cover img {
  width: 96px;
  aspect-ratio: 1;
  border-radius: 14px;
  object-fit: cover;
}

.collection-cover span {
  color: var(--muted);
  font-size: 12px;
}

.pin-actions {
  margin-top: 8px;
}

.pin-actions span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 253, 251, 0.88);
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
}

.booking-detail-modal {
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  gap: 22px;
}

.booking-detail-modal h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.booking-detail-modal p {
  color: var(--muted);
  line-height: 1.5;
}

.booking-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.booking-detail-grid div {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(222, 211, 204, 0.72);
  border-radius: 18px;
  background: rgba(255, 253, 251, 0.82);
}

.payment-receipt-modal .booking-detail-grid div {
  min-height: 96px;
}

.booking-detail-grid span {
  color: var(--muted);
  font-size: 13px;
}

.feedback-modal {
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  gap: 18px;
  max-width: 760px;
}

.feedback-modal h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.feedback-modal p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.rating-picker,
.complaint-reasons,
.trust-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rating-picker button,
.complaint-reasons button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 251, 0.84);
  color: var(--ink);
  font-weight: 760;
}

.rating-picker button.active,
.complaint-reasons button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--porcelain);
}

.feedback-textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid rgba(222, 211, 204, 0.9);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 253, 251, 0.86);
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
}

.feedback-textarea:focus {
  outline: 2px solid rgba(142, 66, 82, 0.22);
  border-color: rgba(142, 66, 82, 0.42);
}

.ai-match-modal {
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  gap: 18px;
}

.ai-match-head h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.ai-match-head p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.5;
}

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

.ai-match-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 251, 0.82);
}

.ai-match-card > img {
  width: 132px;
  height: 154px;
  border-radius: 16px;
  object-fit: cover;
}

.ai-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.ai-reasons span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(238, 231, 225, 0.72);
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.visual-search-modal {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1fr);
}

.visual-search-hero {
  padding: clamp(28px, 5vw, 58px);
  display: grid;
  align-content: center;
  gap: 16px;
  background: linear-gradient(145deg, rgba(240, 223, 220, 0.82), rgba(255, 253, 251, 0.92));
}

.visual-search-hero h2 {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1;
}

.visual-search-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.visual-search-hero img {
  width: min(100%, 360px);
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.visual-results {
  min-height: 0;
  overflow: auto;
  padding: 34px;
  display: grid;
  gap: 12px;
}

.visual-result-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(222, 211, 204, 0.72);
  border-radius: 20px;
  background: rgba(255, 253, 251, 0.82);
}

.visual-thumb {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: var(--mist);
}

.visual-thumb img {
  width: 116px;
  height: 128px;
  object-fit: cover;
}

.visual-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.similar-strip .master-media {
  min-height: 160px;
}

.similar-strip .master-media img {
  min-height: 160px;
}

.work-to-book span {
  color: var(--muted);
  font-size: 13px;
}

.booking-panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 253, 251, 0.92);
  box-shadow: var(--soft-shadow);
}

.service-picker,
.quick-question-grid {
  display: flex;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.service-picker {
  margin: 12px 0;
}

.service-picker button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 251, 0.8);
}

.service-picker button.active {
  background: var(--ink);
  color: var(--porcelain);
}

.booking-price-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.booking-price-summary div {
  display: grid;
  gap: 4px;
  min-height: 92px;
  padding: 10px;
  border: 1px solid rgba(222, 211, 204, 0.72);
  border-radius: 16px;
  background: rgba(255, 253, 251, 0.82);
}

.booking-price-summary span,
.booking-price-summary em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.booking-price-summary strong {
  font-size: 15px;
  line-height: 1.18;
}

.reference-picker {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.reference-picker-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.reference-picker-head span,
.booking-reference span {
  color: var(--muted);
  font-size: 12px;
}

.reference-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 116px;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.reference-strip button {
  display: grid;
  gap: 6px;
  min-height: 124px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 251, 0.86);
  color: var(--ink);
  text-align: left;
  scroll-snap-align: start;
}

.reference-strip button.active {
  border-color: var(--berry);
  box-shadow: 0 0 0 3px rgba(142, 66, 82, 0.14);
}

.reference-strip img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
}

.reference-strip span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 12px;
  font-weight: 720;
}

.booking-reference,
.request-reference {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background: rgba(238, 231, 225, 0.58);
}

.booking-reference img,
.request-reference img {
  width: 58px;
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
}

.booking-reference div,
.request-reference div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.booking-reference span,
.request-reference span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.booking-reference strong,
.request-reference strong {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.12;
}

.booking-reference.large {
  grid-template-columns: 112px 1fr;
  padding: 12px;
}

.booking-reference.large img {
  width: 112px;
  border-radius: 16px;
}

.booking-reference p,
.request-reference span {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.quick-question-panel {
  padding: 16px;
}

.quick-question-panel h3 {
  margin: 0 0 12px;
}

.quick-question-compose {
  display: grid;
  gap: 7px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.quick-question-compose textarea {
  width: 100%;
  min-height: 86px;
  resize: vertical;
  padding: 12px;
  border: 1px solid rgba(158, 140, 132, 0.24);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
  font-weight: 520;
}

.quick-question-compose + .wide-button {
  margin-bottom: 12px;
}

.quick-question-grid button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 12px;
}

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

.date-grid {
  margin: 12px 0 8px;
}

.date-grid button,
.slot-grid button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--porcelain);
}

.slot-grid button {
  display: grid;
  gap: 2px;
  min-height: 52px;
  align-content: center;
}

.slot-grid button span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 680;
}

.date-grid button.active,
.slot-grid button.active {
  background: var(--ink);
  color: var(--porcelain);
}

.slot-grid button.active span {
  color: rgba(255, 253, 251, 0.72);
}

.slot-grid button.hold {
  border-color: rgba(187, 138, 64, 0.34);
  background: rgba(251, 242, 224, 0.86);
}

.slot-grid button.busy {
  cursor: not-allowed;
  background: rgba(238, 231, 225, 0.64);
  color: var(--muted);
  opacity: 0.68;
}

.booking-availability {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.booking-availability span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.booking-availability b {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
}

.booking-availability b.hold {
  background: #c1904c;
}

.booking-availability b.busy {
  background: #c7bbb3;
}

.booking-availability em {
  flex: 1 1 100%;
  color: var(--ink);
  font-style: normal;
  font-weight: 760;
}

.booking-comment {
  display: grid;
  gap: 7px;
  margin: 12px 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.booking-comment textarea {
  width: 100%;
  resize: vertical;
  min-height: 74px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 251, 0.84);
  color: var(--ink);
  font: inherit;
}

.booking-reminder {
  width: 100%;
  display: grid;
  gap: 2px;
  margin: 8px 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 251, 0.84);
  color: var(--ink);
  text-align: left;
  font-size: 13px;
  font-weight: 720;
}

.booking-reminder.active {
  border-color: rgba(142, 66, 82, 0.2);
  background: #f0dfdc;
}

.booking-reminder span {
  color: var(--muted);
  font-weight: 620;
}

.booking-policy,
.booking-note,
.request-note,
.booking-policy-card {
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(238, 231, 225, 0.58);
}

.booking-policy,
.booking-note,
.request-note {
  display: grid;
  gap: 4px;
  margin: 8px 0;
}

.booking-policy span,
.booking-note span,
.request-note,
.booking-policy-card p {
  color: var(--muted);
  font-size: 13px;
}

.booking-policy-card {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.booking-policy-card p {
  margin: 4px 0 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 90;
  transform: translateX(-50%);
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--porcelain);
  box-shadow: var(--shadow);
}

@media (max-width: 1220px) {
  .masonry-feed {
    column-count: 4;
  }

  .bookings-list {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .collections-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

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

@media (max-width: 980px) {
  .app-shell {
    display: block;
  }

  .side-nav {
    display: none;
  }

  .main {
    padding-bottom: 86px;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 10px;
    min-height: auto;
    padding: 10px 0 10px;
    background: rgba(247, 239, 236, 0.88);
  }

  .bottom-nav {
    display: grid;
  }

  .mobile-menu {
    display: none;
  }

  .searchbox {
    grid-column: 1;
    grid-row: 1;
    min-height: 48px;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 6px;
    padding: 5px 14px 5px 8px;
    border-radius: 24px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 251, 248, 0.9)),
      var(--control-bg);
    box-shadow:
      0 10px 28px rgba(73, 54, 47, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.92);
  }

  .searchbox-icon {
    width: 34px;
    height: 34px;
    background: rgba(244, 219, 222, 0.58);
  }

  .searchbox-icon .ui-icon {
    width: 17px;
    height: 17px;
  }

  .searchbox input {
    font-size: 15px;
    font-weight: 650;
  }

  .location-pill {
    display: none;
  }

  .profile-pill span {
    display: none;
  }

  .profile-pill,
  .notification-pill {
    grid-column: 2;
    grid-row: 1;
    width: 42px;
    min-height: 42px;
    padding: 0;
    justify-content: center;
  }

  .profile-pill img {
    width: 30px;
    height: 30px;
  }

  .notification-pill .ui-icon {
    width: 19px;
    height: 19px;
  }

  .notification-popover {
    top: 76px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: min(560px, calc(100dvh - 96px));
    border-radius: 22px;
  }

  .role-switcher {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    overflow-x: auto;
    justify-content: space-between;
    scrollbar-width: none;
    padding: 3px;
    background: rgba(255, 253, 251, 0.82);
  }

  .role-switcher button {
    flex: 1 1 0;
    min-height: 34px;
    padding: 0 8px;
    font-size: 13px;
  }

  .hero-band,
  .recommendation-band,
  .search-layout,
  .search-alert-card,
  .detail-grid,
  .visual-search-modal,
  .saved-grid,
  .collections-grid,
  .booking-detail-grid,
  .profile-grid,
  .studio-workspace,
  .admin-kpis,
  .admin-workspace,
  .trust-panel,
  .master-action-panel,
  .location-panel,
  .master-details-panel,
  .service-description-grid,
  .similar-offer-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-band {
    min-height: 420px;
  }

  .hero-actions {
    justify-self: start;
  }

  .promo-banner-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .filters-panel {
    position: static;
    max-height: none;
    overflow: visible;
  }

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

  .bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 40;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    padding: 6px;
    border-radius: 24px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(252, 246, 241, 0.88)),
      rgba(255, 253, 251, 0.9);
    border: 1px solid rgba(222, 211, 204, 0.82);
    box-shadow:
      0 22px 60px rgba(55, 39, 35, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
  }

  .bottom-nav button {
    position: relative;
    min-height: 54px;
    display: grid;
    grid-template-rows: 24px 14px;
    align-content: center;
    justify-items: center;
    gap: 2px;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 720;
    line-height: 1;
    text-align: center;
  }

  .bottom-nav-icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 0;
    color: var(--muted);
    background: transparent;
  }

  .bottom-nav-icon .ui-icon {
    width: 16px;
    height: 16px;
    stroke-width: 1.9;
  }

  .bottom-nav button > span:last-child {
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
  }

  .bottom-nav button.active {
    background: transparent;
    color: var(--ink);
    box-shadow: none;
  }

  .bottom-nav button.active::before {
    content: "";
    position: absolute;
    top: 5px;
    width: 22px;
    height: 3px;
    border-radius: 999px;
    background: var(--ink);
  }

.bottom-nav button.active .bottom-nav-icon {
  color: var(--ink);
  background: transparent;
}

[data-route].locked {
  opacity: 0.45;
}

body[data-role="guest"] .bottom-nav [data-route="bookings"],
body[data-role="guest"] .bottom-nav [data-route="messages"],
body[data-role="guest"] .bottom-nav [data-route="profile"] {
  opacity: 0.55;
}

body[data-role="master"] .role-switcher {
  border-color: rgba(33, 29, 28, 0.2);
}

body[data-role="master"] .role-switcher button.active {
  background: var(--ink);
  color: var(--porcelain);
}

  .similar-offer-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .similar-offer-head span {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .main {
    padding: 10px 12px 92px;
  }

  .topbar {
    gap: 10px;
  }

  .searchbox {
    min-height: 48px;
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 5px 14px 5px 8px;
  }

  .searchbox-icon {
    width: 34px;
    height: 34px;
  }

  .role-switcher button {
    flex: 1 0 auto;
    padding: 0 10px;
  }

  .searchbox button {
    display: none;
  }

  .hero-band {
    border-radius: 22px;
    padding: 24px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .section-head,
  .results-toolbar,
  .studio-hero,
  .profile-hero {
    align-items: start;
    flex-direction: column;
  }

  #view-inspire.active {
    display: flex;
    flex-direction: column;
  }

  #view-inspire .hero-band,
  #view-inspire .promo-banner,
  #view-inspire .recommendation-band,
  #view-inspire .product-marketplace-band {
    display: none;
  }

  #view-inspire .section-head {
    position: sticky;
    top: 0;
    z-index: 8;
    order: 1;
    gap: 10px;
    margin: 0 -12px 10px;
    padding: 10px 12px;
    background: rgba(247, 239, 236, 0.94);
    backdrop-filter: blur(18px);
  }

  #view-inspire .section-head .eyebrow,
  #view-inspire .section-head h2 {
    display: none;
  }

  .section-head > .chip-row {
    width: 100%;
  }

  .masonry-feed {
    order: 1;
    gap: 7px;
    padding-inline: 0;
  }

  .masonry-column {
    gap: 7px;
  }

  #feedLoader {
    order: 3;
  }

  .pin-card {
    border-radius: 15px;
  }

  .pin-overlay {
    opacity: 1;
    background: linear-gradient(180deg, rgba(33, 29, 28, 0.18), transparent 42%);
  }

  .pin-info {
    display: none;
  }

  .pin-card .save-button {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  #view-search .search-layout {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 -12px;
    padding: 0 12px 8px;
    width: 100%;
    max-width: calc(100% + 24px);
    overflow-x: hidden;
  }

  #view-search .filters-panel {
    position: static;
    order: 1;
    width: 100%;
    max-width: 100%;
    max-height: none;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0;
    padding: 14px 14px 52px;
    border: 0;
    border-radius: 0 0 28px 28px;
    background:
      radial-gradient(circle at 20% 0%, rgba(226, 155, 170, 0.22), transparent 38%),
      linear-gradient(145deg, #211d1c, #141110);
    box-shadow: 0 18px 42px rgba(55, 39, 35, 0.2);
    scrollbar-width: none;
  }

  #view-search .filters-panel::-webkit-scrollbar {
    display: none;
  }

  #view-search .filters-panel .panel-head,
  #view-search .filters-panel .subcategory-quick,
  #view-search .filters-panel .price-filter-block,
  #view-search .filters-panel .locality-filter,
  #view-search .filters-panel .popular-queries,
  #view-search .filters-panel #saveSearch,
  #view-search .filters-panel .field-label:nth-of-type(n + 3) {
    display: none;
  }

  #view-search .filters-panel .field-label {
    flex: 0 0 auto;
    min-width: 0;
    gap: 0;
    font-size: 0;
  }

  #view-search .filters-panel .field-label:first-of-type,
  #view-search .filters-panel .field-label:nth-of-type(2) {
    flex-basis: 172px;
  }

  #view-search .filters-panel .field-label select {
    min-height: 44px;
    padding: 0 32px 0 15px;
    border-radius: 999px;
    border-color: rgba(255, 246, 240, 0.16);
    background: rgba(255, 253, 251, 0.08);
    color: #fff;
    box-shadow: none;
    font-size: 13px;
    font-weight: 820;
  }

  #view-search .price-presets,
  #view-search .toggle-stack {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
    max-width: 100%;
  }

  #view-search .price-presets button,
  #view-search .toggle-stack label {
    min-height: 44px;
    white-space: nowrap;
    border-radius: 999px;
    border: 1px solid rgba(255, 246, 240, 0.16);
    background: rgba(255, 253, 251, 0.08);
    color: #fff;
    box-shadow: none;
    font-size: 13px;
    font-weight: 820;
  }

  #view-search .toggle-stack label {
    padding: 0 13px;
  }

  #view-search .results-area {
    order: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  #view-search .results-toolbar {
    order: 1;
    width: 100%;
    max-width: 100%;
    margin: -44px 0 0;
    padding: 16px 16px 14px;
    border: 1px solid rgba(222, 211, 204, 0.72);
    border-radius: 24px;
    background: rgba(255, 253, 251, 0.96);
    box-shadow: 0 16px 36px rgba(55, 39, 35, 0.12);
  }

  #view-search .results-toolbar .eyebrow {
    display: none;
  }

  #view-search .results-toolbar h1 {
    font-family: var(--font-sans);
    font-size: 24px;
    font-weight: 860;
    line-height: 1;
  }

  #view-search .results-toolbar p {
    max-width: 310px;
    margin-top: 8px;
    font-size: 13.5px;
    line-height: 1.35;
  }

  #view-search .toolbar-actions {
    width: 100%;
    max-width: 100%;
    gap: 8px;
    justify-content: flex-start;
    margin-top: 14px;
    min-width: 0;
  }

  #view-search .toolbar-actions select {
    flex: 1 1 auto;
    min-height: 40px;
    padding-left: 14px;
    border-radius: 999px;
    background: rgba(239, 232, 227, 0.72);
    font-size: 13px;
    font-weight: 760;
  }

  #view-search .toolbar-actions .segmented {
    display: none;
  }

  #view-search .quick-filters {
    order: 3;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    margin: 2px 0 12px;
    padding: 0 0 2px;
    scrollbar-width: none;
  }

  #view-search .quick-filters::-webkit-scrollbar {
    display: none;
  }

  #view-search .quick-filters button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 253, 251, 0.9);
    box-shadow: none;
    font-size: 13px;
    font-weight: 820;
  }

  #view-search #searchPromo,
  #view-search #searchAlertPanel,
  #view-search #comparePanel {
    display: none;
  }

  #view-search .results-grid {
    order: 4;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 14px;
  }

  #view-search .master-card,
  #view-search .master-card.list {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: 22px;
    border-color: rgba(222, 211, 204, 0.74);
    background: rgba(255, 253, 251, 0.98);
    box-shadow: 0 12px 28px rgba(55, 39, 35, 0.08);
  }

  #view-search .master-media,
  #view-search .master-card.list .master-media {
    aspect-ratio: 1.18;
  }

  #view-search .master-media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(30, 25, 22, 0.18));
  }

  #view-search .badge-row {
    gap: 6px;
    right: auto;
    max-width: calc(100% - 70px);
  }

  #view-search .badge {
    min-height: 28px;
    padding: 0 9px;
    border: 0;
    background: rgba(255, 253, 251, 0.92);
    color: var(--ink);
    font-size: 10.5px;
    box-shadow: 0 8px 18px rgba(45, 39, 35, 0.14);
  }

  #view-search .badge.promo {
    color: var(--berry);
    background: rgba(255, 238, 242, 0.94);
  }

  #view-search .card-gallery-strip {
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    gap: 7px;
  }

  #view-search .card-gallery-strip button {
    width: 50px;
    height: 52px;
    border-radius: 14px;
  }

  #view-search .card-gallery-dots {
    right: 12px;
    left: auto;
    bottom: 74px;
    transform: none;
    padding: 5px 8px;
  }

  #view-search .master-body {
    min-width: 0;
    padding: 14px 15px 15px;
    gap: 10px;
  }

  #view-search .card-top {
    align-items: flex-start;
    gap: 10px;
  }

  #view-search .master-body h3 {
    max-width: 15ch;
    font-family: var(--font-sans);
    font-size: 22px;
    font-weight: 860;
    line-height: 1.04;
  }

  #view-search .master-meta {
    margin-top: 5px;
    font-size: 14px;
    line-height: 1.22;
  }

  #view-search .fav-button {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 0;
    background: rgba(151, 71, 91, 0.12);
    color: var(--berry);
    font-size: 22px;
    box-shadow: none;
  }

  #view-search .fav-button.saved {
    background: var(--berry);
    color: #fff;
  }

  #view-search .price-line {
    align-items: flex-end;
    gap: 10px;
  }

  #view-search .price-line strong {
    font-size: 22px;
    line-height: 1;
  }

  #view-search .meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }

  #view-search .meta-grid span {
    min-height: 28px;
    max-width: 100%;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(239, 232, 227, 0.72);
    color: var(--muted);
    font-size: 12px;
    line-height: 28px;
  }

  #view-search .card-actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 2px;
    min-width: 0;
  }

  #view-search .card-actions button {
    min-width: 0;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
  }

  #view-search .card-actions .card-book-button {
    grid-column: 1 / -1;
    min-height: 46px;
    font-size: 15px;
  }

  #view-search .card-actions .card-map-button,
  #view-search .card-actions .card-follow-button,
  #view-search .card-actions .card-compare-button {
    display: none;
  }

  .results-grid,
  .bookings-list,
  .studio-grid,
  .saved-grid,
  .master-details-panel,
  .service-description-grid,
  .profile-contact-summary,
  .profile-contact-form,
  .profile-contact-stats,
  .studio-work-card,
  .profile-activity-grid,
  .reward-grid,
  .loyalty-history,
  .profile-saved-strip,
  .similar-work-grid,
  .similar-offer-card,
  .similar-offer-actions {
    grid-template-columns: 1fr;
  }

  .bookings-list {
    gap: 14px;
  }

  .booking-card {
    gap: 14px;
    padding: 18px;
    border-radius: 24px;
  }

  .booking-card-top {
    gap: 8px;
  }

  .booking-card-top .badge {
    min-height: 28px;
    font-size: 12px;
  }

  .booking-card-top .master-meta {
    max-width: 52%;
    overflow: hidden;
    font-size: 13px;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .booking-card h2 {
    font-size: 28px;
    line-height: 1.06;
  }

  .booking-meta {
    font-size: 16px;
  }

  .booking-row {
    gap: 10px;
    font-size: 15px;
  }

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

  .booking-note {
    gap: 5px;
    padding: 14px;
    border-radius: 18px;
  }

  .booking-note strong {
    font-size: 16px;
  }

  .booking-note span {
    font-size: 13px;
    line-height: 1.35;
  }

  .booking-reference {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
  }

  .booking-reference img {
    width: 64px;
  }

  .booking-reference strong {
    font-size: 16px;
  }

  .booking-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    justify-content: stretch;
  }

  .booking-actions button {
    width: 100%;
    min-height: 44px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 14px;
    white-space: nowrap;
  }

  .booking-actions .booking-primary-action {
    grid-column: 1 / -1;
    order: -1;
  }

  .booking-actions [data-mark-no-show] {
    display: none;
  }

  .results-grid {
    gap: 18px;
    min-width: 0;
  }

  .master-card,
  .master-card.list {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 24px;
  }

  .master-media,
  .master-card.list .master-media {
    min-height: 0;
    aspect-ratio: 0.92;
  }

  .master-media img {
    min-height: 0;
    height: 100%;
  }

  .master-body {
    padding: 18px;
    gap: 12px;
  }

  .master-body h3 {
    font-size: 30px;
  }

  .price-line strong {
    font-size: 28px;
  }

  .meta-grid {
    gap: 6px;
  }

  .meta-grid span {
    max-width: 100%;
    min-height: 30px;
    font-size: 12px;
  }

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

  .card-actions button {
    min-height: 44px;
    padding-inline: 10px;
    font-size: 14px;
    white-space: nowrap;
  }

  .card-actions .card-book-button {
    grid-column: 1 / -1;
  }

  .card-actions .card-map-button,
  .card-actions .card-follow-button,
  .card-actions .card-compare-button {
    display: none;
  }

  .similar-offer-media {
    min-height: 210px;
  }

  .loyalty-summary {
    flex-direction: column;
  }

  .loyalty-tier {
    min-width: 0;
    place-items: start;
  }

  .visual-results {
    padding: 18px;
  }

  .visual-result-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .ai-match-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .ai-match-card > img {
    width: 96px;
    height: 116px;
  }

  .work-action-panel {
    grid-template-columns: 1fr 1fr;
  }

  .detail-sticky-bar {
    position: static;
    grid-template-columns: 1fr 1fr;
    margin: 0;
  }

  .detail-sticky-bar > div {
    grid-column: 1 / -1;
  }

  .master-mobile-cta {
    position: sticky;
    bottom: 8px;
    z-index: 5;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 8px;
    padding: 8px;
    margin: 4px 0 10px;
    border: 1px solid rgba(222, 211, 204, 0.82);
    border-radius: 18px;
    background: rgba(255, 253, 251, 0.94);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(18px);
  }

  .gallery-thumb-strip {
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    grid-template-columns: none;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 2px;
    scrollbar-width: none;
  }

  .gallery-thumb-strip::-webkit-scrollbar {
    display: none;
  }

  .gallery-thumb-strip button {
    flex: 0 0 76px;
    width: 76px;
  }

  .work-action-panel .primary-button {
    grid-column: 1 / -1;
  }

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

  .compare-empty {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-alert-actions {
    justify-content: flex-start;
  }

  .visual-thumb img {
    width: 92px;
    height: 106px;
  }

  .profile-id {
    align-items: start;
  }

  .profile-id img {
    width: 72px;
    height: 72px;
    border-radius: 20px;
  }

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

  .account-status-card,
  .auth-type-grid,
  .auth-form-grid {
    grid-template-columns: 1fr;
  }

  .account-badges {
    justify-content: flex-start;
  }

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

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

  .profile-row-actions {
    justify-content: flex-start;
  }

  .notification-row {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .promotion-summary,
  .promotion-card {
    grid-template-columns: 1fr;
  }

  .notification-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .notification-center-head,
  .delivery-log,
  .delivery-row {
    grid-template-columns: 1fr;
  }

  .notification-event-actions {
    justify-content: flex-start;
  }

  .salon-summary,
  .salon-columns,
  .salon-management-panel,
  .salon-action-form,
  .salon-profile-head,
  .salon-profile-form,
  .studio-profile-main,
  .studio-profile-form,
  .rental-summary,
  .rental-list,
  .ops-summary,
  .ops-columns,
  .moderation-summary,
  .moderation-case-row,
  .catalog-summary,
  .catalog-columns,
  .community-summary,
  .community-columns,
  .academy-summary,
  .academy-list,
  .crm-summary,
  .crm-client-list,
  .crm-client-grid {
    grid-template-columns: 1fr;
  }

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

  .salon-row-actions {
    justify-content: flex-start;
  }

  .service-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-row-actions {
    justify-content: flex-start;
  }

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

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

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

  .messages-shell {
    grid-template-columns: 1fr;
    min-height: calc(100dvh - 190px);
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 253, 251, 0.92);
  }

  .dialog-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(222, 211, 204, 0.72);
    background: rgba(255, 253, 251, 0.82);
    scrollbar-width: none;
  }

  .dialog-item {
    flex: 0 0 auto;
    width: 58px;
    min-height: 58px;
    grid-template-columns: 1fr;
    place-items: center;
    gap: 0;
    padding: 5px;
    border-radius: 18px;
  }

  .dialog-item.active {
    background: rgba(240, 223, 220, 0.86);
  }

  .dialog-item img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
  }

  .dialog-item span {
    display: none;
  }

  .dialog-item i {
    position: absolute;
    right: 7px;
    top: 7px;
    width: 9px;
    height: 9px;
    border: 2px solid var(--porcelain);
  }

  .conversation {
    min-height: 0;
    background: #fffdfb;
  }

  .conversation-head,
  .conversation-compose {
    padding: 10px 12px;
    background: rgba(255, 253, 251, 0.96);
  }

  .conversation-head {
    gap: 10px;
  }

  .conversation-master img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }

  .conversation-master strong {
    font-size: 15px;
  }

  .conversation-master span {
    max-width: 190px;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .conversation-head > .secondary-button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
  }

  .conversation-body {
    align-content: end;
    gap: 8px;
    padding: 14px 12px 16px;
    background:
      linear-gradient(180deg, rgba(247, 239, 236, 0.36), rgba(255, 253, 251, 0.96)),
      #fffdfb;
  }

  .message-bubble {
    max-width: 84%;
    padding: 10px 12px;
    border-radius: 18px;
  }

  .message-bubble p {
    font-size: 14px;
    line-height: 1.38;
  }

  .message-bubble span {
    font-size: 11px;
  }

  .message-bubble.client {
    border-bottom-right-radius: 5px;
  }

  .message-bubble.master {
    border-bottom-left-radius: 5px;
    background: #fff;
  }

  .system-message {
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 650;
  }

  .chat-attachments {
    gap: 7px;
  }

  .chat-mini-card,
  .chat-media-card {
    min-width: 132px;
    max-width: 160px;
    padding: 8px;
    border-radius: 14px;
  }

  .chat-media-card img {
    border-radius: 10px;
  }

  .chat-offer {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 8px;
    padding: 9px 10px;
    border-radius: 14px;
    box-shadow: none;
  }

  .chat-offer em {
    grid-column: 1 / -1;
    font-size: 12px;
  }

  .compose-row {
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 8px;
  }

  .compose-row textarea {
    min-height: 42px;
    padding: 10px 14px;
    font-size: 14px;
  }

  .compose-row .primary-button {
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    overflow: hidden;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
  }

  .compose-row .primary-button::before {
    content: "→";
    font-size: 20px;
    line-height: 1;
  }

  .chat-booking-action .wide-button {
    min-height: 40px;
    font-size: 14px;
  }

  .chat-attach-actions {
    display: none;
  }

  .chat-more-actions {
    justify-content: center;
    gap: 16px;
  }

  .chat-more-actions .text-button {
    min-height: 28px;
    font-size: 12px;
  }

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

  .studio-onboarding-card {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .studio-onboarding-head {
    padding: 22px 18px;
  }

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

  #adminRoles {
    grid-template-columns: 1fr;
  }

  .request-actions,
  .service-actions,
  .admin-actions {
    justify-content: flex-start;
  }

  .modal-card {
    inset: 8px;
    width: auto;
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
    transform: none;
    border-radius: 22px;
  }

  .auth-card {
    min-height: auto;
    align-content: start;
    padding: 28px 22px 32px;
  }

  .detail-content {
    padding: 24px;
  }

  .detail-media {
    min-height: 0;
    overflow: hidden;
    background: var(--milk);
  }

  .detail-media > img,
  .detail-hero-image {
    height: clamp(430px, 68vh, 560px);
    max-height: none;
    object-fit: cover;
  }
}

@media (max-width: 720px) {
  #view-search .search-layout {
    width: auto;
    max-width: none;
  }

  body[data-theme="dark"] #view-search .filters-panel {
    background:
      radial-gradient(circle at 20% 0%, rgba(226, 155, 170, 0.2), transparent 38%),
      linear-gradient(145deg, #211d1c, #141110);
  }

  body[data-theme="dark"] #view-search .results-toolbar,
  body[data-theme="dark"] #view-search .master-card,
  body[data-theme="dark"] #view-search .quick-filters button {
    border-color: var(--line);
    background: rgba(32, 26, 25, 0.96);
    color: var(--ink);
  }

  body[data-theme="dark"] #view-search .filters-panel .field-label select,
  body[data-theme="dark"] #view-search .price-presets button,
  body[data-theme="dark"] #view-search .toggle-stack label,
  body[data-theme="dark"] #view-search .toolbar-actions select {
    border-color: rgba(255, 246, 240, 0.14);
    background: rgba(255, 253, 251, 0.08);
    color: #fff;
  }

  body[data-theme="dark"] #view-search .toolbar-actions select,
  body[data-theme="dark"] #view-search .meta-grid span {
    background: rgba(47, 39, 37, 0.82);
  }
}
