/* Keep the Veloras palette without compositing blurred, moving full-screen layers. */
body.crystal-ready .bgfx {
  position: absolute;
  inset: 0 0 auto;
  height: min(1100px, 100%);
  background:
    radial-gradient(ellipse at 18% 12%, #d7c4ff 0%, transparent 55%),
    radial-gradient(ellipse at 82% 20%, #f5c0ea 0%, transparent 50%),
    radial-gradient(ellipse at 56% 54%, #c3eefa 0%, transparent 56%);
}

body.crystal-ready .bgfx i { display: none; }

body.crystal-ready.v-platform::before,
body.crystal-ready.v-home :is(.showcase-section,.onboarding-section,.closing)::before,
body.crystal-ready.v-home .site-footer::after,
body.crystal-ready.v-portal .new-centre::before {
  content: none;
}

body.crystal-ready :is(header, nav, footer, aside, article, section, details,
  .agenda-shell, .calendar, .calendar-scroll, .calendar-head, .agenda-toolbar,
  .date-control, .date-chips, .slots, .category-tabs, .ca-search, .booking-summary,
  .treatment, .client-result, .client-picker, .profile-card, .visit-card,
  .sidebar-bottom, .page-head, .detail, .metric, .booking-location,
  .crystal-float-chip, .product-card, .centre, .app-link-card, .form-wrap,
  .access-card, .new-centre, .site-footer-inner, .tour-visual, .ca-panel,
  .ca-centre, .ca-card, .assistant-panel, .va-dialog, #alerts-popover) {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

body.crystal-ready :is(.site-header,.portal-header,.ca-header,.client-header) {
  --glass: #faf7fe;
}

body.crystal-ready :is(.assistant-panel,.va-dialog,#alerts-popover) {
  --glass: #fcf9ff;
}

body.crystal-ready .va-dialog::backdrop {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

body.crystal-ready :is(.crystal-float-chip,.product-card,.tour-visual) {
  animation: none !important;
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  body.crystal-ready.v-home .bgfx::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: min(88vw, 960px);
    height: 600px;
    background: radial-gradient(ellipse at center, #ed8ed85c 0%, transparent 67%);
    animation: veloras-halo-intro 5s ease-out both;
  }
}

@keyframes veloras-halo-intro {
  from { opacity: .5; transform: translate(-65%, -5%); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* A stable, lightly coloured workspace keeps the calendar and data legible. */
body.crystal-ready.maison-tools .bgfx { opacity: .36; }

body.crystal-ready.maison-tools :is(.topbar,.sidebar,.calendar-head) {
  --glass: #fdfbff;
}

body.crystal-ready.maison-tools .topbar {
  background: #fdfbff !important;
}

body.crystal-ready.maison-tools .agenda-utility-row {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.crystal-ready.maison-tools .agenda-shell .metrics .metric,
body.crystal-ready.maison-tools #content .period-report .metrics .metric {
  color: var(--tx) !important;
  background: #fcfaff !important;
  border: 1px solid #e5ddf4 !important;
  box-shadow: none !important;
}

body.crystal-ready.maison-tools #content .metrics .metric:nth-child(1) strong { color: #086c80 !important; }
body.crystal-ready.maison-tools #content .metrics .metric:nth-child(2) strong { color: #a80d7b !important; }
body.crystal-ready.maison-tools #content .metrics .metric:nth-child(3) strong { color: #397b05 !important; }
body.crystal-ready.maison-tools #content .metrics .metric:nth-child(4) strong { color: #6840c9 !important; }
body.crystal-ready.maison-tools #content .metrics .metric :is(small,span) { color: #50476a !important; }

body.crystal-ready.account-page .account-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}

body.crystal-ready.account-page .account-nav a {
  align-content: center;
  min-height: 78px;
  padding: 13px 16px;
  background: #fdfbff;
  border-color: #ded4f2;
  text-decoration: none;
}

body.crystal-ready.account-page .account-nav a:hover { border-color: #8061c5; }

.workspace-quick-actions { display: flex; gap: 4px; }

body.crystal-ready.maison-tools :is(.workspace-quick-button,#workspace-menu button) {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #e7e0f2 !important;
  border-radius: 12px;
  color: #241d37 !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.crystal-ready.maison-tools .workspace-quick-button {
  display: inline-grid;
  place-items: center;
  padding: 0;
}

body.crystal-ready.maison-tools .workspace-quick-button[hidden] { display: none !important; }
body.crystal-ready.maison-tools .workspace-home-nav { width: 100%; }
body.crystal-ready.maison-tools .workspace-home-nav.active { background: #ede4ff !important; color: #6436bd !important; }

body.crystal-ready.maison-tools .workspace-menu {
  width: min(520px, calc(100% - 28px));
  position: fixed;
  inset: var(--menu-top, 62px) clamp(12px, var(--menu-right, 18px), max(12px, calc(100% - 532px))) auto auto;
  max-height: min(78vh, calc(100dvh - var(--menu-top, 62px) - 12px));
  margin: 0;
  padding: 0;
  border: 1px solid #e7e0f2;
  border-radius: 20px;
  background: #fdfbff !important;
  color: #211a32;
  box-shadow: 0 16px 46px #2a185230;
}

.workspace-menu::backdrop { background: #261b3e38; }
.workspace-menu-inner { min-width: 0; }
.workspace-menu-inner > header {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #ebe5f3;
}
.workspace-menu-inner h2 { margin: 0; font-size: 1.15rem; }
.workspace-menu-content { padding: 12px; }
.workspace-menu-row {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) auto;
  align-items: center;
  width: 100%;
  gap: 10px;
  margin: 5px 0;
  padding: 8px 10px;
  text-align: start;
}
.workspace-dashboard .workspace-menu-row { border: 1px solid #e7e0f2; background: #fff; }
.workspace-menu-row :is(strong,small) { display: block; overflow-wrap: anywhere; }
.workspace-menu-row:hover { outline: 1px solid #ab91df; }
.workspace-symbol { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #f1e9ff; color: #6739bf; }
.workspace-state { font-size: .72rem; color: #25674a; }
.workspace-search { display: grid; gap: 6px; margin-bottom: 12px; }
.workspace-search input { width: 100%; min-height: 44px; padding: 8px 12px; font-size: 16px; }
.workspace-module-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,210px),1fr)); gap: 8px; }
.workspace-module-grid .workspace-menu-row { height: 100%; margin: 0; grid-template-columns: 32px minmax(0,1fr); }
.workspace-module-grid .workspace-state { grid-column: 2; }
.workspace-dashboard .metrics { grid-template-columns: repeat(auto-fit,minmax(min(100%,155px),1fr)); }
.workspace-report-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.workspace-report-filters select { padding: 4px; }
.workspace-report-list > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px; align-items: center; }
.workspace-report-list [aria-pressed="true"] { color: #83510a !important; }

.workspace-quick-button { position: relative; }
.workspace-message-badge {
  position: absolute;
  inset: -5px -5px auto auto;
  padding: 2px 5px;
  min-width: 17px;
  border-radius: 20px;
  color: #fff;
  background: #b31380;
  font-size: 11px;
  line-height: 1.25;
}
.workspace-inbox :is(label, form) { display: grid; gap: 6px; min-width: 0; }
.workspace-inbox :is(input,select,textarea) {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #d7cbea;
  border-radius: 10px;
  background: #fcfaff;
  color: #211a32;
  padding: 8px;
  font-size: 16px;
}
.workspace-inbox-filters { display: grid; gap: 8px; grid-template-columns: minmax(0,2fr) minmax(0,5fr); }
.workspace-inbox-filters form { grid-template-columns: minmax(0,1fr) auto; align-items: end; }
.workspace-inbox-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.workspace-inbox :is(button,select,input) { min-height: 44px; }
body.crystal-ready.maison-tools #workspace-menu .workspace-inbox [type="submit"] {
  background: #5e37b4 !important;
  color: #fff !important;
}
.workspace-inbox > [role="status"]:empty { display: none; }
.workspace-inbox [data-conversation] {
  border-top: 1px solid #dfd3f0;
  margin-top: 12px;
  padding-top: 12px;
  overflow-wrap: anywhere;
}
.workspace-inbox [data-conversation] h3 { margin: 0; }
.workspace-inbox [data-conversation] form { margin: 12px 0; }
.workspace-message-list {
  display: grid;
  gap: 6px;
  max-height: 245px;
  max-height: min(245px, 27dvh);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: 0;
  list-style: none;
}
.workspace-message-list li { background: #f3ebff; border-radius: 12px; padding: 9px 12px; min-width: 0; }
.workspace-message-list li[data-sender="owner"] { background: #e9faff; }
.workspace-message-list li p { margin: 4px 0 0; white-space: pre-wrap; }
.workspace-message-list time { margin-inline-start: 8px; font-size: 0.8rem; color: #4a4160; }
.workspace-inbox .workspace-review-switch { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.workspace-inbox .workspace-review-switch input { width: 20px; min-height: 20px; height: 20px; accent-color: #5e37b4; }
.workspace-review-jobs { padding: 0; list-style: none; }
.workspace-review-jobs li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid #ebe5f3; overflow-wrap: anywhere; }
.custom-report-grid, [data-report-metrics] { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.workspace-inbox fieldset { border: 1px solid #d7cbea; border-radius: 10px; min-width: 0; }
.custom-report-grid input[type="date"] { width: 100%; min-inline-size: 0; max-inline-size: 100%; }
.custom-report-table { max-width: 100%; overflow-x: auto; margin-bottom: 10px; }
.custom-report-table table { width: 100%; min-width: 330px; }
.custom-report-table th,.custom-report-table td { padding: 7px 10px; text-align: start; border-bottom: 1px solid #e7dfef; }

@media (max-width: 760px) {
  body.crystal-ready.maison-tools .workspace-menu {
    inset: auto 0 max(12px, env(safe-area-inset-bottom));
    max-height: min(84vh, 84dvh);
    margin: 0 auto;
  }
  .workspace-quick-actions { gap: 2px; }
  body.crystal-ready.maison-tools .workspace-quick-actions .workspace-quick-button { min-width: 40px; }
  body.crystal-ready.maison-tools .topbar:has(.workspace-quick-actions) { flex-wrap: wrap !important; }
  body.crystal-ready.maison-tools .topbar:has(.workspace-quick-actions) > div {
    flex: 1 1 auto !important;
    flex-wrap: wrap !important;
    justify-content: end !important;
    width: auto !important;
    min-width: 0;
  }
  body.crystal-ready.maison-tools .topbar:has(.workspace-quick-actions) #sync { display: none !important; }
  body.crystal-ready.maison-tools .topbar:has(.workspace-quick-actions) :is(.avatar,#alerts-open) {
    flex: 0 0 auto;
    min-width: 40px;
    min-height: 40px;
  }
}

body.crystal-ready.maison-tools .report-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 16px;
  margin-block: 18px;
}

body.crystal-ready.maison-tools .report-chart {
  min-width: 0;
  margin: 0;
  padding: 18px;
  background: #fcfaff;
  border: 1px solid #e5ddf4;
  border-radius: 18px;
}

.report-chart h3 { margin: 0; font-size: 1rem; }
.report-chart figcaption p { margin: 4px 0 14px; font-size: .85rem; }
.report-chart svg { display: block; width: 100%; height: auto; }
.report-chart .report-axis { stroke: #ddd3ee; }
.report-chart .report-tick { fill: #52496c; font: 11px system-ui, sans-serif; }
.report-chart .report-line { fill: none; stroke: #6a3dca; stroke-width: 3; }
.report-chart .report-bar { fill: #6a3dca; }
.report-chart .report-point { fill: #6a3dca; }
.report-chart .report-key { font-size: .85rem; color: #493463; }
.report-chart .report-key summary { cursor: pointer; }
.report-chart .report-values { width: 100%; margin-top: 8px; }
.report-chart .report-values :is(th,td) { padding: 5px; text-align: start; }

@media(max-width:700px){
html body.crystal-ready .v-editorial{display:block}
html body.crystal-ready .v-editorial .editorial-photo{position:static;width:100%;height:clamp(148px,43vw,258px);min-height:0;object-position:50% 42%;border-radius:0 0 18px 18px}
html body.crystal-ready .v-editorial img[src$="/funciones.webp"]{object-position:50% 31%}
html body.crystal-ready .v-editorial img[src$="/apps.webp"]{object-position:50% 53%}
html body.crystal-ready .v-editorial>main{padding:24px clamp(16px,5vw,30px) 36px!important}
html body.crystal-ready .v-editorial h1{font-size:clamp(30px,8vw,42px)!important;line-height:1.09!important}
html body.crystal-ready .v-editorial :is(.crystal-feature-grid,.crystal-app-grid){gap:14px!important}
html body.crystal-ready .v-editorial :is(.crystal-feature-grid,.crystal-app-grid)>article{padding:20px!important;min-width:0}
html body.crystal-ready .v-editorial .discovery-search input{font-size:16px;min-height:44px}
html body.crystal-ready .v-editorial .discovery-search button{min-height:44px}
html body.v-discovery.crystal-ready header.discovery-header-locale{display:flex!important;flex-wrap:nowrap!important;gap:10px!important;align-items:center;padding:10px 16px!important}
html body.v-discovery.crystal-ready header.discovery-header-locale>a:first-child{margin-right:auto;flex:0 1 112px}
html body.v-discovery.crystal-ready header.discovery-header-locale>a:first-child img{width:100%!important;max-width:112px!important;height:auto}
html body.v-discovery.crystal-ready header.discovery-header-locale>a:nth-child(2){max-width:128px;white-space:normal;text-align:right;line-height:1.2;font-size:12px}
html body.v-legal.crystal-ready header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px}
html body.v-legal.crystal-ready header>a:first-child{display:block;width:108px;background:transparent!important;padding:0}
html body.v-legal.crystal-ready header>a img{width:100%!important;height:auto}
html body.v-home.crystal-ready .site-footer .footer-brand img{background:#fff7ff;border-radius:9px;padding:5px 9px;box-sizing:content-box}
html body.v-home.crystal-ready .site-footer :is(p,small,.footer-links a,.footer-contact){color:#fff1ff!important}
html body.v-home.crystal-ready #booking-simulator{display:block}
html body.v-home.crystal-ready #booking-simulator .sim-photo{height:clamp(110px,32vw,170px);background-position:center 45%}
html body.v-home.crystal-ready #booking-simulator .sim-inner{padding:18px}
html body.v-home.crystal-ready #booking-simulator :is(input,select){font-size:16px;min-height:44px}
}

/* Preserve the complete original compositions in the mobile layout. */
@media (max-width:700px) {
  html body.v-home.crystal-ready main.public-section-page #domande .crystal-section-heading::after {
    height: auto;
    aspect-ratio: 1200 / 627;
    padding-top: 52.25%;
    box-sizing: content-box;
    background-size: contain;
    background-position: center;
  }
  html body.v-home.crystal-ready #booking-simulator .sim-photo {
    height: clamp(157px, 47vw, 214px);
    max-height: 32vh;
    max-height: 32svh;
    padding: 0;
    background-size: cover;
    background-position: 50% 61%;
    background-repeat: no-repeat;
  }
  html body.v-home.crystal-ready #booking-simulator .sim-inner {padding:14px 16px}
  html body.v-home.crystal-ready #booking-simulator .sim-inner h2 {margin:0 0 10px;font-size:19px}
  html body.v-home.crystal-ready #booking-simulator .sim-fields {gap:8px}
  html body.v-home.crystal-ready #booking-simulator .sim-fields label {gap:3px}
  html body.v-home.crystal-ready #booking-simulator .sim-full {margin-top:8px}
  @supports (aspect-ratio: 1 / 1) {
    html body.v-home.crystal-ready main.public-section-page #domande .crystal-section-heading::after,
    html body.v-home.crystal-ready #booking-simulator .sim-photo { padding-top: 0; }
  }
}
