/* AB CONNECT — shared spacing and responsive finishing for the beta. */
:root{--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:24px;--space-6:32px}
body{line-height:1.5;text-rendering:optimizeLegibility}
main,.content,.panel,.home-block,.promo-body,.heading>div,.sectionhead>div{min-width:0}
h1,h2,h3{overflow-wrap:anywhere;line-height:1.3}
h1{font-weight:750}h2,h3{font-weight:700}
p{margin:0 0 16px;line-height:1.65}small{line-height:1.5}
button,.touch-link,.whatsapp-button{min-height:44px;line-height:1.35;white-space:normal;overflow-wrap:anywhere;font-weight:650}
button{padding:11px 16px;touch-action:manipulation}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--teal);outline-offset:3px}
input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select{min-height:44px;line-height:1.4}
input[type=checkbox],input[type=radio]{width:18px;height:18px;min-height:0;padding:0;margin:0;flex-shrink:0}
input[type=file]{max-width:100%;padding:8px;font-size:13px}
input[type=file]::file-selector-button{padding:8px 12px;border:0;border-radius:6px;background:#eaf1f6;color:var(--navy);margin-right:12px;font:inherit}
textarea{line-height:1.6;min-height:120px;max-width:100%}
label{gap:8px;line-height:1.5;font-size:13px;min-width:0}
form{gap:16px}form p{margin:0}form .grid2,form .two{gap:16px}
form h3{margin:8px 0 0}form>button{justify-self:start}
label input,label select,label textarea{font-weight:400}
.business-check{min-height:44px;padding:8px 0;line-height:1.5;align-items:center;cursor:pointer}
fieldset{margin:0;padding:16px;min-width:0}legend{font-weight:650}
.content{padding:32px clamp(20px,3vw,38px)}
.heading{align-items:center;gap:20px;flex-wrap:wrap;margin-bottom:24px}
.heading>div:first-child{flex:1 1 280px}.heading h1{margin-bottom:8px}.heading p{max-width:760px;line-height:1.6}
.heading-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px;flex:0 1 auto}
.heading>button{flex:0 0 auto}
.panel,.home-block{padding:24px;border-radius:14px}
.panel{margin-bottom:24px}
.panel>:first-child,.home-block>:first-child{margin-top:0}
.panel>:last-child,.home-block>:last-child{margin-bottom:0}
.grid2,.cards{gap:24px;align-items:start}
.grid2>.panel,.cards>.panel{margin-bottom:0}
.content>.grid2{margin-bottom:24px}
.sectionhead{gap:16px;flex-wrap:wrap;margin-bottom:20px}.sectionhead h2{margin:0}
.spaced{margin-top:24px}.actions.spaced{margin-top:12px}
.actions,.share-fallback{gap:10px;align-items:center}
.actions{margin-top:16px}.actions>*{max-width:100%}
.row{gap:16px;padding:18px 0}.row>.actions,.row>.record-actions{margin:0}
.row>div:first-child{flex:1 1 180px}.row p{margin:6px 0 0;line-height:1.6}
.record-actions{gap:8px;margin:8px 0}.record-actions button{padding:10px 12px;font-size:12px}
.badge,.pill{line-height:1.5;max-width:100%;overflow-wrap:anywhere}
.pill{display:inline-block}.tablewrap{max-width:100%;overscroll-behavior-x:contain}.tablewrap table{min-width:620px}
th,td{vertical-align:top;line-height:1.6}
.filters{gap:12px}.filters select{max-width:none}.status-tabs{margin-bottom:20px}
.promo{display:flex;flex-direction:column;min-width:0;height:100%}
.promo-body{display:flex;flex-direction:column;flex:1;padding:24px}
.promo-body p{min-height:0;line-height:1.7;margin:0 0 16px;overflow-wrap:anywhere}
.promo-body>.actions{margin-top:auto;padding-top:16px}
.promo-meta{gap:10px;margin:16px 0}.promo-body h3{line-height:1.4;margin-bottom:12px}
.spec-tags{gap:8px;margin:0 0 16px}.spec-tags span{font-size:11px;line-height:1.4;padding:6px 8px}
.benefit-copy{margin:0 0 16px;padding:14px 16px}
.mandante-identity{gap:16px;padding-bottom:16px}.mandante-identity>img{max-width:35%;height:64px}
.customer-search label{margin-bottom:16px}.customer-search .actions{margin-top:0}
#workspaceCount{margin:16px 0 0;font-size:12px;color:var(--muted)}
.mobile-client-list{gap:16px;margin-top:0}.customer-list-card .actions{margin-top:16px}
.customer-open{padding:0;background:transparent;align-items:flex-start;gap:8px;box-shadow:none}
.customer-open:hover{background:transparent;box-shadow:none}.customer-open b{line-height:1.4}
.customer-open>span{font-size:13px;font-weight:400;line-height:1.6}.customer-open small{font-size:12px;font-weight:400}
.customer-open .customer-open-label{font-size:13px;font-weight:700;margin-top:4px}
.customer-visit-settings{border-top:1px solid var(--line);padding-top:12px;margin-top:16px}
summary{cursor:pointer;line-height:1.5;overflow-wrap:anywhere}
.customer-visit-settings>summary,.calendar-settings>summary{min-height:44px;padding:10px 0}
.customer-workspace.map-mode{align-items:start;gap:20px}
.customer-workspace.map-mode>#workspaceMapPanel{position:sticky;top:16px}
.customer-workspace .client-map{max-width:100%}
.customer-sheet-heading h2{margin:12px 0}.customer-sheet-heading p{margin-bottom:0}
.customer-primary-actions{gap:10px;margin:20px 0;align-items:stretch}
.customer-primary-actions>*{min-width:120px;flex:0 1 auto}
.customer-tabs{gap:8px;padding:12px 0 16px;margin-bottom:8px;background:var(--surface)}
.customer-tabs button{background:#edf3f6;color:#35556c;font-size:12px;padding:12px 10px;min-width:0}
.customer-tabs button.active{background:var(--navy);color:white}
.customer-promo{padding:20px;margin:16px 0;border-radius:12px}
.customer-promo h3{margin:8px 0 12px}.customer-promo>small{display:block;line-height:1.6}
.customer-promo p{margin:0 0 14px}.customer-promo>.business-check{margin:12px 0 8px}
.customer-promo .share-warning{margin:12px 0}.customer-data{gap:16px;margin:16px 0 24px}
.customer-data>div{padding-bottom:12px;border-bottom:1px solid var(--line)}.customer-data dd{line-height:1.6}
#sheetProposePromo{margin-bottom:20px}#sheetPromoStatus:empty{display:none}
.network-assignment,.notification-row{gap:20px;padding:20px 0}.network-assignment p,.notification-row p{margin:6px 0}
.network-assignment>div,.notification-row>div{min-width:0;flex:1;overflow-wrap:anywhere}
.agent-admin-cards .sectionhead{gap:16px;margin-bottom:20px}.agent-admin-cards form>h3{margin:8px 0 0}
.agent-mandates{margin:0;gap:10px}.agent-mandate-option{padding:12px;line-height:1.5}
.agent-admin-cards details>summary{min-height:44px;padding:12px 0}
.agent-save-status:empty{display:none}.account-role-form{margin-top:20px;padding:24px 0;gap:16px}
.account-role-options{gap:12px 24px}.account-role-form h3{margin:0 0 6px}
.work-role-bar{gap:20px;padding:12px 38px}.work-role-bar label{font-size:13px;gap:12px}
.work-role-bar small{line-height:1.6;max-width:520px}.work-role-bar select{font-size:14px}
.visual-calendar{padding:24px}.calendar-toolbar{gap:16px;flex-wrap:wrap}
.calendar-navigation{gap:8px;margin:16px 0}.calendar-mode button{min-height:40px}
.calendar-cell{line-height:1.35}.calendar-cell .calendar-date-number{overflow-wrap:normal}
.quick-plan{gap:12px;margin-bottom:0}.quick-plan label{margin:0}.quick-plan-pair{gap:12px}
.quick-plan-bottom{gap:16px}.quick-plan-top{gap:12px;flex-wrap:wrap}
.profile-details>div{align-items:flex-start;gap:20px;padding:18px 0}
.profile-details dd{line-height:1.6;min-width:0}
.login-box h1{margin:20px 0 16px}.login-box .badge{margin-top:8px}.login-box>p{margin-top:16px}
.login-box form>button{width:100%;justify-self:stretch;min-height:48px}.login-box #resetAccess{width:100%;margin-top:16px}
.login-box .demo-accounts{margin-top:24px}.login-box label{font-size:13px}
dialog{width:calc(100% - 32px);max-width:660px;padding:28px;max-height:90vh;max-height:90dvh;overscroll-behavior:contain;scroll-padding:20px}
dialog:has(.customer-promo-list){max-width:760px}
dialog>h2{margin:0 56px 24px 0;line-height:1.4;font-size:22px}
dialog .close{width:44px;height:44px;min-height:44px;padding:0;margin:0 0 12px 12px;line-height:1;flex-shrink:0}
dialog form{clear:both;gap:16px}dialog .grid2{gap:16px}dialog .actions{gap:10px}
dialog .editor-actions{gap:12px;padding:16px 0 4px;bottom:-28px;align-items:center}
dialog .editor-actions button{flex:1 1 160px;min-height:48px}
.dialog-feedback{clear:both;position:sticky;bottom:0;margin:16px 0 0;background:#fff3d9;border:1px solid #e5cc95;border-radius:10px;padding:12px 16px;color:#6c4f15;font-size:13px;line-height:1.6;z-index:6;overflow-wrap:anywhere}
.share-graphic{padding:16px;margin:20px 0}.share-fallback{gap:12px;margin:16px 0}
.share-fallback>*{flex:1 1 160px;text-align:center}.share-fallback .touch-link{border:1px solid var(--line);border-radius:9px}
#nativeShareHint{font-size:12px;line-height:1.7;margin:12px 0 20px}
#toast{line-height:1.6;overflow-wrap:anywhere;z-index:1100}
[hidden]{display:none!important}
@media(max-width:1100px){.work-role-bar{padding-inline:26px}}
@media(max-width:700px){
 .panel,.home-block{padding:20px}.content{padding:24px 16px}
 .agent-shell .content{padding:24px 16px calc(100px + env(safe-area-inset-bottom))}
 .heading{display:flex;align-items:flex-start;gap:16px;margin-bottom:24px}
 .heading>div:first-child{flex-basis:100%}.heading h1{font-size:26px}
 .heading-actions{width:100%;justify-content:flex-start;gap:10px}.heading-actions>button{flex:1 1 140px}
 .grid2,.cards{gap:20px}form .grid2{grid-template-columns:minmax(0,1fr)}
 .spaced{margin-top:20px}.panel{margin-bottom:20px}.mobile-client-list{gap:16px}
 .customer-workspace.map-mode{display:block}.customer-workspace.map-mode>#workspaceMapPanel{position:static}
 .customer-primary-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch}
 .customer-primary-actions>*{width:100%;min-width:0;flex:none;padding:12px;font-size:13px}
 .customer-tabs{gap:6px;top:0;padding:12px 0}.customer-tabs button{font-size:12px;padding:12px 6px;min-height:48px}
 .customer-promo{padding:16px}.customer-promo>button{width:100%}
 .customer-data{grid-template-columns:minmax(0,1fr)}.customer-sheet-heading h2{font-size:23px}
 .row{align-items:flex-start;gap:12px}.row>.actions,.row>.record-actions{width:100%}
 .row>.actions>*{flex:1 1 140px}.row>.record-actions>button{flex:1 1 110px}
 .network-assignment>button,.notification-row>button{width:100%}
 .promo-body{padding:20px}.promo-body>.actions>button{flex:1 1 150px}
 .promo-body .date{font-size:11px;line-height:1.5}.mandante-identity>img{max-width:38%;width:100px;height:60px}
 .work-role-bar{padding:14px 16px;display:block}.work-role-bar label{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between}
 .work-role-bar select{min-width:0;width:auto;flex:1 1 160px;max-width:100%}.work-role-bar small{display:block;margin-top:8px;font-size:11px}
 .topbar,.agent-shell .topbar{display:flex;flex-wrap:wrap;padding:12px 16px;gap:10px}
 .topbar>span{flex:1 1 100%;line-height:1.5}.topbar .user{width:100%;gap:10px;justify-content:flex-end}
 .topbar .profile-link{flex:1;max-width:none;min-width:0;text-align:right;padding:6px 0}
 .topbar .profile-link b{font-size:12px;line-height:1.5;overflow-wrap:anywhere}.topbar #logout{flex-shrink:0;min-height:44px}
 #betaNotificationButton{min-height:44px;max-width:none;margin-right:auto;font-size:12px;padding:10px 12px}
 .visual-calendar{padding:16px}.calendar-toolbar h2{font-size:19px}.calendar-navigation>span{font-size:11px;line-height:1.5}
 .calendar-day-title{flex-wrap:wrap}.calendar-day-title h2{font-size:18px}
 .quick-plan-bottom{align-items:flex-start}.quick-plan-bottom button{flex-shrink:0}
 .account-role-options{gap:4px}.account-role-form>button{width:100%;justify-self:stretch}
 .profile-details>div{display:grid;gap:8px}.profile-details dd{text-align:left}
 .filters{gap:10px}.filters input{grid-column:1/-1}
 dialog{width:calc(100% - 24px);padding:20px;max-height:calc(100dvh - 24px)}
 dialog>h2{font-size:21px;margin-bottom:24px}dialog .editor-actions{bottom:-20px;padding:16px 0 0}
 dialog form>button{width:100%;justify-self:stretch}dialog .share-fallback>*{flex-basis:100%}
 .login-main{padding:28px 20px}.login-hero{padding:24px 20px}.login-box h1{font-size:28px}
 input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea{font-size:16px}
 .quick-plan input,.quick-plan select{font-size:16px}.customer-tabs button{font-size:12px}
 #toast{left:16px;right:16px;bottom:calc(88px + env(safe-area-inset-bottom));max-width:none;padding:14px 16px}
}
@media(max-width:380px){
 .stats{grid-template-columns:minmax(0,1fr);gap:10px}.stat{padding:16px}.stat small{min-height:0;font-size:12px}
 .stat strong{font-size:28px;margin-top:6px}.customer-tabs{flex-wrap:wrap}.customer-tabs button{flex:1 1 90px}
 .customer-primary-actions{grid-template-columns:minmax(0,1fr)}.quick-plan-pair{grid-template-columns:minmax(0,1fr)}
 .calendar-toolbar .calendar-mode{width:100%}.calendar-mode button{flex:1}.calendar-navigation>span{display:none}
}
@media(max-width:700px){
 .topbar>span{display:none}
 .work-role-bar small{display:none}
}

.app-install{position:fixed;bottom:16px;right:16px;z-index:90;max-width:min(360px,calc(100vw - 32px));padding:10px;background:#fff;color:#061c33;border:1px solid #c9e6e2;border-radius:16px;box-shadow:0 6px 28px #061c3326}.app-install[hidden]{display:none}.app-install button{margin:0;min-height:44px;background:#64d6c1;color:#061c33}.app-install p{margin:10px 4px 2px;font-size:14px;line-height:1.5}@media(max-width:700px){.app-install{bottom:calc(84px + env(safe-area-inset-bottom));right:12px;max-width:calc(100vw - 24px)}}
