/* Customer profile is a workspace page, never a modal overlay. */
body.portal-shell #customer-profile-page{padding-top:18px}
body.portal-shell #customer-profile-page #subscriber-profile-dialog{position:static;inset:auto;display:none;width:100%;max-width:none;height:auto;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible;color:var(--ink)}
body.portal-shell #customer-profile-page #subscriber-profile-dialog[open]{display:block}
body.portal-shell #subscriber-profile-dialog::backdrop{display:none}
body.portal-shell #customer-profile-page .subscriber-profile-shell{max-height:none;overflow:visible;background:none;box-shadow:none;border:0}
body.portal-shell #customer-profile-page .subscriber-profile-shell>header{position:static;display:flex;align-items:center;gap:12px;padding:0 0 16px;background:none;border:0;border-bottom:1px solid #e5eaf1;box-shadow:none;flex-wrap:wrap}
body.portal-shell .profile-page-back{height:30px;min-height:30px!important;font-size:11px;padding:4px 9px!important;background:transparent!important}
body.portal-shell .profile-page-avatar{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:12px;background:#ecebff;color:#5750c6;font-size:15px;font-weight:700}
body.portal-shell #customer-profile-page header .kicker{display:none}
body.portal-shell #customer-profile-page #subscriber-profile-name{margin:0 0 3px;font-size:21px;line-height:1.25;font-weight:700;letter-spacing:-.5px}
body.portal-shell #customer-profile-page #subscriber-profile-reference{margin:0;color:#7b879b;font-size:11px}
body.portal-shell #customer-profile-page .subscriber-profile-header-actions{display:flex;margin-left:auto;gap:7px;align-items:center;flex-wrap:wrap}
body.portal-shell #customer-profile-page .subscriber-profile-header-actions button{min-height:32px!important;height:32px;padding:5px 10px!important;font-size:11px!important;border-radius:7px}
body.portal-shell #customer-profile-page .subscriber-profile-header-actions [data-close-subscriber-profile]{display:none}
body.portal-shell #customer-profile-page .subscriber-profile-content{padding:0;max-height:none;overflow:visible;background:none}
body.portal-shell #customer-profile-page .subscriber-profile-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0;padding:0;border:0;background:none}
body.portal-shell #customer-profile-page .subscriber-profile-summary>div{padding:13px 15px;min-width:0;border:1px solid #e5eaf1;border-radius:9px;background:#fff;box-shadow:none}
body.portal-shell #customer-profile-page .subscriber-profile-summary small{display:block;font-size:9px;font-weight:650;letter-spacing:.6px;color:#8b96a8;margin-bottom:6px}
body.portal-shell #customer-profile-page .subscriber-profile-summary b{font-size:14px;font-weight:650;overflow-wrap:anywhere}
body.portal-shell #customer-profile-page .subscriber-profile-summary strong{font-size:21px;line-height:1.2;font-weight:700}
body.portal-shell #customer-profile-page .subscriber-profile-summary span{display:block;font-size:10px;color:#8b96a8;margin-top:3px}
body.portal-shell #customer-profile-page .subscriber-profile-summary span b{font-size:10px}
body.portal-shell #customer-profile-page .profile-section-tabs{display:flex;gap:4px;margin:16px 0 0;padding:0 0 2px;border-bottom:1px solid #dfe5ee;overflow-x:auto;scrollbar-width:thin}
body.portal-shell #customer-profile-page .profile-section-tabs button{position:relative;flex-shrink:0;padding:11px 13px!important;min-height:37px!important;border:0!important;border-radius:0!important;background:transparent!important;color:#8490a4;font-size:12px!important;font-weight:550;box-shadow:none!important;transform:none!important;white-space:nowrap}
body.portal-shell #customer-profile-page .profile-section-tabs button.active{color:#554fd0;font-weight:700}
body.portal-shell #customer-profile-page .profile-section-tabs button.active:after{content:'';position:absolute;bottom:-2px;left:11px;right:11px;height:3px;background:#6b65dd;border-radius:3px 3px 0 0}
body.portal-shell #customer-profile-page .profile-pane{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px;align-items:start}
body.portal-shell #customer-profile-page .profile-pane[hidden]{display:none!important}
body.portal-shell #customer-profile-page .profile-pane>.subscriber-profile-section,body.portal-shell #customer-profile-page .profile-pane-sessions>*,body.portal-shell #customer-profile-page .profile-pane-security>*{grid-column:1/-1}
body.portal-shell #customer-profile-page :is(.saved-profile-card,.subscriber-detail-card,.subscriber-profile-section){min-width:0;margin:0;border:1px solid #e5eaf1;border-radius:10px;background:#fff;box-shadow:none;overflow:hidden}
body.portal-shell #customer-profile-page .saved-profile-heading{display:flex;align-items:center;gap:9px;padding:13px 16px;background:#fafbfe;border-bottom:1px solid #edf0f5}
body.portal-shell #customer-profile-page .saved-profile-heading>span{display:none}
body.portal-shell #customer-profile-page .saved-profile-heading h3,body.portal-shell #customer-profile-page .subscriber-detail-card h3{font-size:13px;font-weight:650;letter-spacing:0;margin:0;color:#34445b}
body.portal-shell #customer-profile-page .saved-profile-body{padding:8px 16px 15px}
body.portal-shell #customer-profile-page .subscriber-detail-card{padding:14px 16px}
body.portal-shell #customer-profile-page .subscriber-detail-list{margin:0;display:block}
body.portal-shell #customer-profile-page .subscriber-detail-list>div{display:grid;grid-template-columns:minmax(115px,.85fr) minmax(0,1.2fr);gap:14px;padding:9px 0;border-bottom:1px solid #eef1f5;align-items:start;font-size:11px}
body.portal-shell #customer-profile-page .subscriber-detail-list>div:last-child{border-bottom:0}
body.portal-shell #customer-profile-page .subscriber-detail-list dt{font-size:11px;font-weight:500;color:#8590a3}
body.portal-shell #customer-profile-page .subscriber-detail-list dd{font-size:11px;font-weight:550;color:#384961;overflow-wrap:anywhere;min-width:0;margin:0;text-align:right}
body.portal-shell #customer-profile-page .profile-document-grid{gap:9px}
body.portal-shell #customer-profile-page .profile-document-grid>div{gap:5px;padding:11px;border-radius:7px;font-size:11px;border-color:#e0e6ef}
body.portal-shell #customer-profile-page .profile-document-grid small{font-size:10px;color:#929cad}
body.portal-shell #customer-profile-page .profile-edit-note,body.portal-shell #customer-profile-page .subscriber-card-note{font-size:10px;line-height:1.6;color:#929cad;margin:9px 0}
body.portal-shell #customer-profile-page .profile-edit-grid{gap:12px 16px}
body.portal-shell #customer-profile-page .profile-edit-grid label{font-size:11px;gap:6px}
body.portal-shell #customer-profile-page .profile-edit-grid input{height:36px;min-height:36px;padding:7px 10px;font-size:12px;border-radius:7px}
body.portal-shell #customer-profile-page .saved-profile-body button{font-size:11px!important;min-height:32px!important;height:32px;padding:5px 11px!important}
body.portal-shell #customer-profile-page .password-learning{margin-top:15px;padding:14px;border:1px solid #e7e9f4;border-radius:8px;background:#fafaff}
body.portal-shell #customer-profile-page .password-learning h4{font-size:12px;margin:0 0 7px}
body.portal-shell #customer-profile-page .password-learning p,body.portal-shell #customer-profile-page .password-learning small{font-size:10.5px;line-height:1.6;color:#7c879c}
body.portal-shell #customer-profile-page .section-heading{padding:13px 16px;background:#fafbfe;border-bottom:1px solid #edf0f5}
body.portal-shell #customer-profile-page .section-heading h3{font-size:13px;margin:0}
body.portal-shell #customer-profile-page .section-heading p{font-size:10px;margin:4px 0 0}
body.portal-shell #customer-profile-page .section-heading>span{font-size:10px}
body.portal-shell #customer-profile-page .empty-state{min-height:90px;font-size:11px;margin:0;padding:20px}
body.portal-shell #customer-profile-page .session-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}
body.portal-shell #customer-profile-page .session-summary-grid>div{padding:10px 12px;border-radius:8px;border-left-width:2px;background:#f8f9ff}
body.portal-shell #customer-profile-page .session-summary-grid small{font-size:9px}
body.portal-shell #customer-profile-page .session-summary-grid b{font-size:18px;margin-top:3px}
body.portal-shell #customer-profile-page .session-profile-controls{gap:8px;margin:10px 0;font-size:11px}
body.portal-shell #customer-profile-page .session-profile-controls button{height:30px;min-height:30px!important;font-size:10px!important;padding:4px 9px!important}
/* The dashboard has one title in the top bar, with actionable statuses below it. */
body.portal-shell #dashboard-page .dash-statusbar{display:flex;gap:10px;align-items:center;margin:0 0 14px}
body.portal-shell #dash-live-status{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));flex:1;gap:9px;min-width:0}
body.portal-shell #dashboard-page #dash-live-status .dash-link{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border:1px solid #e5eaf1;border-radius:8px;background:#fff;min-height:48px;text-align:left;white-space:normal}
body.portal-shell #dash-live-status span{font-size:10px;color:#8490a4;font-weight:500}
body.portal-shell #dash-live-status b{font-size:17px;font-weight:700;color:#4e54a6}
body.portal-shell #dashboard-page .dash-statusbar>#dash-refresh{height:31px;min-height:31px;font-size:10px;padding:4px 9px;flex-shrink:0}
body.portal-shell #dash-live-status .dash-link:nth-child(3) b{color:#b88138}
body.portal-shell #dashboard-page #dash-state:not(.visually-hidden){font-size:11px;padding:10px 12px;border:1px solid #f1d3d3;border-radius:7px;background:#fff6f6;color:#b64b4b}
@media(max-width:1100px){body.portal-shell #dash-live-status{grid-template-columns:repeat(3,minmax(0,1fr))}body.portal-shell #dashboard-page .dash-statusbar{align-items:flex-start}}
@media(max-width:700px){body.portal-shell #customer-profile-page .profile-pane{grid-template-columns:1fr}body.portal-shell #customer-profile-page .subscriber-profile-summary{grid-template-columns:repeat(2,minmax(0,1fr))}body.portal-shell #customer-profile-page .subscriber-profile-header-actions{margin-left:0;width:100%;padding-left:0}body.portal-shell #customer-profile-page #subscriber-profile-name{font-size:18px}body.portal-shell #customer-profile-page .subscriber-profile-shell>header{gap:9px}body.portal-shell #customer-profile-page .profile-page-avatar{width:34px;height:34px;flex-basis:34px;font-size:12px}body.portal-shell #customer-profile-page .subscriber-profile-summary b{font-size:12px}body.portal-shell #customer-profile-page .session-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.portal-shell #dash-live-status{grid-template-columns:repeat(2,minmax(0,1fr))}body.portal-shell #dashboard-page .dash-statusbar{flex-wrap:wrap}body.portal-shell #dashboard-page .dash-statusbar>#dash-refresh{margin-left:auto}body.portal-shell #customer-profile-page .subscriber-detail-list>div{grid-template-columns:1fr 1.2fr;gap:8px}}
/* Remove the previous modal's decorative effects and grid spacing. */
body.portal-shell #customer-profile-page .subscriber-profile-shell::before,body.portal-shell #customer-profile-page .subscriber-profile-shell>header::after,body.portal-shell #customer-profile-page .subscriber-profile-summary>div::before{display:none!important;content:none!important}
body.portal-shell #customer-profile-page .subscriber-profile-shell,body.portal-shell #customer-profile-page :is(.subscriber-detail-card,.saved-profile-card,.subscriber-profile-section,.subscriber-profile-summary>div){animation:none!important;transform:none!important}
body.portal-shell #customer-profile-page .subscriber-profile-shell>header{flex-direction:row;overflow:visible}
body.portal-shell #customer-profile-page .subscriber-profile-content{display:block;gap:0}
body.portal-shell #customer-profile-page .subscriber-profile-summary>div{min-height:90px;gap:5px;align-content:start;transition:none}
body.portal-shell #customer-profile-page .subscriber-profile-summary>div:hover{box-shadow:none;transform:none}
body.portal-shell #customer-profile-page .subscriber-profile-summary button{min-height:26px!important;height:26px;padding:3px 8px!important;font-size:10px!important;box-shadow:none;transform:none}
body.portal-shell #customer-profile-page button.primary{background:#5b54d6;border-color:#5b54d6;box-shadow:none;transform:none}

/* Compact customer support history uses the central workspace controls. */
#customer-profile-page .profile-complaints-card{grid-column:1/-1;min-width:0}
#customer-profile-page .profile-complaints-card .section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
#customer-profile-page .profile-complaints-card h3{margin:0;font-size:18px}
#customer-profile-page .profile-complaints-card p{font-size:13px;margin:6px 0;color:var(--muted,#526784)}
#customer-profile-page .cmp-profile-filters{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:16px 0}
#customer-profile-page .cmp-profile-filters label{display:grid;gap:5px;font-size:13px;flex:1;min-width:150px}
#customer-profile-page .cmp-profile-filters input,#customer-profile-page .cmp-profile-filters select{min-height:40px;width:100%;box-sizing:border-box}
#customer-profile-page .profile-complaints-card td{font-size:13px;vertical-align:top}
#customer-profile-page .profile-complaints-card td small{display:block;margin-top:5px;overflow-wrap:anywhere}
#customer-profile-page .profile-complaints-card .subscriber-profile-table{overflow:auto;max-width:100%}
#customer-profile-page .profile-complaints-card table{min-width:720px}
@media(max-width:600px){#customer-profile-page .cmp-profile-filters label{flex-basis:100%}#customer-profile-page .profile-complaints-card .saved-profile-body{padding:14px}#customer-profile-page .profile-complaints-card button{min-height:40px}}

/* Keep identity/location paired and document review beside the uploaded files. */
body.portal-shell #customer-profile-page .profile-pane-overview>#account-lifecycle-card{grid-column:1/-1}
body.portal-shell #customer-profile-page .profile-pane-overview>#profile-kyc-status{margin:0;min-width:0}
