/* Light app shell, scoped to the authenticated Art Corporal app. */
html.clinic-app-layout.clinic-app-layout.clinic-app-layout {
  color-scheme:light; --cam-ink:#17292b; --cam-muted:#727f81; --cam-line:#e5ebec; --cam-green:#147d89;
  --clinicas-bg:#fff; --clinicas-card:#fff; --clinicas-surface:#fff; --clinicas-field:#f5f8f8;
  background:#fff!important; -webkit-tap-highlight-color:transparent;
}
html.clinic-app-layout.clinic-app-layout.clinic-app-layout :is(body,#app-container,#app-main-column,#app-main-scroll,.tab-content){background:#fff!important;color:var(--cam-ink)}
html.clinic-app-layout.clinic-app-layout.clinic-app-layout #app-container{padding:0!important;gap:0!important;height:100dvh!important;overflow:hidden!important}
html.clinic-app-layout.clinic-app-layout.clinic-app-layout #app-main-column{height:100%!important;max-width:none!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;min-width:0!important}
html.clinic-app-layout.clinic-app-layout.clinic-app-layout :is(#app-sidebar,#sidebar-backdrop,#mobile-menu-backdrop,#mobile-bottom-nav){display:none!important}
html.clinic-app-layout.clinic-app-layout.clinic-app-layout :is(#app-main-column>header,#tab-dashboard>header.cam-home-toolbar){position:relative!important;inset:auto!important;flex:0 0 64px!important;height:64px!important;padding:10px 20px!important;background:#ffffffed!important;border:0!important;border-bottom:1px solid #f0f3f3!important;box-shadow:none!important;gap:12px!important}
html.clinic-app-layout.clinic-app-layout.clinic-app-layout #header-title{font-size:20px!important;font-weight:750!important;letter-spacing:-.035em!important;line-height:1.2!important;white-space:normal!important;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
html.clinic-app-layout.clinic-app-layout.clinic-app-layout :is(#app-main-column>header,#tab-dashboard>header.cam-home-toolbar) :is([aria-label="Abrir menu"],#wa-status-badge,#btn-dev-access-badge,[title*="Forçar"],.mobile-hide){display:none!important}
html.clinic-app-layout.clinic-app-layout.clinic-app-layout #header-profile-chip{padding:0!important;width:40px!important;height:40px!important;min-width:40px!important;border:1px solid var(--cam-line)!important;box-shadow:none!important;border-radius:50%!important;background:#f4f8f8!important}
html.clinic-app-layout #header-profile-chip>div{display:none!important}
html.clinic-app-layout #header-profile-avatar{width:38px!important;height:38px!important;object-fit:cover;border-radius:50%!important}
html.clinic-app-layout.clinic-app-layout.clinic-app-layout #app-main-scroll{margin:0!important;min-height:0!important;flex:1 1 0!important}
html.clinic-app-layout.clinic-app-layout.clinic-app-layout .tab-content{padding:20px 20px var(--cam-content-bottom)!important;scroll-padding-block:20px var(--cam-content-bottom);overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
html.clinic-app-layout .tab-content>*{max-width:100%;min-width:0}
html.clinic-app-layout :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px!important;min-height:46px;border-radius:12px!important;box-shadow:none!important}
html.clinic-app-layout :is(button,a,input,select,textarea):focus-visible{outline:3px solid #56b1bd!important;outline-offset:3px}
html.clinic-app-layout .tab-content :is(h2,h3){color:var(--cam-ink);letter-spacing:-.035em}
html.clinic-app-layout .tab-content h2{font-size:24px!important;line-height:1.2!important}
html.clinic-app-layout .tab-content h3{font-size:18px!important;line-height:1.3!important}
html.clinic-app-layout :is(.cp-btn,.clinic-crm__btn,.clinic-msgs__btn,.art-home .ah-button){min-height:44px!important;font-size:13px!important;border-radius:13px!important;box-shadow:none!important}
html.clinic-app-layout .cp :is(.cp-btn.primary,.cp-agenda__primary),html.clinic-app-layout .art-home .ah-button:not(.ah-button--light):not(.ah-button--outline){background:#147d89!important;border-color:#147d89!important;color:#fff!important}
/* Dock appearance and motion are shared in fluxo-glass-dock.css/js. */
html.clinic-app-layout #art-clinic-mobile-nav[hidden]{display:none!important}
/* Home: compact everyday overview rather than a website hero. */
html.clinic-app-layout .art-home{padding:0!important;background:transparent!important}
html.clinic-app-layout .art-home:after,html.clinic-app-layout .ah-hero:before{display:none!important}
html.clinic-app-layout .art-home .ah-intro{padding:0 0 22px!important;align-items:center!important}
html.clinic-app-layout .art-home h2{font-size:29px!important;line-height:1.15!important}
html.clinic-app-layout .art-home .ah-intro .ah-eyebrow{font-size:10px!important;margin-bottom:9px!important;color:#79877f!important}
html.clinic-app-layout .art-home .ah-brand{padding:0!important}
html.clinic-app-layout .art-home :is(.ah-agenda-card,.ah-studio-card){border:1px solid var(--cam-line)!important;border-radius:22px!important;box-shadow:0 4px 16px #17393d05!important;background:#fff!important}
html.clinic-app-layout .art-home .ah-today-count{background:#edf6f7!important;border-radius:18px!important}
html.clinic-app-layout .art-home .ah-today-count>strong{font-size:50px!important}
html.clinic-app-layout .art-home .ah-shortcuts{margin:14px 0 24px!important;padding:0!important;gap:8px!important}
html.clinic-app-layout .art-home .ah-shortcuts button{min-height:44px!important;background:#f5f8f8!important;border:0!important;border-radius:12px!important}
html.clinic-app-layout .art-home .ah-week button{border-radius:14px!important;min-height:68px}
html.clinic-app-layout .art-home .ah-footer{display:none}
/* Clinic pages share the same compact toolbar, neutral cards and typography. */
html.clinic-app-layout .cp.cp-root{padding:0!important;color:var(--cam-ink);--cw-ink:var(--cam-ink);--cw-line:var(--cam-line);--cw-muted:var(--cam-muted)}
html.clinic-app-layout .cp.cp-root .cp-page-heading{padding:0 0 20px!important;gap:10px!important}
html.clinic-app-layout :is(.cp-page-heading,.cp-agenda__header)>div:first-child> :is(.cp-eyebrow,h2),html.clinic-app-layout .cp-agenda__header>div:first-child>.cp-agenda__eyebrow{display:none!important}
html.clinic-app-layout :is(.cp-page-heading,.cp-agenda__header)>div:first-child>p:last-child{font-size:13px!important;line-height:1.6!important;margin:0!important;color:#717e80!important}
html.clinic-app-layout .cp .cp-actions{padding:0!important;width:100%;gap:8px!important}
html.clinic-app-layout .cp .cp-actions>.primary{flex:1}
html.clinic-app-layout .cp.cp-root .cp-card{padding:18px!important;border:1px solid var(--cam-line)!important;border-radius:18px!important;background:#fff!important;box-shadow:none!important}
html.clinic-app-layout .cp .cp-overview{gap:0!important;margin:0 0 22px!important;background:#f6f9f9;border:1px solid #edf1f1;border-radius:16px;overflow:hidden}
html.clinic-app-layout .cp .cp-overview>div{padding:14px 12px!important;border:0!important;border-right:1px solid #e6eced!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
html.clinic-app-layout .cp .cp-overview>div:last-child{border-right:0!important}
html.clinic-app-layout .cp .cp-overview strong{font-size:24px!important;line-height:1.25!important}
html.clinic-app-layout .cp .cp-overview span{font-size:10px!important;line-height:1.5}
html.clinic-app-layout .cp.cp-root .cp-layout{display:block!important}
html.clinic-app-layout .cp.cp-root .cp-directory{position:static!important;padding:0!important;border:0!important}
html.clinic-app-layout .cp-directory>.cp-eyebrow{display:none}
html.clinic-app-layout .cp.cp-root .cp-list{max-height:none!important;overflow:visible!important;margin-top:16px!important;padding:0!important}
html.clinic-app-layout .cp.cp-root .cp-patient{background:#fff!important;border:0!important;border-bottom:1px solid var(--cam-line)!important;border-radius:0!important;padding:16px 4px!important;margin:0!important;min-height:72px;position:relative;padding-right:26px!important;box-shadow:none!important}
html.clinic-app-layout .cp.cp-root .cp-patient:after{content:"›";position:absolute;right:6px;top:20px;color:#96a1a3;font-size:24px}
html.clinic-app-layout .cp.cp-root .cp-patient strong{font-size:14px!important}
html.clinic-app-layout .cp.cp-root .cp-patient small{font-size:12px!important}
html.clinic-app-layout #cp-profile{display:none}
html.clinic-app-layout.clinic-patient-detail #cp-profile:has(.cp-profile-heading){display:block;padding:0!important;border:0!important}
html.clinic-app-layout.clinic-patient-detail .cp-root:has(.cp-profile-heading)>:is(.cp-page-heading,.cp-overview),html.clinic-app-layout.clinic-patient-detail .cp-root:has(.cp-profile-heading) .cp-directory{display:none!important}
html.clinic-app-layout .cam-back{min-height:44px;margin:0 0 12px;color:#147d89;font-size:13px;font-weight:650;display:block}
html.clinic-app-layout .cp.cp-root .cp-profile-heading{background:#f5f9f9!important;border-color:var(--cam-line)!important;padding:18px!important}
html.clinic-app-layout .cp.cp-root .cp-tabs{position:sticky;top:-20px;z-index:5;background:white;padding:12px 0!important;margin:0 0 16px!important;gap:6px!important}
html.clinic-app-layout .cp.cp-root .cp-tabs .cp-btn{min-height:40px!important;font-size:12px!important}
html.clinic-app-layout .cp.cp-root .cp-item{padding:16px 0!important;border-radius:0!important;border:0!important;border-bottom:1px solid var(--cam-line)!important;background:#fff!important}
html.clinic-app-layout .cp.cp-root .cp-facts{gap:14px!important}
html.clinic-app-layout .cp.cp-root .cp-facts>div{padding:10px 0!important}
html.clinic-app-layout .cp.cp-root .cp-empty{background:#f8fafa!important;border:1px dashed #dce4e5!important;border-radius:16px!important;padding:32px 16px!important}
/* Daily agenda. */
html.clinic-app-layout .cp-agenda{padding:0!important;--ca-line:var(--cam-line);--ca-ink:var(--cam-ink)}
html.clinic-app-layout .cp-agenda__header{padding:0 0 18px!important;gap:12px!important}
html.clinic-app-layout .cp-agenda__top-actions{gap:8px!important}
html.clinic-app-layout .cp-agenda__day{padding:18px 16px!important;background:#f6f9f9!important;border-color:#e6edee!important;border-radius:18px!important;gap:16px!important}
html.clinic-app-layout .cp-agenda__day p{display:none}
html.clinic-app-layout .cp-agenda__day h3{font-size:20px!important}
html.clinic-app-layout .cp-agenda__day-controls{display:grid!important;grid-template-columns:40px minmax(0,1fr) auto 40px!important;gap:6px!important;width:100%}
html.clinic-app-layout .cp-agenda__day-controls label{min-width:0!important;grid-column:auto!important;font-size:0!important}
html.clinic-app-layout .cp-agenda__day-controls input{width:100%;margin:0!important;padding:8px!important}
html.clinic-app-layout .cp-agenda__day-controls .cp-btn{min-width:0!important;padding:8px!important;font-size:12px!important}
html.clinic-app-layout .cp-agenda__stats{gap:8px!important;margin:14px 0 24px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
html.clinic-app-layout .cp-agenda__stat{padding:14px!important;min-height:94px!important;background:#fff!important;border-color:var(--cam-line)!important;border-radius:16px!important;box-shadow:none!important}
html.clinic-app-layout .cp-agenda__stat strong{font-size:25px!important;color:#147d89!important}
html.clinic-app-layout .cp-agenda__appointment{padding:16px!important;border-radius:18px!important;border-color:var(--cam-line)!important;box-shadow:none!important}
/* Secondary functions. */
html.clinic-app-layout.clinic-more-open .tab-content{visibility:hidden!important;pointer-events:none!important}
html.clinic-app-layout #clinic-app-more{position:absolute;inset:0;overflow-y:auto;padding:12px 20px var(--cam-content-bottom);background:#fff;overscroll-behavior:contain}
html.clinic-app-layout #clinic-app-more[hidden]{display:none}
html.clinic-app-layout .cam-intro{font-size:14px;color:var(--cam-muted);margin:4px 0 28px}
html.clinic-app-layout #clinic-app-more section{margin-bottom:28px}
html.clinic-app-layout #clinic-app-more h2{font-size:12px;font-weight:650;letter-spacing:.05em;color:#7b8981;text-transform:uppercase;margin:0 0 10px 4px}
html.clinic-app-layout .cam-list{border:1px solid var(--cam-line);border-radius:20px;overflow:hidden}
html.clinic-app-layout .cam-list button{display:flex;align-items:center;gap:14px;width:100%;padding:16px;min-height:62px;text-align:left;background:white;color:var(--cam-ink);font-size:14px;font-weight:600;border-bottom:1px solid #eff3f3}
html.clinic-app-layout .cam-list button:last-child{border-bottom:0}
html.clinic-app-layout .cam-list button:active{background:#f0f6f7}
html.clinic-app-layout .cam-list button>svg:first-child{width:22px;height:22px;color:#147d89;stroke-width:1.6}
html.clinic-app-layout .cam-list button>span{flex:1;min-width:0}
html.clinic-app-layout .cam-list button>svg:last-child{width:16px;height:16px;color:#a1abac}
/* Forms open as sheets with safe scrolling, readable fields and reachable actions. */
html.clinic-app-layout .cp.cp-modal{padding:0!important;align-items:flex-end!important;background:#16313566!important;z-index:120!important}
html.clinic-app-layout .cp.cp-modal .cp-dialog{border-radius:24px 24px 0 0!important;width:100%!important;max-width:640px!important;max-height:calc(100dvh - 24px)!important;overflow-y:auto!important;padding:24px 20px max(24px,env(safe-area-inset-bottom,0px))!important;border:0!important;overscroll-behavior:contain}
html.clinic-app-layout .cp.cp-modal h3{font-size:22px!important;margin-bottom:24px!important}
html.clinic-app-layout .cp.cp-modal .cp-form-grid{grid-template-columns:1fr!important;gap:18px!important}
html.clinic-app-layout .cp.cp-modal footer{bottom:-24px!important;padding:16px 0 max(16px,env(safe-area-inset-bottom,0px))!important;gap:10px!important;z-index:2}
html.clinic-app-layout .cp.cp-modal footer button{flex:1;min-height:48px!important}
html.clinic-app-layout .si-dialog{background:white!important;border:0!important;box-shadow:none!important}
html.clinic-app-layout .si-dialog h2{font-size:22px!important}
html.clinic-app-layout .si-dialog header{position:sticky;top:0;z-index:2;padding:16px 20px!important}
html.clinic-app-layout .si-stats article{background:#f5f9f9!important;border:1px solid var(--cam-line)}
html.clinic-app-layout .si-stats strong{font-size:25px!important}
html.clinic-app-layout .garage-acct{margin:0!important}
html.clinic-app-layout .garage-acct__header{margin-bottom:20px!important}
html.clinic-app-layout #tab-profile :is(.garage-acct__kicker,.garage-acct__title){display:none}
html.clinic-app-layout #tab-profile .bg-white{box-shadow:none!important}
html.clinic-app-layout #tab-chat{padding:0 0 var(--cam-content-bottom)!important}
@media(max-width:600px){
 html.clinic-app-layout .cam-mobile-table{display:block;min-width:0!important;width:100%!important;background:transparent!important}
 html.clinic-app-layout .cam-mobile-table thead{display:none}
 html.clinic-app-layout .cam-mobile-table tbody{display:block;width:100%}
 html.clinic-app-layout .cam-mobile-table tbody tr{display:block;padding:14px 16px;border-bottom:1px solid var(--cam-line)}
 html.clinic-app-layout .cam-mobile-table td{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 0!important;white-space:normal!important;overflow-wrap:anywhere}
 html.clinic-app-layout .cam-mobile-table td[data-label]:before{content:attr(data-label);color:#849088;font-size:11px;flex-shrink:0}
 html.clinic-app-layout .cam-mobile-table td[colspan]{display:block}
 html.clinic-app-layout #tab-pre-atendimento .p-8,html.clinic-app-layout #tab-profile .p-8{padding:20px!important}
}
@media(min-width:700px){
 html.clinic-app-layout.clinic-app-layout.clinic-app-layout .tab-content{padding:24px 32px var(--cam-content-bottom)!important}
 html.clinic-app-layout #clinic-app-more{padding:24px max(32px,calc((100% - 680px)/2)) var(--cam-content-bottom)}
 html.clinic-app-layout .cp-agenda__stats{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 html.clinic-app-layout .cp.cp-root{max-width:960px}
 html.clinic-app-layout .cp.cp-modal .cp-form-grid{grid-template-columns:1fr 1fr!important}
 html.clinic-app-layout .cp.cp-modal{align-items:center!important;padding:24px!important}
 html.clinic-app-layout .cp.cp-modal .cp-dialog{border-radius:24px!important}
 html.clinic-app-layout .cp.cp-root .cp-tabs{top:-24px}
}
@media(prefers-reduced-motion:reduce){html.clinic-app-layout *{scroll-behavior:auto!important}}

html.clinic-app-layout.clinic-app-layout.clinic-app-layout #tab-dashboard{background:#fff!important}
html.clinic-app-layout.clinic-app-layout.clinic-app-layout #app-main-scroll{padding-bottom:0!important}
html.clinic-app-layout.clinic-app-layout.clinic-app-layout #header-profile-avatar{box-shadow:none!important;background:#edf3f4!important}
html.clinic-app-layout .cam-page-title{display:none!important}
html.clinic-app-layout .cp .cp-overview strong{font-size:clamp(18px,5vw,24px)!important;overflow-wrap:normal!important}
html.clinic-app-layout #tab-team button[onclick="abrirModalEquipe()"]{background:#147d89!important}
html.clinic-app-layout .tab-content :is(.shadow-sm,.shadow-md,.shadow-lg){box-shadow:none!important}
html.clinic-app-layout .tab-content :is(.rounded-2xl,.rounded-3xl){border-color:var(--cam-line)!important}
html.clinic-app-layout .tab-content button[class*="bg-[#00B484]"]{background:#147d89!important;border-radius:13px!important;min-height:44px}
html.clinic-app-layout .tab-content button[class*="bg-slate-900"]{background:#147d89!important;min-height:44px}
html.clinic-app-layout .cam-mobile-table td>*{min-width:0;overflow-wrap:anywhere}
/* Remove desktop header reservation and the shadow of the closed lead drawer. */
html.clinic-app-layout.clinic-app-layout.clinic-app-layout #app-main-column{padding:0!important;background:#fff!important}
html.clinic-app-layout #lead-panel.translate-x-full:not(.open){visibility:hidden!important;box-shadow:none!important}
html.clinic-app-layout .garage-acct__hero-head{background:#f7fafa!important}
html.clinic-app-layout #tab-profile .garage-acct__eyebrow{display:none}
html.clinic-app-layout .garage-acct__tabs button{min-height:40px}
@media(max-width:650px){html.clinic-app-layout .si-dialog{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;border-radius:0!important}}

html.clinic-app-layout #tab-reports .grid:has(>div>#report-kpi-novos){grid-template-columns:repeat(2,minmax(0,1fr))!important}
@media(min-width:700px){html.clinic-app-layout #tab-reports .grid:has(>div>#report-kpi-novos){grid-template-columns:repeat(3,minmax(0,1fr))!important}}

/* Continuous white home. The date replaces the toolbar title, above the greeting. */
#cam-home-company,#cam-home-date,.cam-greeting{display:none}
html.clinic-app-layout.clinic-home-open #cam-home-date{display:block;font-size:11px;font-weight:600;letter-spacing:.025em;color:#77867e;text-transform:uppercase;line-height:1.4}
html.clinic-app-layout.clinic-home-open #header-title{display:none!important}
html.clinic-app-layout.clinic-app-layout.clinic-app-layout :is(#app-main-column>header,#tab-dashboard>header.cam-home-toolbar){background:#fff!important;border-bottom:0!important}
html.clinic-app-layout.clinic-home-open .ah-intro>:not(.cam-greeting){display:none!important}
html.clinic-app-layout .cam-greeting{display:none}
html.clinic-app-layout.clinic-home-open .cam-greeting{display:block;width:100%}
html.clinic-app-layout.clinic-app-layout .art-home .cam-greeting h2{font-size:32px!important;line-height:1.2!important;letter-spacing:-.045em!important;font-weight:750;color:#192b2d!important;margin:0 0 8px!important}
html.clinic-app-layout .art-home .cam-greeting p{font-size:15px;line-height:1.5;color:#7b8982;margin:0}
html.clinic-app-layout.clinic-app-layout .art-home .ah-intro{padding:0 0 26px!important}
html.clinic-app-layout.clinic-home-open #tab-dashboard{padding-top:8px!important}
/* Barber Premium's bubble layers, light palette: diagonal reflection and inner rim. */

/* Home toolbar belongs to the page, so the date and profile photo scroll with it. */
html.clinic-app-layout.clinic-app-layout.clinic-app-layout #tab-dashboard>header.cam-home-toolbar{position:static!important;flex:none!important;height:56px!important;padding:0!important;margin:0 0 16px!important;width:100%!important;background:#fff!important;border:0!important;box-shadow:none!important}
html.clinic-home-open #tab-dashboard>.h-full{height:auto!important}
html.clinic-app-layout .art-home .cam-greeting p{font-size:15px;font-weight:550;color:#647779;margin:0 0 10px}
html.clinic-app-layout.clinic-app-layout .art-home .cam-greeting h2{margin:0!important;line-height:1.12!important}
html.clinic-app-layout .art-home .cam-greeting .cam-greeting-brand{color:#147d89!important}

/* Content extends to the screen edge; the Studio shell passes its native safe area. */
html.clinic-app-layout.clinic-embedded{--clinic-dock-safe-bottom:var(--clinic-shell-safe-bottom,env(safe-area-inset-bottom,0px))}

/* Home overview: balanced cards, reachable shortcuts and roomy day counts. */
html.clinic-app-layout .art-home .ah-hero{gap:16px;grid-template-columns:minmax(0,1fr)}
html.clinic-app-layout .art-home :is(.ah-agenda-card,.ah-studio-card){min-width:0;min-height:0!important;border-radius:22px!important}
html.clinic-app-layout .art-home .ah-agenda-card{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:12px!important}
html.clinic-app-layout .art-home .ah-agenda-card .ah-card-copy{padding:8px 4px!important;gap:12px}
html.clinic-app-layout .art-home .ah-card-copy .ah-eyebrow{margin:0!important;font-size:10px!important;letter-spacing:.07em}
html.clinic-app-layout .art-home .ah-agenda-card h3{font-size:20px!important;margin:0!important;line-height:1.2!important}
html.clinic-app-layout .art-home .ah-agenda-card .ah-button{width:100%;padding:10px!important;gap:8px;white-space:normal}
html.clinic-app-layout .art-home .ah-today-count{padding:18px 12px!important;min-width:0;gap:6px}
html.clinic-app-layout .art-home .ah-today-count>strong{font-size:44px!important;line-height:1;letter-spacing:-.05em}
html.clinic-app-layout .art-home .ah-today-count>span{font-size:11px!important;line-height:1.4;max-width:100px}
html.clinic-app-layout .art-home .ah-today-count p{margin:8px 0 0!important;font-size:11px!important;line-height:1.4}
html.clinic-app-layout .art-home .ah-today-count small{font-size:10px!important;line-height:1.45;max-width:110px}
html.clinic-app-layout .art-home .ah-studio-card{grid-template-columns:1fr;padding:0!important}
html.clinic-app-layout .art-home .ah-studio-card .ah-card-copy{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:18px!important;gap:12px}
html.clinic-app-layout .art-home .ah-studio-card h3{margin:0!important;font-size:18px!important;line-height:1.25!important}
html.clinic-app-layout .art-home .ah-studio-card .ah-button{margin:0!important;padding:10px 12px!important;gap:8px;flex-shrink:0}
html.clinic-app-layout .art-home .ah-stat-stack{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto;gap:0;border-top:1px solid var(--cam-line);padding:16px 0}
html.clinic-app-layout .art-home .ah-stat-stack>div{display:flex;flex-direction:column-reverse;justify-content:flex-end;gap:8px;padding:0 10px!important;border:0;border-right:1px solid var(--cam-line);text-align:center}
html.clinic-app-layout .art-home .ah-stat-stack>div:last-child{border-right:0}
html.clinic-app-layout .art-home .ah-stat-stack strong{font-size:25px;line-height:1.15;color:var(--cam-green)}
html.clinic-app-layout .art-home .ah-stat-stack span{font-size:10px!important;line-height:1.5;color:#647779}
html.clinic-app-layout .art-home .ah-next{justify-content:space-between;align-items:center;gap:12px;margin:14px 4px 22px!important;font-size:11px!important}
html.clinic-app-layout .art-home .ah-shortcuts{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px!important;overflow:visible;margin:0 0 32px!important}
html.clinic-app-layout .art-home .ah-shortcuts button{display:flex;justify-content:flex-start;min-width:0;min-height:52px!important;padding:12px 16px!important;gap:10px;font-size:12px!important;color:#35585d;transition:background .18s,transform .18s}
html.clinic-app-layout .art-home .ah-shortcuts button:active{transform:scale(.97);background:#e9f3f4!important}
html.clinic-app-layout .art-home .ah-shortcuts svg{width:20px;height:20px;color:#147d89;stroke-width:1.6}
html.clinic-app-layout .art-home .ah-shortcuts :is(.ah-refresh,[data-ah-tab="clinic-schedule"],[data-ah-tab="clinic-anamnesis"],[data-ah-tab="clinic-intake"],[hidden]){display:none!important}
html:not(.clinic-app-layout) .ah-shortcuts [data-cam-stock]{display:none}
html.clinic-app-layout .art-home .ah-section-heading{align-items:center;gap:12px;margin-bottom:18px}
html.clinic-app-layout .art-home .ah-section-heading h3{font-size:21px!important;line-height:1.25!important}
html.clinic-app-layout .art-home .ah-section-heading .ah-eyebrow{margin-bottom:6px;letter-spacing:.08em;font-size:10px}
html.clinic-app-layout .art-home .ah-agenda>.ah-section-heading>.ah-pill{display:none}
html.clinic-app-layout .art-home .ah-week{grid-template-columns:repeat(7,minmax(100px,1fr));gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;padding:3px 2px 10px;margin:0 -2px 18px;scroll-padding-inline:2px}
html.clinic-app-layout .art-home .ah-week::-webkit-scrollbar{display:none}
html.clinic-app-layout .art-home .ah-week button{min-height:118px;padding:12px 10px!important;border-radius:18px!important;gap:4px;border-color:#e8eeef;transition:background .2s,color .2s,border-color .2s,transform .2s;box-shadow:none!important}
html.clinic-app-layout .art-home .ah-week button:active{transform:scale(.95)}
html.clinic-app-layout .art-home .ah-week button.is-selected{background:#147d89!important;border-color:#147d89!important}
html.clinic-app-layout .art-home .ah-week button>span{font-size:10px;line-height:1.4;letter-spacing:.04em}
html.clinic-app-layout .art-home .ah-week button>strong{font-size:25px;line-height:1.35}
html.clinic-app-layout .art-home .ah-week small{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;margin-top:3px;font-size:10px!important;line-height:1.3;opacity:1;white-space:nowrap}
html.clinic-app-layout .art-home .ah-week small b{font-size:11px;font-weight:650}
html.clinic-app-layout .art-home #ah-agenda-detail{min-height:236px;overflow-anchor:none}
html.clinic-app-layout .art-home .ah-day-heading{display:flex;align-items:flex-start;flex-wrap:wrap;gap:8px 12px;padding:0 0 16px}
html.clinic-app-layout .art-home .ah-day-heading h4{font-size:15px;line-height:1.5;margin-bottom:4px}
html.clinic-app-layout .art-home .ah-day-heading p{font-size:11px!important;line-height:1.6;max-width:none}
html.clinic-app-layout .art-home .ah-day-heading .ah-text-button{min-height:44px;font-size:12px!important;padding:10px 0}
html.clinic-app-layout .art-home .ah-empty{padding:28px 20px;border-radius:20px;border-color:#dae7e9;background:#f8fbfb}
html.clinic-app-layout .art-home .ah-empty p{font-size:12px;line-height:1.6;margin:8px 0}
html.clinic-app-layout .art-home .ah-appointment{padding:18px 14px;gap:10px}
html.clinic-app-layout .art-home .ah-person small{line-height:1.5}
html.clinic-app-layout .art-home .ah-bottom{margin-top:28px;padding:0;border-top:0;gap:16px}
html.clinic-app-layout .art-home .ah-finance{padding:22px!important;border-radius:22px;background:#f1f6f7}
html.clinic-app-layout .art-home .ah-value{font-size:34px;margin:18px 0 10px;color:#17393e}
html.clinic-app-layout .art-home .ah-messages{padding:22px 18px;border-radius:22px}
html.clinic-app-layout .art-home .ah-rules>div{gap:12px;padding:12px 0;line-height:1.5}
html.clinic-app-layout .art-home .ah-rules strong{text-align:right}
@media(min-width:760px){
 html.clinic-app-layout .art-home .ah-hero{grid-template-columns:repeat(2,minmax(0,1fr))}
 html.clinic-app-layout .art-home .ah-shortcuts{grid-template-columns:repeat(4,minmax(0,1fr))}
 html.clinic-app-layout .art-home .ah-week{grid-template-columns:repeat(7,minmax(100px,1fr))}
}
@media(prefers-reduced-motion:reduce){html.clinic-app-layout .art-home *{animation:none!important;transition:none!important}}

html.clinic-app-layout .art-home .ah-week small span{text-transform:none;letter-spacing:0;font-weight:450;font-size:10px;line-height:1.3;opacity:.85}
@keyframes cam-home-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:no-preference){html.clinic-app-layout:not(.clinic-embedded) .art-home :is(.ah-hero,.ah-shortcuts,.ah-agenda){animation:cam-home-enter .32s cubic-bezier(.2,.7,.2,1) both}}
@media(max-width:380px){html.clinic-app-layout .art-home .ah-hero .ah-button{font-size:12px!important;gap:0}html.clinic-app-layout .art-home .ah-hero .ah-button svg{display:none}}

/* Same title metrics and divider as Barber team-refine + subscriptions + layout. */
.cam-tab-heading{display:none}
html.clinic-app-layout:not(.clinic-home-open) #app-main-column>header{display:none!important}
html.clinic-app-layout .cam-tab-heading{display:flex!important;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:0 0 16px;margin:0 0 20px;border-bottom:1px solid var(--cam-line);position:static;min-height:61px}
html.clinic-app-layout.clinic-app-layout .cam-tab-heading h2{display:block!important;font-size:30px!important;line-height:1.15!important;letter-spacing:-.04em!important;font-weight:700!important;margin:0!important;flex:1;min-width:0;color:var(--cam-ink)!important}
html.clinic-app-layout .cam-tab-heading button{min-height:44px;padding:10px 16px;border-radius:12px;background:#147d89;color:white;font-size:14px;font-weight:650;line-height:1.4;flex:none;transition:transform .16s,background .16s}
html.clinic-app-layout .cam-tab-heading button:active{transform:scale(.97);background:#00616e}
html.clinic-app-layout .cam-heading-source{display:none!important}
html.clinic-app-layout .cp-page-heading>div:first-child,html.clinic-app-layout .cp-agenda__header>div:first-child{display:none!important}
html.clinic-app-layout .cp.cp-root .cp-page-heading{padding:0!important;margin:0 0 16px!important;gap:0!important}
html.clinic-app-layout .cp-page-heading .cp-actions{justify-content:flex-end}
html.clinic-app-layout .cp-page-heading .cp-actions>.primary{flex:none}
html.clinic-app-layout .cp-agenda__header{margin:0 0 18px!important;padding:0!important;display:block!important}
html.clinic-app-layout .cp-agenda__top-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px!important;width:100%}
html.clinic-app-layout .cp-agenda__top-actions .cp-btn{font-size:12px!important;padding:10px 12px!important;border-color:#e3eaeb!important;background:#f5f8f8!important;color:#3c5d61!important}
html.clinic-app-layout .cp-agenda__day{padding:18px!important;gap:18px!important;display:flex;flex-direction:column;align-items:stretch;background:#f6f9f9!important}
html.clinic-app-layout .cp-agenda__day h3{font-size:22px!important;line-height:1.25!important;margin:6px 0 0!important;letter-spacing:-.035em}
html.clinic-app-layout .cp-agenda__eyebrow{font-size:10px!important;letter-spacing:.07em!important;color:#718284!important}
html.clinic-app-layout .cp-agenda__day-controls{grid-template-columns:40px minmax(0,1fr) auto 40px!important;gap:6px!important;align-items:center}
html.clinic-app-layout .cp-agenda__day-controls input{min-width:0!important;min-height:44px!important;height:44px!important;padding:8px!important;font-size:14px!important;background:#fff!important;border:1px solid #dce6e7!important;border-radius:12px!important}
html.clinic-app-layout .cp-agenda__day-controls button{height:44px!important;background:white!important;border-color:#dce6e7!important}
html.clinic-app-layout .cp-agenda__stats{margin:16px 0 26px!important;gap:10px!important}
html.clinic-app-layout .cp-agenda__stat{padding:16px!important;min-height:120px!important;display:flex;flex-direction:column;gap:8px;background:#f7f9f9!important}
html.clinic-app-layout .cp-agenda__stat>span{font-size:11px!important;line-height:1.4!important;color:#637678!important}
html.clinic-app-layout .cp-agenda__stat strong{font-size:28px!important;line-height:1.15!important;margin:0!important;letter-spacing:-.04em;overflow-wrap:anywhere}
html.clinic-app-layout .cp-agenda__stat small{font-size:11px!important;line-height:1.5!important;color:#738385!important}
html.clinic-app-layout .cp-agenda__stat--total strong{font-size:clamp(20px,5.2vw,28px)!important}
html.clinic-app-layout .cp-agenda__section-head{align-items:center!important;gap:14px!important;margin-bottom:16px!important}
html.clinic-app-layout .cp-agenda__section-head h3{font-size:21px!important;margin:0!important}
html.clinic-app-layout .cp-agenda__section-head p{font-size:12px!important;line-height:1.6!important;margin:6px 0 0!important;color:#717e80!important}
html.clinic-app-layout .cp-agenda__list>.cp-agenda__section-head :is(.cp-agenda__eyebrow,p){display:none!important}
html.clinic-app-layout .cp-agenda__count{flex:none;padding:6px 10px!important;background:#eef5f6!important;color:#386c73!important;border-radius:20px;font-size:11px!important}
html.clinic-app-layout .cp-agenda__appointment{padding:18px!important;margin-bottom:14px!important;border-radius:20px!important}
html.clinic-app-layout .cp-agenda__patient{gap:12px!important;align-items:center!important}
html.clinic-app-layout .cp-agenda__avatar{width:44px!important;height:44px!important;flex:none;background:#e8f3f5!important;color:#147d89!important}
html.clinic-app-layout .cp-agenda__name{font-size:16px!important;line-height:1.4!important;font-weight:650!important;text-align:left;overflow-wrap:anywhere}
html.clinic-app-layout .cp-agenda__patient>div>span{font-size:12px!important;line-height:1.6!important;color:#748385!important}
html.clinic-app-layout :is(.cp-agenda__service,.cp-agenda__payment){padding:12px!important;background:#f7fafa!important;border-radius:12px;min-width:0}
html.clinic-app-layout :is(.cp-agenda__service,.cp-agenda__payment)>strong{font-size:14px!important;line-height:1.5!important;overflow-wrap:anywhere}
html.clinic-app-layout .cp-agenda__appointment-main{gap:12px!important}
html.clinic-app-layout .cp-agenda__appointment-foot{margin-top:16px!important;padding-top:14px!important;border-color:#e5ebec!important}
html.clinic-app-layout .cp-agenda__state{gap:8px!important;font-size:12px!important;line-height:1.6!important}
html.clinic-app-layout .cp-agenda__appointment-actions{gap:10px!important;padding-top:16px!important}
html.clinic-app-layout .cp-agenda__secondary-actions{gap:8px!important;display:flex!important;flex-wrap:wrap!important}
html.clinic-app-layout .cp-agenda__secondary-actions .cp-btn{font-size:12px!important;min-height:40px!important;padding:8px 12px!important}
html.clinic-app-layout .cp-agenda__empty{padding:32px 20px!important;border-radius:20px!important;background:#f8fbfb!important;border:1px dashed #d7e6e8!important}
html.clinic-app-layout .cp-agenda__empty p{font-size:13px;line-height:1.6}
html.clinic-app-layout .cp-agenda__cash{padding:20px!important;margin-top:24px!important;border-radius:20px!important;background:#f5f9f9!important;border:1px solid #e1e9ea!important}
html.clinic-app-layout .cp-agenda__cash .cp-agenda__section-head{flex-wrap:wrap!important}
html.clinic-app-layout .cp-agenda__cash-empty{font-size:13px!important;padding:16px 0 0!important;color:#758385!important}
html.clinic-app-layout #clinic-app-more{padding-top:20px}
html.clinic-app-layout .si-dialog header{border-bottom:1px solid var(--cam-line)}
html.clinic-app-layout .si-dialog header h2{font-size:30px!important;line-height:1.15!important;letter-spacing:-.04em;font-weight:700}
html.clinic-app-layout .si-dialog header :is(small,p){display:none}
html.clinic-app-layout #tab-chat>.cam-tab-heading{margin:20px 20px 0}
@media(max-width:360px){html.clinic-app-layout .cp-agenda__day{padding:14px!important}html.clinic-app-layout .cp-agenda__day-controls{grid-template-columns:36px minmax(0,1fr) 36px!important}html.clinic-app-layout .cp-agenda__day-controls [data-action=today]{grid-row:2;grid-column:1/-1}html.clinic-app-layout .cp-agenda__day-controls [data-action=day-next]{grid-column:3;grid-row:1}}
/* Barber's page gutters: 18 px horizontally, 20 px above the title. */
html.clinic-app-layout.clinic-app-layout.clinic-app-layout .tab-content:not(#tab-dashboard){padding-top:20px!important;padding-left:18px!important;padding-right:18px!important}
html.clinic-app-layout #clinic-app-more{padding-left:18px;padding-right:18px}
html.clinic-app-layout #tab-chat>.cam-tab-heading{margin:0 0 20px}
html.clinic-app-layout .cam-tab-heading h2{text-transform:none!important}
/* Schedule settings live in More; everyday tabs do not need manual refresh controls. */
html.clinic-app-layout #tab-clinic-schedule .cp-agenda__header,
html.clinic-app-layout :is(#tab-clinic-anamnesis,#tab-clinic-intake) .cp-page-heading,
html.clinic-app-layout .cp-page-heading [data-action="public-settings"]{display:none!important}
html.clinic-app-layout :is(#tab-clinic-schedule,#tab-clinic-anamnesis,#tab-clinic-intake) [data-action="refresh"]{display:none!important}
html.clinic-app-layout .cp-form-grid>input[type="hidden"]{display:none!important}
html.clinic-app-layout #clinic-app-more button[aria-busy=true]{opacity:.6;cursor:wait}

/* Patient directory: compact overview, clear search and comfortable identity rows. */
.cp-patient-avatar{display:none}
.cp-patient-birth{display:block;font-size:11px;color:#718284;margin-top:4px}
.cp-search-field{position:relative;display:block;margin-top:9px}
.cp-search-field svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:20px;height:20px;color:#738486;pointer-events:none}
.cp .cp-search-field input{padding-left:42px}
.cp-directory-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:22px}
.cp-directory-heading h3{margin:0}
.cp-directory-heading>span{font-size:11px;color:#718284;flex:none}
html.clinic-app-layout :is(#tab-clinic-anamnesis,#tab-clinic-intake) .cp-overview{padding:0!important;background:transparent!important;border:0!important;gap:8px!important;margin:0 0 24px!important}
html.clinic-app-layout :is(#tab-clinic-anamnesis,#tab-clinic-intake) .cp-overview>div{display:flex;flex-direction:column-reverse;justify-content:flex-end;gap:10px!important;padding:16px 12px!important;border:1px solid #e7edee!important;border-radius:18px!important;background:#f7f9f9!important;text-align:left;min-width:0}
html.clinic-app-layout :is(#tab-clinic-anamnesis,#tab-clinic-intake) .cp-overview>div:first-child{background:#edf6f7!important;border-color:#deecee!important}
html.clinic-app-layout :is(#tab-clinic-anamnesis,#tab-clinic-intake) .cp-overview strong{font-size:28px!important;line-height:1.1!important;font-weight:700!important;letter-spacing:-.04em;color:#29474b!important}
html.clinic-app-layout :is(#tab-clinic-anamnesis,#tab-clinic-intake) .cp-overview>div:first-child strong{color:#147d89!important}
html.clinic-app-layout :is(#tab-clinic-anamnesis,#tab-clinic-intake) .cp-overview span{min-height:32px;font-size:11px!important;line-height:1.45!important;font-weight:500;letter-spacing:0!important;text-transform:none!important;color:#6c7c7e!important}
html.clinic-app-layout :is(#tab-clinic-anamnesis,#tab-clinic-intake) .cp-directory-search>label{font-size:12px;font-weight:600;color:#52686b;margin-bottom:9px}
html.clinic-app-layout :is(#tab-clinic-anamnesis,#tab-clinic-intake) .cp-search-field input{height:52px!important;margin:0!important;padding:12px 16px 12px 44px!important;border-radius:16px!important;border:1px solid #e2e9ea!important;background:#f7f9f9!important;color:#24383b!important}
html.clinic-app-layout :is(#tab-clinic-anamnesis,#tab-clinic-intake) .cp-search-field input::placeholder{color:#8a968f;font-size:14px}
html.clinic-app-layout :is(#tab-clinic-anamnesis,#tab-clinic-intake) .cp-directory-heading{margin:26px 0 16px}
html.clinic-app-layout :is(#tab-clinic-anamnesis,#tab-clinic-intake) .cp-directory-heading h3{font-size:19px!important;font-weight:650!important;letter-spacing:-.025em}
html.clinic-app-layout :is(#tab-clinic-anamnesis,#tab-clinic-intake) .cp-directory-heading>span{padding:6px 10px;border-radius:20px;background:#f0f5f6;color:#5b7579;font-size:11px;line-height:1.4}
html.clinic-app-layout :is(#tab-clinic-anamnesis,#tab-clinic-intake) .cp-list{margin:0!important;padding:0!important;display:grid;gap:10px}
html.clinic-app-layout :is(#tab-clinic-anamnesis,#tab-clinic-intake) .cp-patient{display:flex;align-items:center;gap:12px;min-height:100px;padding:16px 30px 16px 14px!important;border:1px solid #e4ebec!important;border-radius:20px!important;background:#fff!important;transition:background .16s,border-color .16s,transform .16s}
html.clinic-app-layout :is(#tab-clinic-anamnesis,#tab-clinic-intake) .cp-patient::after{top:50%;right:14px;transform:translateY(-50%);color:#93a3a5;font-size:23px;font-weight:400}
html.clinic-app-layout :is(#tab-clinic-anamnesis,#tab-clinic-intake) .cp-patient-avatar{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;border-radius:50%;background:#edf5f6;color:#3d7981;font-size:14px;font-weight:650;letter-spacing:.02em}
html.clinic-app-layout :is(#tab-clinic-anamnesis,#tab-clinic-intake) .cp-patient-identity{display:block;min-width:0;flex:1}
html.clinic-app-layout :is(#tab-clinic-anamnesis,#tab-clinic-intake) .cp-patient strong{font-size:14px!important;line-height:1.45!important;font-weight:650!important;color:#253b3e!important}
html.clinic-app-layout :is(#tab-clinic-anamnesis,#tab-clinic-intake) .cp-patient small{font-size:12px!important;line-height:1.4!important;color:#65797c!important;margin-top:5px!important;font-variant-numeric:tabular-nums}
html.clinic-app-layout :is(#tab-clinic-anamnesis,#tab-clinic-intake) .cp-patient-birth{font-size:11px;line-height:1.4;color:#89968d;margin-top:3px}
html.clinic-app-layout :is(#tab-clinic-anamnesis,#tab-clinic-intake) .cp-patient:active{transform:scale(.985);background:#f0f6f7!important}
html.clinic-app-layout :is(#tab-clinic-anamnesis,#tab-clinic-intake) .cp-patient.selected{border-color:#a7c9cd!important;background:#f1f7f8!important}
@media(hover:hover){html.clinic-app-layout :is(#tab-clinic-anamnesis,#tab-clinic-intake) .cp-patient:hover{background:#f7fafa!important;border-color:#c6d9db!important}}
@media(max-width:360px){html.clinic-app-layout :is(#tab-clinic-anamnesis,#tab-clinic-intake) .cp-overview>div{padding:14px 9px!important}html.clinic-app-layout :is(#tab-clinic-anamnesis,#tab-clinic-intake) .cp-patient{gap:10px;padding-left:12px!important}html.clinic-app-layout :is(#tab-clinic-anamnesis,#tab-clinic-intake) .cp-patient-avatar{flex-basis:38px;width:38px;height:38px;font-size:12px}}
@media(prefers-reduced-motion:reduce){html.clinic-app-layout :is(#tab-clinic-anamnesis,#tab-clinic-intake) .cp-patient{transition:none}}

/* Forms keep the patient-first flow, with document status visible before opening. */
.cp-patient-forms{display:flex;flex-wrap:wrap;align-items:center;gap:5px 8px;margin-top:10px;font-size:10px;line-height:1.5;color:#738486}
.cp-patient-form-total{flex-basis:100%;font-size:11px;color:#718284}
.cp-form-status{display:inline-flex;align-items:center;gap:4px}
.cp-form-status::before{content:"";width:4px;height:4px;border-radius:50%;background:currentColor;flex:none}
.cp-form-status.signed{color:#278360}.cp-form-status.pending{color:#9a6c2f}.cp-form-status.expired{color:#87918b}
html.clinic-app-layout #tab-clinic-intake .cp-directory-heading{align-items:center;gap:8px}
html.clinic-app-layout #tab-clinic-intake .cp-directory-heading h3{font-size:18px!important}
html.clinic-app-layout #tab-clinic-intake .cp-directory-heading>span{padding:6px 8px}
html.clinic-app-layout #tab-clinic-intake .cp-patient{align-items:flex-start;min-height:118px}
html.clinic-app-layout #tab-clinic-intake .cp-patient-avatar{margin-top:2px}
html.clinic-app-layout #tab-clinic-intake .cp-patient-forms{border-top:1px solid #edf1f2;padding-top:9px;margin-top:10px;gap:5px 10px;font-size:11px}
html.clinic-app-layout #tab-clinic-intake .cp-patient-form-total{font-size:11px;line-height:1.5}
html.clinic-app-layout #tab-clinic-intake .cp-profile-heading{margin:0!important;padding:20px!important;border:1px solid #e1ebec!important;border-radius:20px!important;gap:14px!important}
html.clinic-app-layout #tab-clinic-intake .cp-profile-heading h3{font-size:21px!important;line-height:1.35!important}
html.clinic-app-layout #tab-clinic-intake .cp-profile-heading .cp-eyebrow{font-size:10px!important;letter-spacing:.07em!important;margin:0 0 8px!important;color:#5b787c!important}
html.clinic-app-layout #tab-clinic-intake .cp-profile-heading .cp-badge{font-weight:500;background:#e5f0f1;color:#537276}
html.clinic-app-layout #tab-clinic-intake .cp-tabs{margin:4px 0 20px!important;gap:8px!important;border-bottom:1px solid #e5ebec!important}
html.clinic-app-layout #tab-clinic-intake .cp-tabs .cp-btn{background:#f7f9f9;color:#717f81;border:1px solid #e4eaeb}
html.clinic-app-layout #tab-clinic-intake .cp-tabs .cp-btn.selected{background:#e7f2f4;color:#006674;border-color:#b9d7db}
html.clinic-app-layout #tab-clinic-intake .cp-profile-body>.cp-row{margin-bottom:20px;gap:10px}
html.clinic-app-layout #tab-clinic-intake .cp-profile-body>.cp-row>.primary{width:100%;min-height:48px!important}
html.clinic-app-layout #tab-clinic-intake .cp.cp-root .cp-form-card{padding:18px!important;border:1px solid #e1e9ea!important;border-radius:20px!important;background:#fff!important;margin:0 0 16px!important}
html.clinic-app-layout #tab-clinic-intake .cp-form-heading{display:flex;flex-direction:column;align-items:flex-start;gap:12px!important;margin:0 0 18px!important}
html.clinic-app-layout #tab-clinic-intake .cp-form-title{min-width:0;width:100%}
html.clinic-app-layout #tab-clinic-intake .cp-form-title>strong{display:block;font-size:16px!important;line-height:1.45!important;font-weight:650;color:#263c3f;overflow-wrap:anywhere}
html.clinic-app-layout #tab-clinic-intake .cp-form-title>p{font-size:12px!important;color:#7a898b;margin:7px 0 0;line-height:1.6!important}
html.clinic-app-layout #tab-clinic-intake .cp-form-heading .cp-badge{font-size:11px;padding:6px 10px;font-weight:600}
html.clinic-app-layout #tab-clinic-intake .cp-form-heading .cp-badge.pending{background:#fbf3e6;color:#926824}
html.clinic-app-layout #tab-clinic-intake .cp-form-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:10px!important;padding-top:16px;border-top:1px solid #eaeff0}
html.clinic-app-layout #tab-clinic-intake .cp-form-actions :is(.cp-btn,.cp-link){display:flex;align-items:center;justify-content:center;text-align:center;white-space:normal;min-height:44px!important;font-size:12px!important;border-radius:12px!important;padding:10px 12px!important;text-decoration:none;line-height:1.5}
html.clinic-app-layout #tab-clinic-intake .cp-form-actions [data-action=view-form]{background:#edf5f6;color:#006674;border-color:#d7e7e9}
html.clinic-app-layout #tab-clinic-intake .cp-form-actions [data-action=delete-item]{justify-self:start;background:transparent;border-color:transparent;color:#9b6868;padding-left:0!important;min-height:44px!important}
html.clinic-app-layout #tab-clinic-intake .cp-form-card>div:last-child:not(.cp-form-actions){margin-top:8px!important;padding-top:12px;border-top:1px solid #edf1f1}
html.clinic-app-layout #tab-clinic-intake .cp-form-card [data-action=form-notes]{width:100%;background:#f7f9f9;color:#687b7d;border-color:#e6ebec;font-size:12px!important}
html.clinic-app-layout #tab-clinic-intake .cp-profile-body>.cp-empty{margin-top:16px}
@media(min-width:600px){html.clinic-app-layout #tab-clinic-intake .cp-form-actions{grid-template-columns:repeat(2,minmax(0,1fr))}html.clinic-app-layout #tab-clinic-intake .cp-profile-body>.cp-row>.primary{width:auto}}
@media(prefers-reduced-motion:no-preference){html.clinic-app-layout #tab-clinic-intake .cp-profile-body{animation:cam-home-enter .22s ease-out both}}

/* White page canvas continues behind the floating navigation. */
html.clinic-app-layout{--flux-bg-app:#fff}
html.clinic-app-layout #app-container #app-main-column{background:#fff!important}
html.clinic-app-layout.clinic-app-layout.clinic-app-layout #tab-dashboard{padding-bottom:var(--cam-content-bottom)!important;scroll-padding-bottom:var(--cam-content-bottom)}

/* Keep Safari's native date control inside its grid cell, matching the day buttons. */
html.clinic-app-layout #tab-clinic-schedule .cp-agenda__day-controls{align-items:center!important}
html.clinic-app-layout #tab-clinic-schedule .cp-agenda__day-controls>label{display:flex!important;align-items:center;min-width:0!important;max-width:100%;height:44px;margin:0;line-height:0;overflow:hidden;border-radius:12px}
html.clinic-app-layout #tab-clinic-schedule #cp-day{display:block;appearance:none!important;-webkit-appearance:none!important;box-sizing:border-box;width:100%!important;min-width:0!important;max-width:100%!important;height:44px!important;min-height:44px!important;max-height:44px!important;margin:0!important;padding:9px 10px!important;font-family:inherit;font-size:16px!important;line-height:24px!important;letter-spacing:0;text-align:left;color-scheme:light;overflow:hidden}
html.clinic-app-layout #tab-clinic-schedule #cp-day::-webkit-date-and-time-value{min-width:0;height:24px;line-height:24px;text-align:left;margin:0;padding:0}
html.clinic-app-layout #tab-clinic-schedule #cp-day::-webkit-datetime-edit{min-width:0;padding:0;line-height:24px}
html.clinic-app-layout #tab-clinic-schedule #cp-day::-webkit-calendar-picker-indicator{flex:none;margin:0;padding:0;cursor:pointer}
html.clinic-app-layout #tab-clinic-schedule .cp-agenda__day-controls>label:focus-within{outline:3px solid #56b1bd;outline-offset:3px}

/* Inventory: overview, focused item actions and dedicated movement forms. */
.si-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
.si-dialog .si-header{flex:none;position:relative;gap:12px}
.si-heading,.si-header-actions{display:flex;align-items:center;gap:10px;min-width:0}
.si-header-actions{flex:none}
.si-dialog button svg,.si-empty-icon svg,.si-movement-icon svg,.si-form-note>svg{width:20px;height:20px;flex:none}
.si-dialog .si-body{min-height:0;overflow:auto;overscroll-behavior:contain;flex:1}
.si-dialog .si-content{min-width:0}
.si-dialog .si-back,.si-dialog .si-close{display:grid;place-items:center;padding:0;width:42px;height:42px;flex:none}
.si-dialog .si-app-new{display:none}
.si-dialog[data-view=list] .si-app-new{display:block}
.si-dialog:is([data-view=list],[data-view=loading]) .si-back{display:none}
.si-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:24px}
.si-dialog .si-stats button{text-align:left;padding:16px 12px;min-width:0;border:1px solid #e3eaeb;background:#f7f9f9}
.si-stats strong,.si-stats span{display:block}
.si-stats strong{font-size:28px;line-height:1.1;letter-spacing:-.04em;margin-bottom:10px}
.si-stats span{font-size:11px;line-height:1.5;font-weight:500;color:#617375}
.si-dialog .si-stats [aria-pressed=true]{border-color:#94c6cd;background:#eaf5f6;box-shadow:inset 0 0 0 1px #94c6cd;color:#006674}
.si-dialog .si-stats [data-id=low] strong{color:#946117}
.si-dialog .si-stats [data-id=empty] strong{color:#a9514b}
.si-section-heading,.si-list-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}
.si-dialog .si-section-heading h3{font-size:19px;margin:0;letter-spacing:-.025em}
.si-dialog .si-section-heading button{display:flex;align-items:center;gap:6px;border:0;padding:8px 0;background:transparent;color:#006d7b;font-size:12px}
.si-section-heading button svg{width:17px;height:17px}
.si-dialog .si-filter{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin:12px 0}
.si-dialog .si-filter label{min-width:0}
.si-search-field{position:relative;display:block}
.si-search-field svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:20px;height:20px;color:#778a8c;pointer-events:none}
.si-dialog .si-search-field input{padding-left:42px}
.si-dialog .si-filter :is(input,select){height:48px;background:#f7f9f9;border-color:#e0e8e9;border-radius:14px;color:#314b4e;font-size:16px;min-width:0;max-width:100%}
.si-filter input::placeholder{font-size:13px;color:#758587}
.si-list-heading{min-height:40px;margin-bottom:10px}
.si-result-count{font-size:12px;color:#697c7e}
.si-dialog .si-clear{padding:4px 0;background:transparent;border:0;font-size:12px;min-height:40px}
.si-dialog [hidden]{display:none!important}
.si-dialog .si-items{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-items:start}
.si-dialog .si-items article{display:flex;flex-direction:column;padding:18px;gap:14px;border:1px solid #e1e9ea;background:#fff;border-radius:20px;min-width:0}
.si-item-top{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;min-width:0}
.si-item-identity{flex:1;min-width:0}
.si-category{display:inline-block;font-size:10px;color:#587073;background:#f0f5f6;padding:4px 8px;border-radius:6px;line-height:1.5}
.si-dialog .si-item-identity h3{font-size:17px;line-height:1.4;margin:8px 0 0;letter-spacing:-.025em;overflow-wrap:anywhere}
.si-item-code{font-size:11px;color:#738284;margin:4px 0 0;overflow-wrap:anywhere}
.si-dialog .si-balance{min-width:52px;max-width:40%;flex:none;text-align:right;padding-top:3px}
.si-dialog .si-balance strong{display:block;font-size:28px;line-height:1.2;letter-spacing:-.04em;color:#22494e;overflow-wrap:anywhere}
.si-dialog .si-balance span{font-size:11px;color:#687b7d;line-height:1.5;margin-top:4px}
.si-item-status{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px;color:#6c7e74}
.si-item-status b{color:#415f50;font-weight:600}
.si-stock-state{display:inline-block;padding:4px 9px;border-radius:20px;white-space:nowrap;font-size:10px;font-weight:600;background:#edf5f6;color:#396c73}
.si-stock-state.low{background:#fbf3e6;color:#936724}
.si-stock-state.empty{background:#faeded;color:#a4524b}
.si-item-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.si-dialog .si-item-actions button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;background:#147d89;border-color:#147d89;color:#fff;padding:10px 8px;font-size:13px}
.si-dialog .si-item-actions [data-stock=out]{background:#edf5f6;border-color:#d8e8ea;color:#006674}
.si-item-more{border-top:1px solid #edf1f1;margin-top:0;min-width:0}
.si-item-more summary{cursor:pointer;font-size:12px;font-weight:550;color:#637a7d;padding:13px 0 0;min-height:34px}
.si-item-more[open] summary{padding-bottom:14px}
.si-item-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;background:#f7f9f9;padding:12px;border-radius:12px;margin:0 0 12px}
.si-item-details:empty{display:none}
.si-item-details dt{font-size:10px;color:#6f8183}
.si-item-details dd{font-size:12px;line-height:1.5;color:#415b5f;margin:3px 0 0;overflow-wrap:anywhere;white-space:pre-wrap}
.si-detail-actions{display:flex;flex-wrap:wrap;gap:8px}
.si-dialog .si-detail-actions button{font-size:12px;padding:8px 10px;flex:1;background:white;color:#47696d;border-color:#dde7e8}
.si-dialog .si-detail-actions [data-stock=archive]{flex-basis:100%;color:#a35952;background:transparent;border-color:transparent}
.si-dialog:is([data-view=item],[data-view=movement]) .si-body{display:flex;flex-direction:column;overflow:hidden;padding-bottom:0!important}
.si-dialog:is([data-view=item],[data-view=movement]) .si-content{display:flex;flex-direction:column;min-height:0;flex:1}
.si-dialog .si-form{display:flex;flex-direction:column;min-height:0;flex:1;margin:0;gap:0}
.si-editor-fields{flex:1;overflow:auto;overscroll-behavior:contain;min-height:0;padding:2px 2px 20px;scroll-padding:20px}
.si-form fieldset{border:0;margin:0;padding:0;min-width:0}
.si-form legend{font-size:17px;font-weight:650;letter-spacing:-.025em;margin-bottom:18px;padding:0}
.si-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}
.si-field-grid>label:first-child:has([name=name]){grid-column:1/-1}
.si-dialog .si-form label{font-size:12px;font-weight:600;line-height:1.5;color:#51686b;min-width:0;gap:8px}
.si-dialog .si-form :is(input,select,textarea){box-sizing:border-box;max-width:100%;width:100%;font-family:inherit;font-size:16px;line-height:1.5;min-height:48px;border:1px solid #dce6e7;border-radius:12px;background:#f8fafa;color:#24464b;padding:11px;min-width:0}
.si-dialog .si-form textarea{resize:vertical}
.si-dialog .si-form .si-field-help{font-size:12px;color:#748385;line-height:1.65;padding:0;background:none;margin:12px 0 0}
.si-extra-fields{border:1px solid #e2eaeb;border-radius:16px;margin-top:24px;padding:16px}
.si-extra-fields summary{font-size:14px;font-weight:600;cursor:pointer;color:#2f5156}
.si-extra-fields summary span{display:block;font-size:11px;font-weight:400;color:#788688;margin-top:6px;line-height:1.5}
.si-extra-fields[open] .si-field-grid{margin-top:20px}
.si-form-note{display:flex;align-items:flex-start;gap:10px;margin-top:20px;padding:14px;border-radius:14px;background:#f0f6f7;color:#5d777b}
.si-dialog .si-form-note p{padding:0;background:none;font-size:12px;line-height:1.7;margin:0;color:inherit}
.si-form-note>svg{margin-top:2px}
.si-dialog .si-form-footer{flex:none;display:flex;gap:10px;padding:14px 0 max(16px,var(--clinic-dock-safe-bottom,env(safe-area-inset-bottom,0px)));border-top:1px solid #e7edee;background:#fff}
.si-dialog .si-form-footer button{min-height:48px;font-size:13px;background:white;border-color:#dce7e8;color:#5b7376;padding:10px 14px}
.si-dialog .si-form-footer [type=submit]{flex:1;background:#147d89;border-color:#147d89;color:#fff}
.si-movement-item{display:flex;align-items:flex-start;gap:12px;padding:16px;background:#f1f6f7;border-radius:18px;margin:0 0 26px}
.si-movement-icon{display:grid;place-items:center;background:#e1ecee;color:#147d89;width:40px;height:40px;border-radius:12px;flex:none}
.si-movement-item>div{min-width:0}
.si-movement-item small{font-size:11px;color:#657e81}
.si-dialog .si-movement-item h3{font-size:17px;line-height:1.4;letter-spacing:-.02em;margin:5px 0;overflow-wrap:anywhere}
.si-dialog .si-movement-item p{margin:0;padding:0;background:none;font-size:12px;line-height:1.6;color:#647a7d}
.si-balance-preview{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px;background:#f1f6f7;border-radius:14px;margin-top:20px}
.si-balance-preview>span{font-size:12px;color:#61787b}
.si-balance-preview strong{font-size:24px;color:#165b64;white-space:nowrap}
.si-balance-preview small{font-size:11px;font-weight:500}
.si-history-filters{display:flex;gap:8px}
.si-dialog .si-history-filters button{flex:1;min-width:0;padding:8px 10px;font-size:12px;background:#f7f9f9;border-color:#e2eaeb;color:#6c7d7f}
.si-dialog .si-history-filters [aria-pressed=true]{color:#006876;border-color:#a7cdd2;background:#edf6f7}
.si-history-count{font-size:12px;color:#768789;margin:18px 0 12px}
.si-history-context{margin:0 0 20px}
.si-history-context>span{font-size:11px;color:#6e8285}
.si-dialog .si-history-context h3{font-size:20px;line-height:1.4;overflow-wrap:anywhere;margin:5px 0}
.si-history-list{display:grid;gap:14px}
.si-history-card{border:1px solid #e2eaeb;border-radius:18px;padding:18px;background:#fff;min-width:0}
.si-history-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}
.si-history-top time{font-size:10px;color:#73888b}
.si-dialog .si-history-card h3{font-size:16px;line-height:1.5;margin:0;overflow-wrap:anywhere}
.si-history-quantity{font-size:24px;text-align:right;line-height:1.1;letter-spacing:-.025em;flex:none;color:#147d89}
.si-history-quantity.si-out{color:#9b6e3f}
.si-history-quantity small{display:block;font-size:10px;line-height:1.5;margin-top:5px;font-weight:400;color:#7e8f91}
.si-history-reason{font-size:12px;line-height:1.7;color:#526c6f;white-space:pre-wrap;overflow-wrap:anywhere;margin:14px 0}
.si-history-bottom{display:flex;flex-direction:column;gap:6px;border-top:1px solid #edf1f2;padding-top:12px;font-size:10px;color:#7c8d8f;overflow-wrap:anywhere}
.si-history-bottom b{color:#4f6a6d;font-weight:500}
.si-alert:not(:empty){padding:12px 14px;font-size:12px;line-height:1.6;border:1px solid #dce9eb;background:#f0f6f7;color:#456468;margin-bottom:18px;flex:none}
.si-alert.si-error{background:#fff4ee;border-color:#efd5c8;color:#975232}
.si-alert:focus{outline:2px solid #bca084;outline-offset:2px}
.si-empty{padding:32px 20px;background:#f8fbfb;border:1px dashed #d7e5e7;border-radius:20px;text-align:center;grid-column:1/-1}
.si-dialog .si-empty h3{font-size:18px;line-height:1.4;margin:12px 0 8px}
.si-empty p{font-size:12px;line-height:1.7;color:#738385;margin:0 0 20px}
.si-empty-icon{display:grid;place-items:center;margin:auto;width:46px;height:46px;border-radius:14px;background:#e8f2f3;color:#397981}
.si-empty-icon svg{width:24px;height:24px}
.si-dialog .si-empty button{background:#147d89;color:#fff;border-color:#147d89;font-size:12px}
.si-loading{font-size:13px;color:#738385;padding:24px 0}
.si-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
html.clinic-app-layout .si-dialog{font-family:inherit;color:var(--cam-ink);overscroll-behavior:contain}
html.clinic-app-layout .si-dialog .si-header{padding:20px 18px 16px!important;background:#fff;border-color:var(--cam-line)}
html.clinic-app-layout .si-dialog .si-header h2{margin:0!important;line-height:1.15!important}
html.clinic-app-layout .si-dialog:not([data-view=list]) .si-header h2{font-size:24px!important}
html.clinic-app-layout .si-dialog .si-body{padding:20px 18px max(24px,var(--clinic-dock-safe-bottom,env(safe-area-inset-bottom,0px)))}
html.clinic-app-layout .si-dialog button{font-family:inherit;font-weight:600;border-radius:12px;line-height:1.5;transition:background .16s,transform .16s}
html.clinic-app-layout .si-dialog button:active{transform:scale(.98)}
html.clinic-app-layout .si-dialog .si-app-new{min-height:44px;font-size:14px;background:#147d89;border-color:#147d89;color:white;padding:10px 16px}
html.clinic-app-layout .si-dialog :is(.si-close,.si-back){border-radius:50%;border-color:#e5ebec;background:#f7f9f9;color:#64777a}
.si-dialog[data-view=list][data-empty=true] :is(.si-filter,.si-list-heading){display:none}
@media(min-width:650px){.si-dialog .si-filter{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}.si-dialog .si-items{grid-template-columns:repeat(2,minmax(0,1fr))}.si-dialog:is([data-view=item],[data-view=movement]){height: min(850px,94dvh)}.si-dialog .si-form{max-width:700px;width:100%;margin:0 auto}.si-history-list{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}}
@media(max-width:360px){.si-dialog .si-stats button{padding:14px 9px}.si-stats span{font-size:10px}.si-dialog .si-items article{padding:16px}html.clinic-app-layout .si-dialog .si-app-new{padding:10px 12px}html.clinic-app-layout .si-dialog:not([data-view=list]) .si-header h2{font-size:21px!important}.si-heading{gap:7px}.si-field-grid{grid-template-columns:minmax(0,1fr)}.si-section-heading button{font-size:11px!important}}
@media(prefers-reduced-motion:no-preference){.si-dialog .si-content{animation:si-content-in .2s ease-out}@keyframes si-content-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}}
@media(prefers-reduced-motion:reduce){.si-dialog button{transition:none!important}}

/* Reserve the floating dock once across every page and More destination. */
html.clinic-app-layout{--cam-content-bottom:calc(90px + max(6px,var(--clinic-dock-safe-bottom,env(safe-area-inset-bottom,0px))))}
html.clinic-app-layout.clinic-app-layout.clinic-app-layout :is(.tab-content,#clinic-app-more){padding-bottom:var(--cam-content-bottom)!important;scroll-padding-bottom:var(--cam-content-bottom)}
html.clinic-app-layout #clinic-app-more>section:last-child{margin-bottom:0}
/* Legacy inner wrappers must not reserve the navigation a second time. */
html.clinic-app-layout #pre-atendimento-app,
html.clinic-app-layout #tab-automation>.max-w-6xl{padding-bottom:0!important}
html.clinic-app-layout #tab-profile .garage-acct__footer{padding-bottom:0!important;margin-bottom:0!important}
html.clinic-app-layout #tab-profile .garage-acct__footer:has(#btn-profile-save.hidden){display:none!important}
html.clinic-app-layout #tab-profile .garage-acct__scroll-pad{height:0!important;min-height:0!important;margin:0!important;padding:0!important}
/* Sheets cover the dock, so their buttons only need the edge inset. */
html.clinic-app-layout .cp.cp-modal .cp-dialog{padding-bottom:max(20px,var(--clinic-dock-safe-bottom,env(safe-area-inset-bottom,0px)))!important}
html.clinic-app-layout .cp.cp-modal footer{bottom:0!important;padding-bottom:0!important;margin-bottom:0!important}

/* Messages: independent controls, readable schedules and compact editing. */
html.clinic-app-layout .cm-summary{display:grid;grid-template-columns:auto auto minmax(0,1fr);gap:18px;align-items:center;padding:2px 0 22px;margin-bottom:24px;border-bottom:1px solid var(--cam-line)}
html.clinic-app-layout .cm-summary>div{display:flex;flex-direction:column;gap:4px;font-size:11px;color:var(--cam-muted)}
html.clinic-app-layout .cm-summary .cm-count{font-size:30px;line-height:1.1;font-weight:700;letter-spacing:-.04em;color:var(--cam-green)}
html.clinic-app-layout .cm-summary>div:nth-child(2) .cm-count{color:#727f81}
html.clinic-app-layout .cm-summary>p{font-size:11px;line-height:1.6;margin:0;text-align:right;color:#3f595c}
html.clinic-app-layout .cm-summary>p>span{color:var(--cam-muted)}
html.clinic-app-layout .cm-group{margin:0 0 26px}
html.clinic-app-layout .cm-group>h3{font-size:13px!important;font-weight:650;letter-spacing:0;color:#65797c;margin:0 0 12px}
html.clinic-app-layout .cm-cards{display:grid;gap:14px;grid-template-columns:minmax(0,1fr)}
html.clinic-app-layout .cm-card{padding:20px;border:1px solid #e2e9ea;border-radius:22px;background:white;min-width:0;display:flex;flex-direction:column}
html.clinic-app-layout .cm-card-head{display:flex;align-items:center;gap:12px;min-width:0}
html.clinic-app-layout .cm-card-head h4{font-size:18px;font-weight:700;line-height:1.25;letter-spacing:-.025em;margin:0;overflow-wrap:anywhere}
html.clinic-app-layout .cm-icon{width:38px;height:38px;flex:none;display:grid;place-items:center;border-radius:13px;background:#edf6f7;color:#147d89}
html.clinic-app-layout .cm-icon svg{width:21px;height:21px}
html.clinic-app-layout .cm-description{font-size:13px;line-height:1.65;margin:12px 0 4px;color:#6d7c7e}
html.clinic-app-layout .cm-toggle{display:flex;align-items:center;gap:9px;align-self:flex-start;min-height:44px;margin:4px 0 14px;padding:0 3px 0 0;background:none;border:0;font-size:12px;font-weight:650;color:#6c7a7c;border-radius:8px}
html.clinic-app-layout .cm-toggle[aria-checked=true]{color:#006b79}
html.clinic-app-layout .cm-toggle:disabled{opacity:.5;cursor:wait}
html.clinic-app-layout .cm-toggle-track{position:relative;width:38px;height:24px;border-radius:20px;background:#dce3e4;transition:background .18s}
html.clinic-app-layout .cm-toggle-track::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:white;box-shadow:0 1px 3px #18363a20;transition:transform .18s}
html.clinic-app-layout .cm-toggle[aria-checked=true] .cm-toggle-track{background:#147d89}
html.clinic-app-layout .cm-toggle[aria-checked=true] .cm-toggle-track::after{transform:translateX(14px)}
html.clinic-app-layout .cm-timing{display:flex;flex-direction:column;gap:5px;padding:13px 14px;background:#f3f7f8;border-radius:13px}
html.clinic-app-layout :is(.cm-timing,.cm-preview)>span{font-size:10px;font-weight:650;color:#78888a;letter-spacing:.03em}
html.clinic-app-layout .cm-timing>strong{font-size:13px;line-height:1.5;font-weight:600;overflow-wrap:anywhere}
html.clinic-app-layout .cm-preview{margin:16px 0;flex:1;min-width:0}
html.clinic-app-layout .cm-preview>p{white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:1.65;margin:5px 0 0;color:#617476}
html.clinic-app-layout .cm-card-actions{display:flex;flex-wrap:wrap;gap:8px;padding-top:15px;border-top:1px solid #edf1f1}
html.clinic-app-layout .cm-card-actions .cp-btn{flex:1;min-width:0;padding:11px 12px!important}
html.clinic-app-layout .cm-card-actions .cm-edit{background:#eaf5f6!important;color:#006b79!important;border-color:#dbebed!important}
html.clinic-app-layout :is(.cm-settings,.cm-history){border:1px solid #e2e9ea;border-radius:18px;padding:0;margin:14px 0 0;overflow:hidden}
html.clinic-app-layout :is(.cm-settings,.cm-history)>summary{padding:18px;font-size:14px;font-weight:650;color:#32565b;min-height:56px}
html.clinic-app-layout .cm-history>summary>span{font-size:11px;padding:3px 7px;border-radius:8px;background:#edf4f5;margin-left:6px}
html.clinic-app-layout :is(.cm-settings,.cm-history)>:not(summary){margin:0 18px 18px}
html.clinic-app-layout :is(.cm-settings,.cm-history)>p{font-size:12px;line-height:1.7}
html.clinic-app-layout .cm-log{padding:16px 0 0;border-top:1px solid var(--cam-line);overflow-wrap:anywhere}
html.clinic-app-layout .cm-log>strong{font-size:13px}
html.clinic-app-layout .cm-log>span{font-size:11px;color:#718284}
html.clinic-app-layout .cm-paused{padding:18px;background:#fff8e9;border:1px solid #efdfb9;border-radius:16px;margin-bottom:24px}
html.clinic-app-layout .cm-paused>strong{font-size:14px;color:#79612b}
html.clinic-app-layout .cm-paused>p{font-size:12px;line-height:1.6;margin:6px 0 12px;color:#7c6c49}
html.clinic-app-layout .cm-editor .cp-dialog{max-width:620px}
html.clinic-app-layout .cm-editor .cm-editor-help{margin:0;color:#6d7f81;font-size:13px}
html.clinic-app-layout .cm-editor .cm-editor-section{font-size:12px;font-weight:650;color:#006b79;margin:8px 0 0;padding-bottom:10px;border-bottom:1px solid var(--cam-line);letter-spacing:0}
html.clinic-app-layout .cm-editor label[hidden]{display:none!important}
html.clinic-app-layout .cm-editor textarea{min-height:190px!important;line-height:1.65;font-weight:400}
html.clinic-app-layout .cm-editor .cm-variables{margin:0;background:#f6f9f9;border:0;border-radius:12px}
html.clinic-app-layout .cm-editor .cm-variables>summary{font-size:12px;line-height:1.6}
html.clinic-app-layout .cm-editor .cm-variables>p{font-size:12px;overflow-wrap:anywhere}
@media(min-width:700px){html.clinic-app-layout .cm-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){html.clinic-app-layout .cm-toggle-track,html.clinic-app-layout .cm-toggle-track::after{transition:none}}

html.clinic-app-layout .cm-delivery-paused{font-size:11px;color:#876d35;margin:-8px 0 14px;line-height:1.5}

/* Patient detail: shared presentation for Patients and Forms. */
html.clinic-app-layout #cp-profile:has(.pp-body){box-shadow:none!important;min-width:0}
html.clinic-app-layout #cp-profile .pp-profile-heading{display:block;margin:0!important;padding:20px!important;border:1px solid #e0e9ea!important;border-radius:22px!important;background:linear-gradient(145deg,#f2f7f8,#fbfdfd)!important}
html.clinic-app-layout .pp-identity{display:flex;align-items:center;gap:13px;min-width:0}
html.clinic-app-layout .pp-identity>div{min-width:0;flex:1}
html.clinic-app-layout #cp-profile .pp-identity h3{font-size:22px!important;line-height:1.3!important;letter-spacing:-.035em;margin:0 0 5px;overflow-wrap:anywhere}
html.clinic-app-layout #cp-profile .pp-identity p{margin:0;font-size:13px;overflow-wrap:anywhere}
html.clinic-app-layout #cp-profile .pp-identity .cp-eyebrow{font-size:9px!important;margin:0 0 5px!important;letter-spacing:.09em!important;color:#798d90!important}
html.clinic-app-layout .pp-avatar{display:grid;place-items:center;flex:none;width:50px;height:50px;border-radius:17px;background:#deeef0;color:#147d89;font-size:19px;font-weight:650}
html.clinic-app-layout .pp-personal{display:flex;flex-wrap:wrap;gap:10px 20px;margin-top:18px}
html.clinic-app-layout .pp-personal>span{display:flex;flex-direction:column;gap:3px;font-size:10px;color:#7b8b8d;min-width:0}
html.clinic-app-layout .pp-personal strong{font-size:12px;font-weight:500;color:#4d6568;overflow-wrap:anywhere}
html.clinic-app-layout .pp-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:18px;padding-top:16px;border-top:1px solid #dfe9ea}
html.clinic-app-layout .pp-summary>div{display:flex;flex-direction:column;gap:5px}
html.clinic-app-layout .pp-summary strong{font-size:22px;line-height:1.1;color:#006f7e;font-weight:650}
html.clinic-app-layout .pp-summary span{font-size:10px;line-height:1.5;color:#718284}
html.clinic-app-layout #cp-profile .cp-tabs.pp-tabs{position:static!important;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px!important;overflow:visible;margin:18px 0 24px!important;padding:0 0 18px!important;border-bottom:1px solid #e7ebec;background:white}
html.clinic-app-layout #cp-profile .pp-tabs .cp-btn{min-width:0;min-height:44px!important;padding:10px 3px!important;font-size:11px!important;border:1px solid #e5eaeb;border-radius:12px!important;background:#f7f9f9;color:#687b7e;white-space:normal;font-weight:600;line-height:1.3}
html.clinic-app-layout #cp-profile .pp-tabs .cp-btn.selected{background:#e5f1f3;border-color:#b9d7db;color:#006876;box-shadow:inset 0 0 0 1px #d0e5e8}
html.clinic-app-layout .pp-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 16px}
html.clinic-app-layout .pp-section-head>h4{font-size:19px;line-height:1.3;font-weight:700;letter-spacing:-.025em;margin:0;flex:1;min-width:100px}
html.clinic-app-layout .pp-section-head>.cp-btn{flex:none;min-height:44px!important;padding:10px 13px!important}
html.clinic-app-layout .pp-body>.pp-help,html.clinic-app-layout .pp-subsection>.pp-help{font-size:12px;line-height:1.65;margin:-4px 0 20px;color:#7a898b}
html.clinic-app-layout .pp-message-state{padding:14px 16px;margin:0 0 18px;border-radius:14px;background:#f4f8f8;display:flex;flex-direction:column;gap:4px}
html.clinic-app-layout .pp-message-state>span{font-size:11px;color:#7c898b}
html.clinic-app-layout .pp-message-state>strong{font-size:12px;font-weight:600;color:#006a78}
html.clinic-app-layout .pp-message-state>strong.paused{color:#7e7c71}
html.clinic-app-layout .pp-info,html.clinic-app-layout .pp-service{border:1px solid #e3eaeb;border-radius:20px;background:white;padding:18px;margin-bottom:16px;min-width:0}
html.clinic-app-layout .pp-info>h4{font-size:13px;font-weight:650;color:#547377;margin:0 0 16px}
html.clinic-app-layout .pp-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px;margin:0}
html.clinic-app-layout .pp-facts>div{min-width:0}
html.clinic-app-layout .pp-facts .pp-wide{grid-column:1/-1}
html.clinic-app-layout .pp-facts dt{font-size:10px;font-weight:500;text-transform:none;letter-spacing:0;color:#818e90;margin:0 0 4px}
html.clinic-app-layout .pp-facts dd{font-size:13px;line-height:1.65;font-weight:500;margin:0;color:#30494c;white-space:pre-wrap;overflow-wrap:anywhere}
html.clinic-app-layout .pp-facts dd.pp-missing{color:#99a49d;font-weight:400;font-size:12px}
html.clinic-app-layout .pp-subsection{margin-top:26px}
html.clinic-app-layout .pp-subsection>h4{font-size:14px;font-weight:650;margin:0 0 14px;color:#537175}
html.clinic-app-layout .pp-subsection>h4>span{font-size:11px;margin-left:6px;padding:3px 7px;border-radius:8px;background:#eef4f5}
html.clinic-app-layout :is(#tab-clinic-anamnesis,#tab-clinic-intake) .cp.cp-root .pp-body .cp-form-card,
html.clinic-app-layout :is(#tab-clinic-anamnesis,#tab-clinic-intake) .cp.cp-root .pp-attachments .cp-item,
html.clinic-app-layout :is(#tab-clinic-anamnesis,#tab-clinic-intake) .cp.cp-root .pp-legacy .cp-item{padding:18px!important;margin:0 0 16px!important;border:1px solid #e3eaeb!important;border-radius:20px!important;min-width:0}
html.clinic-app-layout .pp-body .cp-form-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px!important;margin-bottom:16px!important}
html.clinic-app-layout .pp-body .cp-form-title{flex:1;min-width:0}
html.clinic-app-layout .pp-body .cp-form-title>strong{display:block;font-size:15px;line-height:1.45;overflow-wrap:anywhere}
html.clinic-app-layout .pp-body .cp-form-title>p{font-size:11px;line-height:1.6;margin:6px 0 0}
html.clinic-app-layout .pp-body .cp-form-heading>.cp-badge{flex:none;font-size:10px;white-space:nowrap}
html.clinic-app-layout :is(#tab-clinic-anamnesis,#tab-clinic-intake) .pp-body .cp-form-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:8px!important;padding-top:14px;border-top:1px solid #edf1f1}
html.clinic-app-layout .pp-body .cp-form-actions :is(.cp-btn,.cp-link){display:flex;justify-content:center;align-items:center;text-align:center;border-radius:12px!important;min-height:44px!important;font-size:12px!important;white-space:normal;padding:10px 12px!important;line-height:1.5}
html.clinic-app-layout .pp-body .cp-form-actions [data-action=view-form]{background:#eaf4f5;color:#006b79;border-color:#d9e7e9}
html.clinic-app-layout .pp-body [data-action=delete-item]{color:#9a6868!important;background:transparent!important;border-color:transparent!important}
html.clinic-app-layout .pp-body .cp-form-actions [data-action=delete-item]{justify-self:start;padding-left:0!important}
html.clinic-app-layout .pp-body .cp-form-card [data-action=form-notes]{width:100%;background:#f6f8f8;color:#708082}
html.clinic-app-layout .pp-attachments .cp-item>strong{display:block;font-size:15px;line-height:1.5;overflow-wrap:anywhere}
html.clinic-app-layout .pp-attachments .cp-item>p{font-size:11px;margin:7px 0 16px}
html.clinic-app-layout .pp-attachments .cp-link{border-radius:12px!important;min-height:44px!important;display:inline-flex;align-items:center}
html.clinic-app-layout .pp-manage{border:1px solid #e7eaea;border-radius:16px;padding:16px;margin-top:24px}
html.clinic-app-layout .pp-manage>summary{font-size:12px;color:#7f8a82;min-height:24px}
html.clinic-app-layout .pp-manage>p{font-size:12px;margin:14px 0 6px}
html.clinic-app-layout .pp-appointments .cp-agenda__patient{display:none}
html.clinic-app-layout .pp-appointments .cp-date-label{font-size:11px;margin:20px 0 9px;color:#708487}
html.clinic-app-layout .pp-appointments .cp-agenda__appointment{border:1px solid #e3eaeb!important;border-radius:20px!important;padding:18px!important;margin:0 0 16px!important}
html.clinic-app-layout .pp-appointments .cp-agenda__appointment-actions{display:flex;flex-direction:column;align-items:stretch;gap:10px}
html.clinic-app-layout .pp-appointment-actions{padding:0!important;border:0!important;margin:0!important;border-radius:0!important;width:100%}
html.clinic-app-layout .pp-appointment-actions>summary{min-height:44px;padding:12px 2px;font-size:12px;color:#687a7c;cursor:pointer}
html.clinic-app-layout .pp-appointment-actions .cp-agenda__secondary-actions{padding-top:6px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html.clinic-app-layout .pp-appointment-actions .cp-btn{min-width:0;white-space:normal;line-height:1.45}
html.clinic-app-layout .pp-record-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:20px}
html.clinic-app-layout .pp-record-heading>div{min-width:0}
html.clinic-app-layout .pp-record-heading h4{font-size:17px;font-weight:650;line-height:1.4;margin:6px 0 0;overflow-wrap:anywhere}
html.clinic-app-layout .pp-record-date{font-size:11px;color:#849092}
html.clinic-app-layout .pp-record-details{margin:20px 0 0;border:1px solid #e6ebec;border-radius:13px;padding:14px}
html.clinic-app-layout .pp-record-details>summary{font-size:12px;line-height:1.6;color:#4f6f73}
html.clinic-app-layout .pp-record-details .pp-facts{margin-top:18px;grid-template-columns:minmax(0,1fr)}
html.clinic-app-layout .pp-record-note{border-top:1px solid #edf1f1;margin-top:16px;padding-top:16px}
html.clinic-app-layout .pp-record-note>h4{font-size:11px;margin:0 0 6px;color:#7b898b}
html.clinic-app-layout .pp-record-note>p{white-space:pre-wrap;overflow-wrap:anywhere}
html.clinic-app-layout .pp-timeline{position:relative;padding-left:18px;margin:20px 0 0;border-left:1px solid #dce7e9}
html.clinic-app-layout .pp-event{position:relative;padding:16px;margin:0 0 14px;border:1px solid #e6eced;border-radius:17px;background:#fff;min-width:0}
html.clinic-app-layout .pp-event::before{content:"";position:absolute;left:-23px;top:22px;width:8px;height:8px;border:2px solid white;box-shadow:0 0 0 1px #b6d5d9;background:#56a4ae;border-radius:50%}
html.clinic-app-layout .pp-event-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;color:#7c8d8f;font-size:11px;margin-bottom:10px}
html.clinic-app-layout .pp-event-meta>span{font-size:10px;background:#f0f5f6;color:#5e8084;border-radius:7px;padding:3px 7px}
html.clinic-app-layout .pp-event h4{font-size:14px;line-height:1.5;font-weight:650;margin:0;overflow-wrap:anywhere}
html.clinic-app-layout .pp-event>p{font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0 0}
html.clinic-app-layout .pp-editor .cp-form-section{color:#537c81;border-bottom:1px solid #e2ebec;padding:14px 0 10px;margin:8px 0 0;font-size:12px}
html.clinic-app-layout .pp-editor textarea{min-height:150px!important;font-weight:400;line-height:1.65}
@media(min-width:700px){html.clinic-app-layout #cp-profile .cp-tabs.pp-tabs{grid-template-columns:repeat(7,minmax(0,1fr))}html.clinic-app-layout :is(#tab-clinic-anamnesis,#tab-clinic-intake) .pp-body .cp-form-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:no-preference){html.clinic-app-layout .pp-body{animation:cam-home-enter .2s ease-out both}}
html.clinic-app-layout.clinic-patient-detail :is(#tab-clinic-anamnesis,#tab-clinic-intake)>.cam-tab-heading{display:none!important}
html.clinic-app-layout .pp-body>:last-child,html.clinic-app-layout .pp-timeline>.pp-event:last-child{margin-bottom:0!important}
html.clinic-app-layout #cp-profile .pp-legacy .cp-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px!important;margin-top:20px}
html.clinic-app-layout #cp-profile .pp-legacy .cp-facts>div{background:transparent;border:0;padding:0!important;border-radius:0}
html.clinic-app-layout .pp-legacy dt{font-size:10px;font-weight:500;text-transform:none;letter-spacing:0;color:#818e90}
html.clinic-app-layout .pp-legacy dd{font-size:13px;line-height:1.65;color:#30494c}
html.clinic-app-layout .pp-legacy .cp-facts>div:nth-last-child(-n/**/+3){grid-column:1/-1}

/* Minha conta: photo, details and security use the clinic's shared card style. */
html.clinic-app-layout #tab-profile .garage-acct{width:100%;max-width:720px;margin:0 auto!important}
html.clinic-app-layout #tab-profile .garage-acct__header{display:none!important}
html.clinic-app-layout #tab-profile .garage-acct__lede{display:none!important}
html.clinic-app-layout #tab-profile .garage-acct__tabs{display:flex;width:100%;gap:6px!important;padding:5px!important;margin:0 0 22px!important;border:1px solid #e5ebec;border-radius:16px;background:#f5f8f8}
html.clinic-app-layout #tab-profile .garage-acct__tab{flex:1;min-width:0;min-height:44px;padding:10px 8px!important;border-radius:11px;font-size:12px;line-height:1.4;font-weight:600;color:#738082;background:transparent;box-shadow:none!important;text-align:center}
html.clinic-app-layout #tab-profile .garage-acct__tab[aria-selected=true]{background:white!important;color:#006c7a!important;box-shadow:0 1px 4px #1b444910!important}
html.clinic-app-layout #tab-profile [data-profile-panel]{margin-top:0!important}
html.clinic-app-layout #tab-profile [data-profile-panel]>:not([hidden]):not(.hidden)+:not([hidden]):not(.hidden){margin-top:18px}
html.clinic-app-layout #tab-profile :is(.garage-acct__hero,.garage-acct__card,.garage-acct__logout-card,[data-profile-panel="senha"]>div){border:1px solid #e1e9ea!important;border-radius:22px!important;background:white!important;box-shadow:none!important;overflow:hidden}
html.clinic-app-layout #tab-profile :is(.garage-acct__hero-head,.garage-acct__card-head,[data-profile-panel="senha"]>div>div:first-child){padding:18px 20px!important;background:white!important;border-bottom:1px solid #edf1f1!important}
html.clinic-app-layout #tab-profile :is(.garage-acct__hero-head,.garage-acct__card-head)>p:first-child{font-size:16px!important;font-weight:650!important;line-height:1.4;text-transform:none!important;letter-spacing:-.02em!important;color:#23454a!important}
html.clinic-app-layout #tab-profile .garage-acct__hero-head>p:last-child{font-size:12px;line-height:1.6;color:#7c8a80;margin-top:5px}
html.clinic-app-layout #tab-profile .garage-acct__hero-body{padding:20px!important;display:flex;flex-wrap:nowrap;align-items:center;gap:18px}
html.clinic-app-layout #tab-profile #profile-avatar-preview{flex:none}
html.clinic-app-layout #tab-profile #profile-avatar-preview-inner{width:80px;height:80px;object-fit:cover;border-radius:22px;border:1px solid #dce9eb;box-shadow:none;font-size:26px}
html.clinic-app-layout #tab-profile .garage-acct__hero-actions{min-width:0;flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:5px}
html.clinic-app-layout #tab-profile .garage-acct__upload{margin:0!important;min-height:44px;padding:10px 14px;font-size:12px;font-weight:650;border-radius:12px;background:#e8f3f5!important;color:#006e7c!important;border:1px solid #d5e8ea;white-space:nowrap}
html.clinic-app-layout #tab-profile .garage-acct__remove{margin:0!important;min-height:44px;padding:8px 3px;font-size:11px;font-weight:500;color:#7a887e}
html.clinic-app-layout #tab-profile .garage-acct__fields{padding:20px!important;display:grid;grid-template-columns:minmax(0,1fr);gap:20px}
html.clinic-app-layout #tab-profile .garage-acct__fields>*{margin:0!important;min-width:0}
html.clinic-app-layout #tab-profile :is(.garage-acct__field>label,#account-password-card label){font-size:12px;font-weight:550;line-height:1.4;text-transform:none;letter-spacing:0;color:#667a7d;margin-bottom:8px}
html.clinic-app-layout #tab-profile :is(.garage-acct__fields,#account-password-card) input:not([type=file]):not([type=checkbox]){width:100%;min-width:0;max-width:100%;height:48px;min-height:48px!important;padding:11px 13px;border:1px solid #dde7e8;background:#fbfdfd;color:#234448;font-size:16px!important;font-weight:400;border-radius:12px!important;box-shadow:none!important;appearance:none;-webkit-appearance:none}
html.clinic-app-layout #tab-profile :is(.garage-acct__fields,#account-password-card) input:focus{outline:2px solid #5baab5!important;outline-offset:2px;border-color:#a9d1d6!important}
html.clinic-app-layout #tab-profile .garage-acct__email{padding:16px;background:#f4f8f8;border:1px solid #e3ebec;border-radius:15px;grid-column:1/-1}
html.clinic-app-layout #tab-profile #profile-email-code-wrap{padding-top:14px;margin-top:14px;border-top:1px solid #dce7e8}
html.clinic-app-layout #tab-profile #btn-profile-email-send-code{min-height:44px;border-radius:12px;border-color:#cfe0e2;background:white;color:#006a78;font-size:12px;font-weight:650}
html.clinic-app-layout #tab-profile .garage-acct__footer{display:block;padding:0!important;margin-top:18px!important}
html.clinic-app-layout #tab-profile .garage-acct__save{width:100%;min-height:48px;justify-content:center;padding:13px 18px;background:#147d89!important;color:white!important;border-radius:14px;font-size:14px;font-weight:650;box-shadow:none!important}
html.clinic-app-layout #tab-profile .garage-acct__save:disabled{opacity:.55}
html.clinic-app-layout #tab-profile .garage-acct__logout-card{margin-top:24px!important;background:#fbfcfc!important}
html.clinic-app-layout #tab-profile #btn-profile-logout{padding:16px 18px;min-height:76px}
html.clinic-app-layout #tab-profile #btn-profile-logout .text-sm{font-size:13px;font-weight:600;color:#526466}
html.clinic-app-layout #tab-profile #btn-profile-logout .text-xs{font-size:11px;color:#87928a;line-height:1.5}
html.clinic-app-layout #tab-profile #account-password-email{font-size:12px;font-weight:500;color:#6a7d7f;overflow-wrap:anywhere}
html.clinic-app-layout #tab-profile #account-password-card>div:first-child>div>p:first-child{display:none}
html.clinic-app-layout #tab-profile [data-profile-panel="senha"]>div>.p-5{padding:20px!important}
html.clinic-app-layout #tab-profile #account-password-card :is(h3){font-size:20px!important;font-weight:650;line-height:1.3;letter-spacing:-.025em;color:#23454a}
html.clinic-app-layout #tab-profile #account-password-card .text-sm:not(input):not(button){font-size:12px;line-height:1.7;color:#7b8b8d}
html.clinic-app-layout #tab-profile #account-password-card .max-w-md{max-width:none}
html.clinic-app-layout #tab-profile #account-password-card .space-y-3>*+*{margin-top:18px}
html.clinic-app-layout #tab-profile :is(#btn-account-password-save,#btn-account-password-change,#btn-account-forgot-send,#btn-account-forgot-reset){width:100%;min-height:48px;padding:12px 15px;justify-content:center;border-radius:13px;background:#147d89!important;color:white;font-size:13px;font-weight:650}
html.clinic-app-layout #tab-profile #account-password-card button:not([id]){min-height:44px;font-size:12px;color:#5a7a7e;font-weight:500;padding:8px 0;text-align:left}
html.clinic-app-layout #tab-profile #account-forgot-block{margin-top:24px;padding-top:20px;border-top:1px solid #e1e9ea}
html.clinic-app-layout #tab-profile #account-forgot-block h3{font-size:17px!important}
html.clinic-app-layout #tab-profile :is(#account-segment-card,#payment-integrations-card,#chat-ai-settings-card) p{overflow-wrap:anywhere}
html.clinic-app-layout #tab-profile :is(#account-segment-card,#payment-integrations-card,#chat-ai-settings-card)>div:first-child>p:first-child{font-size:14px;font-weight:650;letter-spacing:0;text-transform:none;color:#3e6166}
@media(min-width:700px){html.clinic-app-layout #tab-profile [data-profile-panel="dados"]>.garage-acct__card .garage-acct__fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:no-preference){html.clinic-app-layout #tab-profile [data-profile-panel]:not(.hidden):not([hidden]){animation:cam-home-enter .2s ease-out both}}
html.clinic-app-layout #tab-profile #fluxo-support-root:not([hidden]){margin:0 0 18px!important}

/* Equipe: shared app heading, readable member cards and compact editing sheets. */
.cam-team-summary{display:none}
html.clinic-app-layout #tab-team .cam-team-source{display:none!important}
html.clinic-app-layout #tab-team .cam-team-summary:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:18px}
html.clinic-app-layout #tab-team .cam-team-summary>div{padding:17px 16px;border:1px solid #e3ebec;border-radius:20px;background:#f7fafa;display:flex;flex-direction:column;gap:10px;min-width:0}
html.clinic-app-layout #tab-team .cam-team-summary span{font-size:11px;line-height:1.5;color:#758587}
html.clinic-app-layout #tab-team .cam-team-summary strong{font-size:28px;line-height:1;font-weight:650;letter-spacing:-.035em;color:#23494e}
html.clinic-app-layout #tab-team #team-limit-bar{padding:17px 18px;margin-bottom:22px;border:1px solid #dce9eb;border-radius:20px;background:#f0f6f7;gap:12px}
html.clinic-app-layout #tab-team #team-limit-bar>div>p:first-child{font-size:11px;font-weight:600;text-transform:none;letter-spacing:0;color:#587c81}
html.clinic-app-layout #tab-team #team-limit-text{font-size:13px;line-height:1.6;color:#31595e;margin-top:6px;overflow-wrap:anywhere}
html.clinic-app-layout #tab-team #team-limit-text+div{height:5px;margin-top:13px;background:#dce9eb;max-width:none}
html.clinic-app-layout #tab-team #team-limit-progress:not(.bg-amber-500){background:#328893}
html.clinic-app-layout #tab-team #team-limit-extra-hint{font-size:11px;line-height:1.6;color:#778587}
html.clinic-app-layout #tab-team .cam-team-list{border:0;background:transparent;border-radius:0;box-shadow:none;overflow:visible}
html.clinic-app-layout #tab-team table{display:block;width:100%;min-width:0;background:transparent}
html.clinic-app-layout #tab-team thead{display:none}
html.clinic-app-layout #team-table-body{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;width:100%}
html.clinic-app-layout #team-table-body tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:20px 14px;padding:20px 18px;border:1px solid #e1e9ea!important;border-radius:22px;background:white;min-width:0}
html.clinic-app-layout #team-table-body td{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;min-width:0;padding:0!important;gap:8px;white-space:normal;overflow-wrap:anywhere}
html.clinic-app-layout #team-table-body td::before{content:attr(data-label);font-size:11px;line-height:1.4;color:#829086;font-weight:500}
html.clinic-app-layout #team-table-body td:is(:first-child,:nth-child(4),:nth-child(5)){grid-column:1/-1}
html.clinic-app-layout #team-table-body td:is(:first-child,:nth-child(5))::before{display:none}
html.clinic-app-layout #team-table-body td:first-child>div{gap:13px;min-width:0}
html.clinic-app-layout #team-table-body td:first-child>div>div:first-child{width:46px;height:46px;flex:none;border-radius:16px;background:#eaf4f5;color:#187581;font-size:15px;font-weight:650}
html.clinic-app-layout #team-table-body td:first-child>div>div:last-child{min-width:0}
html.clinic-app-layout #team-table-body td:first-child p:first-child{font-size:16px;font-weight:650;line-height:1.45;letter-spacing:-.02em;color:#23454a}
html.clinic-app-layout #team-table-body td:first-child p:first-child span{font-size:10px;font-weight:500;color:#839187;white-space:nowrap}
html.clinic-app-layout #team-table-body td:first-child p:last-child{font-size:11px;line-height:1.6;color:#849193;margin-top:3px;overflow-wrap:anywhere}
html.clinic-app-layout #team-table-body td:nth-child(2)>span{font-size:12px;font-weight:550;line-height:1.5;color:#506a6e;padding:12px 0}
html.clinic-app-layout #team-table-body select{min-width:0;width:100%;max-width:100%;height:44px;padding:8px 7px;background:#f8fafa;border:1px solid #e1e8e9;border-radius:11px;font-size:16px;color:#34575c}
html.clinic-app-layout #team-table-body td:nth-child(3)>span{align-self:flex-start;margin-top:6px;padding:6px 10px;border-radius:8px;font-size:11px;line-height:1.6;font-weight:550}
html.clinic-app-layout #team-table-body td:nth-child(4){flex-direction:row;align-items:center;justify-content:space-between;background:#f6f9f9;border-radius:11px;padding:11px 13px!important;font-size:15px;line-height:1.5;font-weight:600;color:#426266}
html.clinic-app-layout #team-table-body td:nth-child(5):empty{display:none}
html.clinic-app-layout #team-table-body td:nth-child(5)>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(95px,1fr));gap:8px}
html.clinic-app-layout #team-table-body button{min-height:44px;padding:10px 8px;border:1px solid #e0e8e9;border-radius:11px;font-size:11px;line-height:1.5;font-weight:600;background:#f8fafa;color:#536b6e;white-space:normal}
html.clinic-app-layout #team-table-body button[onclick^="abrirModalAcessoMembro"]{background:#eaf4f5;border-color:#d9e9eb;color:#0b7280}
html.clinic-app-layout #team-table-body button[onclick^="removerMembroEquipe"]{background:#fffafa;border-color:#f0e3e1;color:#ac6159}
html.clinic-app-layout #tab-team #team-empty-state{padding:26px 22px;margin-top:16px;border:1px dashed #dce6e7;border-radius:20px;background:#fafcfc;font-size:12px;line-height:1.75;color:#7d8e90}
html.clinic-app-layout #tab-team #team-empty-state svg{color:#55959d;width:30px;height:30px;opacity:.7;margin-bottom:12px}
html.clinic-app-layout :is(#team-invite-modal,#team-access-modal,#team-upsell-modal){align-items:flex-end;padding:24px 0 0;background:#19343866;backdrop-filter:blur(4px)}
html.clinic-app-layout :is(#team-invite-modal,#team-access-modal,#team-upsell-modal)>div{width:100%;max-width:640px;max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;border-radius:24px 24px 0 0;padding:24px 20px max(22px,var(--clinic-dock-safe-bottom,env(safe-area-inset-bottom,0px)));box-shadow:0 -8px 40px #17393e20;background:white}
html.clinic-app-layout :is(#team-invite-modal,#team-access-modal,#team-upsell-modal) h3{font-size:22px;line-height:1.35;font-weight:650;letter-spacing:-.03em;color:#23474c}
html.clinic-app-layout :is(#team-invite-modal,#team-access-modal,#team-upsell-modal) p{font-size:12px;line-height:1.65;color:#7d8b8d;overflow-wrap:anywhere}
html.clinic-app-layout :is(#team-invite-modal,#team-access-modal,#team-upsell-modal) h3+p{margin-top:8px}
html.clinic-app-layout #team-invite-form{margin-top:24px}
html.clinic-app-layout #team-invite-form>div+div{margin-top:18px}
html.clinic-app-layout #team-invite-form label{display:block;font-size:12px;font-weight:550;color:#62787b;margin-bottom:7px}
html.clinic-app-layout #team-invite-modal :is(input,select){height:48px;min-height:48px;min-width:0;max-width:100%;border:1px solid #dde7e8;background:#fbfdfd;color:#315155;border-radius:12px;font-size:16px;padding:11px 12px;font-weight:400;box-shadow:none}
html.clinic-app-layout :is(#team-invite-modal,#team-access-modal,#team-upsell-modal) button{min-height:44px;border-radius:12px;font-size:12px;font-weight:600;padding:11px 12px}
html.clinic-app-layout :is(#team-invite-submit-btn,#team-upsell-buy-btn,#team-access-modal button[onclick="salvarAcessoMembroEquipe()"]){background:#147d89!important;color:white!important;min-height:48px}
html.clinic-app-layout #team-access-modal button[aria-label=Fechar]{width:44px;flex:none;padding:12px;background:#f4f8f8;color:#6c8285}
html.clinic-app-layout #team-access-modal button[onclick^=aplicarPresetAcessoMembro]{background:#f1f6f7;color:#54787d;font-size:11px;padding:9px 11px;flex:1}
html.clinic-app-layout #team-access-tabs-list{gap:9px;margin-top:20px}
html.clinic-app-layout #team-access-tabs-list label{min-height:48px;padding:12px;border:1px solid #e3e9ea;border-radius:12px;background:white;gap:10px;color:#6e7f81}
html.clinic-app-layout #team-access-tabs-list label:has(input:checked){background:#edf6f7;border-color:#cfe4e7;color:#2f6870}
html.clinic-app-layout #team-access-tabs-list input{width:18px;height:18px;min-height:0;flex:none;accent-color:#147d89}
html.clinic-app-layout #team-access-tabs-list span{font-size:12px;line-height:1.5}
html.clinic-app-layout #team-upsell-modal>div>div:first-child{background:#eaf5f6;color:#187581}
html.clinic-app-layout #team-upsell-price{font-size:28px;font-weight:650;color:#08707e}
html.clinic-app-layout :is(#tab-team,#team-invite-modal,#team-access-modal,#team-upsell-modal) :is(button,select,input):focus-visible{outline:2px solid #55a2ac;outline-offset:2px}
@media(min-width:700px){html.clinic-app-layout #team-table-body{grid-template-columns:repeat(2,minmax(0,1fr))}html.clinic-app-layout :is(#team-invite-modal,#team-access-modal,#team-upsell-modal){align-items:center;padding:24px}html.clinic-app-layout :is(#team-invite-modal,#team-access-modal,#team-upsell-modal)>div{border-radius:24px}}
html.clinic-app-layout #team-table-body td:nth-child(2)>span{padding:12px 10px;border-radius:11px;background:#f6f9f9;min-height:44px}
@media(max-width:359px){html.clinic-app-layout #team-table-body td:nth-child(2){grid-column:1/-1}html.clinic-app-layout #team-table-body td:nth-child(4){grid-column:auto;flex-direction:column;align-items:flex-start;justify-content:flex-start;padding:0!important;background:none;gap:14px}html.clinic-app-layout #team-table-body td:nth-child(4)::before{font-weight:500}}

/* WhatsApp in Perfil e ajustes: connection first, followed by numbers and plan. */
html.clinic-app-layout #tab-channels .garage-ch{display:flex;flex-direction:column;gap:20px;max-width:720px;margin:0 auto!important;padding:0!important}
html.clinic-app-layout #tab-channels .garage-ch>*{margin:0!important;min-width:0}
html.clinic-app-layout #tab-channels .garage-ch__header{order:0;display:block}
html.clinic-app-layout #tab-channels :is(.garage-ch__title,.garage-ch__lede){display:none!important}
html.clinic-app-layout #tab-channels .garage-ch__back{min-height:44px;display:inline-flex;align-items:center;gap:8px;margin:-10px 0 -5px;padding:10px 0;font-size:12px;font-weight:500;letter-spacing:0;text-transform:none;color:#607d81}
html.clinic-app-layout #tab-channels .garage-ch__back svg{width:16px;height:16px}
html.clinic-app-layout #tab-channels :is(.garage-ch__active,.garage-ch__list-card,.garage-ch__limit,.garage-ch__tip){border:1px solid #e1e9ea;border-radius:22px;background:white;box-shadow:none;overflow:hidden}
html.clinic-app-layout #tab-channels .garage-ch__active{order:1}
html.clinic-app-layout #tab-channels .garage-ch__list-card{order:2}
html.clinic-app-layout #tab-channels .garage-ch__limit{order:3;padding:18px 20px;background:#f4f8f9}
html.clinic-app-layout #tab-channels .garage-ch__tip{order:4;padding:18px 20px;background:#fafcfc}
html.clinic-app-layout #tab-channels :is(.garage-ch__active-head,.garage-ch__list-head){padding:18px 20px;background:white;border-bottom:1px solid #edf1f1}
html.clinic-app-layout #tab-channels :is(.garage-ch__active-head,.garage-ch__list-head)>p:first-child{font-size:15px;font-weight:650;letter-spacing:-.02em;text-transform:none;color:#26474b}
html.clinic-app-layout #tab-channels #whatsapp-active-label{font-size:12px;font-weight:500;line-height:1.6;color:#778d90;margin-top:5px;overflow-wrap:anywhere}
html.clinic-app-layout #tab-channels .garage-ch__list-sub{font-size:12px;line-height:1.65;color:#828f91;margin-top:6px}
html.clinic-app-layout #tab-channels .garage-ch__connection{padding:20px;min-height:0}
html.clinic-app-layout #tab-channels #state-connected>div{display:flex;flex-direction:column;align-items:stretch;gap:20px;padding:0;border:0;border-radius:0;background:white}
html.clinic-app-layout #tab-channels #state-connected>div>div:first-child{align-items:flex-start;gap:14px;padding:18px 15px;border:1px solid #d7e9eb;border-radius:17px;background:#eef7f8}
html.clinic-app-layout #tab-channels #state-connected>div>div:first-child>div:first-child{width:40px;height:40px;flex:none;border:0;border-radius:14px;background:#158493;box-shadow:none}
html.clinic-app-layout #tab-channels #state-connected svg{width:22px;height:22px}
html.clinic-app-layout #tab-channels #state-connected h3{font-size:16px!important;line-height:1.4!important;font-weight:650;color:#245a61}
html.clinic-app-layout #tab-channels #state-connected p{font-size:12px;line-height:1.65;color:#678285;font-weight:400;overflow-wrap:anywhere}
html.clinic-app-layout #tab-channels #wa-connected-phone{font-family:inherit;font-size:15px!important;font-weight:600!important;color:#256871!important;margin:6px 0}
html.clinic-app-layout #tab-channels #state-connected>div>div:last-child{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
html.clinic-app-layout #tab-channels #state-connected button{min-height:46px;border-radius:12px;font-size:12px;line-height:1.5;font-weight:600;padding:11px 8px;box-shadow:none;white-space:normal}
html.clinic-app-layout #tab-channels #state-connected button[onclick*="'chat'"]{background:#147d89;color:white}
html.clinic-app-layout #tab-channels #state-connected button[onclick^=desconectar]{background:#fffafa;border-color:#f0e2df;color:#ac645c}
html.clinic-app-layout #tab-channels #state-connected button svg{width:15px;height:15px;flex:none}
html.clinic-app-layout #tab-channels .garage-ch__list{padding:18px;display:flex;flex-direction:column;gap:14px}
html.clinic-app-layout #tab-channels .garage-ch__list>*{margin:0!important;min-width:0}
html.clinic-app-layout #tab-channels .garage-ch__list-hint{font-size:11px;line-height:1.75;padding:0 2px;color:#829086}
html.clinic-app-layout #tab-channels .garage-ch__item{padding:16px;border:1px solid #e3e9ea;border-radius:17px;background:#fff}
html.clinic-app-layout #tab-channels .garage-ch__item--active{border-color:#bedbdf!important;background:#f7fbfb!important}
html.clinic-app-layout #tab-channels .garage-ch__item-row{display:flex;flex-direction:column;align-items:stretch;gap:16px}
html.clinic-app-layout #tab-channels .garage-ch__item-meta{width:100%;min-width:0}
html.clinic-app-layout #tab-channels .garage-ch__item-meta>div{justify-content:space-between;align-items:flex-start;gap:8px}
html.clinic-app-layout #tab-channels .garage-ch__item-name{white-space:normal;overflow-wrap:anywhere;font-size:15px;font-weight:650;line-height:1.6;color:#36595e;overflow:visible}
html.clinic-app-layout #tab-channels .garage-ch__item-edit{display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;flex:none;padding:12px;margin:-8px -6px -4px 0;color:#758f93;border-radius:12px}
html.clinic-app-layout #tab-channels .garage-ch__item-meta>p{font-size:11px;line-height:1.75;align-items:baseline;margin-top:6px;overflow-wrap:anywhere}
html.clinic-app-layout #tab-channels .garage-ch__item-meta>p>span{flex:none;align-self:center}
html.clinic-app-layout #tab-channels .garage-ch__item-actions{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:8px;max-width:none;width:100%;border-top:1px solid #e4eced;padding-top:14px}
html.clinic-app-layout #tab-channels .garage-ch__item-actions button{min-height:44px;flex:1 1 105px;justify-content:center;padding:10px 9px;border:1px solid #dce7e8;border-radius:11px;font-size:11px;line-height:1.5;font-weight:600;background:#fff;color:#576f72;white-space:normal}
html.clinic-app-layout #tab-channels .garage-ch__item-actions .garage-ch__btn-connect{background:#147d89;color:white;border-color:#147d89}
html.clinic-app-layout #tab-channels .garage-ch__item-actions button[onclick^=trocarWhatsapp]{background:#eaf4f5;color:#1c6e79;border-color:#d5e6e8}
html.clinic-app-layout #tab-channels .garage-ch__item-actions button:is([onclick^=deletar],[onclick^=desconectar]){color:#a4615a;border-color:#f0e2df;background:#fffafa}
html.clinic-app-layout #tab-channels .garage-ch__item-actions button[onclick^=resetar]{color:#947032;background:#fffaf0;border-color:#eee3c8}
html.clinic-app-layout #tab-channels .garage-ch__item-actions>span{font-size:10px;font-weight:600;letter-spacing:0;text-transform:none;padding:6px 10px;border-radius:8px}
html.clinic-app-layout #tab-channels .garage-ch__badge{background:#e0eff1!important;color:#2a737d!important}
html.clinic-app-layout #tab-channels .garage-ch__limit-label{font-size:11px;font-weight:600;letter-spacing:0;text-transform:none;color:#688286;margin-bottom:7px}
html.clinic-app-layout #tab-channels .garage-ch__limit-text{font-size:13px;line-height:1.7;color:#416165}
html.clinic-app-layout #tab-channels .garage-ch__limit-track{height:5px;max-width:none;background:#e2e9ea;margin-top:12px}
html.clinic-app-layout #tab-channels #whatsapp-limit-progress:not(.bg-amber-500){background:#388c97}
html.clinic-app-layout #tab-channels #whatsapp-limit-hint{font-size:11px;line-height:1.6;margin-top:12px;color:#869182}
html.clinic-app-layout #tab-channels .garage-ch__tip-title{font-size:13px;font-weight:600;color:#5b797d;gap:8px}
html.clinic-app-layout #tab-channels .garage-ch__tip-body{font-size:11px;line-height:1.75;color:#8b978e;margin-top:8px}
html.clinic-app-layout #tab-channels #state-disconnected>div.rounded-full{width:60px;height:60px;margin-bottom:18px;border-radius:19px;background:#eef4f5;color:#839da1}
html.clinic-app-layout #tab-channels #state-disconnected>div.rounded-full svg{width:30px;height:30px;color:inherit}
html.clinic-app-layout #tab-channels :is(#state-disconnected,#state-qr) h3{font-size:18px!important;font-weight:650;line-height:1.4!important;margin-bottom:10px}
html.clinic-app-layout #tab-channels :is(#state-disconnected,#state-qr)>p{font-size:12px;line-height:1.75;color:#7b898b;margin-bottom:20px;font-weight:400}
html.clinic-app-layout #tab-channels #btn-generate-qr{width:100%;min-height:48px;padding:12px 10px;justify-content:center;gap:10px;font-size:13px;font-weight:600;background:#147d89;border-radius:13px;box-shadow:none}
html.clinic-app-layout #tab-channels #state-disconnected>ol{margin-top:22px;padding:16px;border:1px solid #e3eaeb;border-radius:14px;background:#f8fbfb;color:#7c8b8d;font-size:11px;line-height:1.75}
html.clinic-app-layout #tab-channels #state-qr>div.inline-block{display:block;width:fit-content;max-width:100%;margin:0 auto;padding:12px;border:1px solid #e3e9ea;border-radius:17px;box-shadow:none;background:white}
html.clinic-app-layout #tab-channels #qr-image{width:256px;max-width:100%;height:auto;aspect-ratio:1;object-fit:contain;border-radius:0}
html.clinic-app-layout #tab-channels :is(#state-loading,#state-qr)>div:last-child{display:flex;flex-wrap:wrap;flex-direction:row;gap:8px;justify-content:center;margin-top:22px}
html.clinic-app-layout #tab-channels :is(#state-loading,#state-qr)>div:last-child button{min-height:44px;flex:1 1 105px;border-radius:11px;border:1px solid #e3e9ea;padding:10px 8px;font-size:11px;text-decoration:none;background:#fafcfc}
html.clinic-app-layout #tab-channels #state-loading{padding:12px 0}
html.clinic-app-layout #tab-channels #state-loading>div:first-child{border-color:#edf2f3;border-top-color:#147d89}
html.clinic-app-layout #tab-channels #wa-loading-text{font-size:14px;line-height:1.6;color:#47686c}
html.clinic-app-layout #tab-channels #wa-loading-sub{font-size:12px;line-height:1.7;color:#839092;margin-top:7px}
html.clinic-app-layout #whatsapp-upsell-modal{align-items:flex-end;padding:24px 0 0;background:#19343866;backdrop-filter:blur(4px)}
html.clinic-app-layout #whatsapp-upsell-modal>div{max-height:calc(100dvh - 24px);overflow:auto;border-radius:24px 24px 0 0;padding:24px 20px max(22px,var(--clinic-dock-safe-bottom,env(safe-area-inset-bottom,0px)));box-shadow:0 -8px 40px #17393e20}
html.clinic-app-layout #whatsapp-upsell-modal h3{font-size:22px;font-weight:650;color:#23474c}
html.clinic-app-layout #whatsapp-upsell-modal p{font-size:12px;line-height:1.7;color:#7d8b8d}
html.clinic-app-layout #whatsapp-upsell-modal button{min-height:46px;padding:12px;border-radius:12px;font-size:12px}
html.clinic-app-layout #whatsapp-upsell-modal button:first-child{background:#147d89;color:white}
@media(min-width:700px){html.clinic-app-layout #whatsapp-upsell-modal{align-items:center;padding:24px}html.clinic-app-layout #whatsapp-upsell-modal>div{border-radius:24px}}

html.clinic-app-layout #whatsapp-upsell-modal>div>div:first-child{background:#eaf5f6!important;color:#187581!important}

/* Account-scoped WhatsApp: one card per number, with secondary actions folded away. */
html.clinic-app-layout #tab-channels .garage-ch{gap:18px}
html.clinic-app-layout #tab-channels .garage-ch__list-card{order:1;border:0;border-radius:0;overflow:visible}
html.clinic-app-layout #tab-channels .garage-ch__active{order:2}
html.clinic-app-layout #tab-channels .garage-ch:has(.garage-ch__item) .garage-ch__active{display:none}
html.clinic-app-layout #tab-channels .garage-ch:has(#wa-api-offline-warn:not(.hidden)) .garage-ch__active{display:block}
html.clinic-app-layout #tab-channels .garage-ch__tip{display:none}
html.clinic-app-layout #tab-channels .garage-ch__list-head{padding:0 0 16px;border:0}
html.clinic-app-layout #tab-channels .garage-ch__list-sub{font-size:13px;line-height:1.6;color:#788688}
html.clinic-app-layout #tab-channels .garage-ch__list{padding:0;gap:16px}
html.clinic-app-layout #tab-channels .garage-ch__item{padding:20px;border-radius:22px;background:#fff!important;border:1px solid #e0e8e9!important;box-shadow:0 3px 14px #25464a05}
html.clinic-app-layout #tab-channels .garage-ch__item--active{border-color:#bcd8dc!important;background:linear-gradient(130deg,#f4fafb,#fff 65%)!important}
html.clinic-app-layout #tab-channels .cam-wa-identity{display:flex;align-items:flex-start;gap:12px}
html.clinic-app-layout #tab-channels .cam-wa-icon{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:15px;background:#eaf4f5;color:#147d89;border:1px solid #dceaec}
html.clinic-app-layout #tab-channels .cam-wa-icon svg{width:23px;height:23px;stroke-width:1.7}
html.clinic-app-layout #tab-channels .garage-ch__item-meta{flex:1;width:auto}
html.clinic-app-layout #tab-channels .cam-wa-name{display:flex;flex-wrap:wrap;align-items:center!important;gap:6px 10px!important;justify-content:flex-start!important}
html.clinic-app-layout #tab-channels .garage-ch__item-name{font-size:16px;line-height:1.4;color:#254246}
html.clinic-app-layout #tab-channels .cam-wa-default{display:inline-flex;border:1px solid #d7e7e9;border-radius:6px;padding:3px 7px;color:#507d83;font-size:10px;font-weight:600}
html.clinic-app-layout #tab-channels .garage-ch__item-meta>p{font-size:12px;line-height:1.6;flex-wrap:wrap;margin-top:8px;gap:5px}
html.clinic-app-layout #tab-channels .cam-wa-primary{margin-top:18px}
html.clinic-app-layout #tab-channels .cam-wa-primary button{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;min-height:48px;border-radius:13px;padding:12px 15px;background:#147d89;color:white;font-size:13px;font-weight:600}
html.clinic-app-layout #tab-channels .cam-wa-primary svg{width:18px;height:18px;flex:none}
html.clinic-app-layout #tab-channels .cam-wa-manage{margin-top:10px}
html.clinic-app-layout #tab-channels .cam-wa-manage summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;gap:10px;cursor:pointer;padding:10px 2px;list-style:none;color:#748587;font-size:12px;font-weight:500}
html.clinic-app-layout #tab-channels .cam-wa-manage summary::-webkit-details-marker{display:none}
html.clinic-app-layout #tab-channels .cam-wa-manage summary svg{width:16px;height:16px;transition:transform .2s}
html.clinic-app-layout #tab-channels .cam-wa-manage[open] summary svg{transform:rotate(180deg)}
html.clinic-app-layout #tab-channels .garage-ch__item-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding-top:12px}
html.clinic-app-layout #tab-channels .garage-ch__item-actions button{width:100%;min-width:0;font-size:12px}
html.clinic-app-layout #tab-channels .garage-ch__item-actions button[onclick^=trocarWhatsApp]{background:#edf5f6;color:#276d76}
html.clinic-app-layout #tab-channels .garage-ch__limit{border:0;border-radius:17px;padding:17px 18px;background:#f4f7f7}
html.clinic-app-layout #tab-channels :is(button,summary):focus-visible{outline:2px solid #55a2ac;outline-offset:3px}
html.clinic-app-layout #tab-channels button:disabled{opacity:.6;cursor:wait}
@media(prefers-reduced-motion:reduce){html.clinic-app-layout #tab-channels .cam-wa-manage summary svg{transition:none}}

/* Scheduling sheet: clear sections, native modal focus, and independent form scrolling. */
html.clinic-app-layout .cp.ca-editor{background:transparent!important;padding:0!important}
html.clinic-app-layout .cp.ca-editor .cp-dialog.ca-dialog{position:fixed;inset:0;display:flex;flex-direction:column;gap:0;width:100%!important;max-width:640px!important;height:calc(100dvh - max(14px,env(safe-area-inset-top,0px)));max-height:none!important;margin:auto auto 0!important;padding:0!important;border:0!important;border-radius:26px 26px 0 0!important;background:#fff;color:#234044;overflow:hidden!important;box-shadow:0 -12px 60px #15353918}
html.clinic-app-layout .ca-dialog::backdrop{background:#16343866;backdrop-filter:blur(4px)}
html.clinic-app-layout .ca-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:23px 22px 20px;border-bottom:1px solid #e8edee;flex:none}
html.clinic-app-layout .ca-eyebrow{display:block;font-size:10px;letter-spacing:.11em;font-weight:600;color:#7b8c8e;margin-bottom:5px}
html.clinic-app-layout .cp.ca-editor .ca-header h3{font-size:29px!important;font-weight:700;letter-spacing:-1px;line-height:1.15;margin:0!important;color:#203a3e}
html.clinic-app-layout .ca-close{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#f3f7f7;color:#64797c;border:1px solid #e6edee;flex:none}
html.clinic-app-layout .ca-close svg{width:20px;height:20px}
html.clinic-app-layout .ca-dialog>form{display:flex;flex-direction:column;min-height:0;flex:1;margin:0;overflow:hidden}
html.clinic-app-layout .ca-body{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;padding:20px 22px 24px;scroll-padding:20px;-webkit-overflow-scrolling:touch}
html.clinic-app-layout .ca-day{padding:16px 17px;border-radius:18px;background:#eef6f7;border:1px solid #dceaec}
html.clinic-app-layout .ca-day>p{font-size:12px;color:#6b8285;line-height:1.6;margin:10px 0 0}
html.clinic-app-layout .ca-section{margin-top:24px}
html.clinic-app-layout .ca-section>h4{display:flex;align-items:center;gap:9px;font-size:15px;font-weight:650;letter-spacing:-.2px;color:#29484c;margin:0 0 16px}
html.clinic-app-layout .ca-section>h4>span{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:#eaf3f4;color:#5c868b;font-size:10px;font-weight:600;letter-spacing:0}
html.clinic-app-layout .ca-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
html.clinic-app-layout .ca-dialog label{display:block;min-width:0;font-size:12px;line-height:1.5;font-weight:550;color:#667b7e}
html.clinic-app-layout .ca-dialog :is(input,select,textarea){display:block;width:100%;min-width:0;max-width:100%;min-height:48px;margin:7px 0 0;padding:12px 13px;border:1px solid #dfe7e8;border-radius:12px;background:#fff;color:#294346;font-family:inherit;font-size:16px!important;line-height:1.4;font-weight:400;box-shadow:none;box-sizing:border-box}
html.clinic-app-layout .ca-dialog select{appearance:none;-webkit-appearance:none;padding-right:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2373887a' stroke-width='1.6'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat;text-overflow:ellipsis}
html.clinic-app-layout .ca-dialog input[type=date]{appearance:none;-webkit-appearance:none;width:100%;height:48px;min-width:0;text-align:left}
html.clinic-app-layout .ca-dialog input[type=date]::-webkit-date-and-time-value{text-align:left;min-height:22px}
html.clinic-app-layout .ca-dialog input:read-only{color:#667d80;background:#f5f8f8;border-color:#e6eced}
html.clinic-app-layout .ca-dialog :is(input,select,textarea):focus{outline:2px solid #77b1b9;outline-offset:2px;border-color:#b0d1d5}
html.clinic-app-layout .ca-dialog textarea{min-height:104px;resize:vertical;line-height:1.6}
html.clinic-app-layout .ca-dialog .cp-required{color:#538c94;font-weight:500}
html.clinic-app-layout .ca-price{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
html.clinic-app-layout .ca-extra{border:1px solid #e3eaeb;border-radius:17px;padding:0;margin-top:24px;background:#fff}
html.clinic-app-layout .ca-extra>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;min-height:68px;padding:15px 16px;font-size:13px;font-weight:600;color:#4c676b}
html.clinic-app-layout .ca-extra>summary::-webkit-details-marker{display:none}
html.clinic-app-layout .ca-extra>summary small{display:block;font-size:11px;font-weight:400;line-height:1.5;color:#89968e;margin-top:3px}
html.clinic-app-layout .ca-extra>summary svg{width:17px;height:17px;flex:none;transition:transform .2s ease}
html.clinic-app-layout .ca-extra[open]>summary svg{transform:rotate(180deg)}
html.clinic-app-layout .ca-extra>.ca-fields{padding:4px 16px 18px}
html.clinic-app-layout .ca-help{font-size:11px!important;line-height:1.7!important;color:#8b9799!important;margin:15px 2px 0!important}
html.clinic-app-layout .ca-dialog .cp-form-error:empty{display:none}
html.clinic-app-layout .ca-dialog .cp-form-error:not(:empty){font-size:12px;line-height:1.6;border:1px solid #ecd9d7;background:#fff7f6;border-radius:12px;padding:12px;margin:16px 0 0}
html.clinic-app-layout .cp.ca-editor footer{position:static!important;flex:none;display:grid;grid-template-columns:1fr 1.6fr;gap:10px;margin:0!important;padding:15px 22px max(18px,var(--clinic-dock-safe-bottom,env(safe-area-inset-bottom,0px)))!important;border-top:1px solid #e7eced;background:#fff}
html.clinic-app-layout .ca-dialog footer button{min-height:48px!important;border-radius:13px;padding:12px;font-size:14px;font-weight:600;background:white;color:#717f81;border-color:#dfe7e8}
html.clinic-app-layout .ca-dialog footer button.primary{background:#147d89;color:white;border-color:#147d89}
html.clinic-app-layout .ca-dialog :is(button,summary):focus-visible{outline:2px solid #77b1b9;outline-offset:2px}
@media(max-width:359px){html.clinic-app-layout .ca-body{padding:18px 18px 22px}html.clinic-app-layout .ca-header{padding:20px 18px}html.clinic-app-layout .ca-price{grid-template-columns:minmax(0,1fr)}html.clinic-app-layout .cp.ca-editor footer{padding-left:18px!important;padding-right:18px!important}}
@media(min-width:700px){html.clinic-app-layout .cp.ca-editor .cp-dialog.ca-dialog{width:calc(100% - 48px)!important;height:min(900px,90dvh);margin:auto!important;border-radius:26px!important}html.clinic-app-layout .ca-section>.ca-fields{grid-template-columns:repeat(2,minmax(0,1fr))}html.clinic-app-layout .ca-section>.ca-fields>label:first-child,html.clinic-app-layout .ca-price{grid-column:1/-1}}
@media(prefers-reduced-motion:no-preference){html.clinic-app-layout .ca-dialog[open]{animation:ca-sheet-enter .22s ease-out}@keyframes ca-sheet-enter{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}}
@media(prefers-reduced-motion:reduce){html.clinic-app-layout .ca-extra>summary svg{transition:none}}

html.clinic-app-layout .ca-dialog label:has(input:not([required])) .cp-required{display:none}
@media(min-width:700px){html.clinic-app-layout .ca-procedure>.ca-fields>label{grid-column:1/-1}}

/* New patient: essentials first, explicit delivery choices, optional details on demand. */
html.clinic-app-layout .np-editor .np-basic{margin-top:0}
html.clinic-app-layout .np-delivery{min-width:0;margin:24px 0 0;padding:0;border:0}
html.clinic-app-layout .np-delivery>legend{display:flex;align-items:center;gap:9px;padding:0;font-size:15px;font-weight:650;letter-spacing:-.2px;color:#29484c}
html.clinic-app-layout .np-delivery>legend>span{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:#eaf3f4;color:#5c868b;font-size:10px;font-weight:600;letter-spacing:0}
html.clinic-app-layout .np-delivery>p{font-size:12px;line-height:1.65;color:#7a8b8d;margin:9px 0 14px}
html.clinic-app-layout .np-editor .np-choice{display:flex;align-items:center;gap:12px;min-height:78px;padding:15px;margin:10px 0 0;border:1px solid #e1e9ea;border-radius:16px;background:#fff;cursor:pointer;transition:background .15s,border-color .15s}
html.clinic-app-layout .np-editor .np-choice:has(:checked){background:#edf6f7;border-color:#a8ced3}
html.clinic-app-layout .np-editor .np-choice:focus-within{outline:2px solid #77b1b9;outline-offset:2px}
html.clinic-app-layout .np-editor .np-choice input[type=radio]{appearance:auto;-webkit-appearance:radio;flex:none;width:18px;height:18px;min-height:18px;max-width:18px;padding:0;margin:0;accent-color:#147d89;border:0;outline:0;background:none;box-shadow:none}
html.clinic-app-layout .np-choice>span{min-width:0;display:block}
html.clinic-app-layout .np-choice strong{display:block;font-size:13px;line-height:1.5;font-weight:600;color:#38595d}
html.clinic-app-layout .np-choice small{display:block;font-size:11px;line-height:1.6;font-weight:400;color:#7c8b8d;margin-top:4px}
html.clinic-app-layout .np-optional{margin-top:24px;padding-top:9px;border-top:1px solid #e8edee}
html.clinic-app-layout .np-optional .ca-extra{margin-top:12px}
html.clinic-app-layout .np-editor textarea{min-height:110px!important}
@media(min-width:700px){html.clinic-app-layout .np-optional .ca-fields{grid-template-columns:repeat(2,minmax(0,1fr))}html.clinic-app-layout .np-optional label:has([name=address],textarea,[name=messagesOptOut],[name=responsibleName]){grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){html.clinic-app-layout .np-editor .np-choice{transition:none}}

/* App funnel: stage navigation and a single, naturally scrolling list. */
.cf-stage-tabs,.cf-overview,.cf-empty{display:none}
html.clinic-app-layout.clinic-app-layout.clinic-app-layout #tab-kanban:not(.hidden){display:block;overflow-y:auto!important;overflow-x:hidden!important}
html.clinic-app-layout #tab-kanban .kanban-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin:0!important;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none}
html.clinic-app-layout #tab-kanban .kanban-toolbar>div{display:contents}
html.clinic-app-layout #kanban-search{grid-column:1/-1;order:0;width:100%;min-width:0;max-width:none;height:48px;padding:12px 15px;border:1px solid #e1e8e9;background:#f7fafa;color:#2f484b}
html.clinic-app-layout #kanban-search::placeholder{color:#8a9698}
html.clinic-app-layout #kanban-tag-filter{order:1;width:100%;min-width:0;max-width:100%;height:46px;padding:10px 12px;border:1px solid #e0e8e9;background:white;color:#657c7f;font-size:13px!important}
html.clinic-app-layout #tab-kanban .kanban-toolbar button:not(.cam-heading-source){order:2;min-width:0;min-height:46px;justify-content:center;padding:10px;border-radius:12px;border:1px solid #dce7e9;background:#f1f6f7;color:#446e74;font-size:12px;font-weight:600;box-shadow:none}
html.clinic-app-layout #tab-kanban .cf-overview{display:block;margin:20px 0 12px;color:#818e90;font-size:12px;line-height:1.6}
html.clinic-app-layout #tab-kanban .cf-stage-tabs{display:flex;gap:8px;overflow-x:auto;margin:0 0 22px;padding:2px 2px 8px;scrollbar-width:none;overscroll-behavior-x:contain}
html.clinic-app-layout .cf-stage-tabs::-webkit-scrollbar{display:none}
html.clinic-app-layout .cf-stage-tabs button{display:flex;align-items:center;gap:8px;flex:none;min-height:46px;padding:11px 13px;border:1px solid #e2e9ea;border-radius:14px;color:#79888a;background:#fff;font-size:12px;font-weight:500;white-space:nowrap}
html.clinic-app-layout .cf-stage-tabs b{display:grid;place-items:center;min-width:22px;height:22px;padding:0 5px;border-radius:7px;background:#f3f6f6;color:#7b888a;font-size:10px;font-weight:600}
html.clinic-app-layout .cf-stage-tabs button[aria-selected=true]{background:#eaf5f6;border-color:#b5d4d8;color:#006876;font-weight:650}
html.clinic-app-layout .cf-stage-tabs button[aria-selected=true] b{background:#d6eaed;color:#277782}
html.clinic-app-layout #tab-kanban .kanban-board{display:block;flex:none;width:100%;height:auto;min-height:0;padding:0!important;margin:0;overflow:visible;scroll-snap-type:none}
html.clinic-app-layout #tab-kanban .kanban-column{display:none!important;min-width:0!important;width:100%!important;height:auto;min-height:0;opacity:1;flex:none;scroll-snap-align:none}
html.clinic-app-layout #tab-kanban .kanban-column.cf-current{display:flex!important}
html.clinic-app-layout #tab-kanban .kanban-column>div:first-child{padding:0 2px 14px;margin:0;border:0;background:transparent;box-shadow:none;border-radius:0}
html.clinic-app-layout #tab-kanban .kanban-column h3{font-size:17px!important;font-weight:650;text-transform:none;letter-spacing:-.02em}
html.clinic-app-layout #tab-kanban [id^=count-]{padding:5px 9px;border-radius:8px;background:#f0f4f5;color:#6b8083;font-size:11px;font-weight:600}
html.clinic-app-layout #tab-kanban [id^=col-]{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:14px;flex:none;min-height:0;height:auto;padding:0;background:transparent;overflow:visible}
html.clinic-app-layout #tab-kanban [id^=col-]>*{margin:0!important;min-width:0}
html.clinic-app-layout #tab-kanban .kanban-card{display:flex;flex-direction:column;gap:12px;padding:19px;border:1px solid #e1e9ea;border-radius:21px;background:white;box-shadow:0 3px 12px #27444805}
html.clinic-app-layout #tab-kanban .kanban-card-active{border-color:#73afb7;background:#f7fbfc}
html.clinic-app-layout #tab-kanban .kanban-card>div:has(>h4){display:contents}
html.clinic-app-layout #tab-kanban .kanban-card h4{font-size:17px;font-weight:650;line-height:1.45;white-space:normal;overflow:visible;overflow-wrap:anywhere;color:#294346;margin:0;padding-right:12px;order:0}
html.clinic-app-layout #tab-kanban .kanban-card>div:has(>h4)>div{order:10;display:flex;gap:10px;border-top:1px solid #edf1f1;padding-top:13px;margin-top:2px}
html.clinic-app-layout #tab-kanban .kanban-card :is(.card-actions,.card-delete){display:flex;align-items:center;justify-content:center;min-height:44px;opacity:1;border-radius:12px;box-shadow:none}
html.clinic-app-layout #tab-kanban .card-actions{order:0;flex:1;padding:10px 14px;background:#eaf4f5;color:#167480;font-size:12px;font-weight:600}
html.clinic-app-layout #tab-kanban .card-delete{order:1;flex:none;width:44px;padding:12px;border:1px solid #f0e3e1;color:#a57872;background:#fffafa}
html.clinic-app-layout #tab-kanban .kanban-card>div:not(:has(>h4)):not(.absolute){margin:0;color:#818f91;font-size:12px;line-height:1.5}
html.clinic-app-layout #tab-kanban .kanban-card>p{font-size:12px;line-height:1.7;padding:12px;border:0;border-radius:12px;background:#f6f9f9;color:#7c8b8d}
html.clinic-app-layout #tab-kanban .kanban-card>.absolute{right:13px;top:15px;border-radius:8px;box-shadow:none;font-size:10px;background:#e5f0f2;color:#4a777d}
html.clinic-app-layout #tab-kanban .kanban-card:has(>.absolute) h4{padding-right:32px}
html.clinic-app-layout #tab-kanban .kanban-tag-chip{border-radius:7px;font-size:10px;line-height:1.5;padding:4px 7px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
html.clinic-app-layout #tab-kanban .cf-empty{display:flex;flex-direction:column;align-items:center;gap:8px;padding:34px 22px;border:1px dashed #d6e3e5;border-radius:22px;background:#fafcfc;text-align:center;grid-column:1/-1}
html.clinic-app-layout .cf-empty>span{font-size:30px;color:#9fbec2;line-height:1.2}
html.clinic-app-layout .cf-empty strong{font-size:14px;font-weight:600;color:#547074}
html.clinic-app-layout .cf-empty p{font-size:12px;line-height:1.7;color:#899597;max-width:270px}
html.clinic-app-layout #kanban-load-more-wrap{margin-top:18px;padding:0}
html.clinic-app-layout #kanban-load-more-wrap button{min-height:44px;width:100%;background:#eef5f6;color:#2b737c;border-radius:12px;font-size:12px;padding:12px}
@media(min-width:700px){html.clinic-app-layout #tab-kanban [id^=col-]{grid-template-columns:repeat(2,minmax(0,1fr))}html.clinic-app-layout #tab-kanban .kanban-card{align-self:start}html.clinic-app-layout #tab-kanban .kanban-toolbar{grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr)}html.clinic-app-layout #kanban-search{grid-column:auto}}

/* The lead sheet keeps its controls, while its details and conversation scroll together. */
html.clinic-app-layout #lead-panel-backdrop{z-index:129;background:#16343866}
html.clinic-app-layout #lead-panel{z-index:130;height:100dvh;max-height:100dvh;width:100%;max-width:640px;border:0;box-shadow:-8px 0 40px #17393e20;background:white;color:#294346}
html.clinic-app-layout #lead-panel>div:first-child{padding:max(18px,env(safe-area-inset-top,0px)) 18px 18px;background:white;border-bottom:1px solid #e6eced;gap:12px}
html.clinic-app-layout #lead-panel-avatar{width:44px;height:44px;font-size:17px;border-radius:15px;background:#e6f2f4;color:#26737d;box-shadow:none}
html.clinic-app-layout #lead-panel-name{font-size:18px;font-weight:650;line-height:1.45;white-space:normal;overflow-wrap:anywhere}
html.clinic-app-layout #lead-panel-phone{font-family:inherit;font-size:12px;line-height:1.6;color:#879395;margin-top:5px}
html.clinic-app-layout #lead-panel :is(#lead-panel-status,#lead-panel-owner){font-size:10px;line-height:1.5;text-transform:none;padding:5px 8px;border-radius:8px;font-weight:600}
html.clinic-app-layout #lead-panel>div:first-child button{min-width:40px;min-height:40px;border-radius:12px}
html.clinic-app-layout #lead-panel .cf-lead-body{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;background:#fff}
html.clinic-app-layout .cf-lead-body>div:first-child{padding:18px;background:#fafcfc;border-color:#e7eced}
html.clinic-app-layout .cf-lead-body>div:first-child>.grid>div{padding:13px;border-radius:14px;border-color:#e2eaeb}
html.clinic-app-layout #lead-panel :is(#lead-panel-date,#lead-panel-msg-count){font-size:13px;color:#4e696d}
html.clinic-app-layout #lead-panel :is(#lead-panel-tag-picker,#lead-panel-tags){gap:8px}
html.clinic-app-layout #lead-panel :is(#lead-panel-tags,#lead-panel-tag-picker) button{min-height:32px;border-radius:8px}
html.clinic-app-layout #lead-panel :is(select,input){min-width:0;max-width:100%;background:white;border-color:#dfe7e8;color:#415f63;padding:10px 12px}
html.clinic-app-layout #lead-panel .cf-lead-body button:not(.kanban-tag-chip){min-height:44px;border-radius:12px;font-size:12px;font-weight:550;white-space:normal}
html.clinic-app-layout #lead-panel button[onclick="abrirChatCompletoDoPainel()"]{color:#2a737d;background:#eaf4f5;border-color:#d4e7e9}
html.clinic-app-layout #lead-panel-messages{flex:none;min-height:180px;max-height:none;overflow:visible;padding:20px 18px;background:#f4f8f8}
html.clinic-app-layout #lead-panel>div:last-child{padding:13px 18px max(16px,var(--clinic-dock-safe-bottom,env(safe-area-inset-bottom,0px)));border-color:#e4eaeb}
html.clinic-app-layout #lead-panel-input{min-height:48px;padding:12px;line-height:1.5;background:white}
html.clinic-app-layout #lead-panel-send{width:46px;height:46px;min-height:46px;display:grid;place-items:center;padding:12px;background:#147d89;border-radius:14px;box-shadow:none}
html.clinic-app-layout #lead-panel-takeover{background:#edf6f7;border-color:#d7e8ea}
html.clinic-app-layout #lead-panel-takeover p{color:#5a797d}
html.clinic-app-layout #lead-panel-takeover button{background:#147d89}
html.clinic-app-layout :is(#manual-lead-modal,#kanban-tags-modal){align-items:flex-end;padding:20px 0 0;background:#16343866}
html.clinic-app-layout :is(#manual-lead-modal,#kanban-tags-modal)>div{display:flex;flex-direction:column;width:100%;max-width:640px;max-height:calc(100dvh - 20px);border:0;border-radius:24px 24px 0 0;background:white;box-shadow:0 -10px 45px #17393e20;overflow:auto}
html.clinic-app-layout :is(#manual-lead-modal,#kanban-tags-modal)>div>div:first-child{background:white;padding:22px 20px 18px;border-color:#e7eced;flex:none}
html.clinic-app-layout :is(#manual-lead-modal,#kanban-tags-modal) h3{font-size:23px;font-weight:650;line-height:1.3;letter-spacing:-.6px;color:#253f43}
html.clinic-app-layout :is(#manual-lead-modal,#kanban-tags-modal) p{line-height:1.65;color:#829086}
html.clinic-app-layout :is(#manual-lead-modal,#kanban-tags-modal) label{font-size:12px;font-weight:550;text-transform:none;letter-spacing:0;color:#6b7f82}
html.clinic-app-layout :is(#manual-lead-modal,#kanban-tags-modal) :is(input,select){border-color:#dee7e8;background:#fff;color:#38585c;padding:12px}
html.clinic-app-layout :is(#manual-lead-modal,#kanban-tags-modal) button{min-height:44px;border-radius:12px;font-size:12px;font-weight:600}
html.clinic-app-layout :is(#manual-lead-modal,#kanban-tags-modal)>div>div:last-child{background:white;padding:16px 20px max(20px,var(--clinic-dock-safe-bottom,env(safe-area-inset-bottom,0px)));border-color:#e7eced}
html.clinic-app-layout :is(#manual-lead-save-btn,#kanban-tags-modal button[onclick="adicionarTagAoCatalogo()"]){background:#147d89;color:white;border-color:#147d89}
html.clinic-app-layout :is(#manual-lead-modal,#kanban-tags-modal)>div>div:first-child>button{width:44px;flex:none;background:#f4f8f8;color:#6e8285}
@media(min-width:700px){html.clinic-app-layout :is(#manual-lead-modal,#kanban-tags-modal){align-items:center;padding:24px}html.clinic-app-layout :is(#manual-lead-modal,#kanban-tags-modal)>div{border-radius:24px}}
@media(prefers-reduced-motion:no-preference){html.clinic-app-layout .kanban-column.cf-current{animation:cam-home-enter .18s ease-out}}
@media(prefers-reduced-motion:reduce){html.clinic-app-layout #lead-panel,html.clinic-app-layout #lead-panel-backdrop{transition:none}}

html.clinic-app-layout #lead-panel.open{visibility:visible!important}
html.clinic-app-layout #tab-kanban .card-actions{background:#147d89!important;color:white!important}
html.clinic-app-layout #kanban-new-tag-colors button{width:40px;height:40px;min-height:40px;border-radius:50%;flex:none}
html.clinic-app-layout #lead-panel-avatar{background:#e6f2f4!important;color:#26737d!important}
html.clinic-app-layout :is(#manual-lead-modal,#kanban-tags-modal)>div{overflow:hidden}
html.clinic-app-layout :is(#manual-lead-modal,#kanban-tags-modal)>div>div:nth-child(2){flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
html.clinic-app-layout :is(#manual-lead-modal,#kanban-tags-modal)>div>div:last-child{flex:none}

/* Loading is distinct from a confirmed empty patient workspace. */
.cp-loading-state{padding:16px 0;color:#617679}
.cp-loading-state>p{font-size:13px;line-height:1.7;margin:0 0 20px}
.cp-loading-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:24px}
.cp-loading-summary i,.cp-loading-rows i{display:block;border-radius:16px;background:#eff3f4;height:94px}
.cp-loading-rows{display:grid;gap:12px}.cp-loading-rows i{height:78px}
.cp-data-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;margin-bottom:18px;border:1px solid #e2e9ea;border-radius:14px;background:#f5f9f9;color:#5c7477;font-size:12px;line-height:1.6}
.cp-data-notice button{flex:none}
@media(max-width:400px){.cp-data-notice{flex-direction:column;align-items:flex-start}}
@media(prefers-reduced-motion:no-preference){.cp-loading-summary i,.cp-loading-rows i{animation:cp-loading-pulse 1.4s ease-in-out infinite alternate}@keyframes cp-loading-pulse{to{opacity:.4}}}

/* WhatsApp: plan first; connection sheet follows the clinic app's layout. */
html.clinic-app-layout #tab-channels .garage-ch__limit{order:1}
html.clinic-app-layout #tab-channels .garage-ch__list-card{order:2}
html.clinic-app-layout #tab-channels .garage-ch__active{order:3}
html.clinic-app-layout #tab-channels .garage-ch__list-sub{display:none}
/* WhatsApp connection presentation is owned by whatsapp-standard.css and fluxo-whatsapp-connect.css. */

/* Procedure plans: readable healing and return periods, with the shared app editor. */
html.clinic-app-layout .cs-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:26px 0 16px}
html.clinic-app-layout .cs-section-head h3{font-size:19px;font-weight:650;letter-spacing:-.025em;margin:0}
html.clinic-app-layout .cs-section-head>span{font-size:11px;color:#718486}
html.clinic-app-layout .cs-list{display:grid;gap:16px;grid-template-columns:minmax(0,1fr)}
html.clinic-app-layout .cs-card{padding:20px;border:1px solid #e0e9ea;border-radius:22px;background:#fff;min-width:0}
html.clinic-app-layout .cs-card-head{display:flex;align-items:center;gap:12px;margin-bottom:20px;min-width:0}
html.clinic-app-layout .cs-icon{display:grid;place-items:center;flex:none;width:42px;height:42px;border-radius:14px;background:#eaf5f6;color:#147d89}
html.clinic-app-layout .cs-icon svg{width:23px;height:23px}
html.clinic-app-layout .cs-card h4{font-size:17px;font-weight:650;line-height:1.4;letter-spacing:-.025em;margin:0;overflow-wrap:anywhere;flex:1}
html.clinic-app-layout .cs-inactive{font-size:10px;color:#8a7869;background:#f6f1eb;border-radius:7px;padding:5px 8px;flex:none}
html.clinic-app-layout .cs-plan{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0}
html.clinic-app-layout .cs-plan>div{padding:14px 12px;border-radius:14px;background:#f4f8f8;min-width:0}
html.clinic-app-layout .cs-plan dt{font-size:10px;text-transform:none;letter-spacing:0;font-weight:500;color:#6f8386;line-height:1.5}
html.clinic-app-layout .cs-plan dd{font-size:17px;line-height:1.4;letter-spacing:-.025em;font-weight:650;margin:8px 0 0;color:#2b555a;overflow-wrap:anywhere}
html.clinic-app-layout .cs-plan>div:last-child dd{font-size:14px;font-weight:600;letter-spacing:-.015em}
html.clinic-app-layout .cs-card-actions{display:flex;align-items:center;gap:10px;margin-top:18px}
html.clinic-app-layout .cs-card-actions .cp-btn{min-height:44px;padding:10px 14px;font-size:12px;border-radius:12px}
html.clinic-app-layout .cs-card-actions .primary{flex:1;background:#147d89;color:#fff;border-color:#147d89}
html.clinic-app-layout .cs-card-actions .cs-delete{background:transparent;color:#96756b;border-color:transparent;flex:none}
html.clinic-app-layout .cs-note{margin-top:20px;padding:17px 18px;border-radius:17px;background:#f5f8f8;border:1px solid #e8edee}
html.clinic-app-layout .cs-note>strong{font-size:12px;font-weight:600;color:#526c6f}
html.clinic-app-layout .cs-note p{font-size:12px;line-height:1.7;color:#78898b;margin:7px 0 0}
html.clinic-app-layout .cs-empty{padding:30px 20px;border:1px dashed #d5e3e5;border-radius:20px;background:#f8fbfb;text-align:center;grid-column:1/-1}
html.clinic-app-layout .cs-empty h4{font-size:18px;margin:0 0 10px}
html.clinic-app-layout .cs-empty p{font-size:13px;line-height:1.7;margin:0 0 20px}
html.clinic-app-layout .cs-editor .ca-section:first-child{margin-top:0}
html.clinic-app-layout .cs-editor .cs-duration{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
html.clinic-app-layout .cs-editor [data-return-settings]{padding:16px;border-radius:15px;border:1px solid #e1eaeb;background:#f5f9f9}
html.clinic-app-layout .cs-editor .ca-header h3{font-size:25px!important;letter-spacing:-.035em}
html.clinic-app-layout .cs-editor .ca-help{color:#718284!important}
@media(min-width:700px){html.clinic-app-layout .cs-list{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}}
@media(max-width:360px){html.clinic-app-layout .cs-card{padding:16px}html.clinic-app-layout .cs-card h4{font-size:16px}html.clinic-app-layout .cs-card-head{gap:9px}html.clinic-app-layout .cs-icon{width:36px;height:36px}html.clinic-app-layout .cs-editor .ca-header{gap:8px;padding-inline:18px}html.clinic-app-layout .cs-editor .ca-header h3{font-size:22px!important}}

html.clinic-app-layout #tab-clinic-packages .cp-page-heading{display:none!important}

/* Inventory opens without highlighting an action; category labels can wrap fully. */
.si-dialog .si-header h2:focus{outline:none}
.si-dialog .si-filter{grid-template-columns:minmax(0,1fr)}
.si-category-options{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.si-dialog .si-category-options button{min-width:0;max-width:100%;min-height:42px;padding:10px 13px;border:1px solid #e0e8e9;border-radius:12px;background:#f7f9f9;color:#63787b;font-size:12px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;text-align:left}
.si-dialog .si-category-options [aria-pressed=true]{background:#eaf5f6;border-color:#b5d4d8;color:#006876}
.si-dialog .si-field-grid>label:has(select[name=category]){grid-column:1/-1}

/* Returns: date groups, clear status filters and compact existing appointment actions. */
html.clinic-app-layout .cr-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:24px}
html.clinic-app-layout .cr-filters button{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:14px 12px;border:1px solid #e1e9ea;border-radius:16px;background:#f6f9f9;min-width:0;text-align:left;font-family:inherit}
html.clinic-app-layout .cr-filters span{font-size:11px;line-height:1.5;font-weight:500;color:#6b7f82}
html.clinic-app-layout .cr-filters strong{font-size:25px;line-height:1.1;font-weight:650;letter-spacing:-.035em;color:#35575c;overflow-wrap:anywhere}
html.clinic-app-layout .cr-filters [data-value=overdue] strong{color:#a07337}
html.clinic-app-layout .cr-filters [aria-pressed=true]{background:#eaf5f6;border-color:#9fc9ce}
html.clinic-app-layout .cr-filters [aria-pressed=true] span,html.clinic-app-layout .cr-filters [aria-pressed=true] strong{color:#006c7a}
html.clinic-app-layout .cr-search{display:block;margin:0 0 20px;font-size:12px;color:#5d7578;font-weight:550}
html.clinic-app-layout .cr-search .cp-search-field{display:block;position:relative;margin-top:9px}
html.clinic-app-layout .cr-search svg{position:absolute;width:19px;height:19px;left:14px;top:50%;transform:translateY(-50%);color:#809598;pointer-events:none}
html.clinic-app-layout .cr-search input{width:100%;min-width:0;min-height:48px;padding:12px 12px 12px 42px!important;border-color:#e0e8e9;background:#f7f9f9;color:#325458;font-size:16px;line-height:1.5}
html.clinic-app-layout .cr-search input::placeholder{font-size:12px;color:#809193}
html.clinic-app-layout .cr-list-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 22px}
html.clinic-app-layout .cr-list-heading h3{font-size:19px;line-height:1.4;font-weight:650;letter-spacing:-.025em;margin:0}
html.clinic-app-layout #cr-count{font-size:11px;line-height:1.5;color:#6d8386}
html.clinic-app-layout .cr-results{padding:0!important;border:0!important;background:none!important}
html.clinic-app-layout .cr-day+.cr-day{margin-top:24px}
html.clinic-app-layout .cr-day-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin:0 0 12px}
html.clinic-app-layout .cr-day-heading h3{font-size:12px;line-height:1.6;font-weight:600;color:#5c767a;margin:0;overflow-wrap:anywhere}
html.clinic-app-layout .cr-day-heading>span{font-size:10px;color:#819294;flex:none}
html.clinic-app-layout .cr-day-cards{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-items:start}
html.clinic-app-layout .cr-page .cp-agenda__appointment{margin:0!important;border:1px solid #e0e9ea!important;background:white!important;min-width:0;box-shadow:none}
html.clinic-app-layout .cr-page .cp-agenda__appointment-main{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:12px!important}
html.clinic-app-layout .cr-page .cp-agenda__patient{grid-column:1/-1;min-width:0}
html.clinic-app-layout .cr-page .cp-agenda__patient>div{min-width:0}
html.clinic-app-layout .cr-page .cp-agenda__service,html.clinic-app-layout .cr-page .cp-agenda__payment{display:flex;flex-direction:column;gap:5px}
html.clinic-app-layout .cr-page :is(.cp-agenda__service,.cp-agenda__payment)>small{font-size:10px;color:#7a8c8e}
html.clinic-app-layout .cr-page :is(.cp-agenda__service,.cp-agenda__payment)>span{font-size:10px;line-height:1.6;overflow-wrap:anywhere}
html.clinic-app-layout .cr-page .cp-agenda__tag{align-self:flex-start;padding:3px 6px;font-size:9px;background:#e8f2f3;color:#5b7f84}
html.clinic-app-layout .cr-page .cp-agenda__appointment-actions{display:flex;flex-direction:column;align-items:stretch;gap:6px!important}
html.clinic-app-layout .cr-page .cp-agenda__appointment-actions>.cp-btn{width:100%;min-height:46px;border-radius:12px;padding:10px 14px;font-size:13px;background:#147d89;border-color:#147d89;color:white}
html.clinic-app-layout .cr-page .pp-appointment-actions>summary{padding:12px 1px;font-size:12px;min-height:44px}
html.clinic-app-layout .cr-page .cp-agenda__secondary-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important}
html.clinic-app-layout .cr-page .cp-agenda__secondary-actions .cp-btn{min-height:44px!important;min-width:0;white-space:normal;line-height:1.5;font-weight:550}
html.clinic-app-layout .cr-page .cp-agenda__state{display:flex;flex-direction:column;align-items:flex-start}
html.clinic-app-layout .cr-page .cp-agenda__state>span:not(.cp-badge){font-size:11px;line-height:1.7;color:#73888b}
html.clinic-app-layout .cr-page .cp-agenda__note{font-size:12px;line-height:1.7;overflow-wrap:anywhere}
html.clinic-app-layout .cr-empty{padding:30px 20px;border:1px dashed #d6e3e5;border-radius:20px;background:#f8fbfb;text-align:center}
html.clinic-app-layout .cr-empty h3{font-size:18px;line-height:1.4;letter-spacing:-.025em;margin:0 0 10px}
html.clinic-app-layout .cr-empty p{font-size:12px;line-height:1.7;color:#798b8d;margin:0}
html.clinic-app-layout .cr-empty button{margin-top:18px;min-height:44px}
@media(max-width:430px){html.clinic-app-layout .cr-filters{grid-template-columns:repeat(2,minmax(0,1fr))}html.clinic-app-layout .cr-filters button{flex-direction:row;align-items:center;justify-content:space-between;padding:14px}html.clinic-app-layout .cr-filters strong{font-size:23px}}
@media(min-width:780px){html.clinic-app-layout .cr-day-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Authenticated stock catalog and owner-only management. */
.si-dialog [hidden]{display:none!important}
.si-dialog .si-photo{width:64px;height:72px;object-fit:cover;border-radius:12px;flex:none;background:#eff4f5}
.si-dialog .si-sale-price{display:block;color:#147d89;font-size:16px;margin-top:10px}
.si-dialog .si-tools{display:flex;flex-wrap:wrap;gap:8px}
.si-dialog .si-section-heading{flex-wrap:wrap}
.si-dialog .si-tools button{min-height:44px;white-space:normal}
.si-dialog .si-item-actions{flex-wrap:wrap}
.si-dialog .si-item-actions button{min-width:70px;flex:1}
.si-dialog .si-private{margin-top:28px;padding:20px 16px;border:1px solid #dce7e8;border-radius:18px;background:#f7fafa}
.si-dialog .si-private legend{padding:0 6px;font-size:15px}
.si-dialog input[type=file]{font-size:12px;min-width:0}
.si-dialog .si-access-list{display:grid;gap:16px;margin:20px 0}
.si-dialog .si-permission-card,.si-dialog .si-finance-items article{padding:18px;border:1px solid #e0e9ea;border-radius:16px;overflow-wrap:anywhere}
.si-dialog .si-permission-card h3{margin:0 0 6px;font-size:18px}
.si-dialog .si-permission-card p,.si-dialog .si-finance-items p{font-size:13px;line-height:1.6;color:#617375}
.si-dialog .si-permission-card label{display:flex;align-items:center;gap:12px;min-height:48px;font-size:14px}
.si-dialog .si-permission-card input{width:20px;height:20px;accent-color:#147d89}
.si-dialog .si-permission-card [type=submit]{width:100%;margin-top:12px;background:#147d89;color:white;min-height:46px}
.si-dialog .si-finance-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:20px 0}
.si-dialog .si-finance-stats>div{padding:16px 12px;background:#f1f6f7;border-radius:14px}
.si-dialog .si-finance-stats small{display:block;font-size:11px;line-height:1.5;color:#61787b}
.si-dialog .si-finance-stats strong{display:block;font-size:20px;margin-top:10px;overflow-wrap:anywhere}
.si-dialog .si-finance-items{display:grid;gap:10px;margin-bottom:24px}
.si-dialog .si-finance-items small{font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.si-dialog[data-view=login] .si-form{gap:18px}
.si-dialog[data-view=login] .si-editor-fields{display:grid;gap:18px}
@media(max-width:360px){.si-dialog .si-photo{width:44px;height:58px}.si-dialog .si-item-top{gap:10px}.si-dialog .si-finance-stats strong{font-size:17px}}
.si-dialog .si-permission-card label{flex-direction:row!important;justify-content:flex-start!important;text-align:left;gap:12px}
.si-dialog .si-permission-card input[type=checkbox]{width:20px!important;height:20px!important;min-height:20px!important;flex:0 0 20px;margin:0}
.si-dialog input[type=file]::file-selector-button{border:0;background:#e1ecee;color:#175b64;border-radius:8px;padding:7px 9px;margin-right:8px;font:inherit;font-weight:600}
/* Jewelry linked to the patient attendance. */
.cp-stock-picker{grid-column:1/-1;min-width:0;border:1px solid #dee9eb;border-radius:18px;padding:18px;margin-top:14px;background:#f8fbfb}
.cp-stock-picker h4{margin:0 0 8px;font-size:16px}.cp-stock-picker p{line-height:1.6;font-size:12px;color:#66797b}
.cp-stock-rows{display:grid;gap:12px;margin:16px 0}.cp-stock-row{min-width:0;border:1px solid #e1eaeb;background:#fff;border-radius:14px;padding:14px}
.cp-stock-picker label{display:grid;gap:7px;font-size:12px;font-weight:650;color:#335054}.cp-stock-picker :is(input,select,textarea){width:100%;min-width:0;max-width:100%;border:1px solid #d8e4e6;padding:11px;background:white;color:#173539;font:inherit;border-radius:10px}
.cp-stock-choice select{white-space:nowrap;text-overflow:ellipsis}.cp-stock-available{margin:8px 0 14px!important}.cp-stock-controls{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px;align-items:end}.cp-stock-remove{grid-column:1/-1;justify-self:end;color:#946055!important;background:white!important;min-height:36px!important}
.cp-stock-reason{margin-top:18px}.cp-stock-help{margin-top:14px!important}.cp-stock-summary{margin:14px 0;padding:14px;border:1px solid #dee9eb;border-radius:14px;background:#f6fafa}.cp-stock-summary h4{font-size:13px!important;margin:0 0 10px}.cp-stock-summary>div{display:grid;gap:5px;padding:9px 0;border-top:1px solid #e3eced}.cp-stock-summary strong{font-size:13px}.cp-stock-summary :is(span,small,p){font-size:12px;color:#627679;line-height:1.5}.si-appointment-link{margin:12px 0;padding:12px;background:#f2f7f8;border-radius:12px}.si-appointment-link p{margin:6px 0;font-size:12px}.si-appointment-link button{margin-top:5px}
@media(max-width:380px){.cp-stock-picker{padding:12px}.cp-stock-row{padding:10px}.cp-stock-controls{grid-template-columns:70px minmax(0,1fr)}}

/* Always provide a route home, including embedded screens without a header. */
html.clinic-app-layout .cam-tab-heading .cam-home-back{background:transparent;color:var(--cam-green,#147d89);padding:8px 4px;text-align:left;flex-basis:100%;font-size:13px}
html.clinic-app-layout .cam-tab-heading .cam-home-back{border:0;box-shadow:none;font-family:inherit}

/* Home identity follows Food/Barber. Reserve the device inset once at the shell,
   never the legacy 64px on each absolute tab. Embedded Studio owns its top inset. */
html.clinic-app-layout.clinic-app-layout.clinic-app-layout #app-container{
 box-sizing:border-box;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) 0 env(safe-area-inset-left,0px)!important;
}
html.clinic-app-layout.clinic-app-layout.clinic-app-layout.clinic-embedded #app-container{padding-top:0!important}
html.clinic-app-layout.clinic-app-layout.clinic-app-layout #app-main-scroll>.tab-content{padding-top:20px!important}
html.clinic-app-layout.clinic-app-layout.clinic-app-layout.clinic-home-open #app-main-scroll>#tab-dashboard{padding-top:8px!important}
html.clinic-app-layout.clinic-app-layout.clinic-app-layout #tab-dashboard>header.cam-home-toolbar{
 display:flex!important;align-items:center;justify-content:space-between;gap:16px!important;
 height:auto!important;min-height:64px!important;margin:0 0 16px!important;
 padding:4px 0 14px!important;border-bottom:1px solid var(--cam-line)!important;
}
html.clinic-app-layout #tab-dashboard>header.cam-home-toolbar>div:first-child{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0;flex:1;padding:0!important}
html.clinic-app-layout.clinic-home-open #cam-home-company{display:block;font-size:16px;font-weight:700;line-height:1.4;letter-spacing:-.3px;color:var(--cam-ink);overflow-wrap:anywhere}
html.clinic-app-layout.clinic-home-open #cam-home-date{font-size:11px;font-weight:450;line-height:1.5;letter-spacing:0;text-transform:none;color:var(--cam-muted)}
html.clinic-app-layout.clinic-app-layout.clinic-app-layout #tab-dashboard #header-profile-chip{
 display:flex!important;align-items:center;justify-content:center;flex:none;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;
}
html.clinic-app-layout.clinic-app-layout.clinic-app-layout #tab-dashboard #header-profile-avatar{display:flex!important;align-items:center;justify-content:center;width:42px!important;height:42px!important;overflow:hidden}
html.clinic-app-layout #tab-dashboard #header-profile-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
/* Hidden segment selectors must not leave Tailwind sibling spacing above the greeting. */
html.clinic-app-layout.clinic-home-open #dashboard-panel-segment:has(>.art-home){margin-top:0!important}
@media(max-width:360px){html.clinic-app-layout.clinic-home-open #cam-home-company{font-size:14px}}
