/* WOTTT OMNICHANNEL CRM 04.55.2 r16a
   Targeted presentation correction: actual account slide-ups and Inbox customer drawer.
   No mutation to click targets, permissions, provider eligibility, notification behavior or CRM data. */
:root{
 --r16a-blue:#4e7dea; --r16a-violet:#8564d8; --r16a-teal:#209b86;
 --r16a-amber:#cd8b31; --r16a-rose:#c35b75;
 --r16a-border:color-mix(in srgb,var(--ui-line,#dee5ef) 82%,var(--r16a-blue));
 --r16a-shadow:0 6px 20px rgba(22,42,79,.055);
}
/* ALL account slide-ups. These are .global-panel, not .action-dialog. */
.global-panel:not(.workflow-global-panel):not(.contact-global-panel){
 border-left:1px solid var(--r16a-border);background:var(--ui-surface,#fff);
}
.global-panel>header{
 position:relative;background:linear-gradient(105deg,color-mix(in srgb,var(--r16a-blue) 9%,var(--ui-surface,#fff)),var(--ui-surface,#fff) 85%);
 border-bottom:1px solid var(--r16a-border);min-height:64px;
}
.global-panel>header::after{content:"";height:3px;position:absolute;left:0;right:0;top:0;background:linear-gradient(90deg,var(--r16a-blue),var(--r16a-violet),var(--r16a-teal))}
.global-panel>header h2{font-weight:800;letter-spacing:-.38px;font-size:19px}
.global-panel>header .icon-button{border:1px solid var(--ui-line,#dce4ef);border-radius:10px;background:var(--ui-surface,#fff);width:35px;height:35px;display:grid;place-items:center}
.global-panel .global-panel-body{padding:18px 19px 26px;scrollbar-gutter:stable;overscroll-behavior:contain}
.global-panel .global-panel-body :is(button,a,input,select,summary):focus-visible,.customer-drawer :is(button,a,input,select,summary):focus-visible{outline:2px solid var(--ui-focus,#4e7dea);outline-offset:2px}
/* Help: distinct informational reading surface, no invented controls. */
.global-panel .help-copy{border:1px solid var(--r16a-border);border-left:4px solid var(--r16a-blue);background:linear-gradient(130deg,color-mix(in srgb,var(--r16a-blue) 5%,var(--ui-surface,#fff)),var(--ui-surface,#fff) 65%);padding:19px;border-radius:15px;color:var(--ui-muted,#66758c);font-size:12px;line-height:1.72;box-shadow:var(--r16a-shadow)}
.global-panel .help-copy h3{margin:0 0 14px;color:var(--ui-ink,#243449);font-size:16px;letter-spacing:-.3px}
.global-panel .help-copy p{margin:0;padding:12px 0;line-height:1.72;font-size:12px}
.global-panel .help-copy p+p{border-top:1px solid var(--ui-line,#e5eaf1)}
/* Settings shortcuts and integration health. Provider status is source supplied only. */
.global-panel .settings-shortcuts{gap:9px;margin-bottom:24px}
.global-panel .settings-shortcuts button{background:color-mix(in srgb,var(--r16a-blue) 4%,var(--ui-surface,#fff));border:1px solid var(--r16a-border);border-radius:13px;min-height:48px;padding:12px 13px;box-shadow:var(--r16a-shadow);font-weight:670}
.global-panel .settings-shortcuts button:nth-child(2){background:color-mix(in srgb,var(--r16a-violet) 5%,var(--ui-surface,#fff))}
.global-panel .settings-shortcuts button:hover{border-color:var(--ui-accent,var(--r16a-blue))}
.global-panel .settings-shortcuts button>.ui-icon:first-child{width:19px;height:19px;color:var(--r16a-blue)}
.global-panel .settings-shortcuts button:nth-child(2)>.ui-icon:first-child{color:var(--r16a-violet)}
.global-panel .settings-section-title{font-size:15px;margin:15px 0 12px;letter-spacing:-.2px}
.global-panel .connection-matrix{border:none;overflow:visible;gap:9px;display:grid}
.global-panel .connection-matrix>div{border:1px solid var(--r16a-border);border-left:3px solid var(--r16a-blue);border-radius:12px;padding:13px 14px;background:var(--ui-surface,#fff);box-shadow:var(--r16a-shadow)}
.global-panel .connection-matrix>div:nth-child(3n+2){border-left-color:var(--r16a-violet)}
.global-panel .connection-matrix>div:nth-child(3n){border-left-color:var(--r16a-teal)}
.global-panel .connection-matrix strong{font-size:12px}
.global-panel .connection-matrix span{font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.global-panel .ig-health{margin-top:18px;padding-top:11px;border-top:1px solid var(--ui-line,#e1e7ef)}
.global-panel .ig-account-health{border-radius:12px}
/* Profile: visual grouping and bigger text, keep camera/upload controls and live photo as-is. */
.profile-global-panel .global-panel-body{padding:20px 20px 30px}
.profile-global-panel .profile-photo-area{margin:14px auto 5px;filter:drop-shadow(0 9px 14px rgba(36,61,107,.12))}
.profile-global-panel .profile-sheet-identity{margin:18px 0 22px}
.profile-global-panel .profile-sheet-identity h3{font-size:20px;font-weight:790;letter-spacing:-.45px}
.profile-global-panel .profile-sheet-identity>span{display:inline-block;margin-top:4px;padding:4px 12px;border-radius:99px;background:color-mix(in srgb,var(--r16a-violet) 9%,var(--ui-surface,#fff));color:var(--ui-ink,#334057);font-weight:650}
.profile-global-panel .profile-sheet-fields{display:grid;gap:10px;border:0;margin-top:21px}
.profile-global-panel .profile-sheet-fields>div{padding:13px;align-items:center;border:1px solid var(--r16a-border);border-left:3px solid var(--r16a-blue);border-radius:12px;background:color-mix(in srgb,var(--r16a-blue) 4%,var(--ui-surface,#fff));min-width:0;box-shadow:var(--r16a-shadow)}
.profile-global-panel .profile-sheet-fields>div:nth-child(2){border-left-color:var(--r16a-violet);background:color-mix(in srgb,var(--r16a-violet) 4%,var(--ui-surface,#fff))}
.profile-global-panel .profile-sheet-fields>div:nth-child(3){border-left-color:var(--r16a-teal);background:color-mix(in srgb,var(--r16a-teal) 4%,var(--ui-surface,#fff))}
.profile-global-panel .profile-sheet-fields .ui-icon{color:var(--r16a-blue);width:20px;height:20px}
.profile-global-panel .profile-sheet-fields>div:nth-child(2) .ui-icon{color:var(--r16a-violet)}
.profile-global-panel .profile-sheet-fields>div:nth-child(3) .ui-icon{color:var(--r16a-teal)}
.profile-global-panel .profile-sheet-fields small{font-size:10px}
.profile-global-panel .profile-sheet-fields strong{font-size:12px;font-weight:700;color:var(--ui-ink,#25394b)}
.profile-global-panel .profile-sheet-foot{margin-top:18px;padding:13px;border-radius:10px;background:var(--ui-soft,#f4f6fa);line-height:1.5}
/* Appearance panel; selected states stay controlled by existing JS. */
.global-panel .appearance-panel>.eyebrow{display:inline-block;margin-bottom:4px;font-size:10px;letter-spacing:.14em;color:var(--r16a-violet);font-weight:750}
.global-panel .appearance-panel h3{font-size:23px;font-weight:800;letter-spacing:-.5px;margin:5px 0 8px}
.global-panel .appearance-panel>p{line-height:1.65;margin-bottom:20px}
.global-panel .mode-options{gap:9px}
.global-panel .mode-option{min-height:90px;border:1px solid var(--r16a-border);border-radius:13px;background:color-mix(in srgb,var(--r16a-blue) 3%,var(--ui-surface,#fff));padding:13px 5px}
.global-panel .mode-option.active{border:1.5px solid var(--ui-accent,var(--r16a-blue));background:color-mix(in srgb,var(--ui-accent,var(--r16a-blue)) 10%,var(--ui-surface,#fff));box-shadow:0 0 0 1px color-mix(in srgb,var(--ui-accent,var(--r16a-blue)) 16%,transparent)}
.global-panel .mode-option>.ui-icon:first-child{width:23px;height:23px}
.global-panel .accent-options{gap:9px}
.global-panel .accent-option{min-height:78px;border:1px solid var(--r16a-border);border-radius:13px;background:var(--ui-surface,#fff);font-size:11px;box-shadow:var(--r16a-shadow)}
.global-panel .accent-option.active{border-color:var(--ui-accent,var(--r16a-blue));background:color-mix(in srgb,var(--ui-accent,var(--r16a-blue)) 10%,var(--ui-surface,#fff))}
.global-panel .accent-option .swatch{box-shadow:0 2px 6px rgba(10,20,30,.08)}
.global-panel .preference-note{border-radius:11px;padding:12px;background:var(--ui-soft,#f4f6fa);line-height:1.55;margin-top:17px}
/* Activity: a cohesive information stream; risk labels/ordering remain backend driven. */
.global-panel .activity-center .activity-controls{border:1px solid var(--r16a-border);border-radius:12px;padding:12px;background:var(--ui-surface,#fff);margin-bottom:16px;display:flex;align-items:center;gap:7px}
.global-panel .activity-center .activity-controls p{font-size:11px;line-height:1.45;flex:1;min-width:0;margin:0;color:var(--ui-muted,#66758c)}
.global-panel .activity-sla-head{padding:7px 3px 11px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.global-panel .activity-sla-head strong{font-size:14px;color:var(--ui-ink,#203247)}
.global-panel .activity-sla-head span{font-size:10px;border-radius:99px;background:color-mix(in srgb,var(--r16a-rose) 12%,var(--ui-surface,#fff));padding:4px 9px;color:var(--ui-ink,#293d52)}
.global-panel .activity-sla-block{display:grid;gap:8px}
.global-panel .notification-item{border:1px solid var(--r16a-border);border-radius:12px;padding:12px;min-width:0;line-height:1.4;text-align:left;background:var(--ui-surface,#fff);box-shadow:var(--r16a-shadow)}
.global-panel .notification-item.sla-event{border-left:4px solid var(--r16a-rose);background:color-mix(in srgb,var(--r16a-rose) 4%,var(--ui-surface,#fff))}
.global-panel .notification-item.sla-event.warning{border-left-color:var(--r16a-amber);background:color-mix(in srgb,var(--r16a-amber) 5%,var(--ui-surface,#fff))}
.global-panel .notification-item.sla-event.critical{border-left-color:#dc7b41;background:color-mix(in srgb,#dc7b41 5%,var(--ui-surface,#fff))}
.global-panel .notification-title{font-size:12px;font-weight:750;color:var(--ui-ink,#203247)}
.global-panel .notification-preview{font-size:11px;color:var(--ui-muted,#66758c)}
.global-panel .notification-item small{font-size:10px;color:var(--ui-muted,#68778a)}
.global-panel .notification-symbol{border-radius:10px}
.global-panel .notification-items{display:grid;gap:8px;margin-top:14px}
.global-panel .notification-items>.notification-item{border-left:3px solid var(--r16a-blue)}
.global-panel .notification-items>.notification-item.unseen{background:color-mix(in srgb,var(--r16a-blue) 5%,var(--ui-surface,#fff))}
/* Inbox customer drawer - separate from global panel. */
.customer-drawer{border-left:1px solid var(--r16a-border);box-shadow:-17px 0 48px rgba(15,35,70,.14)}
.customer-drawer-tools{background:linear-gradient(95deg,color-mix(in srgb,var(--r16a-blue) 7%,var(--ui-surface,#fff)),var(--ui-surface,#fff));border-bottom:1px solid var(--r16a-border);padding:10px 12px;gap:7px}
.customer-drawer-tools>.text-button{font-size:11px;border:1px solid transparent;border-radius:9px;padding:8px 10px;font-weight:700}
.customer-drawer-tools>.text-button.active{border-color:color-mix(in srgb,var(--r16a-blue) 28%,var(--ui-line,#dfe6ec));background:color-mix(in srgb,var(--r16a-blue) 12%,var(--ui-surface,#fff));color:var(--ui-accent,var(--r16a-blue))}
.customer-drawer-body{background:var(--ui-soft,#f5f7fb)}
.customer-drawer-body .cw-expand-customer{border-radius:12px;min-height:39px;border:1px solid var(--r16a-border);background:var(--ui-surface,#fff);color:var(--ui-ink,#27384b);box-shadow:var(--r16a-shadow)}
.customer-panel-shell{gap:12px}
.customer-panel-shell>.customer-summary-card,.customer-panel-shell>.contact-panel-card{border-radius:15px;border-color:var(--r16a-border);box-shadow:var(--r16a-shadow);overflow:hidden}
.customer-panel-shell>.customer-summary-card{background:linear-gradient(135deg,color-mix(in srgb,var(--r16a-blue) 9%,var(--ui-surface,#fff)),var(--ui-surface,#fff) 70%);border-top:3px solid var(--r16a-blue);padding:18px}
.customer-summary-copy h3{font-size:19px;font-weight:800;letter-spacing:-.4px;color:var(--ui-ink,#27384b)}
.customer-summary-copy p,.customer-summary-copy span{line-height:1.45}
.customer-quick-stats{gap:9px}
.customer-quick-stats>div{border:1px solid var(--r16a-border);border-left:3px solid var(--r16a-blue);background:var(--ui-surface,#fff);border-radius:11px;padding:12px}
.customer-quick-stats>div:nth-child(2){border-left-color:var(--r16a-teal)}
.customer-quick-stats strong{font-size:12px}
.customer-panel-shell>.contact-panel-card{padding:15px;border-top:3px solid var(--r16a-violet)}
.customer-panel-shell>.contact-panel-card:nth-of-type(3n){border-top-color:var(--r16a-teal)}
.customer-panel-shell>.contact-panel-card:nth-of-type(3n+1){border-top-color:var(--r16a-amber)}
.contact-panel-card .section-head{border-bottom:1px solid var(--ui-line,#e3e9ef);padding-bottom:10px;margin-bottom:13px}
.contact-panel-card .section-head h4{font-size:15px;font-weight:790;letter-spacing:-.2px;color:var(--ui-ink,#26364a)}
.contact-panel-card .section-head small{color:var(--r16a-violet);font-weight:750}
.connected-channel-row{border-radius:11px;border-color:var(--r16a-border);background:color-mix(in srgb,var(--r16a-blue) 5%,var(--ui-surface,#fff));padding:11px}
.contact-panel-card .contact-property-grid{border-radius:11px}
.contact-panel-card .contact-property-row:nth-child(2n){background:color-mix(in srgb,var(--r16a-blue) 4%,var(--ui-surface,#fff))}
.contact-panel-card .contact-property-row dt{font-size:11px}
.contact-panel-card .contact-property-row dd{font-size:12px}
.contact-panel-card .contact-panel-footnote{border-left:3px solid var(--r16a-teal)}
/* Inbox Tasks and History tabs. Do not mutate task completion state. */
.customer-drawer .contact-panel-head{display:flex;align-items:center;padding:16px 18px 12px;border-bottom:1px solid var(--r16a-border)}
.customer-drawer .contact-panel-head h2{font-size:17px;font-weight:800;letter-spacing:-.2px;color:var(--ui-ink,#25364a)}
.customer-drawer .context-panel-actions{padding:12px 18px;background:var(--ui-surface,#fff)}
.customer-drawer .context-panel-actions .quiet{border-radius:10px;min-height:36px}
.customer-drawer .task-list,.customer-drawer .activity-list{padding:12px 16px 22px;gap:9px;display:grid}
.customer-drawer .task-row,.customer-drawer .activity-row{border:1px solid var(--r16a-border);border-left:3px solid var(--r16a-violet);padding:13px;border-radius:12px;background:var(--ui-surface,#fff);box-shadow:var(--r16a-shadow);gap:10px;min-width:0}
.customer-drawer .task-row.done{opacity:1;border-left-color:var(--r16a-teal);background:color-mix(in srgb,var(--r16a-teal) 4%,var(--ui-surface,#fff))}
.customer-drawer .task-check{width:25px;height:25px;font-size:12px;color:var(--r16a-teal);background:color-mix(in srgb,var(--r16a-teal) 13%,var(--ui-surface,#fff))}
.customer-drawer .task-row strong,.customer-drawer .activity-row strong{font-size:12px;line-height:1.4;color:var(--ui-ink,#24364b);font-weight:750}
.customer-drawer .task-row span,.customer-drawer .activity-row span{font-size:10px;line-height:1.4;color:var(--ui-muted,#657487)}
.customer-drawer .task-row time,.customer-drawer .activity-row time{font-size:10px;color:var(--ui-muted,#6b7689)}
.customer-drawer .activity-row{border-left-color:var(--r16a-blue);grid-template-columns:18px minmax(0,1fr);padding:14px}
.customer-drawer .activity-mark{color:var(--r16a-blue);font-size:24px;line-height:.9}
.customer-drawer .task-row>div:nth-child(2),.customer-drawer .activity-row>div{min-width:0;overflow-wrap:anywhere}
/* Account popover is intentionally outside both drawer hierarchies. */
.account-popover{border:1px solid var(--r16a-border);box-shadow:0 20px 55px rgba(17,38,76,.15)}
.account-popover .account-popover-head{padding:12px;border-radius:11px;background:linear-gradient(110deg,color-mix(in srgb,var(--r16a-blue) 11%,var(--ui-surface,#fff)),var(--ui-surface,#fff))}
.account-popover>button{min-height:42px;border-radius:9px}
.account-popover>button:hover,.account-popover>button:focus-visible{background:color-mix(in srgb,var(--r16a-blue) 8%,var(--ui-surface,#fff))}
@media(max-width:720px){
 .global-panel .global-panel-body{padding:15px 15px 25px;scrollbar-gutter:auto}
 .global-panel .mode-option{min-height:80px;padding:10px 3px}
 .global-panel .accent-option{min-height:72px}
 .customer-drawer-tools{padding:7px 9px;gap:2px;flex-wrap:nowrap}
 .customer-drawer-tools>.text-button{padding:7px 8px}
 .customer-panel-shell{padding:13px 13px 0}
 .customer-panel-shell>.customer-summary-card,.customer-panel-shell>.contact-panel-card{border-radius:13px}
 .customer-drawer .task-list,.customer-drawer .activity-list{padding:10px 12px 20px}
}
@media(prefers-reduced-motion:reduce){.global-panel *,.customer-drawer *{transition-duration:0s!important}}
