:root {
  --surface-0: #f3f4f6;
  --surface-1: #ffffff;
  --surface-2: #f8f8f8;
  --text-1: #232327;
  --text-2: #666a73;
  --line: #e4e6ea;
  --accent: #e8d8c4;
  --accent-strong: #dcc5a8;
  --danger: #b02828;
  --shadow-soft: 0 10px 30px rgba(20, 21, 26, 0.07);
  --shadow-card: 0 6px 20px rgba(20, 21, 26, 0.05);
}

body[data-theme="dark"] {
  --surface-0: #111317;
  --surface-1: #1a1d23;
  --surface-2: #20242c;
  --text-1: #eceff4;
  --text-2: #aeb5c0;
  --line: #2e3440;
  --accent: #8fa4c3;
  --accent-strong: #778fb2;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 6px 20px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* ============================================================
   REEZLY MARKETPLACE
   ============================================================ */
.marketplace-page {
  --market-bg: #f8f9fb;
  --market-card: #fff;
  --market-line: #eef0f4;
  --market-text: #1f2937;
  --market-muted: #6b7280;
  --market-soft: #f8f5ef;
  --market-accent: #b48a78;
  --market-shadow: 0 10px 28px rgba(31,41,55,.06);
  margin: 0;
  min-height: 100vh;
  background: var(--market-bg);
  color: var(--market-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.marketplace-page * { box-sizing: border-box; }
.market-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(238,240,244,.9);
  background: rgba(248,249,251,.92);
  backdrop-filter: blur(14px);
}
.market-brand,
.market-nav-links,
.market-nav-links a,
.market-owner-actions,
.market-salon-bottom,
.market-salon-bottom div,
.market-service-tags,
.market-service-preview,
.market-card-head,
.market-support-flow,
.market-view-switch,
.market-mobile-nav {
  display: flex;
  align-items: center;
}
.market-brand {
  gap: 10px;
  color: var(--market-text);
  text-decoration: none;
}
.market-brand-mark,
.market-salon-logo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--market-accent);
  color: #fff;
  font-weight: 800;
}

.market-brand-mark img {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
}

.market-brand strong { display: block; font-size: 17px; letter-spacing: 0; }
.market-brand small { display: block; color: var(--market-muted); font-size: 12px; }
.market-menu-btn {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--market-line);
  border-radius: 8px;
  background: #fff;
  color: var(--market-text);
}
.market-nav-links {
  gap: 8px;
}
.market-nav-links a {
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--market-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
.market-nav-links a:hover,
.market-nav-links .market-nav-cta {
  background: #fff;
  color: var(--market-text);
}
.market-nav-links .market-nav-cta {
  border: 1px solid #fbcfe8;
  color: #be185d;
}
.market-hero,
.market-results-shell,
.market-client-panel,
.market-salon-owner-section,
.market-support-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.market-hero {
  padding: clamp(34px, 6vw, 72px) 0 24px;
}
.market-hero-copy {
  max-width: 760px;
}
.market-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: #be185d;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.market-hero h1,
.market-section-head h2,
.market-results-head h2,
.market-filter-panel h2,
.market-support-section h2 {
  margin: 8px 0 0;
  color: var(--market-text);
  letter-spacing: 0;
}
.market-hero h1 {
  max-width: 760px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: .98;
}
.market-hero p,
.market-section-head p,
.market-support-section p,
.market-salon-copy p,
.market-owner-grid p {
  color: var(--market-muted);
  line-height: 1.65;
}
.market-hero p {
  max-width: 680px;
  font-size: 17px;
}
.market-search-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 48px auto;
  gap: 10px;
  align-items: end;
  margin-top: 28px;
  padding: 12px;
  border: 1px solid var(--market-line);
  border-radius: 8px;
  background: var(--market-card);
  box-shadow: var(--market-shadow);
}
.market-search-card label,
.market-filter-row {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.market-search-card label > span,
.market-filter-row > span {
  color: var(--market-muted);
  font-size: 12px;
  font-weight: 800;
}

.market-search-card label {
  position: relative;
}

.market-search-card label > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.market-input {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--market-line);
  border-radius: 8px;
  background: #fff;
}
.market-input svg { width: 18px; height: 18px; color: var(--market-muted); }
.market-input input,
.market-filter-row select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--market-text);
  font: inherit;
}
.market-filter-row select {
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--market-line);
  border-radius: 8px;
  background: #fff;
}
.market-icon-action,
.market-search-submit,
.market-secondary-btn,
.market-favorite,
.market-chat-salon,
.market-view-switch button,
.market-chat-head button,
.market-chat-form button,
.market-mobile-nav button {
  border: 0;
  font: inherit;
  cursor: pointer;
}
.market-icon-action,
.market-search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 8px;
}
.market-icon-action {
  border: 1px solid var(--market-line);
  background: #fff;
  color: var(--market-muted);
}
.market-search-submit,
.market-book-link,
.market-primary-link {
  background: var(--market-accent);
  color: #fff;
}
.market-search-submit {
  padding: 0 20px;
  font-weight: 800;
}
.market-category-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 16px;
  padding-bottom: 4px;
}
.market-category-strip button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--market-line);
  border-radius: 8px;
  background: #fff;
  color: var(--market-text);
  font-weight: 800;
}
.market-results-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px 0 34px;
}
.market-filter-panel,
.market-results-main,
.market-client-card,
.market-owner-grid article,
.market-support-section {
  border: 1px solid var(--market-line);
  border-radius: 8px;
  background: var(--market-card);
  box-shadow: var(--market-shadow);
}
.market-filter-panel {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 18px;
  padding: 18px;
}
.market-check {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  color: var(--market-text);
  font-weight: 700;
}
.market-check input { accent-color: var(--market-accent); }
.market-secondary-btn {
  min-height: 42px;
  border: 1px solid var(--market-line);
  border-radius: 8px;
  background: #fff;
  color: var(--market-text);
  font-weight: 800;
}
.market-results-main {
  min-width: 0;
  padding: 18px;
}
.market-results-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}
.market-results-head p { margin: 6px 0 0; color: var(--market-muted); }
.market-view-switch {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--market-line);
  border-radius: 8px;
  background: #f9fafb;
}
.market-view-switch button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  background: transparent;
  color: var(--market-muted);
  font-weight: 800;
}
.market-view-switch button.is-active {
  background: #fff;
  color: #be185d;
  box-shadow: 0 1px 4px rgba(31,41,55,.08);
}
.market-alert {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #fbcfe8;
  border-radius: 8px;
  background: #fdf2f8;
  color: #9d174d;
  font-weight: 700;
}
.market-salon-grid {
  display: grid;
  gap: 12px;
}
.market-salon-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--market-line);
  border-radius: 8px;
  background: #fff;
}
.market-salon-top {
  display: grid;
  gap: 8px;
  justify-items: center;
  align-content: start;
}
.market-salon-logo {
  width: 48px;
  height: 48px;
  background: var(--salon-accent, var(--market-accent));
}
.market-favorite {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--market-line);
  border-radius: 8px;
  background: #fff;
  color: var(--market-muted);
}
.market-favorite.is-active {
  border-color: #fbcfe8;
  background: #fdf2f8;
  color: var(--market-accent);
}
.market-salon-copy {
  display: grid;
  gap: 10px;
}
.market-salon-copy h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}
.market-salon-copy p { margin: 4px 0 0; }
.market-salon-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.market-salon-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  background: #f9fafb;
  color: var(--market-muted);
  font-size: 12px;
  font-weight: 700;
}
.market-salon-meta svg,
.market-card-head svg,
.market-owner-grid svg {
  width: 16px;
  height: 16px;
}
.market-service-tags,
.market-service-preview,
.market-salon-bottom {
  grid-column: 2;
}
.market-service-tags,
.market-service-preview {
  gap: 6px;
  flex-wrap: wrap;
}
.market-service-tags span,
.market-service-preview small {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 8px;
  background: #fdf2f8;
  color: #be185d;
  font-size: 12px;
  font-weight: 800;
}
.market-service-preview small {
  background: #f9fafb;
  color: var(--market-muted);
}
.market-salon-bottom {
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}
.market-salon-bottom div { gap: 8px; }
.market-salon-bottom a,
.market-chat-salon,
.market-primary-link,
.market-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}
.market-salon-bottom a,
.market-chat-salon,
.market-secondary-link {
  border: 1px solid var(--market-line);
  background: #fff;
  color: var(--market-text);
}
.market-salon-bottom .market-book-link,
.market-primary-link {
  border-color: var(--market-accent);
  color: #fff;
}
.market-map-preview {
  min-height: 520px;
}
.market-map-canvas {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--market-line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(229,231,235,.7) 1px, transparent 1px),
    linear-gradient(180deg, rgba(229,231,235,.7) 1px, transparent 1px),
    #fff;
  background-size: 42px 42px;
}
.market-map-pin {
  position: absolute;
  display: inline-grid;
  gap: 4px;
  justify-items: center;
  transform: translate(-50%, -50%);
  border: 0;
  background: transparent;
  color: var(--market-text);
  cursor: pointer;
}
.market-map-pin span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--salon-accent, var(--market-accent));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(31,41,55,.16);
}
.market-map-pin strong {
  max-width: 130px;
  padding: 4px 7px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(31,41,55,.1);
  font-size: 11px;
}
.market-client-panel,
.market-salon-owner-section,
.market-support-section {
  padding: 34px 0;
}
.market-section-head {
  max-width: 760px;
  margin-bottom: 18px;
}
.market-section-head h2 {
  font-size: clamp(26px, 3vw, 40px);
}
.market-client-grid,
.market-owner-grid {
  display: grid;
  gap: 12px;
}
.market-client-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.market-client-card,
.market-owner-grid article {
  padding: 18px;
}
.market-client-card-wide {
  grid-column: auto;
}
.market-card-head {
  gap: 9px;
  margin-bottom: 12px;
}
.market-card-head i,
.market-card-head svg,
.market-owner-grid svg {
  color: var(--market-accent);
}
.market-mini-list {
  display: grid;
  gap: 8px;
}
.market-mini-row {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--market-line);
  border-radius: 8px;
  background: #fff;
}
.market-mini-row span,
.market-mini-row small,
.market-empty-small,
.market-empty {
  color: var(--market-muted);
}
.market-mini-row span {
  font-size: 12px;
  font-weight: 800;
}
.market-mini-row small {
  font-size: 12px;
}
.market-owner-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.market-owner-grid h3 {
  margin: 12px 0 6px;
  letter-spacing: 0;
}
.market-owner-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.market-support-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 86px;
  padding: 22px;
}
.market-support-flow {
  gap: 10px;
  flex-wrap: wrap;
}
.market-support-flow svg {
  width: 16px;
  height: 16px;
  color: var(--market-muted);
}
.market-support-flow-small {
  gap: 8px;
}
.market-support-flow-small span {
  min-height: 34px;
  padding: 0 10px;
}
.market-support-flow-small svg {
  width: 14px;
  height: 14px;
}
.market-support-flow span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--market-line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}
.market-support-flow-small span {
  min-height: 34px;
  padding: 0 10px;
}
.market-chat-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 54px;
  height: 50px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--market-accent);
  color: #fff;
  box-shadow: 0 14px 32px rgba(236,72,153,.3);
  cursor: pointer;
  font-weight: 800;
}
.market-chat-fab svg {
  width: 21px;
  height: 21px;
}
.market-chat-fab span {
  font-size: 14px;
}
.market-chat-panel {
  position: fixed;
  right: 22px;
  bottom: 82px;
  z-index: 120;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(350px, calc(100vw - 32px));
  height: min(360px, calc(100dvh - 108px));
  overflow: hidden;
  border: 1px solid var(--market-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(31,41,55,.2);
}
.market-chat-panel[hidden] { display: none; }
.market-chat-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--market-line);
}
.market-chat-head span {
  display: block;
  margin-top: 2px;
  color: var(--market-muted);
  font-size: 12px;
}
.market-chat-head button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f9fafb;
  color: var(--market-text);
}
.market-chat-messages {
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: auto;
  padding: 14px;
  background: #fafafa;
}
.market-chat-bubble {
  max-width: 86%;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
}
.market-chat-bubble.is-user {
  justify-self: end;
  background: var(--market-accent);
  color: #fff;
}
.market-chat-bubble.is-system,
.market-chat-empty {
  justify-self: start;
  background: #fff;
  color: var(--market-text);
  border: 1px solid var(--market-line);
}
.market-chat-empty {
  padding: 12px;
  border-radius: 8px;
  color: var(--market-muted);
}
.market-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--market-line);
}
.market-chat-form input {
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--market-line);
  border-radius: 8px;
  outline: 0;
  font: inherit;
}
.market-chat-form button {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--market-accent);
  color: #fff;
  width: 42px;
  height: 42px;
}
.market-chat-form button svg {
  width: 14px;
  height: 14px;
}
.market-mobile-nav {
  display: none;
}
.market-info-page main {
  padding-bottom: 74px;
}
.market-info-hero,
.market-info-grid,
.market-help-grid,
.market-info-band {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.market-info-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: clamp(40px, 7vw, 86px) 0 26px;
}
.market-info-hero h1 {
  max-width: 820px;
  margin: 8px 0 0;
  color: var(--market-text);
  font-size: clamp(38px, 5.5vw, 68px);
  line-height: 1;
  letter-spacing: 0;
}
.market-info-hero p {
  max-width: 720px;
  color: var(--market-muted);
  font-size: 17px;
  line-height: 1.65;
}
.market-info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.market-info-actions button {
  border: 0;
  font: inherit;
  cursor: pointer;
}
.market-info-grid,
.market-help-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.market-help-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.market-info-grid article,
.market-help-grid article,
.market-info-band {
  border: 1px solid var(--market-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--market-shadow);
}
.market-info-grid article,
.market-help-grid article {
  padding: 18px;
}
.market-info-grid svg,
.market-help-grid svg {
  width: 22px;
  height: 22px;
  color: var(--market-accent);
}
.market-info-grid h2,
.market-help-grid h2,
.market-info-band h2 {
  margin: 12px 0 6px;
  color: var(--market-text);
  font-size: 20px;
  letter-spacing: 0;
}
.market-info-grid p,
.market-help-grid p {
  margin: 0;
  color: var(--market-muted);
  line-height: 1.6;
}
.market-info-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  padding: 22px;
}
.market-info-band h2 {
  max-width: 760px;
  margin-top: 8px;
  font-size: clamp(24px, 3vw, 36px);
}
@media (max-width: 1180px) {
  .market-results-shell {
    grid-template-columns: 230px minmax(0, 1fr);
  }
  .market-owner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .market-nav {
    min-height: 66px;
  }
  .market-menu-btn {
    display: grid;
  }
  .market-nav-links {
    position: fixed;
    top: 66px;
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--market-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--market-shadow);
  }
  .market-nav.is-open .market-nav-links {
    display: flex;
  }
  .market-nav-links a {
    justify-content: flex-start;
  }
  .market-search-card {
    grid-template-columns: minmax(0, 1fr) 48px;
  }
  .market-search-card label {
    grid-column: 1 / -1;
  }
  .market-search-submit {
    grid-column: 1 / -1;
  }
  .market-results-shell {
    grid-template-columns: 1fr;
  }
  .market-filter-panel {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .market-filter-panel > div,
  .market-secondary-btn {
    grid-column: 1 / -1;
  }
  .market-client-grid {
    grid-template-columns: 1fr;
  }
  .market-support-section,
  .market-info-hero,
  .market-info-band {
    grid-template-columns: 1fr;
  }
  .market-info-actions {
    justify-content: flex-start;
  }
  .market-info-grid,
  .market-help-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .marketplace-page {
    padding-bottom: 76px;
  }
  .market-nav {
    padding: 10px 14px;
  }
  .market-hero,
  .market-results-shell,
  .market-client-panel,
  .market-salon-owner-section,
  .market-support-section,
  .market-info-hero,
  .market-info-grid,
  .market-help-grid,
  .market-info-band {
    width: min(100% - 20px, 1180px);
  }
  .market-hero {
    padding-top: 28px;
  }
  .market-hero h1 {
    font-size: 38px;
  }
  .market-search-card,
  .market-filter-panel,
  .market-results-main,
  .market-client-card,
  .market-owner-grid article,
  .market-support-section {
    border-radius: 8px;
  }
  .market-filter-panel {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .market-filter-panel > div,
  .market-secondary-btn {
    grid-column: auto;
  }
  .market-results-head {
    display: grid;
  }
  .market-view-switch {
    width: 100%;
  }
  .market-view-switch button {
    flex: 1;
  }
  .market-salon-card {
    grid-template-columns: 1fr;
  }
  .market-salon-top {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }
  .market-service-tags,
  .market-service-preview,
  .market-salon-bottom {
    grid-column: auto;
  }
  .market-salon-bottom {
    display: grid;
  }
  .market-salon-bottom div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .market-owner-grid {
    grid-template-columns: 1fr;
  }
  .market-chat-fab {
    right: 16px;
    bottom: 84px;
    height: 48px;
    padding: 0 14px;
  }
  .market-chat-panel {
    right: 10px;
    bottom: 144px;
    left: 10px;
    width: auto;
    height: min(360px, calc(100dvh - 168px));
    border-radius: 8px;
  }
    .market-info-page .market-chat-fab {
    bottom: 18px;
  }
  .market-info-page .market-chat-panel {
    bottom: 78px;
    height: min(360px, calc(100dvh - 102px));
  }
  .market-mobile-nav {
    display: flex;
    position: fixed;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 110;
    justify-content: space-around;
    min-height: 62px;
    padding: 6px;
    border: 1px solid var(--market-line);
    border-radius: 8px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 12px 32px rgba(31,41,55,.16);
    backdrop-filter: blur(14px);
  }
  .market-mobile-nav a,
  .market-mobile-nav button {
    display: grid;
    place-items: center;
    gap: 2px;
    min-width: 58px;
    min-height: 48px;
    border-radius: 8px;
    background: transparent;
    color: var(--market-muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
  }
  .market-mobile-nav svg {
    width: 20px;
    height: 20px;
  }
  .market-info-hero {
    padding-top: 30px;
  }
  .market-info-hero h1 {
    font-size: 38px;
  }
  .market-info-grid,
  .market-help-grid {
    grid-template-columns: 1fr;
  }
  .market-info-band {
    padding: 18px;
  }
}

body,
body *:not(input):not(textarea):not([contenteditable="true"]) {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input,
textarea,
[contenteditable="true"] {
  -webkit-touch-callout: default;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

body {
  font-family: "Segoe UI", "SF Pro Text", Tahoma, sans-serif;
  color: var(--text-1);
  background:
    radial-gradient(circle at 0% 0%, #fafafa 0%, #f0f1f3 45%, #e9ebee 100%);
}

body[data-theme="dark"] {
  background: radial-gradient(circle at 0% 0%, #1a1d24 0%, #14171d 50%, #101318 100%);
}

a { color: inherit; }

h1, h2, h3, p { margin: 0; }
div#overviewContent {
    display: flex;
    gap: 20px;
    flex-direction: column;
}

#overviewContent[hidden],
#tabsContent[hidden] {
  display: none !important;
}
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px;
}

.card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 14px;
}

.muted { color: var(--text-2); }
.error { color: var(--danger); }
.hidden { display: none !important; }

[hidden] {
  display: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 9px;
  border: 1px solid transparent;
  padding: 9px 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: 160ms ease;
  background: var(--accent);
  color: #2c2d32;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(44, 45, 50, 0.12);
}

.btn-dark {
  background: #22242a;
  color: #fff;
}

.btn.ghost {
  background: #f6f7f9;
  border-color: var(--line);
}

input, select, button { font: inherit; }

input, select {
  width: 100%;
  border: 1px solid #d7dbe1;
  border-radius: 9px;
  padding: 9px 11px;
  background: #fff;
  color: var(--text-1);
  transition: 140ms ease;
}

input:focus, select:focus {
  outline: none;
  border-color: #9ea6b2;
  box-shadow: 0 0 0 3px rgba(170, 178, 191, 0.18);
}

input.invalid, select.invalid {
  border-color: var(--danger);
  background: #fff8f8;
}

pre {
  margin: 0;
  background: #f7f8fa;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Landing / auth */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
}

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

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero {
  margin-top: 16px;
  padding: 28px;
  background:
    radial-gradient(circle at 90% 10%, rgba(232, 216, 196, 0.45), transparent 45%),
    var(--surface-1);
}

.chip {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  background: #fff;
}

.hero h2 {
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.hero-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

.grid-3 .card {
  min-height: 140px;
}

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  padding: 24px;
}

.auth-card form {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

/* Dashboard layout */
.panel-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 10px;
  padding: 10px;
}

.sidebar {
  position: sticky;
  top: 10px;
  height: calc(100vh - 20px);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  align-content: start;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

.brand-dot {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(145deg, #1d1f25, #444b57);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.tiny {
  margin-top: 2px;
  font-size: 12px;
}

.side-label {
  margin: 0;
  font-size: 11px;
  color: #8c9099;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.side-nav {
  display: grid;
  gap: 7px;
}

.side-link {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #f7f8fa;
  color: #2f3138;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: 140ms ease;
}

.side-link:hover {
  background: #f0f3f7;
}

.side-link.active {
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  border-color: #d8c3a7;
}

.side-footer {
  display: grid;
  gap: 7px;
}

.panel-main {
  display: grid;
  gap: 12px;
  align-content: start;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}

.panel-title {
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.theme-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #3d4048;
}

.theme-toggle {
  min-width: 110px;
}

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

.stat-card {
  padding: 10px 12px;
  background:
    linear-gradient(180deg, #fff, #fafafa);
}

.stat-card h2 {
  margin-top: 4px;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: -0.02em;
}

.tab-pane {
  display: none;
  padding: 12px;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 220ms ease;
}

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

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

.pane-head h3 {
  font-size: 17px;
}

.inline-form {
  display: grid;
  gap: 6px;
  margin: 10px 0 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: auto;
  background: #fff;
}

.data-table {
  width: 100%;
  min-width: 700px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.data-table th,
.data-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #eff1f4;
  text-align: left;
}

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7f9fb;
  color: #4f5360;
  font-weight: 700;
}

body[data-theme="dark"] .btn.ghost {
  background: #222833;
  border-color: #313946;
  color: #dce2ec;
}

body[data-theme="dark"] input,
body[data-theme="dark"] select {
  background: #151920;
  border-color: #313744;
  color: #eef2f7;
}

body[data-theme="dark"] .hero,
body[data-theme="dark"] .stat-card,
body[data-theme="dark"] .sidebar {
  background: linear-gradient(180deg, #1c2027 0%, #171b22 100%);
}

body[data-theme="dark"] .side-link {
  background: #222833;
  border-color: #313946;
  color: #e8ecf3;
}

body[data-theme="dark"] .side-link:hover {
  background: #2a3240;
}

body[data-theme="dark"] .data-table thead th {
  background: #202631;
  color: #cad2df;
}

body[data-theme="dark"] .data-table tbody tr:nth-child(2n) td {
  background: #1c212a;
}

body[data-theme="dark"] .data-table tbody tr:hover td {
  background: #242b36;
}

body[data-theme="dark"] .badge {
  background: #2c3442;
  color: #dbe2ee;
}

.data-table tbody tr:hover td {
  background: #f8fafc;
}

.data-table tbody tr:nth-child(2n) td {
  background: #fcfcfd;
}

.badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef1f5;
  color: #383b43;
  font-size: 11px;
  font-weight: 700;
}

#dashboardMessage {
  margin-top: -2px;
  padding-left: 4px;
}

.mobile-menu-btn,
.mobile-backdrop {
  display: none;
}

/* Responsive */
@media (max-width: 1080px) {
  .panel-shell {
    grid-template-columns: 1fr;
    padding: 10px;
  }

.mobile-menu-btn {
    position: fixed;
    left: 10px;
    bottom: 10px;
    z-index: 60;
    display: inline-flex;
    border: 0;
    border-radius: 999px;
    background: #23242a;
    color: #fff;
    padding: 10px 14px;
    box-shadow: var(--shadow-soft);
    font-weight: 700;
  }

  .mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(17, 18, 22, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: 150ms ease;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 50;
    width: min(86vw, 320px);
    height: 100vh;
    border-radius: 0 16px 16px 0;
    transform: translateX(-104%);
    transition: transform 170ms ease;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  body.sidebar-open .mobile-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .toolbar {
    margin-top: 2px;
  }
}

@media (max-width: 860px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .hero {
    padding: 20px;
  }

  .toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 560px) {
  .container {
    padding: 12px;
  }

  .card,
  .tab-pane,
  .toolbar,
  .auth-card {
    padding: 12px;
  }

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

  .hero-actions {
    flex-direction: column;
  }
}

/* === Dashboard Premium (scoped) === */
.dashboard-page {
  --bg: #f7f4ef;
  --bg-soft: #f3eee8;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: #ffffff;
  --border: rgba(53, 41, 34, 0.08);
  --text: #2f2f2f;
  --muted: #7c766f;
  --accent: #dcc7b4;
  --accent-strong: #b88f6f;
  --accent-dark: #5a4b42;
  --success: #5e8b6c;
  --warning: #c79557;
  --danger: #c86b6b;
  --shadow: 0 20px 50px rgba(68, 50, 39, 0.08);
  --shadow-soft: 0 10px 25px rgba(68, 50, 39, 0.05);
}

.dashboard-page {
  background:
    radial-gradient(circle at top left, rgba(220, 199, 180, 0.38), transparent 26%),
    radial-gradient(circle at bottom right, rgba(184, 143, 111, 0.13), transparent 20%),
    var(--bg);
  color: var(--text);
}

.dashboard-page .layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  min-height: 100vh;
  gap: 24px;
  padding: 24px;
}

.dashboard-page .sidebar {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
  border-radius: 30px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
}

.dashboard-page .brand { display: flex; align-items: center; gap: 14px; padding: 8px 10px; }
.dashboard-page .brand-icon {
  width: 50px; height: 50px; border-radius: 18px;
  background: linear-gradient(135deg, #ead9c8, #b88f6f);
  display: grid; place-items: center; color: #fff; font-size: 20px; font-weight: 700;
  box-shadow: 0 10px 25px rgba(184, 143, 111, 0.28);
}
.dashboard-page .brand h1 { margin: 0; font-size: 20px; }
.dashboard-page .brand p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.dashboard-page .menu-group-title,
.dashboard-page .eyebrow,
.dashboard-page .section-label,
.dashboard-page .side-label {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

.dashboard-page .menu { display: grid; gap: 8px; }
.dashboard-page .menu-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 14px; border-radius: 16px; color: var(--accent-dark);
  transition: 0.2s ease;
}
.dashboard-page .menu-item:hover,
.dashboard-page .menu-item.active { background: var(--panel-strong); box-shadow: var(--shadow-soft); }

.dashboard-page .sidebar-card {
  margin-top: auto;
  background: linear-gradient(180deg, rgba(220, 199, 180, 0.32), rgba(255,255,255,0.95));
  border: 1px solid rgba(184, 143, 111, 0.16);
  border-radius: 24px;
  padding: 18px;
}
.dashboard-page .sidebar-card h3 { margin: 0 0 10px; font-size: 20px; }
.dashboard-page .sidebar-card p { margin: 0 0 16px; color: var(--muted); line-height: 1.5; font-size: 14px; }
.dashboard-page .side-footer { display: grid; gap: 10px; }

.dashboard-page .btn {
  border-radius: 14px;
  padding: 12px 16px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}
.dashboard-page .btn-primary {
  background: linear-gradient(135deg, #cfb29a, #b88f6f);
  color: #fff;
  box-shadow: 0 10px 25px rgba(184, 143, 111, 0.22);
}
.dashboard-page .btn-secondary {
  background: rgba(255,255,255,0.78);
  color: var(--text);
  border: 1px solid var(--border);
}

.dashboard-page .main { display: grid; gap: 20px; }
.dashboard-page .topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 8px 4px;
}
.dashboard-page .topbar h2 { margin: 0; font-size: 34px; line-height: 1.05; }
.dashboard-page .topbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dashboard-page .search {
  min-width: 300px; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.55);
  border-radius: 18px; box-shadow: var(--shadow-soft); padding: 0 14px;
}
.dashboard-page .search input {
  border: 0; outline: none; background: transparent; width: 100%; padding: 14px 0;
}

.dashboard-page .stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.dashboard-page .stats .card,
.dashboard-page .panel {
  background: var(--panel);
  backdrop-filter: blur(14px);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: var(--shadow);
}
.dashboard-page .stats .card {
  padding: 20px; display: flex; align-items: center; gap: 16px;
}
.dashboard-page .icon-box {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  font-size: 24px; background: linear-gradient(135deg, rgba(220,199,180,0.45), rgba(255,255,255,0.92));
}
.dashboard-page .card-title { margin: 0; color: var(--muted); font-size: 14px; }
.dashboard-page .card-value { margin: 6px 0 8px; font-size: 30px; font-weight: 700; }
.dashboard-page .card-note { margin: 0; font-size: 13px; color: var(--success); }

.dashboard-page .grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
.dashboard-page .left-col,
.dashboard-page .right-col { display: grid; gap: 16px; }
.dashboard-page .panel { padding: 22px; }
.dashboard-page .panel-header {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px;
}
.dashboard-page .panel-header h3 { margin: 0; font-size: 22px; }
.dashboard-page .panel-header p { margin: 0 0 6px; color: var(--muted); font-size: 13px; }

.dashboard-page .tab-pane { display: none; }
.dashboard-page .tab-pane.active { display: block; }
.dashboard-page .inline-form { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin-bottom: 12px; }
.dashboard-page .inline-form .btn { grid-column: span 2; }

.dashboard-page .table-wrap { overflow: auto; border: 1px solid rgba(53,41,34,0.06); border-radius: 16px; }
.dashboard-page .data-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14px; }
.dashboard-page .data-table th,
.dashboard-page .data-table td { padding: 10px 12px; border-bottom: 1px solid rgba(53,41,34,0.06); text-align: left; }
.dashboard-page .data-table th { background: rgba(255,255,255,0.85); position: sticky; top: 0; }
.dashboard-page .badge { border-radius: 999px; background: rgba(220, 199, 180, 0.32); padding: 5px 9px; font-size: 12px; }
.dashboard-page .service-list { display: grid; gap: 10px; }
.dashboard-page .service-row { display: flex; justify-content: space-between; gap: 10px; }
.dashboard-page .footer-note { text-align: center; color: var(--muted); font-size: 13px; }

.dashboard-page .mobile-menu-btn,
.dashboard-page .mobile-backdrop { display: none; }

@media (max-width: 1280px) {
  .dashboard-page .stats { grid-template-columns: repeat(2, 1fr); }
  .dashboard-page .grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .dashboard-page .layout { grid-template-columns: 1fr; padding: 14px; gap: 14px; }
  .dashboard-page .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 50;
    width: min(86vw, 320px); height: 100vh; border-radius: 0 20px 20px 0;
    transform: translateX(-104%); transition: transform 170ms ease;
  }
  .dashboard-page .mobile-menu-btn {
    position: fixed; left: 12px; bottom: 12px; z-index: 60; display: inline-flex;
    border: 0; border-radius: 999px; background: #23242a; color: #fff; padding: 11px 16px;
  }
  .dashboard-page .mobile-backdrop {
    position: fixed; inset: 0; z-index: 40; background: rgba(17,18,22,0.48);
    opacity: 0; pointer-events: none; transition: 150ms ease;
  }
  .dashboard-page.sidebar-open #sidebar { transform: translateX(0); }
  .dashboard-page.sidebar-open .mobile-backdrop { opacity: 1; pointer-events: auto; }
  .dashboard-page .topbar { flex-direction: column; align-items: stretch; }
  .dashboard-page .search { min-width: 100%; }
}

@media (max-width: 700px) {
  .dashboard-page .stats { grid-template-columns: 1fr; }
  .dashboard-page .inline-form { grid-template-columns: 1fr; }
  .dashboard-page .inline-form .btn { grid-column: span 1; }
  .dashboard-page .topbar h2 { font-size: 28px; }
  .dashboard-page .panel { padding: 16px; }
}

/* === Beauty Portal Refresh === */
.auth-page,
.dashboard-page {
  --portal-bg-1: #fff8fa;
  --portal-bg-2: #f7ecef;
  --portal-surface: rgba(255, 255, 255, 0.82);
  --portal-surface-strong: #ffffff;
  --portal-soft: rgba(252, 246, 248, 0.95);
  --portal-text: #34262d;
  --portal-muted: #7b6770;
  --portal-line: rgba(82, 50, 61, 0.09);
  --portal-line-strong: rgba(82, 50, 61, 0.14);
  --portal-accent: #de8aa0;
  --portal-accent-strong: #b8647f;
  --portal-accent-soft: rgba(222, 138, 160, 0.16);
  --portal-warm: rgba(236, 194, 181, 0.15);
  --portal-shadow-xl: 0 30px 80px rgba(79, 45, 57, 0.16);
  --portal-shadow-lg: 0 18px 45px rgba(79, 45, 57, 0.11);
  --portal-shadow-md: 0 12px 24px rgba(79, 45, 57, 0.08);
  font-family: "Inter", sans-serif;
  color: var(--portal-text);
  background:
    radial-gradient(circle at 0% 0%, rgba(222, 138, 160, 0.2), transparent 25%),
    radial-gradient(circle at 100% 0%, rgba(236, 194, 181, 0.16), transparent 22%),
    linear-gradient(180deg, var(--portal-bg-1) 0%, #fcf3f6 38%, var(--portal-bg-2) 100%);
}

.auth-page::before,
.auth-page::after,
.dashboard-page::before,
.dashboard-page::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.auth-page::before,
.dashboard-page::before {
  width: 280px;
  height: 280px;
  top: 90px;
  left: -80px;
  background: rgba(222, 138, 160, 0.14);
}

.auth-page::after,
.dashboard-page::after {
  width: 320px;
  height: 320px;
  right: -100px;
  bottom: 80px;
  background: rgba(236, 194, 181, 0.14);
}

.auth-page a,
.dashboard-page a {
  color: inherit;
}

.portal-header {
  position: sticky;
  top: 0;
  z-index: 35;
  backdrop-filter: blur(16px);
}

.portal-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 248, 250, 0.92), rgba(255, 248, 250, 0.56));
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  z-index: -1;
}

.portal-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding-top: 20px;
  padding-bottom: 12px;
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.64);
  box-shadow: 0 10px 25px rgba(79, 45, 57, 0.08);
  text-decoration: none;
}

.portal-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #cc6e8a 0%, #e8a5b8 55%, #f8dfe7 100%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 14px 26px rgba(204, 110, 138, 0.26);
}

.portal-brand-mark img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

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

.portal-brand-copy strong {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.portal-brand-copy span {
  font-size: 0.82rem;
  color: var(--portal-muted);
}

.portal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.portal-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(82, 50, 61, 0.07);
  color: var(--portal-muted);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: transform 180ms ease, color 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  box-shadow: 0 8px 18px rgba(79, 45, 57, 0.05);
}

.portal-nav a:hover {
  transform: translateY(-1px);
  color: var(--portal-text);
  border-color: rgba(222, 138, 160, 0.24);
  box-shadow: 0 12px 24px rgba(79, 45, 57, 0.08);
}

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

.portal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
  cursor: pointer;
}

.portal-button:hover {
  transform: translateY(-2px);
}

.portal-button-primary {
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--portal-accent) 0%, #efb5c4 100%);
  color: #4b2733;
  box-shadow: 0 16px 28px rgba(222, 138, 160, 0.24);
}

.portal-button-primary:hover {
  box-shadow: 0 20px 30px rgba(222, 138, 160, 0.3);
}

.portal-button-secondary {
  border: 1px solid rgba(82, 50, 61, 0.08);
  background: rgba(255, 255, 255, 0.68);
  color: var(--portal-text);
  box-shadow: 0 12px 22px rgba(79, 45, 57, 0.05);
}

.portal-button-secondary:hover {
  border-color: rgba(82, 50, 61, 0.14);
  box-shadow: 0 16px 28px rgba(79, 45, 57, 0.08);
}

.auth-page {
  min-height: 100vh;
}

.auth-shell {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 116px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 24px;
  align-items: center;
  padding-top: 26px;
  padding-bottom: 40px;
}

.auth-spotlight,
.auth-card-shell {
  background: var(--portal-surface);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 34px;
  box-shadow: var(--portal-shadow-lg);
  backdrop-filter: blur(18px);
}

.auth-spotlight {
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  gap: 18px;
}

.auth-badge,
.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(82, 50, 61, 0.08);
  color: var(--portal-accent-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.auth-spotlight h1,
.auth-card-shell h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.auth-spotlight h1 {
  font-size: clamp(2.3rem, 5vw, 4.3rem);
}

.auth-spotlight p,
.auth-card-shell .muted,
.auth-list li,
.auth-links p {
  color: var(--portal-muted);
  line-height: 1.75;
}

.auth-info-card {
  padding: 20px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(250, 244, 246, 0.92));
  border: 1px solid rgba(82, 50, 61, 0.06);
  box-shadow: var(--portal-shadow-md);
}

.auth-info-card strong {
  display: block;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}

.auth-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.auth-card-shell {
  padding: clamp(24px, 4vw, 34px);
}

.auth-form {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

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

.auth-field span {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--portal-text);
}

.auth-plan-select {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.auth-plan-select legend {
  margin-bottom: 2px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--portal-text);
}

.auth-plan-option {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(82, 50, 61, 0.1);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.auth-plan-option:has(input:checked) {
  border-color: rgba(222, 138, 160, 0.44);
  background: var(--portal-accent-soft);
}

.auth-plan-option input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--portal-accent);
  box-shadow: none;
}

.auth-plan-option strong,
.auth-plan-option small {
  display: block;
}

.auth-plan-option strong {
  margin-bottom: 4px;
  color: var(--portal-text);
}

.auth-plan-option small {
  color: var(--portal-muted);
  line-height: 1.5;
}

.auth-page input {
  width: 100%;
  border: 1px solid rgba(82, 50, 61, 0.1);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--portal-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.auth-page .auth-plan-option input[type="radio"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  border-radius: 999px;
  accent-color: var(--portal-accent);
  box-shadow: none;
}

.auth-page input:focus {
  outline: none;
  border-color: rgba(222, 138, 160, 0.38);
  box-shadow: 0 0 0 4px rgba(222, 138, 160, 0.14);
}

.auth-page input.invalid {
  border-color: #c86b82;
  background: #fff6f8;
}

.auth-page textarea,
.admin-page textarea,
.admin-page select,
.admin-page input {
  width: 100%;
  border: 1px solid rgba(82, 50, 61, 0.1);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--portal-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.auth-page textarea:focus,
.admin-page textarea:focus,
.admin-page select:focus,
.admin-page input:focus {
  outline: none;
  border-color: rgba(222, 138, 160, 0.38);
  box-shadow: 0 0 0 4px rgba(222, 138, 160, 0.14);
}

.auth-page textarea {
  min-height: 140px;
  resize: vertical;
}

.auth-submit {
  width: 100%;
  margin-top: 6px;
  border: 0;
}

.auth-message {
  min-height: 24px;
  margin: 14px 0 0;
}

.auth-links {
  margin-top: 12px;
  display: grid;
  gap: 6px;
}

.auth-links a {
  color: var(--portal-accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.admin-page {
  min-height: 100vh;
  padding-bottom: 42px;
}

.admin-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  padding-top: 26px;
  padding-bottom: 40px;
}

.admin-overview-card,
.admin-summary-card,
.admin-list-card,
.admin-detail-card {
  background: var(--portal-surface);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--portal-shadow-lg);
  backdrop-filter: blur(18px);
}

.admin-overview-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: 36px;
}

.admin-overview-copy {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.admin-overview-copy h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.admin-overview-copy p {
  color: var(--portal-muted);
  line-height: 1.75;
}

.admin-overview-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

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

.admin-summary-card {
  padding: 20px;
  border-radius: 26px;
  display: grid;
  gap: 10px;
}

.admin-summary-card span {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--portal-muted);
}

.admin-summary-card strong {
  font-size: clamp(1.7rem, 2vw, 2.4rem);
  letter-spacing: -0.06em;
}

.admin-summary-card small {
  color: var(--portal-accent-strong);
  line-height: 1.6;
}

.admin-workspace {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: start;
}

.admin-list-card,
.admin-detail-card {
  border-radius: 34px;
  padding: clamp(22px, 3vw, 30px);
  display: grid;
  gap: 18px;
}

.admin-toolbar {
  display: grid;
  gap: 16px;
}

.admin-toolbar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.admin-toolbar-head h2,
.admin-detail-head h2 {
  margin: 0;
  letter-spacing: -0.05em;
}

.admin-toolbar-head p,
.admin-detail-head p,
.admin-hint,
.admin-helper,
.admin-salon-item p,
.admin-salon-item small,
.admin-meta-card small,
.admin-empty,
.admin-message-inline {
  color: var(--portal-muted);
}

.admin-toolbar-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.8fr);
  gap: 12px;
}

.admin-salon-list {
  display: grid;
  gap: 12px;
  max-height: 760px;
  overflow: auto;
  padding-right: 4px;
}

.admin-salon-item {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(82, 50, 61, 0.08);
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--portal-shadow-md);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  cursor: pointer;
}

.admin-salon-item:hover {
  transform: translateY(-2px);
  border-color: rgba(222, 138, 160, 0.22);
  box-shadow: 0 18px 32px rgba(79, 45, 57, 0.08);
}

.admin-salon-item.active {
  border-color: rgba(184, 100, 127, 0.26);
  background: linear-gradient(135deg, rgba(222, 138, 160, 0.14), rgba(255, 255, 255, 0.92));
}

.admin-salon-item-head,
.admin-detail-head,
.admin-form-actions,
.admin-chip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-salon-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.02rem;
  letter-spacing: -0.03em;
}

.admin-chip-row {
  justify-content: flex-start;
  margin-top: 14px;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(82, 50, 61, 0.08);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--portal-text);
}

.admin-pill.status-active {
  background: rgba(214, 239, 222, 0.88);
  color: #2c6b49;
}

.admin-pill.status-trial {
  background: rgba(255, 244, 213, 0.9);
  color: #8d6614;
}

.admin-pill.status-lead,
.admin-pill.status-paused {
  background: rgba(232, 237, 244, 0.92);
  color: #526174;
}

.admin-pill.status-past_due,
.admin-pill.status-cancelled {
  background: rgba(255, 229, 233, 0.92);
  color: #a44f68;
}

.admin-detail-empty {
  padding: 42px 24px;
  border-radius: 28px;
  text-align: center;
  border: 1px dashed rgba(82, 50, 61, 0.18);
  background: rgba(255, 255, 255, 0.4);
}

.admin-detail-body {
  display: grid;
  gap: 18px;
}

.admin-detail-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

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

.admin-meta-card {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(82, 50, 61, 0.07);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--portal-shadow-md);
}

.admin-meta-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--portal-muted);
}

.admin-meta-card strong {
  display: block;
  font-size: 1.28rem;
  letter-spacing: -0.04em;
}

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

.admin-form-grid .auth-field-full {
  grid-column: 1 / -1;
}

.admin-page textarea {
  min-height: 150px;
  resize: vertical;
}

.admin-message-inline {
  min-height: 24px;
  margin: 0;
}

.dashboard-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.dashboard-page .layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 290px 1fr;
  min-height: 100vh;
  gap: 24px;
  padding: 24px;
  padding-bottom: 24px;
}

.dashboard-page .sidebar {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--portal-shadow-xl);
  border-radius: 30px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 24px;
  height: calc(100vh - 48px);
}

.dashboard-page .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px;
  color: inherit;
  text-decoration: none;
  border-radius: 20px;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.dashboard-page .brand:hover,
.dashboard-page .brand.active {
  background: rgba(255, 255, 255, 0.48);
  box-shadow: var(--portal-shadow-md);
}

.dashboard-page .brand-icon {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  background: linear-gradient(145deg, #cc6e8a 0%, #e8a5b8 55%, #f8dfe7 100%);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 25px rgba(204, 110, 138, 0.24);
}

.dashboard-page .brand h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.dashboard-page .brand p {
  margin: 4px 0 0;
  color: var(--portal-muted);
  font-size: 13px;
}

.dashboard-page .menu-group-title,
.dashboard-page .eyebrow,
.dashboard-page .section-label,
.dashboard-page .side-label {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--portal-muted);
}

.dashboard-page .menu {
  display: grid;
  gap: 8px;
}

.dashboard-page .menu-item,
.dashboard-page .quick-tab-link.active {
  color: #5b4650;
}

.dashboard-page .menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid transparent;
  text-decoration: none;
  transition: 0.2s ease;
}

.dashboard-page .menu-item svg,
.dashboard-page .mobile-menu-btn svg,
.dashboard-page .search svg,
.dashboard-page .icon-box svg,
.portal-brand-mark svg,
.dashboard-page .brand-icon svg {
  width: 18px;
  height: 18px;
}

.dashboard-page .icon-box svg {
  width: 24px;
  height: 24px;
}

.dashboard-page .menu-item:hover,
.dashboard-page .menu-item.active,
.dashboard-page .quick-tab-link.active {
  background: var(--portal-surface-strong);
  border-color: rgba(222, 138, 160, 0.14);
  box-shadow: var(--portal-shadow-md);
}

.dashboard-page .sidebar-card {
  margin-top: auto;
  background: linear-gradient(180deg, rgba(222, 138, 160, 0.14), rgba(255, 255, 255, 0.95));
  border: 1px solid rgba(222, 138, 160, 0.16);
  border-radius: 26px;
  padding: 18px;
}

.dashboard-page .sidebar-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.dashboard-page .sidebar-card p {
  margin: 0 0 16px;
  color: var(--portal-muted);
  line-height: 1.5;
  font-size: 14px;
}

.dashboard-page .sidebar-status {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(82, 50, 61, 0.08);
}

.dashboard-page .sidebar-status summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--portal-text);
}

.dashboard-page .sidebar-status summary::-webkit-details-marker {
  display: none;
}

.dashboard-page .sidebar-status summary::after {
  content: "";
  width: 9px;
  height: 9px;
  margin-left: auto;
  border-right: 2px solid rgba(82, 50, 61, 0.5);
  border-bottom: 2px solid rgba(82, 50, 61, 0.5);
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.dashboard-page .sidebar-status[open] summary::after {
  transform: rotate(-135deg);
}

.dashboard-page .service-list-compact {
  margin-top: 14px;
  gap: 8px;
}

.dashboard-page .service-list-compact .service-row {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
}

.dashboard-page .service-list-compact strong {
  color: var(--portal-accent-strong);
  font-size: 0.8rem;
}

.dashboard-page .side-footer {
  display: grid;
  gap: 10px;
}

.dashboard-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.dashboard-page .btn:hover {
  transform: translateY(-2px);
}

.dashboard-page .btn-primary {
  background: linear-gradient(135deg, var(--portal-accent) 0%, #efb5c4 100%);
  color: #4b2733;
  box-shadow: 0 16px 28px rgba(222, 138, 160, 0.24);
}

.dashboard-page .btn-secondary {
  background: rgba(255, 255, 255, 0.75);
  color: var(--portal-text);
  border-color: rgba(82, 50, 61, 0.08);
  box-shadow: 0 10px 22px rgba(79, 45, 57, 0.05);
}

.dashboard-page .main {
  display: grid;
  gap: 20px;
}

.dashboard-page .topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 8px 4px;
}

.dashboard-page .topbar h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.dashboard-page .topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-page .alerts-menu {
  position: relative;
}

.dashboard-page .alerts-toggle {
  position: relative;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(82, 50, 61, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--portal-text);
  box-shadow: 0 10px 22px rgba(79, 45, 57, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.dashboard-page .alerts-toggle:hover,
.dashboard-page .alerts-menu.is-open .alerts-toggle {
  transform: translateY(-2px);
  border-color: rgba(222, 138, 160, 0.22);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--portal-shadow-md);
}

.dashboard-page .alerts-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #e59bb0 0%, #c96f8c 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 10px 18px rgba(201, 111, 140, 0.28);
}

.dashboard-page .alerts-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(420px, calc(100vw - 32px));
  padding: 18px;
  display: grid;
  gap: 14px;
  border-radius: 24px;
  background: rgba(255, 250, 251, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: var(--portal-shadow-xl);
  backdrop-filter: blur(18px);
  z-index: 35;
}

.dashboard-page .alerts-panel[hidden] {
  display: none !important;
}

.dashboard-page .alerts-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-page .alerts-panel-head h3 {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: -0.03em;
}

.dashboard-page .alerts-panel-head .section-label {
  margin-bottom: 6px;
}

.dashboard-page .search {
  min-width: 300px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  box-shadow: var(--portal-shadow-md);
  padding: 0 14px;
}

.dashboard-page .search input {
  border: 0;
  outline: none;
  background: transparent;
  width: 100%;
  padding: 14px 0;
  color: var(--portal-text);
}

.dashboard-page input,
.dashboard-page select {
  width: 100%;
  border: 1px solid rgba(82, 50, 61, 0.1);
  border-radius: 16px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--portal-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.dashboard-page input:focus,
.dashboard-page select:focus {
  outline: none;
  border-color: rgba(222, 138, 160, 0.38);
  box-shadow: 0 0 0 4px rgba(222, 138, 160, 0.14);
}

.dashboard-page .stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.dashboard-page .stats .card,
.dashboard-page .panel {
  background: var(--portal-surface);
  backdrop-filter: blur(14px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--portal-shadow-lg);
}

.dashboard-page .stats .card {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.dashboard-page .icon-box {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--portal-accent-strong);
  background: linear-gradient(135deg, rgba(222, 138, 160, 0.16), rgba(255, 255, 255, 0.92));
}

.dashboard-page .card-title {
  margin: 0;
  color: var(--portal-muted);
  font-size: 14px;
}

.dashboard-page .card-value {
  margin: 6px 0 8px;
  font-size: 30px;
  font-weight: 700;
}

.dashboard-page .card-note {
  margin: 0;
  font-size: 13px;
  color: var(--portal-accent-strong);
}

.dashboard-page .grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
}

.dashboard-page .overview-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-page .overview-summary-panel {
  display: grid;
  gap: 18px;
  align-content: start;
}

.dashboard-page .overview-summary-panel-wide {
  grid-column: 1 / -1;
}

.dashboard-page .overview-summary-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(222, 138, 160, 0.12);
  color: var(--portal-accent-strong);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
}

.dashboard-page .overview-summary-lead {
  margin: -4px 0 0;
  color: var(--portal-muted);
  line-height: 1.7;
}

.dashboard-page .overview-summary-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-page .overview-summary-metric {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(252, 246, 248, 0.82));
  border: 1px solid rgba(82, 50, 61, 0.08);
}

.dashboard-page .overview-summary-metric span {
  font-size: 0.84rem;
  color: var(--portal-muted);
}

.dashboard-page .overview-summary-metric strong {
  font-size: 1.9rem;
  letter-spacing: -0.05em;
}

.dashboard-page .overview-summary-metric small {
  color: var(--portal-muted);
  line-height: 1.5;
}

.dashboard-page .overview-summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-page .overview-list,
.dashboard-page .inventory-alert-list {
  display: grid;
  gap: 12px;
}

.dashboard-page .overview-list-item,
.dashboard-page .inventory-alert-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(82, 50, 61, 0.08);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--portal-shadow-md);
}

.dashboard-page .overview-list-item {
  grid-template-columns: 74px 1fr;
  align-items: start;
}

.dashboard-page .overview-list-item.is-compact {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.dashboard-page .overview-list-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 16px;
  background: rgba(222, 138, 160, 0.12);
  color: var(--portal-accent-strong);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.dashboard-page .overview-list-copy strong,
.dashboard-page .inventory-alert-card strong {
  display: block;
  margin-bottom: 6px;
}

.dashboard-page .overview-list-copy p,
.dashboard-page .overview-list-copy small,
.dashboard-page .inventory-alert-card p,
.dashboard-page .inventory-alert-intro,
.dashboard-page .inventory-helper {
  color: var(--portal-muted);
}

.dashboard-page .overview-list-copy p {
  margin: 0 0 4px;
}

.dashboard-page .overview-list-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(222, 138, 160, 0.14);
  color: var(--portal-accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
}

.dashboard-page .inventory-alert-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-page .inventory-alert-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dashboard-page .inventory-helper {
  margin: 0 0 14px;
  line-height: 1.65;
}

.dashboard-page .inventory-reminder-banner {
  margin-bottom: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(236, 194, 181, 0.3), rgba(255, 255, 255, 0.88));
  border: 1px solid rgba(222, 138, 160, 0.18);
  color: var(--portal-text);
  line-height: 1.6;
}

.dashboard-page .inventory-reminder-banner strong {
  color: var(--portal-accent-strong);
}

.dashboard-page .service-usage-shell {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(82, 50, 61, 0.08);
}

.dashboard-page .service-category-row td {
  padding: 16px 14px 8px;
  background: #fff !important;
  border-bottom: 1px solid var(--vensa-line);
}

.dashboard-page .service-category-row span,
.dashboard-page .service-category-row small {
  display: inline-flex;
  align-items: center;
}

.dashboard-page .service-category-row span {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--vensa-pink-soft);
  color: var(--vensa-pink);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-page .service-category-row small {
  margin-left: 8px;
  color: var(--vensa-muted);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-page .service-usage-helper {
  margin: 0 0 14px;
  color: var(--portal-muted);
  line-height: 1.65;
}

.dashboard-page .service-usage-cards {
  display: grid;
  gap: 12px;
}

.dashboard-page .service-usage-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(82, 50, 61, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--portal-shadow-md);
}

.dashboard-page .service-usage-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.dashboard-page .service-usage-card-head h4 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.dashboard-page .service-usage-card-head p {
  margin: 0;
  color: var(--portal-muted);
}

.dashboard-page .service-usage-items {
  display: grid;
  gap: 10px;
}

.dashboard-page .service-usage-item {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(252, 246, 248, 0.82);
  border: 1px solid rgba(82, 50, 61, 0.06);
}

.dashboard-page .service-usage-item strong,
.dashboard-page .service-usage-item small {
  display: block;
}

.dashboard-page .service-usage-item small {
  margin-top: 4px;
  color: var(--portal-muted);
}

.dashboard-page .left-col,
.dashboard-page .right-col {
  display: grid;
  gap: 16px;
}

.dashboard-page #tabsContent.grid:not([hidden]) {
  display: block;
}

.dashboard-page #tabsContent > .left-col,
.dashboard-page #tabsContent > .right-col {
  display: block;
}

.dashboard-page #tabsContent .tab-pane {
  width: 100%;
}

.dashboard-page .panel {
  padding: 22px;
}

.dashboard-page .panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.dashboard-page .panel-header h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.dashboard-page .panel-header p {
  margin: 0 0 6px;
  color: var(--portal-muted);
  font-size: 13px;
}

.dashboard-page .tab-pane {
  display: none;
}

.dashboard-page .tab-pane.active {
  display: block;
}

.dashboard-page .inline-form {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 12px;
}

.dashboard-page .inline-form .btn {
  grid-column: span 2;
}

.dashboard-page .table-wrap {
  overflow: auto;
  border: 1px solid rgba(82, 50, 61, 0.06);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
}

.dashboard-page .data-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14px;
}

.dashboard-page .data-table th,
.dashboard-page .data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(82, 50, 61, 0.06);
  text-align: left;
}

.dashboard-page .data-table th {
  background: rgba(255, 247, 249, 0.92);
  position: sticky;
  top: 0;
}

.dashboard-page .data-table tbody tr:nth-child(2n) td {
  background: rgba(252, 246, 248, 0.48);
}

.dashboard-page .data-table tbody tr:hover td {
  background: rgba(255, 240, 245, 0.72);
}

.dashboard-page .data-table small {
  display: block;
  margin-top: 4px;
  color: var(--portal-muted);
  font-size: 0.78rem;
}

.dashboard-page .table-stack {
  display: grid;
  gap: 2px;
}

.dashboard-page .table-stack strong {
  font-size: 0.92rem;
}

.dashboard-page .client-row.is-selected td {
  background: rgba(222, 138, 160, 0.12);
}

.dashboard-page .table-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--portal-accent-strong);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.dashboard-page .table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-page .table-actions .btn {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 0.82rem;
}

.dashboard-page .client-tools {
  margin-bottom: 12px;
}

.dashboard-page .client-search-field {
  display: grid;
  gap: 8px;
}

.dashboard-page .client-search-field span {
  color: var(--portal-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.dashboard-page .client-detail-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(82, 50, 61, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(252, 246, 248, 0.84));
  box-shadow: var(--portal-shadow-md);
}

.dashboard-page .client-detail-panel[hidden] {
  display: none !important;
}

.dashboard-page .client-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-page .client-detail-head h4 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.dashboard-page .client-detail-head span,
.dashboard-page .client-detail-head small,
.dashboard-page .client-detail-notes p,
.dashboard-page .client-detail-notes small,
.dashboard-page .client-history-item span {
  color: var(--portal-muted);
}

.dashboard-page .client-detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-page .client-detail-metrics div,
.dashboard-page .client-detail-notes,
.dashboard-page .client-history-item,
.dashboard-page .document-card {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(82, 50, 61, 0.07);
  background: rgba(255, 255, 255, 0.66);
}

.dashboard-page .client-detail-metrics span {
  display: block;
  margin-bottom: 6px;
  color: var(--portal-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.dashboard-page .client-detail-metrics strong {
  font-size: 1.05rem;
}

.dashboard-page .client-detail-notes {
  display: grid;
  gap: 8px;
}

.dashboard-page .client-history-list {
  display: grid;
  gap: 10px;
}

.dashboard-page .client-detail-documents {
  display: grid;
  gap: 12px;
}

.dashboard-page .client-detail-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-page .client-detail-section-head span {
  color: var(--portal-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.dashboard-page .client-document-list {
  display: grid;
  gap: 10px;
}

.dashboard-page .client-history-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-page .client-history-item strong,
.dashboard-page .client-history-item span {
  display: block;
}

.dashboard-page .client-history-item span {
  margin-top: 4px;
}

.dashboard-page .documents-grid {
  display: grid;
  gap: 12px;
}

.dashboard-page .document-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-page .document-card h4 {
  margin: 0 0 6px;
}

.dashboard-page .document-card p {
  color: var(--portal-muted);
  line-height: 1.6;
}

.modal-open {
  overflow: hidden;
}

.app-modal[hidden] {
  display: none !important;
}

.app-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 18px;
}

.app-modal-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(640px, calc(100vw - 36px));
  max-height: min(86vh, 760px);
  overflow: hidden;
  border: 1px solid rgba(82, 50, 61, 0.08);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(52, 38, 45, 0.22);
}

/* ===== FLOATING POPOVER (anchored to slot) ===== */

.app-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(52, 38, 45, 0.44);
  backdrop-filter: blur(8px);
}

.app-modal-no-blur .app-modal-backdrop {
  backdrop-filter: none;
}

.app-notify-region {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  z-index: 2400;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

.app-notify {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 32px;
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 44px rgba(24, 24, 27, 0.18);
  color: #18181b;
  pointer-events: auto;
  animation: notifyIn 0.2s ease-out;
}

.app-notify.is-leaving {
  animation: notifyOut 0.18s ease-in forwards;
}

.app-notify.is-error {
  border-color: rgba(239, 68, 68, 0.26);
}

.app-notify-icon,
.app-notify-close {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.app-notify-icon {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.app-notify.is-error .app-notify-icon {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

.app-notify-icon i,
.app-notify-close i {
  width: 18px;
  height: 18px;
}

.app-notify-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding-top: 1px;
}

.app-notify-copy strong {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.app-notify-copy span {
  font-size: 12px;
  color: #52525b;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.app-notify-close {
  border: 0;
  background: transparent;
  color: #71717a;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.app-notify-close:hover {
  background: #f4f4f5;
  color: #18181b;
}

.pwa-toast-action {
  width: max-content;
  min-height: 30px;
  margin-top: 8px;
  border: 1px solid rgba(236, 72, 153, 0.22);
  border-radius: 10px;
  background: #fdf2f8;
  color: #be185d;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  cursor: pointer;
}

.pwa-install-button {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 2200;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  background: #ec4899;
  color: #fff;
  box-shadow: 0 18px 42px rgba(236, 72, 153, 0.34);
  padding: 8px 16px 8px 9px;
  font: inherit;
  cursor: pointer;
}

.pwa-install-button[hidden] {
  display: none;
}

.pwa-install-button span {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  font-size: 24px;
  line-height: 1;
  font-weight: 500;
}

.pwa-install-button strong {
  font-size: 13px;
  font-weight: 900;
}

@keyframes notifyIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes notifyOut {
  to { opacity: 0; transform: translateY(-8px) scale(0.98); }
}

@media (max-width: 760px) {
  .app-notify-region {
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
    left: 12px;
    width: auto;
  }

  .app-notify {
    grid-template-columns: 34px minmax(0, 1fr) 30px;
    border-radius: 12px;
    padding: 11px;
  }

  .pwa-install-button {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    min-height: 46px;
    padding-right: 13px;
  }
}

/* ===== FLOATING POPOVER (anchored to slot) ===== */
.app-popover {
  position: fixed;
  z-index: 1000;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.05);
  width: 360px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
  animation: popoverIn .2s cubic-bezier(.34,1.3,.64,1);
  overflow: hidden;
}
@keyframes popoverIn {
  from { opacity: 0; transform: scale(.96) translateY(-4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.app-popover-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 20px 10px;
  gap: 8px;
  border-bottom: 1px solid #f4f4f6;
}
.app-popover-head > div { flex: 1; min-width: 0; }
.app-popover-head h3 {
  font-size: 15px;
  font-weight: 700;
  color: #18181b;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-popover-head .section-label {
  font-size: 10px;
  color: #a1a1aa;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin: 0 0 2px;
}
.app-popover-close {
  background: transparent;
  border: none;
  padding: 4px;
  border-radius: 6px;
  cursor: pointer;
  color: #71717a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: -2px -4px 0 0;
  transition: background .12s;
}
.app-popover-close:hover { background: #f4f4f6; color: #18181b; }
.app-popover-close i { width: 16px; height: 16px; }

.app-popover-body {
  padding: 14px 20px;
  overflow-y: auto;
  max-height: 50vh;
  font-size: 13px;
}
.app-popover-body .modal-field { margin-bottom: 12px; }
.app-popover-body .modal-field:last-child { margin-bottom: 0; }
.app-popover-body .modal-field span {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 5px;
}
.app-popover-body .modal-field input,
.app-popover-body .modal-field select,
.app-popover-body .modal-field textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  color: #18181b;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.app-popover-body .modal-field input:focus,
.app-popover-body .modal-field select:focus,
.app-popover-body .modal-field textarea:focus {
  outline: none;
  border-color: var(--portal-accent, #de8aa0);
  box-shadow: 0 0 0 3px rgba(222,138,160,.15);
}
.app-popover-body .modal-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.app-popover-body .modal-help {
  font-size: 12px;
  color: #71717a;
  margin: 0 0 8px;
  line-height: 1.45;
}
.app-popover-body .modal-message {
  margin-top: 8px;
  font-size: 12px;
}

.app-popover-actions {
  padding: 12px 20px 16px;
  display: flex;
  gap: 8px;
  border-top: 1px solid #f4f4f6;
}
.app-popover-actions .btn { flex: 1; padding: 9px 12px; font-size: 13px; }
.app-popover-actions .btn-primary {
  background: var(--portal-accent, #de8aa0);
  border-color: var(--portal-accent, #de8aa0);
  color: #fff;
}
.app-popover-actions .btn-primary:hover {
  background: var(--portal-accent-strong, #c66a82);
  border-color: var(--portal-accent-strong, #c66a82);
}

/* Arrow that points to the slot */
.app-popover-arrow {
  position: absolute;
  width: 12px;
  height: 12px;
  background: #fff;
  border: 1px solid #E5E7EB;
  z-index: -1;
  transform: rotate(45deg);
}
.app-popover[data-side="right"] .app-popover-arrow { left: -7px; top: 16px; border-right: none; border-top: none; }
.app-popover[data-side="left"] .app-popover-arrow { right: -7px; top: 16px; border-left: none; border-bottom: none; }
.app-popover[data-side="bottom"] .app-popover-arrow { top: -7px; left: 50%; margin-left: -6px; border-left: none; border-bottom: none; }
.app-popover[data-side="top"] .app-popover-arrow { bottom: -7px; left: 50%; margin-left: -6px; border-right: none; border-top: none; }

/* Mobile: popover becomes bottom sheet */
@media (max-width: 760px) {
  .app-popover {
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    bottom: 12px !important;
    width: auto !important;
    max-width: none !important;
    border-radius: 18px 18px 0 0;
    animation: popoverSheetIn .3s cubic-bezier(.4,0,.2,1);
  }
  .app-popover-arrow { display: none; }
}
@keyframes popoverSheetIn {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.app-modal-side {
  width: min(420px, calc(100% - 32px));
  max-height: min(80vh, 680px);
  border-radius: 20px;
  animation: sidePanelIn .28s cubic-bezier(.4,0,.2,1);
  align-self: center;
  margin: 16px;
}
@keyframes sidePanelIn {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.app-modal-backdrop { animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.app-modal-side .app-modal-head {
  padding: 18px 22px 12px;
  border-bottom: 1px solid #f4f4f6;
}
.app-modal-side .app-modal-head h3 {
  font-size: 17px;
  font-weight: 700;
  color: #18181b;
}
.app-modal-side .app-modal-body {
  padding: 18px 22px;
}
.app-modal-side .app-modal-actions {
  padding: 12px 22px 20px;
  border-top: 1px solid #f4f4f6;
  display: flex;
  gap: 8px;
}
.app-modal-side .app-modal-actions .btn {
  flex: 1;
}
.app-modal-side .modal-field { margin-bottom: 14px; }
.app-modal-side .modal-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.app-modal-side .modal-field span { font-size: 11px; color: #71717a; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; display: block; }
.app-modal-side .modal-field input,
.app-modal-side .modal-field select,
.app-modal-side .modal-field textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  color: #18181b;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.app-modal-side .modal-field input:focus,
.app-modal-side .modal-field select:focus,
.app-modal-side .modal-field textarea:focus {
  outline: none;
  border-color: var(--portal-accent, #de8aa0);
  box-shadow: 0 0 0 3px rgba(222,138,160,.15);
}
.app-modal-side .modal-help {
  font-size: 12px;
  color: #71717a;
  margin: 0 0 12px;
}
.app-modal-side .modal-message {
  margin-top: 8px;
  font-size: 12px;
}

@media (max-width: 760px) {
  .app-modal-side {
    width: calc(100% - 24px);
    margin: 12px;
  }
}

.app-modal-head,
.app-modal-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
}

.app-modal-head {
  border-bottom: 1px solid rgba(82, 50, 61, 0.08);
}

.app-modal-head h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.app-modal-close {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(82, 50, 61, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--portal-text);
  cursor: pointer;
}

.app-modal-close svg {
  width: 18px;
  height: 18px;
}

.app-modal-body {
  min-height: 0;
  padding: 20px;
  overflow: auto;
}

.app-modal-actions {
  justify-content: flex-end;
  border-top: 1px solid rgba(82, 50, 61, 0.08);
  background: rgba(252, 246, 248, 0.72);
}

.modal-form,
.modal-field {
  display: grid;
  gap: 10px;
}

.modal-form {
  gap: 14px;
}

.modal-field span,
.modal-check span {
  color: var(--portal-text);
  font-size: 0.9rem;
  font-weight: 700;
}

.modal-field input,
.modal-field textarea {
  width: 100%;
}

.modal-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(82, 50, 61, 0.06);
}

.modal-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--portal-accent-strong);
  box-shadow: none;
}

.modal-help {
  margin: 0;
  color: var(--portal-muted);
  font-size: 0.88rem;
}

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

.usage-bulk-panel {
  display: grid;
  min-height: 0;
  border: 1px solid rgba(82, 50, 61, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.usage-bulk-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(82, 50, 61, 0.08);
}

.usage-bulk-panel-head strong {
  font-size: 0.94rem;
}

.usage-bulk-panel-head small,
.usage-bulk-group-head small,
.usage-bulk-option small {
  color: var(--portal-muted);
}

.usage-bulk-groups {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding: 12px;
}

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

.usage-bulk-group-head,
.usage-bulk-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.usage-bulk-group-head {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--vensa-pink-soft);
  color: var(--vensa-pink);
  font-weight: 800;
}

.usage-bulk-options {
  display: grid;
  gap: 6px;
}

.usage-bulk-option {
  grid-template-columns: 18px minmax(0, 1fr);
  padding: 10px;
  border: 1px solid rgba(82, 50, 61, 0.06);
  border-radius: 12px;
  background: rgba(252, 246, 248, 0.62);
}

.usage-bulk-option strong,
.usage-bulk-option small {
  display: block;
}

.usage-bulk-option strong {
  overflow-wrap: anywhere;
  font-size: 0.88rem;
}

.usage-bulk-option small {
  margin-top: 3px;
  font-size: 0.78rem;
}

.usage-bulk-group-head input,
.usage-bulk-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--portal-accent-strong);
  box-shadow: none;
}

@media (max-width: 760px) {
  .usage-bulk-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .usage-bulk-groups {
    max-height: 280px;
  }
}

.modal-message {
  margin: 0;
}

.modal-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.document-preview-frame {
  width: 100%;
  min-height: 62vh;
  border: 1px solid rgba(82, 50, 61, 0.08);
  border-radius: 18px;
  background: #fff;
}

.dashboard-page .badge {
  border-radius: 999px;
  background: rgba(222, 138, 160, 0.14);
  color: var(--portal-accent-strong);
  padding: 5px 9px;
  font-size: 12px;
}

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

.dashboard-page .service-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
}

.dashboard-page .footer-note {
  text-align: center;
  color: var(--portal-muted);
  font-size: 13px;
}

.booking-page select {
  width: 100%;
  border: 1px solid rgba(82, 50, 61, 0.1);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--portal-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.booking-page select:focus {
  outline: none;
  border-color: rgba(222, 138, 160, 0.38);
  box-shadow: 0 0 0 4px rgba(222, 138, 160, 0.14);
}

.booking-shell {
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
  align-items: stretch;
}

.booking-page .portal-topbar {
  grid-template-columns: 1fr;
  justify-items: start;
}

.booking-page .booking-brand {
  min-width: min(100%, 420px);
}

.booking-page .portal-brand-mark {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.booking-spotlight,
.booking-card-shell {
  display: grid;
  gap: 18px;
}

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

.booking-step-card,
.booking-note-card {
  padding: 20px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 244, 246, 0.9));
  border: 1px solid rgba(82, 50, 61, 0.06);
  box-shadow: var(--portal-shadow-md);
}

.booking-step-card strong,
.booking-note-card strong {
  display: block;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.booking-step-card p,
.booking-note-card p {
  color: var(--portal-muted);
  line-height: 1.65;
}

.booking-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 32px;
  margin-bottom: 14px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--portal-accent-soft);
  color: var(--portal-accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.booking-form {
  margin-top: 0;
}

.booking-hint {
  min-height: 24px;
  margin: 0;
}

.booking-shell-head {
  display: grid;
  gap: 16px;
}

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

.booking-progress-step {
  min-height: 48px;
  border-radius: 18px;
  border: 1px solid rgba(82, 50, 61, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: var(--portal-muted);
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.booking-progress-step:hover {
  transform: translateY(-1px);
  color: var(--portal-text);
}

.booking-progress-step.is-active,
.booking-progress-step.is-complete {
  background: linear-gradient(135deg, rgba(222, 138, 160, 0.14), rgba(255, 255, 255, 0.92));
  border-color: rgba(222, 138, 160, 0.22);
  color: var(--portal-text);
}

.booking-step-pane {
  display: none;
  gap: 18px;
}

.booking-step-pane.is-active {
  display: grid;
}

.booking-step-pane-head {
  display: grid;
  gap: 6px;
}

.booking-step-pane-head strong {
  font-size: 1.02rem;
  letter-spacing: -0.03em;
}

.booking-step-pane-head p {
  margin: 0;
  color: var(--portal-muted);
  line-height: 1.65;
}

.booking-step-pane-head-compact {
  gap: 4px;
}

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

.booking-contact-hint {
  margin: -2px 0 0;
  line-height: 1.55;
}

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

.booking-consent-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(82, 50, 61, 0.08);
  background: rgba(255, 255, 255, 0.68);
  color: var(--portal-text);
  line-height: 1.55;
}

.booking-consent-item input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--portal-accent-strong);
  box-shadow: none;
}

.booking-consent-item span {
  font-size: 0.94rem;
}

.booking-service-grid,
.booking-slot-grid {
  display: grid;
  gap: 12px;
}

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

.booking-service-card,
.booking-slot-card,
.booking-payment-option {
  width: 100%;
  text-align: left;
  border-radius: 24px;
  border: 1px solid rgba(82, 50, 61, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 244, 246, 0.88));
  box-shadow: var(--portal-shadow-md);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.booking-service-card:hover,
.booking-slot-card:hover,
.booking-payment-option:hover {
  transform: translateY(-2px);
  border-color: rgba(222, 138, 160, 0.24);
  box-shadow: var(--portal-shadow-lg);
}

.booking-service-card {
  min-height: 116px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.booking-service-card strong,
.booking-slot-copy strong,
.booking-payment-option strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.booking-service-category {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--portal-accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.booking-service-card p,
.booking-slot-copy p,
.booking-payment-option span {
  margin: 0;
  color: var(--portal-muted);
  line-height: 1.55;
}

.booking-service-card > span {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--portal-accent-strong);
  white-space: nowrap;
}

.booking-service-card.is-selected,
.booking-slot-card.is-selected,
.booking-payment-option.is-selected {
  border-color: rgba(222, 138, 160, 0.28);
  background: linear-gradient(135deg, rgba(222, 138, 160, 0.14), rgba(255, 255, 255, 0.96));
  box-shadow: var(--portal-shadow-lg);
}

.booking-calendar-shell,
.booking-slots-shell,
.booking-summary-card,
.booking-payment-shell {
  padding: 20px;
  border-radius: 26px;
  border: 1px solid rgba(82, 50, 61, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 244, 246, 0.88));
  box-shadow: var(--portal-shadow-md);
}

.booking-success-card {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 30px;
  border: 1px solid rgba(82, 50, 61, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 244, 246, 0.92));
  box-shadow: var(--portal-shadow-lg);
}

.booking-success-card[hidden] {
  display: none !important;
}

.booking-success-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--portal-accent-soft);
  color: var(--portal-accent-strong);
  font-size: 1.8rem;
  font-weight: 800;
}

.booking-success-head {
  gap: 8px;
}

.booking-success-head strong {
  font-size: 1.2rem;
}

.booking-success-summary {
  padding: 22px;
}

.booking-success-actions {
  display: flex;
  justify-content: flex-start;
}

.booking-calendar-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.booking-calendar-head h3 {
  margin: 4px 0 0;
  letter-spacing: -0.04em;
}

.booking-calendar-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

.booking-date-card {
  min-height: 102px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 12px 10px;
  border-radius: 22px;
  border: 1px solid rgba(82, 50, 61, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: var(--portal-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.booking-date-card:hover {
  transform: translateY(-2px);
  border-color: rgba(222, 138, 160, 0.24);
}

.booking-date-card span,
.booking-date-card small {
  color: var(--portal-muted);
}

.booking-date-card strong {
  font-size: 1.5rem;
  line-height: 1;
}

.booking-date-card.is-selected {
  border-color: rgba(222, 138, 160, 0.28);
  background: linear-gradient(135deg, rgba(222, 138, 160, 0.16), rgba(255, 255, 255, 0.94));
  color: var(--portal-accent-strong);
}

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

.booking-slot-card {
  min-height: 106px;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
}

.booking-slot-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border-radius: 18px;
  background: rgba(222, 138, 160, 0.12);
  color: var(--portal-accent-strong);
  font-size: 1rem;
  font-weight: 800;
}

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

.booking-summary-grid div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(82, 50, 61, 0.06);
}

.booking-summary-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--portal-muted);
  font-size: 0.84rem;
}

.booking-summary-grid strong {
  font-size: 1rem;
  letter-spacing: -0.03em;
}

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

.booking-payment-option {
  min-height: 120px;
  padding: 18px 20px;
}

.booking-payment-option.is-disabled {
  opacity: 0.66;
  cursor: not-allowed;
  box-shadow: none;
}

.booking-payment-option.is-disabled:hover {
  transform: none;
  border-color: rgba(82, 50, 61, 0.08);
}

.booking-wizard-actions {
  display: grid;
  gap: 14px;
}

.booking-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.booking-nav .portal-button {
  min-width: 180px;
}

.dashboard-page .calendar-controls {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.dashboard-page .calendar-booking-card {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(82, 50, 61, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(252, 246, 248, 0.82));
  box-shadow: var(--portal-shadow-md);
}

.dashboard-page .panel-header-compact {
  margin-bottom: 14px;
}

.dashboard-page .calendar-controls-secondary {
  margin-top: 20px;
}

.dashboard-page .calendar-field {
  min-width: 220px;
  flex: 1 1 220px;
  display: grid;
  gap: 8px;
}

.dashboard-page .calendar-field span {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--portal-muted);
}

.dashboard-page .availability-grid {
  display: grid;
  gap: 10px;
}

.dashboard-page .availability-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) 1fr 1fr;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(82, 50, 61, 0.08);
  background: rgba(255, 255, 255, 0.6);
}

.dashboard-page .availability-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--portal-text);
}

.dashboard-page .availability-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--portal-accent-strong);
  box-shadow: none;
}

.dashboard-page .calendar-agenda {
  display: grid;
  gap: 14px;
}

.dashboard-page .calendar-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(222, 138, 160, 0.12), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(82, 50, 61, 0.08);
}

.dashboard-page .calendar-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.dashboard-page .calendar-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(82, 50, 61, 0.08);
  color: var(--portal-accent-strong);
  font-size: 0.84rem;
  font-weight: 700;
}

.dashboard-page .calendar-slot-list {
  display: grid;
  gap: 10px;
}

.dashboard-page .calendar-slot {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(82, 50, 61, 0.07);
  background: rgba(255, 255, 255, 0.62);
}

.dashboard-page .calendar-slot strong {
  font-size: 0.96rem;
}

.dashboard-page .calendar-slot span,
.dashboard-page .calendar-slot small {
  display: block;
}

.dashboard-page .calendar-slot span {
  font-weight: 700;
}

.dashboard-page .calendar-slot small {
  margin-top: 4px;
  color: var(--portal-muted);
}

.dashboard-page .calendar-slot.is-booked {
  border-color: rgba(184, 100, 127, 0.18);
  background: linear-gradient(135deg, rgba(222, 138, 160, 0.16), rgba(255, 255, 255, 0.92));
}

.dashboard-page .calendar-slot.is-free {
  border-color: rgba(82, 50, 61, 0.07);
}

.dashboard-page .shopping-lists {
  display: grid;
  gap: 14px;
}

.dashboard-page .shopping-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(82, 50, 61, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--portal-shadow-md);
}

.dashboard-page .shopping-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.dashboard-page .shopping-card-head h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.dashboard-page .shopping-card-head p {
  margin: 0;
  color: var(--portal-muted);
}

.dashboard-page .shopping-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dashboard-page .shopping-card-actions .btn {
  padding: 10px 12px;
}

.dashboard-page .shopping-items {
  display: grid;
  gap: 10px;
}

.dashboard-page .shopping-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(252, 246, 248, 0.82);
  border: 1px solid rgba(82, 50, 61, 0.06);
}

.dashboard-page .shopping-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--portal-accent-strong);
  box-shadow: none;
}

.dashboard-page .shopping-item span {
  display: grid;
  gap: 2px;
}

.dashboard-page .shopping-item small {
  color: var(--portal-muted);
}

.dashboard-page .badge-warning {
  background: rgba(236, 194, 181, 0.44);
  color: #8f4a5b;
}

.dashboard-page .empty-state {
  padding: 18px;
  border-radius: 20px;
  border: 1px dashed rgba(82, 50, 61, 0.18);
  background: rgba(255, 255, 255, 0.44);
  color: var(--portal-muted);
  text-align: center;
  line-height: 1.6;
}

.dashboard-page .empty-state.compact {
  padding: 14px;
}

.dashboard-page .mobile-menu-btn {
  position: fixed;
  left: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: none;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(82, 50, 61, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--portal-text);
  padding: 11px 16px;
  box-shadow: var(--portal-shadow-md);
}

.dashboard-page .mobile-backdrop {
  display: none;
}

@media (max-width: 1180px) {
  .booking-progress,
  .booking-service-grid,
  .booking-payment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .portal-topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .portal-nav {
    justify-content: flex-start;
  }

  .portal-actions {
    justify-content: stretch;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-page .topbar {
    grid-template-columns: 1fr;
  }

  .dashboard-page .topbar-right {
    justify-content: flex-start;
  }

  .dashboard-page .alerts-panel {
    right: auto;
    left: 0;
  }
}

@media (max-width: 1280px) {
  .admin-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-workspace {
    grid-template-columns: 1fr;
  }

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

  .dashboard-page .overview-summary-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-page .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .auth-shell {
    padding-top: 22px;
  }

  .dashboard-page {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .dashboard-page .layout {
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 14px;
    padding-bottom: 14px;
  }

  .admin-overview-card,
  .admin-toolbar-head,
  .admin-detail-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-toolbar-controls,
  .admin-meta-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-page .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 50;
    width: min(86vw, 320px);
    height: 100vh;
    border-radius: 0 24px 24px 0;
    transform: translateX(-104%);
    transition: transform 170ms ease;
  }

  .dashboard-page .mobile-menu-btn {
    display: inline-flex;
  }

  .dashboard-page .mobile-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(52, 38, 45, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: 150ms ease;
  }

  .dashboard-page.sidebar-open #sidebar {
    transform: translateX(0);
  }

  .dashboard-page.sidebar-open .mobile-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .dashboard-page .search {
    min-width: 100%;
  }

  .dashboard-page .alerts-panel {
    position: fixed;
    top: 88px;
    right: 14px;
    left: 14px;
    width: auto;
  }

}

@media (max-width: 700px) {
  .auth-spotlight h1 {
    font-size: 2.4rem;
  }

  .booking-steps {
    grid-template-columns: 1fr;
  }

  .booking-progress,
  .booking-step-grid,
  .booking-service-grid,
  .booking-summary-grid,
  .booking-payment-grid {
    grid-template-columns: 1fr;
  }

  .booking-calendar-head,
  .booking-nav {
    flex-direction: column;
    align-items: stretch;
  }

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

  .booking-slot-card {
    grid-template-columns: 1fr;
  }

  .dashboard-page .stats {
    grid-template-columns: 1fr;
  }

  .admin-summary-grid,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-page .alerts-panel-head,
  .dashboard-page .inventory-alert-meta,
  .dashboard-page .service-list-compact .service-row {
    align-items: flex-start;
  }

  .dashboard-page .service-list-compact .service-row {
    flex-direction: column;
  }

  .dashboard-page .inline-form {
    grid-template-columns: 1fr;
  }

  .dashboard-page .inline-form .btn {
    grid-column: span 1;
  }

  .dashboard-page .panel {
    padding: 16px;
  }

  .dashboard-page .overview-summary-metrics {
    grid-template-columns: 1fr;
  }

  .dashboard-page .overview-summary-actions,
  .dashboard-page .inventory-alert-meta {
    justify-content: flex-start;
  }

  .dashboard-page .inventory-alert-actions,
  .dashboard-page .service-usage-card-head {
    justify-content: flex-start;
  }

  .dashboard-page .calendar-controls,
  .dashboard-page .calendar-summary,
  .dashboard-page .shopping-card-head,
  .dashboard-page .service-usage-card-head {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-page .availability-row {
    grid-template-columns: 1fr;
  }

  .dashboard-page .overview-list-item,
  .dashboard-page .overview-list-item.is-compact {
    grid-template-columns: 1fr;
  }

  .dashboard-page .calendar-slot {
    grid-template-columns: 1fr;
  }

}

.portal-brand-mark,
.dashboard-page .brand-icon {
  background: linear-gradient(145deg, var(--portal-accent-strong) 0%, var(--salon-accent-alt, #e8a5b8) 55%, #f8dfe7 100%);
}

.portal-button-primary {
  background: linear-gradient(135deg, var(--portal-accent) 0%, var(--salon-accent-alt, #efb5c4) 100%);
}

.portal-brand-mark.has-logo,
.dashboard-page .brand-icon.has-logo,
.dashboard-page .settings-preview-logo.has-logo {
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
}

.portal-brand-mark.has-logo img,
.dashboard-page .brand-icon.has-logo img,
.dashboard-page .settings-preview-logo.has-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dashboard-page .topbar-copy {
  display: grid;
  gap: 8px;
}

.dashboard-page .topbar-note {
  max-width: 640px;
  color: var(--portal-muted);
  line-height: 1.65;
}

.dashboard-page .sidebar-card {
  background: linear-gradient(180deg, var(--portal-accent-soft), rgba(255, 255, 255, 0.95));
}

.dashboard-page .badge:not(.badge-warning),
.dashboard-page .overview-summary-date,
.dashboard-page .overview-list-key,
.dashboard-page .overview-list-tag {
  background: var(--portal-accent-soft);
  color: var(--portal-accent-strong);
}

.dashboard-page .overview-chart-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--portal-muted);
  font-size: 0.88rem;
}

.dashboard-page .overview-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dashboard-page .overview-chart-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.dashboard-page .overview-chart-dot.is-primary {
  background: var(--portal-accent);
}

.dashboard-page .overview-chart-dot.is-secondary {
  background: var(--salon-accent-alt, #ecc2b5);
}

.dashboard-page .overview-chart-shell {
  border-radius: 22px;
  border: 1px solid rgba(82, 50, 61, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(252, 246, 248, 0.86));
  padding: 16px;
  box-shadow: var(--portal-shadow-md);
}

.dashboard-page .overview-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.dashboard-page .overview-chart-grid {
  stroke: rgba(82, 50, 61, 0.08);
  stroke-width: 1;
}

.dashboard-page .overview-chart-area {
  fill: var(--portal-accent-soft);
  opacity: 0.72;
}

.dashboard-page .overview-chart-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-page .overview-chart-line.is-primary {
  stroke: var(--portal-accent);
}

.dashboard-page .overview-chart-line.is-secondary {
  stroke: var(--salon-accent-alt, #ecc2b5);
}

.dashboard-page .overview-chart-point {
  fill: #ffffff;
  stroke-width: 2;
}

.dashboard-page .overview-chart-point.is-primary {
  stroke: var(--portal-accent);
}

.dashboard-page .overview-chart-point.is-secondary {
  stroke: var(--salon-accent-alt, #ecc2b5);
}

.dashboard-page .overview-chart-label {
  fill: var(--portal-muted);
  font-size: 11px;
  text-anchor: middle;
}

.dashboard-page .overview-trend-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-page .overview-trend-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(82, 50, 61, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.dashboard-page .overview-trend-card span,
.dashboard-page .overview-trend-card small {
  color: var(--portal-muted);
}

.dashboard-page .overview-trend-card strong {
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.dashboard-page .settings-form {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

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

.dashboard-page .settings-field {
  display: grid;
  gap: 8px;
}

.dashboard-page .settings-field span {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--portal-text);
}

.dashboard-page .settings-field-full {
  grid-column: 1 / -1;
}

.dashboard-page textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border: 1px solid #d7dbe1;
  border-radius: 16px;
  padding: 12px 14px;
  background: #fff;
  color: var(--portal-text);
  transition: 140ms ease;
  font: inherit;
}

.dashboard-page textarea:focus {
  outline: none;
  border-color: #9ea6b2;
  box-shadow: 0 0 0 3px rgba(170, 178, 191, 0.18);
}

.dashboard-page .settings-color-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  align-items: center;
}

.dashboard-page .settings-color-row input[type="color"] {
  width: 100%;
  min-height: 52px;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.dashboard-page .settings-meta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.dashboard-page .settings-meta-chip {
  display: grid;
  gap: 6px;
  min-width: 220px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(82, 50, 61, 0.08);
}

.dashboard-page .settings-meta-chip span {
  color: var(--portal-muted);
  font-size: 0.84rem;
}

.dashboard-page .settings-meta-chip strong {
  font-size: 1rem;
}

.dashboard-page .settings-actions {
  display: flex;
  justify-content: flex-start;
}

.dashboard-page .settings-preview-card {
  --salon-preview-primary: var(--portal-accent);
  --salon-preview-accent: var(--salon-accent-alt, #ecc2b5);
  display: grid;
  gap: 18px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(82, 50, 61, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(252, 246, 248, 0.86));
  box-shadow: var(--portal-shadow-md);
}

.dashboard-page .settings-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.dashboard-page .settings-preview-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard-page .settings-preview-logo {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--salon-preview-primary) 0%, var(--salon-preview-accent) 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 12px 24px rgba(79, 45, 57, 0.18);
}

.dashboard-page .settings-preview-brand strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.08rem;
}

.dashboard-page .settings-preview-brand span,
.dashboard-page .settings-preview-description {
  color: var(--portal-muted);
  line-height: 1.7;
}

.dashboard-page .settings-grid-inner {
  margin-top: 0;
}

.dashboard-page .settings-website-block {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(82, 50, 61, 0.08);
  background: rgba(255, 255, 255, 0.64);
}

.dashboard-page .settings-website-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.dashboard-page .settings-website-head span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--portal-text);
}

.dashboard-page .settings-website-head p,
.dashboard-page #websiteStatusNote,
.dashboard-page #websiteLink[aria-disabled="true"] {
  margin: 0;
  color: var(--portal-muted);
  line-height: 1.55;
}

.dashboard-page #websiteLink[aria-disabled="true"] {
  cursor: default;
  text-decoration: none;
}

.dashboard-page .btn.is-disabled {
  opacity: 0.72;
}

@media (max-width: 760px) {
  .dashboard-page .overview-trend-meta,
  .dashboard-page .settings-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-page .overview-chart-legend,
  .dashboard-page .settings-preview-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

.dashboard-page .settings-hub {
  gap: 18px;
}

.dashboard-page .tab-pane.settings-hub {
  display: none;
}

.dashboard-page .tab-pane.settings-hub.active {
  display: grid;
}

.dashboard-page .settings-hub-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 18px;
  align-items: start;
}

.dashboard-page .settings-hub-head h3 {
  margin: 4px 0 8px;
  font-size: 24px;
}

.dashboard-page .settings-hub-head span {
  color: var(--vensa-muted, #71717a);
  font-size: 14px;
}

.dashboard-page .settings-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--vensa-line, #e5e7eb);
  border-radius: 14px;
  background: #fff;
}

.dashboard-page .settings-search svg {
  width: 18px;
  height: 18px;
  color: #71717a;
}

.dashboard-page .settings-search input {
  border: 0;
  min-height: 46px;
  padding: 0;
  box-shadow: none;
}

.dashboard-page .settings-accordion-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--vensa-line, #e5e7eb);
  border-radius: 18px;
  background: #fff;
}

.dashboard-page .settings-accordion {
  border-bottom: 1px solid var(--vensa-line, #e5e7eb);
}

.dashboard-page .settings-accordion:last-child {
  border-bottom: 0;
}

.dashboard-page .settings-accordion summary {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 22px;
  gap: 16px;
  align-items: center;
  min-height: 86px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
}

.dashboard-page .settings-accordion summary::-webkit-details-marker {
  display: none;
}

.dashboard-page .settings-accordion summary > svg {
  width: 18px;
  height: 18px;
  transition: transform 160ms ease;
}

.dashboard-page .settings-accordion[open] summary > svg {
  transform: rotate(180deg);
}

.dashboard-page .settings-accordion-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: #fdf2f8;
  color: #ec4899;
}

.dashboard-page .settings-summary-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.dashboard-page .settings-summary-copy strong {
  color: #18181b;
  font-size: 15px;
}

.dashboard-page .settings-summary-copy small,
.dashboard-page .settings-summary-meta {
  color: #71717a;
  font-size: 13px;
  line-height: 1.45;
}

.dashboard-page .settings-summary-meta {
  text-align: right;
  white-space: nowrap;
}

.dashboard-page .settings-section-content {
  display: grid;
  gap: 16px;
  padding: 0 20px 20px 84px;
}

.dashboard-page .settings-group-title {
  margin-top: 4px;
  color: #18181b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-page .settings-inline-list,
.dashboard-page .settings-status-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-page .settings-inline-list span,
.dashboard-page .settings-status-list span,
.dashboard-page .settings-columns > div {
  min-height: 42px;
  padding: 12px;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  background: #fafafa;
  color: #3f3f46;
  font-size: 13px;
}

.dashboard-page .settings-status-list span {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.dashboard-page .settings-status-list strong {
  color: #71717a;
  font-size: 12px;
}

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

.dashboard-page .settings-columns > div {
  display: grid;
  gap: 8px;
}

.dashboard-page .settings-columns strong {
  color: #18181b;
}

.dashboard-page .settings-columns span {
  color: #71717a;
}

.dashboard-page .settings-documents-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  background: #fafafa;
}

.dashboard-page .settings-documents-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.dashboard-page .settings-documents-head div {
  display: grid;
  gap: 4px;
}

.dashboard-page .settings-documents-head strong {
  color: #18181b;
}

.dashboard-page .settings-documents-head span {
  color: #71717a;
  font-size: 13px;
}

.dashboard-page .settings-documents-panel .documents-grid {
  margin-top: 0;
}

@media (max-width: 980px) {
  .dashboard-page .settings-hub-head {
    grid-template-columns: 1fr;
  }

  .dashboard-page .settings-accordion summary {
    grid-template-columns: 42px minmax(0, 1fr) 20px;
  }

  .dashboard-page .settings-summary-meta {
    display: none;
  }

  .dashboard-page .settings-section-content {
    padding-left: 20px;
  }

  .dashboard-page .settings-documents-head {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .dashboard-page .settings-inline-list,
  .dashboard-page .settings-status-list,
  .dashboard-page .settings-columns {
    grid-template-columns: 1fr;
  }
}

/* Mobile sidebar layering after removing bottom navigation */
.dashboard-page .layout {
  z-index: auto;
}

@media (max-width: 980px) {
  .dashboard-page {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .dashboard-page .layout {
    padding-bottom: 14px;
    z-index: auto;
  }

  .dashboard-page .sidebar {
    z-index: 70;
  }

  .dashboard-page .mobile-backdrop {
    z-index: 60;
  }

  .dashboard-page .mobile-menu-btn {
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 80;
  }
}

@media (max-width: 700px) {
  .dashboard-page .mobile-menu-btn {
    left: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.dashboard-page .main,
.dashboard-page .left-col,
.dashboard-page .right-col,
.dashboard-page .panel,
.dashboard-page .table-wrap {
  min-width: 0;
}

@media (min-width: 981px) {
  .dashboard-page .layout {
    align-items: stretch;
  }

  .dashboard-page .sidebar {
    position: static;
    top: auto;
    height: auto;
    min-height: calc(100vh - 48px);
    overflow: visible;
    overscroll-behavior: auto;
  }
}

@media (max-width: 980px) {
  .dashboard-page .sidebar {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 96px;
  }

  .dashboard-page .topbar-right {
    width: 100%;
  }

  .dashboard-page .topbar-right > * {
    max-width: 100%;
  }

  .dashboard-page .quick-tab-link,
  .dashboard-page #previewBookingLink {
    flex: 1 1 150px;
  }
}

@media (max-width: 700px) {
  .dashboard-page .data-table {
    min-width: 560px;
  }

  .dashboard-page .client-detail-head,
  .dashboard-page .client-history-item,
  .dashboard-page .document-card {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-page .client-detail-metrics {
    grid-template-columns: 1fr;
  }

  .dashboard-page .table-actions .btn {
    flex: 1 1 110px;
  }

  .app-modal {
    padding: 10px;
    align-items: end;
  }

  .app-modal-dialog {
    max-height: 92vh;
    border-radius: 24px 24px 18px 18px;
  }

  .app-modal-head,
  .app-modal-body,
  .app-modal-actions {
    padding: 16px;
  }

  .app-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .document-preview-frame {
    min-height: 58vh;
  }
}

/* Compact public booking flow */
.booking-spotlight-compact {
  align-content: start;
  gap: 14px;
}

.booking-spotlight-compact h1 {
  max-width: 620px;
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.booking-spotlight-compact > p {
  max-width: 520px;
}

.booking-mini-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.booking-mini-steps span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(82, 50, 61, 0.08);
  color: var(--portal-accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

.booking-card-shell {
  min-width: 0;
  width: 100%;
}

.booking-step-pane {
  animation: bookingPaneIn 240ms ease both;
}

@keyframes bookingPaneIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.booking-progress-step.is-complete::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 6px;
  display: inline-block;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.booking-service-card.is-selected,
.booking-slot-card.is-selected {
  transform: translateY(-2px);
  position: relative;
}

.booking-service-card.is-selected::after,
.booking-slot-card.is-selected::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--portal-accent);
  box-shadow: inset 0 0 0 5px #fff;
}

@media (max-width: 760px) {
  .booking-page .portal-header {
    position: static;
  }

  .booking-page .portal-topbar {
    padding-top: 12px;
    padding-bottom: 8px;
  }

  .booking-shell {
    gap: 12px;
    padding-top: 10px;
    grid-template-columns: minmax(0, 1fr);
  }

  .booking-spotlight-compact {
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(82, 50, 61, 0.06);
  }

  .booking-spotlight-compact .auth-badge {
    margin-bottom: 0;
  }

  .booking-spotlight-compact h1 {
    font-size: 1.85rem;
    line-height: 1.04;
  }

  .booking-spotlight-compact > p {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .booking-mini-steps {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .booking-mini-steps span {
    white-space: nowrap;
  }

  .booking-shell-head {
    gap: 12px;
  }

  .booking-shell-head h2 {
    font-size: 1.55rem;
  }

  .booking-page .portal-button {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.9rem;
  }

  .booking-shell-head .muted,
  .booking-step-pane-head p,
  .booking-payment-shell .booking-step-pane-head p,
  .auth-links {
    display: none;
  }

  .booking-progress {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .booking-progress-step {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 0.76rem;
  }

  .booking-calendar-shell,
  .booking-slots-shell,
  .booking-summary-card,
  .booking-payment-shell {
    padding: 12px;
    border-radius: 18px;
  }

  .booking-service-card,
  .booking-slot-card,
  .booking-payment-option {
    min-height: 72px;
    padding: 12px 13px;
    border-radius: 18px;
  }

  .booking-service-card {
    align-items: center;
    gap: 10px;
  }

  .booking-service-card strong,
  .booking-slot-copy strong,
  .booking-payment-option strong {
    margin-bottom: 4px;
    font-size: 0.94rem;
  }

  .booking-service-card p,
  .booking-slot-copy p,
  .booking-payment-option span {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .booking-service-card > span {
    font-size: 0.88rem;
  }

  .booking-contact-hint {
    display: block;
    font-size: 0.82rem;
  }

  .booking-consent-list {
    gap: 8px;
  }

  .booking-consent-item {
    grid-template-columns: 16px 1fr;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
  }

  .booking-consent-item input {
    width: 16px;
    height: 16px;
  }

  .booking-consent-item span {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .booking-date-card {
    min-height: 68px;
    padding: 10px 8px;
    border-radius: 16px;
  }

  .booking-date-card strong {
    font-size: 1.08rem;
  }

  .booking-date-card span,
  .booking-date-card small {
    font-size: 0.76rem;
  }

  .booking-calendar-head {
    gap: 10px;
    margin-bottom: 12px;
  }

  .booking-calendar-head h3 {
    font-size: 1.02rem;
  }

  .booking-calendar-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .booking-calendar-nav .portal-button {
    width: 100%;
  }

  .booking-slot-card {
    gap: 10px;
  }

  .booking-slot-time {
    min-height: 42px;
    border-radius: 14px;
    font-size: 0.92rem;
  }

  .booking-summary-grid {
    gap: 10px;
  }

  .booking-summary-grid div {
    padding: 11px 12px;
    border-radius: 14px;
  }

  .booking-summary-grid span {
    margin-bottom: 6px;
    font-size: 0.75rem;
  }

  .booking-summary-grid strong {
    font-size: 0.92rem;
  }

  .booking-payment-grid {
    gap: 10px;
  }

  .booking-payment-option {
    min-height: 0;
  }

  .booking-nav .portal-button {
    min-width: 0;
    flex: 1 1 0;
  }
}

@media (max-width: 420px) {
  .booking-page .portal-topbar {
    padding-top: 10px;
    padding-bottom: 6px;
  }

  .booking-shell-head h2 {
    font-size: 1.38rem;
  }

  .booking-progress {
    gap: 6px;
  }

  .booking-progress-step {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.72rem;
  }

  .booking-date-grid {
    gap: 8px;
  }

  .booking-service-card,
  .booking-slot-card,
  .booking-payment-option {
    padding: 11px 12px;
  }
}

/* Public salon website */
.salon-page {
  --salon-section-gap: clamp(18px, 4vw, 28px);
}

.salon-public-main {
  position: relative;
  z-index: 1;
  padding-bottom: 52px;
}

.salon-public-header .portal-button {
  white-space: nowrap;
}

.salon-hero {
  min-height: calc(100vh - 116px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.55fr);
  gap: var(--salon-section-gap);
  align-items: center;
  padding-top: 26px;
  padding-bottom: 34px;
}

.salon-hero-copy,
.salon-hero-card,
.salon-about-card,
.salon-contact-card,
.salon-service-card {
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: var(--portal-surface);
  box-shadow: var(--portal-shadow-lg);
  backdrop-filter: blur(18px);
}

.salon-hero-copy {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 5vw, 44px);
  border-radius: 34px;
}

.salon-hero-copy h1 {
  margin: 0;
  max-width: 840px;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.salon-hero-copy p {
  max-width: 680px;
  margin: 0;
  color: var(--portal-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.salon-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.salon-hero-card {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  padding: 24px;
  border-radius: 30px;
}

.salon-hero-logo {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: linear-gradient(145deg, var(--portal-accent-strong), var(--salon-accent-alt, #ecc2b5));
  color: #fff;
  font-size: 2.4rem;
  font-weight: 800;
  box-shadow: 0 18px 36px rgba(79, 45, 57, 0.18);
  overflow: hidden;
}

.salon-hero-logo.has-logo {
  background: #fff;
}

.salon-hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.salon-hero-card strong {
  margin-top: 6px;
  font-size: 1.2rem;
}

.salon-hero-card span,
.salon-service-card span,
.salon-contact-card p,
.salon-about-card p {
  color: var(--portal-muted);
  line-height: 1.7;
}

.salon-inline-link {
  color: var(--portal-accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.salon-public-section {
  display: grid;
  gap: 20px;
  padding-top: 34px;
  padding-bottom: 18px;
}

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

.salon-service-card {
  display: grid;
  gap: 10px;
  min-height: 180px;
  padding: 20px;
  border-radius: 24px;
  align-content: start;
}

.salon-service-card strong {
  font-size: 1.12rem;
  line-height: 1.35;
}

.salon-service-card p {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--portal-text);
}

.salon-service-card .salon-inline-link {
  margin-top: auto;
}

.salon-about-section {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  align-items: start;
}

.salon-about-card,
.salon-contact-card {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 30px;
}

.salon-about-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.salon-about-card p,
.salon-contact-card p {
  margin: 0;
}

.salon-contact-card a:not(.portal-button) {
  color: var(--portal-accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.salon-content-card {
  max-width: 860px;
  padding: clamp(22px, 4vw, 36px);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(78, 43, 54, 0.10);
  box-shadow: 0 24px 70px rgba(76, 39, 52, 0.10);
  color: var(--portal-text);
  line-height: 1.8;
  white-space: normal;
}

.salon-empty {
  min-height: 100vh;
  display: grid;
  gap: 24px;
  align-content: center;
}

@media (max-width: 980px) {
  .salon-hero,
  .salon-about-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .salon-hero {
    min-height: auto;
    padding-top: 14px;
  }

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

@media (max-width: 760px) {
  .salon-page .portal-header {
    position: static;
  }

  .salon-page .portal-topbar {
    align-items: stretch;
    padding-top: 12px;
    padding-bottom: 8px;
  }

  .salon-public-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .salon-page .portal-actions {
    width: 100%;
  }

  .salon-page .portal-actions .portal-button {
    width: 100%;
  }

  .salon-hero-copy,
  .salon-hero-card,
  .salon-about-card,
  .salon-contact-card,
  .salon-service-card {
    border-radius: 22px;
    padding: 16px;
  }

  .salon-hero-copy h1 {
    font-size: 2.05rem;
    line-height: 1.04;
  }

  .salon-hero-copy p {
    font-size: 0.96rem;
  }

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

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

  .salon-hero-logo {
    width: 82px;
    height: 82px;
    border-radius: 22px;
    font-size: 1.8rem;
  }
}

/* Unified responsive layer */
.dashboard-page,
.booking-page,
.auth-page {
  min-width: 0;
}

.dashboard-page img,
.booking-page img,
.auth-page img {
  max-width: 100%;
}

.dashboard-page .main,
.dashboard-page .topbar,
.dashboard-page .panel,
.dashboard-page .stats,
.dashboard-page .overview-summary-grid,
.dashboard-page .grid,
.dashboard-page .left-col,
.dashboard-page .right-col,
.dashboard-page .inline-form,
.dashboard-page .settings-grid,
.dashboard-page .documents-grid,
.dashboard-page .shopping-lists,
.booking-shell,
.booking-card-shell,
.booking-service-grid,
.booking-slot-grid,
.booking-date-grid,
.booking-summary-grid,
.booking-payment-grid {
  min-width: 0;
}

.app-modal-dialog,
.dashboard-page .panel,
.dashboard-page .stats .card,
.dashboard-page .overview-summary-panel,
.dashboard-page .client-detail-panel,
.dashboard-page .document-card,
.dashboard-page .shopping-card,
.dashboard-page .calendar-booking-card,
.dashboard-page .settings-preview-card,
.booking-card-shell,
.booking-calendar-shell,
.booking-slots-shell,
.booking-summary-card,
.booking-payment-shell,
.booking-service-card,
.booking-slot-card,
.booking-payment-option {
  border-color: rgba(82, 50, 61, 0.08);
}

@media (max-width: 980px) {
  .dashboard-page .layout {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
  }

  .dashboard-page .main {
    width: 100%;
    gap: 14px;
  }

  .dashboard-page .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
  }

  .dashboard-page .topbar h2 {
    font-size: clamp(1.55rem, 6vw, 2rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
  }

  .dashboard-page .topbar-note {
    max-width: none;
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .dashboard-page .topbar-right {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 10px;
  }

  .dashboard-page .search,
  .dashboard-page .alerts-menu {
    grid-column: 1 / -1;
  }

  .dashboard-page .search {
    min-width: 0;
    width: 100%;
  }

  .dashboard-page .topbar-right .btn {
    width: 100%;
  }

  .dashboard-page .stats,
  .dashboard-page .overview-summary-metrics,
  .dashboard-page .overview-trend-meta,
  .dashboard-page .settings-grid,
  .dashboard-page .booking-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-page .grid,
  .dashboard-page .overview-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-page .panel,
  .dashboard-page .stats .card,
  .dashboard-page .overview-summary-panel,
  .dashboard-page .calendar-booking-card,
  .dashboard-page .client-detail-panel,
  .dashboard-page .document-card,
  .dashboard-page .shopping-card,
  .dashboard-page .settings-preview-card {
    border-radius: 20px;
    padding: 16px;
  }

  .dashboard-page .panel-header,
  .dashboard-page .client-detail-head,
  .dashboard-page .settings-preview-head,
  .dashboard-page .settings-website-head,
  .dashboard-page .shopping-card-head,
  .dashboard-page .service-usage-card-head,
  .dashboard-page .calendar-summary,
  .dashboard-page .document-card {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-page .inline-form,
  .dashboard-page .settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-page .inline-form .btn,
  .dashboard-page .settings-field-full {
    grid-column: auto;
  }

  .dashboard-page input,
  .dashboard-page select,
  .dashboard-page textarea,
  .dashboard-page .btn {
    min-width: 0;
  }

  .dashboard-page .sidebar {
    width: min(88vw, 340px);
    max-width: calc(100vw - 28px);
    padding: 18px 14px 96px;
    border-radius: 0 24px 24px 0;
  }

  .dashboard-page .sidebar-card {
    border-radius: 20px;
    padding: 14px;
  }
}

@media (max-width: 760px) {
  .dashboard-page .topbar-right {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-page .panel-header h3 {
    font-size: 1.18rem;
  }

  .dashboard-page .stats .card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }

  .dashboard-page .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .dashboard-page .card-value {
    font-size: 1.55rem;
  }

  .dashboard-page .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .dashboard-page .data-table,
  .dashboard-page .data-table thead,
  .dashboard-page .data-table tbody,
  .dashboard-page .data-table tr,
  .dashboard-page .data-table th,
  .dashboard-page .data-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .dashboard-page .data-table {
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.92rem;
  }

  .dashboard-page .data-table thead {
    display: none;
  }

  .dashboard-page .data-table tbody {
    display: grid;
    gap: 12px;
  }

  .dashboard-page .data-table tbody tr {
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(82, 50, 61, 0.08);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--portal-shadow-md);
  }

  .dashboard-page .data-table tbody tr:nth-child(2n) td,
  .dashboard-page .data-table tbody tr:hover td {
    background: transparent;
  }

  .dashboard-page .data-table td {
    display: grid;
    grid-template-columns: minmax(104px, 0.42fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 9px 0;
    border: 0;
    overflow-wrap: anywhere;
  }

  .dashboard-page .data-table td::before {
    content: attr(data-label);
    color: var(--portal-muted);
    font-size: 0.78rem;
    font-weight: 800;
  }

  .dashboard-page .data-table td[colspan] {
    display: block;
    text-align: center;
  }

  .dashboard-page .data-table td[colspan]::before {
    display: none;
  }

  .dashboard-page .table-actions,
  .dashboard-page .shopping-card-actions,
  .dashboard-page .inventory-alert-actions,
  .dashboard-page .overview-summary-actions,
  .dashboard-page .settings-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    width: 100%;
  }

  .dashboard-page .table-actions .btn,
  .dashboard-page .shopping-card-actions .btn,
  .dashboard-page .inventory-alert-actions .btn,
  .dashboard-page .overview-summary-actions .btn,
  .dashboard-page .settings-actions .btn {
    width: 100%;
  }

  .dashboard-page .settings-website-head .btn {
    width: 100%;
  }

  .dashboard-page .availability-row,
  .dashboard-page .calendar-slot,
  .dashboard-page .overview-list-item,
  .dashboard-page .overview-list-item.is-compact {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-page .settings-color-row {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .dashboard-page .alerts-panel {
    top: auto;
    right: 10px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    left: 10px;
    width: auto;
    max-height: min(72vh, 560px);
    overflow: auto;
    border-radius: 22px;
  }

  .app-modal {
    padding: 0;
    align-items: end;
  }

  .app-modal-dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
  }

  .app-modal-head,
  .app-modal-body,
  .app-modal-actions {
    padding: 16px;
  }

  .app-modal-head h3 {
    font-size: 1.14rem;
  }

  .app-modal-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .modal-form {
    gap: 12px;
  }

  .modal-field input,
  .modal-field textarea,
  .modal-field select {
    min-height: 48px;
  }
}

@media (max-width: 420px) {
  .dashboard-page .layout {
    padding: 10px;
  }

  .dashboard-page .panel,
  .dashboard-page .stats .card,
  .dashboard-page .overview-summary-panel,
  .dashboard-page .calendar-booking-card,
  .dashboard-page .client-detail-panel,
  .dashboard-page .document-card,
  .dashboard-page .shopping-card,
  .dashboard-page .settings-preview-card {
    padding: 14px;
    border-radius: 18px;
  }

  .dashboard-page .data-table td {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .dashboard-page .mobile-menu-btn {
    right: 10px;
    left: auto;
  }
}

/* Dashboard density tuning */
.dashboard-page {
  font-size: 15px;
}

.dashboard-page .layout {
  width: 100%;
  max-width: 100%;
  gap: 18px;
  padding: 18px;
  padding-bottom: 18px;
}

.dashboard-page .sidebar {
  gap: 16px;
  padding: 18px 14px;
  border-radius: 24px;
  top: 18px;
  height: auto;
  min-height: calc(100vh - 36px);
}

.dashboard-page .brand {
  gap: 12px;
  padding: 6px 8px;
  border-radius: 16px;
}

.dashboard-page .brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.dashboard-page .brand h1 {
  font-size: 18px;
}

.dashboard-page .brand p,
.dashboard-page .card-title,
.dashboard-page .card-note,
.dashboard-page .panel-header p,
.dashboard-page .data-table,
.dashboard-page .footer-note,
.dashboard-page .client-detail-head span,
.dashboard-page .client-detail-head small,
.dashboard-page .client-detail-notes p,
.dashboard-page .client-detail-notes small,
.dashboard-page .client-history-item span {
  font-size: 12.5px;
}

.dashboard-page .menu {
  gap: 6px;
}

.dashboard-page .menu-item {
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  font-size: 14px;
}

.dashboard-page .menu-item svg,
.dashboard-page .mobile-menu-btn svg,
.dashboard-page .search svg,
.dashboard-page .icon-box svg,
.portal-brand-mark svg,
.dashboard-page .brand-icon svg {
  width: 16px;
  height: 16px;
}

.dashboard-page .btn {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 13px;
  font-size: 13px;
}

.dashboard-page .main,
.dashboard-page .overview-summary-panel,
.dashboard-page .service-usage-shell,
.dashboard-page .shopping-items {
  gap: 16px;
}

.dashboard-page .topbar {
  gap: 14px;
  padding: 4px 2px;
}

.dashboard-page .topbar h2 {
  font-size: 28px;
}

.dashboard-page .topbar-note {
  font-size: 13px;
}

.dashboard-page .search input,
.dashboard-page input,
.dashboard-page select,
.dashboard-page textarea {
  min-height: 42px;
  font-size: 14px;
}

.dashboard-page .stats,
.dashboard-page .grid,
.dashboard-page .overview-summary-grid,
.dashboard-page .left-col,
.dashboard-page .right-col,
.dashboard-page .documents-grid,
.dashboard-page .shopping-lists {
  gap: 12px;
}

.dashboard-page .stats .card,
.dashboard-page .panel,
.dashboard-page .overview-summary-panel,
.dashboard-page .client-detail-panel,
.dashboard-page .document-card,
.dashboard-page .shopping-card,
.dashboard-page .calendar-booking-card,
.dashboard-page .settings-preview-card {
  border-radius: 18px;
}

.dashboard-page .stats .card,
.dashboard-page .panel {
  padding: 18px;
}

.dashboard-page .icon-box {
  width: 48px;
  height: 48px;
  border-radius: 15px;
}

.dashboard-page .icon-box svg {
  width: 20px;
  height: 20px;
}

.dashboard-page .card-value {
  margin: 4px 0 6px;
  font-size: 24px;
}

.dashboard-page .overview-summary-date {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.dashboard-page .overview-summary-metric {
  gap: 4px;
  padding: 13px 14px;
  border-radius: 16px;
}

.dashboard-page .overview-summary-metric strong {
  font-size: 1.55rem;
}

.dashboard-page .overview-list-item,
.dashboard-page .inventory-alert-card,
.dashboard-page .client-detail-metrics div,
.dashboard-page .client-detail-notes,
.dashboard-page .client-history-item,
.dashboard-page .document-card,
.dashboard-page .shopping-item,
.dashboard-page .empty-state {
  border-radius: 16px;
}

.dashboard-page .overview-list-item,
.dashboard-page .inventory-alert-card {
  padding: 14px;
}

.dashboard-page .overview-list-key {
  min-height: 42px;
  border-radius: 14px;
  font-size: 13px;
}

.dashboard-page .panel-header {
  margin-bottom: 14px;
}

.dashboard-page .panel-header h3 {
  font-size: 19px;
}

.dashboard-page .table-wrap {
  border-radius: 14px;
}

.dashboard-page .data-table th,
.dashboard-page .data-table td {
  padding: 9px 10px;
}

.dashboard-page .badge {
  padding: 4px 8px;
  font-size: 11px;
}

.dashboard-page .table-actions .btn,
.dashboard-page .shopping-card-actions .btn {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.dashboard-page .client-detail-panel {
  gap: 14px;
  padding: 16px;
}

.dashboard-page .client-detail-head h4 {
  font-size: 1.18rem;
}

.dashboard-page .client-detail-metrics div,
.dashboard-page .client-detail-notes,
.dashboard-page .client-history-item,
.dashboard-page .document-card {
  padding: 12px 14px;
}

.dashboard-page .shopping-card-head h4,
.dashboard-page .document-card h4 {
  font-size: 1rem;
}

.dashboard-page .shopping-item {
  gap: 10px;
  padding: 10px 12px;
}

.dashboard-page .shopping-item input {
  width: 16px;
  height: 16px;
}

.dashboard-page .mobile-menu-btn {
  padding: 9px 14px;
  font-size: 13px;
}

@media (max-width: 980px) {
  .dashboard-page {
    font-size: 14px;
  }

  .dashboard-page .layout {
    gap: 12px;
    padding: 12px;
  }

  .dashboard-page .sidebar {
    width: min(84vw, 320px);
    max-width: calc(100vw - 24px);
    padding: 16px 12px 88px;
    border-radius: 0 20px 20px 0;
  }

  .dashboard-page .topbar h2 {
    font-size: clamp(1.4rem, 5.4vw, 1.85rem);
  }

  .dashboard-page .panel,
  .dashboard-page .stats .card,
  .dashboard-page .overview-summary-panel,
  .dashboard-page .calendar-booking-card,
  .dashboard-page .client-detail-panel,
  .dashboard-page .document-card,
  .dashboard-page .shopping-card,
  .dashboard-page .settings-preview-card {
    padding: 14px;
    border-radius: 16px;
  }

  .dashboard-page .btn,
  .dashboard-page input,
  .dashboard-page select,
  .dashboard-page textarea {
    min-height: 40px;
    font-size: 13px;
  }
}

@media (min-width: 981px) {
  .dashboard-page .layout {
    grid-template-columns: 22% minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .dashboard-page .topbar {
    gap: 12px;
  }

  .dashboard-page .panel-header h3 {
    font-size: 1.06rem;
  }

  .dashboard-page .stats .card {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    padding: 13px;
  }

  .dashboard-page .icon-box {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .dashboard-page .card-value {
    font-size: 1.35rem;
  }

  .dashboard-page .data-table {
    font-size: 0.86rem;
  }

  .dashboard-page .data-table tbody {
    gap: 10px;
  }

  .dashboard-page .data-table tbody tr {
    padding: 10px;
    border-radius: 16px;
  }

  .dashboard-page .data-table td {
    grid-template-columns: minmax(94px, 0.38fr) minmax(0, 1fr);
    gap: 10px;
    padding: 7px 0;
  }

  .dashboard-page .data-table td::before {
    font-size: 0.72rem;
  }

  .dashboard-page .table-actions,
  .dashboard-page .shopping-card-actions,
  .dashboard-page .inventory-alert-actions,
  .dashboard-page .overview-summary-actions,
  .dashboard-page .settings-actions {
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .dashboard-page .layout {
    padding: 8px;
  }

  .dashboard-page .panel,
  .dashboard-page .stats .card,
  .dashboard-page .overview-summary-panel,
  .dashboard-page .calendar-booking-card,
  .dashboard-page .client-detail-panel,
  .dashboard-page .document-card,
  .dashboard-page .shopping-card,
  .dashboard-page .settings-preview-card {
    padding: 12px;
    border-radius: 15px;
  }

  .dashboard-page .menu-item {
    padding: 10px 11px;
    font-size: 13px;
  }

  .dashboard-page .btn,
  .dashboard-page input,
  .dashboard-page select,
  .dashboard-page textarea {
    min-height: 38px;
  }

  .dashboard-page .mobile-menu-btn {
    padding: 8px 12px;
  }
}

/* Topbar quick tabs */
.dashboard-page .topbar-right {
  align-items: flex-start;
  gap: 8px;
}

.dashboard-page .topbar-right .search {
  flex: 1 1 240px;
}

.dashboard-page .topbar-right .alerts-menu {
  flex: 0 0 auto;
}

.dashboard-page .topbar-right .quick-tab-link,
.dashboard-page .topbar-right #previewBookingLink {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
}

.dashboard-page .topbar-right .quick-tab-link {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(82, 50, 61, 0.08);
}

.dashboard-page .topbar-right .quick-tab-link.active {
  background: rgba(222, 138, 160, 0.16);
  border-color: rgba(222, 138, 160, 0.22);
  color: var(--portal-accent-strong);
}

.dashboard-page .topbar-right #previewBookingLink {
  background: rgba(250, 244, 246, 0.9);
}

@media (max-width: 980px) {
  .dashboard-page .topbar-right {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
  }

  .dashboard-page .topbar-right .search,
  .dashboard-page .topbar-right .alerts-menu {
    flex: 1 1 100%;
  }

  .dashboard-page .topbar-right .quick-tab-link,
  .dashboard-page .topbar-right #previewBookingLink {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .dashboard-page .topbar-right .quick-tab-link,
  .dashboard-page .topbar-right #previewBookingLink {
    min-height: 32px;
    padding: 0 11px;
    font-size: 11.5px;
  }
}

@media (max-width: 420px) {
  .dashboard-page .topbar-right {
    gap: 6px;
  }

  .dashboard-page .topbar-right .quick-tab-link,
  .dashboard-page .topbar-right #previewBookingLink {
    min-height: 30px;
    padding: 0 10px;
    font-size: 11px;
  }
}

@media (max-width: 760px) {
  html,
  body,
  .dashboard-page,
  .dashboard-page .layout,
  .dashboard-page .main,
  .dashboard-page .topbar,
  .dashboard-page .topbar-right,
  .dashboard-page .panel,
  .dashboard-page .stats,
  .dashboard-page .overview-summary-grid,
  .dashboard-page .grid,
  .dashboard-page .left-col,
  .dashboard-page .right-col,
  .dashboard-page .table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .dashboard-page .search,
  .dashboard-page .alerts-menu,
  .dashboard-page .calendar-field,
  .dashboard-page .settings-meta-chip {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 1 1 100%;
  }

  .dashboard-page .data-table,
  .dashboard-page .data-table tbody,
  .dashboard-page .data-table tr,
  .dashboard-page .data-table td,
  .dashboard-page .availability-grid,
  .dashboard-page .availability-row,
  .dashboard-page .calendar-slot-list,
  .dashboard-page .calendar-slot {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .dashboard-page .quick-tab-link,
  .dashboard-page #previewBookingLink,
  .dashboard-page .table-actions .btn,
  .dashboard-page .shopping-card-actions .btn,
  .booking-nav .portal-button {
    min-width: 0;
  }
}

.dashboard-page .side-footer {
  margin-top: 6px;
  gap: 6px;
}

.dashboard-page #logoutBtn {
  justify-content: flex-start;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  background: rgba(222, 138, 160, 0.16);
  border: 1px solid rgba(222, 138, 160, 0.22);
  color: #8f4a5b;
  box-shadow: none;
}

.dashboard-page #logoutBtn:hover {
  background: rgba(222, 138, 160, 0.22);
  border-color: rgba(222, 138, 160, 0.28);
}

@media (max-width: 980px) {
  .dashboard-page .sidebar {
    background: #ffffff;
    backdrop-filter: none;
    border: 1px solid rgba(82, 50, 61, 0.08);
    box-shadow: 0 22px 52px rgba(53, 41, 34, 0.14);
  }

  .dashboard-page .brand:hover,
  .dashboard-page .brand.active,
  .dashboard-page .menu-item,
  .dashboard-page #logoutBtn {
    box-shadow: none;
  }

  .dashboard-page .menu-item {
    background: #ffffff;
    border-color: rgba(82, 50, 61, 0.08);
  }

  .dashboard-page .menu-item:hover,
  .dashboard-page .menu-item.active {
    background: rgba(248, 241, 244, 0.96);
    border-color: rgba(222, 138, 160, 0.18);
  }

  .dashboard-page .mobile-backdrop {
    background: rgba(53, 41, 34, 0.18);
    backdrop-filter: blur(2px);
  }
}

@media (max-width: 760px) {
  .dashboard-page #logoutBtn {
    min-height: 40px;
    font-size: 13px;
  }
}

/* === Vensa Beauty CRM refresh === */
.dashboard-page {
  --vensa-bg: #fdfbfc;
  --vensa-surface: #ffffff;
  --vensa-soft: #fff5f8;
  --vensa-soft-2: #faf7f8;
  --vensa-line: #eeeeee;
  --vensa-text: #201b20;
  --vensa-muted: #7b747b;
  --vensa-pink: #ef5b9a;
  --vensa-pink-soft: #ffe9f2;
  --vensa-pink-border: #ffd4e4;
  --vensa-green: #39b980;
  --vensa-green-soft: #e9f9f1;
  --vensa-orange: #f2a65a;
  --vensa-orange-soft: #fff4e8;
  --vensa-red: #e86b82;
  --vensa-red-soft: #ffecef;
  --vensa-shadow: 0 18px 50px rgba(36, 28, 33, 0.07);
  --vensa-shadow-card: 0 12px 30px rgba(36, 28, 33, 0.055);
  background: var(--vensa-bg) !important;
  color: var(--vensa-text);
}

.dashboard-page::before,
.dashboard-page::after {
  display: none !important;
}

.dashboard-page .layout {
  grid-template-columns: 244px minmax(0, 1fr) !important;
  gap: 0;
  min-height: 100vh;
  padding: 0;
  background: var(--vensa-bg);
}

.dashboard-page .sidebar {
  top: 0;
  height: 100vh;
  min-height: 0;
  border-radius: 0;
  border: 0;
  border-right: 1px solid var(--vensa-line);
  box-shadow: none;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  padding: 28px 20px;
}

.dashboard-page .brand {
  padding: 0 8px 16px;
  border-radius: 0;
  align-items: center;
  box-shadow: none !important;
  background: transparent !important;
}

.dashboard-page .brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--vensa-pink) !important;
  box-shadow: none;
  color: #fff;
  font-weight: 800;
}

.dashboard-page .brand h1 {
  font-size: 20px;
  letter-spacing: 0.18em;
  line-height: 1;
}

.dashboard-page .brand p {
  margin-top: 4px;
  color: var(--vensa-muted);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dashboard-page .menu-group-title {
  display: none;
}

.dashboard-page .menu {
  gap: 6px;
}

.dashboard-page .menu-item {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none !important;
  color: #4d474d;
  font-size: 13px;
  font-weight: 600;
}

.dashboard-page .menu-item svg {
  width: 16px;
  height: 16px;
  color: #837a82;
}

.dashboard-page .menu-item:hover,
.dashboard-page .menu-item.active {
  background: var(--vensa-pink-soft);
  border-color: transparent;
  color: var(--vensa-pink);
}

.dashboard-page .menu-item:hover svg,
.dashboard-page .menu-item.active svg {
  color: var(--vensa-pink);
}

.dashboard-page .side-footer {
  margin-top: auto;
  gap: 14px;
}

.dashboard-page .sidebar-account {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 8px;
  border-top: 1px solid var(--vensa-line);
}

.dashboard-page .sidebar-account span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--vensa-pink);
  color: #fff;
  font-weight: 800;
}

.dashboard-page .sidebar-account p {
  color: #4f4950;
  font-size: 13px;
  font-weight: 600;
}

.dashboard-page #logoutBtn {
  min-height: 36px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--vensa-line);
  color: var(--vensa-muted);
}

.dashboard-page .main {
  width: 100%;
  max-width: 1280px;
  gap: 18px;
  padding: 28px 32px 36px;
  margin: 0 auto;
}

.dashboard-page .topbar {
  align-items: center;
  padding: 0;
}

.dashboard-page .eyebrow {
  display: none;
}

.dashboard-page .topbar h2 {
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: 0;
}

.dashboard-page .topbar-note {
  margin-top: 7px;
  color: var(--vensa-muted);
  font-size: 13px;
}

.dashboard-page .topbar-right {
  align-items: center;
  gap: 12px;
}

.dashboard-page .search {
  min-width: 280px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #e8e8e8;
  background: #fff;
  box-shadow: none;
  padding: 0 12px;
}

.dashboard-page .search input {
  min-height: 40px;
  padding: 0;
  font-size: 12px;
}

.dashboard-page .alerts-toggle,
.dashboard-page .icon-action {
  display: inline-grid;
  width: 40px;
  height: 40px;
  min-height: 40px;
  place-items: center;
  border-radius: 10px;
  border: 1px solid transparent;
  background: #fff;
  color: #4b444b;
  box-shadow: none;
  text-decoration: none;
  cursor: pointer;
}

.dashboard-page .icon-action svg,
.dashboard-page .alerts-toggle svg {
  width: 17px;
  height: 17px;
}

.dashboard-page .alerts-toggle:hover,
.dashboard-page .icon-action:hover {
  border-color: var(--vensa-pink-border);
  background: var(--vensa-pink-soft);
  color: var(--vensa-pink);
}

.dashboard-page .alerts-badge {
  top: -4px;
  right: -4px;
  background: var(--vensa-pink);
}

.dashboard-page .alerts-panel {
  border: 1px solid var(--vensa-line);
  border-radius: 18px;
  box-shadow: var(--vensa-shadow);
  background: #fff;
}

.dashboard-page .btn {
  min-height: 40px;
  border-radius: 10px;
  padding: 0 14px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
}

.dashboard-page .btn:hover {
  transform: none;
  box-shadow: none;
}

.dashboard-page .btn-primary {
  background: var(--vensa-pink);
  color: #fff;
}

.dashboard-page .btn-secondary {
  background: #fff;
  border: 1px solid var(--vensa-line);
  color: #3f3940;
}

.dashboard-page .stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-page .stats .card,
.dashboard-page .panel,
.dashboard-page .document-card,
.dashboard-page .shopping-card,
.dashboard-page .client-detail-panel,
.dashboard-page .settings-preview-card,
.dashboard-page .calendar-booking-card {
  border: 1px solid var(--vensa-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--vensa-shadow-card);
  backdrop-filter: none;
}

.dashboard-page .stats .card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  min-height: 138px;
  align-items: start;
  padding: 22px;
}

.dashboard-page .icon-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--vensa-pink-soft);
  color: var(--vensa-pink);
}

.dashboard-page .icon-box svg {
  width: 18px;
  height: 18px;
}

.dashboard-page .card-title {
  color: var(--vensa-muted);
  font-size: 13px;
  font-weight: 500;
}

.dashboard-page .card-value {
  margin: 14px 0 6px;
  color: #181418;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0;
}

.dashboard-page .card-note {
  color: var(--vensa-muted);
  font-size: 12px;
}

.dashboard-page .panel {
  padding: 20px;
}

.dashboard-page .panel-header {
  margin-bottom: 16px;
}

.dashboard-page .panel-header h3 {
  color: #1d181d;
  font-size: 18px;
  letter-spacing: 0;
}

.dashboard-page .panel-header p,
.dashboard-page .section-label {
  color: var(--vensa-muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: none;
}

.dashboard-page .panel-link {
  color: var(--vensa-pink);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.dashboard-page .panel-number {
  font-size: 25px;
  font-weight: 700;
}

.dashboard-page .beauty-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  gap: 18px;
}

.dashboard-page .dashboard-chart-panel,
.dashboard-page .dashboard-recent-panel {
  min-height: 250px;
}

.dashboard-page .table-wrap,
.dashboard-page .clean-table-wrap {
  border: 1px solid var(--vensa-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

.dashboard-page .data-table {
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  color: #342f34;
}

.dashboard-page .compact-table {
  min-width: 520px;
}

.dashboard-page .data-table th {
  background: #fff;
  color: #8a838a;
  font-size: 12px;
  font-weight: 600;
}

.dashboard-page .data-table th,
.dashboard-page .data-table td {
  border-bottom: 1px solid var(--vensa-line);
  padding: 13px 14px;
}

.dashboard-page .data-table tbody tr:nth-child(2n) td,
.dashboard-page .data-table tbody tr:hover td {
  background: #fff;
}

.dashboard-page .data-table tbody tr:last-child td {
  border-bottom: 0;
}

.dashboard-page .badge,
.dashboard-page .status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
}

.dashboard-page .status-confirmed {
  background: var(--vensa-pink-soft);
  color: var(--vensa-pink);
  border-color: var(--vensa-pink-border);
}

.dashboard-page .status-unconfirmed {
  background: #fdf2f8;
  color: #db2777;
  border-color: #fbcfe8;
}

.dashboard-page .status-pending {
  background: var(--vensa-orange-soft);
  color: #bd7430;
  border-color: #ffe0bf;
}

.dashboard-page .status-completed {
  background: var(--vensa-green-soft);
  color: #228f62;
  border-color: #ccefdc;
}

.dashboard-page .status-cancelled {
  background: var(--vensa-red-soft);
  color: #cf4961;
  border-color: #ffd2da;
}

.dashboard-page .task-list {
  display: grid;
  gap: 4px;
}

.dashboard-page .task-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 46px;
  border-bottom: 1px solid var(--vensa-line);
  color: #3c363c;
  font-size: 13px;
}

.dashboard-page .task-item:last-child {
  border-bottom: 0;
}

.dashboard-page .task-item input {
  width: 16px;
  height: 16px;
  min-height: 0;
  accent-color: var(--vensa-pink);
}

.dashboard-page .task-item small {
  color: var(--vensa-muted);
  font-size: 11px;
  white-space: nowrap;
}

.dashboard-page .overview-chart-shell {
  min-height: 188px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-page .overview-chart-svg {
  width: 100%;
  height: 210px;
}

.dashboard-page .overview-chart-area {
  fill: rgba(239, 91, 154, 0.10);
}

.dashboard-page .overview-chart-line.is-primary {
  stroke: var(--vensa-pink);
  stroke-width: 3;
}

.dashboard-page .overview-chart-grid {
  stroke: #f0eef0;
}

.dashboard-page .overview-chart-point.is-primary {
  fill: #fff;
  stroke: var(--vensa-pink);
}

.dashboard-page .overview-chart-label {
  fill: var(--vensa-muted);
  font-size: 11px;
}

.dashboard-page .view-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.dashboard-page .view-filters label,
.dashboard-page .calendar-field,
.dashboard-page .settings-field {
  display: grid;
  gap: 7px;
}

.dashboard-page .view-filters span,
.dashboard-page .calendar-field span {
  color: var(--vensa-muted);
  font-size: 11px;
  font-weight: 700;
}

.dashboard-page input,
.dashboard-page select,
.dashboard-page textarea {
  border: 1px solid var(--vensa-line);
  border-radius: 10px;
  background: #fff;
  color: var(--vensa-text);
  box-shadow: none;
}

.dashboard-page input:focus,
.dashboard-page select:focus,
.dashboard-page textarea:focus {
  border-color: var(--vensa-pink-border);
  box-shadow: 0 0 0 4px rgba(239, 91, 154, 0.11);
}

.dashboard-page .calendar-shell {
  display: grid;
  gap: 18px;
}

.dashboard-page .calendar-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.dashboard-page .calendar-top h3 {
  margin: 4px 0 6px;
  font-size: 21px;
}

.dashboard-page .calendar-week-label {
  color: #2f2930;
  font-size: 14px;
  font-weight: 700;
}

.dashboard-page .calendar-toolbar,
.dashboard-page .calendar-nav-buttons,
.dashboard-page .segmented-control {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dashboard-page .segmented-control {
  min-height: 40px;
  padding: 4px;
  border: 1px solid var(--vensa-line);
  border-radius: 12px;
  background: #fff;
}

.dashboard-page .segmented-control button,
.dashboard-page .inventory-tab,
.dashboard-page .pagination-number {
  min-height: 30px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--vensa-muted);
  padding: 0 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.dashboard-page .segmented-control button.active,
.dashboard-page .inventory-tab.active,
.dashboard-page .pagination-number.active {
  background: var(--vensa-pink-soft);
  color: var(--vensa-pink);
}

.dashboard-page .calendar-employee-filter select {
  width: 150px;
  min-height: 40px;
}

.dashboard-page .calendar-date-field {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 1px;
  opacity: 0;
  pointer-events: none;
}

.dashboard-page .calendar-agenda {
  display: block;
  min-width: 0;
}

.dashboard-page .calendar-agenda-viewport {
  position: relative;
  overflow: hidden;
  min-width: 0;
  touch-action: auto;
}

.dashboard-page .calendar-agenda-track {
  display: flex;
  align-items: flex-start;
  width: 100%;
  transform: translate3d(-100%, 0, 0);
  transition: transform 340ms cubic-bezier(0.22, 0.72, 0.24, 1);
  will-change: transform;
}

.dashboard-page .calendar-agenda-track.is-dragging {
  transition: none;
}

.dashboard-page .calendar-agenda-panel {
  flex: 0 0 100%;
  min-width: 0;
}

.dashboard-page .calendar-agenda-viewport.is-dragging .calendar-event {
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-page .calendar-agenda-track {
    transition-duration: 1ms;
  }
}

.dashboard-page .calendar-week-shell {
  display: grid;
  gap: 14px;
}

.dashboard-page .calendar-week-grid {
  display: grid;
  grid-template-columns: 64px repeat(var(--calendar-days), minmax(126px, 1fr));
  border: 1px solid var(--vensa-line);
  border-radius: 18px;
  max-height: min(72vh, 760px);
  overflow: auto;
  background: #fff;
  cursor: grab;
  overscroll-behavior: contain;
  scroll-behavior: auto;
  touch-action: none;
  -webkit-overflow-scrolling: touch;
  user-select: none;
}

.dashboard-page .calendar-week-grid.is-panning {
  cursor: grabbing;
}

.dashboard-page .calendar-week-grid.is-panning .calendar-event {
  pointer-events: none;
}

.dashboard-page .calendar-time-head,
.dashboard-page .calendar-day-head {
  min-height: 58px;
  border-bottom: 1px solid var(--vensa-line);
  background: #fff;
}

.dashboard-page .calendar-day-head {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  border-left: 1px solid var(--vensa-line);
}

.dashboard-page .calendar-day-head span {
  color: var(--vensa-muted);
  font-size: 11px;
}

.dashboard-page .calendar-day-head strong {
  font-size: 12px;
}

.dashboard-page .calendar-day-head.is-today {
  color: var(--vensa-pink);
  background: var(--vensa-soft);
}

.dashboard-page .calendar-hours {
  display: grid;
  grid-template-rows: repeat(var(--calendar-hour-count, 10), 56px);
  color: var(--vensa-muted);
  font-size: 11px;
}

.dashboard-page .calendar-hours span {
  min-height: 56px;
  padding: 8px 10px 0 0;
  text-align: right;
  border-bottom: 1px solid #f2f0f2;
}

.dashboard-page .calendar-day-column {
  position: relative;
  min-width: 126px;
  min-height: calc(var(--calendar-hour-count, 10) * 56px);
  border-left: 1px solid var(--vensa-line);
  background: #fff;
}

.dashboard-page .calendar-hour-line {
  display: block;
  height: 56px;
  border-bottom: 1px solid #f2f0f2;
}

.dashboard-page .calendar-event {
  position: absolute;
  left: 8px;
  right: 8px;
  z-index: 2;
  overflow: hidden;
  border-radius: 9px;
  border-width: 1px;
  border-style: solid;
  padding: 9px 10px;
  box-shadow: none;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

.dashboard-page .calendar-event:hover {
  filter: brightness(0.985);
}

.dashboard-page .calendar-event strong,
.dashboard-page .calendar-event span,
.dashboard-page .calendar-event small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-page .calendar-event span {
  margin-top: 2px;
  font-weight: 800;
}

.dashboard-page .calendar-event small {
  margin-top: 2px;
}

.dashboard-page .calendar-status-legend {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  color: var(--vensa-muted);
  font-size: 12px;
}

.dashboard-page .calendar-status-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dashboard-page .calendar-status-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
}

.dashboard-page .availability-editor {
  margin-top: 18px;
  border-top: 1px solid var(--vensa-line);
  padding-top: 16px;
}

.dashboard-page .availability-editor summary {
  cursor: pointer;
  color: var(--vensa-muted);
  font-size: 13px;
  font-weight: 700;
}

.dashboard-page .availability-grid {
  margin-top: 12px;
}

.dashboard-page .availability-row {
  border-color: var(--vensa-line);
  border-radius: 14px;
  background: #fff;
}

.dashboard-page .inventory-tabs {
  display: inline-flex;
  gap: 4px;
  width: fit-content;
  margin-bottom: 14px;
  padding: 4px;
  border: 1px solid var(--vensa-line);
  border-radius: 12px;
  background: #fff;
}

.dashboard-page .inventory-filters {
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.35fr);
}

.dashboard-page .inventory-categories-view {
  overflow: auto;
  border: 1px solid var(--vensa-line);
  border-radius: 14px;
}

.dashboard-page .inventory-helper {
  margin-top: 14px;
  color: var(--vensa-muted);
  font-size: 12px;
}

.dashboard-page .pagination-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  color: var(--vensa-muted);
  font-size: 12px;
}

.dashboard-page .pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-page .pagination-controls .icon-action {
  width: 34px;
  height: 34px;
  min-height: 34px;
  border-color: var(--vensa-line);
}

.dashboard-page .pagination-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.dashboard-page .empty-state {
  border: 1px solid var(--vensa-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
  color: var(--vensa-muted);
}

.dashboard-page .calendar-empty {
  margin-top: -2px;
}

@media (max-width: 1180px) {
  .dashboard-page .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .dashboard-page .calendar-top {
    display: grid;
  }
}

@media (max-width: 980px) {
  .dashboard-page .layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .dashboard-page .sidebar {
    border-right: 1px solid var(--vensa-line);
    border-radius: 0 22px 22px 0;
    box-shadow: var(--vensa-shadow);
  }

  .dashboard-page .main {
    padding: 22px 16px 84px;
  }

  .dashboard-page .topbar-right {
    width: 100%;
  }

  .dashboard-page .search {
    flex: 1 1 100%;
    width: 100%;
  }

  .dashboard-page .view-filters,
  .dashboard-page .inventory-filters {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .dashboard-page .topbar h2 {
    font-size: 21px;
  }

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

  .dashboard-page .stats .card {
    min-height: 112px;
  }

  .dashboard-page .calendar-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .dashboard-page .calendar-nav-buttons,
  .dashboard-page .segmented-control {
    width: 100%;
    justify-content: space-between;
  }

  .dashboard-page .calendar-employee-filter select,
  .dashboard-page #calendarAddAppointmentBtn {
    width: 100%;
  }

  .dashboard-page .calendar-week-grid {
    grid-template-columns: 54px repeat(var(--calendar-days), minmax(150px, 1fr));
  }

  .dashboard-page .data-table tbody tr {
    border-color: var(--vensa-line);
    background: #fff;
    box-shadow: none;
  }

  .dashboard-page .data-table td::before {
    color: var(--vensa-muted);
  }

  .dashboard-page .task-item {
    grid-template-columns: 20px minmax(0, 1fr);
  }

  .dashboard-page .task-item small {
    grid-column: 2;
    white-space: normal;
  }

  .dashboard-page .pagination-row {
    align-items: stretch;
    flex-direction: column;
  }
}

/* === Vensa SaaS system pass === */
.dashboard-page {
  --vensa-bg: #fafafb;
  --vensa-surface: #ffffff;
  --vensa-line: #ececf1;
  --vensa-text: #18181b;
  --vensa-muted: #71717a;
  --vensa-pink: #f25ba8;
  --vensa-pink-soft: #fdebf4;
  --vensa-pink-border: #f9cfe4;
  --vensa-green: #22c55e;
  --vensa-orange: #f59e0b;
  --vensa-red: #ef4444;
  --vensa-green-soft: #eafaf0;
  --vensa-orange-soft: #fff7e8;
  --vensa-red-soft: #fff0f1;
  --vensa-shadow: 0 18px 40px rgba(24, 24, 27, 0.06);
  --vensa-shadow-card: 0 10px 24px rgba(24, 24, 27, 0.045);
  background: #fafafb !important;
  color: var(--vensa-text);
}

.dashboard-page .layout {
  grid-template-columns: 232px minmax(0, 1fr) !important;
}

.dashboard-page .sidebar {
  border-right: 1px solid var(--vensa-line);
}

.dashboard-page .brand h1 {
  color: var(--vensa-text);
}

.dashboard-page .main {
  max-width: 1320px;
}

.dashboard-page .stats .card,
.dashboard-page .panel {
  border-color: var(--vensa-line);
  border-radius: 20px;
}

.dashboard-page .status-confirmed {
  background: var(--vensa-pink-soft);
  color: var(--vensa-pink);
  border-color: var(--vensa-pink-border);
}

.dashboard-page .status-pending {
  background: var(--vensa-orange-soft);
  color: var(--vensa-orange);
  border-color: #fed7aa;
}

.dashboard-page .status-completed {
  background: var(--vensa-green-soft);
  color: #16a34a;
  border-color: #bbf7d0;
}

.dashboard-page .status-cancelled {
  background: var(--vensa-red-soft);
  color: var(--vensa-red);
  border-color: #fecdd3;
}

.dashboard-page .detail-card {
  display: grid;
  gap: 18px;
}

.dashboard-page .detail-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--vensa-line);
  border-radius: 18px;
  background: #fff;
}

.dashboard-page .detail-card-head strong,
.dashboard-page .detail-card-head span {
  display: block;
}

.dashboard-page .detail-card-head strong {
  color: var(--vensa-text);
  font-size: 1.04rem;
}

.dashboard-page .detail-card-head span {
  margin-top: 4px;
  color: var(--vensa-muted);
  font-size: 0.88rem;
}

.dashboard-page .detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--vensa-line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.dashboard-page .detail-grid div {
  display: grid;
  gap: 6px;
  min-height: 74px;
  padding: 14px 16px;
  border-right: 1px solid var(--vensa-line);
  border-bottom: 1px solid var(--vensa-line);
}

.dashboard-page .detail-grid div:nth-child(2n) {
  border-right: 0;
}

.dashboard-page .detail-grid div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.dashboard-page .detail-grid span {
  color: var(--vensa-muted);
  font-size: 0.78rem;
}

.dashboard-page .detail-grid strong {
  color: var(--vensa-text);
  font-size: 0.92rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.dashboard-page .detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-page .mobile-next-appointment-panel,
.mobile-bottom-nav {
  display: none;
}

.dashboard-page .dashboard-chart-panel {
  display: none;
}

.dashboard-page .dashboard-recent-panel {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .dashboard-page {
    background: #fff !important;
  }

  .dashboard-page .layout {
    display: block;
    background: #fff;
  }

  .dashboard-page .main {
    padding: 22px 14px calc(92px + env(safe-area-inset-bottom, 0px));
  }

  .dashboard-page .mobile-menu-btn {
    display: none !important;
  }

  .dashboard-page .topbar {
    display: grid;
    gap: 16px;
  }

  .dashboard-page .topbar h2 {
    max-width: 260px;
    font-size: 20px;
  }

  .dashboard-page .topbar-right {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px 42px;
    gap: 8px;
  }

  .dashboard-page .search {
    min-width: 0;
  }

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

  .dashboard-page .stats .card {
    display: grid;
    min-height: 136px;
    padding: 14px;
    border-radius: 18px;
  }

  .dashboard-page .card-value {
    margin-top: 12px;
    font-size: 21px;
  }

  .dashboard-page .mobile-next-appointment-panel {
    display: block;
  }

  .dashboard-page .mobile-appointment-card {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--vensa-line);
    border-radius: 16px;
    background: #fff;
  }

  .dashboard-page .mobile-appointment-card strong,
  .dashboard-page .mobile-appointment-card span,
  .dashboard-page .mobile-appointment-card small {
    display: block;
  }

  .dashboard-page .mobile-appointment-card span {
    margin-top: 6px;
    font-weight: 700;
  }

  .dashboard-page .mobile-appointment-card small {
    margin-top: 4px;
    color: var(--vensa-muted);
  }

  .dashboard-page .dashboard-recent-panel,
  .dashboard-page .dashboard-tasks-panel {
    display: none;
  }

  .dashboard-page .panel,
  .dashboard-page .stats .card {
    box-shadow: none;
  }

  .dashboard-page .panel-header h3 {
    font-size: 16px;
  }

  .dashboard-page .data-table,
  .dashboard-page .data-table thead,
  .dashboard-page .data-table tbody,
  .dashboard-page .data-table tr,
  .dashboard-page .data-table th,
  .dashboard-page .data-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .dashboard-page .data-table thead {
    display: none;
  }

  .dashboard-page .data-table tbody {
    display: grid;
    gap: 12px;
  }

  .dashboard-page .data-table tbody tr {
    padding: 14px;
    border: 1px solid var(--vensa-line);
    border-radius: 18px;
    background: #fff;
  }

  .dashboard-page .data-table td {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
    padding: 8px 0;
    border: 0;
  }

  .dashboard-page .data-table td::before {
    content: attr(data-label);
    color: var(--vensa-muted);
    font-size: 11px;
    font-weight: 700;
  }

  .dashboard-page #inventoryList td[data-label="Kategoria"],
  .dashboard-page #inventoryList td[data-label="Cena netto"],
  .dashboard-page #inventoryList td[data-label="Warto��"],
  .dashboard-page #inventoryList td[data-label="Akcje"] {
    display: none;
  }

  .dashboard-page .calendar-top,
  .dashboard-page .calendar-toolbar {
    display: grid;
    justify-content: stretch;
    gap: 12px;
  }

  .dashboard-page .calendar-nav-buttons {
    display: grid;
    grid-template-columns: 40px 40px minmax(0, 1fr);
  }

  .dashboard-page .segmented-control {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-page .calendar-week-grid {
    grid-template-columns: 52px repeat(var(--calendar-days), minmax(230px, 1fr));
    border-radius: 18px;
    max-height: 62vh;
  }

  .dashboard-page .calendar-day-column {
    min-width: 230px;
  }

  .dashboard-page .calendar-event {
    min-height: 78px;
    padding: 12px;
  }

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

  .dashboard-page .detail-grid div,
  .dashboard-page .detail-grid div:nth-child(2n),
  .dashboard-page .detail-grid div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--vensa-line);
  }

  .dashboard-page .detail-grid div:last-child {
    border-bottom: 0;
  }

  .dashboard-page .detail-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    padding: 0 8px env(safe-area-inset-bottom, 0px);
    border-top: 1px solid var(--vensa-line);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    box-shadow: 0 -10px 30px rgba(24, 24, 27, 0.05);
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .mobile-bottom-nav .bottom-nav-link {
    position: relative;
    display: grid;
    place-items: center;
    gap: 4px;
    min-height: 66px;
    padding: 9px 4px 8px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: #52525b;
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-bottom-nav svg {
    width: 18px;
    height: 18px;
  }

  .mobile-bottom-nav .bottom-nav-link.active {
    color: var(--vensa-pink);
  }

  .dashboard-page.sidebar-open #sidebar {
    z-index: 10020;
  }

  .dashboard-page.sidebar-open .mobile-backdrop {
    z-index: 10010;
  }

  .dashboard-page.sidebar-open .mobile-bottom-nav,
  .dashboard-page.sidebar-open .cal-fab {
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 16px));
  }
}

@media (max-width: 760px) {
  .dashboard-page .topbar-right.toolbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px 42px;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .dashboard-page .topbar-right.toolbar-actions .search,
  .dashboard-page .topbar-right.toolbar-actions .alerts-menu {
    grid-column: auto;
    min-width: 0;
    max-width: none;
    flex: initial;
  }

  .dashboard-page .topbar-right.toolbar-actions .search {
    width: 100%;
  }

  .dashboard-page .topbar-right.toolbar-actions .alerts-menu {
    width: 42px;
  }

  .dashboard-page .topbar-right.toolbar-actions .alerts-toggle,
  .dashboard-page .topbar-right.toolbar-actions .quick-tab-link {
    width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
  }
}

/* === Tablet CRM dashboard workspace === */
.dashboard-page .tablet-quick-actions,
.dashboard-page .tablet-dashboard-shell {
  display: none;
}

@media (min-width: 768px) and (max-width: 1366px) {
  html,
  body {
    background: #F8F9FB;
  }

  .dashboard-page {
    --vensa-bg: #F8F9FB;
    --vensa-surface: #FFFFFF;
    --vensa-line: #EEF0F4;
    --vensa-text: #1F2937;
    --vensa-muted: #6B7280;
    --vensa-pink: #EC4899;
    --vensa-pink-soft: #FCE7F3;
    --vensa-pink-border: #FBCFE8;
    --vensa-green: #22C55E;
    --vensa-green-soft: #DCFCE7;
    --vensa-blue: #2563EB;
    --vensa-blue-soft: #DBEAFE;
    --vensa-orange: #F97316;
    --vensa-orange-soft: #FFEDD5;
    --vensa-gray-soft: #F3F4F6;
    --vensa-shadow-card: 0 12px 28px rgba(31, 41, 55, 0.06);
    background: #F8F9FB !important;
    color: #1F2937;
  }

  .dashboard-page .layout {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) !important;
    min-height: 100dvh;
    background: #F8F9FB;
  }

  .dashboard-page #sidebar {
    position: sticky !important;
    top: 0;
    left: 0;
    z-index: 90;
    width: 72px;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    transform: none !important;
    border: 0;
    border-right: 1px solid #EEF0F4;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
    padding: 18px 10px;
    transition: width 220ms cubic-bezier(.22,.72,.24,1), box-shadow 220ms ease;
  }

  .dashboard-page .brand {
    justify-content: center;
    min-height: 48px;
    padding: 0;
    gap: 12px;
  }

  .dashboard-page .brand-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 999px;
    background: #EC4899 !important;
  }

  .dashboard-page .brand > div:not(.brand-icon),
  .dashboard-page .menu-group-title,
  .dashboard-page .menu-item span,
  .dashboard-page .sidebar-account p,
  .dashboard-page #logoutBtn {
    width: 0;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    white-space: nowrap;
  }

  .dashboard-page .menu {
    gap: 8px;
    margin-top: 34px;
  }

  .dashboard-page .menu-item {
    width: 52px;
    min-height: 52px;
    justify-content: center;
    gap: 12px;
    padding: 0;
    border-radius: 14px;
    color: #4B5563;
    touch-action: manipulation;
  }

  .dashboard-page .menu-item svg {
    width: 21px;
    height: 21px;
  }

  .dashboard-page .menu-item.active,
  .dashboard-page .menu-item:hover {
    background: #FCE7F3;
    color: #EC4899;
  }

  .dashboard-page .side-footer {
    display: grid;
    margin-top: auto;
    gap: 12px;
  }

  .dashboard-page #logoutBtn {
    display: none;
  }

  .dashboard-page .sidebar-account {
    justify-content: center;
    padding: 0;
    border: 0;
  }

  .dashboard-page .sidebar-account span {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: #EC4899;
  }

  .dashboard-page.sidebar-open #sidebar {
    position: fixed !important;
    width: 260px;
    box-shadow: 22px 0 54px rgba(31, 41, 55, 0.12);
  }

  .dashboard-page.sidebar-open .brand {
    justify-content: flex-start;
    padding: 0 8px 18px;
  }

  .dashboard-page.sidebar-open .brand > div:not(.brand-icon),
  .dashboard-page.sidebar-open .menu-item span,
  .dashboard-page.sidebar-open .sidebar-account p,
  .dashboard-page.sidebar-open #logoutBtn {
    width: auto;
    max-width: 180px;
    opacity: 1;
    pointer-events: auto;
  }

  .dashboard-page.sidebar-open .menu-item {
    width: 100%;
    justify-content: flex-start;
    padding: 0 14px;
  }

  .dashboard-page.sidebar-open .sidebar-account {
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 8px;
    border-top: 1px solid #EEF0F4;
  }

  .dashboard-page.sidebar-open #logoutBtn {
    display: inline-flex;
    width: 100%;
    max-width: none;
    justify-content: center;
  }

  .dashboard-page .mobile-menu-btn {
    position: fixed;
    top: 56px;
    left: 92px;
    bottom: auto;
    z-index: 130;
    display: inline-grid !important;
    width: 48px;
    height: 48px;
    min-height: 48px;
    place-items: center;
    border: 1px solid #EEF0F4;
    border-radius: 999px;
    background: #FFFFFF;
    color: #374151;
    padding: 0;
    box-shadow: 0 10px 28px rgba(31, 41, 55, 0.08);
    transition: left 220ms cubic-bezier(.22,.72,.24,1), background 160ms ease, color 160ms ease;
  }

  .dashboard-page .mobile-menu-btn span {
    display: none;
  }

  .dashboard-page .mobile-menu-btn svg {
    width: 23px;
    height: 23px;
  }

  .dashboard-page.sidebar-open .mobile-menu-btn {
    left: 278px;
  }

  .dashboard-page .mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: block !important;
    background: rgba(31, 41, 55, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .dashboard-page.sidebar-open .mobile-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .dashboard-page .main {
    width: 100%;
    max-width: none;
    padding: 48px 40px calc(108px + env(safe-area-inset-bottom, 0px));
    gap: 22px;
    margin: 0;
  }

  .dashboard-page .topbar {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(430px, 1.2fr);
    gap: 24px;
    align-items: center;
  }

  .dashboard-page .topbar h2 {
    color: #111827;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0;
  }

  .dashboard-page .topbar-note {
    margin-top: 8px;
    color: #4B5563;
    font-size: 15px;
  }

  .dashboard-page .topbar-right.toolbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px 52px;
    gap: 14px;
    align-items: center;
    width: 100%;
  }

  .dashboard-page .topbar-right.toolbar-actions .search {
    width: 100%;
    min-width: 0;
    height: 58px;
    border: 1px solid #EEF0F4;
    border-radius: 18px;
    background: #FFFFFF;
    box-shadow: 0 10px 26px rgba(31, 41, 55, 0.04);
    padding: 0 16px;
  }

  .dashboard-page .search input {
    min-height: 56px;
    color: #1F2937;
    font-size: 15px;
  }

  .dashboard-page .topbar-right.toolbar-actions .alerts-menu {
    width: 52px;
    min-width: 52px;
  }

  .dashboard-page .topbar-right.toolbar-actions .alerts-toggle,
  .dashboard-page .topbar-right.toolbar-actions .quick-tab-link {
    width: 52px;
    height: 52px;
    min-height: 52px;
    border: 1px solid #EEF0F4;
    border-radius: 999px;
    background: #FFFFFF;
    box-shadow: 0 10px 26px rgba(31, 41, 55, 0.04);
    padding: 0;
  }

  .dashboard-page .topbar-right.toolbar-actions .alerts-toggle svg,
  .dashboard-page .topbar-right.toolbar-actions .quick-tab-link svg {
    width: 22px;
    height: 22px;
  }

  .dashboard-page #overviewContent > .stats,
  .dashboard-page #overviewContent > .mobile-next-appointment-panel,
  .dashboard-page #overviewContent > .beauty-dashboard-grid {
    display: none !important;
  }

  .dashboard-page .tablet-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

  .dashboard-page .tablet-action-card {
    min-height: 90px;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 14px;
    border: 1px solid #EEF0F4;
    border-radius: 18px;
    background: #FFFFFF;
    color: #1F2937;
    box-shadow: 0 12px 28px rgba(31, 41, 55, 0.055);
    padding: 16px;
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
  }

  .dashboard-page .tablet-action-card:hover {
    border-color: #FBCFE8;
  }

  .dashboard-page .tablet-action-icon,
  .dashboard-page .tablet-action-plus {
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
  }

  .dashboard-page .tablet-action-icon {
    width: 56px;
    height: 56px;
    background: #F3F4F6;
    color: #374151;
  }

  .dashboard-page .tablet-action-icon svg {
    width: 29px;
    height: 29px;
  }

  .dashboard-page .tablet-action-plus {
    width: 38px;
    height: 38px;
    background: #E5E7EB;
    color: #374151;
  }

  .dashboard-page .tablet-action-plus svg {
    width: 22px;
    height: 22px;
  }

  .dashboard-page .tablet-action-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
  }

  .dashboard-page .tablet-action-copy strong {
    font-size: 16px;
    font-weight: 800;
  }

  .dashboard-page .tablet-action-copy small {
    color: #4B5563;
    font-size: 13px;
    line-height: 1.25;
  }

  .dashboard-page .tablet-action-card.is-primary .tablet-action-icon {
    background: #FCE7F3;
    color: #EC4899;
  }

  .dashboard-page .tablet-action-card.is-primary .tablet-action-plus {
    background: #EC4899;
    color: #FFFFFF;
  }

  .dashboard-page .tablet-dashboard-shell {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(330px, 2fr);
    gap: 22px;
    align-items: start;
  }

  .dashboard-page .tablet-dashboard-left,
  .dashboard-page .tablet-dashboard-right {
    display: grid;
    gap: 18px;
    min-width: 0;
  }

  .dashboard-page .tablet-dashboard-shell .panel {
    border: 1px solid #EEF0F4;
    border-radius: 20px;
    background: #FFFFFF;
    box-shadow: 0 12px 28px rgba(31, 41, 55, 0.055);
    padding: 20px;
  }

  .dashboard-page .tablet-dashboard-shell .panel-header {
    align-items: center;
    margin-bottom: 18px;
  }

  .dashboard-page .tablet-dashboard-shell .panel-header h3 {
    color: #111827;
    font-size: 20px;
    font-weight: 800;
  }

  .dashboard-page .tablet-dashboard-shell .panel-header p {
    color: #6B7280;
    font-size: 12px;
  }

  .dashboard-page .tablet-dashboard-shell .panel-link,
  .dashboard-page .tablet-task-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: #EC4899;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
  }

  .dashboard-page .tablet-dashboard-shell .panel-link svg,
  .dashboard-page .tablet-task-all svg {
    width: 16px;
    height: 16px;
  }

  .dashboard-page .tablet-schedule-list {
    display: grid;
  }

  .dashboard-page .tablet-schedule-item {
    display: grid;
    grid-template-columns: 70px 3px minmax(0, 1fr) auto 28px;
    gap: 20px;
    align-items: center;
    min-height: 78px;
    border-top: 1px solid #EEF0F4;
    color: #1F2937;
  }

  .dashboard-page .tablet-schedule-item:first-child {
    border-top: 0;
  }

  .dashboard-page .tablet-schedule-item time {
    color: #111827;
    font-size: 16px;
    font-weight: 800;
  }

  .dashboard-page .tablet-schedule-line {
    width: 3px;
    height: 48px;
    border-radius: 999px;
    background: #EC4899;
  }

  .dashboard-page .tablet-schedule-item:nth-child(2n) .tablet-schedule-line {
    background: #2563EB;
  }

  .dashboard-page .tablet-schedule-item:nth-child(3n) .tablet-schedule-line {
    background: #F97316;
  }

  .dashboard-page .tablet-schedule-item strong,
  .dashboard-page .tablet-schedule-item small {
    display: block;
  }

  .dashboard-page .tablet-schedule-item strong {
    color: #111827;
    font-size: 16px;
    font-weight: 800;
  }

  .dashboard-page .tablet-schedule-item small {
    margin-top: 5px;
    color: #4B5563;
    font-size: 13px;
  }

  .dashboard-page .tablet-schedule-item > svg {
    width: 20px;
    height: 20px;
    color: #6B7280;
  }

  .dashboard-page .tablet-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border-radius: 999px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
  }

  .dashboard-page .tablet-status-confirmed {
    background: #DCFCE7;
    color: #15803D;
  }

  .dashboard-page .tablet-status-progress {
    background: #DBEAFE;
    color: #1D4ED8;
  }

  .dashboard-page .tablet-status-soon {
    background: #FFEDD5;
    color: #C2410C;
  }

  .dashboard-page .tablet-status-planned {
    background: #F3F4F6;
    color: #4B5563;
  }

  .dashboard-page .tablet-summary-period {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: #374151;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
  }

  .dashboard-page .tablet-summary-period svg {
    width: 15px;
    height: 15px;
  }

  .dashboard-page .tablet-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .dashboard-page .tablet-summary-card {
    min-height: 142px;
    display: grid;
    align-content: start;
    gap: 7px;
    border: 1px solid #F1F3F7;
    border-radius: 17px;
    background: #FFFFFF;
    box-shadow: 0 8px 20px rgba(31, 41, 55, 0.04);
    padding: 16px;
    overflow: hidden;
  }

  .dashboard-page .tablet-summary-icon {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 11px;
  }

  .dashboard-page .tablet-summary-icon svg {
    width: 18px;
    height: 18px;
  }

  .dashboard-page .tablet-summary-icon.is-pink {
    background: #FCE7F3;
    color: #EC4899;
  }

  .dashboard-page .tablet-summary-icon.is-green {
    background: #DCFCE7;
    color: #16A34A;
  }

  .dashboard-page .tablet-summary-icon.is-violet {
    background: #F3E8FF;
    color: #7E22CE;
  }

  .dashboard-page .tablet-summary-icon.is-orange {
    background: #FFEDD5;
    color: #EA580C;
  }

  .dashboard-page .tablet-summary-card > span:not(.tablet-summary-icon) {
    color: #374151;
    font-size: 13px;
    font-weight: 700;
  }

  .dashboard-page .tablet-summary-card strong {
    color: #111827;
    font-size: 25px;
    font-weight: 900;
    line-height: 1.05;
  }

  .dashboard-page .tablet-summary-card small {
    color: #6B7280;
    font-size: 12px;
    line-height: 1.3;
  }

  .dashboard-page .tablet-sparkline {
    height: 44px;
    margin-top: auto;
  }

  .dashboard-page .tablet-sparkline svg {
    width: 100%;
    height: 44px;
    display: block;
  }

  .dashboard-page .tablet-task-groups {
    display: grid;
    gap: 17px;
  }

  .dashboard-page .tablet-task-group h4 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 7px;
    color: #111827;
    font-size: 13px;
    font-weight: 900;
  }

  .dashboard-page .tablet-task-group h4 svg {
    width: 16px;
    height: 16px;
    color: #EC4899;
  }

  .dashboard-page .tablet-task-list {
    display: grid;
    gap: 3px;
  }

  .dashboard-page .tablet-task-row {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 34px;
    color: #1F2937;
    font-size: 13px;
  }

  .dashboard-page .tablet-task-row input {
    width: 16px;
    height: 16px;
    min-height: 0;
    accent-color: #EC4899;
  }

  .dashboard-page .tablet-task-row time {
    color: #6B7280;
    font-size: 12px;
    white-space: nowrap;
  }

  .dashboard-page .tablet-empty {
    margin: 0;
    color: #6B7280;
    font-size: 13px;
  }

  .dashboard-page .tablet-last-client {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
  }

  .dashboard-page .tablet-client-initial {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #FCE7F3;
    color: #EC4899;
    font-size: 20px;
    font-weight: 900;
  }

  .dashboard-page .tablet-last-client strong,
  .dashboard-page .tablet-last-client span,
  .dashboard-page .tablet-last-client small {
    display: block;
  }

  .dashboard-page .tablet-last-client strong {
    color: #111827;
    font-size: 16px;
    font-weight: 900;
  }

  .dashboard-page .tablet-last-client span {
    margin-top: 4px;
    color: #374151;
    font-size: 13px;
    font-weight: 650;
  }

  .dashboard-page .tablet-last-client small {
    margin-top: 3px;
    color: #6B7280;
    font-size: 12px;
  }

  .dashboard-page .tablet-last-client .btn {
    min-height: 48px;
    border-radius: 14px;
    white-space: nowrap;
  }

  .dashboard-page .tablet-last-client .btn svg {
    width: 17px;
    height: 17px;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 72px;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: calc(76px + env(safe-area-inset-bottom, 0px));
    align-items: stretch;
    padding: 6px 16px max(6px, env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #EEF0F4;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -10px 30px rgba(31, 41, 55, 0.05);
    backdrop-filter: blur(16px);
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .mobile-bottom-nav .bottom-nav-link {
    display: grid;
    place-items: center;
    gap: 5px;
    min-height: 64px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: #6B7280;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    touch-action: manipulation;
  }

  .mobile-bottom-nav svg {
    width: 24px;
    height: 24px;
  }

  .mobile-bottom-nav .bottom-nav-link.active {
    color: #EC4899;
  }

  .dashboard-page.sidebar-open .mobile-bottom-nav,
  .dashboard-page.sidebar-open .cal-fab {
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 16px));
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .dashboard-page .main {
    padding: 42px 24px calc(104px + env(safe-area-inset-bottom, 0px));
  }

  .dashboard-page .topbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .dashboard-page .topbar-copy {
    padding-left: 72px;
  }

  .dashboard-page .tablet-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .dashboard-page .tablet-action-card {
    min-height: 86px;
  }

  .dashboard-page .tablet-dashboard-shell {
    grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.9fr);
    gap: 16px;
  }

  .dashboard-page .tablet-dashboard-shell .panel {
    padding: 16px;
  }

  .dashboard-page .tablet-summary-grid {
    gap: 10px;
  }

  .dashboard-page .tablet-summary-card {
    min-height: 136px;
    padding: 13px;
  }

  .dashboard-page .tablet-schedule-item {
    grid-template-columns: 58px 3px minmax(0, 1fr);
    gap: 14px;
    padding: 12px 0;
  }

  .dashboard-page .tablet-schedule-item .tablet-status-badge {
    grid-column: 3;
    justify-self: start;
  }

  .dashboard-page .tablet-schedule-item > svg {
    display: none;
  }

  .dashboard-page .tablet-last-client {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .dashboard-page .tablet-last-client .btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (min-width: 1367px) {
  html,
  body {
    background: #F8F9FB;
  }

  .dashboard-page {
    --vensa-bg: #F8F9FB;
    --vensa-surface: #FFFFFF;
    --vensa-line: #EEF0F4;
    --vensa-text: #1F2937;
    --vensa-muted: #6B7280;
    --vensa-pink: #EC4899;
    --vensa-pink-soft: #FCE7F3;
    --vensa-pink-border: #FBCFE8;
    --vensa-green: #22C55E;
    --vensa-green-soft: #DCFCE7;
    --vensa-blue: #2563EB;
    --vensa-blue-soft: #DBEAFE;
    --vensa-orange: #F97316;
    --vensa-orange-soft: #FFEDD5;
    --vensa-gray-soft: #F3F4F6;
    --vensa-shadow-card: 0 14px 32px rgba(31, 41, 55, 0.055);
    background: #F8F9FB !important;
    color: #1F2937;
  }

  .dashboard-page .layout {
    display: grid;
    grid-template-columns: 244px minmax(0, 1fr) !important;
    min-height: 100dvh;
    background: #F8F9FB;
  }

  .dashboard-page .sidebar {
    position: sticky;
    top: 0;
    height: 100dvh;
    min-height: 0;
    border: 0;
    border-right: 1px solid #EEF0F4;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
    padding: 28px 18px;
  }

  .dashboard-page .brand {
    min-height: 48px;
    padding: 0 8px 24px;
  }

  .dashboard-page .brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #EC4899 !important;
  }

  .dashboard-page .brand h1 {
    color: #111827;
    font-size: 18px;
    letter-spacing: 0;
  }

  .dashboard-page .brand p {
    color: #6B7280;
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
  }

  .dashboard-page .menu {
    gap: 8px;
  }

  .dashboard-page .menu-item {
    min-height: 46px;
    padding: 0 12px;
    border-radius: 13px;
    background: transparent;
    color: #4B5563;
    font-size: 14px;
    font-weight: 700;
    box-shadow: none !important;
  }

  .dashboard-page .menu-item svg {
    width: 19px;
    height: 19px;
    color: currentColor;
  }

  .dashboard-page .menu-item:hover,
  .dashboard-page .menu-item.active {
    background: #FCE7F3;
    color: #EC4899;
  }

  .dashboard-page .sidebar-account {
    border-top: 1px solid #EEF0F4;
  }

  .dashboard-page .sidebar-account span {
    background: #EC4899;
  }

  .dashboard-page #logoutBtn {
    min-height: 42px;
    border-radius: 13px;
    border-color: #EEF0F4;
    background: #FFFFFF;
    color: #4B5563;
  }

  .dashboard-page .mobile-menu-btn,
  .dashboard-page .mobile-backdrop,
  .mobile-bottom-nav {
    display: none !important;
  }

  .dashboard-page .main {
    width: 100%;
    max-width: 1540px;
    margin: 0 auto;
    padding: 46px 48px 56px;
    gap: 24px;
  }

  .dashboard-page #overviewContent {
    display: grid;
    gap: 22px;
  }

  .dashboard-page .topbar {
    display: grid;
    grid-template-columns: minmax(340px, 0.8fr) minmax(560px, 1.2fr);
    gap: 34px;
    align-items: center;
    padding: 0;
  }

  .dashboard-page .eyebrow {
    display: none;
  }

  .dashboard-page .topbar h2 {
    color: #111827;
    font-size: 32px;
    line-height: 1.08;
    font-weight: 850;
    letter-spacing: 0;
  }

  .dashboard-page .topbar-note {
    margin-top: 9px;
    color: #4B5563;
    font-size: 15px;
  }

  .dashboard-page .topbar-right.toolbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px 54px;
    gap: 14px;
    align-items: center;
    width: 100%;
  }

  .dashboard-page .topbar-right.toolbar-actions .search {
    width: 100%;
    min-width: 0;
    height: 58px;
    border: 1px solid #EEF0F4;
    border-radius: 18px;
    background: #FFFFFF;
    box-shadow: 0 10px 26px rgba(31, 41, 55, 0.04);
    padding: 0 17px;
  }

  .dashboard-page .search input {
    min-height: 56px;
    color: #1F2937;
    font-size: 15px;
  }

  .dashboard-page .topbar-right.toolbar-actions .alerts-menu {
    width: 54px;
    min-width: 54px;
  }

  .dashboard-page .topbar-right.toolbar-actions .alerts-toggle,
  .dashboard-page .topbar-right.toolbar-actions .quick-tab-link {
    width: 54px;
    height: 54px;
    min-height: 54px;
    border: 1px solid #EEF0F4;
    border-radius: 999px;
    background: #FFFFFF;
    box-shadow: 0 10px 26px rgba(31, 41, 55, 0.04);
    padding: 0;
  }

  .dashboard-page .topbar-right.toolbar-actions .alerts-toggle svg,
  .dashboard-page .topbar-right.toolbar-actions .quick-tab-link svg {
    width: 22px;
    height: 22px;
  }

  .dashboard-page #overviewContent > .stats,
  .dashboard-page #overviewContent > .mobile-next-appointment-panel,
  .dashboard-page #overviewContent > .beauty-dashboard-grid {
    display: none !important;
  }

  .dashboard-page .tablet-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

  .dashboard-page .tablet-action-card {
    min-height: 96px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 16px;
    border: 1px solid #EEF0F4;
    border-radius: 18px;
    background: #FFFFFF;
    color: #1F2937;
    box-shadow: 0 14px 32px rgba(31, 41, 55, 0.055);
    padding: 18px;
    text-align: left;
    cursor: pointer;
  }

  .dashboard-page .tablet-action-card:hover {
    border-color: #FBCFE8;
  }

  .dashboard-page .tablet-action-icon,
  .dashboard-page .tablet-action-plus {
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
  }

  .dashboard-page .tablet-action-icon {
    width: 58px;
    height: 58px;
    background: #F3F4F6;
    color: #374151;
  }

  .dashboard-page .tablet-action-icon svg {
    width: 29px;
    height: 29px;
  }

  .dashboard-page .tablet-action-plus {
    width: 40px;
    height: 40px;
    background: #E5E7EB;
    color: #374151;
  }

  .dashboard-page .tablet-action-plus svg {
    width: 22px;
    height: 22px;
  }

  .dashboard-page .tablet-action-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
  }

  .dashboard-page .tablet-action-copy strong {
    color: #111827;
    font-size: 16px;
    font-weight: 850;
  }

  .dashboard-page .tablet-action-copy small {
    color: #4B5563;
    font-size: 13px;
    line-height: 1.25;
  }

  .dashboard-page .tablet-action-card.is-primary .tablet-action-icon {
    background: #FCE7F3;
    color: #EC4899;
  }

  .dashboard-page .tablet-action-card.is-primary .tablet-action-plus {
    background: #EC4899;
    color: #FFFFFF;
  }

  .dashboard-page .tablet-dashboard-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(410px, 0.95fr);
    gap: 24px;
    align-items: start;
  }

  .dashboard-page .tablet-dashboard-left,
  .dashboard-page .tablet-dashboard-right {
    display: grid;
    gap: 20px;
    min-width: 0;
  }

  .dashboard-page .tablet-dashboard-shell .panel {
    border: 1px solid #EEF0F4;
    border-radius: 20px;
    background: #FFFFFF;
    box-shadow: 0 14px 32px rgba(31, 41, 55, 0.055);
    padding: 22px;
  }

  .dashboard-page .tablet-dashboard-shell .panel-header {
    align-items: center;
    margin-bottom: 18px;
  }

  .dashboard-page .tablet-dashboard-shell .panel-header h3 {
    color: #111827;
    font-size: 20px;
    font-weight: 850;
  }

  .dashboard-page .tablet-dashboard-shell .panel-header p {
    color: #6B7280;
    font-size: 12px;
  }

  .dashboard-page .tablet-dashboard-shell .panel-link,
  .dashboard-page .tablet-task-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: #EC4899;
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
  }

  .dashboard-page .tablet-dashboard-shell .panel-link svg,
  .dashboard-page .tablet-task-all svg {
    width: 16px;
    height: 16px;
  }

  .dashboard-page .tablet-schedule-list {
    display: grid;
  }

  .dashboard-page .tablet-schedule-item {
    display: grid;
    grid-template-columns: 76px 3px minmax(0, 1fr) auto 30px;
    gap: 22px;
    align-items: center;
    min-height: 82px;
    border-top: 1px solid #EEF0F4;
    color: #1F2937;
  }

  .dashboard-page .tablet-schedule-item:first-child {
    border-top: 0;
  }

  .dashboard-page .tablet-schedule-item time {
    color: #111827;
    font-size: 16px;
    font-weight: 850;
  }

  .dashboard-page .tablet-schedule-line {
    width: 3px;
    height: 50px;
    border-radius: 999px;
    background: #EC4899;
  }

  .dashboard-page .tablet-schedule-item:nth-child(2n) .tablet-schedule-line {
    background: #2563EB;
  }

  .dashboard-page .tablet-schedule-item:nth-child(3n) .tablet-schedule-line {
    background: #F97316;
  }

  .dashboard-page .tablet-schedule-item strong,
  .dashboard-page .tablet-schedule-item small {
    display: block;
  }

  .dashboard-page .tablet-schedule-item strong {
    color: #111827;
    font-size: 16px;
    font-weight: 850;
  }

  .dashboard-page .tablet-schedule-item small {
    margin-top: 5px;
    color: #4B5563;
    font-size: 13px;
  }

  .dashboard-page .tablet-schedule-item > svg {
    width: 20px;
    height: 20px;
    color: #6B7280;
  }

  .dashboard-page .tablet-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border-radius: 999px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
  }

  .dashboard-page .tablet-status-confirmed {
    background: #DCFCE7;
    color: #15803D;
  }

  .dashboard-page .tablet-status-progress {
    background: #DBEAFE;
    color: #1D4ED8;
  }

  .dashboard-page .tablet-status-soon {
    background: #FFEDD5;
    color: #C2410C;
  }

  .dashboard-page .tablet-status-planned {
    background: #F3F4F6;
    color: #4B5563;
  }

  .dashboard-page .tablet-summary-period {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: #374151;
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
  }

  .dashboard-page .tablet-summary-period svg {
    width: 15px;
    height: 15px;
  }

  .dashboard-page .tablet-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .dashboard-page .tablet-summary-card {
    min-height: 148px;
    display: grid;
    align-content: start;
    gap: 7px;
    border: 1px solid #F1F3F7;
    border-radius: 17px;
    background: #FFFFFF;
    box-shadow: 0 8px 20px rgba(31, 41, 55, 0.04);
    padding: 16px;
    overflow: hidden;
  }

  .dashboard-page .tablet-summary-icon {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 11px;
  }

  .dashboard-page .tablet-summary-icon svg {
    width: 18px;
    height: 18px;
  }

  .dashboard-page .tablet-summary-icon.is-pink {
    background: #FCE7F3;
    color: #EC4899;
  }

  .dashboard-page .tablet-summary-icon.is-green {
    background: #DCFCE7;
    color: #16A34A;
  }

  .dashboard-page .tablet-summary-icon.is-violet {
    background: #F3E8FF;
    color: #7E22CE;
  }

  .dashboard-page .tablet-summary-icon.is-orange {
    background: #FFEDD5;
    color: #EA580C;
  }

  .dashboard-page .tablet-summary-card > span:not(.tablet-summary-icon) {
    color: #374151;
    font-size: 13px;
    font-weight: 700;
  }

  .dashboard-page .tablet-summary-card strong {
    color: #111827;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.05;
  }

  .dashboard-page .tablet-summary-card small {
    color: #6B7280;
    font-size: 12px;
    line-height: 1.3;
  }

  .dashboard-page .tablet-sparkline {
    height: 44px;
    margin-top: auto;
  }

  .dashboard-page .tablet-sparkline svg {
    width: 100%;
    height: 44px;
    display: block;
  }

  .dashboard-page .tablet-task-groups {
    display: grid;
    gap: 18px;
  }

  .dashboard-page .tablet-task-group h4 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    color: #111827;
    font-size: 13px;
    font-weight: 900;
  }

  .dashboard-page .tablet-task-group h4 svg {
    width: 16px;
    height: 16px;
    color: #EC4899;
  }

  .dashboard-page .tablet-task-list {
    display: grid;
    gap: 3px;
  }

  .dashboard-page .tablet-task-row {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 36px;
    color: #1F2937;
    font-size: 13px;
  }

  .dashboard-page .tablet-task-row input {
    width: 16px;
    height: 16px;
    min-height: 0;
    accent-color: #EC4899;
  }

  .dashboard-page .tablet-task-row time {
    color: #6B7280;
    font-size: 12px;
    white-space: nowrap;
  }

  .dashboard-page .tablet-empty {
    margin: 0;
    color: #6B7280;
    font-size: 13px;
  }

  .dashboard-page .tablet-last-client {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
  }

  .dashboard-page .tablet-client-initial {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #FCE7F3;
    color: #EC4899;
    font-size: 20px;
    font-weight: 900;
  }

  .dashboard-page .tablet-last-client strong,
  .dashboard-page .tablet-last-client span,
  .dashboard-page .tablet-last-client small {
    display: block;
  }

  .dashboard-page .tablet-last-client strong {
    color: #111827;
    font-size: 16px;
    font-weight: 900;
  }

  .dashboard-page .tablet-last-client span {
    margin-top: 4px;
    color: #374151;
    font-size: 13px;
    font-weight: 650;
  }

  .dashboard-page .tablet-last-client small {
    margin-top: 3px;
    color: #6B7280;
    font-size: 12px;
  }

  .dashboard-page .tablet-last-client .btn {
    min-height: 48px;
    border-radius: 14px;
    white-space: nowrap;
  }

  .dashboard-page .tablet-last-client .btn svg {
    width: 17px;
    height: 17px;
  }
}

/* Reezly public marketing and auth screens */
:root {
  --lummi-bg: #f8f5ef;
  --lummi-card: #FFFFFF;
  --lummi-border: #ECECF1;
  --lummi-primary: #9b6a5c;
  --lummi-primary-hover: #7f554a;
  --lummi-primary-light: #f0e5dc;
  --lummi-text: #18181B;
  --lummi-muted: #71717A;
  --lummi-radius: 24px;
  --lummi-card-radius: 28px;
  --lummi-button-radius: 14px;
  --lummi-shadow: 0 18px 60px rgba(24, 24, 27, 0.07);
  --lummi-shadow-soft: 0 10px 34px rgba(24, 24, 27, 0.05);
}

.lummi-page,
.lummi-auth-page {
  min-height: 100vh;
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--lummi-text);
  background:
    radial-gradient(circle at 12% 0%, rgba(155, 106, 92, 0.12), transparent 28%),
    radial-gradient(circle at 100% 16%, rgba(240, 229, 220, 0.92), transparent 28%),
    var(--lummi-bg);
  overflow-x: hidden;
}

.lummi-page *,
.lummi-auth-page * {
  box-sizing: border-box;
}

.lummi-page a,
.lummi-auth-page a {
  color: inherit;
  text-decoration: none;
}

.lummi-page button,
.lummi-page input,
.lummi-page select,
.lummi-auth-page button,
.lummi-auth-page input,
.lummi-auth-page select {
  font: inherit;
}

.lummi-nav {
  position: sticky;
  top: 16px;
  z-index: 50;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 16px auto 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 22px;
  padding: 14px 18px;
  border: 1px solid rgba(236, 236, 241, 0.88);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--lummi-shadow-soft);
  backdrop-filter: blur(18px);
}

.lummi-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.lummi-brand-mark {
  position: relative;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.lummi-brand-mark.small {
  width: 22px;
  height: 22px;
}

.lummi-brand-mark span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--lummi-primary);
}

.lummi-brand-mark span:nth-child(1) {
  top: 3px;
  left: 10px;
}

.lummi-brand-mark span:nth-child(2) {
  top: 10px;
  left: 3px;
  opacity: 0.78;
}

.lummi-brand-mark span:nth-child(3) {
  top: 10px;
  right: 3px;
  opacity: 0.86;
}

.lummi-brand-mark span:nth-child(4) {
  bottom: 3px;
  left: 10px;
  opacity: 0.72;
}

.lummi-nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  color: var(--lummi-text);
  font-size: 14px;
  font-weight: 700;
}

.lummi-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--lummi-border);
  border-radius: 14px;
  background: #fff;
  color: var(--lummi-text);
}

.lummi-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.lummi-hero {
  min-height: calc(100vh - 112px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
  padding: clamp(54px, 8vw, 104px) 0 64px;
}

.lummi-badge,
.lummi-section-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--lummi-primary-light);
  color: var(--lummi-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.lummi-hero-copy h1 {
  margin: 24px 0 20px;
  font-size: clamp(46px, 5.7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  color: var(--lummi-text);
}

.lummi-hero-copy p,
.lummi-centered > p,
.lummi-split p,
.lummi-trust p,
.lummi-info-grid p,
.lummi-final-cta p,
.lummi-feature-card p,
.lummi-site-card p,
.lummi-auth-copy p,
.lummi-auth-card > p,
.lummi-verify-card p,
.lummi-onboarding-card > p {
  color: var(--lummi-muted);
  line-height: 1.75;
}

.lummi-hero-copy > p {
  max-width: 560px;
  font-size: 18px;
}

.lummi-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.lummi-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--lummi-button-radius);
  padding: 0 20px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.lummi-btn:hover {
  transform: translateY(-1px);
}

.lummi-btn-primary {
  background: var(--lummi-primary);
  color: #fff;
  box-shadow: 0 12px 26px rgba(242, 91, 168, 0.24);
}

.lummi-btn-primary:hover {
  background: var(--lummi-primary-hover);
}

.lummi-btn-secondary {
  background: #fff;
  color: var(--lummi-primary);
  border-color: rgba(242, 91, 168, 0.28);
}

.lummi-product-preview {
  position: relative;
  min-height: 560px;
}

.lummi-app-card,
.lummi-phone-card,
.lummi-feature-card,
.lummi-site-card,
.lummi-trust,
.lummi-info-grid article,
.lummi-final-cta,
.lummi-auth-card,
.lummi-auth-copy-card,
.lummi-verify-card,
.lummi-onboarding-card {
  border: 1px solid var(--lummi-border);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--lummi-shadow);
}

.lummi-app-card {
  position: absolute;
  top: 34px;
  right: 24px;
  width: min(610px, 100%);
  min-height: 440px;
  display: grid;
  grid-template-columns: 116px 1fr;
  border-radius: 32px;
  overflow: hidden;
}

.lummi-app-sidebar {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 16px;
  padding: 30px 18px;
  border-right: 1px solid var(--lummi-border);
  background: linear-gradient(180deg, #fff, #fff8fb);
}

.lummi-mini-logo {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--lummi-primary-light);
  color: var(--lummi-primary);
  font-weight: 900;
}

.lummi-app-sidebar > span:not(.lummi-mini-logo) {
  width: 64px;
  height: 12px;
  border-radius: 999px;
  background: #f3f3f6;
}

.lummi-app-sidebar > span.is-active {
  background: var(--lummi-primary-light);
}

.lummi-app-main {
  padding: 30px;
  display: grid;
  gap: 22px;
}

.lummi-app-top,
.lummi-phone-head,
.lummi-phone-brand,
.lummi-final-cta,
.lummi-auth-head,
.lummi-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lummi-app-top small,
.lummi-metric-row span,
.lummi-schedule span,
.lummi-phone-card small,
.lummi-stats span {
  color: var(--lummi-muted);
}

.lummi-app-top strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.lummi-app-top i,
.lummi-feature-card i,
.lummi-phone-head i {
  width: 20px;
  height: 20px;
}

.lummi-metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.lummi-metric-row article {
  display: grid;
  gap: 8px;
  min-height: 88px;
  padding: 16px;
  border: 1px solid var(--lummi-border);
  border-radius: 20px;
  background: #fff;
}

.lummi-metric-row strong {
  font-size: 24px;
  letter-spacing: -0.05em;
}

.lummi-schedule {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--lummi-border);
  border-radius: 22px;
  background: #fff;
}

.lummi-schedule em {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--lummi-primary-light);
  color: var(--lummi-primary);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.lummi-chart {
  height: 96px;
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff, #fff8fb);
  border: 1px solid var(--lummi-border);
}

.lummi-chart span {
  flex: 1;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, var(--lummi-primary), #f8a4cd);
}

.lummi-phone-card {
  position: absolute;
  right: 0;
  bottom: 6px;
  width: 214px;
  min-height: 356px;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 18px;
  border-radius: 34px;
}

.lummi-phone-card h3 {
  margin: 8px 0 0;
  font-size: 19px;
  letter-spacing: -0.04em;
}

.lummi-phone-card article {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 18px;
  background: var(--lummi-primary-light);
}

.lummi-centered {
  text-align: center;
  padding: 46px 0 32px;
}

.lummi-centered h2,
.lummi-split h2,
.lummi-trust h2,
.lummi-info-grid h2,
.lummi-final-cta h2,
.lummi-auth-copy h1,
.lummi-auth-card h1,
.lummi-verify-card h1,
.lummi-onboarding-card h1 {
  margin: 16px 0 12px;
  color: var(--lummi-text);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.lummi-centered > p {
  max-width: 720px;
  margin: 0 auto;
}

.lummi-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.lummi-feature-card {
  min-height: 210px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
  border-radius: var(--lummi-card-radius);
  text-align: left;
}

.lummi-feature-card > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--lummi-primary-light);
  color: var(--lummi-primary);
}

.lummi-feature-card h3,
.lummi-site-card strong {
  font-size: 17px;
  letter-spacing: -0.02em;
}

.lummi-split {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr);
  align-items: center;
  gap: 26px;
  padding: 34px;
  margin-top: 34px;
  border-radius: 32px;
  background: linear-gradient(135deg, #fff, #fff5fa);
  border: 1px solid var(--lummi-border);
}

.lummi-split .lummi-btn {
  margin-top: 22px;
}

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

.lummi-site-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
}

.lummi-site-window {
  height: 132px;
  display: grid;
  grid-template-rows: 20px 1fr 18px;
  gap: 10px;
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff, #fdebf4);
  border: 1px solid var(--lummi-border);
}

.lummi-site-window span {
  border-radius: 999px;
  background: rgba(242, 91, 168, 0.16);
}

.lummi-site-window span:nth-child(2) {
  border-radius: 18px;
  background: rgba(24, 24, 27, 0.08);
}

.lummi-site-window.alt {
  background: linear-gradient(135deg, #fff, #f4f4f7);
}

.lummi-site-window.soft {
  background: linear-gradient(135deg, #fff, #fff7fb);
}

.lummi-trust {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 28px;
  align-items: center;
  margin-top: 34px;
  padding: 30px;
  border-radius: 30px;
}

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

.lummi-stats article {
  display: grid;
  gap: 8px;
  min-height: 116px;
  padding: 18px;
  border-radius: 22px;
  background: var(--lummi-bg);
}

.lummi-stats strong {
  color: var(--lummi-primary);
  font-size: 30px;
  letter-spacing: -0.05em;
}

.lummi-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.lummi-info-grid article {
  min-height: 220px;
  padding: 26px;
  border-radius: var(--lummi-card-radius);
}

.lummi-final-cta {
  margin-top: 34px;
  margin-bottom: 40px;
  padding: 34px;
  border-radius: 32px;
  background: linear-gradient(135deg, #fff, #fdebf4);
}

.lummi-final-cta h2 {
  margin-top: 0;
}

.lummi-auth-page {
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.lummi-auth-shell {
  width: min(1120px, 100%);
  min-height: calc(100vh - 56px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 0.72fr);
  gap: 24px;
  align-items: stretch;
}

.lummi-auth-copy,
.lummi-auth-card,
.lummi-verify-card,
.lummi-onboarding-card {
  border-radius: 34px;
}

.lummi-auth-copy {
  display: grid;
  align-content: center;
  gap: 24px;
  padding: clamp(28px, 5vw, 58px);
  background: linear-gradient(135deg, #fff, #fff5fa);
  border: 1px solid var(--lummi-border);
  box-shadow: var(--lummi-shadow-soft);
}

.lummi-auth-copy h1 {
  max-width: 610px;
}

.lummi-auth-copy-card {
  max-width: 480px;
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 24px;
}

.lummi-auth-card {
  display: grid;
  align-content: center;
  padding: clamp(24px, 4vw, 44px);
}

.lummi-auth-head {
  margin-bottom: 24px;
}

.lummi-auth-card h1,
.lummi-verify-card h1,
.lummi-onboarding-card h1 {
  font-size: clamp(30px, 4vw, 40px);
}

.lummi-form {
  display: grid;
  gap: 16px;
}

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

.lummi-field span,
.lummi-check span,
.lummi-auth-row,
.lummi-step-count {
  color: var(--lummi-muted);
  font-size: 14px;
  font-weight: 700;
}

.lummi-field input,
.lummi-field select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--lummi-border);
  border-radius: 14px;
  background: #fff;
  color: var(--lummi-text);
  padding: 0 15px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.lummi-field input:focus,
.lummi-field select:focus {
  border-color: rgba(242, 91, 168, 0.62);
  box-shadow: 0 0 0 4px rgba(155, 106, 92, 0.12);
}

.lummi-field input.invalid,
.lummi-field select.invalid {
  border-color: #d92d20;
  background: #fff8f8;
}

.lummi-password-field {
  position: relative;
}

.lummi-password-field input {
  padding-right: 48px;
}

.lummi-password-toggle {
  position: absolute;
  right: 8px;
  bottom: 7px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--lummi-muted);
  cursor: pointer;
}

.lummi-auth-row a,
.lummi-auth-links a {
  color: var(--lummi-primary);
  font-weight: 800;
}

.lummi-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 2px 0;
  color: var(--lummi-muted);
  font-size: 14px;
}

.lummi-divider::before,
.lummi-divider::after {
  content: "";
  height: 1px;
  background: var(--lummi-border);
}

.lummi-google-btn {
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--lummi-border);
  border-radius: 14px;
  background: #fff;
  color: var(--lummi-text);
  font-weight: 800;
  cursor: pointer;
}

.lummi-google-mark {
  font-weight: 900;
  color: #4285f4;
}

.lummi-auth-links {
  margin-top: 22px;
  text-align: center;
  color: var(--lummi-muted);
}

.lummi-auth-message {
  min-height: 22px;
  margin-top: 4px;
  color: var(--lummi-muted);
  font-size: 14px;
  text-align: center;
}

.lummi-auth-message.error {
  color: #d92d20;
}

.lummi-verify-shell,
.lummi-onboarding-shell {
  width: min(520px, 100%);
}

.lummi-verify-card,
.lummi-onboarding-card {
  display: grid;
  gap: 18px;
  padding: clamp(28px, 6vw, 48px);
  text-align: center;
}

.lummi-verify-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin: 0 auto 4px;
  border-radius: 24px;
  background: var(--lummi-primary-light);
  color: var(--lummi-primary);
}

.lummi-verify-icon i {
  width: 34px;
  height: 34px;
}

.lummi-email-chip {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--lummi-primary-light);
  color: var(--lummi-primary);
  font-weight: 800;
}

.lummi-onboarding-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--lummi-border);
  overflow: hidden;
}

.lummi-onboarding-progress span {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: inherit;
  background: var(--lummi-primary);
  transition: width 180ms ease;
}

.lummi-onboarding-card[data-step="2"] .lummi-onboarding-progress span {
  width: 100%;
}

.lummi-onboarding-step[hidden] {
  display: none;
}

.lummi-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  text-align: left;
}

.lummi-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--lummi-primary);
}

@media (max-width: 1080px) {
  .lummi-nav {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .lummi-menu-toggle {
    display: grid;
  }

  .lummi-nav-links {
    grid-column: 1 / -1;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    padding-top: 10px;
  }

  .lummi-nav.is-open .lummi-nav-links {
    display: flex;
  }

  .lummi-nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
  }

  .lummi-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 52px;
  }

  .lummi-product-preview {
    min-height: 520px;
  }

  .lummi-app-card {
    left: 0;
    right: auto;
    width: calc(100% - 80px);
  }

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

  .lummi-split,
  .lummi-trust,
  .lummi-auth-shell {
    grid-template-columns: 1fr;
  }

  .lummi-auth-copy {
    display: none;
  }
}

@media (max-width: 760px) {
  .lummi-page,
  .lummi-auth-page {
    background: var(--lummi-bg);
  }

  .lummi-nav,
  .lummi-section {
    width: min(100% - 24px, 1180px);
  }

  .lummi-nav {
    top: 10px;
    margin-top: 10px;
    border-radius: 22px;
  }

  .lummi-hero {
    gap: 28px;
    padding: 36px 0 28px;
  }

  .lummi-hero-copy h1 {
    font-size: 42px;
  }

  .lummi-hero-copy > p {
    font-size: 16px;
  }

  .lummi-actions,
  .lummi-final-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .lummi-actions .lummi-btn,
  .lummi-final-cta .lummi-btn,
  .lummi-split .lummi-btn {
    width: 100%;
  }

  .lummi-product-preview {
    min-height: auto;
  }

  .lummi-app-card {
    position: relative;
    width: 100%;
    top: auto;
    right: auto;
    grid-template-columns: 1fr;
    min-height: auto;
    border-radius: 28px;
  }

  .lummi-app-sidebar {
    display: none;
  }

  .lummi-app-main {
    padding: 22px;
  }

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

  .lummi-schedule {
    grid-template-columns: 1fr;
  }

  .lummi-phone-card {
    display: none;
  }

  .lummi-centered {
    padding-top: 32px;
  }

  .lummi-feature-grid,
  .lummi-site-grid,
  .lummi-stats,
  .lummi-info-grid {
    grid-template-columns: 1fr;
  }

  .lummi-feature-card {
    min-height: auto;
  }

  .lummi-split,
  .lummi-trust,
  .lummi-final-cta {
    padding: 22px;
    border-radius: 28px;
  }

  .lummi-auth-page {
    padding: 14px;
  }

  .lummi-auth-shell {
    min-height: auto;
  }

  .lummi-auth-card,
  .lummi-verify-card,
  .lummi-onboarding-card {
    padding: 24px;
    border-radius: 28px;
  }

  .lummi-auth-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .lummi-auth-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Salon public website templates */
.salon-template {
  --salon-bg: #fff8fb;
  --salon-surface: #ffffff;
  --salon-surface-soft: #fff0f6;
  --salon-text: #17131a;
  --salon-muted: #7c727d;
  --salon-border: rgba(24, 24, 27, 0.08);
  --salon-shadow: 0 24px 80px rgba(24, 24, 27, 0.08);
  --salon-radius: 30px;
  min-height: 100vh;
  margin: 0;
  background: var(--salon-bg);
  color: var(--salon-text);
  font-family: var(--salon-font);
  letter-spacing: 0;
}

.salon-template-natural-beige {
  --salon-bg: #fbf6f0;
  --salon-surface-soft: #f4e7da;
  --salon-muted: #74675f;
}

.salon-template-modern-dark {
  --salon-bg: #0d1018;
  --salon-surface: #151924;
  --salon-surface-soft: #201426;
  --salon-text: #f8f7fb;
  --salon-muted: #a9a6b4;
  --salon-border: rgba(255, 255, 255, 0.12);
  --salon-shadow: 0 24px 90px rgba(0, 0, 0, 0.36);
}

.salon-radius-small { --salon-radius: 16px; }
.salon-radius-medium { --salon-radius: 22px; }
.salon-radius-large { --salon-radius: 30px; }

.salon-template a {
  color: inherit;
  text-decoration: none;
}

.salon-site-header,
.salon-section,
.salon-footer {
  width: min(100% - 44px, 1180px);
  margin: 0 auto;
}

.salon-site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  padding: 12px 16px;
  border: 1px solid var(--salon-border);
  border-radius: calc(var(--salon-radius) - 6px);
  background: color-mix(in srgb, var(--salon-surface) 92%, transparent);
  box-shadow: 0 14px 50px rgba(24, 24, 27, 0.07);
  backdrop-filter: blur(18px);
}

.salon-site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.salon-brand-mark,
.salon-service-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--salon-primary);
  color: #fff;
  font-weight: 800;
}

.salon-site-brand span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.salon-site-brand strong,
.salon-site-brand small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.salon-site-brand small,
.salon-service-card p,
.salon-service-card span,
.salon-contact-card span,
.salon-footer span,
.salon-footer small {
  color: var(--salon-muted);
}

.salon-site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: var(--salon-muted);
  font-size: 14px;
  font-weight: 700;
}

.salon-site-nav a:hover {
  color: var(--salon-primary);
}

.salon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.salon-btn:hover {
  transform: translateY(-1px);
}

.salon-btn-primary {
  background: var(--salon-primary);
  color: #fff;
  box-shadow: 0 16px 34px color-mix(in srgb, var(--salon-primary) 24%, transparent);
}

.salon-btn-secondary {
  border-color: var(--salon-border);
  background: var(--salon-surface);
  color: var(--salon-text);
}

.salon-section {
  padding: 82px 0;
}

.salon-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: 48px;
  min-height: calc(100vh - 112px);
  padding-top: 72px;
  padding-bottom: 54px;
}

.salon-hero-copy {
  display: grid;
  justify-items: start;
  gap: 22px;
}

.salon-kicker {
  margin: 0;
  color: var(--salon-primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.salon-hero h1,
.salon-section h2 {
  margin: 0;
  color: var(--salon-text);
  letter-spacing: 0;
}

.salon-hero h1 {
  max-width: 760px;
  font-size: clamp(46px, 6vw, 78px);
  line-height: 0.98;
}

.salon-template-natural-beige .salon-hero h1,
.salon-template-natural-beige .salon-section h2 {
  font-family: "Playfair Display", serif;
}

.salon-hero-copy > p:not(.salon-kicker),
.salon-about-copy p,
.salon-contact-section p {
  max-width: 620px;
  margin: 0;
  color: var(--salon-muted);
  font-size: 17px;
  line-height: 1.8;
}

.salon-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.salon-hero-visual {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--salon-border);
  border-radius: var(--salon-radius);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--salon-primary) 13%, transparent), transparent 42%),
    var(--salon-surface);
  box-shadow: var(--salon-shadow);
  overflow: hidden;
}

.salon-template-modern-dark .salon-hero-visual {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--salon-primary) 24%, transparent), transparent 46%),
    #101522;
}

.salon-visual-card-main {
  position: absolute;
  inset: 56px 56px auto auto;
  display: grid;
  place-items: center;
  width: 245px;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--salon-primary) 42%, var(--salon-border));
  border-radius: 50%;
  background: var(--salon-surface-soft);
}

.salon-visual-card-main span {
  position: absolute;
  inset: 22px;
  border: 1px solid color-mix(in srgb, var(--salon-primary) 38%, transparent);
  border-radius: inherit;
}

.salon-visual-card-main strong {
  color: var(--salon-primary);
  font-size: 92px;
}

.salon-visual-panel {
  position: absolute;
  left: 38px;
  bottom: 38px;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(330px, calc(100% - 76px));
  padding: 18px;
  border: 1px solid var(--salon-border);
  border-radius: 22px;
  background: color-mix(in srgb, var(--salon-surface) 88%, transparent);
  box-shadow: 0 20px 50px rgba(24, 24, 27, 0.08);
}

.salon-visual-panel svg {
  width: 28px;
  height: 28px;
  color: var(--salon-primary);
}

.salon-visual-panel span,
.salon-visual-panel strong {
  display: block;
}

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

.salon-section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.salon-section-head-center {
  justify-items: center;
  text-align: center;
}

.salon-section h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}

.salon-services-grid,
.salon-review-grid,
.salon-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.salon-service-card,
.salon-review-card,
.salon-contact-card,
.salon-empty {
  border: 1px solid var(--salon-border);
  border-radius: calc(var(--salon-radius) - 8px);
  background: var(--salon-surface);
  box-shadow: 0 16px 48px rgba(24, 24, 27, 0.05);
}

.salon-service-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 230px;
  padding: 22px;
}

.salon-service-icon {
  width: 44px;
  height: 44px;
  background: var(--salon-surface-soft);
  color: var(--salon-primary);
}

.salon-service-icon svg {
  width: 21px;
  height: 21px;
}

.salon-service-card p,
.salon-service-card h3,
.salon-service-card span {
  margin: 0;
}

.salon-service-card p {
  font-size: 12px;
  font-weight: 800;
}

.salon-service-card h3 {
  font-size: 19px;
  line-height: 1.2;
}

.salon-service-card span {
  font-size: 13px;
  line-height: 1.55;
}

.salon-service-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.salon-service-card > a {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--salon-surface-soft);
  color: var(--salon-primary);
}

.salon-feature-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 28px;
  padding: 36px;
  border: 1px solid var(--salon-border);
  border-radius: var(--salon-radius);
  background: var(--salon-surface);
}

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

.salon-feature-list span,
.salon-contact-card span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.salon-feature-list svg,
.salon-contact-card svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--salon-primary);
}

.salon-about-section,
.salon-contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 28px;
}

.salon-about-section.salon-about-no-visual {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 981px) {
  .salon-hide-desktop {
    display: none !important;
  }
}

@media (min-width: 681px) and (max-width: 980px) {
  .salon-hide-tablet {
    display: none !important;
  }
}

@media (max-width: 680px) {
  .salon-hide-mobile {
    display: none !important;
  }
}

.salon-about-visual {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: 160px 160px;
  gap: 14px;
}

.salon-about-visual span,
.salon-gallery-placeholder {
  border: 1px solid var(--salon-border);
  border-radius: calc(var(--salon-radius) - 8px);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--salon-primary) 14%, transparent), color-mix(in srgb, var(--salon-secondary) 12%, transparent)),
    var(--salon-surface);
}

.salon-about-visual span:first-child {
  grid-row: span 2;
}

.salon-about-copy {
  display: grid;
  justify-items: start;
  gap: 16px;
}

.salon-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--salon-primary);
  font-weight: 800;
}

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

.salon-gallery-item {
  min-height: 240px;
  margin: 0;
  overflow: hidden;
  border-radius: calc(var(--salon-radius) - 8px);
  background: var(--salon-surface-soft);
}

.salon-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

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

.salon-review-card {
  display: grid;
  gap: 14px;
  min-height: 190px;
  padding: 24px;
}

.salon-review-card p {
  margin: 0;
  color: var(--salon-text);
  line-height: 1.65;
}

.salon-stars {
  color: var(--salon-primary);
  letter-spacing: 2px;
}

.salon-stars-meter {
  display: inline-flex;
  gap: 4px;
  color: color-mix(in srgb, var(--salon-primary) 24%, #d8d0c8);
  letter-spacing: 0;
}

.salon-stars-meter span,
.salon-rating-star-shape,
.salon-rating-orbit span {
  display: block;
  aspect-ratio: 1;
  clip-path: polygon(50% 3%, 61% 35%, 95% 35%, 67% 55%, 78% 89%, 50% 68%, 22% 89%, 33% 55%, 5% 35%, 39% 35%);
  background: currentColor;
}

.salon-stars-meter span {
  width: 15px;
}

.salon-stars-meter span.is-filled {
  color: #d6a55f;
}

.salon-rating-section {
  padding-top: 18px;
}

.market-info-page .salon-rating-section {
  --salon-primary: #9b6a5c;
  --salon-secondary: #211d1f;
  --salon-surface: #fffaf3;
  --salon-surface-soft: #f6efe7;
  --salon-text: #171416;
  --salon-muted: #6f6864;
  --salon-border: rgba(232, 222, 212, .92);
  --salon-radius: 24px;
}

.salon-rating-panel {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(340px, .72fr);
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid var(--salon-border);
  border-radius: calc(var(--salon-radius) + 6px);
  background:
    radial-gradient(circle at 12% 0, color-mix(in srgb, var(--salon-primary) 12%, transparent), transparent 32rem),
    linear-gradient(180deg, color-mix(in srgb, var(--salon-surface) 94%, #fff), var(--salon-surface));
  box-shadow:
    0 24px 70px rgba(24, 24, 27, .1),
    inset 0 1px 0 rgba(255, 255, 255, .72);
}

.salon-rating-summary,
.salon-rating-form {
  min-width: 0;
}

.salon-rating-summary {
  display: grid;
  gap: 14px;
}

.salon-rating-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 18px;
  align-items: center;
  min-height: 250px;
  padding: clamp(22px, 4vw, 34px);
  overflow: hidden;
  border-radius: calc(var(--salon-radius) + 2px);
  color: #fffaf3;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 250, 243, .18), transparent 0 34%),
    radial-gradient(circle at 18% 4%, color-mix(in srgb, var(--salon-primary) 42%, transparent), transparent 0 34%),
    linear-gradient(135deg, var(--salon-secondary) 0%, color-mix(in srgb, var(--salon-primary) 52%, var(--salon-secondary)) 100%);
  box-shadow: 0 20px 50px rgba(33, 29, 31, .18);
}

.salon-rating-hero::after {
  content: "";
  position: absolute;
  inset: auto 24px 22px auto;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255, 250, 243, .12);
  border-radius: 999px;
  pointer-events: none;
}

.salon-rating-hero .salon-kicker,
.salon-rating-hero h2,
.salon-rating-hero p,
.salon-rating-score strong,
.salon-rating-score span {
  color: inherit;
}

.salon-rating-hero .salon-kicker {
  color: rgba(255, 250, 243, .68);
}

.salon-rating-hero h2 {
  max-width: 680px;
  margin-bottom: 14px;
}

.salon-rating-score {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 12px;
}

.salon-rating-score strong {
  font-size: clamp(58px, 8.4vw, 96px);
  line-height: .86;
  letter-spacing: 0;
}

.salon-rating-score span {
  color: rgba(255, 250, 243, .72);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
}

.salon-rating-hero p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 250, 243, .75);
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.45;
}

.salon-rating-orbit {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border: 1px solid rgba(255, 250, 243, .16);
  border-radius: 999px;
  background: rgba(255, 250, 243, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.salon-rating-orbit span {
  position: absolute;
  color: #f0c36c;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .18));
  animation: salonRatingFloat 4s ease-in-out infinite;
}

.salon-rating-orbit span:nth-child(1) {
  width: 62px;
}

.salon-rating-orbit span:nth-child(2) {
  top: 18px;
  right: 16px;
  width: 25px;
  color: #fff2d2;
  animation-delay: -.8s;
}

.salon-rating-orbit span:nth-child(3) {
  bottom: 20px;
  left: 18px;
  width: 20px;
  color: #c99484;
  animation-delay: -1.6s;
}

.salon-rating-recent {
  display: grid;
  gap: 10px;
}

.salon-rating-review,
.salon-rating-empty {
  margin: 0;
  border: 1px solid var(--salon-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, .62);
  box-shadow: 0 12px 30px rgba(24, 24, 27, .045);
}

.salon-rating-review {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  transform-origin: top center;
}

.salon-rating-review.is-new {
  animation: salonReviewIn .54s cubic-bezier(.18, .88, .26, 1.12);
}

.salon-rating-review-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: #fffaf3;
  background:
    linear-gradient(135deg, var(--salon-secondary), color-mix(in srgb, var(--salon-primary) 72%, var(--salon-secondary)));
  font-size: 15px;
  font-weight: 950;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--salon-primary) 22%, transparent);
}

.salon-rating-review-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.salon-rating-review p {
  margin: 0;
  color: var(--salon-text);
  line-height: 1.58;
}

.salon-rating-review strong {
  min-width: 0;
  color: var(--salon-text);
}

.salon-rating-empty {
  display: grid;
  place-items: center;
  min-height: 108px;
  padding: 18px;
  color: var(--salon-muted);
  text-align: center;
}

.salon-rating-form {
  position: relative;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: clamp(18px, 3vw, 24px);
  overflow: hidden;
  border: 1px solid var(--salon-border);
  border-radius: calc(var(--salon-radius) + 2px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .72), color-mix(in srgb, var(--salon-surface) 82%, #fff));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .74);
}

.salon-rating-form::before {
  content: "";
  position: absolute;
  top: -70px;
  right: -58px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--salon-primary) 11%, transparent);
  pointer-events: none;
}

.salon-rating-form label,
.salon-rating-form > div {
  display: grid;
  gap: 9px;
}

.salon-rating-form > label > span,
.salon-rating-picker-head > span {
  color: var(--salon-text);
  font-size: 13px;
  font-weight: 900;
}

.salon-rating-form input[type="text"],
.salon-rating-form textarea {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--salon-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, .86);
  color: var(--salon-text);
  font: inherit;
  outline: 0;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

.salon-rating-form textarea {
  min-height: 124px;
  padding-top: 14px;
  resize: vertical;
}

.salon-rating-form input[type="text"]:focus,
.salon-rating-form textarea:focus {
  border-color: color-mix(in srgb, var(--salon-primary) 52%, var(--salon-border));
  background: #fff;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--salon-primary) 13%, transparent);
  transform: translateY(-1px);
}

.salon-rating-picker {
  position: relative;
  z-index: 1;
  gap: 12px;
}

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

.salon-rating-picker-head strong {
  min-width: 58px;
  min-height: 32px;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--salon-primary) 20%, var(--salon-border));
  border-radius: 999px;
  color: var(--salon-primary);
  background: color-mix(in srgb, var(--salon-primary) 9%, #fff);
  font-size: 13px;
  font-weight: 950;
}

.salon-rating-options {
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: clamp(7px, 1.5vw, 11px);
}

.salon-rating-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.salon-rating-star {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(48px, 7vw, 62px);
  height: clamp(52px, 7.5vw, 66px);
  border: 1px solid var(--salon-border);
  border-radius: 20px;
  color: color-mix(in srgb, var(--salon-primary) 18%, #d6cdc5);
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 8px 22px rgba(24, 24, 27, .04);
  cursor: pointer;
  transition: transform .2s ease, color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.salon-rating-star-shape {
  width: clamp(26px, 4vw, 34px);
  transition: transform .2s ease, filter .2s ease;
}

.salon-rating-star-index {
  position: absolute;
  right: 8px;
  bottom: 7px;
  color: currentColor;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

.salon-rating-star:hover,
.salon-rating-star:hover ~ .salon-rating-star,
.salon-rating-input:checked + .salon-rating-star,
.salon-rating-input:checked + .salon-rating-star ~ .salon-rating-star {
  border-color: color-mix(in srgb, var(--salon-primary) 36%, var(--salon-border));
  color: #d6a55f;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, .8), transparent 0 44%),
    color-mix(in srgb, #f9e7c2 62%, #fff);
  box-shadow: 0 14px 30px rgba(214, 165, 95, .18);
}

.salon-rating-star:hover,
.salon-rating-input:focus-visible + .salon-rating-star {
  transform: translateY(-3px);
}

.salon-rating-input:focus-visible + .salon-rating-star {
  outline: 3px solid color-mix(in srgb, var(--salon-primary) 26%, transparent);
  outline-offset: 3px;
}

.salon-rating-star:hover .salon-rating-star-shape,
.salon-rating-input:checked + .salon-rating-star .salon-rating-star-shape {
  transform: scale(1.12) rotate(8deg);
  filter: drop-shadow(0 7px 12px rgba(214, 165, 95, .28));
}

.salon-rating-section.is-rating-selected .salon-rating-input:checked + .salon-rating-star .salon-rating-star-shape {
  animation: salonStarPop .34s cubic-bezier(.18, .88, .26, 1.2);
}

.salon-rating-options:has(.salon-rating-input:disabled) {
  opacity: .55;
}

.salon-rating-options:has(.salon-rating-input:disabled) .salon-rating-star {
  cursor: not-allowed;
}

.salon-rating-caption {
  min-height: 20px;
  margin: 0;
  color: var(--salon-muted);
  font-size: 13px;
  font-weight: 760;
}

.salon-rating-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  border-radius: 20px;
  box-shadow: 0 18px 34px color-mix(in srgb, var(--salon-primary) 20%, transparent);
}

.salon-rating-submit svg {
  width: 18px;
  height: 18px;
}

.salon-rating-section.is-review-saved .salon-rating-submit {
  animation: salonSubmitPulse .46s ease;
}

.salon-review-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.salon-rating-message {
  min-height: 20px;
  margin: 0;
  color: var(--salon-muted);
  font-size: 13px;
  font-weight: 750;
}

.salon-rating-message.is-success {
  color: #15803d;
}

.salon-rating-message.is-error {
  color: #dc2626;
}

@keyframes salonRatingFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }

  50% {
    transform: translate3d(0, -8px, 0) rotate(8deg) scale(1.06);
  }
}

@keyframes salonStarPop {
  0% {
    transform: scale(.78) rotate(-12deg);
  }

  58% {
    transform: scale(1.22) rotate(10deg);
  }

  100% {
    transform: scale(1.12) rotate(8deg);
  }
}

@keyframes salonReviewIn {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(.96);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes salonSubmitPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
  }

  45% {
    transform: translateY(-1px) scale(1.018);
  }
}

@media (prefers-reduced-motion: reduce) {
  .salon-rating-orbit span,
  .salon-rating-review.is-new,
  .salon-rating-section.is-rating-selected .salon-rating-input:checked + .salon-rating-star .salon-rating-star-shape,
  .salon-rating-section.is-review-saved .salon-rating-submit {
    animation: none;
  }
}

.salon-contact-section {
  margin-bottom: 48px;
  padding: 42px;
  border: 1px solid var(--salon-border);
  border-radius: var(--salon-radius);
  background: var(--salon-surface);
}

.salon-contact-section > div:first-child {
  display: grid;
  justify-items: start;
  gap: 14px;
}

.salon-contact-card {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.salon-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px 0 44px;
  color: var(--salon-muted);
}

.salon-footer > div {
  display: grid;
  gap: 4px;
}

.salon-footer strong {
  color: var(--salon-text);
}

.salon-footer nav {
  display: flex;
  gap: 14px;
  font-weight: 800;
}

.salon-header-widgets {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.salon-header-widgets .salon-section {
  width: auto;
  padding: 0;
  margin: 0;
}

.salon-header-widgets .salon-widget-section {
  padding: 0;
}

.salon-header-widgets .salon-widget-heading-box,
.salon-header-widgets .salon-widget-text-box {
  padding: 0;
}

.salon-header-widgets h2,
.salon-header-widgets p {
  margin: 0;
}

.salon-empty {
  padding: 24px;
  color: var(--salon-muted);
}

.salon-widget-section {
  padding-top: 34px;
  padding-bottom: 34px;
}

.salon-custom-widget {
  width: 100%;
  overflow-wrap: anywhere;
}

.salon-custom-widget > * {
  max-width: 100%;
}

.salon-widget-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10000;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid #fbcfe8;
  border-radius: 14px;
  background: #fff;
  color: #18181b;
  box-shadow: 0 18px 50px rgba(24, 24, 27, 0.16);
  font-size: 14px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

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

.salon-widget-align-center {
  text-align: center;
}

.salon-widget-align-center .salon-widget-heading-box,
.salon-widget-align-center .salon-widget-text-box,
.salon-widget-align-center .salon-widget-cards-head {
  margin-inline: auto;
  justify-items: center;
}

.salon-widget-heading-box,
.salon-widget-text-box,
.salon-widget-cards-head {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.salon-widget-heading-box h2,
.salon-widget-text-box h2,
.salon-widget-cards-head h2,
.salon-widget-cta-box h2 {
  margin: 0;
  color: var(--salon-text);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
}

.salon-widget-heading-box p:not(.salon-kicker),
.salon-widget-text-box p,
.salon-widget-cards-head p,
.salon-widget-cta-box p:not(.salon-kicker) {
  margin: 0;
  color: var(--salon-muted);
  font-size: 16px;
  line-height: 1.75;
}

.salon-widget-cta-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 30px;
  border: 1px solid var(--salon-border);
  border-radius: var(--salon-radius);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--salon-primary) 12%, transparent), transparent),
    var(--salon-surface);
  box-shadow: var(--salon-shadow);
}

.salon-widget-cta-secondary {
  background: var(--salon-surface);
  box-shadow: 0 14px 44px rgba(24, 24, 27, 0.05);
}

.salon-widget-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.salon-widget-card-grid article {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 18px;
  border: 1px solid var(--salon-border);
  border-radius: calc(var(--salon-radius) - 10px);
  background: var(--salon-surface);
  color: var(--salon-text);
  font-weight: 800;
}

.salon-widget-card-grid svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--salon-primary);
}

.salon-widget-divider-wrap {
  padding-top: 12px;
  padding-bottom: 12px;
}

.salon-widget-divider {
  height: 1px;
  border-radius: 999px;
  background: var(--salon-border);
}

.salon-preview-frame .salon-preview-widget {
  position: relative;
  border-radius: var(--salon-radius);
  outline: 1px dashed transparent;
  outline-offset: -6px;
  cursor: text;
  transition: outline-color 160ms ease, background-color 160ms ease;
}

.salon-preview-frame .salon-preview-widget:hover {
  outline-color: color-mix(in srgb, var(--salon-primary) 55%, transparent);
  background: color-mix(in srgb, var(--salon-primary) 4%, transparent);
}

.salon-preview-frame .salon-preview-widget.is-selected {
  outline: 2px solid var(--salon-primary);
  background: color-mix(in srgb, var(--salon-primary) 6%, transparent);
}

.salon-preview-widget-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--salon-primary);
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.salon-preview-widget:hover .salon-preview-widget-badge,
.salon-preview-widget.is-selected .salon-preview-widget-badge {
  opacity: 1;
  transform: translateY(0);
}

.salon-preview-widget-badge svg {
  width: 13px;
  height: 13px;
}

.salon-preview-frame [contenteditable="true"] {
  min-width: 24px;
  border-radius: 8px;
  outline: 1px solid transparent;
  outline-offset: 3px;
}

.salon-preview-frame [contenteditable="true"]:hover,
.salon-preview-frame [contenteditable="true"]:focus {
  outline-color: color-mix(in srgb, var(--salon-primary) 64%, transparent);
  background: color-mix(in srgb, var(--salon-primary) 8%, transparent);
}

/* Salon website builder */
.salon-website-admin {
  background: #fafafb;
}

.salon-builder {
  min-height: 100vh;
  padding: 18px;
}

.salon-builder-topbar {
  position: sticky;
  top: 12px;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(180px, auto) 1fr auto;
  align-items: center;
  gap: 16px;
  max-width: 1500px;
  min-height: 76px;
  margin: 0 auto 16px;
  padding: 12px 14px;
  border: 1px solid #ececf1;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 50px rgba(24, 24, 27, 0.06);
  backdrop-filter: blur(18px);
}

.salon-builder-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #18181b;
  text-decoration: none;
}

.salon-builder-brand > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: #fdebf4;
  color: #f25ba8;
}

.salon-builder-brand strong,
.salon-builder-brand small {
  display: block;
}

.salon-builder-brand small,
.salon-builder-status,
.salon-editor-card-head p,
.salon-editor-subhead small,
.salon-preview-toolbar p {
  color: #71717a;
}

.salon-builder-status {
  justify-self: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f4f4f5;
  font-size: 13px;
  font-weight: 800;
}

.salon-builder-status .is-error,
#websiteSaveState.is-error {
  color: #be123c;
}

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

.salon-builder-layout {
  display: grid;
  grid-template-columns: minmax(380px, 460px) minmax(0, 1fr);
  gap: 16px;
  max-width: 1500px;
  margin: 0 auto;
}

.salon-builder-editor {
  display: grid;
  align-content: start;
  gap: 14px;
}

.salon-editor-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid #ececf1;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 12px 40px rgba(24, 24, 27, 0.04);
}

#websiteWidgetsCard {
  order: -10;
  border-color: #f25ba8;
  box-shadow: 0 18px 54px rgba(242, 91, 168, 0.11);
}

.salon-editor-card-head,
.salon-editor-subhead,
.service-editor-head,
.service-editor-options,
.salon-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.salon-editor-card-head {
  justify-content: flex-start;
  align-items: flex-start;
}

.salon-editor-card-head > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: #fdebf4;
  color: #f25ba8;
  font-weight: 900;
}

.salon-editor-card h2,
.salon-editor-card p {
  margin: 0;
}

.salon-editor-card h2 {
  color: #18181b;
  font-size: 18px;
}

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

.template-choice {
  display: grid;
  gap: 8px;
  min-height: 146px;
  padding: 10px;
  border: 1px solid #ececf1;
  border-radius: 18px;
  background: #fff;
  color: #18181b;
  text-align: left;
  cursor: pointer;
}

.template-choice.is-selected {
  border-color: #f25ba8;
  box-shadow: 0 0 0 3px #fdebf4;
}

.template-choice-preview {
  min-height: 58px;
  border-radius: 14px;
  background: #fff0f6;
}

.template-choice-preview-pastel-pink {
  background: linear-gradient(135deg, #fff0f6, #f25ba8);
}

.template-choice-preview-natural-beige {
  background: linear-gradient(135deg, #fbf6f0, #b47a5b);
}

.template-choice-preview-modern-dark {
  background: linear-gradient(135deg, #0d1018, #f25ba8);
}

.template-choice strong {
  font-size: 13px;
}

.template-choice small {
  color: #71717a;
  font-size: 11px;
  line-height: 1.35;
}

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

.salon-field {
  display: grid;
  gap: 7px;
}

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

.salon-field span {
  color: #71717a;
  font-size: 12px;
  font-weight: 800;
}

.salon-field input,
.salon-field select,
.salon-field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #ececf1;
  border-radius: 14px;
  background: #ffffff;
  color: #18181b;
  font: inherit;
  padding: 11px 12px;
  outline: none;
}

.salon-field input[type="color"] {
  min-height: 46px;
  padding: 4px;
}

.salon-field textarea {
  min-height: 92px;
  resize: vertical;
}

.salon-field input:focus,
.salon-field select:focus,
.salon-field textarea:focus {
  border-color: #f25ba8;
  box-shadow: 0 0 0 3px #fdebf4;
}

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

.section-toggle,
.service-editor-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  color: #18181b;
  font-size: 13px;
  font-weight: 800;
}

.section-toggle input,
.service-editor-options input {
  width: 17px;
  height: 17px;
  accent-color: #f25ba8;
}

.service-editor-list,
.stacked-editor-list,
.widget-editor-list {
  display: grid;
  gap: 12px;
}

.service-editor-row,
.stacked-editor-row,
.widget-editor-row {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #ececf1;
  border-radius: 18px;
  background: #fafafb;
}

.widget-editor-row.is-selected {
  border-color: #f25ba8;
  background: #fff7fb;
  box-shadow: 0 0 0 3px #fdebf4;
}

.service-editor-head {
  align-items: flex-start;
}

.service-editor-head label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
}

.service-editor-head input {
  width: 17px;
  height: 17px;
  accent-color: #f25ba8;
}

.service-editor-head small {
  color: #71717a;
  text-align: right;
}

.service-editor-options {
  justify-content: flex-start;
  flex-wrap: wrap;
}

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

.widget-add-row .btn {
  min-height: 44px;
}

.widget-editor-row-head,
.widget-editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.widget-editor-row-head label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #18181b;
  font-weight: 900;
}

.widget-editor-row-head input {
  width: 17px;
  height: 17px;
  accent-color: #f25ba8;
}

.widget-editor-actions {
  justify-content: flex-end;
}

.widget-palette {
  display: grid;
  gap: 8px;
}

.widget-palette-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #ececf1;
  border-radius: 16px;
  background: #ffffff;
  cursor: grab;
  user-select: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.widget-palette-card:hover {
  border-color: #f25ba8;
  box-shadow: 0 0 0 3px #fdebf4;
  transform: translateY(-1px);
}

.widget-palette-card.is-dragging {
  opacity: 0.45;
  border-style: dashed;
}

.widget-palette-card-drag {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: #a1a1aa;
}

.widget-palette-card-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: #fdebf4;
  color: #f25ba8;
}

.widget-palette-card-icon svg {
  width: 18px;
  height: 18px;
}

.widget-palette-card div {
  flex: 1;
  min-width: 0;
}

.widget-palette-card strong {
  display: block;
  color: #18181b;
  font-size: 13px;
  font-weight: 800;
}

.widget-palette-card small {
  display: block;
  color: #71717a;
  font-size: 11px;
  margin-top: 2px;
}

.widget-drop-zone {
  display: grid;
  place-items: center;
  min-height: 32px;
  margin: 2px 0;
  border: 2px dashed transparent;
  border-radius: 12px;
  transition: min-height 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.widget-drop-zone span {
  display: none;
  color: #f25ba8;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.widget-drop-zone.is-active {
  min-height: 48px;
  border-color: #f25ba8;
  background: #fff7fb;
}

.widget-drop-zone.is-active span {
  display: block;
}

.salon-preview-widget-grip {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  color: #a1a1aa;
  cursor: grab;
  opacity: 0;
  pointer-events: auto;
  transition: opacity 160ms ease, background-color 160ms ease;
}

.salon-preview-widget:hover .salon-preview-widget-grip,
.salon-preview-widget.is-selected .salon-preview-widget-grip {
  opacity: 1;
}

.salon-preview-widget-grip:active {
  cursor: grabbing;
}

.salon-preview-widget-grip svg {
  width: 16px;
  height: 16px;
}

.salon-preview-widget.is-dragging {
  opacity: 0.4;
  outline: 2px dashed #f25ba8 !important;
}

.salon-preview-widget-badge {
  display: flex;
  align-items: center;
  gap: 6px;
}

.salon-preview-widget-drag {
  display: none;
}

.salon-preview-widget-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.salon-builder-preview {
  position: sticky;
  top: 104px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-self: start;
  height: calc(100vh - 122px);
  min-height: 640px;
  border: 1px solid #ececf1;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 16px 50px rgba(24, 24, 27, 0.06);
  overflow: hidden;
}

.salon-preview-toolbar {
  padding: 14px 16px;
  border-bottom: 1px solid #ececf1;
}

.salon-preview-toolbar p,
.salon-preview-toolbar strong {
  display: block;
  margin: 0;
}

.salon-preview-frame {
  overflow: auto;
  padding: 18px;
  background: #f4f4f5;
}

.salon-preview-frame.is-mobile {
  display: flex;
  justify-content: center;
}

.salon-preview-document {
  min-height: auto;
  border-radius: 24px;
  overflow: hidden;
  transform-origin: top center;
}

.salon-preview-frame.is-mobile .salon-preview-document {
  width: 390px;
  min-width: 390px;
}

.salon-preview-document .salon-site-header {
  position: relative;
  top: auto;
  width: min(100% - 28px, 1080px);
  margin-top: 14px;
}

.salon-preview-document .salon-section,
.salon-preview-document .salon-footer {
  width: min(100% - 28px, 1080px);
}

.salon-preview-frame.is-mobile .salon-site-nav,
.salon-preview-frame.is-mobile .salon-site-header > .salon-btn {
  display: none;
}

.salon-preview-frame.is-mobile .salon-hero,
.salon-preview-frame.is-mobile .salon-about-section,
.salon-preview-frame.is-mobile .salon-contact-section,
.salon-preview-frame.is-mobile .salon-feature-band {
  grid-template-columns: 1fr;
}

.salon-preview-frame.is-mobile .salon-services-grid,
.salon-preview-frame.is-mobile .salon-review-grid,
.salon-preview-frame.is-mobile .salon-gallery-grid,
.salon-preview-frame.is-mobile .salon-widget-card-grid {
  grid-template-columns: 1fr;
}

.salon-preview-frame.is-mobile .salon-widget-cta-box {
  grid-template-columns: 1fr;
}

.salon-preview-frame.is-mobile .salon-hero {
  min-height: auto;
  padding-top: 42px;
}

.salon-preview-frame.is-mobile .salon-hero h1 {
  font-size: 38px;
}

@media (max-width: 980px) {
  .salon-site-header {
    width: min(100% - 24px, 1180px);
  }

  .salon-site-nav {
    display: none;
  }

  .salon-hero,
  .salon-about-section,
  .salon-contact-section,
  .salon-feature-band {
    grid-template-columns: 1fr;
  }

  .salon-services-grid,
  .salon-review-grid,
  .salon-gallery-grid,
  .salon-widget-card-grid,
  .salon-feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .salon-widget-cta-box {
    grid-template-columns: 1fr;
  }

  .salon-builder-layout {
    grid-template-columns: 1fr;
  }

  .salon-builder-preview {
    position: relative;
    top: auto;
    height: 760px;
  }
}

@media (max-width: 720px) {
  .salon-site-header,
  .salon-section,
  .salon-footer {
    width: min(100% - 24px, 1180px);
  }

  .salon-site-header {
    top: 8px;
    min-height: 64px;
  }

  .salon-site-header > .salon-btn {
    display: none;
  }

  .salon-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
    padding-top: 42px;
  }

  .salon-hero h1 {
    font-size: 42px;
  }

  .salon-hero-visual {
    min-height: 360px;
  }

  .salon-visual-card-main {
    width: 180px;
    inset: 34px 28px auto auto;
  }

  .salon-visual-card-main strong {
    font-size: 66px;
  }

  .salon-actions,
  .salon-actions .salon-btn,
  .salon-contact-section .salon-btn {
    width: 100%;
  }

  .salon-services-grid,
  .salon-review-grid,
  .salon-gallery-grid,
  .salon-widget-card-grid,
  .salon-feature-list,
  .salon-form-grid,
  .template-choice-grid,
  .section-toggle-grid,
  .widget-add-row {
    grid-template-columns: 1fr;
  }

  .salon-section {
    padding: 48px 0;
  }

  .salon-rating-panel {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
  }

  .salon-rating-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .salon-rating-orbit {
    display: none;
  }

  .salon-rating-form {
    padding: 14px;
  }

  .salon-rating-options {
    gap: 6px;
  }

  .salon-rating-star {
    width: clamp(45px, 17vw, 58px);
    height: clamp(50px, 18vw, 62px);
    border-radius: 18px;
  }

  .salon-rating-star-shape {
    width: clamp(24px, 9vw, 31px);
  }

  .salon-contact-section,
  .salon-feature-band {
    padding: 24px;
  }

  .salon-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .salon-builder {
    padding: 10px;
  }

  .salon-builder-topbar {
    position: relative;
    top: auto;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .salon-builder-status {
    justify-self: stretch;
    text-align: center;
  }

  .salon-builder-actions,
  .salon-builder-actions .btn {
    width: 100%;
  }

  .salon-builder-preview {
    min-height: 620px;
  }
}

/* =============================================
   NEW BUILDER (Elementor-like)
   ============================================= */

.builder-app {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: #f4f4f5;
}

/* TOPBAR */
.builder-topbar {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  min-height: 56px;
  border-bottom: 1px solid #e4e4e7;
  background: #fff;
  z-index: 40;
}

.builder-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #18181b;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
}

.builder-brand > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fdebf4;
  color: #f25ba8;
}

.builder-brand div { line-height: 1.2; }
.builder-brand small { display: block; font-size: 10px; color: #71717a; font-weight: 500; }

.builder-page-select {
  display: flex;
  align-items: center;
  gap: 6px;
}

.builder-select {
  min-width: 140px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d4d4d8;
  border-radius: 10px;
  background: #fafafa;
  font-size: 13px;
  font-weight: 600;
  color: #18181b;
}

.btn-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #d4d4d8;
  border-radius: 10px;
  background: #fafafa;
  color: #52525b;
  cursor: pointer;
  transition: background 120ms;
}

.btn-icon:hover { background: #f4f4f5; }
.btn-icon:disabled { opacity: .35; pointer-events: none; }
.btn-icon svg { width: 16px; height: 16px; }

.builder-device-switch {
  justify-self: center;
  display: flex;
  gap: 2px;
  background: #f4f4f5;
  border-radius: 10px;
  padding: 3px;
}

.seg-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #71717a;
  cursor: pointer;
  transition: background 120ms, color 120ms;
}

.seg-btn.active { background: #fff; color: #18181b; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.seg-btn svg { width: 15px; height: 15px; }

.builder-status {
  justify-self: center;
  font-size: 12px;
  font-weight: 700;
  color: #71717a;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f4f4f5;
}

.builder-status.is-error { color: #be123c; }

.builder-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.builder-actions .btn {
  font-size: 12px;
  padding: 0 14px;
  min-height: 36px;
  white-space: nowrap;
}

/* MAIN 3-PANEL */
.builder-main {
  display: grid;
  grid-template-columns: 260px 1fr 240px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

/* LEFT PANEL */
.builder-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
  border-right: 1px solid #e4e4e7;
  overflow: hidden;
}

.builder-panel-right {
  border-right: none;
  border-left: 1px solid #e4e4e7;
}

.panel-tabs {
  display: flex;
  gap: 2px;
  padding: 8px;
  border-bottom: 1px solid #e4e4e7;
}

.panel-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #71717a;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 120ms, color 120ms;
}

.panel-tab.active { background: #fdebf4; color: #f25ba8; }
.panel-tab svg { width: 14px; height: 14px; }

.panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #e4e4e7;
}

.panel-header h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #18181b;
}

.panel-header svg { width: 15px; height: 15px; color: #f25ba8; }

.panel-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  padding: 10px;
}

.panel-search {
  position: relative;
  margin-bottom: 10px;
}

.panel-search input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 34px;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  background: #fafafa;
  font-size: 12px;
  color: #18181b;
}

.panel-search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: #a1a1aa;
}

.panel-empty {
  padding: 20px 14px;
  color: #71717a;
  font-size: 12px;
  text-align: center;
}

.widget-category { margin-bottom: 14px; }
.widget-category h3 {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #a1a1aa;
}

.widget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.widget-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  border: 1px solid #ececf1;
  border-radius: 12px;
  background: #fff;
  cursor: grab;
  user-select: none;
  transition: border-color 140ms, box-shadow 140ms, transform 120ms, opacity 140ms;
  text-align: center;
}

.widget-card:hover {
  border-color: #f25ba8;
  box-shadow: 0 0 0 2px #fdebf4;
  transform: translateY(-1px);
}

.widget-card.is-dragging { opacity: .4; border-style: dashed; }

.widget-card span {
  font-size: 11px;
  font-weight: 700;
  color: #18181b;
  line-height: 1.2;
}

.widget-card-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fdebf4;
  color: #f25ba8;
}

.widget-card-icon svg { width: 16px; height: 16px; }

.builder-field {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.builder-field span {
  font-size: 11px;
  font-weight: 700;
  color: #71717a;
}

.builder-field input,
.builder-field select,
.builder-field textarea {
  width: 100%;
  border: 1px solid #d4d4d8;
  border-radius: 10px;
  background: #fafafa;
  font-size: 13px;
  color: #18181b;
}

.builder-field input,
.builder-field select {
  height: 36px;
  padding: 0 10px;
}

.builder-field textarea {
  min-height: 130px;
  padding: 10px;
  resize: vertical;
  line-height: 1.45;
}

.builder-code-input {
  font-family: Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

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

.style-selected {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid #fbcfe8;
  border-radius: 10px;
  background: #fff7fb;
}

.style-selected span {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #f25ba8;
}

.style-selected strong {
  font-size: 13px;
  color: #18181b;
}

.style-panel-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  padding: 3px;
  border-radius: 10px;
  background: #f4f4f5;
}

.style-panel-tab {
  min-height: 31px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #71717a;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.style-panel-tab.active {
  background: #fff;
  color: #f25ba8;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.style-group {
  display: grid;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f1f4;
}

.style-group h3 {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #a1a1aa;
}

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

.style-control {
  display: grid;
  gap: 5px;
}

.style-control > span {
  font-size: 11px;
  font-weight: 700;
  color: #71717a;
}

.style-control input,
.style-control select,
.style-control textarea {
  width: 100%;
  border: 1px solid #d4d4d8;
  border-radius: 9px;
  background: #fafafa;
  color: #18181b;
  font-size: 12px;
}

.style-control input,
.style-control select {
  height: 34px;
}

.style-control textarea {
  min-height: 78px;
  padding: 9px;
  resize: vertical;
  line-height: 1.45;
}

.style-control input[type="number"],
.style-control input[type="text"],
.style-control select {
  padding: 0 9px;
}

.option-group {
  padding: 10px;
  border: 1px solid #fde2ef;
  border-radius: 12px;
  background: #fff7fb;
}

.option-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid #ececf1;
  border-radius: 9px;
  background: #fff;
  color: #18181b;
  font-size: 12px;
  font-weight: 700;
}

.option-toggle input {
  width: 16px;
  height: 16px;
  accent-color: #f25ba8;
}

.responsive-options {
  display: grid;
  gap: 7px;
}

.style-segment {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  padding: 3px;
  border-radius: 10px;
  background: #f4f4f5;
}

.style-segment-btn {
  display: grid;
  place-items: center;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #71717a;
  cursor: pointer;
}

.style-segment-btn.active {
  background: #fff;
  color: #f25ba8;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.style-segment-btn svg {
  width: 14px;
  height: 14px;
}

.style-color-control > div {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 6px;
}

.style-color-control input[type="color"] {
  padding: 3px;
  cursor: pointer;
}

.style-reset-btn {
  width: 100%;
  min-height: 36px;
  border: 1px solid #fecdd3;
  border-radius: 10px;
  background: #fff1f2;
  color: #be123c;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.style-reset-btn:hover {
  background: #ffe4e6;
}

.navigation-settings-block {
  padding-top: 8px;
  border-top: 1px solid #f1f1f4;
}

.navigation-links-editor {
  display: grid;
  gap: 8px;
  margin: 8px 0;
}

.navigation-links-editor-panel {
  margin-top: 10px;
}

.navigation-inline-panel {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #f1f1f4;
}

.navigation-inline-panel h3 {
  margin: 0;
  font-size: 13px;
  color: #18181b;
}

.navigation-link-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  padding: 9px;
  border: 1px solid #ececf1;
  border-radius: 10px;
  background: #fafafa;
}

.navigation-link-row label {
  display: grid;
  gap: 4px;
}

.navigation-link-row label span,
.navigation-visible span {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #71717a;
}

.navigation-link-row input[type="text"] {
  width: 100%;
  height: 32px;
  padding: 0 9px;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  background: #fff;
  color: #18181b;
  font-size: 12px;
}

.navigation-visible {
  display: flex !important;
  grid-template-columns: none !important;
  flex-direction: row;
  align-items: center;
  gap: 7px;
}

.navigation-visible input {
  accent-color: #f25ba8;
}

.navigation-row-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.navigation-row-actions button {
  display: grid;
  place-items: center;
  height: 30px;
  border: 1px solid #e4e4e7;
  border-radius: 8px;
  background: #fff;
  color: #52525b;
  cursor: pointer;
}

.navigation-row-actions button:hover {
  border-color: #f25ba8;
  color: #f25ba8;
}

.navigation-row-actions svg {
  width: 14px;
  height: 14px;
}

.navigation-add-btn {
  width: 100%;
  justify-content: center;
}

/* CANVAS */
.builder-canvas {
  display: flex;
  flex-direction: column;
  background: #e4e4e7;
  overflow: hidden;
  min-height: 0;
}

.canvas-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: #fff;
  border-bottom: 1px solid #e4e4e7;
  font-size: 12px;
  font-weight: 700;
  color: #52525b;
}

.canvas-device-size { font-size: 11px; color: #a1a1aa; }

.canvas-viewport {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  justify-content: center;
}

.canvas-document {
  width: 100%;
  max-width: 1200px;
  min-height: 100%;
  background: transparent;
  border-radius: 2px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  overflow: hidden;
}

.canvas-document > .salon-template {
  min-height: 100%;
  padding: 0;
}

.canvas-document .canvas-site-header {
  position: relative;
  top: 0;
  margin-top: 22px;
  margin-bottom: 0;
  border: 0;
  cursor: inherit;
}

.canvas-document .canvas-site-header a {
  pointer-events: none;
}

.canvas-viewport[data-device="tablet"] .canvas-document { max-width: 768px; }
.canvas-viewport[data-device="mobile"] .canvas-document { max-width: 390px; }

.canvas-viewport[data-device="mobile"] .salon-site-header,
.canvas-viewport[data-device="mobile"] .salon-section,
.canvas-viewport[data-device="mobile"] .salon-footer {
  width: min(100% - 24px, 1180px);
}

.canvas-viewport[data-device="mobile"] .salon-site-header {
  min-height: 64px;
}

.canvas-viewport[data-device="mobile"] .salon-site-nav,
.canvas-viewport[data-device="mobile"] .salon-site-header > .salon-btn {
  display: none;
}

.canvas-viewport[data-device="mobile"] .salon-hero {
  grid-template-columns: 1fr;
  gap: 28px;
  min-height: auto;
  padding-top: 42px;
}

.canvas-viewport[data-device="mobile"] .salon-hero h1 {
  font-size: 42px;
}

.canvas-viewport[data-device="mobile"] .salon-hero-visual {
  min-height: 360px;
}

.canvas-viewport[data-device="mobile"] .salon-visual-card-main {
  width: 180px;
  inset: 34px 28px auto auto;
}

.canvas-viewport[data-device="mobile"] .salon-visual-card-main strong {
  font-size: 66px;
}

/* CANVAS SECTIONS */
.canvas-section {
  position: relative;
  border: 2px solid transparent;
  border-radius: 2px;
  padding: 24px 20px;
  cursor: pointer;
  transition: border-color 140ms, background 140ms;
}

.canvas-section:hover {
  background: #fafafb;
  border-color: #e4e4e7;
}

.canvas-section.is-selected {
  border-color: #f25ba8;
  background: #fff7fb;
}

.canvas-section[data-type="navigation"] {
  padding-top: 10px;
  padding-bottom: 10px;
}

.canvas-section[data-type="navigation"] .canvas-section-body > .salon-site-header {
  width: 100%;
  margin-top: 0;
}

.canvas-section.is-dragging {
  opacity: .4;
  border-style: dashed;
  border-color: #f25ba8;
}

.canvas-section.is-hidden {
  opacity: .3;
  border-style: dashed;
  border-color: #d4d4d8;
}

.canvas-section.is-device-hidden,
.cw.is-device-hidden {
  opacity: .38;
  outline: 2px dashed #a1a1aa;
  filter: grayscale(.45);
}

.canvas-section.is-device-hidden::after,
.cw.is-device-hidden::after {
  content: "Ukryte na tym widoku";
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 4;
  padding: 3px 7px;
  border-radius: 999px;
  background: #71717a;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  pointer-events: none;
}

.canvas-public-section {
  padding: 0;
}

.canvas-public-section:hover {
  background: transparent;
}

.canvas-public-section .canvas-section-body > .salon-section,
.canvas-public-section .canvas-section-body > .salon-footer {
  width: min(100% - 44px, 1180px);
}

.canvas-section-grip {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255,255,255,.85);
  color: #a1a1aa;
  cursor: grab;
  opacity: 0;
  transition: opacity 140ms;
  z-index: 2;
}

.canvas-section:hover .canvas-section-grip,
.canvas-section.is-selected .canvas-section-grip { opacity: 1; }

.canvas-section-grip svg { width: 14px; height: 14px; }

.canvas-section-badge {
  position: absolute;
  top: 8px;
  left: 12px;
  z-index: 2;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f25ba8;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  font-family: Inter, sans-serif;
  opacity: 0;
  transition: opacity 140ms;
  pointer-events: none;
}

.canvas-section:hover .canvas-section-badge,
.canvas-section.is-selected .canvas-section-badge { opacity: 1; }

.canvas-section-drop-before,
.canvas-section-drop-after,
.canvas-section-drop-end {
  min-height: 6px;
  transition: min-height 160ms, background 160ms;
  border-radius: 3px;
}

.canvas-section-drop-before.is-active,
.canvas-section-drop-after.is-active,
.canvas-section-drop-end.is-active {
  min-height: 36px;
  background: #fdebf4;
  border: 2px dashed #f25ba8;
  border-radius: 8px;
  margin: 4px 0;
}

.canvas-section-drop-end {
  min-height: 60px;
}

.canvas-section-body { pointer-events: none; }
.canvas-section-body [contenteditable="true"] { pointer-events: auto; cursor: text; outline: none; }
.canvas-section-body .cw,
.canvas-section-body .cw *,
.canvas-section-body .inline-drop { pointer-events: auto; }
.canvas-section-body [contenteditable="true"]:focus {
  outline: 1px dashed var(--salon-primary, #f25ba8);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Section previews */
.preview-hero-full {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: center;
  min-height: 320px;
  padding: 20px 0;
}

.canvas-viewport[data-device="mobile"] .preview-hero-full {
  grid-template-columns: 1fr;
  min-height: auto;
}

.ph-left { display: grid; gap: 14px; }
.ph-left h1 { font-size: clamp(28px, 4vw, 48px); margin: 0; color: #18181b; font-family: var(--salon-font, Poppins), sans-serif; line-height: 1.05; }
.ph-desc { font-size: 14px; color: #71717a; max-width: 520px; margin: 0; }
.ph-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

.ph-right { display: grid; place-items: center; }
.ph-visual { position: relative; width: 240px; height: 240px; border-radius: 28px; background: linear-gradient(135deg, color-mix(in srgb, var(--salon-primary, #f25ba8) 18%, transparent), color-mix(in srgb, var(--salon-secondary, #f8b37c) 12%, transparent)); }
.ph-visual-main { position: absolute; top: 30px; left: 30px; width: 100px; height: 100px; display: grid; place-items: center; border-radius: 50%; background: var(--salon-primary, #f25ba8); color: #fff; font-size: 42px; font-weight: 800; font-family: var(--salon-font, Poppins), sans-serif; }
.ph-visual-panel { position: absolute; bottom: 20px; left: 14px; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.88); font-size: 12px; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.ph-visual-panel svg { width: 15px; height: 15px; color: var(--salon-primary, #f25ba8); }

.preview-page-hero { min-height: 120px; padding: 24px 8px; text-align: center; display: grid; gap: 8px; place-items: center; }
.preview-page-hero h1 { font-size: clamp(24px, 3vw, 36px); margin: 0; }
.preview-page-hero .ph-desc { color: #71717a; max-width: 500px; margin: 0; }

.preview-widget-content { padding: 12px 0; }
.preview-widget-content h2 { font-size: 24px; margin: 0 0 6px; color: #18181b; }
.preview-widget-content h3 { font-size: 18px; margin: 0 0 4px; color: #18181b; }
.preview-widget-content p { margin: 0; font-size: 13px; color: #52525b; line-height: 1.6; }
.preview-placeholder { min-height: 100px; display: grid; place-items: center; background: #f4f4f5; border-radius: 10px; color: #a1a1aa; }
.preview-placeholder svg { width: 32px; height: 32px; }
.ph-divider { border: none; border-top: 1px solid #e4e4e7; margin: 8px 0; }

.preview-spacer-visual {
  background: repeating-linear-gradient(-45deg, #fdebf4, #fdebf4 4px, transparent 4px, transparent 8px);
  border: 1px dashed #f25ba8;
  border-radius: 6px;
  margin: 2px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #f25ba8;
  font-weight: 700;
}

/* Real section previews (reuse salon classes inside canvas) */
.preview-section-real {
  padding: 18px 0;
}

.preview-section-real .salon-section-head {
  margin-bottom: 16px;
  text-align: left;
}
.preview-section-real .salon-section-head-center { text-align: center; }
.preview-section-real .salon-section-head h2 {
  font-size: 22px;
  margin: 0;
  color: #18181b;
}

/* Pricing group */
.ph-pricing-group { margin-bottom: 18px; }
.ph-pricing-group h4 { margin: 0 0 8px; font-size: 12px; }

/* CTA preview */
.preview-cta .salon-widget-cta-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--salon-primary, #f25ba8) 8%, #fff), color-mix(in srgb, var(--salon-secondary, #f8b37c) 6%, #fff));
  border: 1px solid color-mix(in srgb, var(--salon-primary, #f25ba8) 20%, transparent);
}

.preview-cta .salon-widget-cta-box h2 { font-size: 18px; margin: 0 0 4px; color: #18181b; }
.preview-cta .salon-widget-cta-box p { font-size: 13px; color: #52525b; margin: 0; }

.canvas-viewport[data-device="mobile"] .preview-cta .salon-widget-cta-box {
  grid-template-columns: 1fr;
}

/* Contact preview */
.preview-contact .salon-contact-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid #ececf1;
  border-radius: 18px;
  background: #fafafb;
}

.preview-contact .salon-contact-card span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #3f3f46;
}

.preview-contact .salon-contact-card svg { width: 15px; height: 15px; color: var(--salon-primary, #f25ba8); }

/* About preview */
.preview-about .salon-about-section-inner {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 30px;
  align-items: center;
}

.ph-about-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ph-about-visual span {
  border-radius: 16px;
  background: color-mix(in srgb, var(--salon-primary, #f25ba8) 12%, transparent);
}
.ph-about-visual span:nth-child(1) { height: 80px; }
.ph-about-visual span:nth-child(2) { height: 60px; align-self: end; }
.ph-about-visual span:nth-child(3) { height: 50px; grid-column: 1 / -1; }

.preview-about h2 { font-size: 20px; margin: 0 0 6px; color: #18181b; }
.preview-about p { font-size: 13px; color: #52525b; margin: 0; }

/* Footer preview */
.preview-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid #e4e4e7;
  margin-top: 12px;
}

.preview-footer strong { font-size: 14px; color: #18181b; }
.preview-footer span { font-size: 12px; color: #a1a1aa; display: block; }
.preview-footer small { font-size: 11px; color: #a1a1aa; }

/* Salon service card in preview */
.canvas-section-body .salon-service-card {
  min-height: auto;
  padding: 16px;
  gap: 10px;
}
.canvas-section-body .salon-service-card h3 { font-size: 14px; }
.canvas-section-body .salon-service-card .salon-service-icon { width: 36px; height: 36px; }

.canvas-section-body .salon-services-grid {
  gap: 10px;
}

.canvas-section-body .salon-review-grid {
  gap: 12px;
}

.canvas-section-body .salon-review-card {
  min-height: auto;
  padding: 16px;
}

.canvas-section-body .salon-review-card p {
  font-size: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.canvas-section-body .salon-stars { font-size: 13px; }

.canvas-section-body .salon-gallery-grid {
  gap: 10px;
}

.canvas-section-body .salon-gallery-item {
  min-height: 100px;
}

.canvas-section-body .salon-btn {
  pointer-events: none;
  cursor: default;
}

/* STRUCTURE PANEL (RIGHT) */
.structure-item {
  display: grid;
  grid-template-columns: 20px auto 1fr auto;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  margin-bottom: 2px;
  cursor: pointer;
  transition: border-color 140ms, background 140ms;
  font-size: 12px;
}

.structure-item:hover { background: #fafafb; border-color: #ececf1; }
.structure-item.is-selected { background: #fff7fb; border-color: #f25ba8; }
.structure-item.is-dimmed { opacity: .4; }
.structure-item-global {
  grid-template-columns: 20px auto 1fr;
  margin-bottom: 8px;
}

.structure-grip {
  display: grid;
  place-items: center;
  color: #a1a1aa;
  cursor: grab;
}

.structure-grip svg { width: 12px; height: 12px; }

.structure-icon { font-size: 13px; }
.structure-name { font-weight: 700; color: #18181b; }
.structure-type { font-size: 10px; color: #a1a1aa; display: none; }
.structure-item:hover .structure-type { display: inline; }

.structure-actions {
  display: none;
  gap: 1px;
}

.structure-item:hover .structure-actions,
.structure-item.is-selected .structure-actions { display: flex; }

.struct-btn {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 5px;
  background: transparent;
  font-size: 11px;
  cursor: pointer;
  color: #71717a;
  transition: background 120ms;
}

.struct-btn:hover { background: #f4f4f5; color: #18181b; }
.struct-btn-danger:hover { background: #fef2f2; color: #be123c; }

/* FLOATING TOOLBAR */
.builder-floating-bar {
  position: absolute;
  z-index: 50;
  display: flex;
  gap: 4px;
  padding: 4px 6px;
  background: #18181b;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
  transform: translateY(-100%);
}

.builder-floating-bar button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 140ms;
}

.builder-floating-bar button:hover { background: rgba(255,255,255,.15); }
.builder-floating-bar button[data-action="delete"]:hover { background: rgba(239,68,68,.4); }
.builder-floating-bar svg { width: 14px; height: 14px; }

/* SALON PRICING (public page) */
.salon-pricing-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--salon-border, #e4e4e7);
}

.salon-pricing-item:last-child { border-bottom: none; }

.salon-pricing-item strong { font-size: 14px; color: var(--salon-text, #18181b); }
.salon-pricing-item small { color: var(--salon-muted, #71717a); font-size: 12px; }
.salon-pricing-item span { font-weight: 800; font-size: 14px; color: var(--salon-primary, #f25ba8); }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .builder-app {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .builder-main {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    height: auto;
    overflow: visible;
  }

  .builder-panel-right { display: none; }
  .builder-panel-left {
    max-height: 200px;
    flex-shrink: 0;
    border-right: none;
    border-bottom: 1px solid #e4e4e7;
  }

  .builder-topbar {
    grid-template-columns: auto auto;
    gap: 6px;
    padding: 6px 10px;
  }

  .builder-device-switch,
  .builder-status { display: none; }
}

/* Template choices in builder settings */
.template-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.template-choice {
  display: grid;
  gap: 6px;
  min-height: 110px;
  padding: 8px;
  border: 1px solid #ececf1;
  border-radius: 14px;
  background: #fff;
  color: #18181b;
  text-align: left;
  cursor: pointer;
}

.template-choice.is-selected {
  border-color: #f25ba8;
  box-shadow: 0 0 0 2px #fdebf4;
}

.template-choice-preview {
  min-height: 44px;
  border-radius: 10px;
}

.template-choice-preview-pastel-pink { background: linear-gradient(135deg, #fff0f6, #f25ba8); }
.template-choice-preview-natural-beige { background: linear-gradient(135deg, #fbf6f0, #b47a5b); }
.template-choice-preview-modern-dark { background: linear-gradient(135deg, #0d1018, #f25ba8); }
.template-choice-preview-minimal { background: linear-gradient(135deg, #ffffff, #111827); }

.template-choice strong { font-size: 12px; display: block; }
.template-choice small { font-size: 10px; color: #71717a; line-height: 1.3; display: block; }

/* ===== PIX-25: Month Calendar View ===== */
.calendar-month-shell { 
  display: flex; 
  flex-direction: column; 
  gap: 0; 
  border: 1px solid var(--border-light, #e4e4e7); 
  border-radius: 12px; 
  overflow: hidden; 
}
.calendar-month-head { 
  display: grid; 
  grid-template-columns: repeat(7, 1fr); 
  background: var(--surface-variant, #f8f8fa); 
  padding: 8px 4px; 
  text-align: center; 
  font-size: 11px; 
  font-weight: 600; 
  color: #71717a; 
  text-transform: uppercase; 
  letter-spacing: 0.4px; 
  border-bottom: 1px solid var(--border-light, #e4e4e7); 
}
.calendar-month-grid { 
  display: grid; 
  grid-template-columns: repeat(7, 1fr); 
}
.calendar-month-day { 
  aspect-ratio: 1; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  gap: 2px; 
  border: none; 
  background: transparent; 
  cursor: pointer; 
  font-size: 14px; 
  font-weight: 500; 
  color: #18181b; 
  border-radius: 0; 
  transition: background 0.15s; 
  position: relative; 
  padding: 4px; 
}
.calendar-month-day:hover { background: rgba(222, 138, 160, 0.12); }
.calendar-month-day.is-today { 
  background: rgba(222, 138, 160, 0.16); 
  font-weight: 700; 
  color: var(--portal-accent, #de8aa0); 
}
.calendar-month-day.is-other-month { 
  cursor: default; 
  opacity: 0; 
  pointer-events: none; 
}
.calendar-month-day small { 
  font-size: 10px; 
  color: #71717a; 
  font-weight: 600; 
}
.calendar-month-day.has-appointments { color: #22c55e; }
.calendar-month-day.has-appointments small { color: #22c55e; }
.calendar-month-day.all-cancelled { color: #ef4444; }
.calendar-month-day.all-cancelled small { color: #ef4444; }
.calendar-month-day.has-mixed { color: #f59e0b; }
.calendar-month-day.has-mixed small { color: #f59e0b; }

/* ===== PIX-31: Appointment Day Timeline ===== */
.appointment-day-timeline { 
  margin-top: 6px; 
  border: 1px solid var(--border-light, #e4e4e7); 
  border-radius: 10px; 
  overflow: hidden; 
}
.apt-day-timeline-grid { 
  display: flex; 
  min-height: 400px; 
  position: relative; 
}
.apt-day-hours { 
  display: flex; 
  flex-direction: column; 
  width: 48px; 
  flex-shrink: 0; 
  padding-right: 4px; 
  background: var(--surface-variant, #f8f8fa); 
  border-right: 1px solid var(--border-light, #e4e4e7); 
}
.apt-day-hours span { 
  flex: 1; 
  display: flex; 
  align-items: flex-start; 
  justify-content: flex-end; 
  font-size: 10px; 
  color: #a1a1aa; 
  padding: 0 4px; 
  line-height: 1; 
}
.apt-day-bars { 
  flex: 1; 
  position: relative; 
  min-height: 100%; 
}
.apt-day-line { 
  position: absolute; 
  left: 0; 
  right: 0; 
  border-top: 1px solid var(--border-light, #f0f0f3); 
  pointer-events: none; 
}
.apt-day-block { 
  position: absolute; 
  left: 4px; 
  right: 4px; 
  border-radius: 6px; 
  padding: 3px 6px; 
  font-size: 11px; 
  display: flex; 
  flex-direction: column; 
  gap: 1px; 
  overflow: hidden; 
  z-index: 1; 
}
.apt-day-block.status-confirmed { background: rgba(34, 197, 94, 0.18); border: 1px solid rgba(34, 197, 94, 0.35); }
.apt-day-block.status-pending { background: rgba(245, 158, 11, 0.18); border: 1px solid rgba(245, 158, 11, 0.35); }
.apt-day-block.status-completed { background: rgba(161, 161, 170, 0.16); border: 1px solid rgba(161, 161, 170, 0.3); }
.apt-day-block span { font-weight: 600; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apt-day-block small { font-size: 9px; opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apt-day-free-slots { position: absolute; inset: 0; z-index: 0; }
.apt-day-free-slot { 
  position: absolute; 
  left: 4px; 
  right: 4px; 
  border: 2px dashed rgba(34, 197, 94, 0.35); 
  border-radius: 6px; 
  background: rgba(34, 197, 94, 0.08); 
  cursor: pointer; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 11px; 
  color: #15803d; 
  font-weight: 600; 
  transition: background 0.15s, border-color 0.15s; 
  z-index: 2; 
}
.apt-day-free-slot:hover { 
  background: rgba(34, 197, 94, 0.16); 
  border-color: rgba(34, 197, 94, 0.55); 
}
.apt-day-free-slot.is-selected { 
  background: #22c55e; 
  color: white; 
  border-color: #16a34a; 
}
.apt-day-empty {
  position: absolute;
  inset: 16px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #71717a;
  font-size: 12px;
  line-height: 1.4;
  pointer-events: none;
}

/* ===== PIX-42: Availability Improvements ===== */
.availability-header { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 12px; 
  margin-bottom: 12px; 
  padding-bottom: 10px; 
  border-bottom: 1px solid var(--border-light, #e4e4e7); 
}
.availability-header p { font-size: 13px; color: #52525b; margin: 0; }
.availability-cyclical-label { 
  display: flex; 
  align-items: center; 
  gap: 6px; 
  font-size: 12px; 
  color: #71717a; 
  cursor: pointer; 
}
.availability-row { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  padding: 8px 10px; 
  border-radius: 8px; 
  transition: background 0.15s; 
}
.availability-row.is-active { background: rgba(222, 138, 160, 0.06); }
.availability-row.has-bookings { background: rgba(245, 158, 11, 0.06); }
.availability-toggle { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  min-width: 130px; 
  cursor: pointer; 
}
.availability-toggle span { font-size: 13px; font-weight: 500; }
.availability-toggle input[type="checkbox"] { accent-color: var(--portal-accent, #de8aa0); }
.availability-booking-info { 
  font-size: 10px; 
  color: #f59e0b; 
  font-weight: 600; 
}
.availability-sep { color: #a1a1aa; font-size: 13px; }
.availability-row input[type="time"] { 
  padding: 5px 8px; 
  border: 1px solid var(--border-light, #e4e4e7); 
  border-radius: 6px; 
  font-size: 13px; 
  width: 90px; 
}
.availability-warning { 
  color: #f59e0b; 
  cursor: help; 
  display: flex; 
  align-items: center; 
}
.availability-hint { 
  font-size: 11px; 
  color: #a1a1aa; 
  margin-top: 12px; 
  padding-top: 8px; 
  border-top: 1px solid var(--border-light, #e4e4e7); 
}
.availability-footer { margin-top: 8px; }

/* ===== PIX-40: Yearly Revenue Chart ===== */
.yearly-chart-svg .overview-chart-bar { 
  fill: var(--portal-accent, #de8aa0); 
  opacity: 0.7; 
  transition: opacity 0.2s; 
}
.yearly-chart-svg .overview-chart-bar:hover { opacity: 1; }
.yearly-chart-svg .overview-chart-bar.is-current { 
  fill: var(--portal-accent-strong, #b04f6a); 
  opacity: 1; 
}
.overview-chart-grid-label { 
  font-size: 10px; 
  fill: #a1a1aa; 
}

/* ===== PIX-21: Mobile Booking Fixes ===== */
@media (max-width: 640px) {
  .booking-service-card { 
    padding: 12px; 
    font-size: 13px; 
  }
  .booking-service-card strong { font-size: 14px; }
  .booking-slot-card { padding: 10px 12px; }
  .booking-date-card { 
    padding: 8px 4px; 
    min-width: 44px; 
  }
  .booking-progress-step { 
    font-size: 10px; 
    padding: 4px 6px; 
  }
  .booking-nav { 
    flex-wrap: wrap; 
    gap: 8px; 
  }
  .booking-nav .portal-button { 
    font-size: 13px; 
    padding: 10px 16px; 
    min-height: 42px; 
  }
}

/* ===== Online Booking Visual Refresh ===== */
.booking-page {
  --booking-accent: var(--portal-accent, #9b6a5c);
  --booking-accent-strong: var(--portal-accent-strong, #171416);
  --booking-bg: #f8f5ef;
  --booking-card: #fffaf3;
  --booking-line: #e8ded4;
  --booking-pink-soft: color-mix(in srgb, var(--booking-accent) 10%, #ffffff);
  min-height: 100vh;
  font-family: var(--booking-font, "Inter", sans-serif);
  background: var(--booking-bg);
}

.booking-page::before,
.booking-page::after,
.booking-page .portal-header {
  display: none;
}

.booking-page .container {
  max-width: 1040px;
}

.booking-shell {
  min-height: 100vh;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  padding-top: clamp(14px, 3vw, 34px);
  padding-bottom: clamp(14px, 3vw, 34px);
}

.booking-card-shell {
  width: min(100%, 940px);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 18px;
  border: 1px solid var(--booking-line);
  background: var(--booking-card);
  box-shadow: 0 18px 55px rgba(31, 41, 55, 0.08);
  backdrop-filter: none;
  gap: 22px;
}

.booking-card-brand-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.booking-page .booking-brand {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.booking-page .portal-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 0.9rem;
  background: linear-gradient(145deg, var(--booking-accent), var(--salon-accent-alt, color-mix(in srgb, var(--booking-accent) 72%, #ffffff)));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--booking-accent) 28%, transparent);
}

.booking-theme-reezly .portal-brand-mark {
  color: #fffaf3;
  background: #151314;
  box-shadow: 0 12px 24px rgba(21, 19, 20, 0.2);
}

.booking-theme-salon.booking-radius-small .booking-card-shell,
.booking-theme-salon.booking-radius-small .booking-progress-step,
.booking-theme-salon.booking-radius-small .booking-service-card,
.booking-theme-salon.booking-radius-small .booking-calendar-shell,
.booking-theme-salon.booking-radius-small .booking-slot-card,
.booking-theme-salon.booking-radius-small .booking-summary-list,
.booking-theme-salon.booking-radius-small .booking-payment-shell,
.booking-theme-salon.booking-radius-small .booking-nav .portal-button,
.booking-theme-salon.booking-radius-small .booking-success-actions .portal-button {
  border-radius: 8px;
}

.booking-theme-salon.booking-radius-large .booking-card-shell {
  border-radius: 24px;
}

.booking-theme-salon.booking-radius-large .booking-progress-step,
.booking-theme-salon.booking-radius-large .booking-service-card,
.booking-theme-salon.booking-radius-large .booking-calendar-shell,
.booking-theme-salon.booking-radius-large .booking-slot-card,
.booking-theme-salon.booking-radius-large .booking-summary-list,
.booking-theme-salon.booking-radius-large .booking-payment-shell,
.booking-theme-salon.booking-radius-large .booking-nav .portal-button,
.booking-theme-salon.booking-radius-large .booking-success-actions .portal-button {
  border-radius: 16px;
}

.booking-page .portal-brand-copy strong {
  font-size: 0.92rem;
  color: #111827;
}

.booking-page .portal-brand-copy span {
  font-size: 0.78rem;
  color: #6b7280;
}

.booking-intro-copy {
  display: none;
}

.booking-shell-head {
  display: block;
}

.booking-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 28px);
}

.booking-progress-step {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: none;
}

.booking-progress-step:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--booking-accent) 35%, #e5e7eb);
}

.booking-progress-step.is-active {
  border-color: color-mix(in srgb, var(--booking-accent) 42%, #ffffff);
  background: color-mix(in srgb, var(--booking-accent) 10%, #ffffff);
  color: var(--booking-accent-strong);
}

.booking-progress-step.is-complete {
  border-color: #e5e7eb;
  background: #ffffff;
  color: #374151;
}

.booking-form {
  gap: 20px;
}

.booking-step-pane {
  gap: 16px;
}

.booking-step-pane-head {
  gap: 5px;
}

.booking-step-pane-head strong {
  font-size: 1.05rem;
  color: #111827;
  letter-spacing: -0.02em;
}

.booking-step-pane-head p {
  color: #6b7280;
  font-size: 0.92rem;
  line-height: 1.55;
}

.booking-service-search {
  position: relative;
  display: block;
}

.booking-service-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  color: #8b92a1;
  pointer-events: none;
}

.booking-page .booking-service-search input,
.booking-page .auth-field input {
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  box-shadow: none;
}

.booking-page .booking-service-search input {
  padding-left: 42px;
}

.booking-page .booking-service-search input:focus,
.booking-page .auth-field input:focus {
  border-color: color-mix(in srgb, var(--booking-accent) 42%, #e5e7eb);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--booking-accent) 12%, transparent);
}

.booking-section-label {
  color: #111827;
  font-size: 0.88rem;
  font-weight: 800;
}

.booking-service-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

.booking-service-card {
  min-height: 62px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: none;
}

.booking-service-card:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--booking-accent) 34%, #e5e7eb);
  box-shadow: none;
}

.booking-service-card.is-selected {
  border-color: color-mix(in srgb, var(--booking-accent) 38%, #ffffff);
  background: color-mix(in srgb, var(--booking-accent) 9%, #ffffff);
  box-shadow: none;
}

.booking-service-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f4f4f5;
  color: #71717a;
}

.booking-service-icon svg,
.booking-service-check svg {
  width: 17px;
  height: 17px;
}

.booking-service-card.is-selected .booking-service-icon {
  background: color-mix(in srgb, var(--booking-accent) 18%, #ffffff);
  color: var(--booking-accent-strong);
}

.booking-service-copy {
  min-width: 0;
}

.booking-service-card strong {
  margin: 0 0 2px;
  color: #111827;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

.booking-service-card p {
  color: #6b7280;
  font-size: 0.82rem;
  line-height: 1.35;
}

.booking-service-price {
  color: #111827;
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.booking-service-check {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  border: 1px solid #d1d5db;
  color: transparent;
  background: #ffffff;
}

.booking-service-card.is-selected .booking-service-check {
  border-color: var(--booking-accent);
  background: var(--booking-accent);
  color: #ffffff;
}

.booking-term-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.booking-calendar-shell,
.booking-slots-shell,
.booking-summary-card,
.booking-payment-shell {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.booking-calendar-shell {
  padding: 18px;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  background: #ffffff;
}

.booking-calendar-head {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.booking-calendar-head h3 {
  margin: 0;
  text-align: center;
  color: #111827;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.booking-calendar-arrow {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #ffffff;
  color: #374151;
  cursor: pointer;
}

.booking-calendar-arrow:hover {
  background: #f9fafb;
}

.booking-calendar-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.booking-calendar-arrow svg {
  width: 17px;
  height: 17px;
}

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

.booking-date-card {
  min-height: 56px;
  padding: 7px 4px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #ffffff;
  color: #111827;
  box-shadow: none;
}

.booking-date-card:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--booking-accent) 30%, #e5e7eb);
  background: #fff7fb;
}

.booking-date-card span,
.booking-date-card small {
  color: #6b7280;
  font-size: 0.68rem;
  line-height: 1;
}

.booking-date-card strong {
  color: #111827;
  font-size: 0.9rem;
  line-height: 1;
}

.booking-date-card.is-selected {
  border-color: color-mix(in srgb, var(--booking-accent) 42%, #ffffff);
  background: color-mix(in srgb, var(--booking-accent) 11%, #ffffff);
  color: var(--booking-accent-strong);
}

.booking-date-card.is-selected strong,
.booking-date-card.is-selected span,
.booking-date-card.is-selected small {
  color: var(--booking-accent-strong);
}

.booking-slots-shell {
  display: grid;
  gap: 18px;
}

.booking-step-pane-head-compact strong {
  font-size: 0.98rem;
}

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

.booking-slot-card {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  text-align: center;
  box-shadow: none;
}

.booking-slot-card:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--booking-accent) 35%, #e5e7eb);
  box-shadow: none;
}

.booking-slot-card.is-selected {
  border-color: color-mix(in srgb, var(--booking-accent) 42%, #ffffff);
  background: color-mix(in srgb, var(--booking-accent) 10%, #ffffff);
  color: var(--booking-accent-strong);
  box-shadow: none;
}

.booking-slot-time {
  min-height: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 0.92rem;
  font-weight: 800;
}

.booking-slot-card small {
  display: none;
}

.booking-contact-grid {
  grid-template-columns: 1fr;
  gap: 14px;
}

.booking-contact-hint {
  display: none;
}

.booking-consent-list {
  gap: 8px;
  padding: 12px;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  background: #ffffff;
}

.booking-consent-item {
  grid-template-columns: 18px minmax(0, 1fr);
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #374151;
}

.booking-consent-item input {
  accent-color: var(--booking-accent);
}

.booking-consent-item span {
  font-size: 0.86rem;
}

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

.booking-summary-list {
  display: grid;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  background: #ffffff;
  overflow: hidden;
}

.booking-summary-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #eef0f4;
}

.booking-summary-row:last-child {
  border-bottom: 0;
}

.booking-summary-row > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #6b7280;
  font-size: 0.9rem;
}

.booking-summary-row svg {
  width: 16px;
  height: 16px;
  color: #6b7280;
}

.booking-summary-row strong {
  color: #111827;
  font-size: 0.92rem;
  line-height: 1.35;
  text-align: left;
}

.booking-summary-client {
  display: grid;
  gap: 3px;
}

.booking-summary-client small {
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 600;
}

.booking-payment-shell {
  padding: 18px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--booking-accent) 8%, #ffffff);
}

.booking-payment-grid {
  grid-template-columns: 1fr;
}

.booking-payment-option {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.booking-payment-option:hover {
  transform: none;
  box-shadow: none;
}

.booking-payment-option strong {
  margin-bottom: 4px;
  color: #111827;
}

.booking-payment-option span {
  color: #6b7280;
  font-size: 0.88rem;
}

.booking-payment-option.is-disabled {
  display: none;
}

.booking-wizard-actions {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 4px;
}

.booking-hint,
.booking-page .auth-message {
  min-height: 18px;
  color: #6b7280;
  font-size: 0.84rem;
}

.booking-page .auth-message.error {
  color: #dc2626;
}

.booking-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.booking-nav .portal-button {
  min-width: 150px;
  min-height: 48px;
  border-radius: 10px;
  padding: 0 20px;
  box-shadow: none;
}

.booking-nav .portal-button-primary {
  min-width: min(100%, 270px);
  margin-left: auto;
  background: linear-gradient(180deg, color-mix(in srgb, var(--booking-accent) 92%, #ffffff), var(--booking-accent));
  color: #ffffff;
  box-shadow: 0 14px 26px color-mix(in srgb, var(--booking-accent) 22%, transparent);
}

.booking-nav .portal-button-secondary {
  background: #ffffff;
  border-color: #e5e7eb;
  color: #111827;
}

.booking-success-card {
  justify-items: center;
  gap: 22px;
  padding: clamp(24px, 4vw, 48px) 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.booking-success-mark {
  position: relative;
  width: 88px;
  height: 88px;
  background: color-mix(in srgb, var(--booking-accent) 16%, #ffffff);
  color: var(--booking-accent);
  box-shadow: 0 0 0 16px color-mix(in srgb, var(--booking-accent) 8%, transparent);
}

.booking-success-mark svg {
  width: 42px;
  height: 42px;
  stroke-width: 3;
}

.booking-success-head {
  text-align: center;
}

.booking-success-head strong {
  font-size: clamp(1.55rem, 3vw, 2rem);
  color: #111827;
}

.booking-success-head p {
  color: #6b7280;
}

.booking-success-summary {
  width: min(100%, 620px);
}

.booking-success-actions {
  width: min(100%, 620px);
  display: grid;
  gap: 12px;
}

.booking-success-actions .portal-button {
  width: 100%;
  min-height: 50px;
  border-radius: 10px;
  box-shadow: none;
}

.booking-success-actions .portal-button-primary:first-child {
  background: linear-gradient(180deg, color-mix(in srgb, var(--booking-accent) 92%, #ffffff), var(--booking-accent));
  color: #ffffff;
}

.booking-success-actions .portal-button-primary:last-child {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
}

.booking-page .auth-links {
  display: none;
}

@media (max-width: 860px) {
  .booking-card-shell {
    width: 100%;
  }

  .booking-term-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

@media (max-width: 640px) {
  .booking-page .container {
    padding: 10px;
  }

  .booking-shell {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .booking-card-shell {
    padding: 16px;
    border-radius: 16px;
    gap: 18px;
  }

  .booking-progress {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
  }

  .booking-progress-step {
    min-height: 38px;
    font-size: 0.78rem;
    padding: 0 8px;
  }

  .booking-service-card {
    grid-template-columns: 34px minmax(0, 1fr) auto 18px;
    gap: 10px;
    padding: 10px 11px;
  }

  .booking-service-price {
    font-size: 0.8rem;
  }

  .booking-calendar-shell {
    padding: 12px;
  }

  .booking-date-grid {
    gap: 5px;
  }

  .booking-date-card {
    min-height: 48px;
  }

  .booking-slot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
  }

  .booking-slot-card {
    min-height: 42px;
  }

  .booking-summary-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .booking-nav {
    gap: 10px;
  }

  .booking-nav .portal-button {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .booking-page.is-booking-term-step {
    overflow: hidden;
  }

  .booking-page.is-booking-term-step .portal-header,
  .booking-page.is-booking-term-step .booking-card-brand-row,
  .booking-page.is-booking-term-step .booking-shell-head,
  .booking-page.is-booking-term-step .booking-hint {
    display: none;
  }

  .booking-page.is-booking-term-step .booking-shell {
    min-height: 100dvh;
    padding: 0;
  }

  .booking-page.is-booking-term-step .booking-card-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 8px;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    padding: max(8px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom));
    border-radius: 0;
  }

  .booking-page.is-booking-term-step .booking-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    padding-bottom: 0;
  }

  .booking-page.is-booking-term-step .booking-progress-step {
    min-height: 30px;
    padding: 0 5px;
    border-radius: 10px;
    font-size: 0.64rem;
  }

  .booking-page.is-booking-term-step .booking-form {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 8px;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .booking-page.is-booking-term-step .booking-step-pane[data-step="2"].is-active {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .booking-page.is-booking-term-step .booking-step-pane[data-step="2"] > .booking-step-pane-head {
    min-height: 0;
  }

  .booking-page.is-booking-term-step .booking-step-pane[data-step="2"] > .booking-step-pane-head strong {
    font-size: 0.94rem;
  }

  .booking-page.is-booking-term-step .booking-term-layout-calendar,
  .booking-page.is-booking-term-step .booking-calendar-shell-rich {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .booking-page.is-booking-term-step .booking-wizard-actions {
    gap: 6px;
    margin-top: 0;
  }

  .booking-page.is-booking-term-step .booking-nav {
    gap: 8px;
  }

  .booking-page.is-booking-term-step .booking-nav .portal-button {
    min-height: 42px;
  }
}

@media (max-width: 760px) and (max-height: 720px) {
  .booking-page.is-booking-term-step .booking-card-shell {
    gap: 6px;
    padding-top: 7px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }

  .booking-page.is-booking-term-step .booking-progress-step {
    min-height: 26px;
    font-size: 0.6rem;
  }

  .booking-page.is-booking-term-step .booking-step-pane[data-step="2"] > .booking-step-pane-head {
    display: none;
  }

  .booking-page.is-booking-term-step .booking-nav .portal-button {
    min-height: 40px;
  }
}

@media (max-width: 420px) {
  .booking-progress-step {
    min-height: 36px;
    font-size: 0.72rem;
  }

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

  .booking-service-price {
    grid-column: 2 / 3;
    justify-self: start;
  }

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

/* ===== Touch Performance Pass ===== */
@media (pointer: coarse), (max-width: 1366px) {
  .auth-page::before,
  .auth-page::after,
  .dashboard-page::before,
  .dashboard-page::after {
    display: none !important;
  }

  .portal-header,
  .portal-header::before,
  .auth-spotlight,
  .auth-card-shell,
  .dashboard-page .sidebar,
  .dashboard-page .panel,
  .dashboard-page .topbar,
  .dashboard-page .alerts-panel,
  .mobile-bottom-nav,
  .app-modal-dialog,
  .app-popover,
  .salon-builder-shell,
  .canvas-viewport {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* --- NEW BUILDER V10 --- */
.ss-drop { min-height: 6px; transition: min-height .16s, background .16s; border-radius: 3px; }
.ss-drop.is-active { min-height: 36px; background: #fdebf4; border: 2px dashed #f25ba8; border-radius: 8px; margin: 4px 0; }
.inline-drop {
  position: relative;
  min-height: 4px;
  transition: min-height .16s, background .16s;
  border-radius: 3px;
}
.canvas-document.is-widget-dragging .inline-drop { min-height: 8px; }
.inline-drop.is-active {
  min-height: 24px;
  background: rgba(242, 91, 168, .08);
  border-radius: 8px;
  margin: 2px 0;
}
.inline-drop.is-active::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 50%;
  height: 3px;
  border-radius: 999px;
  background: #f25ba8;
  box-shadow: 0 0 0 4px rgba(242, 91, 168, .13);
  transform: translateY(-50%);
}

.cw { position: relative; padding: 8px 0; cursor: grab; }
.cw:hover { background: rgba(242,91,168,.03); border-radius: 6px; }
.cw:active { cursor: grabbing; }
.cw.is-selected {
  border-radius: 8px;
  outline: 2px solid #f25ba8;
  outline-offset: 2px;
  background: rgba(242,91,168,.04);
}
.cw-grip { position: absolute; left: -6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 4px; color: #a1a1aa; cursor: grab; opacity: 0; transition: opacity .14s; }
.cw:hover .cw-grip,
.cw.is-selected .cw-grip { opacity: 1; }
.cw-grip svg { width: 12px; height: 12px; }
.cw.is-dragging { opacity: .4; outline: 2px dashed #f25ba8; cursor: grabbing; }
.cw [contenteditable="true"] { cursor: text; }
.cw-badge { position: absolute; top: 4px; right: 8px; padding: 1px 6px; border-radius: 4px; background: #f25ba8; color: #fff; font-size: 9px; font-weight: 800; font-family: Inter, sans-serif; opacity: 0; transition: opacity .14s; }
.cw:hover .cw-badge { opacity: 1; }
.cw-del { position: absolute; top: 4px; right: 8px; display: grid; place-items: center; width: 20px; height: 20px; border: none; border-radius: 4px; background: rgba(255,255,255,.8); color: #a1a1aa; cursor: pointer; font-size: 14px; opacity: 0; transition: opacity .14s; }
.cw:hover .cw-del,
.cw.is-selected .cw-del { opacity: 1; }
.cw-del:hover { color: #be123c; background: #fef2f2; }
.cw:hover .cw-badge { display: none; }

.canvas-header-widgets {
  min-width: 34px;
}

.canvas-header-widgets .inline-drop {
  width: 10px;
  min-height: 34px;
}

.canvas-header-widgets .inline-drop.is-active {
  width: 44px;
  min-height: 34px;
  margin: 0;
}

.canvas-header-widgets .inline-drop.is-active::before {
  left: 50%;
  right: auto;
  top: 6px;
  bottom: 6px;
  width: 3px;
  height: auto;
  transform: translateX(-50%);
}

.canvas-header-widgets .cw {
  padding: 4px 6px;
}

.canvas-header-widgets .cw .salon-section {
  width: auto;
  padding: 0;
  margin: 0;
}

.pv-hero { display: grid; grid-template-columns: 1fr 240px; gap: 30px; align-items: center; min-height: 280px; padding: 12px 0; }
.pv-ph { grid-template-columns: 1fr; min-height: 100px; text-align: center; }
.pv-hl { display: grid; gap: 10px; }
.pv-hl h1 { font-size: clamp(26px, 4vw, 42px); margin: 0; color: #18181b; line-height: 1.05; }
.pv-hd { font-size: 13px; color: #71717a; max-width: 480px; margin: 0; }
.pv-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.pv-hr { display: grid; place-items: center; }
.pv-vis { width: 200px; height: 200px; border-radius: 24px; background: linear-gradient(135deg, color-mix(in srgb, var(--salon-primary, #f25ba8) 18%, transparent), color-mix(in srgb, var(--salon-secondary, #f8b37c) 12%, transparent)); position: relative; }
.pv-vis-main { position: absolute; top: 24px; left: 24px; width: 80px; height: 80px; display: grid; place-items: center; border-radius: 50%; background: var(--salon-primary, #f25ba8); color: #fff; font-size: 34px; font-weight: 800; }

.canvas-viewport[data-device="mobile"] .pv-hero { grid-template-columns: 1fr; min-height: auto; }
.canvas-viewport[data-device="mobile"] .pv-hr { display: none; }
/* ============================================================
   CALENDAR � clean, minimal CRM style (matching mockups)
   ============================================================ */

/* --- Viewport & Infinite Scroll --- */
.cal-viewport {
  --cal-gutter-w: 72px;
  position: relative;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 72vh;
  min-height: 440px;
  border: 1px solid #ececf1;
  border-radius: 18px;
  background: #fff;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 10px 24px rgba(24,24,27,.045);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}
.cal-viewport::-webkit-scrollbar { height: 6px; width: 6px; }
.cal-viewport::-webkit-scrollbar-thumb { background: #e4e4e7; border-radius: 10px; }
.cal-viewport::-webkit-scrollbar-track { background: transparent; }
.cal-viewport.is-pinching {
  touch-action: none;
}
.cal-viewport.is-pinching .cal-day-col,
.cal-viewport.is-pinching .cal-avail-zone,
.cal-viewport.is-pinching .cal-block {
  transition: none !important;
}
.cal-grid-infinite.is-mobile-day-strip .cal-week-head,
.cal-grid-infinite.is-mobile-day-strip .cal-day-col {
  width: var(--cal-mobile-day-w, 220px);
  min-width: var(--cal-mobile-day-w, 220px);
}
.cal-week-viewport-shell {
  position: relative;
  --cal-gutter-w: 72px;
}
.cal-infinite-track {
  min-width: 100%;
  min-height: 100%;
  box-sizing: border-box;
  padding-left: var(--cal-gutter-w);
}

/* --- Grid (day view) --- */
.cal-grid {
  display: grid;
  --cal-gutter-w: 72px;
  grid-template-columns: var(--cal-gutter-w) repeat(var(--cal-cols, 1), 1fr);
  position: relative;
  background: #fff;
}
.cal-grid-day { --cal-cols: 1; }
.cal-grid-team { grid-template-columns: var(--cal-gutter-w) repeat(var(--cal-cols, 1), 1fr); }
.cal-grid-day .cal-day-col,
.cal-grid-team .cal-day-col { min-width: var(--cal-day-min-w, 200px); }

/* --- Infinite Grid --- */
.cal-grid-infinite {
  display: grid;
  position: relative;
  min-height: 100%;
  --cal-body-h: 896px;
  grid-template-rows: auto var(--cal-body-h, 896px);
}
.cal-grid-infinite .cal-day-col {
  min-width: 160px;
  height: var(--cal-body-h, 896px);
  min-height: var(--cal-body-h, 896px);
}

.cal-week-axis {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--cal-gutter-w);
  z-index: 300;
  overflow: hidden;
  pointer-events: none;
}

.cal-week-axis-corner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--cal-gutter-w);
  min-height: 52px;
  border-right: 1px solid #ececf1;
  border-bottom: 1px solid #ececf1;
  background: #fafafb;
  color: #71717a;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  will-change: transform;
}

.cal-week-axis-gutter {
  position: relative;
  left: auto;
  z-index: 1;
  width: var(--cal-gutter-w);
  min-width: var(--cal-gutter-w);
  will-change: transform;
}

/* --- Corner & Headers --- */
.cal-corner {
  background: #fafafb;
  border-bottom: 1px solid #ececf1;
  border-right: 1px solid #ececf1;
  min-height: 52px;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 220;
  width: var(--cal-gutter-w);
  min-width: var(--cal-gutter-w);
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cal-corner::before {
  content: 'Godz.';
}
.cal-week-head,
.cal-team-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 6px;
  background: #fafafb;
  border-bottom: 1px solid #ececf1;
  border-right: 1px solid #f3f3f6;
  position: sticky;
  top: 0;
  z-index: 20;
  grid-row: 1;
}
.cal-week-head span {
  font-size: 10px;
  font-weight: 600;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: .6px;
}
.cal-week-head strong {
  font-size: 16px;
  font-weight: 700;
  color: #18181b;
}
.cal-week-head.is-today {
  background: linear-gradient(180deg, rgba(242,91,168,.09) 0%, rgba(242,91,168,.02) 100%);
}
.cal-week-head.is-today span { color: #f25ba8; }
.cal-week-head.is-today strong { color: #f25ba8; }
.cal-week-head.is-select-touched {
  background: rgba(34,197,94,.08);
  transition: background 0.15s ease;
}
.cal-week-head.is-select-touched strong {
  color: #15803d;
}
.cal-team-head strong { font-size: 13px; color: #18181b; }
.cal-team-head small { font-size: 10px; color: #a1a1aa; }
.cal-day-head strong,
.cal-day-head small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Gutter (time labels) --- */
.cal-gutter {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e5e7eb;
  background: #fff;
  position: sticky;
  left: 0;
  z-index: 210;
  width: var(--cal-gutter-w);
  min-width: var(--cal-gutter-w);
  box-shadow: 1px 0 0 rgba(229,231,235,.72);
  min-height: 100%;
  overflow: visible;
  grid-column: 1;
  grid-row: 2;
  align-self: stretch;
}
.cal-gutter-hour {
  position: relative;
  flex: 0 0 var(--cal-hour-h, 64px);
  height: var(--cal-hour-h, 64px);
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 6px 14px 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: #18181b;
  line-height: 1;
  background: #fff;
  border-bottom: 1px solid #edf0f3;
  box-sizing: border-box;
  letter-spacing: 0;
}
.cal-gutter-hour span {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-width: 48px;
  justify-content: flex-end;
  color: #18181b;
  text-shadow: 0 1px 0 #fff;
}
.cal-gutter-hour::after {
  content: '';
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 8px;
  border-bottom: 1px solid #edf0f3;
}

.cal-week-axis .cal-gutter {
  position: relative;
  left: auto;
  z-index: 1;
  grid-column: auto;
  grid-row: auto;
  align-self: auto;
  transform: none;
}

/* --- Day Columns --- */
.cal-day-col {
  position: relative;
  grid-row: 2;
  border-right: 1px solid #f3f3f6;
  height: var(--cal-body-h, auto);
  min-height: var(--cal-body-h, 100%);
  cursor: crosshair;
  background: #fff;
  transition: background .15s;
}
.cal-day-col:hover { background: #fcfcfd; }
.cal-hour-line {
  height: var(--cal-hour-h, 64px);
  border-bottom: 1px solid #edf0f3;
  pointer-events: none;
  box-sizing: border-box;
}

/* ===== LEGEND ===== */
.cal-legend {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 12px 16px;
  font-size: 12px;
  color: #52525b;
  font-weight: 500;
}
.cal-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.cal-legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cal-dot-availability { background: #22c55e; }
.cal-dot-appointment { background: #f25ba8; border: 1px solid #db2777; }
.cal-dot-break { background: #fbbf24; border: 1px solid #f59e0b; }
.cal-dot-closed { background: #d4d4d8; border: 1px solid #a1a1aa; }

/* ===== AVAILABILITY ZONE (clean, minimal green block) ===== */
.cal-avail-zone {
  position: absolute;
  left: 4px;
  right: 4px;
  background: rgba(34,197,94,.07);
  border: 1px solid rgba(34,197,94,.28);
  border-left: 3px solid #22c55e;
  border-radius: 10px;
  z-index: 2;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 7px 9px;
  overflow: hidden;
  cursor: context-menu;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.cal-avail-zone:hover {
  background: rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.45);
  box-shadow: 0 2px 10px rgba(34,197,94,.14);
}
.cal-avail-label {
  font-size: 9px;
  font-weight: 700;
  color: #15803d;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 2px;
}
.cal-avail-time {
  font-size: 11px;
  color: #166534;
  font-weight: 600;
  letter-spacing: 0;
}

/* ===== AVAILABILITY RESIZE HANDLES ===== */
.cal-avail-resize {
  position: absolute;
  z-index: 9;
  opacity: 0;
  transition: opacity .12s, transform .12s;
}
.cal-avail-resize-top,
.cal-avail-resize-bottom {
  left: 0;
  right: 0;
  height: 14px;
  cursor: ns-resize;
}
.cal-avail-resize-top { top: -7px; }
.cal-avail-resize-bottom { bottom: -7px; }
.cal-avail-resize-top::after,
.cal-avail-resize-bottom::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 18px;
  height: 7px;
  border: 2px solid #22c55e;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 2px 8px rgba(24,24,27,.14);
  transform: translateX(-50%);
}
.cal-avail-resize-top::after { top: 2px; }
.cal-avail-resize-bottom::after { bottom: 2px; }
.cal-avail-resize-left,
.cal-avail-resize-right {
  top: 0;
  bottom: 0;
  width: 14px;
  cursor: ew-resize;
}
.cal-avail-resize-left { left: -7px; }
.cal-avail-resize-right { right: -7px; }
.cal-avail-resize-left::after,
.cal-avail-resize-right::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 24px;
  border: 2px solid #22c55e;
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 2px 8px rgba(24,24,27,.14);
  transform: translateY(-50%);
}
.cal-avail-resize-left::after { left: 1px; }
.cal-avail-resize-right::after { right: 1px; }
.cal-avail-zone:hover .cal-avail-resize,
.cal-avail-zone.is-resizing .cal-avail-resize,
.cal-avail-zone.is-side-resizing .cal-avail-resize { opacity: 1; }
.cal-avail-zone.is-dragging {
  cursor: grabbing;
  opacity: 0.3;
  z-index: 100;
}
.cal-avail-zone.is-resizing {
  z-index: 100;
  box-shadow: 0 4px 16px rgba(34,197,94,.2);
}
.cal-avail-zone.is-side-resizing {
  z-index: 100;
  box-shadow: 0 4px 16px rgba(34,197,94,.2);
}
.cal-avail-zone {
  cursor: grab;
}

/* ===== AVAILABILITY DRAG GHOST ===== */
.cal-avail-ghost {
  background: rgba(34,197,94,.15);
  border: 2px solid rgba(34,197,94,.4);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(34,197,94,.2);
}

.cal-avail-side-resize-ghost {
  position: fixed;
  background: rgba(34,197,94,.14);
  border: 2px dashed rgba(34,197,94,.58);
  border-radius: 12px;
  z-index: 10000;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 36px rgba(34,197,94,.12);
}

.cal-avail-side-resize-ghost span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  color: #15803d;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(24,24,27,.12);
}

/* ===== AVAILABILITY DELETE BUTTON ===== */
.cal-avail-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border: none;
  background: rgba(239,68,68,.1);
  color: #dc2626;
  border-radius: 4px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity .12s, background .12s;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.cal-avail-zone:hover .cal-avail-delete { opacity: 1; }
.cal-avail-delete:hover {
  background: rgba(239,68,68,.2);
}

/* ===== EVENT BLOCKS (clean, minimal) ===== */
.cal-block {
  position: absolute;
  left: 6px;
  right: 6px;
  border-radius: 10px;
  padding: 4px 8px;
  overflow: hidden;
  cursor: grab;
  z-index: 5;
  transition: box-shadow .2s ease, transform .15s ease;
  font-size: 11px;
  line-height: 1.4;
  font-family: inherit;
  min-height: 20px;
}
.cal-block:active { cursor: grabbing; }
.cal-block:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  z-index: 20;
  transform: translateY(-1px);
}
.cal-block.is-dragging {
  opacity: .95;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  transform: scale(1.01);
  cursor: grabbing;
  transition: none;
}
.cal-block.is-resizing {
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  transition: none;
}

/* Appointment = brand pink */
.cal-block-apt {
  background: #fdebf4;
  border: 1px solid #f9cfe4;
  border-left: 3px solid #f25ba8;
  color: #a21567;
}
/* Break = soft pastel amber */
.cal-block-break {
  background: #fff7e8;
  border: 1px solid #fde2b3;
  border-left: 3px solid #f59e0b;
  color: #92400e;
}
/* Conflict = soft red */
.cal-block.has-conflict {
  background: rgba(239,68,68,.08) !important;
  border-color: rgba(239,68,68,.4) !important;
  color: #991b1b !important;
  animation: cal-shake .3s ease;
}
@keyframes cal-shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

.cal-block-time {
  font-size: 10px;
  font-weight: 700;
  opacity: .85;
  letter-spacing: .1px;
}
.cal-block-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
}
.cal-block-svc {
  font-size: 9px;
  opacity: .65;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Resize handles */
.cal-resize {
  position: absolute;
  left: 0;
  right: 0;
  height: 14px;
  cursor: ns-resize;
  z-index: 9;
  opacity: 0;
  transition: opacity .12s, transform .12s;
}
.cal-resize-top { top: -7px; }
.cal-resize-bottom { bottom: -7px; }
.cal-resize-bottom::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 18px;
  height: 7px;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 2px 8px rgba(24,24,27,.14);
  transform: translateX(-50%);
}
.cal-resize-top::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 2px;
  width: 18px;
  height: 7px;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 2px 8px rgba(24,24,27,.14);
  transform: translateX(-50%);
}
.cal-block:hover .cal-resize,
.cal-block.is-selected .cal-resize,
.cal-block.is-resizing .cal-resize {
  opacity: 1;
}

/* ===== DRAG-TO-SELECT GHOST (defined fully further below) ===== */

/* ===== DAY OFF ===== */
.is-day-off { background: linear-gradient(180deg, #f4f4f5, #e4e4e7); }
.cal-day-off-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}
.cal-day-off-overlay span {
  background: rgba(255,255,255,.7);
  color: #71717a;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cal-day-off-overlay span i {
  width: 14px;
  height: 14px;
}

/* ===== MONTH VIEW ===== */
.cal-month-shell {
  display: flex;
  flex-direction: column;
  border: 1px solid #f0f0f3;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.cal-month-head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #fafafa;
  padding: 12px 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: .6px;
  border-bottom: 1px solid #f0f0f3;
}
.cal-month-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-month-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 10px 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #18181b;
  transition: background .15s;
  border-bottom: 1px solid #f5f5f7;
  border-right: 1px solid #f5f5f7;
}
.cal-month-day:hover { background: rgba(242,91,168,.06); }
.cal-month-day.is-other { cursor: default; opacity: 0; pointer-events: none; }
.cal-month-day.is-today {
  background: rgba(242,91,168,.09);
  font-weight: 700;
  color: #f25ba8;
}
.cal-month-day.is-day-off { background: rgba(161,161,170,.12); }
.cal-month-day.is-day-off span { color: #71717a; }

.cal-month-dots { display: flex; gap: 4px; align-items: center; margin-top: 3px; }
.cal-month-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.cal-month-dot.cal-dot-appointment { background: #f25ba8; }
.cal-month-dot.cal-dot-break { background: #fbbf24; }
.cal-month-dots small { font-size: 9px; color: #a1a1aa; }

/* ===== CONTEXT MENU (right click) ===== */
.cal-quick-menu {
  position: fixed;
  z-index: 10000;
  background: #fff;
  border: 1px solid #ececf1;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(24,24,27,.14), 0 2px 6px rgba(24,24,27,.06);
  padding: 6px;
  min-width: 216px;
  opacity: 0;
  transform: translateY(-4px) scale(.98);
  transform-origin: top left;
  transition: opacity .12s ease, transform .12s ease;
}
.cal-quick-menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.cal-quick-menu-head {
  display: grid;
  gap: 3px;
  padding: 9px 12px 11px;
  border-bottom: 1px solid #f4f4f5;
  margin-bottom: 5px;
}
.cal-quick-menu-head strong {
  font-size: 13px;
  font-weight: 700;
  color: #18181b;
  letter-spacing: .1px;
}
.cal-quick-menu-head span {
  font-size: 11px;
  color: #71717a;
  text-transform: capitalize;
}
.cal-quick-menu-note {
  margin: -1px 6px 6px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #fff1f2;
  color: #be123c;
  font-size: 11px;
  line-height: 1.4;
}
.cal-quick-menu button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #27272a;
  cursor: pointer;
  border-radius: 9px;
  text-align: left;
  transition: background .14s, color .14s;
}
.cal-quick-menu button:hover { background: #fdebf4; color: #f25ba8; }
.cal-quick-menu button.is-danger:hover { background: #fff0f1; color: #ef4444; }
.cal-quick-menu button:disabled {
  cursor: not-allowed;
  color: #c4c4cb;
  background: transparent;
}
.cal-quick-menu button:disabled:hover { background: transparent; color: #c4c4cb; }

/* ===== FAB ===== */
.cal-fab {
  position: fixed;
  bottom: 84px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f25ba8;
  color: #fff;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  box-shadow: 0 4px 20px rgba(242,91,168,.35);
  transition: transform .2s, box-shadow .2s;
}
.cal-fab:active { transform: scale(.94); }
.cal-fab i { width: 24px; height: 24px; }
@media (max-width: 760px) { .cal-fab { display: flex; } }

/* ===== BOTTOM SHEET ===== */
.cal-bottom-sheet {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 10000;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,.08);
  padding: 16px 20px 32px;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.cal-bottom-sheet.is-open { transform: translateY(0); }
.cal-bottom-sheet-handle {
  width: 40px;
  height: 4px;
  background: #e4e4e7;
  border-radius: 4px;
  margin: 0 auto 16px;
}
.cal-bottom-sheet-head { margin-bottom: 18px; }
.cal-bottom-sheet-head strong { display: block; font-size: 17px; font-weight: 700; color: #18181b; }
.cal-bottom-sheet-head small { font-size: 12px; color: #a1a1aa; }
.cal-bottom-sheet-actions { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.cal-bottom-sheet-actions button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #18181b;
  cursor: pointer;
  border-radius: 12px;
  text-align: left;
  transition: background .15s;
}
.cal-bottom-sheet-actions button:hover { background: #fdebf4; color: #f25ba8; }
.cal-bottom-sheet-actions button.is-danger:hover { background: #fff0f1; color: #ef4444; }
.cal-bottom-sheet-actions button i { width: 20px; height: 20px; color: #f25ba8; }
.cal-bottom-sheet-close {
  width: 100%;
  padding: 14px;
  border: none;
  background: #f4f4f6;
  color: #71717a;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 12px;
}

/* ===== DRAG GHOST ===== */
.cal-block-ghost {
  position: fixed !important;
  z-index: 10000 !important;
  pointer-events: none !important;
  opacity: 0.95 !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.12) !important;
  transform: scale(1.01) !important;
}
.cal-block-ghost.has-conflict {
  background: rgba(239,68,68,.08) !important;
  border-color: rgba(239,68,68,.4) !important;
  color: #991b1b !important;
}

/* ===== RESIZE GHOST ===== */
.cal-resize-ghost {
  position: absolute;
  left: 8px;
  right: 8px;
  border: 2px solid #ec4899;
  border-radius: 16px;
  pointer-events: none;
  z-index: 120;
  background: rgba(236,72,153,.1);
  box-shadow: 0 0 0 4px rgba(236,72,153,.08), 0 18px 36px rgba(236,72,153,.16);
}

.cal-resize-ghost::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 11px;
  height: 11px;
  border: 2px solid #ec4899;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(24,24,27,.18);
  transform: translateX(-50%);
}

.cal-resize-ghost.has-conflict {
  border-color: #ef4444;
  background: rgba(239,68,68,.1);
  box-shadow: 0 0 0 4px rgba(239,68,68,.08), 0 18px 36px rgba(239,68,68,.12);
}

.cal-resize-ghost.has-conflict::after {
  border-color: #ef4444;
}

.cal-avail-resize-ghost {
  border-color: #22c55e;
  background: rgba(34,197,94,.11);
  box-shadow: 0 0 0 4px rgba(34,197,94,.08), 0 18px 36px rgba(34,197,94,.14);
}

.cal-avail-resize-ghost::after {
  border-color: #22c55e;
}

.cal-resize-time {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  padding: 5px 10px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(17,24,39,.18);
  transform: translateX(-50%);
}

/* ===== SELECT GHOST WITH TIME LABEL (multi-day availability draw) ===== */
.cal-select-ghost {
  position: absolute;
  background: rgba(34,197,94,.1);
  border: 2px solid rgba(34,197,94,.4);
  border-radius: 10px;
  z-index: 50;
  pointer-events: none;
  display: none;
  align-items: center;
  justify-content: center;
}
.cal-select-ghost.is-active { display: flex; }

/* ===== SELECT OVERLAY (full-screen drag indicator) ===== */
.cal-select-overlay {
  position: fixed;
  background: rgba(34,197,94,.2);
  border: 2px solid rgba(34,197,94,.6);
  border-radius: 8px;
  z-index: 10000;
  pointer-events: none;
  display: none;
}
.cal-select-overlay.is-active {
  display: block;
}
.cal-select-ghost-continuous.is-active { display: flex; }
.cal-select-time {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #15803d;
  background: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(24,24,27,.12);
}

/* ===== CONFLICT TOOLTIP ===== */
.cal-conflict-tooltip {
  position: fixed;
  z-index: 10001;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #991b1b;
  box-shadow: 0 4px 16px rgba(239,68,68,.15);
  pointer-events: none;
  animation: cal-tooltip-in .2s ease;
}
.cal-conflict-tooltip i {
  width: 16px;
  height: 16px;
  color: #ef4444;
}
@keyframes cal-tooltip-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== CURRENT TIME INDICATOR ===== */
.cal-time-line {
  position: absolute;
  left: -1px;
  right: 0;
  height: 2px;
  background: #ef4444;
  z-index: 60;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,.75);
}
.cal-time-line::before {
  display: none;
}
.cal-time-line span {
  position: absolute;
  right: 6px;
  top: -20px;
  font-size: 10px;
  font-weight: 600;
  color: #ef4444;
  background: rgba(255,255,255,.95);
  padding: 2px 6px;
  border-radius: 4px;
}
.cal-time-marker {
  position: absolute;
  left: 0;
  right: -8px;
  height: 0;
  z-index: 230;
  pointer-events: none;
}
.cal-time-marker::after {
  content: '';
  position: absolute;
  top: -1px;
  right: -7px;
  width: 8px;
  height: 2px;
  background: #ef4444;
}
.cal-time-marker span {
  position: absolute;
  top: 0;
  right: 7px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(239,68,68,.18);
  white-space: nowrap;
}

/* ===== DAY OFF OVERLAY ===== */
.cal-day-off-overlay span {
  background: rgba(255,255,255,.72);
  color: #71717a;
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cal-day-off-overlay span i {
  width: 14px;
  height: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 760px) {
  .cal-viewport { --cal-gutter-w: 60px; max-height: calc(100vh - 210px); min-height: 320px; border-radius: 12px; }
  .cal-week-viewport-shell { --cal-gutter-w: 60px; }
  .cal-grid { --cal-gutter-w: 60px; border-radius: 12px; }
  .cal-grid-infinite .cal-day-col { min-width: calc(100vw - 88px); }
  .cal-week-head { font-size: 9px; }
  .cal-week-head strong { font-size: 13px; }
  .cal-gutter-hour {
    flex-basis: var(--cal-hour-h, 48px);
    height: var(--cal-hour-h, 48px);
    padding-right: 10px;
    font-size: 11px;
  }
  .cal-block { font-size: 10px; padding: 3px 6px; left: 3px; right: 3px; }
  .cal-block-name { font-size: 10px; }
  .cal-block-svc { font-size: 8px; }
  .cal-block-time { font-size: 9px; }
  .cal-conflict-tooltip { font-size: 11px; padding: 8px 12px; }
  .cal-time-line span { font-size: 9px; }
}

/* ===== Reezly Calendar SaaS polish ===== */
.dashboard-page .calendar-shell {
  gap: 16px;
}

.dashboard-page .calendar-top {
  align-items: center;
}

.dashboard-page .calendar-toolbar {
  justify-content: flex-end;
}

.dashboard-page #calendarAvailabilityBtn.active {
  border-color: #bbf7d0;
  background: #ecfdf3;
  color: #15803d;
}

.calendar-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.calendar-workspace.is-day-panel-hidden {
  grid-template-columns: minmax(0, 1fr);
}

.calendar-workspace .calendar-agenda {
  min-width: 0;
}

.calendar-day-panel {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 16px;
  max-height: calc(100vh - 140px);
  overflow: auto;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(24,24,27,.06);
}

.calendar-day-panel.is-hidden {
  display: none;
}

#calendarDayPanelToggleBtn.active {
  border-color: #fbcfe8;
  background: #fdf2f8;
  color: #be185d;
}

.day-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.day-panel-head h4 {
  margin: 4px 0 0;
  color: #111827;
  font-size: 17px;
  line-height: 1.25;
}

.day-panel-close {
  border-color: #e5e7eb !important;
  color: #6b7280 !important;
}

.day-panel-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  background: #fafafa;
}

.day-panel-stats article {
  display: grid;
  gap: 4px;
  min-height: 66px;
  place-items: center;
  padding: 10px 6px;
  border-right: 1px solid #eef0f3;
  text-align: center;
}

.day-panel-stats article:last-child {
  border-right: 0;
}

.day-panel-stats strong {
  color: #111827;
  font-size: 16px;
}

.day-panel-stats span,
.day-panel-empty,
.day-panel-free small,
.day-panel-appointment small {
  color: #71717a;
  font-size: 11px;
}

.day-panel-section {
  display: grid;
  gap: 10px;
}

.day-panel-section h5 {
  margin: 0;
  color: #111827;
  font-size: 13px;
}

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

.day-panel-appointment,
.day-panel-free {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  color: #111827;
  text-align: left;
  cursor: pointer;
}

.day-panel-appointment span,
.day-panel-free span {
  color: #4b5563;
  font-size: 11px;
  font-weight: 700;
}

.day-panel-appointment strong {
  font-size: 13px;
}

.day-panel-appointment.is-confirmed {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.day-panel-appointment.is-unconfirmed {
  border-color: #fbcfe8;
  background: #fdf2f8;
}

.day-panel-appointment.is-payment-pending {
  border-color: #fed7aa;
  background: #fff7ed;
}

.day-panel-appointment.is-cancelled {
  border-color: #e5e7eb;
  background: #f8fafc;
  color: #6b7280;
}

.day-panel-free {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  background: #fafafa;
}

.calendar-detail-summary {
  cursor: default;
}

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

.calendar-detail-grid article {
  min-width: 0;
  padding: 12px;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  background: #fafafa;
}

.calendar-detail-grid span,
.calendar-delete-summary span,
.calendar-delete-summary small {
  display: block;
  color: #71717a;
  font-size: 11px;
  font-weight: 700;
}

.calendar-detail-grid strong,
.calendar-delete-summary strong {
  display: block;
  margin-top: 4px;
  color: #18181b;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.calendar-delete-summary {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid #fecdd3;
  border-radius: 16px;
  background: #fff1f2;
}

.day-panel-actions .btn.is-danger,
.dashboard-page .btn.is-danger {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #be123c;
}

.day-panel-actions .btn.is-danger:hover,
.dashboard-page .btn.is-danger:hover {
  border-color: #fda4af;
  background: #ffe4e6;
  color: #9f1239;
}

.cal-viewport {
  max-height: min(72vh, 760px);
  border-color: #e5e7eb;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(24,24,27,.055);
}

.cal-grid-infinite .cal-day-col {
  min-width: 142px;
}

.cal-week-head.is-today {
  background: #fdf2f8;
}

.cal-week-head.is-today span,
.cal-week-head.is-today strong {
  color: #ec4899;
}

.cal-day-col[data-date]:hover {
  background: #fff;
}

.cal-time-line {
  background: #ec4899;
}

.cal-time-line::before {
  background: #ec4899;
}

.cal-time-line span {
  left: 6px;
  right: auto;
  top: -13px;
  color: #fff;
  background: #ec4899;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 10px;
}

.cal-time-marker::after,
.cal-time-marker span {
  background: #ec4899;
}

.cal-time-marker span {
  box-shadow: 0 4px 10px rgba(236,72,153,.2);
}

.cal-block {
  left: 8px;
  right: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(24,24,27,.04);
}

.cal-block.is-selected {
  outline: 2px solid #8b5cf6;
  outline-offset: 2px;
}

.cal-block-apt.is-confirmed {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #3b82f6;
  color: #1e3a8a;
}

.cal-block-apt.is-unconfirmed {
  background: #fdf2f8;
  border: 1px solid #f9a8d4;
  border-left: 4px solid #ec4899;
  color: #831843;
}

.cal-block-apt.is-payment-pending {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 4px solid #f59e0b;
  color: #7c2d12;
}

.cal-block-apt.is-cancelled {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #9ca3af;
  color: #4b5563;
  opacity: .82;
}

.cal-block-time,
.cal-block-name,
.cal-block-svc {
  display: block;
}

.cal-block-name {
  font-weight: 800;
}

.cal-block-status {
  display: inline-flex;
  width: fit-content;
  margin-top: 5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  font-size: 9px;
  font-weight: 800;
}

.cal-block-more {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,.62);
  color: inherit;
  cursor: pointer;
  opacity: 0;
}

.cal-block:hover .cal-block-more,
.cal-block.is-selected .cal-block-more {
  opacity: 1;
}

.cal-dot-confirmed { background: #3b82f6; }
.cal-dot-unconfirmed { background: #ec4899; }
.cal-dot-payment { background: #f59e0b; }
.cal-dot-cancelled { background: #9ca3af; }

.cal-select-overlay {
  background: rgba(236,72,153,.08);
  border-color: rgba(236,72,153,.5);
}

.calendar-availability-mode .cal-select-overlay {
  background: rgba(34,197,94,.14);
  border-color: rgba(34,197,94,.55);
}

@media (max-width: 1180px) {
  .calendar-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .calendar-day-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 9000;
    width: min(380px, 92vw);
    max-height: none;
    border-radius: 20px 0 0 20px;
    transform: translateX(105%);
    transition: transform 180ms ease;
  }

  .calendar-day-panel.is-open {
    transform: translateX(0);
  }
}

@media (max-width: 760px) {
  .dashboard-page .calendar-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .cal-viewport {
    max-height: calc(100vh - 250px);
  }

  .cal-grid-infinite .cal-day-col {
    min-width: calc(100vw - 92px);
  }

  .app-modal-floating .app-modal-dialog,
  .app-modal-dialog {
    width: 100%;
    max-width: none;
    min-height: 100dvh;
    border-radius: 0;
  }
}

/* Website manager */
.website-manager-layout {
  background: var(--vensa-bg);
}

.website-manager-main {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 34px 44px 44px;
}

.website-manager-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.website-manager-header h1 {
  margin: 0 0 8px;
  color: #09090b;
  font-size: 30px;
  letter-spacing: 0;
}

.website-manager-header p,
.website-row p,
.website-row small,
.website-accordion summary small,
.website-settings-row summary small {
  color: #71717a;
  line-height: 1.5;
}

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

.website-manager-tabs {
  display: flex;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(24, 24, 27, 0.05);
  overflow-x: auto;
}

.website-manager-tab {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #52525b;
  padding: 0 14px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.website-manager-tab svg {
  width: 17px;
  height: 17px;
}

.website-manager-tab.is-active {
  background: #fdf2f8;
  color: #db2777;
}

.website-manager-panel {
  display: none;
}

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

.website-accordion {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
}

.website-accordion details,
.website-settings-row {
  overflow: hidden;
}

.website-accordion summary,
.website-settings-row summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.website-accordion summary::-webkit-details-marker,
.website-settings-row summary::-webkit-details-marker {
  display: none;
}

.website-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
}

.website-panel-head strong {
  display: block;
  margin-bottom: 5px;
  color: #111827;
  font-size: 16px;
}

.website-panel-head small {
  color: #71717a;
  line-height: 1.5;
}

.website-accordion summary strong {
  display: block;
  margin-bottom: 5px;
  color: #111827;
  font-size: 16px;
}

.website-list,
.website-settings-list {
  display: grid;
  gap: 0;
  padding: 0 20px 18px;
}

.website-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  min-height: 74px;
  padding: 12px 0;
  border-top: 1px solid #eef0f3;
}

.website-row-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fdf2f8;
  color: #ec4899;
}

.website-row-icon.is-purple {
  background: #f5f3ff;
  color: #7c3aed;
}

.website-row h3 {
  margin: 0 0 3px;
  color: #111827;
  font-size: 14px;
}

.website-row small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
}

.website-page-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #71717a;
  font-size: 12px;
  font-weight: 700;
}

.website-page-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a1a1aa;
}

.website-page-status.is-active::before {
  background: #22c55e;
}

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

.website-row-actions .btn,
.website-row > .btn {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 9px;
}

.website-settings-list {
  gap: 10px;
}

.website-settings-row {
  border: 1px solid #eef0f3;
  border-radius: 12px;
  background: #fff;
}

.website-settings-row summary {
  min-height: 56px;
  padding: 14px 16px;
}

.website-settings-row summary span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #18181b;
  font-weight: 800;
}

.website-settings-row summary svg {
  width: 17px;
  height: 17px;
  color: #7c3aed;
}

.website-settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 16px 16px;
}

.website-settings-form label {
  display: grid;
  gap: 7px;
}

.website-settings-form label span {
  color: #71717a;
  font-size: 12px;
  font-weight: 800;
}

.website-settings-form textarea,
.website-settings-form label:has(textarea),
.website-choice-group,
.website-color-swatches {
  grid-column: 1 / -1;
}

.website-settings-form .btn {
  width: fit-content;
}

.website-choice-group,
.website-color-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.website-choice-group button,
.website-color-swatches button {
  min-height: 38px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #3f3f46;
  padding: 0 12px;
  cursor: pointer;
  font-weight: 800;
}

.website-choice-group button.is-selected,
.website-color-swatches button.is-selected {
  border-color: #f9a8d4;
  background: #fdf2f8;
  color: #db2777;
}

.website-color-swatches span {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 7px;
  border-radius: 50%;
  vertical-align: -1px;
}

.website-themes-card {
  padding-bottom: 20px;
}

.website-themes-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 18px;
  padding: 0 20px;
}

.website-theme-form {
  display: grid;
  gap: 18px;
  min-width: 0;
}

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

.website-theme-card {
  min-height: 228px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  color: #18181b;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.website-theme-card:hover {
  border-color: #f9a8d4;
  transform: translateY(-1px);
}

.website-theme-card.is-selected {
  border-color: #ec4899;
  box-shadow: 0 0 0 3px #fce7f3, 0 14px 34px rgba(236, 72, 153, 0.12);
}

.website-theme-preview {
  position: relative;
  min-height: 94px;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.website-theme-preview::before,
.website-theme-preview::after,
.website-theme-preview span::before,
.website-theme-preview span::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.82;
}

.website-theme-preview::before {
  top: 16px;
  left: 16px;
  width: 42%;
  height: 8px;
}

.website-theme-preview::after {
  top: 36px;
  left: 16px;
  width: 58%;
  height: 5px;
  opacity: 0.45;
}

.website-theme-preview span::before {
  right: 14px;
  top: 14px;
  width: 46px;
  height: 22px;
}

.website-theme-preview span::after {
  left: 16px;
  right: 16px;
  bottom: 14px;
  height: 24px;
  border-radius: 10px;
  opacity: 0.32;
}

.website-theme-preview-pastel-pink {
  color: #db2777;
  background: linear-gradient(135deg, #fff7fb, #fce7f3);
}

.website-theme-preview-natural-beige {
  color: #8b5e42;
  background: linear-gradient(135deg, #fffaf4, #ead8c7);
}

.website-theme-preview-modern-dark {
  color: #f9a8d4;
  background: linear-gradient(135deg, #0f172a, #312e81);
}

.website-theme-preview-minimal {
  color: #111827;
  background: linear-gradient(135deg, #ffffff, #f4f4f5);
}

.website-theme-card strong {
  font-size: 15px;
}

.website-theme-card small {
  min-height: 40px;
  color: #71717a;
  line-height: 1.45;
}

.website-theme-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.website-theme-tags span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f4f4f5;
  color: #52525b;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 800;
}

.website-theme-config {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  background: #fbfbfd;
}

.website-theme-config label {
  display: grid;
  gap: 7px;
}

.website-theme-config label span,
.website-theme-schema dt {
  color: #71717a;
  font-size: 12px;
  font-weight: 800;
}

.website-custom-css-field,
.website-theme-config .website-color-swatches {
  grid-column: 1 / -1;
}

.website-theme-config .btn {
  width: fit-content;
}

.website-theme-schema {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
  padding: 18px;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  background: #fbfbfd;
}

.website-schema-kicker {
  color: #ec4899;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.website-theme-schema h3 {
  margin: 6px 0 6px;
  color: #111827;
  font-size: 18px;
}

.website-theme-schema p {
  margin: 0;
  color: #71717a;
  line-height: 1.5;
}

.website-theme-schema dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.website-theme-schema dl div {
  display: grid;
  gap: 3px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef0f3;
}

.website-theme-schema dd {
  margin: 0;
  color: #27272a;
  font-size: 13px;
  line-height: 1.45;
}

.website-theme-wireframe {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 10px;
  min-height: 118px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #eef0f3;
}

.website-theme-wireframe span {
  display: block;
  border-radius: 10px;
  background: #fdf2f8;
}

.website-theme-wireframe span:first-child {
  grid-column: 1 / -1;
  min-height: 26px;
  background: #ec4899;
}

.website-widgets-card {
  padding-bottom: 20px;
}

.website-widgets-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 18px;
  padding: 0 20px;
}

.website-widget-list {
  display: grid;
  gap: 16px;
}

.website-widget-group {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.website-widget-group > h3 {
  margin: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}

.website-widget-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 12px;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  background: #fff;
}

.website-widget-row.is-custom {
  border-color: #fbcfe8;
  background: #fff7fb;
}

.website-widget-row h3 {
  margin: 0 0 3px;
  color: #18181b;
  font-size: 14px;
  font-weight: 900;
}

.website-widget-row p,
.website-widget-row small {
  display: block;
  margin: 0;
  color: #71717a;
  font-size: 12px;
  line-height: 1.35;
}

.website-widget-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f4f4f5;
  color: #52525b;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.website-widget-badge.is-custom {
  background: #fce7f3;
  color: #db2777;
}

.website-schema-code {
  max-height: 360px;
  overflow: auto;
  margin: 0;
  padding: 14px;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  background: #111827;
  color: #f8fafc;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.website-widget-dialog {
  width: min(560px, 100%);
}

.website-import-note {
  padding: 12px;
  border: 1px solid #fbcfe8;
  border-radius: 12px;
  background: #fff7fb;
  color: #52525b;
  font-size: 13px;
  line-height: 1.45;
}

.website-import-note strong {
  color: #be185d;
}

.website-empty {
  padding: 18px 0 0;
  color: #71717a;
  font-size: 14px;
}

.website-manager-modal[hidden] {
  display: none;
}

.website-manager-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.website-manager-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 24, 27, 0.42);
}

.website-manager-dialog {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(24, 24, 27, 0.2);
}

.website-manager-dialog p {
  margin: 0 0 4px;
  color: #71717a;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.website-manager-dialog h2 {
  margin: 0;
  font-size: 20px;
}

.website-manager-dialog label {
  display: grid;
  gap: 7px;
}

.website-manager-dialog label span {
  color: #71717a;
  font-size: 12px;
  font-weight: 800;
}

.website-theme-dialog {
  width: min(720px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.website-theme-dialog > div:first-child,
.website-dialog-full,
.website-theme-dialog .website-manager-dialog-actions {
  grid-column: 1 / -1;
}

.website-theme-dialog input[type="color"] {
  min-height: 44px;
  padding: 4px;
}

.website-manager-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 980px) {
  .website-manager-main {
    padding: 24px 18px 32px;
  }

  .website-manager-header {
    display: grid;
  }

  .website-manager-tabs {
    width: 100%;
  }

  .website-manager-tab {
    flex: 1 0 auto;
  }

  .website-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .website-page-status,
  .website-row-actions,
  .website-row > .btn {
    grid-column: 2;
    justify-content: flex-start;
  }

  .website-themes-layout,
  .website-widgets-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .website-settings-form {
    grid-template-columns: 1fr;
  }

  .website-theme-grid,
  .website-theme-config,
  .website-theme-dialog {
    grid-template-columns: 1fr;
  }

  .website-manager-actions,
  .website-row-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .website-row-actions .btn,
  .website-row > .btn,
  .website-manager-actions .btn {
    width: 100%;
  }
}

/* ===== Vensa calendar responsive refresh ===== */
.dashboard-page #tabsContent.is-calendar-active {
  grid-template-columns: minmax(0, 1fr) !important;
}

.dashboard-page #tabsContent.is-calendar-active > .left-col {
  min-width: 0;
}

.dashboard-page #tabsContent.is-calendar-active > .right-col {
  display: none;
}

.dashboard-page #calendar.panel {
  overflow: clip;
}

.dashboard-page #calendar .calendar-shell {
  position: relative;
  gap: 14px;
}

.dashboard-page #calendar .calendar-top {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.7fr);
  gap: 16px;
  align-items: start;
}

.dashboard-page #calendar .calendar-title-group h3 {
  margin: 3px 0 6px;
  font-size: 26px;
  letter-spacing: 0;
}

.dashboard-page #calendar .calendar-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dashboard-page #calendar .calendar-view-switch {
  order: 1;
}

.dashboard-page #calendar .calendar-nav-buttons {
  order: 2;
}

.dashboard-page #calendar .calendar-employee-filter {
  order: 3;
}

.dashboard-page #calendar .calendar-view-switch button {
  min-width: 72px;
}

.dashboard-page #calendar .calendar-nav-buttons {
  padding: 0;
}

.dashboard-page #calendar .calendar-employee-filter select {
  width: min(230px, 100%);
  min-height: 42px;
  border-radius: 12px;
  font-weight: 700;
}

.dashboard-page #calendar .calendar-panel-toggle {
  width: 42px;
  height: 42px;
  min-height: 42px;
}

.dashboard-page #calendar .calendar-panel-toggle.active {
  border-color: #f9a8d4;
  background: #fdf2f8;
  color: #db2777;
}

.dashboard-page #calendar .calendar-workspace {
  display: block;
  min-width: 0;
}

.dashboard-page #calendar .calendar-agenda {
  min-width: 0;
}

.dashboard-page #calendar .cal-viewport {
  max-height: min(74vh, 820px);
  min-height: min(560px, calc(100dvh - 260px));
  border-radius: 16px;
}

.dashboard-page #calendar .cal-corner,
.dashboard-page #calendar .cal-week-head,
.dashboard-page #calendar .cal-team-head {
  min-height: 58px;
}

.dashboard-page #calendar .cal-week-head.is-weekend,
.dashboard-page #calendar .cal-day-col.is-weekend {
  background-image: linear-gradient(135deg, rgba(244,244,245,.48) 12.5%, transparent 12.5%, transparent 50%, rgba(244,244,245,.48) 50%, rgba(244,244,245,.48) 62.5%, transparent 62.5%, transparent 100%);
  background-size: 10px 10px;
}

.dashboard-page #calendar .cal-day-col.is-day-off {
  background: repeating-linear-gradient(-45deg, #f4f4f5 0 8px, #ededf0 8px 16px);
}

.dashboard-page #calendar .cal-avail-zone {
  background: linear-gradient(180deg, rgba(34,197,94,.11), rgba(34,197,94,.055));
  border-color: rgba(34,197,94,.34);
  border-left-color: #22c55e;
}

.dashboard-page #calendar .cal-block-break {
  background: #f5f3ff;
  border-color: #ddd6fe;
  border-left-color: #8b5cf6;
  color: #4c1d95;
}

.dashboard-page #calendar .cal-block-apt.is-confirmed {
  background: #eff6ff;
  border-color: #bfdbfe;
  border-left-color: #3b82f6;
  color: #1d4ed8;
}

.dashboard-page #calendar .cal-block-apt.is-unconfirmed {
  background: #fdf2f8;
  border-color: #f9a8d4;
  border-left-color: #ec4899;
  color: #be185d;
}

.dashboard-page #calendar .cal-block-apt.is-payment-pending {
  background: #fff7ed;
  border-color: #fed7aa;
  border-left-color: #f59e0b;
  color: #c2410c;
}

.dashboard-page #calendar .cal-block-apt.is-cancelled {
  background: #f4f4f5;
  border-color: #d4d4d8;
  border-left-color: #9ca3af;
  color: #71717a;
  text-decoration: line-through;
}

.dashboard-page #calendar .calendar-legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -2px 0 2px;
}

.dashboard-page #calendar .cal-legend {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 11px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.dashboard-page #calendar .calendar-legend-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.dashboard-page #calendar .calendar-legend-actions .btn {
  min-height: 38px;
  padding: 8px 12px;
}

.dashboard-page #calendar .cal-legend-item {
  flex: 0 0 auto;
  padding: 4px 7px;
  border: 1px solid #f0f0f3;
  border-radius: 999px;
  background: #fff;
}

.cal-dot-paid { background: #16a34a; }
.cal-dot-break { background: #8b5cf6; }
.cal-dot-day-off {
  background: repeating-linear-gradient(-45deg, #d4d4d8 0 2px, #fff 2px 4px);
  border: 1px solid #a1a1aa;
}

.calendar-day-panel {
  position: fixed;
  top: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 9500;
  width: min(400px, calc(100vw - 44px));
  max-height: none;
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 20px;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 28px 80px rgba(24,24,27,.18);
  transform: translateX(calc(100% + 32px));
  transition: transform 220ms cubic-bezier(.22,.72,.24,1);
}

.calendar-day-panel.is-open {
  transform: translateX(0);
}

.calendar-day-panel.is-hidden {
  display: grid;
  pointer-events: none;
}

.day-panel-head h4 {
  font-size: 18px;
}

.day-panel-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #fff;
}

.day-panel-stats article {
  min-height: 72px;
}

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

.day-panel-actions .btn {
  justify-content: center;
}

.day-panel-actions .btn i {
  width: 16px;
  height: 16px;
}

.app-modal-side-shell {
  z-index: 11000;
  place-items: stretch end;
  padding: 0;
}

.app-modal-side-shell .app-modal-dialog.app-modal-side {
  align-self: stretch;
  width: min(430px, calc(100vw - 32px));
  max-height: none;
  height: calc(100dvh - 32px);
  margin: 16px;
  border-radius: 22px;
  animation: calendarDrawerIn 220ms cubic-bezier(.22,.72,.24,1);
}

@keyframes calendarDrawerIn {
  from { transform: translateX(24px); opacity: .72; }
  to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 1180px) {
  .dashboard-page #calendar .calendar-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-page #calendar .calendar-toolbar {
    justify-content: flex-start;
  }
}

.calendar-tablet-touch.dashboard-page #calendar.panel {
  padding: 18px;
}

.calendar-tablet-touch.dashboard-page #calendar .calendar-toolbar button,
.calendar-tablet-touch.dashboard-page #calendar .calendar-employee-filter select,
.calendar-tablet-touch.dashboard-page #calendar .calendar-panel-toggle {
  min-height: 48px;
}

.calendar-tablet-touch.dashboard-page #calendar .calendar-view-switch button {
  min-width: 84px;
  min-height: 46px;
  padding-inline: 14px;
}

.calendar-tablet-touch.dashboard-page #calendar .cal-viewport {
  max-height: min(76dvh, 900px);
  min-height: min(640px, calc(100dvh - 235px));
  border-radius: 18px;
  overscroll-behavior: contain;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
}

.calendar-tablet-touch.dashboard-page #calendar .cal-day-col {
  touch-action: pan-x pan-y;
}

.calendar-tablet-touch.dashboard-page #calendar .cal-block,
.calendar-tablet-touch.dashboard-page #calendar .cal-avail-zone {
  min-height: 44px;
  border-radius: 12px;
  padding: 8px 10px;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.calendar-tablet-touch.dashboard-page #calendarAvailabilityBtn {
  display: none;
}

.calendar-tablet-touch.dashboard-page #calendar .cal-block {
  padding-right: 46px;
}

.calendar-tablet-touch.dashboard-page #calendar .cal-avail-zone {
  padding-right: 44px;
}

.calendar-tablet-touch.dashboard-page #calendar .cal-block.is-touch-pending,
.calendar-tablet-touch.dashboard-page #calendar .cal-avail-zone.is-touch-pending,
.calendar-tablet-touch.dashboard-page #calendar .cal-day-col.is-touch-selecting {
  outline: 2px solid rgba(236,72,153,.36);
  outline-offset: 2px;
}

.calendar-tablet-touch.dashboard-page #calendar .cal-block-time {
  font-size: 11px;
}

.calendar-tablet-touch.dashboard-page #calendar .cal-block-name {
  font-size: 12px;
}

.calendar-tablet-touch.dashboard-page #calendar .cal-block-svc,
.calendar-tablet-touch.dashboard-page #calendar .cal-avail-time {
  font-size: 10px;
}

.calendar-tablet-touch.dashboard-page #calendar .cal-resize,
.calendar-tablet-touch.dashboard-page #calendar .cal-avail-resize-top,
.calendar-tablet-touch.dashboard-page #calendar .cal-avail-resize-bottom {
  height: 30px;
  opacity: .72;
  touch-action: none;
}

.calendar-tablet-touch.dashboard-page #calendar .cal-resize-top,
.calendar-tablet-touch.dashboard-page #calendar .cal-avail-resize-top {
  top: -15px;
}

.calendar-tablet-touch.dashboard-page #calendar .cal-resize-bottom,
.calendar-tablet-touch.dashboard-page #calendar .cal-avail-resize-bottom {
  bottom: -15px;
}

.calendar-tablet-touch.dashboard-page #calendar .cal-resize-top::after,
.calendar-tablet-touch.dashboard-page #calendar .cal-resize-bottom::after,
.calendar-tablet-touch.dashboard-page #calendar .cal-avail-resize-top::after,
.calendar-tablet-touch.dashboard-page #calendar .cal-avail-resize-bottom::after {
  width: 32px;
  height: 10px;
}

.calendar-tablet-touch.dashboard-page #calendar .cal-avail-resize-left,
.calendar-tablet-touch.dashboard-page #calendar .cal-avail-resize-right {
  opacity: .5;
  width: 24px;
  touch-action: none;
}

.calendar-tablet-touch.dashboard-page #calendar .cal-avail-resize-left {
  left: -12px;
}

.calendar-tablet-touch.dashboard-page #calendar .cal-avail-resize-right {
  right: -12px;
}

.calendar-tablet-touch.dashboard-page #calendar .cal-avail-delete,
.calendar-tablet-touch.dashboard-page #calendar .cal-block-more {
  width: 34px;
  height: 34px;
  opacity: 1;
  border-radius: 10px;
  touch-action: manipulation;
}

.calendar-tablet-touch.dashboard-page #calendar .cal-avail-delete {
  top: 6px;
  right: 6px;
}

.calendar-tablet-touch.dashboard-page #calendar .cal-block-more {
  right: 6px;
  top: 6px;
}

.calendar-tablet-touch.dashboard-page #calendar .cal-quick-menu {
  min-width: 280px;
  border-radius: 18px;
}

.calendar-tablet-touch.dashboard-page #calendar .cal-quick-menu button {
  min-height: 48px;
  font-size: 14px;
}

.calendar-tablet-touch.dashboard-page #calendar .calendar-day-panel,
.calendar-tablet-touch.dashboard-page .app-modal-side-shell .app-modal-dialog.app-modal-side {
  width: min(430px, calc(100vw - 36px));
}

@media (max-width: 760px) {
  .dashboard-page #calendar.panel {
    padding: 14px;
    border-radius: 18px;
  }

  .dashboard-page #calendar .calendar-top {
    gap: 12px;
  }

  .dashboard-page #calendar .calendar-title-group h3 {
    font-size: 20px;
  }

  .dashboard-page #calendar .calendar-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dashboard-page #calendar .calendar-view-switch,
  .dashboard-page #calendar .calendar-nav-buttons,
  .dashboard-page #calendar .calendar-employee-filter select {
    width: 100%;
  }

  .dashboard-page #calendar .calendar-view-switch {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    justify-content: stretch;
    min-height: 48px;
    padding: 3px;
  }

  .dashboard-page #calendar .calendar-view-switch button {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding-inline: 8px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .dashboard-page #calendar .calendar-nav-buttons {
    display: none;
  }

  .dashboard-page #calendar .calendar-panel-toggle {
    display: none;
  }

  .dashboard-page #calendar .calendar-legend-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .dashboard-page #calendar .calendar-legend-actions {
    display: none;
  }

  .dashboard-page #calendar .cal-viewport {
    min-height: calc(100dvh - 255px);
    max-height: calc(100dvh - 214px);
    border-radius: 14px;
    scroll-snap-type: none;
    scroll-padding-left: var(--cal-gutter-w);
    overscroll-behavior-x: none;
  }

  .dashboard-page #calendar .cal-viewport.is-vertical-scrolling {
    scroll-snap-type: none;
    overflow-x: hidden;
    touch-action: pan-y;
  }

  .dashboard-page #calendar .cal-grid-infinite.is-mobile-day-strip .cal-week-head,
  .dashboard-page #calendar .cal-grid-infinite.is-mobile-day-strip .cal-day-col {
    width: var(--cal-mobile-day-w, calc(100dvw - var(--cal-gutter-w) - 28px));
    min-width: var(--cal-mobile-day-w, calc(100dvw - var(--cal-gutter-w) - 28px));
  }

  .dashboard-page #calendar .cal-legend {
    max-height: 42px;
    overflow: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .calendar-day-panel {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    max-height: 88dvh;
    border-radius: 24px 24px 0 0;
    padding: 16px 16px 24px;
    transform: translateY(calc(100% + 24px));
  }

  .calendar-day-panel.is-open {
    transform: translateY(0);
  }

  .day-panel-stats article {
    min-height: 64px;
  }

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

  .day-panel-actions .btn,
  .cal-bottom-sheet-actions button {
    min-height: 48px;
  }

  .dashboard-page #calendar .cal-day-col,
  .dashboard-page #calendar .cal-block,
  .dashboard-page #calendar .cal-avail-zone {
    cursor: pointer;
    touch-action: pan-x pan-y;
  }

  .dashboard-page #calendar .cal-avail-zone.is-touch-pending {
    outline: 2px solid rgba(236,72,153,.34);
    outline-offset: 2px;
  }

  .dashboard-page #calendar .cal-resize,
  .dashboard-page #calendar .cal-avail-resize-top,
  .dashboard-page #calendar .cal-avail-resize-bottom {
    height: 22px;
    opacity: .55;
    touch-action: none;
  }

  .dashboard-page #calendar .cal-resize-top {
    top: -11px;
  }

  .dashboard-page #calendar .cal-resize-bottom {
    bottom: -11px;
  }

  .dashboard-page #calendar .cal-avail-resize-top {
    top: -11px;
  }

  .dashboard-page #calendar .cal-avail-resize-bottom {
    bottom: -11px;
  }

  .dashboard-page #calendar .cal-avail-resize-left,
  .dashboard-page #calendar .cal-avail-resize-right {
    display: none;
  }

  .app-modal-side-shell {
    place-items: end stretch;
    padding: 0;
  }

  .app-modal-side-shell .app-modal-dialog.app-modal-side {
    align-self: end;
    width: 100%;
    height: auto;
    max-height: 88dvh;
    margin: 0;
    border-radius: 24px 24px 0 0;
    animation: calendarSheetIn 240ms cubic-bezier(.22,.72,.24,1);
  }
}

@keyframes calendarSheetIn {
  from { transform: translateY(32px); opacity: .75; }
  to { transform: translateY(0); opacity: 1; }
}

/* Keep the fixed bottom navigation above the calendar time axis on touch devices. */
@media (max-width: 760px) {
  .dashboard-page {
    --dashboard-bottom-nav-space: calc(86px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-bottom-nav {
    z-index: 9200;
  }

  .dashboard-page #tabsContent.is-calendar-active {
    padding-bottom: var(--dashboard-bottom-nav-space);
  }

  .dashboard-page #calendar .cal-viewport {
    min-height: min(420px, max(280px, calc(100dvh - var(--dashboard-bottom-nav-space) - 255px)));
    max-height: max(320px, calc(100dvh - var(--dashboard-bottom-nav-space) - 214px));
    margin-bottom: 12px;
  }
}

@media (min-width: 768px) and (max-width: 1366px) {
  .dashboard-page {
    --dashboard-bottom-nav-space: calc(92px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-bottom-nav {
    z-index: 9200;
  }

  .dashboard-page #tabsContent.is-calendar-active {
    padding-bottom: var(--dashboard-bottom-nav-space);
  }

  .calendar-tablet-touch.dashboard-page #calendar .cal-viewport {
    min-height: min(640px, calc(100dvh - var(--dashboard-bottom-nav-space) - 235px));
    max-height: min(calc(100dvh - var(--dashboard-bottom-nav-space) - 220px), 760px);
    margin-bottom: 12px;
  }
}

/* Tablet sidebar polish: keep collapsed icons centered and reserve space for the menu toggle. */
@media (min-width: 768px) and (max-width: 1366px) {
  .dashboard-page #sidebar .brand {
    gap: 0;
  }

  .dashboard-page #sidebar .menu {
    justify-items: center;
  }

  .dashboard-page #sidebar .menu-item {
    box-sizing: border-box;
    display: inline-flex;
    width: 52px;
    min-width: 52px;
    height: 52px;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
  }

  .dashboard-page #sidebar .menu-item svg,
  .dashboard-page #sidebar .brand-icon svg {
    flex: 0 0 auto;
    margin: 0;
  }

  .dashboard-page.sidebar-open #sidebar .brand {
    gap: 12px;
  }

  .dashboard-page.sidebar-open #sidebar .menu {
    justify-items: stretch;
  }

  .dashboard-page.sidebar-open #sidebar .menu-item {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    gap: 12px;
    padding: 0 14px;
  }

  .dashboard-page .topbar-copy,
  .dashboard-page #calendar .calendar-title-group,
  .dashboard-page #tabsContent > .left-col > .tab-pane > .panel-header {
    padding-left: 64px;
  }
}

@media (min-width: 1024px) and (max-width: 1366px) {
  .dashboard-page .topbar-copy {
    padding-left: 64px;
  }
}

/* Compact calendar header: controls first, no repeated title/date range copy. */
.dashboard-page #calendar .calendar-top {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.dashboard-page #calendar .calendar-title-group {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.dashboard-page #calendar .calendar-toolbar {
  justify-content: flex-start;
  gap: 8px;
}

.dashboard-page #calendar .calendar-shell {
  gap: 10px;
}

@media (max-width: 760px) {
  .dashboard-page #calendar .calendar-top {
    gap: 8px;
  }
}

/* Slightly smaller bottom navigation on touch layouts. */
@media (max-width: 760px) {
  .dashboard-page {
    --dashboard-bottom-nav-space: calc(78px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-bottom-nav {
    min-height: calc(68px + env(safe-area-inset-bottom, 0px));
    padding: 4px 10px max(4px, env(safe-area-inset-bottom, 0px));
  }

  .mobile-bottom-nav .bottom-nav-link {
    min-height: 58px;
    gap: 3px;
    padding: 6px 3px 5px;
    border-radius: 14px;
    font-size: 9px;
  }

  .mobile-bottom-nav svg {
    width: 20px;
    height: 20px;
  }
}

@media (min-width: 768px) and (max-width: 1366px) {
  .dashboard-page {
    --dashboard-bottom-nav-space: calc(84px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-bottom-nav {
    min-height: calc(68px + env(safe-area-inset-bottom, 0px));
    padding: 4px 14px max(4px, env(safe-area-inset-bottom, 0px));
  }

  .mobile-bottom-nav .bottom-nav-link {
    min-height: 58px;
    gap: 3px;
    border-radius: 14px;
    font-size: 10px;
  }

  .mobile-bottom-nav svg {
    width: 21px;
    height: 21px;
  }
}

/* Calendar should own the screen on touch devices. */
@media (max-width: 760px) {
  .dashboard-page.is-calendar-active .topbar {
    display: none;
  }

  .dashboard-page.is-calendar-active .main {
    padding: 10px 10px var(--dashboard-bottom-nav-space);
  }

  .dashboard-page.is-calendar-active #tabsContent.is-calendar-active {
    padding-bottom: 0;
  }

  .dashboard-page.is-calendar-active #calendar.panel {
    padding: 10px;
  }

  .dashboard-page.is-calendar-active #calendar .calendar-shell {
    gap: 8px;
  }

  .dashboard-page.is-calendar-active #calendar .calendar-legend-row {
    gap: 6px;
  }

  .dashboard-page.is-calendar-active #calendar .cal-legend {
    max-height: 34px;
  }

  .dashboard-page.is-calendar-active #calendar .cal-viewport {
    height: clamp(320px, calc(100dvh - var(--dashboard-bottom-nav-space) - 138px), 620px);
    min-height: 0;
    max-height: none;
    margin-bottom: 0;
  }
}

@media (min-width: 768px) and (max-width: 1366px) {
  .dashboard-page.is-calendar-active .topbar {
    display: none;
  }

  .dashboard-page.is-calendar-active .main {
    padding-top: 16px;
    padding-bottom: var(--dashboard-bottom-nav-space);
  }

  .dashboard-page.is-calendar-active #tabsContent.is-calendar-active {
    padding-bottom: 0;
  }

  .calendar-tablet-touch.dashboard-page.is-calendar-active #calendar.panel {
    padding: 14px;
  }

  .calendar-tablet-touch.dashboard-page.is-calendar-active #calendar .cal-viewport {
    height: min(820px, calc(100dvh - var(--dashboard-bottom-nav-space) - 142px));
    min-height: 420px;
    max-height: none;
    margin-bottom: 0;
  }
}

/* ============================================================
   REEZLY MARKETPLACE PREMIUM REFRESH
   ============================================================ */
.marketplace-page {
  --market-bg: #fcfcfd;
  --market-card: #ffffff;
  --market-line: #eef2f7;
  --market-text: #0f172a;
  --market-muted: #64748b;
  --market-primary: #7c3aed;
  --market-secondary: #a855f7;
  --market-accent: #b48a78;
  --market-soft: #f5f3ff;
  --market-shadow: 0 22px 60px rgba(15,23,42,.08);
  --market-shadow-hover: 0 30px 80px rgba(15,23,42,.13);
  background:
    linear-gradient(180deg, rgba(245,243,255,.72) 0, rgba(252,252,253,0) 360px),
    #fcfcfd;
  color: var(--market-text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.marketplace-page main {
  overflow: hidden;
}

.marketplace-page a,
.marketplace-page button,
.market-salon-card,
.market-client-card,
.market-category-strip button,
.market-filter-panel,
.market-results-main {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease, color .25s ease;
}

.market-nav {
  min-height: 78px;
  border-bottom: 1px solid rgba(238,242,247,.8);
  background: rgba(252,252,253,.82);
  box-shadow: 0 12px 34px rgba(15,23,42,.04);
}

.market-brand-mark,
.market-salon-logo {
  border-radius: 16px;
  background: linear-gradient(135deg, var(--market-primary), var(--market-accent));
  box-shadow: 0 14px 28px rgba(124,58,237,.22);
}

.market-brand strong {
  color: var(--market-text);
  font-size: 19px;
  font-weight: 800;
}

.market-brand small,
.market-nav-links a {
  color: var(--market-muted);
}

.market-nav-links {
  gap: 10px;
}

.market-nav-links a {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  font-weight: 750;
}

.market-nav-links a:hover {
  background: #fff;
  color: var(--market-primary);
  box-shadow: 0 12px 28px rgba(15,23,42,.07);
}

.market-nav-links .market-nav-cta {
  border: 0;
  background: linear-gradient(135deg, var(--market-primary), var(--market-accent));
  color: #fff;
  box-shadow: 0 14px 32px rgba(124,58,237,.22);
}

.market-hero,
.market-results-shell,
.market-client-panel {
  width: min(1210px, calc(100% - 44px));
}

.market-hero {
  padding: 54px 0 30px;
}

.market-hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .78fr);
  gap: 46px;
  align-items: center;
}

.market-hero-copy {
  max-width: 700px;
}

.market-kicker {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fdf2f8;
  color: #be185d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.market-hero h1 {
  max-width: 720px;
  margin-top: 18px;
  color: var(--market-text);
  font-size: 68px;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
}

.market-hero h1 span {
  display: inline;
  background: linear-gradient(120deg, var(--market-primary), var(--market-secondary), var(--market-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.market-hero p {
  max-width: 640px;
  margin-top: 18px;
  color: var(--market-muted);
  font-size: 18px;
  font-weight: 450;
  line-height: 1.75;
}

.market-hero-visual {
  position: relative;
  min-height: 445px;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--market-shadow);
}

.market-hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 445px;
  object-fit: cover;
  filter: saturate(1.03) brightness(1.02);
}

.market-hero-stats {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 22px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 18px 46px rgba(15,23,42,.11);
  backdrop-filter: blur(18px);
}

.market-hero-stats span {
  display: grid;
  gap: 2px;
  min-height: 70px;
  place-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,.78);
}

.market-hero-stats strong {
  color: var(--market-text);
  font-size: 22px;
  font-weight: 850;
}

.market-hero-stats small {
  color: var(--market-muted);
  font-size: 12px;
  font-weight: 700;
}

.market-search-card {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr) 60px auto;
  gap: 12px;
  align-items: end;
  margin-top: 34px;
  padding: 14px;
  border: 0;
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 28px 80px rgba(15,23,42,.12);
}

.market-search-card label > span,
.market-filter-row > span {
  color: var(--market-muted);
  font-size: 12px;
  font-weight: 800;
}

.market-input {
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--market-line);
  border-radius: 18px;
  background: #fff;
}

.market-input:focus-within {
  border-color: rgba(124,58,237,.38);
  box-shadow: 0 0 0 4px rgba(124,58,237,.08);
}

.market-input svg {
  color: var(--market-primary);
}

.market-input input {
  color: var(--market-text);
  font-weight: 550;
}

.market-icon-action,
.market-search-submit {
  min-height: 56px;
  border-radius: 18px;
}

.market-icon-action svg,
.market-search-submit svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.market-icon-action {
  border: 1px solid var(--market-line);
  background: #fff;
  color: var(--market-primary);
}

.market-icon-action:hover {
  transform: translateY(-1px);
  border-color: rgba(124,58,237,.32);
  box-shadow: 0 14px 26px rgba(124,58,237,.12);
}

.market-search-submit,
.market-book-link,
.market-primary-link {
  border: 0;
  background: linear-gradient(135deg, var(--market-primary), var(--market-secondary));
  color: #fff;
  box-shadow: 0 16px 34px rgba(124,58,237,.24);
}

.market-search-submit {
  padding: 0 26px;
  font-weight: 850;
}

.market-search-submit:hover,
.market-book-link:hover,
.market-primary-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(124,58,237,.3);
}

.market-category-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(128px, 1fr));
  gap: 12px;
  overflow: visible;
  margin-top: 22px;
  padding-bottom: 0;
}

.market-category-strip button {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 106px;
  padding: 14px 12px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: var(--market-text);
  box-shadow: 0 16px 38px rgba(15,23,42,.07);
  font-size: 14px;
  font-weight: 800;
}

.market-category-strip button span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f5f3ff, #fdf2f8);
  font-size: 22px;
}

.market-category-strip button:hover {
  transform: translateY(-3px);
  box-shadow: var(--market-shadow-hover);
}

.market-results-shell {
  grid-template-columns: 282px minmax(0, 1fr);
  gap: 22px;
  padding: 42px 0 54px;
}

.market-filter-panel,
.market-results-main {
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--market-shadow);
}

.market-filter-panel {
  top: 100px;
  gap: 22px;
  padding: 24px;
}

.market-filter-panel h2,
.market-results-head h2,
.market-section-head h2 {
  color: var(--market-text);
  font-weight: 800;
}

.market-filter-row select {
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--market-line);
  border-radius: 16px;
  color: var(--market-text);
  font-weight: 650;
}

.market-filter-row input[type="range"] {
  accent-color: var(--market-primary);
}

.market-check {
  gap: 12px;
  min-height: 44px;
  color: var(--market-text);
}

.market-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--market-primary);
}

.market-secondary-btn {
  min-height: 48px;
  border: 1px solid var(--market-line);
  border-radius: 16px;
  background: #fff;
  color: var(--market-primary);
}

.market-secondary-btn:hover {
  border-color: rgba(124,58,237,.32);
  background: #f5f3ff;
}

.market-results-main {
  padding: 24px;
}

.market-results-head {
  margin-bottom: 22px;
}

.market-results-head p {
  color: var(--market-muted);
}

.market-view-switch {
  gap: 5px;
  padding: 5px;
  border: 0;
  border-radius: 18px;
  background: #f8fafc;
}

.market-view-switch button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--market-muted);
}

.market-view-switch button.is-active {
  background: #fff;
  color: var(--market-primary);
  box-shadow: 0 10px 24px rgba(15,23,42,.08);
}

.market-salon-grid {
  gap: 16px;
}

.market-salon-card {
  grid-template-columns: 76px minmax(0, 1fr) minmax(176px, auto);
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15,23,42,.065);
}

.market-salon-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--market-shadow-hover);
}

.market-salon-top {
  gap: 10px;
  justify-items: center;
}

.market-salon-logo {
  width: 62px;
  height: 62px;
  border-radius: 22px;
  font-size: 22px;
}

.market-favorite {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 16px;
  background: #f8fafc;
}

.market-favorite:hover,
.market-favorite.is-active {
  background: #fdf2f8;
  color: var(--market-accent);
}

.market-salon-copy h3 {
  color: var(--market-text);
  font-size: 22px;
  font-weight: 800;
}

.market-salon-copy p {
  color: var(--market-muted);
  font-weight: 450;
}

.market-salon-meta {
  gap: 9px;
}

.market-salon-meta span {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--market-muted);
  font-size: 12px;
  font-weight: 750;
}

.market-salon-meta svg {
  color: var(--market-primary);
}

.market-service-tags,
.market-service-preview {
  grid-column: 2;
  gap: 7px;
}

.market-service-tags span,
.market-service-preview small {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f5f3ff;
  color: var(--market-primary);
  font-size: 12px;
  font-weight: 800;
}

.market-service-preview small {
  background: #f8fafc;
  color: var(--market-muted);
}

.market-salon-bottom {
  grid-column: 3;
  grid-row: 1 / span 4;
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 14px;
  padding-top: 0;
}

.market-salon-bottom strong {
  color: var(--market-text);
  font-size: 18px;
}

.market-salon-bottom div {
  display: grid;
  gap: 8px;
  min-width: 168px;
}

.market-salon-bottom a,
.market-chat-salon {
  min-height: 42px;
  border-radius: 14px;
}

.market-salon-bottom a,
.market-chat-salon,
.market-secondary-link {
  border: 1px solid var(--market-line);
  color: var(--market-text);
}

.market-salon-bottom .market-book-link {
  border: 0;
  color: #fff;
}

.market-map-canvas {
  border: 0;
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(238,242,247,.9);
}

.market-client-panel {
  padding: 24px 0 86px;
}

.market-section-head {
  max-width: 780px;
  margin-bottom: 24px;
}

.market-section-head h2 {
  font-size: 40px;
  line-height: 1.1;
}

.market-section-head p {
  color: var(--market-muted);
  font-size: 17px;
}

.market-client-grid {
  gap: 18px;
}

.market-client-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 24px;
  border: 0;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.9), rgba(255,255,255,.72)),
    linear-gradient(135deg, rgba(124,58,237,.14), rgba(236,72,153,.12));
  box-shadow: var(--market-shadow);
}

.market-client-card:nth-child(2) {
  background:
    linear-gradient(145deg, rgba(255,255,255,.9), rgba(255,255,255,.74)),
    linear-gradient(135deg, rgba(236,72,153,.13), rgba(168,85,247,.13));
}

.market-client-card:nth-child(3) {
  background:
    linear-gradient(145deg, rgba(255,255,255,.92), rgba(255,255,255,.76)),
    linear-gradient(135deg, rgba(168,85,247,.14), rgba(14,165,233,.1));
}

.market-card-head {
  gap: 12px;
}

.market-card-head svg {
  width: 22px;
  height: 22px;
  color: var(--market-primary);
}

.market-card-head strong {
  color: var(--market-text);
  font-size: 18px;
  font-weight: 850;
}

.market-mini-row {
  gap: 5px;
  padding: 13px;
  border: 0;
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 10px 24px rgba(15,23,42,.055);
}

.market-chat-fab {
  background: linear-gradient(135deg, var(--market-primary), var(--market-accent));
  box-shadow: 0 18px 44px rgba(124,58,237,.28);
}

.market-chat-panel {
  border: 0;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(15,23,42,.18);
}

.market-chat-form input,
.market-chat-form button {
  border-radius: 16px;
}

@media (max-width: 1180px) {
  .market-hero-main {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
  }

  .market-hero h1 {
    font-size: 56px;
  }

  .market-category-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .market-salon-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .market-salon-bottom {
    grid-column: 2;
    grid-row: auto;
    grid-template-columns: auto 1fr;
    justify-items: stretch;
    align-items: center;
  }

  .market-salon-bottom div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .market-nav {
    min-height: 70px;
  }

  .market-menu-btn {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(15,23,42,.08);
  }

  .market-nav-links {
    top: 74px;
    border: 0;
    border-radius: 22px;
    box-shadow: var(--market-shadow);
  }

  .market-hero-main {
    grid-template-columns: 1fr;
  }

  .market-hero-visual {
    min-height: 360px;
  }

  .market-hero-visual img {
    min-height: 360px;
  }

  .market-search-card {
    grid-template-columns: minmax(0, 1fr) 60px;
  }

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

  .market-filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: static;
  }
}

@media (max-width: 760px) {
  .marketplace-page {
    padding-bottom: 82px;
  }

  .market-hero,
  .market-results-shell,
  .market-client-panel {
    width: min(100% - 24px, 1210px);
  }

  .market-hero {
    padding-top: 34px;
  }

  .market-hero h1 {
    font-size: 42px;
    line-height: 1.06;
  }

  .market-hero p {
    font-size: 16px;
  }

  .market-hero-visual {
    min-height: 310px;
    border-radius: 24px;
  }

  .market-hero-visual img {
    min-height: 310px;
  }

  .market-hero-stats {
    grid-template-columns: 1fr 1fr 1fr;
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .market-hero-stats span {
    min-height: 58px;
    border-radius: 15px;
  }

  .market-hero-stats strong {
    font-size: 17px;
  }

  .market-hero-stats small {
    font-size: 10px;
  }

  .market-search-card {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    border-radius: 22px;
  }

  .market-search-card label {
    display: grid;
    gap: 6px;
    min-height: auto;
  }

  .market-search-card label,
  .market-search-card .market-icon-action,
  .market-search-card .market-search-submit {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .market-search-card .market-icon-action {
    width: 100%;
    min-height: 54px;
  }

  .market-search-card .market-search-submit {
    height: 54px;
    min-height: 54px;
  }

  .market-input {
    min-height: 54px;
  }

  .market-category-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 10px;
  }

  .market-category-strip button {
    min-width: 132px;
    min-height: 96px;
  }

  .market-results-shell {
    gap: 16px;
    padding-top: 28px;
  }

  .market-filter-panel {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .market-results-main {
    padding: 18px;
    border-radius: 22px;
  }

  .market-salon-card {
    grid-template-columns: 1fr;
    padding: 18px;
    border-radius: 22px;
  }

  .market-salon-top {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .market-service-tags,
  .market-service-preview,
  .market-salon-bottom {
    grid-column: auto;
  }

  .market-salon-bottom {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .market-salon-bottom div {
    grid-template-columns: 1fr;
  }

  .market-section-head h2 {
    font-size: 30px;
  }

  .market-client-grid {
    grid-template-columns: 1fr;
  }

  .market-client-card {
    min-height: 180px;
  }

  .market-mobile-nav {
    border: 0;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(15,23,42,.16);
  }
}

/* ============================================================
   LUMIO MARKETPLACE MOCKUP PASS
   ============================================================ */
.marketplace-page {
  --market-bg: #fbf8ff;
  --market-card: rgba(255,255,255,.94);
  --market-line: #ebe7f4;
  --market-text: #111a33;
  --market-muted: #596273;
  --market-primary: #6d28d9;
  --market-secondary: #a855f7;
  --market-accent: #b48a78;
  --market-shadow: 0 18px 50px rgba(35, 22, 76, .09);
  --market-shadow-hover: 0 24px 70px rgba(35, 22, 76, .14);
  background:
    radial-gradient(circle at 76% 8%, rgba(168,85,247,.16), transparent 30%),
    radial-gradient(circle at 38% 0%, rgba(236,72,153,.08), transparent 28%),
    linear-gradient(180deg, #fdfbff 0%, #fff 42%, #fbf8ff 100%);
}

.market-nav {
  width: min(1280px, calc(100% - 80px));
  min-height: 78px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.market-brand {
  gap: 14px;
}

.market-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #101a35;
  box-shadow: 0 16px 34px rgba(16,26,53,.18);
  font-size: 18px;
}

.market-brand strong {
  font-size: 21px;
  letter-spacing: -.02em;
}

.market-brand small {
  font-size: 13px;
  font-weight: 650;
}

.market-nav-links {
  gap: 28px;
}

.market-nav-links a {
  min-height: 44px;
  padding: 0;
  color: #121a31;
  font-size: 14px;
  font-weight: 800;
}

.market-nav-links a:hover {
  background: transparent;
  box-shadow: none;
}

.market-nav-links .market-nav-cta {
  min-width: 146px;
  padding: 0 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, #b971df, #8b5cf6);
  box-shadow: 0 18px 34px rgba(124,58,237,.26);
}

.market-hero,
.market-results-shell,
.market-client-panel {
  width: min(1280px, calc(100% - 80px));
}

.market-hero {
  position: relative;
  overflow: visible;
  padding: 44px 0 16px;
}

.market-hero-main {
  position: relative;
  min-height: 354px;
  display: grid;
  grid-template-columns: minmax(0, 590px) minmax(360px, 1fr);
  gap: 30px;
  align-items: start;
}

.market-hero-copy {
  position: relative;
  z-index: 3;
  max-width: 620px;
  padding: 34px 0 0 8px;
}

.market-kicker {
  min-height: 0;
  padding: 0;
  background: transparent;
  color: #a855f7;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.market-hero h1 {
  max-width: 650px;
  margin-top: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 5.2vw, 76px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
}

.market-hero h1 span {
  background: linear-gradient(115deg, #a855f7, #7c3aed 45%, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
}

.market-hero p {
  max-width: 560px;
  margin-top: 24px;
  color: #596273;
  font-size: 17px;
  line-height: 1.75;
}

.market-hero-visual {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: min(58%, 720px);
  height: 372px;
  min-height: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.market-hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, #fdfbff 0%, rgba(253,251,255,.72) 18%, rgba(253,251,255,.04) 48%),
    linear-gradient(180deg, rgba(253,251,255,.08), #fdfbff 100%);
  pointer-events: none;
}

.market-hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.04) contrast(.98) brightness(1.04);
}

.market-hero-stats {
  z-index: 4;
  top: 70px;
  right: 0;
  bottom: auto;
  left: auto;
  display: grid;
  width: 260px;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 16px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 22px 60px rgba(35,22,76,.14);
  backdrop-filter: blur(16px);
}

.market-hero-stats span {
  display: grid;
  min-height: 0;
  grid-template-columns: 48px 1fr;
  gap: 2px 15px;
  place-items: center start;
  border-radius: 0;
  background: transparent;
}

.market-hero-stats svg {
  grid-row: 1 / span 2;
  width: 48px;
  height: 48px;
  padding: 12px;
  border-radius: 50%;
  background: #f1e8ff;
  color: var(--market-primary);
}

.market-hero-stats span:nth-child(2) svg {
  background: #fdf2f8;
  color: var(--market-accent);
}

.market-hero-stats strong {
  font-size: 24px;
  line-height: 1;
}

.market-hero-stats small {
  color: #43506a;
  font-size: 12px;
  font-weight: 700;
}

.market-search-card {
  position: relative;
  z-index: 5;
  grid-template-columns: minmax(260px, .82fr) minmax(340px, 1fr) 54px 210px;
  gap: 16px;
  align-items: end;
  margin-top: -6px;
  padding: 20px 24px;
  border: 1px solid rgba(235,231,244,.92);
  border-radius: 14px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 22px 46px rgba(35,22,76,.1);
}

.market-search-card label {
  position: relative;
  display: grid;
  gap: 8px;
}

.market-search-card label > span,
.market-filter-row > span {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
  color: #111a33;
  font-size: 13px;
  font-weight: 850;
}

.market-input {
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid #e3e6ee;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

.market-input svg,
.market-icon-action svg,
.market-search-submit svg {
  width: 19px;
  height: 19px;
}

.market-input input {
  color: #1f2740;
  font-size: 15px;
  font-weight: 600;
}

.market-icon-action,
.market-search-submit {
  min-height: 52px;
  border-radius: 8px;
}

.market-icon-action {
  color: #111a33;
}

.market-search-submit {
  padding: 0 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  font-size: 15px;
  font-weight: 900;
}

.market-category-strip-legacy {
  display: none !important;
}

.market-category-strip-modern {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.market-category-strip button {
  display: flex;
  min-height: 58px;
  flex-direction: row;
  justify-content: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid rgba(235,231,244,.75);
  border-radius: 12px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 14px 34px rgba(35,22,76,.07);
  color: #111a33;
  font-size: 14px;
}

.market-category-strip button span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fdf2f8;
}

.market-category-strip button:nth-child(2n) span {
  background: #f4edff;
}

.market-category-strip button svg {
  width: 18px;
  height: 18px;
  color: var(--market-primary);
}

.market-category-strip button:hover {
  transform: translateY(-2px);
}

.market-results-shell {
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 22px;
  padding: 0 0 30px;
}

.market-filter-panel,
.market-results-main {
  border: 1px solid rgba(235,231,244,.72);
  border-radius: 16px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 20px 46px rgba(35,22,76,.075);
}

.market-filter-panel {
  top: 92px;
  padding: 28px;
}

.market-filter-panel .market-kicker {
  display: none;
}

.market-filter-panel h2 {
  font-size: 22px;
}

.market-filter-row {
  gap: 10px;
}

.market-filter-row select {
  border-radius: 8px;
}

.market-check {
  min-height: 40px;
}

.market-secondary-btn {
  justify-content: flex-start;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--market-primary);
  font-weight: 850;
}

.market-results-main {
  padding: 20px;
}

.market-results-head {
  align-items: start;
  margin-bottom: 16px;
}

.market-results-head .market-kicker {
  display: none;
}

.market-results-head h2 {
  font-size: 22px;
}

.market-results-head p {
  margin-top: 4px;
  font-size: 13px;
}

.market-view-switch {
  border: 1px solid #e8e4ef;
  border-radius: 8px;
  background: #fff;
}

.market-view-switch button {
  min-height: 36px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 850;
}

.market-salon-grid {
  gap: 0;
  border: 1px solid #eef0f5;
  border-radius: 14px;
  overflow: hidden;
}

.market-salon-card {
  position: relative;
  grid-template-columns: 76px minmax(0, 1fr) 124px 136px 44px;
  gap: 14px;
  min-height: 104px;
  padding: 16px 20px;
  border-radius: 0;
  border-bottom: 1px solid #eef0f5;
  box-shadow: none;
}

.market-salon-card:last-child {
  border-bottom: 0;
}

.market-salon-card:hover {
  transform: none;
  background: #fcfbff;
  box-shadow: none;
}

.market-salon-top {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: center;
  justify-items: center;
}

.market-salon-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f7e8f4;
  color: #111a33;
  box-shadow: none;
  font-size: 22px;
}

.market-favorite {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 42px;
  height: 42px;
  border: 1px solid #e8eaf1;
  border-radius: 10px;
  background: #fff;
  transform: translateY(-50%);
}

.market-favorite:hover {
  transform: translateY(-50%);
}

.market-salon-copy {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
}

.market-salon-copy h3 {
  font-size: 18px;
  line-height: 1.15;
}

.market-salon-copy p {
  display: none;
}

.market-service-tags {
  grid-column: 2;
  grid-row: 2;
  gap: 6px;
}

.market-service-tags span {
  min-height: 22px;
  padding: 0;
  background: transparent;
  color: #303a52;
  font-size: 13px;
  font-weight: 700;
}

.market-service-tags span + span::before {
  content: "�";
  margin-right: 6px;
  color: #7b8497;
}

.market-service-preview {
  display: none;
}

.market-salon-meta {
  grid-column: 2;
  grid-row: 3;
  gap: 12px;
}

.market-salon-meta span {
  min-height: 22px;
  padding: 0;
  background: transparent;
  color: #596273;
  font-size: 12px;
}

.market-salon-meta svg {
  width: 14px;
  height: 14px;
}

.market-salon-bottom {
  grid-column: 3 / 5;
  grid-row: 1 / span 3;
  display: grid;
  grid-template-columns: 120px 136px;
  gap: 12px;
  align-items: center;
  justify-items: stretch;
}

.market-salon-bottom strong {
  justify-self: start;
  color: #111a33;
  font-size: 18px;
  font-weight: 900;
}

.market-salon-bottom strong::before {
  content: "od";
  display: block;
  color: #596273;
  font-size: 12px;
  font-weight: 750;
}

.market-salon-bottom div {
  display: grid;
  min-width: 0;
}

.market-chat-salon,
.market-salon-bottom a:not(.market-book-link) {
  display: none;
}

.market-book-link {
  min-height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(124,58,237,.2);
  font-size: 14px;
  font-weight: 900;
}

.market-salon-bottom .market-book-link {
  border: 0;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: #fff !important;
}

.market-client-panel {
  padding: 0 0 82px;
}

.market-section-head {
  margin-bottom: 14px;
}

.market-section-head .market-kicker {
  color: #111a33;
}

.market-section-head h2,
.market-section-head p {
  display: none;
}

.market-client-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.market-client-card,
.market-client-card-wide {
  min-height: 122px;
  padding: 20px 24px;
  border: 1px solid rgba(235,231,244,.78);
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(35,22,76,.075);
}

.market-card-head svg {
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 12px;
  background: #f1e8ff;
}

.market-card-head strong {
  font-size: 15px;
}

.market-mini-row {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.market-chat-fab {
  right: 28px;
  bottom: 28px;
  min-height: 58px;
  padding: 0 22px;
  border-radius: 28px;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
}

@media (max-width: 1180px) {
  .market-nav,
  .market-hero,
  .market-results-shell,
  .market-client-panel {
    width: min(100% - 44px, 1280px);
  }

  .market-nav-links {
    gap: 18px;
  }

  .market-hero-main {
    grid-template-columns: minmax(0, 540px) minmax(280px, 1fr);
  }

  .market-search-card {
    grid-template-columns: minmax(220px, .8fr) minmax(280px, 1fr) 54px 180px;
  }

  .market-category-strip-modern {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .market-results-shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .market-salon-card {
    grid-template-columns: 70px minmax(0, 1fr) 112px 128px 44px;
  }
}

@media (max-width: 900px) {
  .market-nav {
    width: calc(100% - 32px);
  }

  .market-menu-btn {
    width: 46px;
    height: 46px;
  }

  .market-nav-links {
    top: 74px;
    right: 0;
    width: min(320px, calc(100vw - 32px));
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,.96);
  }

  .market-hero-main {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .market-hero-copy {
    max-width: 620px;
  }

  .market-hero-visual {
    position: relative;
    width: 100%;
    height: 300px;
    margin-top: 18px;
    border-radius: 22px;
  }

  .market-hero-visual::before {
    background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.82));
  }

  .market-hero-stats {
    top: auto;
    right: 14px;
    bottom: 14px;
    width: min(330px, calc(100% - 28px));
    padding: 14px;
    gap: 10px;
  }

  .market-search-card {
    margin-top: 18px;
    grid-template-columns: minmax(0, 1fr) 54px;
  }

  .market-search-card label {
    grid-column: 1 / -1;
  }

  .market-search-submit {
    grid-column: 1 / -1;
  }

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

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

  .market-client-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .marketplace-page {
    padding-bottom: 92px;
  }

  .market-nav,
  .market-hero,
  .market-results-shell,
  .market-client-panel {
    width: calc(100% - 24px);
  }

  .market-nav {
    min-height: 68px;
  }

  .market-brand-mark {
    width: 40px;
    height: 40px;
  }

  .market-brand small {
    font-size: 12px;
  }

  .market-hero {
    padding-top: 18px;
  }

  .market-hero-copy {
    padding: 12px 2px 0;
  }

  .market-hero h1 {
    margin-top: 14px;
    font-size: clamp(38px, 12.6vw, 50px);
    line-height: 1.04;
  }

  .market-hero p {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.65;
  }

  .market-hero-visual {
    height: 260px;
    min-height: 0;
  }

  .market-hero-visual img {
    min-height: 0;
  }

  .market-hero-stats {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
  }

  .market-hero-stats span {
    grid-template-columns: 36px 1fr;
    gap: 0 10px;
  }

  .market-hero-stats svg {
    width: 36px;
    height: 36px;
    padding: 9px;
  }

  .market-hero-stats strong {
    font-size: 18px;
  }

  .market-hero-stats small {
    font-size: 11px;
  }

  .market-search-card {
    grid-template-columns: 1fr 52px;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
  }

  .market-search-card label {
    grid-column: 1 / -1;
  }

  .market-search-card .market-icon-action {
    grid-column: 2;
    grid-row: auto;
    width: 52px;
  }

  .market-search-card .market-search-submit {
    grid-column: 1 / -1;
    height: 52px;
  }

  .market-input,
  .market-icon-action,
  .market-search-submit {
    min-height: 52px;
  }

  .market-category-strip-modern {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-top: 16px;
    padding: 2px 0 10px;
    scroll-snap-type: x proximity;
  }

  .market-category-strip button {
    min-width: 142px;
    min-height: 56px;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .market-results-shell {
    gap: 14px;
    padding-top: 4px;
  }

  .market-filter-panel {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  .market-results-main {
    padding: 14px;
  }

  .market-results-head {
    gap: 12px;
  }

  .market-results-head h2 {
    font-size: 20px;
  }

  .market-view-switch {
    width: 100%;
  }

  .market-view-switch button {
    flex: 1;
  }

  .market-salon-grid {
    border-radius: 14px;
  }

  .market-salon-card {
    grid-template-columns: 58px minmax(0, 1fr) 42px;
    gap: 12px;
    min-height: 0;
    padding: 16px;
  }

  .market-salon-top {
    grid-column: 1;
    grid-row: 1 / span 3;
  }

  .market-salon-logo {
    width: 56px;
    height: 56px;
    font-size: 18px;
  }

  .market-favorite {
    right: 14px;
    top: 18px;
    transform: none;
  }

  .market-favorite:hover {
    transform: none;
  }

  .market-salon-copy,
  .market-service-tags,
  .market-salon-meta {
    grid-column: 2 / 4;
  }

  .market-salon-copy h3 {
    max-width: calc(100% - 48px);
    font-size: 17px;
  }

  .market-service-tags {
    overflow: hidden;
    flex-wrap: nowrap;
  }

  .market-service-tags span {
    white-space: nowrap;
  }

  .market-salon-meta {
    flex-wrap: wrap;
    gap: 8px;
  }

  .market-salon-bottom {
    grid-column: 1 / -1;
    grid-row: auto;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 4px;
  }

  .market-salon-bottom strong {
    justify-self: start;
  }

  .market-book-link {
    min-height: 46px;
  }

  .market-client-panel {
    padding-bottom: 96px;
  }

  .market-client-card {
    min-height: 116px;
    padding: 18px;
  }

  .market-chat-fab {
    right: 18px;
    bottom: 84px;
    min-height: 52px;
  }
}

/* Compact marketplace card/mobile corrections */
.market-salon-card {
  grid-template-columns: 76px minmax(0, 1fr) 112px 136px 44px;
  min-height: 112px;
  padding: 14px 20px;
}

.market-salon-copy {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  display: grid;
  gap: 8px;
}

.market-salon-copy > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.market-salon-copy h3 {
  min-width: 0;
}

.market-salon-copy p {
  display: none;
}

.market-salon-copy h3::after {
  content: "Beauty";
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 10px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f1e8ff;
  color: var(--market-primary);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 850;
  vertical-align: middle;
}

.market-salon-copy .market-salon-meta {
  grid-column: auto;
  grid-row: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.market-salon-meta {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0;
}

.market-service-tags {
  grid-column: 2;
  grid-row: 3;
  align-self: start;
}

.market-salon-bottom {
  grid-template-columns: 104px 136px;
}

@media (max-width: 900px) {
  .market-salon-card {
    grid-template-columns: 64px minmax(0, 1fr) 104px 128px 42px;
    min-height: 124px;
  }

  .market-salon-copy > div:first-child {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 760px) {
  .market-hero h1 {
    font-size: clamp(34px, 11vw, 44px);
  }

  .market-hero-visual {
    height: 226px;
  }

  .market-search-card {
    grid-template-columns: minmax(0, 1fr) 52px;
    grid-auto-rows: auto;
  }

  .market-search-card label {
    gap: 0;
  }

  .market-search-card label > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .market-search-card label:nth-of-type(1) {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .market-search-card label:nth-of-type(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .market-search-card .market-icon-action {
    grid-column: 2;
    grid-row: 2;
  }

  .market-search-card .market-search-submit {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .market-salon-card {
    grid-template-columns: 58px minmax(0, 1fr) 42px;
    min-height: 0;
    padding: 14px;
  }

  .market-salon-copy {
    grid-column: 2 / 4;
    grid-row: 1;
    padding-right: 44px;
  }

  .market-salon-copy > div:first-child {
    gap: 4px;
  }

  .market-salon-copy h3 {
    max-width: 100%;
  }

  .market-salon-copy p {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .market-salon-meta span:first-child {
    display: none;
  }

  .market-service-tags {
    grid-column: 2 / 4;
    grid-row: 2;
  }

  .market-salon-bottom {
    grid-column: 1 / -1;
    grid-template-columns: 82px minmax(0, 1fr);
    align-items: center;
  }

  .market-salon-bottom strong {
    align-self: center;
  }
}

/* Client portal */
.client-portal-page {
  --market-primary: #9b6a5c;
  --market-primary-hover: #7f554a;
  --market-secondary: #211d1f;
  --market-accent: #b48a78;
  --market-text: #171416;
  --market-muted: #6f6864;
  --market-bg: #f8f5ef;
  --market-card: #fffaf3;
  --market-line: #e8ded4;
  --market-soft-line: #eee5db;
  min-height: 100vh;
  background: linear-gradient(180deg, #151314 0 330px, #f8f5ef 330px 100%);
}

.client-portal-shell {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
  padding: 38px 0 112px;
}

.client-login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 34px;
  align-items: center;
  min-height: calc(100dvh - 170px);
}

.client-login-copy {
  position: relative;
  min-height: 460px;
  padding: 44px;
  overflow: hidden;
  border: 1px solid rgba(246,239,231,.1);
  border-radius: 28px;
  background: #151314;
  box-shadow: 0 34px 90px rgba(10,9,10,.28);
}

.client-login-copy::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -38px;
  width: min(360px, 54%);
  aspect-ratio: 1;
  border-radius: 36px;
  background: url("../uploads/marketplace-client-photo.png") center / cover no-repeat;
  opacity: .42;
}

.client-login-copy h1,
.client-panel-hero h1 {
  max-width: 680px;
  margin: 16px 0 0;
  color: #f6efe7;
  font-size: clamp(40px, 4.8vw, 66px);
  font-weight: 860;
  line-height: 1.02;
  letter-spacing: 0;
}

.client-login-copy p,
.client-panel-hero p {
  max-width: 540px;
  margin-top: 18px;
  color: rgba(246,239,231,.74);
  font-size: 17px;
  line-height: 1.75;
}

.client-login-copy .market-kicker,
.client-panel-hero .market-kicker,
.client-panel-card .market-kicker {
  color: #9b6a5c;
}

.client-login-copy .market-kicker,
.client-panel-hero .market-kicker {
  color: #c7a195;
}

.client-login-card,
.client-panel-card,
.client-summary-grid article {
  border: 1px solid rgba(232,222,212,.92);
  background: rgba(255,250,243,.98);
  box-shadow: 0 22px 52px rgba(23,20,22,.1);
}

.client-login-card {
  display: grid;
  gap: 16px;
  padding: 28px;
  border-radius: 22px;
}

.client-login-card h2 {
  margin: 0;
  color: var(--market-text);
  font-size: 26px;
}

.client-login-card label {
  display: grid;
  gap: 8px;
}

.client-login-card label span {
  color: var(--market-text);
  font-size: 13px;
  font-weight: 850;
}

.client-login-card input {
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--market-line);
  border-radius: 12px;
  background: #fffaf3;
  color: var(--market-text);
  font: inherit;
  font-weight: 650;
}

.client-login-card input:focus {
  outline: 0;
  border-color: rgba(155,106,92,.46);
  box-shadow: 0 0 0 4px rgba(155,106,92,.11);
}

.client-login-card button,
.client-action-pill,
.client-panel-card-head a,
.client-panel-row a,
.client-empty-state a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: #171416;
  color: #fffaf3;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
}

.client-login-card button {
  min-height: 52px;
}

.client-login-card small {
  color: var(--market-muted);
  line-height: 1.55;
}

.client-auth-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff1ed;
  color: #9f2d20;
  font-weight: 750;
}

.client-panel-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 24px;
  align-items: end;
  padding: 42px 0 22px;
}

.client-panel-profile-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 104px;
  padding: 20px;
  border: 1px solid rgba(246,239,231,.12);
  border-radius: 22px;
  background: rgba(246,239,231,.07);
  color: #f6efe7;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 24px 70px rgba(0,0,0,.2);
}

.client-panel-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #f6efe7;
  color: #171416;
}

.client-panel-avatar svg {
  width: 24px;
  height: 24px;
}

.client-panel-profile-card small {
  display: block;
  color: rgba(246,239,231,.58);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.client-panel-profile-card strong {
  display: block;
  min-width: 0;
  margin-top: 6px;
  overflow: hidden;
  color: #fffaf3;
  font-size: 15px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-panel-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}

.client-action-pill {
  justify-content: flex-start;
  min-height: 86px;
  padding: 16px;
  border: 1px solid rgba(232,222,212,.92);
  border-radius: 18px;
  background: #fffaf3;
  color: var(--market-text);
  box-shadow: 0 18px 40px rgba(23,20,22,.08);
}

.client-action-pill-primary {
  border-color: rgba(23,20,22,.82);
  background: #171416;
  color: #fffaf3;
  box-shadow: 0 20px 42px rgba(23,20,22,.26);
}

.client-action-pill-muted {
  background: #f3e8df;
  color: #7f554a;
}

.client-action-pill svg {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  padding: 5px;
  border-radius: 999px;
  background: #f3e8df;
  color: #7f554a;
}

.client-action-pill-primary svg {
  background: #f6efe7;
  color: #171416;
}

.client-action-pill span,
.client-action-pill small {
  display: block;
  min-width: 0;
}

.client-action-pill span {
  font-size: 14px;
  line-height: 1.2;
}

.client-action-pill small {
  margin-left: auto;
  color: var(--market-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.client-action-pill-primary small {
  color: rgba(246,239,231,.68);
}

.client-panel-actions a:last-child {
  border: 1px solid rgba(232,222,212,.92);
  background: #f3e8df;
  color: #7f554a;
}

.client-panel-actions svg {
  width: 24px;
  height: 24px;
}

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

.client-summary-grid article {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 2px 14px;
  align-items: center;
  min-height: 108px;
  padding: 20px;
  overflow: hidden;
  border-radius: 20px;
}

.client-summary-grid article::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -38px;
  width: 110px;
  height: 110px;
  border-radius: 999px;
  background: rgba(155,106,92,.1);
}

.client-summary-grid svg {
  grid-row: 1 / span 2;
  width: 48px;
  height: 48px;
  padding: 12px;
  border-radius: 16px;
  background: #f3e8df;
  color: #7f554a;
}

.client-summary-grid span {
  min-width: 0;
  color: var(--market-muted);
  font-size: 13px;
  font-weight: 850;
}

.client-summary-grid strong {
  color: var(--market-text);
  font-size: 32px;
  line-height: 1;
}

.client-panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(300px, .86fr);
  gap: 18px;
}

.client-panel-card {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 260px;
  padding: 22px;
  border-radius: 22px;
}

.client-panel-card-wide {
  grid-row: span 2;
}

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

.client-panel-card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: #171416;
  color: #f6efe7;
}

.client-panel-card-icon svg {
  width: 22px;
  height: 22px;
}

.client-panel-card-head h2 {
  margin: 6px 0 0;
  color: var(--market-text);
  font-size: 23px;
  line-height: 1.1;
}

.client-panel-card-head p {
  max-width: 410px;
  margin: 7px 0 0;
  color: var(--market-muted);
  font-size: 13px;
  line-height: 1.45;
}

.client-panel-card-head a {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
}

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

.client-panel-row {
  display: grid;
  grid-template-columns: minmax(44px, auto) minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  min-height: 76px;
  padding: 12px;
  border: 1px solid #eee5db;
  border-radius: 16px;
  background: #fffdf8;
}

.client-row-date,
.client-row-icon {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.client-row-date {
  display: grid;
  place-items: center;
  min-width: 82px;
  min-height: 48px;
  padding: 7px 9px;
  border-radius: 14px;
  background: #f3e8df;
  color: #7f554a;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

.client-row-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #f3e8df;
  color: #7f554a;
}

.client-row-icon svg {
  width: 19px;
  height: 19px;
}

.client-row-main {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.client-row-main strong {
  display: block;
  overflow: hidden;
  color: var(--market-text);
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-row-main small {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--market-muted);
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-row-chip {
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
  max-width: 100%;
  padding: 5px 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #f8f5ef;
  color: #7f554a;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-panel-row a {
  grid-column: 3;
  grid-row: 1 / span 2;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
}

.client-empty-state {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px dashed #d8c7ba;
  border-radius: 18px;
  background: #fffdf8;
}

.client-empty-icon {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 15px;
  background: #f3e8df;
  color: #7f554a;
}

.client-empty-state strong {
  color: var(--market-text);
}

.client-empty-state p {
  margin: 0;
  color: var(--market-muted);
  line-height: 1.55;
}

.client-empty-state a {
  justify-self: start;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
}

.client-portal-mobile-nav {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .client-login-shell,
  .client-panel-hero,
  .client-panel-grid {
    grid-template-columns: 1fr;
  }

  .client-panel-card-wide {
    grid-row: auto;
  }

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

@media (max-width: 760px) {
  .client-portal-shell {
    width: calc(100% - 24px);
    padding-top: 22px;
  }

  .client-login-shell {
    min-height: auto;
    gap: 22px;
  }

  .client-login-copy {
    min-height: 360px;
    padding: 26px;
    border-radius: 22px;
  }

  .client-login-copy h1,
  .client-panel-hero h1 {
    font-size: 38px;
  }

  .client-login-card,
  .client-panel-card {
    padding: 18px;
    border-radius: 18px;
  }

  .client-portal-mobile-nav {
    display: grid;
  }

  .client-panel-hero {
    padding-top: 24px;
  }

  .client-summary-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .client-summary-grid article {
    min-height: 92px;
    padding: 16px;
  }

  .client-panel-card-head {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .client-panel-card-head a {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .client-panel-row {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .client-row-date {
    min-width: 46px;
    width: 46px;
    min-height: 46px;
    padding: 6px;
    font-size: 10px;
  }

  .client-row-main,
  .client-row-chip {
    grid-column: 2;
  }

  .client-panel-row a {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-self: stretch;
  }

  .client-panel-profile-card {
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 92px;
    padding: 16px;
  }

  .client-panel-avatar {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 620px) {
  .client-portal-page {
    background: linear-gradient(180deg, #151314 0 390px, #f8f5ef 390px 100%);
  }

  .client-portal-shell {
    width: calc(100% - 18px);
    padding-bottom: 106px;
  }

  .client-panel-actions {
    grid-template-columns: 1fr;
  }

  .client-action-pill {
    min-height: 66px;
  }

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

  .client-summary-grid article {
    grid-template-columns: 1fr;
    justify-items: start;
    min-height: 114px;
    gap: 8px;
  }

  .client-summary-grid svg {
    grid-row: auto;
    width: 38px;
    height: 38px;
    padding: 9px;
  }

  .client-summary-grid span {
    font-size: 11px;
    line-height: 1.2;
  }

  .client-summary-grid strong {
    font-size: 26px;
  }
}

@media (max-width: 420px) {
  .client-login-copy h1,
  .client-panel-hero h1 {
    font-size: 34px;
  }

  .client-panel-card-head h2 {
    font-size: 21px;
  }
}

/* ============================================================
   REEZLY MARKETPLACE AUTH
   ============================================================ */
.auth-market-page {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 14% 10%, rgba(236,72,153,.12), transparent 32%),
    radial-gradient(circle at 88% 8%, rgba(124,58,237,.13), transparent 34%),
    linear-gradient(180deg, #fff 0, #fcfcfd 44%, #f8f6ff 100%);
}

.auth-market-shell {
  width: min(1160px, calc(100% - 40px));
  min-height: 100dvh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, .78fr);
  gap: 42px;
  align-items: center;
  padding: 42px 0;
}

.auth-market-copy {
  position: relative;
  display: grid;
  align-content: center;
  gap: 34px;
  min-height: 620px;
  padding: 38px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(253,242,248,.62)),
    url("../uploads/marketplace-hero-beauty.png") right bottom / 68% auto no-repeat;
  box-shadow: 0 28px 80px rgba(15,23,42,.09);
  overflow: hidden;
}

.auth-market-copy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.94) 0, rgba(255,255,255,.72) 52%, rgba(255,255,255,.18) 100%);
  pointer-events: none;
}

.auth-market-copy > * {
  position: relative;
  z-index: 1;
}

.auth-market-copy h1 {
  max-width: 650px;
  margin: 16px 0 0;
  color: var(--market-text);
  font-size: clamp(44px, 5.2vw, 72px);
  font-weight: 850;
  line-height: 1.02;
}

.auth-market-copy p {
  max-width: 540px;
  margin: 18px 0 0;
  color: var(--market-muted);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.75;
}

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

.auth-market-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(238,242,247,.9);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: var(--market-text);
  box-shadow: 0 12px 30px rgba(15,23,42,.06);
  font-size: 13px;
  font-weight: 800;
}

.auth-market-benefits svg {
  width: 17px;
  height: 17px;
  color: var(--market-primary);
}

.auth-market-card {
  display: grid;
  gap: 24px;
  padding: 28px;
  border: 1px solid rgba(238,242,247,.95);
  border-radius: 26px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 28px 80px rgba(15,23,42,.12);
}

.auth-market-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  border-radius: 18px;
  background: #f8fafc;
}

.auth-market-tabs button {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--market-muted);
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.auth-market-tabs button.is-active {
  background: #fff;
  color: var(--market-primary);
  box-shadow: 0 12px 28px rgba(15,23,42,.08);
}

.auth-market-head {
  display: grid;
  gap: 10px;
}

.auth-market-head h1 {
  margin: 0;
  color: var(--market-text);
  font-size: 34px;
  font-weight: 850;
  line-height: 1.08;
}

.auth-market-head p {
  margin: 0;
  color: var(--market-muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
}

.auth-market-page[data-auth-mode="client"] [data-auth-copy="salon"],
.auth-market-page[data-auth-mode="salon"] [data-auth-copy="client"] {
  display: none;
}

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

.auth-market-form[hidden] {
  display: none;
}

.auth-market-form label {
  display: grid;
  gap: 7px;
  color: var(--market-text);
  font-size: 13px;
  font-weight: 850;
}

.auth-market-form input {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--market-line);
  border-radius: 16px;
  background: #fff;
  color: var(--market-text);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  outline: 0;
  box-shadow: 0 10px 24px rgba(15,23,42,.035);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.auth-market-form input:focus {
  border-color: rgba(124,58,237,.42);
  box-shadow: 0 0 0 4px rgba(124,58,237,.09);
}

.auth-market-password {
  position: relative;
}

.auth-market-password input {
  padding-right: 56px;
}

.auth-market-password button {
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: #f8fafc;
  color: var(--market-muted);
  cursor: pointer;
}

.auth-market-password button:hover {
  color: var(--market-primary);
  background: #f5f3ff;
}

.auth-market-password svg {
  width: 18px;
  height: 18px;
}

.auth-market-row {
  display: flex;
  justify-content: flex-end;
  min-height: 24px;
}

.auth-market-row a,
.auth-market-footer a {
  color: var(--market-primary);
  font-weight: 850;
  text-decoration: none;
}

.auth-market-primary,
.auth-market-google {
  min-height: 56px;
  border-radius: 16px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.auth-market-primary {
  border: 0;
  background: linear-gradient(135deg, var(--market-primary), var(--market-secondary));
  color: #fff;
  box-shadow: 0 18px 34px rgba(124,58,237,.25);
}

.auth-market-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 44px rgba(124,58,237,.31);
}

.auth-market-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--market-line);
  background: #fff;
  color: var(--market-text);
}

.auth-market-google span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f8fafc;
  color: var(--market-primary);
  font-weight: 950;
}

.auth-market-google:hover {
  border-color: rgba(124,58,237,.32);
  background: #fbf9ff;
}

.auth-market-message {
  min-height: 22px;
  margin: -4px 0 0;
  color: #16a34a;
  font-size: 13px;
  font-weight: 800;
}

.auth-market-message.error {
  color: #dc2626;
}

.auth-market-footer {
  display: grid;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid var(--market-line);
}

.auth-market-footer p {
  margin: 0;
  color: var(--market-muted);
  font-size: 14px;
  font-weight: 650;
}

.booking-account-consent {
  border: 1px solid rgba(124,58,237,.12);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245,243,255,.72), rgba(253,242,248,.72));
}

.booking-account-consent span {
  color: #4c1d95;
  font-weight: 800;
}

.booking-success-actions #bookingClientPanelLink {
  border: 0;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  box-shadow: 0 16px 34px rgba(124,58,237,.22);
}

@media (max-width: 980px) {
  .auth-market-shell {
    grid-template-columns: 1fr;
    gap: 22px;
    width: min(680px, calc(100% - 28px));
    padding: 20px 0 28px;
  }

  .auth-market-copy {
    min-height: 330px;
    padding: 28px;
    background:
      linear-gradient(135deg, rgba(255,255,255,.95), rgba(253,242,248,.74)),
      url("../uploads/marketplace-hero-beauty.png") right bottom / 54% auto no-repeat;
  }

  .auth-market-copy h1 {
    max-width: 560px;
    font-size: clamp(38px, 8vw, 58px);
  }

  .auth-market-copy p {
    max-width: 520px;
    font-size: 16px;
  }

  .auth-market-card {
    padding: 22px;
  }
}

@media (max-width: 620px) {
  .auth-market-shell {
    width: calc(100% - 20px);
    padding: 10px 0 18px;
  }

  .auth-market-copy {
    min-height: auto;
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255,255,255,.92);
  }

  .auth-market-copy h1 {
    margin-top: 10px;
    font-size: 30px;
    line-height: 1.08;
  }

  .auth-market-copy p {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
  }

  .auth-market-benefits {
    display: none;
  }

  .auth-market-card {
    gap: 18px;
    padding: 18px;
    border-radius: 22px;
  }

  .auth-market-head h1 {
    font-size: 29px;
  }

  .auth-market-tabs button,
  .auth-market-primary,
  .auth-market-google,
  .auth-market-form input {
    min-height: 54px;
  }
}

/* Marketplace auth/navigation refinements */
.auth-market-shell {
  width: min(1360px, calc(100% - 32px));
  grid-template-columns: minmax(0, 1.12fr) minmax(420px, .68fr);
}

.auth-market-copy {
  min-height: min(680px, calc(100dvh - 84px));
}

.auth-market-tabs button {
  padding: 0 10px;
  line-height: 1.15;
  white-space: normal;
}

.auth-market-form label {
  min-width: 0;
}

.market-mobile-nav {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: calc(70px + env(safe-area-inset-bottom, 0px));
  padding: 7px 10px max(7px, env(safe-area-inset-bottom, 0px));
}

.market-mobile-nav a,
.market-mobile-nav button {
  min-width: 0;
  min-height: 52px;
  border-radius: 16px;
}

.market-mobile-nav svg {
  width: 21px;
  height: 21px;
}

.market-mobile-nav span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .auth-market-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .auth-market-shell {
    width: calc(100% - 18px);
  }

  .auth-market-tabs {
    gap: 6px;
  }

  .auth-market-tabs button {
    font-size: 13px;
  }
}

/* Marketplace hero exact visual pass */
.marketplace-page {
  background:
    linear-gradient(180deg, #fff 0, #fbf8ff 470px, #fff 471px, #fcfcfd 100%);
}

.market-hero {
  width: min(1380px, calc(100% - 64px));
  padding: 28px 0 18px;
}

.market-hero-main {
  min-height: 315px;
  grid-template-columns: minmax(0, 610px) minmax(430px, 1fr);
  gap: 26px;
  align-items: start;
}

.market-hero-copy {
  max-width: 610px;
  padding: 30px 0 0;
}

.market-hero .market-kicker {
  color: #b05bd6;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
}

.market-hero h1 {
  max-width: 620px;
  margin: 20px 0 0;
  color: #101a35;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 4.9vw, 68px);
  font-weight: 700;
  line-height: 1.02;
}

.market-hero h1 span {
  background: linear-gradient(110deg, #b767db 0%, #8b48d8 48%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.market-hero p {
  max-width: 570px;
  margin: 20px 0 0;
  color: #536078;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.72;
}

.market-hero-visual {
  top: 0;
  right: 0;
  width: min(62%, 760px);
  height: 348px;
  border-radius: 0;
  background: transparent;
}

.market-hero-visual::before {
  background:
    linear-gradient(90deg, #fff 0%, rgba(255,255,255,.82) 20%, rgba(255,255,255,.06) 48%),
    linear-gradient(180deg, rgba(255,255,255,0) 68%, #fbf8ff 100%);
}

.market-hero-visual img {
  height: 100%;
  object-fit: cover;
  object-position: center right;
  filter: saturate(1.02) contrast(.99) brightness(1.02);
}

.market-hero-stats {
  top: 28px;
  right: 28px;
  width: 286px;
  gap: 20px;
  padding: 22px;
  border-radius: 14px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 22px 50px rgba(35,22,76,.12);
}

.market-hero-stats span {
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 2px 15px;
}

.market-hero-stats svg {
  width: 46px;
  height: 46px;
  padding: 12px;
}

.market-hero-stats strong {
  font-size: 24px;
  font-weight: 900;
}

.market-hero-stats small {
  color: #43506a;
  font-size: 12px;
  line-height: 1.25;
}

.market-search-card {
  grid-template-columns: minmax(250px, .62fr) minmax(360px, 1fr) 56px 238px;
  gap: 16px;
  margin-top: -18px;
  padding: 20px 24px;
  border: 1px solid rgba(235,231,244,.95);
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 24px 54px rgba(35,22,76,.11);
}

.market-search-card label > span {
  margin-bottom: 0;
  color: #101a35;
  font-size: 12px;
  font-weight: 850;
}

.market-input {
  min-height: 54px;
  border-radius: 8px;
}

.market-icon-action,
.market-search-submit {
  min-height: 54px;
  border-radius: 8px;
}

.market-search-submit {
  padding: 0 28px;
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  box-shadow: 0 14px 28px rgba(109,40,217,.23);
  font-size: 14px;
  font-weight: 850;
}

@media (max-width: 1180px) {
  .market-hero {
    width: min(100% - 44px, 1380px);
  }

  .market-hero-main {
    grid-template-columns: minmax(0, 540px) minmax(360px, 1fr);
  }

  .market-hero h1 {
    font-size: clamp(44px, 5.2vw, 60px);
  }

  .market-hero-stats {
    width: 260px;
  }

  .market-search-card {
    grid-template-columns: minmax(220px, .75fr) minmax(280px, 1fr) 54px 190px;
  }
}

@media (max-width: 900px) {
  .market-hero-main {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .market-hero-visual {
    position: relative;
    width: 100%;
    height: 270px;
  }

  .market-hero-stats {
    top: 18px;
    right: 18px;
    width: min(280px, calc(100% - 36px));
  }

  .market-search-card {
    margin-top: 18px;
    grid-template-columns: minmax(0, 1fr) 54px;
  }
}

@media (max-width: 760px) {
  .market-hero {
    width: calc(100% - 24px);
    padding-top: 18px;
  }

  .market-hero-copy {
    padding-top: 8px;
  }

  .market-hero h1 {
    font-size: clamp(38px, 12vw, 50px);
  }

  .market-hero p {
    font-size: 14px;
  }

  .market-hero-visual {
    height: 245px;
  }

  .market-hero-stats {
    gap: 8px;
    padding: 12px;
  }

  .market-search-card {
    grid-template-columns: 1fr 52px;
    padding: 14px;
  }
}

/* Marketplace hero/livechat reliability pass */
.market-hero-visual {
  background:
    linear-gradient(90deg, #fff 0%, rgba(255,255,255,.72) 24%, rgba(255,255,255,0) 52%),
    url("../uploads/marketplace-hero-beauty-photo.png") center right / cover no-repeat;
}

.market-hero-visual img {
  opacity: 1;
}

.market-chat-fab {
  right: 28px;
  bottom: 28px;
  z-index: 130;
  min-width: 112px;
  height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 52%, #a855f7 100%);
  color: #fff;
  box-shadow: 0 20px 44px rgba(109,40,217,.3);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
}

.market-chat-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 56px rgba(109,40,217,.36);
}

.market-chat-fab svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.2;
}

.market-chat-fab span {
  font-size: 14px;
  font-weight: 850;
}

.market-chat-panel {
  right: 28px;
  bottom: 96px;
  z-index: 140;
  width: min(392px, calc(100vw - 32px));
  height: min(520px, calc(100dvh - 126px));
  border: 1px solid rgba(235,231,244,.92);
  border-radius: 24px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 30px 90px rgba(35,22,76,.18);
  backdrop-filter: blur(18px);
}


.market-chat-head {
  min-height: 78px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid #f0ecf8;
  background:
    radial-gradient(circle at 16% 0%, rgba(236,72,153,.12), transparent 36%),
    linear-gradient(180deg, #fff, #fbf9ff);
}

.market-chat-head strong {
  color: #101a35;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
}

.market-chat-head span {
  margin-top: 3px;
  color: #7c3aed;
  font-size: 12px;
  font-weight: 800;
}

.market-chat-head button {
  width: 38px;
  height: 38px;
  border: 1px solid #efeaf8;
  border-radius: 13px;
  background: #fff;
  color: #64748b;
  box-shadow: 0 10px 22px rgba(35,22,76,.08);
}

.market-chat-head button:hover {
  color: #7c3aed;
  background: #f8f5ff;
}




.market-chat-messages {
  gap: 10px;
  padding: 16px;
  background: linear-gradient(180deg, #fbf9ff, #fff);
}

.market-chat-bubble,
.market-chat-empty {
  max-width: 86%;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.5;
}

.market-chat-bubble.is-user {
  border-bottom-right-radius: 8px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  box-shadow: 0 12px 24px rgba(124,58,237,.18);
}

.market-chat-bubble.is-system,
.market-chat-empty {
  border: 1px solid #efeaf8;
  border-bottom-left-radius: 8px;
  background: #fff;
  color: #475569;
  box-shadow: 0 10px 24px rgba(35,22,76,.06);
}

.market-chat-form {
  gap: 10px;
  padding: 12px;
  border-top: 1px solid #f0ecf8;
  background: #fff;
}

.market-chat-form input {
  min-height: 46px;
  border: 1px solid #e8e2f3;
  border-radius: 15px;
  background: #fbf9ff;
  color: #101a35;
  font-size: 14px;
  font-weight: 650;
}

.market-chat-form input:focus {
  border-color: rgba(124,58,237,.42);
  box-shadow: 0 0 0 4px rgba(124,58,237,.08);
}

.market-chat-form button {
  width: 40px;
  height: 40px;
  border-radius: 15px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  box-shadow: 0 14px 28px rgba(124,58,237,.22);
}



@media (max-width: 760px) {
  .market-chat-fab {
    right: 16px;
    bottom: calc(90px + env(safe-area-inset-bottom, 0px));
    min-width: 54px;
    width: 54px;
    height: 54px;
    padding: 0;
    border-radius: 18px;
  }

  .market-chat-fab span {
    display: none;
  }

  .market-chat-panel {
    right: 10px;
    bottom: calc(154px + env(safe-area-inset-bottom, 0px));
    width: calc(100vw - 20px);
    height: min(470px, calc(100dvh - 184px));
    border-radius: 22px;
  }

  }


/* Mobile auth compact pass */
@media (max-width: 620px) {
  .auth-market-page .market-nav {
    min-height: 62px;
    padding-top: 8px;
    padding-bottom: 6px;
  }

  .auth-market-page .auth-market-shell {
    min-height: auto;
    gap: 10px;
    width: calc(100% - 18px);
    padding: 6px 0 14px;
  }

  .auth-market-page .auth-market-copy {
    min-height: 0;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 18px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, .055);
  }

  .auth-market-page .auth-market-copy .market-kicker {
    font-size: 10px;
  }

  .auth-market-page .auth-market-copy h1 {
    margin-top: 6px;
    font-size: 23px;
    line-height: 1.08;
  }

  .auth-market-page .auth-market-copy p {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.35;
  }

  .auth-market-page .auth-market-card {
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
  }

  .auth-market-page .auth-market-tabs {
    gap: 6px;
    padding: 5px;
    border-radius: 15px;
  }

  .auth-market-page .auth-market-tabs button {
    min-height: 42px;
    border-radius: 12px;
    font-size: 13px;
  }

  .auth-market-page .auth-market-head {
    gap: 6px;
  }

  .auth-market-page .auth-market-head .market-kicker {
    display: none;
  }

  .auth-market-page .auth-market-head h1 {
    font-size: 24px;
  }

  .auth-market-page .auth-market-head p {
    font-size: 13px;
    line-height: 1.38;
  }

  .auth-market-page .auth-market-form {
    gap: 10px;
  }

  .auth-market-page .auth-market-form label {
    gap: 5px;
    font-size: 12px;
  }

  .auth-market-page .auth-market-primary,
  .auth-market-page .auth-market-google,
  .auth-market-page .auth-market-form input {
    min-height: 48px;
    border-radius: 13px;
    font-size: 14px;
  }

  .auth-market-page .auth-market-form input {
    padding: 0 14px;
  }

  .auth-market-page .auth-market-password input {
    padding-right: 50px;
  }

  .auth-market-page .auth-market-password button {
    right: 7px;
    bottom: 7px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .auth-market-page .auth-market-row {
    min-height: 18px;
  }

  .auth-market-page .auth-market-message {
    min-height: 18px;
    margin-top: -2px;
    font-size: 12px;
  }

  .auth-market-page .auth-market-footer {
    gap: 4px;
    padding-top: 0;
  }

  .auth-market-page .auth-market-footer p {
    font-size: 13px;
  }
}

/* Reezly auth and legacy portal refresh */
.auth-market-page,
.auth-page.admin-page,
.lummi-auth-page {
  --market-bg: #f8f5ef;
  --market-card: #fffaf2;
  --market-line: #e8ded2;
  --market-text: #1f1b1d;
  --market-muted: #746b66;
  --market-primary: #9b6a5c;
  --market-secondary: #151314;
  --market-accent: #b48a78;
  --portal-text: #1f1b1d;
  --portal-muted: #746b66;
  --portal-accent: #9b6a5c;
}

.auth-market-page {
  background:
    linear-gradient(180deg, rgba(21, 19, 20, 0.96) 0%, rgba(33, 29, 31, 0.92) 42%, #f8f5ef 42%, #f8f5ef 100%);
}

.auth-market-copy {
  border-color: rgba(255, 250, 242, 0.16);
  background:
    linear-gradient(135deg, rgba(21, 19, 20, 0.94), rgba(61, 45, 42, 0.82)),
    url("../uploads/marketplace-hero-beauty.png") right bottom / 66% auto no-repeat;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.18);
}

.auth-market-copy::after {
  background: linear-gradient(90deg, rgba(21, 19, 20, 0.92) 0, rgba(21, 19, 20, 0.74) 54%, rgba(21, 19, 20, 0.24) 100%);
}

.auth-market-copy h1,
.auth-market-benefits span {
  color: #fffaf2;
}

.auth-market-copy p {
  color: rgba(255, 250, 242, 0.72);
}

.auth-market-benefits span {
  border-color: rgba(255, 250, 242, 0.14);
  background: rgba(255, 250, 242, 0.08);
  box-shadow: none;
}

.auth-market-card,
.lummi-auth-card,
.lummi-onboarding-card {
  border-color: rgba(232, 222, 210, 0.92);
  background: #fffaf2;
}

.auth-market-tabs,
.auth-market-form input,
.lummi-field input,
.lummi-field select {
  background: #fffdf8;
}

.auth-market-tabs button.is-active {
  color: #151314;
}

.auth-market-primary,
.lummi-btn-primary {
  background: #151314;
  color: #fffaf2;
  box-shadow: 0 18px 36px rgba(21, 19, 20, 0.2);
}

.auth-market-primary:hover,
.lummi-btn-primary:hover {
  background: #2b2527;
}

.auth-market-google {
  border-color: rgba(21, 19, 20, 0.14);
  color: #151314;
}

.portal-brand-mark {
  background: #151314;
  box-shadow: 0 14px 26px rgba(21, 19, 20, 0.22);
}

@media (max-width: 620px) {
  .auth-market-page {
    background: #f8f5ef;
  }

  .auth-market-copy {
    background: #151314;
  }
}

@media (max-width: 620px) {
  .auth-market-page {
    overflow-x: hidden;
  }

  .auth-market-page .market-nav {
    width: 100%;
    margin: 0;
    padding-right: 14px;
    padding-left: 14px;
  }

  .auth-market-page .auth-market-shell {
    width: 100%;
    margin: 0;
    padding: 0 0 14px;
  }

  .auth-market-page .auth-market-copy,
  .auth-market-page .auth-market-card {
    width: 100%;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .auth-market-page .auth-market-copy {
    border-top: 0;
  }

  .auth-market-page .auth-market-card {
    border-bottom: 0;
  }
}

/* Client portal final theme guard */
.client-portal-page {
  --market-primary: #9b6a5c;
  --market-primary-hover: #7f554a;
  --market-secondary: #211d1f;
  --market-accent: #b48a78;
  --market-text: #171416;
  --market-muted: #6f6864;
  --market-bg: #f8f5ef;
  --market-card: #fffaf3;
  --market-line: #e8ded4;
  --market-soft-line: #eee5db;
  background: linear-gradient(180deg, #151314 0 330px, #f8f5ef 330px 100%);
}

.client-portal-page .client-portal-mobile-nav {
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
}

@media (max-width: 760px) {
  .client-portal-page .client-portal-mobile-nav {
    display: grid;
  }
}

@media (max-width: 620px) {
  .client-portal-page {
    background: linear-gradient(180deg, #151314 0 390px, #f8f5ef 390px 100%);
  }
}

/* Mobile marketplace bottom nav polish */
.market-mobile-nav {
  left: max(12px, env(safe-area-inset-left, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  align-items: stretch;
  gap: 6px;
  isolation: isolate;
  min-height: calc(76px + env(safe-area-inset-bottom, 0px));
  padding: 8px 8px max(8px, env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 250, 243, 0.91));
  box-shadow:
    0 20px 46px rgba(23, 20, 22, 0.18),
    0 6px 18px rgba(155, 106, 92, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(22px) saturate(1.12);
  backdrop-filter: blur(22px) saturate(1.12);
}

.market-mobile-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(232, 222, 212, 0.48);
  pointer-events: none;
}

.market-mobile-nav.market-mobile-nav-public {
  grid-template-columns: minmax(64px, 0.9fr) minmax(142px, 1.7fr) minmax(64px, 0.9fr);
}

.market-mobile-nav:not(.market-mobile-nav-public) {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.market-mobile-nav a,
.market-mobile-nav button {
  position: relative;
  z-index: 1;
  align-content: center;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 54px;
  padding: 6px 4px 5px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: #78706d;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.market-mobile-nav a:hover,
.market-mobile-nav button:hover,
.market-mobile-nav a:focus-visible,
.market-mobile-nav button:focus-visible {
  color: #171416;
  background: rgba(246, 239, 231, 0.9);
  outline: 0;
  box-shadow: inset 0 0 0 1px rgba(155, 106, 92, 0.08);
}

.market-mobile-nav a:active,
.market-mobile-nav button:active {
  transform: translateY(1px);
}

.market-mobile-nav a[aria-current="page"],
.client-portal-page .client-portal-mobile-nav a[href="/moje-wizyty"] {
  color: #9b6a5c;
  background:
    linear-gradient(180deg, rgba(248, 245, 239, 0.98), rgba(241, 231, 222, 0.88));
  box-shadow: inset 0 0 0 1px rgba(155, 106, 92, 0.09);
}

.market-mobile-nav .market-mobile-nav-cta {
  min-height: 58px;
  padding: 7px 16px 6px;
  border-radius: 22px;
  color: #fffaf3;
  background:
    linear-gradient(135deg, #211d1f 0%, #5a3b34 54%, #7f554a 100%);
  box-shadow:
    0 16px 30px rgba(33, 29, 31, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.market-mobile-nav .market-mobile-nav-cta:hover,
.market-mobile-nav .market-mobile-nav-cta:focus-visible {
  color: #fffaf3;
  background:
    linear-gradient(135deg, #151314 0%, #4b312c 52%, #71473e 100%);
  box-shadow:
    0 18px 34px rgba(33, 29, 31, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.market-mobile-nav svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.35;
}

.market-mobile-nav .market-mobile-nav-cta svg {
  width: 24px;
  height: 24px;
}

.market-mobile-nav span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .market-mobile-nav {
    background: #fffaf3;
  }
}

@media (max-width: 900px) {
  .marketplace-page {
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 380px) {
  .market-mobile-nav {
    left: 8px;
    right: 8px;
    gap: 5px;
    padding-right: 6px;
    padding-left: 6px;
  }

  .market-mobile-nav.market-mobile-nav-public {
    grid-template-columns: minmax(56px, 0.82fr) minmax(124px, 1.72fr) minmax(56px, 0.82fr);
  }

  .market-mobile-nav a,
  .market-mobile-nav button {
    font-size: 10px;
  }

  .market-mobile-nav .market-mobile-nav-cta {
    padding-right: 10px;
    padding-left: 10px;
  }
}

/* Mobile public pages should not render as a narrowed page inside the viewport. */
@media (max-width: 760px) {
  .marketplace-page,
  .market-info-page,
  .salon-template {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .marketplace-page main,
  .market-info-page main,
  .salon-template main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .market-info-page .market-info-hero,
  .market-info-page .market-info-grid,
  .market-info-page .market-help-grid,
  .market-info-page .market-info-band {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-left: max(16px, env(safe-area-inset-left, 0px));
  }

  .salon-template .salon-site-header,
  .salon-template .salon-section,
  .salon-template .salon-footer {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
  }

  .salon-template .salon-site-header {
    top: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0 0 calc(var(--salon-radius) - 8px) calc(var(--salon-radius) - 8px);
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-left: max(16px, env(safe-area-inset-left, 0px));
  }

  .salon-template .salon-section,
  .salon-template .salon-footer {
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-left: max(16px, env(safe-area-inset-left, 0px));
  }

  .salon-template .salon-feature-band,
  .salon-template .salon-contact-section {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    padding-right: max(20px, env(safe-area-inset-right, 0px));
    padding-left: max(20px, env(safe-area-inset-left, 0px));
  }
}
