/* Client-owned visual identity; all existing navigation and permissions remain. */
html.branded-workspace.collections-redesign #operator-shell{display:grid;grid-template-columns:224px minmax(0,1fr);grid-template-rows:64px 1fr;min-height:100dvh}
html.branded-workspace.collections-redesign #operator-shell>.portal-topbar{grid-column:2;grid-row:1;min-height:64px;padding:10px 28px;gap:20px;background:#fff}
html.branded-workspace #operator-shell>.portal-topbar>.brand{display:none}
html.branded-workspace .workspace-brand-label{margin:0;font-size:11px;font-weight:750;letter-spacing:1.25px;color:#576b7e;white-space:nowrap}
html.branded-workspace #operator-shell>.portal-topbar header{margin-left:auto;flex-wrap:nowrap}
html.branded-workspace .account-name{max-width:240px;font-size:12px;color:#33495d}
html.branded-workspace .account-avatar{background:#edf2f5;color:#385169}
html.branded-workspace.collections-redesign #operator-shell>aside{grid-column:1;grid-row:1/3;position:sticky;top:0;display:flex;flex-direction:column;align-self:start;height:100dvh;max-height:100dvh;box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;padding:26px 14px 20px;background:linear-gradient(155deg,#1b3042,#132334);border:0;color:#e6edf2}
html.branded-workspace #client-brand.workspace-client-brand{display:flex;flex-direction:column;align-items:center;gap:16px;margin:0 0 30px;padding:0 12px;border:0;text-decoration:none;text-align:center;color:#fff;max-width:none}
html.branded-workspace #client-brand img{width:156px;max-width:100%;height:132px;max-height:none;object-fit:contain;filter:none}
html.branded-workspace .workspace-brand-words{min-width:0;display:flex;flex-direction:column;gap:9px}
html.branded-workspace .workspace-brand-words strong{font-size:16px;font-weight:650;line-height:1.4;overflow-wrap:anywhere;color:#fff}
html.branded-workspace .workspace-brand-words>span{font-size:9px;line-height:1.5;text-transform:uppercase;letter-spacing:1.8px;color:#a9c7d6}
html.branded-workspace #operator-shell>aside>nav{padding:0;gap:7px;flex:0 0 auto}
html.branded-workspace.collections-redesign #operator-shell>aside .nav-item{min-height:46px;padding:12px 14px;gap:13px;border-radius:5px;color:#d9e4ec;background:transparent;font-size:14px;font-weight:450}
html.branded-workspace #operator-shell>aside .nav-item .portal-icon{width:21px;height:21px;color:#b8cddb}
html.branded-workspace.collections-redesign #operator-shell>aside .nav-item:hover{background:#ffffff0d;color:#fff}
html.branded-workspace.collections-redesign #operator-shell>aside .nav-item.active{background:#ffffff10;color:#fff;font-weight:650;box-shadow:inset 3px 0 #7bcbdc}
html.branded-workspace #operator-shell>aside .nav-item.active:before{display:none}
html.branded-workspace #notification-count{color:#eaf5fa;background:#ffffff14}
html.branded-workspace.collections-redesign #operator-shell>aside .sidebar-foot{margin-top:auto;padding:28px 10px 0;background:transparent;border:0;color:#abc2d1;overflow:visible}
html.branded-workspace #operator-shell>aside .sidebar-foot>.portal-icon{display:none}
html.branded-workspace #operator-shell>aside .sidebar-foot>strong{font-size:12px;color:#dce8ee}
html.branded-workspace #operator-shell>aside .sidebar-foot>p{display:none}
html.branded-workspace.collections-redesign #operator-shell>aside .sidebar-foot>a{margin:8px 0 0;font-size:11px;color:#bfd6e2;white-space:normal;overflow-wrap:anywhere;line-height:1.6}
html.branded-workspace .workspace-powered-by{display:flex;align-items:center;gap:8px;flex:0 0 auto;padding:22px 10px 0;font-size:10px;color:#a6bfce}
html.branded-workspace .workspace-powered-by img{width:82px;height:20px;object-fit:contain;filter:brightness(0) invert(1);opacity:.95}
html.branded-workspace.collections-redesign #operator-shell>.workspace{grid-column:2;grid-row:2;background:#f8fafc;min-width:0}
html.branded-workspace.collections-redesign main#main{padding:28px 28px 36px;max-width:none}
html.branded-workspace #operator-shell>.workspace>footer{display:none}
html.branded-workspace :is(button,a,summary):focus-visible{outline:3px solid #42a9c2;outline-offset:3px}
html.branded-workspace .page-title .eyebrow{color:#557389!important}

/* Real balance values; detailed policy and allocation history expand in place. */
html.client-friendly #own-credits.credit-overview{margin:0 0 18px;padding:0;border:0;background:transparent;box-shadow:none}
html.client-friendly .credit-overview>h3{margin:0 0 10px;font-size:12px;color:#536a7d;font-weight:650}
.credit-overview-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.credit-overview-stat{position:relative;padding:15px 18px 13px 24px;border:1px solid #dfe7ee;border-radius:8px;background:#fff;min-width:0}
.credit-overview-stat:before{content:'';position:absolute;top:17px;bottom:17px;left:13px;width:3px;border-radius:2px;background:#90b1bf}
.credit-overview-stat[data-credit=available]:before{background:#60b8ce}.credit-overview-stat[data-credit=spent]:before{background:#78b990}
.credit-overview-stat>span{display:block;font-size:12px;color:#5c7386}.credit-overview-stat>strong{display:block;font-size:27px;line-height:1.2;margin-top:7px;letter-spacing:-.5px;color:#1a3043}
.credit-overview-footer{display:flex;align-items:baseline;justify-content:space-between;gap:8px 16px;margin-top:9px;flex-wrap:wrap}
html.client-friendly .credit-overview-notice{margin:0;font-size:12px;line-height:1.5;color:#5b7284}
html.client-friendly .credit-overview-notice.needs-attention{color:#925221;font-weight:650}
.credit-overview-details{margin:0;font-size:12px;color:#466278;flex:1 1 200px;text-align:right}
.credit-overview-details>summary{display:inline-block;min-height:28px;line-height:28px;cursor:pointer;color:#2c647e;text-decoration:underline;text-underline-offset:3px}
.credit-overview-details>summary:before{content:'+ ';display:inline-block;text-decoration:none}.credit-overview-details[open]>summary:before{content:'− '}
.credit-overview-details[open]{flex-basis:100%;text-align:left}.credit-overview-details[open]>div{border:1px solid #d9e4ec;border-radius:10px;background:#fff;padding:16px;margin-top:7px;text-align:left}
html.client-friendly .credit-overview-details p{font-size:12px;line-height:1.6;margin:5px 0 12px}
html.client-friendly .credit-overview-status{font-size:12px;color:#934722;margin:8px 0}.credit-overview-status:empty{display:none}
html.client-friendly #collections-view>.collect-now-entry{display:flex;align-items:center;flex-wrap:wrap;gap:8px 18px;padding:14px 17px;margin:0 0 18px;border:1px solid #dce7ec;border-radius:10px;background:#eef5f8;color:#24495f}
html.client-friendly #collections-view>.collect-now-entry[hidden]{display:none}
html.client-friendly #collections-view>.collect-now-entry>.primary{flex:0 0 auto;display:flex;align-items:center;gap:10px;font-size:14px;min-height:44px;padding:11px 16px!important;background:#1b465e;color:#fff;border-radius:7px;box-shadow:none}
html.client-friendly #collections-view>.collect-now-entry>.primary .le-icon{width:19px;height:19px}
html.client-friendly #collections-view>.collect-now-entry>p{flex:1 1 220px;max-width:550px;margin:0;font-size:12px;line-height:1.5;color:#537084}
html.client-friendly #collections-view>.collect-now-entry>.le-entry-guide{min-height:44px;font-size:12px;padding:8px 10px;color:#245b76;border-color:#b5cdd9;background:transparent;margin-left:auto}

@media(max-width:1100px) and (min-width:801px){html.branded-workspace.collections-redesign #operator-shell{grid-template-columns:194px minmax(0,1fr)}html.branded-workspace.collections-redesign main#main{padding:22px 20px}.credit-overview-stats{gap:8px}.credit-overview-stat{padding-right:10px}html.branded-workspace .workspace-brand-words strong{font-size:14px}}
@media(max-width:800px){
 html.branded-workspace.collections-redesign #operator-shell{display:flex;flex-direction:column;min-height:100dvh}
 html.branded-workspace.collections-redesign #operator-shell>.portal-topbar{order:1;min-height:52px;padding:7px 16px;gap:10px}
 html.branded-workspace .workspace-brand-label{font-size:9px;letter-spacing:.8px}
 html.branded-workspace .portal-topbar .account-name{display:none}
 html.branded-workspace.collections-redesign #operator-shell>aside{order:0;position:static;display:block;width:100%;min-width:0;height:auto;max-height:none;padding:15px 16px 10px;overflow:visible}
 html.branded-workspace #client-brand.workspace-client-brand{flex-direction:row;text-align:left;align-items:center;gap:15px;margin:0 0 16px;padding:0}
 html.branded-workspace #client-brand img{width:64px;height:64px;max-width:64px;flex:0 0 auto}
 html.branded-workspace .workspace-brand-words{gap:5px}.workspace-brand-words strong{font-size:14px!important}
 html.branded-workspace #operator-shell>aside>nav{display:flex;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;gap:4px;padding:0 0 4px}
 html.branded-workspace #operator-shell>aside .nav-item{flex:0 0 auto;min-height:44px!important;padding:10px 12px!important;font-size:12px!important}
 html.branded-workspace #operator-shell>aside .sidebar-foot{display:none}
 html.branded-workspace .workspace-powered-by{padding:9px 0 0;justify-content:flex-end;font-size:9px}.workspace-powered-by img{width:67px!important;height:16px!important}
 html.branded-workspace.collections-redesign #operator-shell>.workspace{order:2}
 html.branded-workspace.collections-redesign main#main{padding:20px 16px}
 .credit-overview-stats{gap:6px}.credit-overview-stat{padding:11px 7px;border-radius:6px}.credit-overview-stat:before{display:none}.credit-overview-stat>span{font-size:10px}.credit-overview-stat>strong{font-size:23px;margin-top:6px}
 .credit-overview-footer{gap:3px}.credit-overview-details{text-align:left;flex-basis:100%}.credit-overview-details>summary{min-height:44px;line-height:44px}
 html.client-friendly #collections-view>.collect-now-entry{gap:9px;padding:12px}
 html.client-friendly #collections-view>.collect-now-entry>.primary{width:100%;justify-content:center}
 html.client-friendly #collections-view>.collect-now-entry>.le-entry-guide{margin:0;min-height:44px}
}
@media(prefers-reduced-motion:reduce){html.branded-workspace *{scroll-behavior:auto}}
