/* Embedded Clinics app: compact iOS canvas; desktop CRM is unchanged. */
html.clinic-embedded.art-clinic-mobile,html.clinic-embedded.art-clinic-mobile body{background:#f3f6f8!important;font-family:-apple-system,BlinkMacSystemFont,"Inter",sans-serif;overscroll-behavior:none}
html.clinic-embedded.art-clinic-mobile #app-container{padding:0!important;gap:0!important;height:100dvh!important;border-radius:0!important}
html.clinic-embedded.art-clinic-mobile #app-main-column{width:100%!important;margin:0!important;border:0!important;border-radius:0!important;background:#f3f6f8!important}
html.clinic-embedded.art-clinic-mobile #app-main-column>header{height:58px!important;padding:0 16px!important;background:#ffffffed!important;box-shadow:none!important;border-bottom:1px solid #e3eaeb}
html.clinic-embedded.art-clinic-mobile #header-title{font-size:19px!important;letter-spacing:-.5px}
html.clinic-embedded.art-clinic-mobile #header-profile-chip{display:flex!important;padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important;min-width:44px;min-height:44px;justify-content:center}
html.clinic-embedded.art-clinic-mobile #header-profile-chip>.text-left{display:none}
html.clinic-embedded.art-clinic-mobile #header-profile-avatar{border-radius:50%!important}
html.clinic-embedded.art-clinic-mobile #app-main-column>header .mobile-hide{display:none!important}
html.clinic-embedded.art-clinic-mobile #app-main-column>header button[title="Forçar Atualização de Dados"]{display:none}
html.clinic-embedded.art-clinic-mobile #app-main-scroll{margin-top:58px!important;padding-bottom:0!important}
html.clinic-embedded.art-clinic-mobile .tab-content{padding:18px 16px 96px!important;scroll-padding-bottom:96px;-webkit-overflow-scrolling:touch}
html.clinic-embedded.art-clinic-mobile #mobile-bottom-nav{display:none!important}
html.clinic-embedded.art-clinic-mobile #app-sidebar{display:flex!important;position:fixed!important;top:12px!important;left:12px!important;bottom:12px!important;width:min(300px,88vw)!important;height:calc(100dvh - 24px)!important;z-index:50!important;transform:translateX(calc(-100% - 24px))!important}
html.clinic-embedded.art-clinic-mobile #app-sidebar.open{transform:translateX(0)!important}
html.clinic-embedded.art-clinic-mobile #sidebar-backdrop{position:fixed;inset:0;z-index:40;background:#16363a55;opacity:0;pointer-events:none}
html.clinic-embedded.art-clinic-mobile #sidebar-backdrop.open{opacity:1;pointer-events:auto}
html.clinic-embedded.art-clinic-mobile .mobile-only{display:inline-flex!important}
html.clinic-embedded .art-home{max-width:1000px;margin:auto;padding:0;font-size:15px}
html.clinic-embedded .art-home:after,html.clinic-embedded .ah-hero:before{display:none}
html.clinic-embedded .ah-intro{padding:2px 0 22px;align-items:center;gap:12px}
html.clinic-embedded .ah-intro .ah-eyebrow{font-size:10px;letter-spacing:.05em;margin-bottom:9px}
html.clinic-embedded .art-home h2{font-size:32px;line-height:1.08;letter-spacing:-1.3px;margin-bottom:0}
html.clinic-embedded .ah-subtitle{display:none}
html.clinic-embedded .ah-brand{padding:0;gap:4px}
html.clinic-embedded .ah-brand img{width:64px;height:64px}
html.clinic-embedded .ah-brand a{font-size:11px;min-height:32px}
html.clinic-embedded .ah-hero{gap:14px}
html.clinic-embedded .ah-agenda-card,html.clinic-embedded .ah-studio-card{border-radius:22px;min-height:190px;box-shadow:0 3px 12px #24434705}
html.clinic-embedded .ah-card-copy{padding:20px 14px}
html.clinic-embedded .ah-card-copy .ah-eyebrow{font-size:10px;margin-bottom:10px}
html.clinic-embedded .ah-card-copy h3{font-size:23px;margin-bottom:12px;letter-spacing:-.8px}
html.clinic-embedded .ah-agenda-card .ah-card-copy>p:not(.ah-eyebrow){display:none}
html.clinic-embedded .art-home .ah-button{font-size:13px;min-height:44px;padding:10px 14px;gap:8px}
html.clinic-embedded .ah-today-count{border-radius:17px;padding:16px 8px}
html.clinic-embedded .ah-today-count>strong{font-size:58px}
html.clinic-embedded .ah-today-count>span,html.clinic-embedded .ah-today-count p{font-size:12px}
html.clinic-embedded .ah-today-count small{font-size:11px}
html.clinic-embedded .ah-studio-card{background:white;color:#18383c;border:1px solid #e3eaeb;grid-template-columns:1fr;min-height:0;padding:0}
html.clinic-embedded .ah-studio-card .ah-card-copy{flex-direction:row;align-items:center;justify-content:space-between;padding:15px 16px;gap:10px}
html.clinic-embedded .ah-studio-card .ah-card-copy .ah-eyebrow{display:none}
html.clinic-embedded .ah-studio-card h3{font-size:18px;margin:0}
html.clinic-embedded .ah-studio-card .ah-button{margin:0;background:#e5f3f5;font-size:12px}
html.clinic-embedded .ah-stat-stack{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto;gap:0;border-top:1px solid #edf1f1}
html.clinic-embedded .ah-stat-stack>div{flex-direction:column-reverse;justify-content:flex-end;text-align:center;gap:6px;padding:14px 7px;border-right:1px solid #edf1f1}
html.clinic-embedded .ah-stat-stack>div:last-child{border:0}
html.clinic-embedded .ah-stat-stack span{font-size:11px;color:#647779;line-height:1.35}
html.clinic-embedded .ah-stat-stack strong{font-size:25px;color:#147d89}
html.clinic-embedded .ah-next{margin:12px 2px 20px;font-size:11px}
html.clinic-embedded .ah-shortcuts{display:flex;flex-wrap:nowrap;overflow:auto;gap:8px;border:0;padding:0 0 8px;margin-bottom:24px}
html.clinic-embedded .ah-shortcuts button{flex:none;background:white;border:1px solid #e3eaeb;border-radius:14px;font-size:12px;min-height:44px;padding:10px 14px}
html.clinic-embedded .ah-shortcuts .is-primary,html.clinic-embedded .ah-shortcuts [data-ah-tab="clinic-anamnesis"],html.clinic-embedded .ah-shortcuts [data-ah-tab="clinic-intake"]{display:none}
html.clinic-embedded .ah-section-heading h3{font-size:22px}
html.clinic-embedded .ah-week{overflow-x:auto;grid-template-columns:repeat(7,minmax(64px,1fr));gap:7px}
html.clinic-embedded .ah-week button{border-radius:16px;min-height:88px}
html.clinic-embedded .ah-week small{font-size:10px}
html.clinic-embedded .ah-day-heading{flex-wrap:wrap}
html.clinic-embedded .ah-day-heading h4{font-size:16px}
html.clinic-embedded .ah-day-heading p{font-size:12px;max-width:none}
html.clinic-embedded .ah-day-heading .ah-text-button{font-size:12px;min-height:44px}
html.clinic-embedded .ah-appointments,html.clinic-embedded .ah-messages{border-radius:20px}
html.clinic-embedded .ah-appointment{padding:16px 12px;gap:10px}
html.clinic-embedded .ah-person strong{font-size:13px}
html.clinic-embedded .ah-person small{font-size:12px}
html.clinic-embedded .ah-status{font-size:10px}
html.clinic-embedded .ah-bottom{gap:16px}
html.clinic-embedded .ah-finance{background:#eaf4fa;border-radius:20px;padding:20px}
html.clinic-embedded .ah-rules>div{font-size:13px;min-height:44px}
html.clinic-embedded .ah-rules strong{font-size:12px}
html.clinic-embedded .ah-footer{font-size:11px}
@media(min-width:700px){html.clinic-embedded .ah-hero{grid-template-columns:1fr 1fr}html.clinic-embedded .tab-content{padding:24px 28px 96px!important}html.clinic-embedded .ah-bottom{grid-template-columns:1fr 1fr}html.clinic-embedded .art-home h2{font-size:38px}}
@media(prefers-reduced-motion:reduce){html.clinic-embedded *{scroll-behavior:auto!important}}
/* The shared CRM header is in normal flex flow; do not reserve its height twice. */
html.clinic-embedded.art-clinic-mobile #app-main-column>header{position:relative!important;flex:0 0 58px!important}
html.clinic-embedded.art-clinic-mobile #app-main-scroll{margin-top:0!important}
html.clinic-embedded.art-clinic-mobile #dashboard-panel-segment{margin-top:0!important}
html.clinic-embedded.art-clinic-mobile #tab-dashboard{background:#f3f6f8!important}
/* Shared floating dock reserves room for the iPhone home indicator. */
html.clinic-embedded.art-clinic-mobile .tab-content{padding-bottom:calc(112px + env(safe-area-inset-bottom,0px))!important;scroll-padding-bottom:calc(112px + env(safe-area-inset-bottom,0px))}
