/* Papéis de cor comuns aos componentes, incluindo elementos fora de .app. */
:root{--theme-accent-surface:#e9f7f3;--theme-accent-ink:#076875;--positive-bg:#e3f5e9;--positive-ink:#145c31;--warning-bg:#fff2bf;--warning-ink:#725400;--negative-bg:#ffe0e0;--negative-ink:#9c2020;--neutral-bg:#f0f2f4;--neutral-ink:#52616e}
html[data-guup-theme]:not([data-guup-theme=original]){--surface:var(--theme-surface);--line:var(--card-border);--accent:var(--theme-accent-ink);--theme-accent-surface:color-mix(in srgb,var(--navy) 10%,var(--theme-surface));--theme-accent-ink:var(--navy)}
html[data-guup-theme=dark]:not([data-guup-theme=original]){--theme-accent-surface:#244356;--theme-accent-ink:#b4e9ff;--positive-bg:#164733;--positive-ink:#e5fff1;--warning-bg:#57440c;--warning-ink:#fff7cc;--negative-bg:#642633;--negative-ink:#fff0f1;--neutral-bg:#2b3647;--neutral-ink:#d1dbea}
html[data-guup-theme]:not([data-guup-theme=original]) .app :is(h1,h2,h3,h4){color:var(--ink)}
html[data-guup-theme]:not([data-guup-theme=original]) :is(.service-mark,.step-dot,.service-book,.password-toggle,.chat-suggestion,.calendar-slot){background:var(--theme-accent-surface);color:var(--theme-accent-ink);border-color:var(--card-border)}
html[data-guup-theme]:not([data-guup-theme=original]) .password-toggle:hover{background:color-mix(in srgb,var(--navy) 20%,var(--theme-surface))}
html[data-guup-theme]:not([data-guup-theme=original]) :is(.month-grid,.week-grid,.agenda-pick-grid,.receipt-table table,.receipt-table th,.receipt-table td,.chat-answer,.generated-copy,.link-preview,.plan-option,.standard-plan){background:var(--theme-surface);color:var(--ink);border-color:var(--card-border)}
html[data-guup-theme]:not([data-guup-theme=original]) :is(.calendar-weekday,.calendar-blank,.agenda-pick-day,.week-column){background:var(--neutral-bg);color:var(--neutral-ink);border-color:var(--card-border)}
html[data-guup-theme]:not([data-guup-theme=original]) :is(.calendar-day-cell,.slot-button,.agenda-pick-day){border-color:var(--card-border)!important}
html[data-guup-theme]:not([data-guup-theme=original]) :is(.slot-button,.agenda-pick-day.is-selected,.plan-option:has(input:checked)){background:var(--theme-accent-surface);color:var(--theme-accent-ink)}
html[data-guup-theme]:not([data-guup-theme=original]) :is(.calendar-status-free,.free,.slot-status-available,.booking-state-open,.booking-confirmed,.slot-legend span:nth-child(1)){background:var(--positive-bg);color:var(--positive-ink)}
html[data-guup-theme]:not([data-guup-theme=original]) :is(.calendar-status-partial,.partial,.slot-button[aria-pressed=true],.slot-legend span:nth-child(4)){background:var(--warning-bg);color:var(--warning-ink)}
html[data-guup-theme]:not([data-guup-theme=original]) :is(.calendar-status-full,.full,.slot-status-reserved,.booking-state-cancelled,.booking-state-customer_cancelled,.customer-booking-cancel,.slot-legend span:nth-child(2)){background:var(--negative-bg);color:var(--negative-ink)}
html[data-guup-theme]:not([data-guup-theme=original]) :is(.calendar-status-unavailable,.calendar-blank,.slot-status-unavailable,.slot-legend span:nth-child(3)){background:var(--neutral-bg);color:var(--neutral-ink)}
html[data-guup-theme]:not([data-guup-theme=original]) :is(.calendar-day-cell,.calendar-slot,.slot-button,.booking-state,.booking-confirmed) :is(span,small,strong,p,b){color:inherit}
html[data-guup-theme]:not([data-guup-theme=original]) :is(.chat-customer,.professional-initials,.registration-aside){background:var(--navy);color:var(--primary-ink,#fff)}
html[data-guup-theme]:not([data-guup-theme=original]) .registration-aside :is(h2,p,li,.eyebrow){color:inherit}
html[data-guup-theme]:not([data-guup-theme=original]) :is(.booking-state-completed,.register-link){background:var(--theme-accent-surface);color:var(--theme-accent-ink)}
html[data-guup-theme]:not([data-guup-theme=original]) :is(.service-remaining,.public-services article p,.public-locations p,.client-note,.zone-label,.booking-progress){color:var(--muted)}
@media print{.printing-client,.printing-agenda{--theme-surface:#fff;--ink:#000;--muted:#333;--navy:#000;--primary-ink:#fff}}

html[data-guup-theme]:not([data-guup-theme=original]) .professional-hero p{color:var(--muted)}
html[data-guup-theme]:not([data-guup-theme=original]) .campaign-card b{color:var(--ink)}

html[data-guup-theme]:not([data-guup-theme=original]) :is(.agenda-edit-context,.agenda-view-config,.agenda-view-config input:disabled,.agenda-view-config select:disabled){background:var(--theme-surface);color:var(--ink);border-color:var(--card-border)}
html[data-guup-theme]:not([data-guup-theme=original]) .agenda-pick-day.is-blocked{background:var(--negative-bg);color:var(--negative-ink)}
html[data-guup-theme]:not([data-guup-theme=original]) :is(.booking-progress span.current,.read-presentation summary){color:var(--theme-accent-ink)}

html[data-guup-theme]:not([data-guup-theme=original]) :is(.customer-heading strong,.booking-customer-name){color:var(--ink)}
html[data-guup-theme]:not([data-guup-theme=original]) .eyebrow{color:var(--theme-accent-ink)}

/* Papel branco nos relatórios, independentemente do tema de uso. */
@media print{
 html:has(.printing-client,.printing-agenda),body:has(.printing-client,.printing-agenda){background:#fff!important;color:#000!important;color-scheme:light}
 :is(.printing-client,.printing-agenda){--theme-bg:#fff;--theme-surface:#fff;--ink:#000;--muted:#333;--navy:#000;--primary-ink:#fff}
}

/* Guup icon frames: uu accent on the border, g/p color on the glyph.
   Transparent surface inherits the containing card without adding another tint. */
:root{--icon-frame-border:#009fff;--icon-frame-ink:#181e2d}
html[data-guup-theme=dark]{--icon-frame-border:#ff7b27;--icon-frame-ink:#fff}
html[data-guup-theme] :is(.step-icon,.professional-demo-logo,.section-title-icon,.service-mark,.step-dot)[class]{border:2px solid var(--icon-frame-border);background:transparent;color:var(--icon-frame-ink);box-shadow:none}
html[data-guup-theme] :is(.step-icon,.professional-demo-logo,.section-title-icon,.service-mark,.step-dot)[class] svg{color:inherit}

/* Show only the action that switches away from the current light/dark mode. */
html:not([data-guup-theme="dark"]) :is([data-landing-theme="original"],[data-page-theme="light"],[data-panel-theme="light"]),
html[data-guup-theme="dark"] :is([data-landing-theme="dark"],[data-page-theme="dark"],[data-panel-theme="dark"]){display:none!important}

/* Shared blue and dark palettes on Guup and professional pages. */
:root[data-guup-theme=ocean]{--navy:#091952;--blue:#008acb;--primary-ink:#fff;--ink:#192b4e;--muted:#4c6078;--theme-surface:#f5f9ff;--theme-bg:#eaf2fc;--card-bg:var(--theme-surface);--card-border:#7c8faa;--surface:var(--theme-surface);--line:var(--card-border)}
:root[data-guup-theme=dark]{--navy:#a9c8ff;--primary-ink:#111b2c;--ink:#edf4ff;--muted:#c4d2e5;--theme-surface:#202d42;--theme-bg:#111b2c;--card-bg:var(--theme-surface);--card-border:#7b8fa9;--line:var(--card-border)}
:root[data-guup-theme=dark][data-guup-dark-palette=graphite]{--navy:#9adbd0;--blue:#a7d8ff;--ink:#f1f4f8;--muted:#c3ccd6;--theme-surface:#24282e;--theme-bg:#151719;--card-border:#82909f;--theme-accent-surface:#314340;--theme-accent-ink:#b6eee4;--neutral-bg:#343a42;--neutral-ink:#e0e7ef}
html[data-guup-theme=dark] body,html[data-guup-theme=ocean] body{background:var(--theme-bg);color:var(--ink)}
html:is([data-guup-theme=ocean],[data-guup-theme=dark]) :is(.button,.professional-menu-booking){background:var(--navy);color:var(--primary-ink)}
html:is([data-guup-theme=ocean],[data-guup-theme=dark]) .app :is(.button,.journey-tabs button[aria-current=step],.journey-tabs button[aria-selected=true]){color:var(--primary-ink)}
html:is([data-guup-theme=ocean],[data-guup-theme=dark]) .button:hover{background:var(--navy);color:var(--primary-ink);filter:brightness(.95)}
html:is([data-guup-theme=ocean],[data-guup-theme=dark]) :is(.button.secondary,.plain-button,.text-link){background:var(--theme-surface);color:var(--ink);border-color:var(--card-border)}
html:is([data-guup-theme=ocean],[data-guup-theme=dark]) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:var(--theme-surface);color:var(--ink);border-color:var(--card-border)}
html:is([data-guup-theme=ocean],[data-guup-theme=dark]) :is(input,textarea)::placeholder{color:var(--muted);opacity:1}
html:is([data-guup-theme=ocean],[data-guup-theme=dark]) :is(.button,.plain-button,.text-link,button):disabled{opacity:1;filter:none;background:var(--neutral-bg);color:var(--neutral-ink);border-color:var(--card-border)}
html:is([data-guup-theme=ocean],[data-guup-theme=dark]) :is(button,a,input,select,textarea):focus-visible{outline:3px solid var(--navy);outline-offset:3px}
html[data-guup-theme=dark][data-guup-dark-palette=graphite] :is(.preview,.product,.plans,.closing,.client-notice,.browser-card,.plan,.professional-demo,.account-notice,.register-link,.nav-action,.step,.feature,.side){background:var(--theme-surface);color:var(--ink);border-color:var(--card-border)}
html[data-guup-theme=dark][data-guup-dark-palette=graphite] :is(.address,.address-example,.professional-demo-logo,.professional-demo-badge,.badge){background:var(--neutral-bg);color:var(--neutral-ink)}
.mobile-drawer-main>.mobile-drawer-toggle:focus-visible{outline:3px solid var(--navy);outline-offset:2px}
/* Customer forms also live outside .app; keep their surfaces and labels in the active palette. */
html[data-guup-theme] .customer-exclusive-page form{background:var(--theme-surface,#fff);color:var(--ink,#192b4e);border-color:var(--card-border,#c4cbd8)}
html[data-guup-theme] .customer-exclusive-page :is(label,legend){color:var(--ink,#192b4e)}
html[data-guup-theme] .customer-exclusive-page input:-webkit-autofill{-webkit-text-fill-color:var(--ink,#192b4e);caret-color:var(--ink,#192b4e);box-shadow:0 0 0 1000px var(--theme-surface,#fff) inset}
html[data-guup-theme=dark] .guup-dark-card-border{border-color:#3b4149!important}

/* Mobile dark: nested content cards use the screen as their outer surface. */
@media(max-width:1024px){
 html[data-guup-theme=dark] :is(.app section,.app article,.app details:not(:where(.panel-module-menu details)),.professional-presentation-card,.professional-hero,.customer-section,.identified-customer,.account-summary,.professional-extra-section,.public-locations,.testimonials-section,.professional-procedure-showcase,.booking-step,.booking-route,.customer-login-card):has(:is(.biomedical-portrait,.biomedical-welcome,article,.card,[class$="-card"],.agenda-calendar,details,form)){background:var(--theme-bg)!important;padding-inline:12px!important;box-sizing:border-box;min-width:0}
 html[data-guup-theme=dark] :is(.app section,.app article,.app details:not(:where(.panel-module-menu details)),.professional-presentation-card,.professional-hero,.customer-section,.identified-customer,.account-summary,.professional-extra-section,.public-locations,.testimonials-section,.professional-procedure-showcase,.booking-step,.booking-route,.customer-login-card)>:is(.biomedical-portrait,.biomedical-welcome,article,.card,[class$="-card"],.agenda-calendar,details,form){box-sizing:border-box;min-width:0;max-width:100%;width:100%}
 html[data-guup-theme=dark] .professional-presentation-card :is(.biomedical-portrait,.professional-photo-with-watermark){width:100%;max-width:100%;min-width:0;box-sizing:border-box}
}@media(max-width:1024px){html[data-guup-theme=dark] body.customer-area-open .customer-exclusive-page #voce.customer-login-card{background:var(--theme-bg)!important;padding-inline:12px!important}}

/* Mobile surfaces: square cards and navigation without card outlines. */
@media(max-width:1024px){
 :root{--card-radius:0px}
 html body :is(.professional-hero,.professional-identity,.professional-presentation-card,.professional-procedure-showcase,.professional-extra-section,.public-contact,.professional-social-section,.testimonials-section,.testimonials-page,.testimonial-card,.review-management-card,.biomedical-overview,.booking-intro-card,[data-page-module],.procedure-showcase-card,.public-services article,.public-locations,.public-locations article,#novidades,.campaign-card,.customer-section,.customer-login-card,.identified-customer,.customer-booking-card,.customer-history-card,.customer-packages-panel,.customer-package-panel,.booking-section,.booking-route,.booking-step,.booking-details,.booking-confirmed,.booking-result,.account-summary,.plan-option,.standard-plan,.assistant-widget,.journey-help,.dashboard>section,.panel-workspace>section,.page-content-editor details,.professional-extra-section details,.style-config-section,.agenda-calendar,.agenda-weekly-card,.recurring-weekly-slot,.browser-card,.plan,.launch-routines article,.launch-plan,.product,.plans,.closing,.client-notice,.account-notice){border-radius:0!important}
 html body .biomedical-step-cards>[data-booking-choice]{border-radius:0!important}
 html body :is(.journey-tabs,.style-preview-nav,.customer-mobile-actions,.customer-mobile-tray,.mobile-drawer-tray,.app-mobile-sheet,.professional-public-menu,.booking-custom-navigation,.booking-custom-tray,.panel-menu-dialog,.panel-module-menu,.guup-central-app .header .nav){border:0!important;border-radius:0!important;box-shadow:none!important}
 html body :is(.journey-tabs,.style-preview-nav,.customer-mobile-actions,.customer-mobile-tray,.mobile-drawer-tray,.app-mobile-sheet,.professional-public-menu,.booking-custom-navigation,.booking-custom-tray,.panel-menu-dialog,.panel-module-menu,.guup-central-app .header .nav) :is(button,a):not(:where(.panel-module-menu *)){border:0!important;box-shadow:none!important}
}

/* The panel uses the desktop sidebar from 1000px onward. */
@media(min-width:1000px) and (max-width:1024px){
 html[data-guup-theme=dark] .app .panel-module-menu details:has(:is(.biomedical-portrait,.biomedical-welcome,article,.card,[class$="-card"],.agenda-calendar,details,form)){background:var(--theme-bg)!important;padding-inline:12px!important;box-sizing:border-box;min-width:0}
 html body .panel-module-menu :is(button,a){border:0!important;box-shadow:none!important}
}

/* The only mobile menu rule is the separator between an open upper strip and its main bar. */
@media(max-width:1024px){
 html body :is(.mobile-drawer-open>.mobile-drawer-tray,.customer-mobile-expanded>.customer-mobile-tray,.app-mobile-sheet:not([hidden]),.booking-custom-tray:not([hidden])):not([hidden]){border-bottom:1px solid var(--card-border,#c4ccd4)!important}
}

/* Professional pages: surface contrast defines cards, with rounded corners. */
html body.professional-page{--professional-card-radius:16px;--professional-page-bg:#f8fbfa;--card-radius:var(--professional-card-radius)}
html body.professional-page[data-page-model=health-editorial]{--professional-page-bg:#fcfdfb}
html body.professional-page .biomedical-step-cards>[data-booking-choice]{border-radius:var(--professional-card-radius)!important;border-color:var(--theme-bg,var(--professional-page-bg))!important}
html body.professional-page :is(.customer-configured-button,.customer-exclusive-page .plain-button,.customer-exclusive-page .button,.customer-exclusive-page .professional-back-button,.customer-mobile-actions button){border-radius:12px!important}
html body.professional-page :is(.professional-hero,.professional-identity,.professional-presentation-card,.professional-procedure-showcase,.professional-extra-section,.public-contact,.professional-social-section,.testimonials-section,.testimonials-page,.testimonial-card,.biomedical-overview,.booking-intro-card,[data-page-module],.procedure-showcase-card,.public-services article,.public-locations,.public-locations article,#novidades,.campaign-card,.customer-section,.customer-login-card,.biomedical-welcome,.biomedical-access,.identified-customer,.customer-booking-card,.customer-history-card,.customer-packages-panel,.customer-package-panel,.booking-section,.booking-route,.booking-step,.booking-details,.booking-confirmed,.booking-result,.account-summary,.assistant-widget,.journey-help,.agenda-calendar,.agenda-weekly-card,.recurring-weekly-slot){border-color:var(--theme-bg,var(--professional-page-bg))!important;border-radius:var(--professional-card-radius)!important}

:root[data-guup-theme=lilac] {
  --navy:#69447e;
  --blue:#684488;
  --primary-ink:#fff;
  --ink:#352540;
  --muted:#614d6c;
  --theme-bg:#f2eaf8;
  --theme-surface:#fbf6ff;
  --card-bg:var(--theme-surface);
  --card-border:#af97bf;
}
:root[data-guup-theme=dark][data-guup-dark-palette=coffee] {
  --navy:#dfc5af;
  --blue:#e5bca8;
  --primary-ink:#27201d;
  --ink:#f8ede4;
  --muted:#dbc7b9;
  --theme-bg:#201815;
  --theme-surface:#332722;
  --card-border:#947868;
  --theme-accent-surface:#4c3830;
  --theme-accent-ink:#f4daca;
  --neutral-bg:#41342e;
  --neutral-ink:#ead9ce;
}
:root[data-guup-theme=dark][data-guup-dark-palette=monochrome] {
  --navy:#dedede;
  --blue:#c8c8c8;
  --primary-ink:#272727;
  --ink:#f1f1f1;
  --muted:#cdcdcd;
  --theme-bg:#262626;
  --theme-surface:#343434;
  --card-border:#858585;
  --theme-accent-surface:#494949;
  --theme-accent-ink:#efefef;
  --neutral-bg:#424242;
  --neutral-ink:#e2e2e2;
  --icon-frame-border:#a2a2a2;
  --icon-frame-ink:#f1f1f1;
}
html[data-guup-theme=dark][data-guup-dark-palette=monochrome] body.professional-page[data-page-backdrop] {
  background-blend-mode:luminosity;
}
html[data-guup-theme=dark][data-guup-dark-palette=monochrome] body.professional-page[data-page-backdrop-fixed]::before,
html[data-guup-theme=dark][data-guup-dark-palette=monochrome] body.professional-page #content
:is(img.profile-portrait,.service-cover,.professional-content-photo,.profession-article-image,.content-video-fallback,.page-gallery-grid img,.modern-cover img,.clinic-treatment-band img,.mental-scene img,video) {
  filter:grayscale(1);
}
html[data-guup-theme=lilac] body[data-clinic-version=estetica],
html[data-guup-theme=dark] body[data-clinic-version=estetica] {
  --clinic-paper:var(--theme-bg);
  --clinic-panel:var(--theme-surface);
  --clinic-ink:var(--ink);
  --clinic-accent:var(--navy);
  --clinic-line:var(--card-border);
}

/* Coffee uses the beige accent throughout the clinic app. */
html[data-guup-theme=dark][data-guup-dark-palette=coffee] body.professional-page[data-clinic-version=estetica] {
  --clinic-button-bg:#dfc5af;
  --clinic-button-ink:#27201d;
}
html[data-guup-theme=dark][data-guup-dark-palette=coffee] body.professional-page[data-clinic-version=estetica]
:is(button:not(:disabled):not(:is([aria-label]:has(> svg:only-child),.app-mobile-more,.mobile-drawer-toggle,.mobile-menu-overflow-toggle,.editorial-menu-disclosure)),a:is(.button,.plain-button,.text-link,.account-link,.professional-menu-booking),input[type=submit]:not(:disabled)) {
  background-color:var(--clinic-button-bg)!important;
  color:var(--clinic-button-ink)!important;
  border-color:var(--clinic-button-bg)!important;
}
html[data-guup-theme=dark][data-guup-dark-palette=coffee] body.professional-page[data-clinic-version=estetica]
:is(button,a,input[type=submit]):is([aria-current=step],[aria-selected=true],[aria-pressed=true]) {
  box-shadow:inset 0 0 0 2px #72533f;
}

/* Icon controls take their surface from their surroundings. */
html[data-guup-theme] body :is(
  button[aria-label]:not([data-nav-direction]):has(> svg:only-child),
  button.app-mobile-more,
  button.mobile-drawer-toggle,
  button.mobile-menu-overflow-toggle,
  button.editorial-menu-disclosure
):not(:disabled) {
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
}
@media (max-width:1024px) {
  html[data-guup-theme] body :is(.app-mobile-main,.mobile-drawer-main,.mobile-drawer-rail) {
    background:transparent!important;
  }
  html[data-guup-theme] body :is(#content > .journey-tabs,.style-preview-nav) > :is(.app-mobile-sheet,.mobile-drawer-tray) {
    background-color:inherit!important;
  }
}

/* Theme actions keep visible button boundaries at every menu destination. */
html body.professional-page .professional-header-themes[data-theme-position]>button{border:1px solid var(--card-border,#b8c7d5)!important;border-radius:10px!important;background:var(--theme-surface,#fff);color:var(--ink,#14213a)}

/* Dark clinic navigation uses the selected surface, keeping labels readable. */
html[data-guup-theme=dark] body.professional-page[data-clinic-version=estetica]:not([data-page-backdrop]) #content>.journey-tabs:not(.editorial-menu-collapsed){background:var(--clinic-panel)!important}

/* A selected theme overrides profession palettes while retaining their layouts.
   Inherit the root roles first to avoid cycles with the original model palette. */
html[data-guup-theme]:not([data-guup-theme=original]) body[data-profession-design]{
 --theme-bg:inherit;
 --theme-surface:inherit;
 --ink:inherit;
 --muted:inherit;
 --card-border:inherit;
 --modern-paper:var(--theme-bg);
 --modern-surface:var(--theme-surface);
 --modern-ink:var(--ink);
 --modern-muted:var(--muted);
 --modern-line:var(--card-border,#cbd5e1);
 --modern-accent:var(--navy);
 --modern-bright:var(--navy);
}
