/* Shared work panels and a compact touch navigation shell. */
#crmMobileBar,#crmDrawerShade{display:none}.crm-work-dialog{border:1px solid #d9e3ef;border-radius:16px;padding:22px;width:min(740px,94vw);max-height:88dvh;overflow:auto;color:#24364c;box-sizing:border-box}.crm-work-dialog::backdrop{background:#10203880;backdrop-filter:blur(3px)}.crm-work-dialog h2{font-size:19px;margin:0 0 16px}.crm-work-dialog h3{font-size:15px;margin-top:22px}.crm-work-dialog form{display:grid;gap:12px}.crm-work-dialog label{display:grid;gap:6px;font-size:13px}.crm-work-dialog input,.crm-work-dialog textarea,.crm-work-dialog select{width:100%;box-sizing:border-box;padding:11px;border:1px solid #d4dfec;border-radius:9px;font:inherit;background:white;color:inherit}.crm-work-dialog textarea{min-height:90px}.crm-work-dialog footer{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px;justify-content:flex-end}.crm-work-item{padding:13px 0;border-bottom:1px solid #e4eaf1;overflow-wrap:anywhere}.crm-work-item p{white-space:pre-wrap;margin:7px 0}.crm-work-item small{display:block;color:#738298;margin:5px 0}.crm-work-error{color:#a62334;white-space:pre-wrap;font-size:13px}.crm-work-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px}.crm-work-notifications{position:relative}.crm-work-preview{display:block;max-width:100%;max-height:60dvh;object-fit:contain;margin:auto}.crm-work-progress{width:100%}.crm-work-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.crm-work-tabs .btn{font-size:12px}.crm-work-dialog [hidden]{display:none!important}
@media screen and (max-width:1024px){
 .app{display:block!important}.main{min-width:0;width:100%}.sidebar{position:fixed!important;inset:0 auto 0 0!important;z-index:12010!important;width:min(300px,84vw)!important;height:100dvh!important;min-height:0!important;overflow-y:auto!important;transform:translateX(-105%);transition:transform .18s ease;box-sizing:border-box;padding-top:env(safe-area-inset-top)!important;padding-bottom:env(safe-area-inset-bottom)!important}.sidebar.crm-drawer-open{transform:translateX(0)}.sidebar .nav{display:flex!important;flex-direction:column!important;overflow:visible!important;gap:4px;padding:10px!important}.sidebar .nav button{min-height:46px!important;text-align:left!important}.sidebar .brand{flex-shrink:0}.crm-drawer-visible{overflow:hidden}#crmDrawerShade{position:fixed;inset:0;z-index:12000;border:0;background:#10203885}.crm-drawer-visible #crmDrawerShade{display:block}#crmMobileBar{display:flex;gap:7px;align-items:center;flex-shrink:0}#crmMobileBar .btn{min-height:44px;padding:8px 11px;font-size:13px}.topbar{position:sticky!important;top:0;z-index:100;padding:8px max(10px,env(safe-area-inset-right)) 8px max(10px,env(safe-area-inset-left))!important;gap:8px;flex-wrap:wrap;background:#fff!important;align-items:center!important}.topbar h1{font-size:18px!important;line-height:1.2;overflow-wrap:anywhere}.topbar .eyebrow{display:none}.topbar-tools{margin-left:auto!important;margin-top:0!important;gap:5px!important;max-width:100%;flex-wrap:wrap}.topbar-tools>.crm-profile{position:static}.crm-profile-panel{position:fixed!important;left:10px!important;right:10px!important;top:72px!important;width:auto!important;max-height:calc(100dvh - 90px);overflow-y:auto}.content{padding:14px 10px calc(24px + env(safe-area-inset-bottom))!important;min-width:0;max-width:100%;box-sizing:border-box}.section,.card,.hero{min-width:0;max-width:100%;box-sizing:border-box}.section-head,.hero-top{flex-wrap:wrap;gap:12px}.section-head h2,.hero h2{font-size:18px!important}.section-head>.toolbar,.section-head>.actions{margin:0!important;flex-wrap:wrap}.table-wrap{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}.table-wrap table{width:max-content;min-width:100%;max-width:none}.table-wrap th,.table-wrap td{max-width:260px;overflow-wrap:anywhere;white-space:normal}.table-wrap .toolbar{flex-wrap:wrap;min-width:150px}.table-wrap select{max-width:220px}.searchbar{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));gap:8px}.searchbar>*{min-width:0!important;width:100%!important;box-sizing:border-box}.form-grid,.mini-grid,.two,.facts{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))!important}.full{grid-column:1/-1!important}.form-grid label{min-width:0}.form-grid input,.form-grid select,.form-grid textarea{max-width:100%;min-width:0;box-sizing:border-box}.modal-backdrop{padding:8px!important;box-sizing:border-box}.modal{width:100%!important;max-width:800px;max-height:calc(100dvh - 16px)!important;overflow-y:auto;box-sizing:border-box}.modal>form{padding:14px!important}.modal-head{position:sticky;top:0;background:#fff;z-index:3}.modal .form-actions{position:static!important;padding:12px 0!important;margin:0!important;background:#fff}.crm-notice{max-width:calc(100vw - 24px);box-sizing:border-box}.crm-notice-actions{flex-wrap:wrap}.crm-chat-shell{height:var(--crm-chat-height,calc(100dvh - 155px));min-height:280px}.jump{display:flex;overflow-x:auto;flex-wrap:nowrap;max-width:100%;gap:10px}.jump a{flex-shrink:0}.btn,.icon{touch-action:manipulation;min-height:44px}.crm-chat-actions button{min-height:36px;padding:6px 9px}.crm-profile summary{min-height:44px;box-sizing:border-box}input,textarea,select{font-size:16px!important}.crm-work-dialog,.crm-chat-dialog{width:calc(100vw - 16px)!important;max-width:740px;max-height:calc(100dvh - 16px)!important;padding:16px;box-sizing:border-box}#crmCloudStatus{max-width:calc(100vw - 24px);box-sizing:border-box;font-size:11px!important;bottom:calc(8px + env(safe-area-inset-bottom))!important}
}
@media screen and (max-width:480px){.topbar>div:has(#title){flex:1;min-width:90px}.topbar-tools{width:100%;justify-content:flex-end}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}.kpi{padding:12px!important;min-width:0}.kpi strong{font-size:21px!important;overflow-wrap:anywhere}.content .section{padding:14px!important}.crm-work-dialog footer>.btn{flex:1}.crm-page-actions{width:100%;justify-content:flex-start!important}.crm-profile summary>span:not(.crm-profile-avatar):not(.crm-profile-chevron){max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media(prefers-reduced-motion:reduce){.sidebar{transition:none!important}}

.crm-chat-heading>div{min-width:0;flex:1}.crm-chat-room-options{order:3;position:relative;flex:none}.crm-chat-room-options summary{cursor:pointer;list-style:none;display:grid;place-items:center;min-width:44px;min-height:44px;border:1px solid #dce4ee;border-radius:8px;font-size:22px}.crm-chat-room-options>div{position:absolute;right:0;top:100%;min-width:205px;padding:8px;background:white;border:1px solid #dce4ee;border-radius:10px;box-shadow:0 8px 24px #10203822;z-index:8}.crm-chat-room-options .btn{display:block;width:100%;margin:0 0 5px!important;text-align:left}.crm-chat-heading{position:relative;z-index:2}.crm-chat-room-options .crm-chat-people-button{margin-left:0;order:initial}
@media screen and (max-width:1024px){body:not(.crm-printing) .sidebar .nav button{min-height:46px!important}body:not(.crm-printing) .btn,body:not(.crm-printing) .crm-profile summary{min-height:44px!important}body.crm-chat-mobile .sidebar{display:flex!important}.crm-chat-heading .crm-chat-people{max-width:100%}.crm-chat-heading h2{overflow-wrap:anywhere}}
/* Administrator-controlled labels and typed, record-bound additional fields. */
.crm-ui-editor{width:min(880px,96vw)}.crm-ui-editor label{display:grid;gap:5px;font-size:12px;margin:8px 0}.crm-ui-editor input,.crm-ui-editor select,.crm-ui-editor textarea{padding:10px;border:1px solid #d4dfec;border-radius:8px;box-sizing:border-box;width:100%}.crm-ui-editor>div>select{margin:10px 0;min-height:42px}.crm-ui-card{padding:13px;border:1px solid #e0e7ef;border-radius:10px;background:#fbfcfe;margin:10px 0}.crm-ui-card h3{margin:0 0 8px;font-size:13px}.crm-custom-fields{border:1px solid #e1e8f0;background:#f9fbfe;border-radius:10px;padding:14px;box-sizing:border-box}.crm-custom-fields h3{font-size:14px;margin:0 0 12px}.crm-custom-fields input,.crm-custom-fields select,.crm-custom-fields textarea{width:100%;box-sizing:border-box;min-width:0;padding:10px;border:1px solid #d4dfec;border-radius:8px}.crm-custom-checkbox{display:flex!important;align-items:center;gap:9px!important;justify-content:space-between}.crm-custom-checkbox input[type=checkbox]{width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important;flex:none}.crm-custom-values{margin-top:8px;font-size:11px}.crm-custom-values summary{cursor:pointer;color:#587391;padding:5px 0}.crm-custom-values dl{display:grid;grid-template-columns:minmax(70px,1fr) 1.5fr;gap:4px 10px;margin:8px 0;white-space:normal}.crm-custom-values dt{color:#738398}.crm-custom-values dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.crm-ui-editor>footer{position:sticky;bottom:-22px;background:#fff;border-top:1px solid #e3eaf2;padding:12px 0}

/* Notification center: scoped layout, unread markers and accessible compact bell. */
#crmWorkNotifications.crm-notification-bell{position:relative;display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:10px;border-radius:14px;background:#f1f5fc;color:#3154ac;border:1px solid #dce5f5;box-shadow:0 2px 5px #223b6510}#crmWorkNotifications:hover{background:#e4ecfc}#crmWorkNotifications:focus-visible{outline:3px solid #83a5f5;outline-offset:3px}.crm-notification-count{position:absolute;top:-5px;right:-5px;min-width:19px;height:19px;box-sizing:border-box;padding:0 5px;border-radius:20px;background:#d52f50;color:white;font:700 11px/19px system-ui;border:2px solid white;display:grid;place-items:center}
.crm-work-dialog.crm-notification-panel{width:min(600px,94vw);padding:24px;border:1px solid #dce5f1;border-radius:20px;box-shadow:0 24px 80px #152a4b33;background:#fff}.crm-notification-panel h2{padding-right:40px;margin-bottom:18px;font-size:20px}.crm-notification-close{position:absolute;right:18px;top:18px;width:34px;min-height:34px!important;padding:0;font-size:20px}.crm-notification-controls{display:flex;gap:8px;flex-wrap:wrap;padding-bottom:16px;border-bottom:1px solid #e5ebf3}.crm-notification-controls .btn{font-size:12px}.crm-notification-filters{display:flex;gap:8px;margin:16px 0}.crm-notification-filters [aria-pressed=true]{background:#e8efff;color:#2549a1;border-color:#9ab4ed}.crm-notification-list{display:grid;gap:10px;max-height:48dvh;overflow-y:auto;padding:2px 4px 8px 0;overscroll-behavior:contain}.crm-notification-card{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px;border:1px solid #e3e9f2;border-radius:13px;background:#fafbfd}.crm-notification-card.is-unread{background:#f1f6ff;border-left:3px solid #3e66c8}.crm-notification-kind{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#e5ecfa;color:#3155a8;font-size:19px}.crm-notification-content{min-width:0}.crm-notification-content strong{display:block;font-size:13px;line-height:1.5}.crm-notification-content p{margin:3px 0 6px;overflow-wrap:anywhere;white-space:pre-wrap;font-size:13px;line-height:1.5}.crm-notification-content time{display:block;color:#728096;font-size:12px;line-height:1.5}.crm-notification-card>.btn{font-size:12px}.crm-notification-panel>small{display:block;color:#728096;line-height:1.5;margin-top:12px}.crm-notification-empty{text-align:center;padding:30px 12px;color:#64748b}.crm-notification-panel footer{padding-top:14px;border-top:1px solid #e5ebf3}.crm-notification-panel .crm-work-error:empty{display:none}@media(max-width:480px){.crm-work-dialog.crm-notification-panel{padding:18px}.crm-notification-card{grid-template-columns:30px minmax(0,1fr);gap:10px;padding:12px}.crm-notification-card>.btn{grid-column:2;justify-self:start}.crm-notification-kind{width:30px;height:30px}.crm-notification-filters{flex-wrap:wrap}}

.crm-notification-panel{font-family:inherit}.crm-notification-panel button{font-family:inherit;cursor:pointer}.crm-notification-panel .btn{border:1px solid #dce5f1;border-radius:9px;padding:8px 12px;background:#fff;color:#304465;line-height:1.4}.crm-notification-panel .btn:hover{background:#eef3fc}.crm-notification-panel .btn:disabled{opacity:.5;cursor:default}.crm-notification-panel .crm-notification-close{padding:0}.crm-notification-panel .crm-notification-filters [aria-pressed=true]{background:#e8efff;border-color:#9ab4ed}

.crm-work-dialog .crm-work-multiline{white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;max-width:100%;line-height:1.65}

.crm-project-links-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}.crm-project-links-editor>.crm-planning-picker{grid-column:auto;min-width:0}.crm-project-links-editor .crm-planning-options{max-height:180px;overflow:auto}.crm-unlink{padding:2px 7px;min-width:28px;flex-shrink:0}.crm-clear-selection{padding:3px 7px;font-size:11px;align-self:flex-start}.crm-project-editor label[hidden]{display:none!important}@media(max-width:800px){.crm-project-links-editor{grid-template-columns:1fr}}

.crm-work-record-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px;margin:12px 0}.crm-work-record-fields>div{min-width:0}.crm-work-record-fields dt{font-size:12px;font-weight:700;color:var(--crm-text,#24364c)}.crm-work-record-fields dd{margin:4px 0 0;font-size:14px}.crm-work-record-entry{border-top:1px solid #d9e3ef;margin-top:16px}.crm-work-dialog [data-no-i18n]{overflow-wrap:anywhere}@media(max-width:540px){.crm-work-record-fields{grid-template-columns:1fr}}
