﻿/* Member pages share the public site's orange, charcoal and Thai typefaces. */
body.member-portal{background:#f5f6f7}.member-portal>.root>.utility-bar,.member-portal>.root>.jc-header,.member-portal>.root>.jc-footer{display:none}.member-portal>.root{overflow:clip}.member-workspace{display:grid;grid-template-columns:228px minmax(0,1fr);min-height:100vh;font-size:14px;line-height:1.65;color:#293a40}.member-workspace *{box-sizing:border-box}.member-workspace a{text-decoration:none}.member-workspace p{margin:0}.member-workspace .portal-icon{width:20px;height:20px;flex:none;vertical-align:middle}.member-workspace h1,.member-workspace h1:first-child{font-size:30px;line-height:1.5;letter-spacing:0;margin:0 0 6px}.member-workspace h2{font-size:19px;line-height:1.55;margin:0}.member-workspace button,.member-workspace input,.member-workspace select{font:inherit;min-height:40px;line-height:1.5;border-radius:8px;box-shadow:none}.member-workspace button{padding:9px 15px}.member-workspace .portal-outline,.member-workspace .portal-primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:9px 15px;border:1px solid #dfe4e6;border-radius:8px;background:white;color:#3c4c52;white-space:nowrap;font-size:13px;font-weight:500;min-height:40px}.member-workspace .portal-primary{background:#ee852c;color:#fff;border-color:#ee852c}.member-workspace .portal-primary:hover{background:#d56e1d}.member-workspace .portal-outline:hover{background:#fff6ed;border-color:#eec6a5}.portal-sidebar{background:#fff;border-right:1px solid #e5e9eb;padding:28px 20px 20px;display:flex;flex-direction:column;min-height:100vh;position:sticky;top:0;height:100vh}.portal-brand{display:block;width:118px;margin-left:10px}.portal-brand img{display:block;width:118px;height:68px;object-fit:cover;object-position:center 40%}.portal-brand-label{margin:15px 10px 42px;font:600 11px var(--font-heading);letter-spacing:2.5px;color:#a96834}.portal-brand-label span{display:block;letter-spacing:0;font:13px var(--font-reading);margin-top:6px;color:#8b969b}.portal-nav-label{font-size:11px;letter-spacing:.4px;color:#879499;margin:0 12px 14px!important}.portal-sidebar nav{display:grid;gap:8px}.portal-sidebar nav a{display:flex;align-items:center;gap:12px;padding:12px 13px;color:#637178;border-radius:9px;font-size:14px}.portal-sidebar nav a[aria-current=page]{color:#b95e1c;background:#fff0e3;font-weight:600}.portal-sidebar nav a:hover{background:#f8f5f1}.portal-nav-dot{height:5px;width:5px;border-radius:100%;background:#e67c2a;margin-left:auto}.portal-sidebar-bottom{margin-top:auto;padding-top:32px}.portal-public-link{display:flex;align-items:center;gap:9px;font-size:13px;color:#77848a;padding:12px}.portal-mini-profile{margin-top:20px;padding:19px 0 15px;border-top:1px solid #e8ecee;display:flex;gap:10px;align-items:center}.portal-mini-profile strong{font-size:12px;display:block;font-weight:500}.portal-mini-profile div>span{font-size:11px;color:#8a969b}.portal-avatar{display:flex;align-items:center;justify-content:center;width:44px;height:44px;flex:none;border-radius:12px;background:#fcebdc;color:#ba6729;font:600 14px var(--font-heading)}.portal-avatar.large{height:74px;width:74px;font-size:23px;border-radius:20px}.portal-logout{margin:0}.member-workspace .portal-logout button{width:100%;display:flex;align-items:center;justify-content:center;gap:9px;background:#fff;border-color:#e4e8ea;color:#65747a;font-size:13px;min-height:38px}.portal-main{min-width:0;background:#f5f6f7}.portal-content{max-width:1540px;margin:0 auto;padding:32px 36px 22px}.portal-page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.portal-eyebrow{font:500 10px var(--font-heading);letter-spacing:1.7px;color:#b27443;margin:0 0 6px!important}.portal-page-heading>div>p:last-child{font-size:13px;color:#7b888f}.portal-focus-member{display:flex;align-items:center;gap:15px;background:white;border:1px solid #e6eaec;border-radius:12px;padding:20px 23px;margin-bottom:20px}.portal-focus-name{flex:1;min-width:0}.portal-focus-name>span,.portal-focus-meta>span{display:block;color:#89959a;font-size:11px;margin-bottom:3px}.portal-focus-name h2{font-size:16px}.portal-focus-name small{display:block;font:12px var(--font-reading);color:#859197;margin-top:3px}.portal-focus-meta{padding-left:24px;border-left:1px solid #edf0f2;min-width:100px}.portal-focus-meta strong{font-size:13px;font-weight:500}.portal-focus-meta:first-of-type strong{color:#bc6c31}.portal-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:26px}.portal-stat{border:1px solid #e4e8eb;background:#fff;border-radius:12px;padding:18px 21px;position:relative;overflow:hidden}.portal-stat>span{font-size:12px;color:#748289}.portal-stat>strong{display:block;font:500 29px var(--font-heading);margin:10px 0 6px;line-height:1.3;letter-spacing:-.6px}.portal-stat small{font:12px var(--font-reading);margin-left:8px;color:#93a0a6}.portal-stat p{font-size:10px;color:#97a1a6}.portal-stat.all{border-color:#e8d0bb;background:linear-gradient(115deg,#fff8f1,#fff)}.portal-stat.all>strong{color:#c77636}.portal-stat.left:before,.portal-stat.right:before{content:'';height:4px;width:25px;border-radius:8px;position:absolute;right:20px;top:24px;background:#b4c9cc}.portal-stat.right:before{background:#d5c1a9}.network-panel{background:white;border:1px solid #e3e8ea;border-radius:14px;overflow:hidden}.network-panel-header{padding:23px 25px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px}.network-panel-header h2{font-size:17px}.network-panel-header p{font-size:11px;color:#8c979c;margin-top:4px}.network-legend{display:flex;align-items:center;gap:16px;font-size:10px;color:#7c898e}.network-legend span:before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:#d2b18e;margin-right:6px}.network-legend .legend-mdp:before{background:#5f8c82}.network-legend .legend-dormant:before{background:#b9c1c5}.network-search,.network-depth{display:flex;gap:8px;align-items:center;margin:0}.network-search{flex:1;max-width:440px}.network-search>div{display:flex;align-items:center;gap:8px;border:1px solid #e1e7e9;border-radius:8px;padding:0 12px;background:#fff;flex:1;min-width:0}.network-search .portal-icon{width:17px;height:17px;color:#99a5ab}.member-workspace .network-search input{width:100%;min-width:0;padding:9px 0;border:0;background:transparent;font-size:12px;margin:0;color:#304047;outline-offset:2px}.network-depth label{font-size:11px;color:#86939a}.member-workspace .network-depth select{width:89px;border:1px solid #e1e6e9;background:#fff;color:#536168;padding:7px 10px;font-size:12px}.network-depth .portal-outline{font-size:11px;padding:9px 11px}.network-breadcrumbs{border-top:1px solid #eff1f3;border-bottom:1px solid #eff1f3;padding:13px 25px;display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:11px;color:#909ca2;background:#fff}.network-breadcrumbs nav{display:flex;align-items:center;gap:9px;min-width:0;overflow:auto}.network-breadcrumbs nav a{white-space:nowrap}.network-breadcrumbs nav a+a:before{content:'/';color:#c3cbd0;margin-right:9px}.network-breadcrumbs nav a[aria-current=page]{color:#ae703e}.network-up{display:flex;align-items:center;gap:5px;color:#a86f41;white-space:nowrap}.network-up .portal-icon{width:13px;height:13px}.network-viewport{overflow:auto;max-width:100%;background-color:#fafbfc;background-image:radial-gradient(#dce3e6 .65px,transparent .65px);background-size:18px 18px;padding:25px 16px 15px;min-height:440px;scroll-behavior:smooth}.network-canvas-wrap{position:relative;margin:0 auto}.network-canvas{position:relative;transform-origin:top left}.network-connectors{position:absolute;inset:0;overflow:visible;pointer-events:none;fill:none;stroke:#c5d0d5;stroke-width:1.4}.network-node{position:absolute;width:172px;background:#fff;border:1px solid #e0e6e8;box-shadow:0 3px 10px rgba(26,50,62,.025);border-radius:11px;display:block;overflow:hidden;color:#34464c;transition:border-color .15s,box-shadow .15s}.network-node:hover{border-color:#df9d67;box-shadow:0 5px 16px #273b4412;color:#34464c}.network-node.selected{border-color:#e2a36e;box-shadow:0 3px 12px #cb8f4520}.network-node-top{display:flex;justify-content:space-between;align-items:center;padding:12px 12px 7px}.node-avatar{height:27px;width:27px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:#f4ece3;color:#ac8158;font-size:10px}.network-node.mdp .node-avatar{background:#edf4f1;color:#537b70}.node-rank{font:500 10px var(--font-heading);color:#af7e51;padding:2px 7px;border-radius:5px;background:#faf3e9}.network-node.mdp .node-rank{color:#4f7b6e;background:#eef6f2}.network-node.dormant .node-avatar,.network-node.dormant .node-rank{background:#f1f3f5;color:#95a0a6}.network-node>strong{display:block;font-size:12px;font-weight:500;padding:0 12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.node-id{font:10px var(--font-heading);display:block;color:#9aa6ac;padding:2px 12px 10px}.network-node-bottom{display:flex;justify-content:space-between;align-items:center;padding:8px 10px;border-top:1px solid #eff2f3;color:#9aa5aa;font-size:9px;background:#fdfefe}.network-node-bottom>span:last-child{color:#ad7f54}.network-node.dormant .network-node-bottom>span:first-child{color:#98a2a8}.portal-demo-note{font-size:11px;color:#a1aaae;text-align:center;margin-top:14px!important}.portal-footnote{display:flex;justify-content:space-between;font-size:10px;color:#a7b0b5;margin-top:27px}.portal-footnote>span:first-child{letter-spacing:1.4px;font-family:var(--font-heading)}.network-search-results{margin:0 25px 20px;background:#fff9f3;border:1px solid #f0ddcd;border-radius:10px;padding:13px 15px}.network-search-results>div{display:flex;justify-content:space-between;gap:15px;font-size:12px;padding-bottom:5px}.network-search-results strong{font-weight:500}.network-search-results>div>a{font-size:11px;color:#b17443}.network-result{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-top:1px solid #f1e4d9;font-size:12px}.network-result small{display:block;color:#8b9498;font-size:10px;margin-top:3px}.portal-profile-card{border:1px solid #e4e9ec;background:white;border-radius:14px;padding:32px}.portal-profile-identity{display:flex;align-items:center;gap:18px;padding-bottom:30px;border-bottom:1px solid #edf0f2}.portal-rank{border-radius:6px;background:#eef5f1;color:#527c6d;font-size:12px;padding:5px 10px}.portal-profile-fields{display:grid;grid-template-columns:1fr 1fr;gap:24px 50px;margin:30px 0}.portal-profile-fields dt{font-size:12px;color:#8c999f;margin-bottom:5px}.portal-profile-fields dd{font-size:15px;margin:0}.portal-profile-footer{border-top:1px solid #edf0f2;padding-top:24px;display:flex;align-items:center;justify-content:space-between;gap:20px}.portal-profile-footer p{font-size:12px;color:#8e9aa0}.portal-empty{padding:50px;border:1px solid #e6eaed;background:white;border-radius:12px}.portal-empty p{margin:15px 0 25px!important}.portal-sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(min-width:1500px){.portal-content{padding:38px 48px}.network-viewport{padding-top:30px;padding-bottom:25px}}
@media(max-width:1150px){.member-workspace{grid-template-columns:195px minmax(0,1fr)}.portal-sidebar{padding:24px 14px 18px}.portal-content{padding:26px 24px 20px}.portal-focus-meta{padding-left:16px;min-width:75px}.portal-focus-meta:last-child{display:none}.network-search{max-width:none}.portal-stat{padding:16px}.portal-stat>span{font-size:11px}.portal-stat p{font-size:9px}}
@media(max-width:800px){.member-workspace{display:block}.portal-sidebar{position:relative;height:auto;min-height:0;padding:12px 20px 0;border-right:0;border-bottom:1px solid #e4e9ec;display:grid;grid-template-columns:1fr auto;gap:0 10px}.portal-brand{width:80px;margin:0}.portal-brand img{width:80px;height:46px}.portal-brand-label,.portal-nav-label,.portal-mini-profile,.portal-public-link{display:none}.portal-sidebar nav{grid-column:1/-1;display:flex;gap:5px;order:3;margin-top:13px;overflow:auto}.portal-sidebar nav a{border-radius:8px 8px 0 0;padding:11px 12px;font-size:12px;white-space:nowrap;gap:7px}.portal-sidebar nav .portal-icon{height:16px;width:16px}.portal-nav-dot{display:none}.portal-sidebar-bottom{grid-column:2;grid-row:1;margin:0;padding:0;align-self:center}.member-workspace .portal-logout button{width:auto;padding:7px 10px;font-size:11px;min-height:32px;border:0}.portal-content{padding:24px 20px 20px}.member-workspace h1,.member-workspace h1:first-child{font-size:26px}.portal-page-heading{margin-bottom:20px}.portal-page-heading>.portal-outline{font-size:11px;padding:8px 10px}.portal-page-heading>div>p:last-child{max-width:300px;font-size:12px}.portal-focus-member{padding:16px;gap:12px;flex-wrap:wrap}.portal-focus-meta{padding-left:14px}.portal-stats{gap:10px;grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:20px}.portal-stat{padding:15px 17px}.portal-stat p{font-size:10px}.portal-stat>strong{font-size:28px;margin:6px 0}.portal-stat>span{font-size:12px}.network-panel-header{padding:19px 17px;align-items:flex-start;flex-wrap:wrap;gap:12px}.network-search{min-width:100%;max-width:100%}.network-depth{margin-left:auto}.network-breadcrumbs{padding:11px 17px}.network-breadcrumbs>span{display:none}.network-viewport{min-height:380px;padding:22px 12px 14px}.network-legend{gap:13px}.portal-footnote>span:last-child{display:none}.portal-profile-card{padding:23px}.portal-profile-fields{gap:22px}.portal-profile-identity{flex-wrap:wrap}.portal-profile-identity h2{font-size:18px}.portal-profile-footer{align-items:flex-start;flex-direction:column}.portal-demo-note{font-size:10px}}
@media(max-width:430px){.portal-content{padding:20px 12px}.portal-page-heading{align-items:flex-start}.portal-page-heading>.portal-outline{font-size:0;padding:8px}.portal-page-heading>.portal-outline svg{width:20px;height:20px}.portal-focus-name{min-width:160px}.portal-focus-meta{border:0;padding-left:0;flex:1}.portal-focus-meta:last-child{display:block}.portal-profile-fields{grid-template-columns:1fr}.portal-sidebar{padding-right:12px;padding-left:12px}.portal-sidebar nav a{padding:10px 8px;font-size:11px}.portal-sidebar nav .portal-icon{width:14px;height:14px}}
@media(prefers-reduced-motion:reduce){.network-node{transition:none}.network-viewport{scroll-behavior:auto}}
/* Reset template sidebar defaults inside the member workspace. */
.member-workspace .portal-sidebar{width:100%;float:none;margin:0}
.member-workspace section{margin-top:0}
.network-canvas:not([data-ready]){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,106px),1fr));gap:8px}
.network-canvas:not([data-ready]) .network-node{position:relative;width:100%}
/* Keep the organization chart in view without crowding the summary. */

.member-workspace .portal-content{padding-top:24px}
.member-workspace .portal-page-heading{margin-bottom:18px}
.member-workspace h1,.member-workspace h1:first-child{font-size:28px;line-height:1.35;margin-bottom:5px}
.member-workspace .portal-focus-member{padding:14px 19px;margin-bottom:16px}
.member-workspace .portal-stats{margin-bottom:20px}
.member-workspace .portal-stat{padding:13px 18px}
.member-workspace .portal-stat>strong{font-size:27px;margin:5px 0}
.member-workspace .network-panel-header{padding:17px 22px 14px}


.member-workspace .network-breadcrumbs{padding:10px 22px}
.member-workspace .network-node>strong{font-size:13px}
.member-workspace .node-id{font-size:11px}
@media(max-width:800px){.member-workspace .portal-content{padding-top:20px}.member-workspace h1,.member-workspace h1:first-child{font-size:25px}}
/* Quiet secondary text remains readable on the white workspace. */
.portal-focus-name>span,.portal-focus-meta>span,.portal-stat>span,.network-panel-header p,.node-id{color:#6b7981}
.network-node-bottom{font-size:10px;color:#6e7b82}
.network-node-bottom>span:last-child{color:#a26837}
.network-node.dormant .network-node-bottom>span:first-child{color:#78858d}
.portal-stat p,.portal-demo-note,.portal-footnote{color:#7b878e}
.member-portal #main-content{width:100%;max-width:none;margin:0;padding:0;float:none}
.member-workspace .portal-sidebar{max-width:none}
.network-node{height:136px}
.network-node-bottom{position:absolute;bottom:0;left:0;right:0}

/* Focus on the chart: one identity row, optional details, and compact member cards. */
.portal-brand-label{margin:16px 10px 32px;font-size:10px;letter-spacing:2px;color:#896a50}

.member-workspace .portal-content{padding-top:26px}
.member-workspace .portal-page-heading{margin-bottom:22px}
.member-workspace .portal-page-heading h1{font-size:27px;margin:0;font-weight:500}
.portal-main{background:#f7f8f8}
.network-panel{border-color:#e4e8e7;border-radius:15px;box-shadow:0 4px 22px #23343a03}
.member-workspace .network-panel-header{padding:16px 24px;align-items:center;flex-wrap:wrap;gap:12px 24px}
.network-panel-header .network-member-identity{flex:1 1 190px}
.network-member-identity>div{min-width:0;overflow-wrap:anywhere}
.network-panel-header .network-search{flex:1 1 280px;max-width:420px;min-width:0}
.network-panel-header .network-search input,.network-panel-header .network-search button{height:42px;min-height:42px}
.network-member-identity{display:flex;align-items:center;gap:13px;min-width:0}
.network-member-identity h2{font-size:18px;font-weight:500}
.network-member-identity p{display:flex;align-items:center;gap:10px;font-size:12px;color:#718087;margin-top:5px}
.network-member-identity .portal-avatar{width:43px;height:43px;border-radius:13px;background:#f9eee3}
.network-member-identity .portal-rank{font-size:10px;padding:2px 7px;font-weight:500}

.network-search{max-width:480px}
.member-workspace .network-search input{font-size:14px}

.member-workspace .network-depth select{font-size:13px;width:95px}
.member-workspace .network-depth .portal-outline{font-size:12px}
.member-workspace .network-breadcrumbs{padding:8px 24px;background:#fdfdfc;color:#78878c}
.member-workspace .network-viewport{min-height:0;padding:clamp(12px,2vh,20px) clamp(6px,1vw,16px);background:#fbfcfc}
.network-canvas{width:100%}
.network-connectors{width:100%;height:100%}
.member-workspace .network-node{box-sizing:border-box;width:var(--card-width,100%);height:clamp(64px,10vh,80px);padding:4px 3px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-align:center;border-radius:8px;border-color:#e0e6e5;box-shadow:0 3px 12px #23343a04}
.member-workspace .network-node.selected{border-color:#d89d68;box-shadow:0 3px 15px #c0853a0c}
.member-workspace .network-node>strong{width:100%;padding:0;font-size:13px;line-height:1.35;font-weight:500;color:#30434a;display:block;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.member-workspace .node-id{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0;font-size:11px;line-height:1.35;color:#546970;font-variant-numeric:tabular-nums}
.member-workspace .node-rank{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:400;padding:1px 5px;border-radius:4px;line-height:1.35;margin:0}
.member-workspace .network-node.dormant .node-rank{color:#7b8589;background:#f1f3f3}
/* Neutral cards with API color on their outline and rank badge. */
.member-workspace .network-node.api-colored{border:1.5px solid var(--node-background,#e0e6e5);background:#fff}
.member-workspace .network-node.api-colored:hover{border-color:var(--node-background,#e0e6e5);box-shadow:0 5px 18px #23343a12}
.member-workspace .network-node:focus-visible{outline:3px solid #d58435;outline-offset:4px}
.member-workspace .network-node.api-colored .node-rank{background:var(--node-background,#faf3e9);color:var(--node-foreground,#30434a);border:0;font-weight:500;padding:1px 5px}
.network-connectors{stroke:#c6d1d1;stroke-width:1.3}

.portal-demo-note{margin-top:13px!important;font-size:10px}
@media(max-width:800px){
 
 .member-workspace .portal-content{padding-top:15px}
 .member-workspace .portal-page-heading{margin-bottom:18px}
 .member-workspace .portal-page-heading h1{font-size:24px}
 .member-workspace .network-panel-header{padding:18px 16px 15px;flex-wrap:wrap;gap:10px}
 
 .member-workspace .network-breadcrumbs{padding:10px 16px}
 .network-member-identity h2{font-size:17px}
 .network-member-identity .portal-avatar{width:38px;height:38px}
}

/* The profile and organization chart share a compact page heading. */
.member-workspace .portal-content.compact-content{padding-top:clamp(8px,1.2vh,14px)}
.compact-content .portal-page-heading{align-items:center;flex-wrap:wrap;gap:6px 14px}
.network-heading-actions{margin-left:auto;display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0}
.network-center-switcher{display:flex;align-items:center;gap:10px;min-width:0;margin:0}
.network-center-switcher>label{display:flex;align-items:center;gap:7px;font-size:12px;color:#687b80;white-space:nowrap}
.network-center-switcher>label .portal-icon{width:17px;height:17px;color:#b76b33}
.network-center-switcher>div{display:flex;align-items:center;gap:8px;min-width:0}
.member-workspace .network-center-switcher select{width:230px;max-width:100%;min-width:0;height:42px;padding:8px 32px 8px 12px;border:1px solid #dce4e2;border-radius:9px;background-color:#fff;color:#30464b;font-size:13px;cursor:pointer}
.member-workspace .network-center-switcher select:focus-visible{outline:2px solid #cc874e;outline-offset:2px;border-color:#cc874e}
.member-workspace .network-center-switcher select:disabled{opacity:1;color:#687b80;background-color:#f9faf9;cursor:default}
.member-workspace [data-center-submit][hidden]{display:none}
@media(max-width:1050px){
 .network-heading-actions{gap:8px;flex-wrap:wrap}
 .network-center-switcher>label .portal-icon{display:none}
}
@media(max-width:600px){
 .network-heading-actions{width:100%;margin:4px 0 0;justify-content:flex-start}
 .network-center-switcher{width:100%;display:grid;grid-template-columns:minmax(0,1fr);gap:5px}
 .network-center-switcher>div{width:100%}
 .member-workspace .network-center-switcher select{width:100%;flex:1}
 .network-heading-actions>.portal-outline{font-size:12px;min-height:36px;padding:6px 10px}
}
.member-workspace .compact-content .portal-page-heading{margin-bottom:10px}
.member-workspace .compact-content .portal-page-heading h1{font-size:clamp(16px,1.45vw,20px);line-height:1.4}
/* Details stay at reading size independently of the chart layout. */
.member-workspace .network-member-popover {
  position:fixed; z-index:10050; box-sizing:border-box; width:336px;
  max-width:calc(100vw - 16px); max-height:calc(100dvh - 16px);
  overflow:auto; overscroll-behavior:contain; scrollbar-width:thin;
  background:#fff; color:#293c42; border:1px solid #dfe5e3; border-radius:12px;
  box-shadow:0 8px 28px #23343920,0 2px 6px #23343909;
  text-align:left; font-size:12px; line-height:1.6; font-variant-numeric:tabular-nums;
}
.member-workspace .network-member-popover[hidden]{display:none!important}
.network-popover-heading{position:static;margin:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;background:#fafaf8;border-bottom:1px solid #e8ece9;box-shadow:none}
.network-popover-heading>div{min-width:0}
.member-workspace .network-popover-heading h2{font-size:16px;line-height:1.5;font-weight:600;margin:0;overflow-wrap:anywhere}
.network-popover-heading p{margin:2px 0 0!important;font-size:11px;color:#61727a}
.network-popover-rank{max-width:45%;overflow-wrap:anywhere;padding:2px 6px;font-size:10px;line-height:1.4;border-radius:4px;background:var(--node-background,#eee8df);color:var(--node-foreground,#30434a)}
.network-popover-body{padding:0 18px}
.member-workspace .network-bonus-section{padding:12px 0;margin:0;border-bottom:1px solid #edf0ed}
.member-workspace .network-bonus-section:last-child{border-bottom:0}
.network-bonus-heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:3px 12px;margin-bottom:8px}
.member-workspace .network-bonus-heading h3{margin:0;font-size:13px;font-weight:600;line-height:1.5;color:#30434a}
.network-bonus-heading>span{font-size:11px;color:#63747b}
.network-bonus-list{display:grid;row-gap:5px;margin:0}
.network-bonus-list>div{display:grid;grid-template-columns:minmax(0,1fr) fit-content(54%);align-items:baseline;column-gap:14px}
.network-bonus-list dt,.network-bonus-pv dt{margin:0;color:#5e7077;font-size:12px;font-weight:400}
.network-bonus-list dd,.network-bonus-pv dd{margin:0;color:#293c42;font-size:13px;font-weight:500;overflow-wrap:anywhere}
.network-bonus-list dd{text-align:right}
.network-bonus-list .network-bonus-highlight dd{color:#9c531a;font-weight:600}
.network-bonus-pv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0}
.network-bonus-pv>div+div{padding-left:16px;border-left:1px solid #e6eae8}
.network-bonus-pv dt small{font-size:10px}
.network-bonus-pv dd{margin-top:3px;font-size:14px}
.member-workspace .network-member-popover:focus-visible{outline:2px solid #bd742f;outline-offset:1px}

.network-canvas[data-direction="right"] .network-node{height:clamp(60px,9vh,70px)}
.network-canvas[data-direction="right"] .network-node>strong{font-size:12px;line-height:1.25}

@media(max-width:600px){.network-panel-header .network-search{flex-basis:100%;max-width:100%}}

/* Member navigation */
.member-workspace .portal-sidebar{
  --nav-ink:#f5f4ef;
  --nav-muted:#b0bfbe;
  --nav-accent:#ffae69;
  isolation:isolate;
  background:linear-gradient(155deg,#303e40 0%,#253235 33%,#202a2d 100%);
  color:var(--nav-ink);
  border:0;
}
.portal-sidebar .portal-brand{display:flex;width:auto;align-items:center;gap:12px;flex-shrink:0;margin:0}
.portal-sidebar .portal-brand img{width:53px;height:38px;object-fit:cover;object-position:center 45%;filter:invert(1) hue-rotate(180deg) brightness(1.35);mix-blend-mode:screen}
.portal-sidebar .portal-brand-label{display:grid;gap:3px;margin:0;padding-left:12px;border-left:1px solid #596466;letter-spacing:0;line-height:1.2;color:var(--nav-ink)}
.portal-brand-label small{white-space:nowrap;font:600 9px/1.2 var(--font-heading);letter-spacing:1.15px;color:var(--nav-accent)}
.portal-brand-label strong{font-size:16px;font-weight:500}
.portal-sidebar .portal-menu-toggle{display:none}
.portal-menu-caption,.portal-menu-divider{grid-column:1/-1;flex-shrink:0;margin:10px 10px 4px}
.portal-menu-caption{display:flex;align-items:center;gap:9px;color:var(--nav-muted);font-size:11px;font-weight:500;line-height:1.5}
.portal-menu-caption::after,.portal-menu-divider{border-top:1px solid #495659}
.portal-menu-caption::after{content:"";flex:1}
.portal-menu-caption:first-child{margin-top:0}
.member-workspace .portal-sidebar nav a{
  display:flex;align-items:center;gap:10px;border-radius:8px;
  color:var(--nav-ink);font-size:13px;line-height:1.45;
  transition:background-color .15s ease,color .15s ease;
}
.portal-sidebar nav .portal-icon{width:18px;height:18px;color:var(--nav-muted)}
.member-workspace .portal-sidebar nav a:hover{background:#354346;color:white}
.member-workspace .portal-sidebar nav a[aria-current="page"]{
  background:#ffe8cf;color:#67380f;font-weight:600;
}
.portal-sidebar nav a[aria-current="page"] .portal-icon{color:#98501c}
.portal-sidebar nav a[aria-current="page"]::after{
  content:"";width:6px;height:6px;margin-left:auto;margin-right:2px;flex:none;
  border:solid currentColor;border-width:1.5px 1.5px 0 0;transform:rotate(45deg);
}
.portal-sidebar :focus-visible{outline:2px solid var(--nav-accent);outline-offset:-2px}
.portal-sidebar nav{scrollbar-width:thin;scrollbar-color:#65726f transparent}
.portal-sidebar .portal-mini-profile{gap:10px;margin:0;padding:12px 0 10px;border-top:1px solid #495659}
.portal-mini-profile .portal-avatar{width:34px;height:34px;border-radius:50%;background:#3c4849;color:var(--nav-accent)}
.portal-mini-profile .portal-avatar .portal-icon{width:16px;height:16px}
.portal-mini-profile>div{min-width:0}
.portal-mini-profile strong{color:var(--nav-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.portal-mini-profile div>span{color:var(--nav-muted)}
.member-workspace .portal-logout button{background:transparent;border:1px solid #556063;color:var(--nav-ink);font-size:12px}
.member-workspace .portal-logout button:hover{background:#354346}
@media(min-width:801px){
  .member-workspace .portal-sidebar{min-height:0;height:100vh;height:100dvh;padding:16px 12px 12px;overflow:auto}
  .portal-sidebar .portal-brand{padding:4px 8px 16px}
  .portal-sidebar nav{flex:1 1 auto;min-height:90px;display:flex;flex-direction:column;gap:2px;overflow-y:auto;overscroll-behavior:contain}
  .portal-sidebar nav a{padding:7px 9px;min-height:36px;flex:none}
  .portal-sidebar-bottom{flex:none;padding-top:6px}
}
@media(max-width:800px){
  .member-workspace .portal-sidebar{padding:10px clamp(12px,3vw,20px);align-items:center;grid-template-columns:minmax(0,1fr) auto}
  .portal-sidebar .portal-brand{gap:9px;justify-self:start}
  .portal-sidebar .portal-brand img{width:43px;height:32px}
  .portal-sidebar .portal-brand-label{gap:2px;padding-left:9px}
  .portal-brand-label strong{font-size:14px}
  .portal-brand-label small{font-size:8px}
  .member-workspace[data-menu-open] .portal-menu-toggle{
    display:inline-flex;align-items:center;justify-content:center;gap:7px;justify-self:end;grid-column:2;grid-row:1;
    min-height:44px;padding:8px 12px;border:1px solid #637072;background:transparent;color:var(--nav-ink);font-size:13px;
  }
  .member-workspace .portal-menu-toggle[aria-expanded="true"]{border-color:var(--nav-accent);color:var(--nav-accent)}
  .member-workspace .portal-sidebar nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,156px),1fr));gap:3px;max-height:52vh;max-height:52dvh;overflow-y:auto;overscroll-behavior:contain;margin:12px 0 0}
  .member-workspace .portal-sidebar nav a{min-width:0;min-height:44px;padding:8px;gap:7px;white-space:normal}
  .member-workspace .portal-sidebar-bottom{grid-column:1/-1;grid-row:auto;order:4;justify-self:stretch;padding:8px 0 0}
  .member-workspace .portal-logout button{margin-left:auto;min-height:44px}
  .member-workspace[data-menu-open="false"] .portal-sidebar nav,.member-workspace[data-menu-open="false"] .portal-sidebar-bottom{display:none}
}
@media(prefers-reduced-motion:reduce){.member-workspace .portal-sidebar nav a{transition:none}}

.member-workspace .portal-report{max-width:760px;padding:clamp(18px,3vw,32px);border:1px solid #e1e7e5;background:#fff;border-radius:14px}
.member-workspace .portal-report h1{font-size:clamp(18px,2vw,24px);margin:0 0 12px}
.portal-report p{color:#5f7076}
.portal-report .portal-report-link{display:inline-flex;align-items:center;gap:6px;margin-top:14px;padding:7px 0;color:#98521e;font-weight:500}
.portal-report-link:hover{text-decoration:underline}
.portal-report-link .portal-icon{width:16px;height:16px}
.portal-center-list,.portal-points{list-style:none;display:grid;gap:10px;margin:16px 0 0;padding:0}
.portal-center-list a,.portal-points>div{padding:12px;border:1px solid #e6eae8;border-radius:8px}
.portal-center-list a{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#36484e}
.portal-center-list a:hover{background:#fff6ed}
.portal-center-list small,.portal-points dt{color:#63767c}
.portal-center-list svg{margin-left:auto}
.portal-points{grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr))}
.portal-points dd{margin:4px 0 0;font-size:19px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.member-basic{max-width:960px}
.member-basic .portal-profile-card{padding:clamp(20px,3vw,32px)}
.member-basic .portal-profile-identity{padding-bottom:20px;flex-wrap:nowrap;overflow-wrap:anywhere}
.member-basic .portal-profile-identity p,.member-basic dd small{display:block;font-size:13px;color:#586971}
.member-basic .portal-profile-fields{margin:22px 0 0;grid-template-columns:repeat(2,minmax(0,1fr));overflow-wrap:anywhere}
.member-basic .portal-profile-fields dt{color:#596971}
.member-basic .portal-profile-fields dd{font-weight:500}
.member-basic .profile-commission{margin-top:28px}
.commission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:12px 0 4px}
.commission-card{min-width:0;background:#fff;border:1px solid #e3e8e8;border-radius:14px;padding:clamp(18px,2vw,26px)}
.commission-heading,.commission-metrics>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.commission-card h3{margin:0;font-size:17px;color:#293a40}
.commission-heading>span{flex:none;font-size:12px;color:#975018}
.commission-metrics{margin:16px 0 0}
.commission-metrics>div{flex-wrap:wrap;border-top:1px solid #e9eded;padding:11px 0}
.commission-metrics>div:first-child{display:block;border:0;padding:0 0 16px}
.commission-metrics>div:last-child{padding-bottom:0}
.commission-metrics dt{color:#52636a;font-size:14px}
.commission-metrics dt small{display:block;font-size:12px;color:#66757a}
.commission-metrics dd{margin:0 0 0 auto;font-weight:600;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;text-align:right}
.member-basic .commission-metrics dd small{display:inline;font-size:12px;font-weight:400}
.commission-metrics>div:first-child dd{margin:4px 0 0;font-size:clamp(23px,2.4vw,30px);line-height:1.35;text-align:left}
.member-basic .commission-status{margin-top:18px;color:#596971}
@media(max-width:720px){.commission-grid{grid-template-columns:minmax(0,1fr);gap:12px}}
@media(max-width:580px){.member-basic .portal-profile-fields{grid-template-columns:1fr;gap:18px}}

/* Member orders */
.member-orders {--order-ink:#23363a;--order-muted:#53666c;--order-accent:#99501e;--order-line:#dfe6e5;--order-pad:clamp(16px,2vw,28px);container:orders / inline-size;min-width:0;color:var(--order-ink);font-variant-numeric:tabular-nums}
.member-orders .portal-page-heading {justify-content:space-between}
.member-orders .order-account {display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;color:var(--order-muted);font-size:13px}
.order-account b {font-weight:550;color:var(--order-ink)}
.member-orders :is(.order-overview,.order-detail-summary) {margin:14px 0 20px}
.member-orders :is(.order-panel,.order-overview,.order-detail-summary) {border:1px solid var(--order-line);border-radius:14px;background:#fff}
.member-orders h2,.member-orders h3 {margin:0;color:var(--order-ink);font:600 18px/1.5 var(--font-heading)}
.member-orders p,.member-orders dl,.member-orders dd {margin:0}
.member-orders a:focus-visible {outline:2px solid var(--order-accent);outline-offset:2px;border-radius:4px}
.order-overview {display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);overflow:hidden}
.order-feature,.order-chart,.order-detail-summary {padding:var(--order-pad);min-width:0}
.order-feature {display:flex;flex-direction:column;align-items:flex-start;background:linear-gradient(120deg,#fff7eb,#fcfaf6);border-right:1px solid var(--order-line)}
.member-orders .order-feature h2 {display:flex;align-items:center;gap:10px;color:#795131;font-size:14px}
.order-feature h2 span {padding:1px 9px;background:#f6e5d1;border-radius:5px;color:#79421f}
.member-orders .order-highlights {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px;width:100%;margin:12px 0 0}
.order-highlights>div {min-width:0}
.order-highlights>div:first-child {grid-column:1/-1}
.order-highlights dt,.order-chart>p,.order-section-heading>span,.order-chart-caption>span,.member-orders .order-meta {color:var(--order-muted);font-size:13px;line-height:1.6}
.order-highlights dd {font:550 18px/1.45 var(--font-heading);overflow-wrap:anywhere}
.order-highlights>div:first-child dd {font-size:clamp(27px,2.6vw,39px);line-height:1.3;letter-spacing:-.025em}
.order-highlights small,.order-receipt-value strong small {font-size:12px;font-weight:400;color:var(--order-muted);letter-spacing:0}
.member-orders :is(.order-open,.order-back,.order-year) {display:inline-flex;align-items:center;gap:8px;color:var(--order-accent);font-size:14px;font-weight:600;text-decoration:none}
.member-orders .order-open {margin-top:auto;padding-top:14px;min-height:42px}
.member-orders :is(.order-open,.order-back,.order-year):hover {text-decoration:underline}
.order-chart-caption,.order-section-heading {display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 16px}
.member-orders .order-chart>p {margin:2px 0 10px}
.member-orders .order-bars,.member-orders .order-day ul {list-style:none;margin:0;padding:0}
.member-orders .order-bars li,.member-orders .order-day li {list-style:none;margin:0}
.order-bars a {display:grid;grid-template-columns:3.2em minmax(12px,1fr) 8.5em;gap:12px;align-items:center;min-height:34px;text-decoration:none;color:var(--order-ink);font-size:14px;line-height:1.4}
.order-bars a:hover {color:var(--order-accent)}
.order-bars svg {display:block;width:100%;height:8px;border-radius:3px}
.order-bar-track {fill:#edf1f0}
.order-bar-fill {fill:#758c8b}
.order-bars li:first-child .order-bar-fill,.order-bars a:hover .order-bar-fill {fill:#c17032}
.order-bar-zero {stroke:#657779;stroke-width:1;vector-effect:non-scaling-stroke}
.order-bars strong {text-align:right;font-weight:550;overflow-wrap:anywhere}
.member-orders .order-section-heading {padding:16px var(--order-pad)}
.member-orders .order-table {width:100%;margin:0;border:0;border-collapse:collapse;font-size:14px;line-height:1.5}
.member-orders .order-table :is(th,td) {padding:10px 9px;border:0;border-top:1px solid #e6ebe9;text-align:right;background:transparent;vertical-align:middle}
.member-orders .order-table thead th {background:#f5f7f6;color:var(--order-muted);font-weight:500;font-size:12px}
.member-orders .order-table th:first-child {padding-left:var(--order-pad);text-align:left}
.member-orders .order-table tr>:last-child {padding-right:var(--order-pad)}
.member-orders .order-year {min-height:32px}
.order-year span {font-size:12px}
.order-amount {font-weight:650}
.member-orders .order-table .order-score {width:10%;white-space:nowrap;font-variant-numeric:tabular-nums}
.order-score-line {display:flex;flex-wrap:wrap;align-items:baseline;justify-content:flex-end;gap:3px 14px}
.order-point {font-size:13px;white-space:nowrap;color:#31494d}
.order-point small {font-size:11px;font-weight:500;color:var(--order-muted)}
.member-orders .order-note,.member-orders .order-empty {padding:12px var(--order-pad);color:var(--order-muted);font-size:13px}
.member-orders .order-note {border-top:1px solid var(--order-line)}
.member-orders .order-detail-summary {background:linear-gradient(110deg,#fff8ef,#fff 65%)}
.member-orders .order-back {font-size:13px;min-height:28px}
.member-orders .order-detail-summary h2 {margin:3px 0 12px}
.member-orders .order-detail-summary .order-highlights {grid-template-columns:minmax(0,1.3fr) repeat(2,minmax(0,1fr));align-items:center;border-top:1px solid var(--order-line);padding-top:13px}
.order-detail-summary .order-highlights>div:first-child {grid-column:auto}
.order-detail-summary .order-highlights>div+div {border-left:1px solid var(--order-line);padding-left:clamp(12px,2.5vw,30px)}
.order-detail-summary .order-highlights>div:first-child dd {font-size:clamp(24px,2.2vw,33px)}
.order-bills {scroll-margin-top:16px}
.member-orders .order-day h3 {display:flex;align-items:center;gap:8px;background:#f2f5f3;padding:7px var(--order-pad);font-size:14px;color:#3e5759}
.order-day h3 svg,.order-receipt-place svg {width:15px;height:15px;flex:none;color:#738988}
.member-orders .order-receipt {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.04fr) minmax(0,.9fr);align-items:center;gap:10px 20px;padding:12px var(--order-pad);font-size:14px;line-height:1.5}
.order-receipt+.order-receipt {border-top:1px solid #e8edeb}
.order-receipt>div {min-width:0;overflow-wrap:anywhere}
.order-receipt strong {color:var(--order-ink);font-weight:600}
.order-receipt-value {text-align:right}
.order-receipt-value strong {font-size:17px}
.order-receipt-place>div:first-child {display:flex;align-items:center;gap:6px;font-weight:500}
.member-orders .order-meta,.order-score-line {margin-top:3px;font-size:12px}
.member-orders .order-pager {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:5px 14px;padding:10px var(--order-pad);border-top:1px solid var(--order-line);font-size:13px;color:var(--order-muted)}
.order-pager div {display:flex;align-items:center;flex-wrap:wrap;gap:2px}
.order-pager :is(a,[aria-current=page]) {min-width:36px;min-height:40px;display:inline-grid;place-items:center;text-decoration:none;color:var(--order-accent);border-radius:6px}
.order-pager [aria-current=page] {background:#faebda;color:#693e20;font-weight:600}
.order-pager a:hover {background:#f8f4ee}
@container orders (max-width:680px){
  .order-overview {grid-template-columns:1fr}
  .order-feature {border-right:0;border-bottom:1px solid var(--order-line)}
  .order-bars a {min-height:44px}
  .member-orders .order-table,.member-orders .order-table tbody {display:block}
  .member-orders .order-table thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .member-orders .order-table tbody tr {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:baseline;gap:7px 8px;padding:11px var(--order-pad);border-top:1px solid var(--order-line)}
  .member-orders .order-table tbody tr>:is(th,td) {display:block;grid-column:span 3;padding:0;border:0;text-align:left;overflow-wrap:anywhere}
  .member-orders .order-table td[data-label]::before {content:attr(data-label);display:block;color:var(--order-muted);font-size:12px;font-weight:400}
  .member-orders .order-table td:nth-child(even) {text-align:right}
  .member-orders .order-table tbody tr>td.order-score {grid-column:span 2;width:auto;padding-top:7px;border-top:1px solid var(--order-line);text-align:right;white-space:normal}
  .member-orders .order-table td.order-score+td:last-child:not(.order-score) {grid-column:1/-1}
  .member-orders .order-year {min-height:44px}
  .member-orders .order-receipt {grid-template-columns:minmax(0,1fr) minmax(0,.85fr);gap:8px}
  .order-receipt-value {grid-column:2;grid-row:1}
  .order-receipt-place {grid-column:1/-1;display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 12px}
  .order-receipt-place .order-meta {margin:0}
}
@container orders (max-width:430px){
  .member-orders .order-detail-summary .order-highlights {grid-template-columns:repeat(2,minmax(0,1fr))}
  .order-detail-summary .order-highlights>div:first-child {grid-column:1/-1}
  .order-detail-summary .order-highlights>div:nth-child(2) {border:0;padding-left:0}
  .order-receipt-value .order-score-line {gap:2px 6px}
  .order-bars a {gap:8px;grid-template-columns:2.6em minmax(12px,1fr) 7.3em}
}

/* Period selection and score reconciliation share the member report layout. */
.lr-report {--lr-ink:#25383c;--lr-muted:#566a70;--lr-rule:#e0e7e5;--lr-accent:#965022;--lr-pad:clamp(12px,1.5vw,22px);container:lr / inline-size;min-width:0;color:var(--lr-ink);font-variant-numeric:tabular-nums}
.lr-report .portal-page-heading {justify-content:space-between}
.lr-report .order-account {display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;font-size:13px;color:var(--lr-muted)}
.lr-report :is(.lr-panel,.lr-totals) {background:#fff;border:1px solid var(--lr-rule);border-radius:14px;min-width:0;overflow:hidden}
.lr-report :is(h2,p,dl,dt,dd) {margin:0}
.lr-report h2 {font-size:17px;line-height:1.5;font-weight:600;color:var(--lr-ink)}
.lr-totals {position:relative;margin:12px 0 16px;padding:16px var(--lr-pad) 20px}
.lr-totals dl {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 18px;margin-top:12px}
.lr-totals dt,.lr-head p,.lr-entries small,.lr-empty {font-size:13px;color:var(--lr-muted)}
.lr-totals dt::before {content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:#cc773b;margin-inline-end:7px}
.lr-totals dl>div+div dt::before {background:#486970}
.lr-totals dd {font-size:clamp(18px,2.2vw,29px);font-weight:600;line-height:1.45;overflow-wrap:anywhere}
.lr-totals small {font-size:12px;color:var(--lr-muted);font-weight:400;white-space:nowrap}
.lr-ratio {display:block;position:absolute;bottom:0;left:0;width:100%;height:4px}
.lr-left {fill:#cc773b}.lr-right {fill:#486970}
.lr-columns {display:grid;grid-template-columns:minmax(0,.96fr) minmax(0,1.04fr);align-items:start;gap:14px}
.lr-head {padding:14px var(--lr-pad) 11px}
.lr-head p {margin-top:2px}
.lr-year-scroll {max-height:65vh;overflow:auto;scrollbar-width:thin}
.lr-year-scroll thead th {position:sticky;top:0;z-index:1}
.lr-report table {width:100%;border-collapse:separate;border-spacing:0;font-size:14px;line-height:1.45;color:var(--lr-ink);background:white}
.lr-report table :is(td,th) {padding:9px clamp(5px,1cqi,14px);text-align:right;border:0;border-top:1px solid #edf0ef;background:transparent;vertical-align:middle;white-space:nowrap}
.lr-report table th:first-child {text-align:left}
.lr-report thead th {font-size:12px;color:var(--lr-muted);font-weight:550;background:#f3f6f5}
.lr-report tbody th {font-weight:500}
.lr-report tbody th a {display:inline-flex;align-items:center;min-height:36px;margin-block:-5px;color:var(--lr-accent);text-decoration:underline;text-decoration-color:#ded1bf;text-underline-offset:3px}
.lr-report tr.lr-selected {background:#fcf3e9}
.lr-selected th:first-child {box-shadow:inset 3px 0 #cc773b}
.lr-report :is(a,[tabindex]):focus-visible {outline:2px solid #a35c28;outline-offset:-2px}
.lr-report tbody tr:hover {background:#faf8f4}
.lr-report .lr-entries th[scope=row] {white-space:normal;overflow-wrap:anywhere}
.lr-entries th span,.lr-entries th small {display:block}
.lr-back,.lr-pager a {color:var(--lr-accent);display:inline-flex;align-items:center;min-height:40px;text-decoration:none}
.lr-back {font-size:14px}
.lr-pager {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:4px var(--lr-pad);border-top:1px solid var(--lr-rule);font-size:13px;color:var(--lr-muted)}
.lr-pager div {display:flex;gap:16px}
.lr-empty {padding:20px var(--lr-pad)}
@container lr (max-width:800px) {
 .lr-columns {grid-template-columns:minmax(0,1fr)}
 .lr-year-scroll {max-height:15rem}
 .lr-report table :is(td,th) {padding:9px var(--lr-pad)}
}
@container lr (max-width:470px) {
 .lr-totals dl {gap:8px}
 .lr-report table {font-size:13px}
 .lr-report table :is(td,th) {padding:8px clamp(4px,1.6cqi,8px)}
 .lr-report tbody th a {min-height:44px}
 .lr-report .lr-entries th[scope=row] {width:44%}
 .lr-report .lr-year-scroll {max-height:10.5rem}
}

/* Balance plan: annual comparison and the selected year's rounds stay together. */
.balance-report {--bb-ink:#25383c;--bb-muted:#586b70;--bb-line:#e0e7e5;--bb-accent:#99511f;--bb-pad:clamp(14px,1.7vw,24px);container:balance / inline-size;min-width:0;color:var(--bb-ink);font-variant-numeric:tabular-nums}
.balance-report .portal-page-heading {justify-content:space-between}
.bb-account {display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;font-size:13px;color:var(--bb-muted)}
.bb-account b {font-weight:550}
.balance-report :is(.bb-panel,.bb-overview) {background:#fff;border:1px solid var(--bb-line);border-radius:14px;overflow:hidden;min-width:0}
.balance-report :is(h2,p) {margin:0}
.balance-report h2 {color:var(--bb-ink);font-size:17px;font-weight:600;line-height:1.5}
.balance-report .bb-overview {display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);margin:14px 0 18px}
.bb-feature {padding:22px var(--bb-pad);display:flex;flex-direction:column;justify-content:center}
.bb-feature>p {font-size:12px;font-weight:500;color:var(--bb-accent);margin-bottom:7px}
.bb-total {font-size:clamp(24px,3.2vw,34px);font-weight:600;line-height:1.45;color:var(--bb-accent);margin:8px 0}
.bb-total small {font-size:14px;font-weight:400;color:var(--bb-muted)}
.bb-unit {font-size:12px;color:var(--bb-muted)}
.bb-chart {padding:16px var(--bb-pad);border-left:1px solid var(--bb-line)}
.bb-chart h2 {display:inline;margin-right:8px;font-size:15px}
.bb-bars {margin-top:6px}
.bb-bars a {display:grid;grid-template-columns:2.7em minmax(15px,1fr) 8.6em;align-items:center;gap:12px;min-height:31px;font-size:12px;text-decoration:none;color:var(--bb-muted);border-radius:4px}
.bb-bars a[aria-current=true] {color:var(--bb-accent)}
.bb-bars a:hover {background:#faf4ec}
.bb-bars svg {width:100%;height:18px}
.bb-bars rect {fill:#b5c5c4}
.bb-bars a[aria-current=true] rect {fill:#ce7d40}
.bb-bars line {stroke:#e0e7e5;stroke-width:.5}
.bb-bars strong {text-align:right;font-size:13px;font-weight:500;color:var(--bb-ink)}
.bb-columns {display:grid;grid-template-columns:minmax(0,.75fr) minmax(0,1.4fr);align-items:start;gap:16px}
.bb-head {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:16px var(--bb-pad) 12px;flex-wrap:wrap}
.bb-head>p {width:100%}
.bb-head p {font-size:12px;color:var(--bb-muted);margin-top:2px}
.bb-year-scroll {max-height:65vh;overflow:auto;scrollbar-width:thin}
.bb-year-scroll thead th {position:sticky;top:0;z-index:1}
.balance-report table {width:100%;border-collapse:separate;border-spacing:0;font-size:14px;line-height:1.5;background:#fff;color:var(--bb-ink)}
.balance-report table :is(th,td) {padding:11px var(--bb-pad);border:0;border-top:1px solid #edf0ef;text-align:right;white-space:nowrap;vertical-align:middle;background:transparent}
.balance-report table th:first-child {text-align:left}
.balance-report thead th {background:#f3f6f5;color:var(--bb-muted);font-size:12px;font-weight:500}
.balance-report tbody th {font-weight:500}
.balance-report tr.bb-selected {background:#fcf3e9}
.balance-report .bb-selected th:first-child {box-shadow:inset 3px 0 #ce7d40}
.bb-years tbody a {display:inline-flex;gap:7px;align-items:center;min-height:36px;margin-block:-7px;color:var(--bb-accent);text-decoration:none}
.bb-years tbody a span {color:#ab7753}
.balance-report :is(a,[tabindex]):focus-visible {outline:2px solid #a35c28;outline-offset:-2px}
.balance-report tbody tr:hover {background:#faf8f4}
.balance-report .bb-round-table :is(th,td):nth-child(2),.balance-report .bb-round-table :is(th,td):nth-child(3) {text-align:center;padding-inline:8px}
.bb-round-table th small {display:block;color:var(--bb-muted);font-size:12px;font-weight:400}
.bb-round-table td strong {font-weight:600}
.bb-latest {color:var(--bb-accent);font-size:12px;text-decoration:none;min-height:36px;display:inline-flex;align-items:center}
.bb-empty {padding:20px var(--bb-pad);color:var(--bb-muted);font-size:14px;line-height:1.75}
.bb-pager {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 10px;padding:8px var(--bb-pad);border-top:1px solid var(--bb-line);font-size:12px;color:var(--bb-muted)}
.bb-pager>div {display:flex;align-items:center;flex-wrap:wrap;gap:3px}
.bb-pager :is(a,[aria-current=page]) {display:inline-grid;place-items:center;min-width:34px;min-height:40px;border-radius:5px;text-decoration:none;color:var(--bb-accent)}
.bb-pager [aria-current=page] {background:#faebda;font-weight:600}
@container balance (max-width:850px) {
 .bb-columns {grid-template-columns:minmax(0,1fr)}
 .bb-year-scroll {max-height:15rem}
 .bb-bars a {gap:8px}
}
@container balance (max-width:560px) {
 .balance-report .bb-overview {grid-template-columns:minmax(0,1fr)}
 .bb-feature {padding:16px var(--bb-pad)}
 .bb-chart {border-left:0;border-top:1px solid var(--bb-line)}
 .bb-bars a {min-height:44px}
 .bb-year-scroll {max-height:12rem}
 .bb-years tbody a {min-height:44px}
}
@container balance (max-width:390px) {
 .balance-report table {font-size:13px}
 .balance-report .bb-round-table :is(th,td) {padding:10px 6px}
 .balance-report .bb-round-table th:first-child {padding-left:10px}
 .balance-report .bb-round-table td:last-child,.balance-report .bb-round-table thead th:last-child {padding-right:10px}
 .balance-report .bb-round-table :is(th,td):nth-child(2),.balance-report .bb-round-table :is(th,td):nth-child(3) {padding-inline:3px}
 .bb-pager :is(a,[aria-current=page]) {min-width:31px}
}

/* Current-month estimate: totals and source entries remain visible together. */
.monthly-twin-report .mt-overview {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);margin-top:14px}
.mt-total {padding:24px var(--bb-pad);background:#fbf8f3}
.mt-eyebrow {display:block;font-size:12px;color:var(--bb-accent);margin-bottom:5px}
.monthly-twin-report .mt-total h2 {font-size:17px}
.mt-total .bb-total {margin:7px 0 2px;font-size:clamp(26px,3vw,36px);overflow-wrap:anywhere}
.mt-tiers {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;padding:20px var(--bb-pad);gap:24px}
.mt-tier {min-width:0}
.mt-tier-title {display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
.mt-tier-title h3 {margin:0;font-size:14px;font-weight:500;color:var(--bb-ink)}
.mt-tier-title>span {font-size:12px;color:var(--bb-accent);background:#fcf1e4;border-radius:6px;padding:3px 8px}
.mt-tier>strong {display:block;font-size:24px;font-weight:600;color:var(--bb-ink);overflow-wrap:anywhere}
.mt-tier strong small {font-size:12px;color:var(--bb-muted);font-weight:400}
.mt-tier svg {display:block;width:100%;height:4px;margin-top:13px}
.mt-track {fill:#edf1ef}.mt-fill {fill:#cf8245}
.mt-tier-later .mt-fill {fill:#536e70}
.mt-tier-later .mt-tier-title>span {background:#edf3f1;color:#4f696b}
.mt-pending {display:block;font-size:12px;color:var(--bb-muted);margin-top:8px}
.monthly-twin-report .mt-estimate-note {font-size:12px;line-height:1.75;color:var(--bb-muted);padding:12px 2px 18px}
.mt-notice {display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 16px;background:#fff5e8;border-radius:8px;margin-bottom:16px;font-size:13px;color:#865327}
.mt-notice a {color:inherit;text-underline-offset:3px}
.monthly-twin-report .mt-entries .bb-head {padding-block:18px}
.mt-count {color:var(--bb-muted);font-size:12px;white-space:nowrap}
.monthly-twin-report .mt-table {table-layout:fixed}
.monthly-twin-report .mt-table th:first-child {width:56%}
.monthly-twin-report .mt-table :is(th,td):nth-child(2) {width:20%}
.monthly-twin-report .mt-table :is(th,td):nth-child(3) {width:24%}
.monthly-twin-report .mt-table :is(th,td) {padding-block:13px}
.monthly-twin-report .mt-member {white-space:normal;overflow-wrap:anywhere}
.mt-member strong {display:block;font-size:14px;font-weight:500;color:var(--bb-ink)}
.mt-member small {display:block;font-size:12px;color:var(--bb-muted);margin-top:4px;font-weight:400}
.mt-amount strong {font-weight:600;color:var(--bb-accent)}
@container balance (max-width:850px) {
 .monthly-twin-report .mt-overview {grid-template-columns:minmax(0,1fr)}
 .mt-total {padding-block:18px}.mt-tiers {padding-block:18px;gap:28px}
 .mt-tier>strong {font-size:22px}
}
@container balance (max-width:600px) {
 .monthly-twin-report .mt-table,.monthly-twin-report .mt-table tbody {display:block}
 .monthly-twin-report .mt-table thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .monthly-twin-report .mt-table tbody tr {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px;padding:16px var(--bb-pad);border-top:1px solid #edf0ef}
 .monthly-twin-report .mt-table tbody tr :is(th,td):nth-child(n) {display:block;min-width:0;width:auto;padding:0;border:0;white-space:normal;overflow-wrap:anywhere;text-align:left}
 .monthly-twin-report .mt-table .mt-member {grid-column:1 / -1;grid-row:1}
 .monthly-twin-report .mt-table tbody tr .mt-amount:nth-child(n) {text-align:right}
 .monthly-twin-report .mt-table :is(.mt-pv,.mt-amount)::before {content:attr(data-label);display:block;font-size:11px;font-weight:400;color:var(--bb-muted);margin-bottom:4px}
 .mt-tiers {gap:18px}.mt-tier-title {gap:4px}.mt-tier-title h3 {font-size:13px}
 .mt-tier-title>span {padding:2px 6px}.mt-tier>strong {font-size:20px}
}

/* Twin bonus: annual context and aligned monthly values in the member theme. */
.twin-report .bb-columns {grid-template-columns:minmax(250px,280px) minmax(0,1fr)}
.twin-report .tb-month-table {table-layout:fixed;font-size:13px}
.twin-report .tb-month-table :is(th,td) {padding:16px 9px}
.twin-report .tb-month-table th:first-child {width:23%;padding-left:var(--bb-pad)}
.twin-report .tb-month-table :is(th,td):last-child {padding-right:var(--bb-pad)}
.twin-report .tb-month-table .tb-primary {font-weight:600;color:var(--bb-accent)}
.twin-report .tb-month-table td::before {display:none}
@container balance (max-width:940px) {
 .twin-report .bb-columns {grid-template-columns:minmax(0,1fr)}
 .twin-report .tb-month-table :is(th,td) {padding-block:14px}
}
@container balance (max-width:560px) {
 .twin-report .tb-month-table,.twin-report .tb-month-table tbody {display:block}
 .twin-report .tb-month-table thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .twin-report .tb-month-table tbody tr {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 8px;padding:14px var(--bb-pad);border-top:1px solid var(--bb-line)}
 .twin-report .tb-month-table tbody :is(th,td) {display:block;padding:0;border:0;min-width:0;white-space:normal;text-align:left;width:auto}
 .twin-report .tb-month-table tbody th:first-child {width:auto;padding:0;grid-column:1 / 3;align-self:center;font-size:14px}
 .twin-report .tb-month-table td.tb-primary {grid-column:3 / 5;text-align:right}
 .twin-report .tb-month-table td::before {content:attr(data-label);display:block;font-size:11px;font-weight:400;color:var(--bb-muted);margin-bottom:4px}
 .twin-report .tb-month-table td span {overflow-wrap:anywhere}
 .twin-report .tb-month-table .tb-primary span {font-size:16px}
}

.twin-report .tb-month-table td a {color:var(--bb-accent);text-decoration:underline;text-decoration-color:#d9ba9c;text-underline-offset:4px;display:inline-flex;align-items:center;min-height:36px;margin-block:-8px}
.twin-report .tb-month-table td a:hover {color:#70411f;text-decoration-color:currentColor}
.tb-detail-heading {display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;padding:20px var(--bb-pad)}
.tb-back {display:inline-flex;align-items:center;min-height:36px;color:var(--bb-accent);font-size:13px;text-decoration:none;margin-bottom:4px}
.twin-report .tb-detail-heading h2 {font-size:20px}
.twin-report .tb-detail-heading p {font-size:14px;color:var(--bb-muted);margin-top:4px}
.tb-month-total {display:flex;flex-direction:column;gap:4px}
.tb-month-total span {font-size:12px;color:var(--bb-muted)}
.tb-month-total strong {font-size:26px;font-weight:600;color:var(--bb-accent)}
.tb-month-total small {font-size:13px;font-weight:400;color:var(--bb-muted)}
.tb-tabs {display:flex;gap:20px;padding:0 var(--bb-pad);border-bottom:1px solid var(--bb-line)}
.tb-tabs a {display:flex;align-items:center;min-height:48px;text-decoration:none;color:var(--bb-muted);font-size:14px;border-bottom:2px solid transparent}
.tb-tabs a[aria-current=page] {color:var(--bb-accent);border-bottom-color:#cc7d40;font-weight:600}
.twin-report .tb-breakdown {table-layout:fixed}
.twin-report .tb-breakdown th:first-child {width:54%;white-space:normal}
.twin-report .tb-breakdown :is(th,td) {padding-block:22px}
.tb-part-label {display:flex;align-items:center;gap:16px;text-align:left}
.tb-part-label>div {min-width:0}
.tb-part-label strong {font-size:15px;font-weight:550}
.tb-part-label small {display:block;font-size:12px;font-weight:400;color:var(--bb-muted);margin-top:5px;line-height:1.65}
.tb-rate {display:grid;place-items:center;width:52px;height:52px;flex-shrink:0;border-radius:50%;background:#faf1e6;color:var(--bb-accent);font-size:17px;font-weight:550}
.twin-report .tb-breakdown td:last-child {color:var(--bb-accent)}
.twin-report .tb-breakdown td::before {display:none}
.twin-report .tb-purchase-note {padding:16px var(--bb-pad) 8px;color:var(--bb-muted);font-size:12px;line-height:1.7}
.twin-report .tb-row-count {padding:8px var(--bb-pad) 14px;color:var(--bb-muted);font-size:12px}
.twin-report .tb-purchases {table-layout:fixed}
.twin-report .tb-purchases :is(th,td) {padding-block:15px}
.twin-report .tb-purchases :is(th,td):nth-child(2),.twin-report .tb-purchases :is(th,td):nth-child(3) {text-align:left;overflow-wrap:anywhere;white-space:normal}
@container balance (max-width:700px) {
 .twin-report .tb-breakdown,.twin-report .tb-breakdown tbody {display:block}
 .twin-report .tb-breakdown thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .twin-report .tb-breakdown tbody tr {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:18px var(--bb-pad);gap:14px 20px;border-top:1px solid var(--bb-line)}
 .twin-report .tb-breakdown tbody :is(th,td) {display:block;padding:0;border:0;min-width:0;white-space:normal;width:auto;text-align:left;overflow-wrap:anywhere}
 .twin-report .tb-breakdown tbody th:first-child {width:auto;grid-column:1 / -1}
 .twin-report .tb-breakdown td {padding-left:68px}
 .twin-report .tb-breakdown td:last-child {padding-left:0}
 .twin-report .tb-breakdown td::before {content:attr(data-label);display:block;font-size:11px;color:var(--bb-muted);margin-bottom:4px}
}
@container balance (max-width:560px) {
 .twin-report .tb-month-table td a {min-height:44px;margin-block:-8px}
 .twin-report .tb-month-table .tb-primary a {font-size:16px}
 .twin-report .tb-breakdown td {padding-left:0}
 .tb-rate {width:44px;height:44px;font-size:15px}
 .tb-part-label {gap:12px}
 .tb-tabs {gap:18px}
 .tb-tabs a {font-size:13px}
 .twin-report .tb-purchases,.twin-report .tb-purchases tbody {display:block}
 .twin-report .tb-purchases thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .twin-report .tb-purchases tbody tr {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px 16px;padding:14px var(--bb-pad);border-top:1px solid var(--bb-line)}
 .twin-report .tb-purchases tbody :is(th,td) {display:block;padding:0;border:0;white-space:normal;text-align:left;min-width:0;overflow-wrap:anywhere}
 .twin-report .tb-purchases tbody th {grid-column:1/-1;font-size:14px}
 .twin-report .tb-purchases td:last-child {grid-column:2;grid-row:2 / 4;text-align:right}
 .twin-report .tb-purchases td::before {content:attr(data-label);display:block;font-size:11px;color:var(--bb-muted);margin-bottom:4px}
}


/* Compact annual selector: the entire year row is a link with a scaled comparison bar. */
.twin-report .tb-years .bb-head {padding:15px 16px 11px;align-items:flex-start}
.twin-report .tb-years .bb-head h2 {font-size:16px}
.twin-report .tb-years .bb-head .bb-unit {padding-top:3px}
.tb-years-grid {display:grid;grid-template-columns:minmax(0,1fr);gap:2px;padding:0 10px 10px;max-height:510px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c5cdca transparent}
.tb-year-item {display:grid;grid-template-columns:auto minmax(0,1fr);gap:7px 10px;align-items:center;padding:11px 10px;border-radius:7px;color:var(--bb-ink);text-decoration:none;min-width:0;min-height:58px;border:1px solid transparent;transition:background .15s,border-color .15s}
.tb-year-label {display:flex;align-items:center;gap:7px;font-size:13px;color:var(--bb-muted)}
.tb-year-label>span {color:#a6b1ae;font-size:12px}
.tb-year-item strong {text-align:right;font-size:14px;font-weight:550;line-height:1.5;overflow-wrap:anywhere}
.tb-year-item svg {display:block;grid-column:1 / -1;width:100%;height:6px}
.tb-year-track {fill:#edf1ef}
.tb-year-bar {fill:#9eafaa}
.tb-year-item svg line {stroke:#81918c;stroke-width:.7}
.tb-year-item:hover {background:#f7f8f6;border-color:#e5e9e6}
.tb-year-item[aria-current=true] {background:#fbf0e3;border-color:#ebd0b0}
.tb-year-item[aria-current=true] :is(.tb-year-label,strong) {color:#98531f}
.tb-year-item[aria-current=true] .tb-year-label>span {color:#bc7134}
.tb-year-item[aria-current=true] .tb-year-track {fill:#efdfc9}
.tb-year-item[aria-current=true] .tb-year-bar {fill:#cf803f}
.twin-report .tb-year-item:focus-visible {outline-offset:-3px}
@container balance (max-width:940px) {
 .tb-years-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 12px;max-height:152px;padding:0 14px 12px}
 .tb-year-item {min-height:61px}
}
@container balance (max-width:650px) {
 .tb-years-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px;max-height:176px}
 .tb-year-item {grid-template-columns:minmax(0,1fr);gap:3px;padding:8px 10px;min-height:74px}
 .tb-year-label {justify-content:space-between;font-size:12px}
 .tb-year-item strong {text-align:left;font-size:14px}
 .tb-year-item svg {margin-top:2px}
}
/* Sponsor RV: years and the selected year's dates remain visible together. */
.rv-columns {display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.4fr);gap:18px;align-items:start}
.rv-count {font-size:12px;color:var(--bb-muted)}
.rv-year-list {display:grid;max-height:420px;overflow:auto;scrollbar-width:thin;padding:0 10px 10px;gap:2px}
.rv-year {display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:9px 14px;padding:14px;border-radius:8px;color:var(--bb-ink);text-decoration:none}
.rv-year:hover {background:#faf8f4}
.rv-year[aria-current=true] {background:#fcf1e5}
.rv-year-label {font-size:14px;font-weight:500}
.rv-year-label>span {color:#9b704b;font-size:12px;margin-left:5px}
.rv-year strong {font-weight:550;font-size:16px;text-align:right;overflow-wrap:anywhere}
.rv-year small,.rv-total small {font-size:12px;font-weight:400;color:var(--bb-muted);white-space:nowrap}
.rv-year svg {grid-column:1/-1;display:block;width:100%;height:5px}
.rv-year line {stroke:#dee5e3;stroke-width:.5}
.rv-year rect {fill:#acbfbd}
.rv-year[aria-current=true] rect {fill:#ce7c3e}
.rv-year[aria-current=true] .rv-year-label {color:var(--bb-accent)}
.rv-details {scroll-margin-top:16px}
.rv-detail-head {display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:22px var(--bb-pad);background:#fcfaf6}
.rv-eyebrow {font-size:12px;color:var(--bb-accent)}
.rv-report .rv-detail-head h2 {font-size:21px;margin-top:3px}
.rv-detail-head p {font-size:12px;color:var(--bb-muted);margin-top:5px!important}
.rv-total {font-size:clamp(25px,2.6vw,32px);line-height:1.5;font-weight:600;color:var(--bb-accent);overflow-wrap:anywhere;max-width:100%}
.rv-report .rv-ledger-caption {font-size:12px;color:var(--bb-muted);padding:12px var(--bb-pad)}
.rv-report .rv-table {table-layout:fixed}
.rv-report .rv-table th:first-child {width:48%}
.rv-report .rv-table :is(th,td) {padding-block:14px;white-space:normal;overflow-wrap:anywhere}
.rv-table tbody td {font-weight:550}
.rv-report .bb-pager a {padding-inline:9px}
.rv-report .rv-missing {padding:12px var(--bb-pad);color:var(--bb-muted);font-size:12px;border-top:1px solid var(--bb-line)}
@container balance (max-width:680px) {
 .rv-columns {grid-template-columns:minmax(0,1fr);gap:14px}
 .rv-year-list {max-height:210px}
 .rv-detail-head {padding-block:18px}
}
/* Shipping: one compact ledger; the same records become cards on narrow screens. */
.ship-heading {display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px var(--bb-pad);flex-wrap:wrap}
.ship-heading-title {display:flex;align-items:center;gap:12px;min-width:0}
.ship-heading-title p {font-size:12px;color:var(--bb-muted);margin-top:3px!important}
.ship-icon {width:42px;height:42px;display:grid;place-items:center;background:#fcf0e4;color:#ad612c;border-radius:12px;flex-shrink:0}
.ship-icon svg {width:21px;height:21px}
.ship-filter {display:flex;align-items:center;gap:9px;margin:0;flex-wrap:wrap}
.ship-filter label {font-size:12px;color:var(--bb-muted);margin:0}
.member-workspace .ship-filter select {height:40px;width:104px;margin:0;border:1px solid #dce3e2;border-radius:8px;background:#fff;padding:5px 10px;font-size:14px;color:var(--bb-ink)}
.ship-filter button {height:40px;border:0;border-radius:8px;padding:0 14px;background:#f58220;color:#fff;font-size:13px;font-weight:600;cursor:pointer}
.ship-filter :is(button,select):focus-visible {outline:2px solid #99511f;outline-offset:3px}
.ship-summary {display:flex;gap:clamp(24px,5vw,80px);padding:18px var(--bb-pad);border-top:1px solid #edf0ef;border-bottom:1px solid #edf0ef;background:#fcfaf7}
.ship-summary>div {min-width:0}
.ship-summary span {display:block;font-size:12px;color:var(--bb-muted)}
.ship-summary strong {display:block;margin-top:6px;font-size:26px;line-height:1.5;font-weight:600;overflow-wrap:anywhere}
.ship-summary .ship-total {color:var(--bb-accent)}
.ship-summary small {font-size:12px;color:var(--bb-muted);font-weight:400}
.ship-ledger-heading {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px var(--bb-pad);font-size:12px;color:var(--bb-muted);scroll-margin-top:16px}
.shipping-report .ship-table {table-layout:fixed}
.shipping-report .ship-table :is(th,td) {text-align:left;padding:17px 12px;white-space:normal;overflow-wrap:anywhere;font-size:13px;line-height:1.6}
.shipping-report .ship-table thead th {font-size:12px;padding-block:11px}
.shipping-report .ship-table :is(th,td):first-child {width:26%;padding-left:var(--bb-pad)}
.shipping-report .ship-table :is(th,td):nth-child(2) {width:16%}
.shipping-report .ship-table :is(th,td):nth-child(3) {width:15%}
.shipping-report .ship-table :is(th,td):nth-child(4) {width:14%}
.shipping-report .ship-table :is(th,td):nth-child(5) {width:16%;text-align:right}
.shipping-report .ship-table :is(th,td):last-child {width:13%;padding-right:var(--bb-pad)}
.ship-reference>strong {display:block;font-size:14px;font-weight:550}
.ship-delivery-number {display:block;font-size:12px;margin-top:4px;font-weight:400;color:var(--bb-muted)}
.ship-delivery-number>span {font-size:10px;margin-right:3px}
.ship-table time small {display:block;font-size:11px;color:var(--bb-muted);margin-top:2px}
.ship-muted {color:#738386}
.ship-table .ship-amount {font-weight:550;font-variant-numeric:tabular-nums}
.ship-status {display:inline-block;border-radius:6px;padding:4px 8px;font-size:11px;line-height:1.6;font-weight:500;background:#f1f4f3;color:#617275}
.ship-status-known {background:#fff0df;color:#99511f}
.ship-status-complete {background:#edf5f1;color:#346454}
.shipping-report .ship-empty {padding:32px var(--bb-pad)}
.ship-empty>.portal-icon {width:30px;height:30px;color:#c07840;margin-bottom:14px}
.ship-empty p {font-size:13px;color:var(--bb-muted);margin-top:7px!important}
.ship-empty a {margin-top:15px}
@container balance (max-width:860px) {
 .shipping-report .ship-table thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .shipping-report .ship-table,.shipping-report .ship-table tbody {display:block;width:100%}
 .shipping-report .ship-table tr {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 20px;padding:20px var(--bb-pad);border-top:1px solid var(--bb-line)}
 .shipping-report .ship-table :is(th,td) {padding:0!important;width:auto!important;border:0;text-align:left!important;font-size:14px}
 .shipping-report .ship-table .ship-reference {grid-column:1/-1;padding-bottom:12px!important;border-bottom:1px solid #edf0ef}
 .ship-reference>strong {font-size:15px}
 .ship-table td:before {content:attr(data-label);display:block;font-size:11px;color:var(--bb-muted);font-weight:400;margin-bottom:5px}
 .shipping-report .ship-table .ship-state {grid-column:2;grid-row:4}
 .shipping-report .ship-table .ship-amount {grid-column:1;grid-row:4;font-size:18px;color:var(--bb-accent)}
 .ship-status {font-size:12px}
}
@container balance (max-width:440px) {
 .ship-filter {width:100%;gap:8px}
 .member-workspace .ship-filter select {flex:1;min-width:70px;width:auto}
 .ship-filter button {padding-inline:10px}
 .ship-summary {gap:16px;flex-wrap:wrap}
 .ship-summary>div {flex:0 1 70px}
 .ship-summary>div:last-child {flex:1 1 170px}
 .ship-summary strong {font-size:23px}
 .ship-ledger-heading {font-size:11px}
}
/* MDP: date filters, paired scores, and a compact daily/monthly ledger. */
.mdp-report .mdp-filter {display:flex;flex-wrap:wrap;align-items:end;gap:14px;margin:0 0 18px;padding:18px var(--bb-pad)}
.mdp-filter>div {flex:1 1 160px;min-width:0}
.mdp-filter label {display:block;margin:0 0 6px;color:var(--bb-muted);font-size:12px;font-weight:500}
.member-workspace .mdp-filter :is(input,select) {width:100%;min-width:0;max-width:100%;height:44px;margin:0;padding:8px 11px;border:1px solid #dce3e2;background:#fff;color:var(--bb-ink);font-size:14px}
.mdp-filter :is(input,select):focus-visible {outline:2px solid #c9793a;outline-offset:2px}
.mdp-filter .mdp-filter-actions {display:flex;align-items:center;gap:16px;flex:0 1 auto;min-height:44px}
.mdp-filter-actions a {color:var(--bb-muted);font-size:13px;padding:8px 0;white-space:nowrap}
.mdp-filter-actions .portal-icon {width:17px;height:17px}
.mdp-report .mdp-overview {display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);margin-bottom:18px}
.mdp-summary {padding:24px var(--bb-pad)}
.mdp-period {font-size:12px;color:var(--bb-muted);margin-top:5px!important}
.mdp-sides {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:26px}
.mdp-side {min-width:0}
.mdp-side+.mdp-side {border-left:1px solid var(--bb-line);padding-left:20px}
.mdp-side-label {font-size:13px;font-weight:500;color:var(--bb-muted)}
.mdp-side-label:before,.mdp-legend span:before {content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:#ce7c3e;margin-right:7px}
.mdp-right .mdp-side-label:before,.mdp-legend .mdp-right:before {background:#597c7b}
.mdp-side>strong {display:block;margin-top:10px;font-size:clamp(21px,2.2vw,29px);line-height:1.45;font-weight:600;letter-spacing:-.4px;overflow-wrap:anywhere}
.mdp-side.mdp-left>strong {color:#a55524}
.mdp-side.mdp-right>strong {color:#345d5c}
.mdp-measure {font-size:12px;color:var(--bb-muted)}
.mdp-side p {margin-top:16px!important;font-size:12px;color:var(--bb-muted)}
.mdp-side p b {margin-left:7px;color:var(--bb-ink);font-weight:500;font-size:15px}
.mdp-report .mdp-total-note {font-size:11px;line-height:1.7;color:var(--bb-muted);margin-top:23px}
.mdp-trend {padding:20px var(--bb-pad);border-left:1px solid var(--bb-line)}
.mdp-trend-title {display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}
.mdp-report .mdp-trend h2 {font-size:14px}
.mdp-trend-title>span {font-size:11px;color:var(--bb-muted)}
.mdp-legend {display:flex;gap:16px;margin:10px 0 8px;font-size:11px;color:var(--bb-muted)}
.mdp-trend ul {list-style:none;padding:0;margin:0;display:grid;gap:8px}
.mdp-report .mdp-trend li {display:grid;grid-template-columns:4.8em minmax(32px,1fr) max-content;align-items:center;gap:8px;min-height:36px;font-size:11px;color:var(--bb-muted);margin:0;padding:0}
.mdp-trend svg {display:block;width:100%;height:36px;overflow:visible}
.mdp-trend-values {display:grid;grid-template-rows:repeat(2,18px);font-size:12px;font-weight:500;line-height:18px;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.mdp-trend-values .mdp-left {color:#99511f}
.mdp-trend-values .mdp-right {color:#345d5c}
.mdp-trend line {stroke:#d9e3e1;stroke-width:.5}
.mdp-trend rect.mdp-left {fill:#ce7c3e}.mdp-trend rect.mdp-right {fill:#597c7b}
.mdp-report .mdp-table {table-layout:fixed}
.mdp-report .mdp-table th:first-child {width:24%}
.mdp-report .mdp-table :is(th,td) {padding:13px clamp(8px,1.4vw,20px);font-size:14px}
.mdp-report .mdp-table thead th {font-size:12px;white-space:normal}
.mdp-report .mdp-table tbody td:nth-child(2) {font-weight:550;color:#99511f}
.mdp-report .mdp-table tbody td:nth-child(3) {font-weight:550;color:#345d5c}
.mdp-count {color:var(--bb-muted);font-size:12px}
.mdp-report .mdp-message {padding:24px var(--bb-pad)}
.mdp-message p {margin-top:8px!important;color:var(--bb-muted);font-size:13px}
.mdp-message a {margin-top:15px}
.mdp-report .mdp-missing {margin:0;padding:12px var(--bb-pad);border-top:1px solid var(--bb-line)}
.mdp-report .bb-pager a {padding-inline:10px}
@container balance (max-width:950px) {
 .mdp-report .mdp-overview {grid-template-columns:minmax(0,1fr)}
 .mdp-trend {border-left:0;border-top:1px solid var(--bb-line)}
 .mdp-trend ul {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 24px}
}
@container balance (max-width:650px) {
 .mdp-trend ul {grid-template-columns:minmax(0,1fr)}
 .mdp-report .mdp-table thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .mdp-report .mdp-table,.mdp-report .mdp-table tbody {display:block;width:100%}
 .mdp-report .mdp-table tr {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:14px var(--bb-pad);gap:12px 18px;border-top:1px solid var(--bb-line)}
 .mdp-report .mdp-table :is(th,td) {border:0;padding:0;width:auto;white-space:normal;overflow-wrap:anywhere;text-align:left;font-size:16px}
 .mdp-report .mdp-table th:first-child {grid-column:1/-1;width:auto;font-size:13px}
 .mdp-report .mdp-table td:before {content:attr(data-label);display:block;font-size:11px;font-weight:400;color:var(--bb-muted);margin-bottom:4px}
}
@container balance (max-width:430px) {
 .mdp-filter>div {flex-basis:100%}
 .mdp-filter .mdp-filter-actions {flex-basis:100%}
 .mdp-filter-actions button {flex:1}
 .mdp-sides {grid-template-columns:minmax(0,1fr);gap:16px;margin-top:20px}
 .mdp-side+.mdp-side {padding-left:0;border-left:0;border-top:1px solid var(--bb-line);padding-top:16px}
 .mdp-side>strong {font-size:24px}
 .mdp-trend ul {grid-template-columns:minmax(0,1fr)}
}

/* PT promotion: eligibility and both referral lists are visible without extra navigation. */
.pt-report .pt-overview {display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);margin:14px 0 24px}
.pt-status {padding:24px var(--bb-pad);background:#fbf7f1;position:relative}
.pt-status-icon {display:flex;align-items:center;justify-content:center;width:42px;height:42px;background:#f7e8d7;border-radius:12px;color:#a65b27;margin-bottom:16px}
.pt-status-icon svg {width:23px;height:23px}
.pt-eyebrow {display:block;font-size:12px;color:var(--bb-accent);margin-bottom:5px}
.pt-report .pt-status h2 {font-size:clamp(18px,2cqi,23px);line-height:1.6;margin-bottom:6px}
.pt-status p {font-size:13px;line-height:1.8;color:var(--bb-muted);max-width:44em}
.pt-qualified .pt-status {background:#f2f7f4}
.pt-qualified .pt-status-icon {background:#e1ede5;color:#346551}
.pt-qualified .pt-eyebrow {color:#346551}
.pt-metrics {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;padding:24px var(--bb-pad);gap:20px}
.pt-metric {min-width:0}
.pt-metric+.pt-metric {padding-left:20px;border-left:1px solid var(--bb-line)}
.pt-metric>span,.pt-side h2 {display:flex;align-items:center;gap:8px}
.pt-metric>span::before,.pt-side h2::before {content:'';width:8px;height:8px;border-radius:50%;background:#c97b40;flex:none}
.pt-right>span::before,.pt-right h2::before {background:#597e7a}
.pt-metric>span {font-size:14px;color:var(--bb-muted)}
.pt-report .pt-metric p {font-size:13px;color:var(--bb-muted);margin:12px 0 4px}
.pt-metric strong {font-size:34px;line-height:1.4;font-weight:600;color:#a65b27;margin-right:5px}
.pt-metric.pt-right strong {color:#376362}
.pt-metric small {font-size:12px;line-height:1.7;color:var(--bb-muted)}
.pt-alert {display:flex;justify-content:space-between;align-items:center;gap:14px;background:#fff4e8;border-radius:10px;padding:12px var(--bb-pad);margin-bottom:18px;color:#864e25;font-size:14px}
.pt-alert a {color:inherit;white-space:nowrap;min-height:44px;display:inline-flex;align-items:center}
.pt-list-heading {display:flex;align-items:baseline;justify-content:space-between;gap:8px 18px;flex-wrap:wrap;margin:0 0 12px}
.pt-list-heading>span {font-size:12px;color:var(--bb-muted)}
.pt-sides {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.pt-side-heading {display:flex;justify-content:space-between;align-items:center;padding:17px var(--bb-pad);gap:12px;border-bottom:1px solid var(--bb-line)}
.pt-side-heading>span {font-size:12px;color:var(--bb-muted)}
.pt-ledger {max-height:560px;overflow:auto;scrollbar-width:thin;scrollbar-color:#c8d2d0 transparent}
.pt-report :is(a,[tabindex]):focus-visible {outline:2px solid #a65b27;outline-offset:-2px}
.pt-report .pt-table {width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px;text-align:left}
.pt-report .pt-table thead {position:sticky;top:0;z-index:1;background:#f4f7f6}
.pt-report .pt-table th {font-weight:400;white-space:normal}
.pt-report .pt-table th:first-child {width:50%}
.pt-report .pt-table :is(th,td) {padding:13px 12px;vertical-align:middle;border-bottom:1px solid #edf0ef;line-height:1.7;text-align:left}
.pt-report .pt-table :is(th,td):first-child {padding-left:var(--bb-pad)}
.pt-report .pt-table :is(th,td):last-child {padding-right:var(--bb-pad)}
.pt-report .pt-table thead th {font-size:12px;color:var(--bb-muted);white-space:nowrap}
.pt-report .pt-table tbody tr:last-child :is(th,td) {border-bottom:0}
.pt-report .pt-table tbody tr:hover {background:#fcfaf7}
.pt-member-name {display:block;white-space:normal;overflow-wrap:anywhere;color:var(--bb-ink);font-weight:500}
.pt-member-id {display:block;font-size:12px;color:var(--bb-muted);overflow-wrap:anywhere;margin-top:2px}
.pt-report .pt-table td {white-space:nowrap}
.pt-empty {min-height:192px;padding:26px var(--bb-pad);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;color:var(--bb-muted)}
.pt-empty>.portal-icon {width:27px;height:27px;margin-bottom:4px;color:#819492}
.pt-empty strong {font-weight:500;font-size:14px}
.pt-empty p {font-size:12px;line-height:1.8;max-width:30em}
.pt-report .pt-note {margin:18px 2px 0;font-size:13px;color:var(--bb-muted);line-height:1.9}
@container balance (max-width:950px) {
 .pt-report .pt-overview {grid-template-columns:1fr 1fr}
 .pt-sides {grid-template-columns:1fr}
 .pt-report .pt-table th:first-child {width:55%}
 .pt-status {padding-block:20px}
 .pt-metrics {gap:12px}
 .pt-metric+.pt-metric {padding-left:12px}
}
@container balance (max-width:560px) {
 .pt-report .pt-overview {grid-template-columns:1fr;margin-bottom:20px}
 .pt-status-icon {width:36px;height:36px;float:right;margin:0 0 8px 10px}
 .pt-metrics {padding-block:18px}
 .pt-metric strong {font-size:29px}
 .pt-report .pt-metric p {margin-top:7px}
 .pt-ledger {max-height:none}
 .pt-empty {min-height:155px}
}
@container balance (max-width:430px) {
 .pt-report .pt-table thead {position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
 .pt-report .pt-table tbody {display:block}
 .pt-report .pt-table tbody tr {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:12px var(--bb-pad);gap:8px 12px;border-bottom:1px solid #edf0ef}
 .pt-report .pt-table tbody tr:last-child {border:0}
 .pt-report .pt-table tbody tr :is(th,td):nth-child(n) {padding:0;border:0;width:auto;white-space:normal}
 .pt-report .pt-table tbody th {grid-column:1/-1}
 .pt-report .pt-table td::before {content:attr(data-label);display:block;font-size:11px;color:var(--bb-muted)}
 .pt-list-heading {display:block}
 .pt-list-heading>span {display:block;margin-top:4px}
 .pt-alert {align-items:flex-start}
}

/* A celebration appears only when both PT qualification conditions are met. */
.pt-report .pt-overview.pt-qualified {grid-template-columns:minmax(0,1.55fr) minmax(290px,1fr);border-color:#d8b77d;box-shadow:0 7px 26px #62461e0b}
.pt-qualified .pt-status {display:grid;grid-template-columns:minmax(0,1fr) 146px;gap:16px;align-items:center;padding:32px clamp(22px,2.4cqi,38px);isolation:isolate;background:radial-gradient(ellipse at 90% 35%,#bd8f4230,transparent 65%),linear-gradient(120deg,#293f40,#1c2c2e);border-top:3px solid #e9b668}
.pt-celebration-copy {position:relative;z-index:1;min-width:0}
.pt-qualified .pt-eyebrow {color:#f4cc93;letter-spacing:.4px;font-size:13px;margin:0 0 14px}
.pt-report .pt-qualified .pt-status h2 {color:#fff8e9;font-size:clamp(30px,3.1cqi,42px);line-height:1.38;font-weight:650;margin:0 0 16px;letter-spacing:-.4px}
.pt-qualified h2>span {display:block;color:#f2be70}
.pt-report .pt-qualified .pt-achievement {font-size:17px;line-height:1.7;font-weight:550;color:#fff5df;margin-bottom:7px}
.pt-report .pt-qualified .pt-celebration-message {font-size:13px;line-height:1.85;color:#cbd9d4}
.pt-award {position:relative;z-index:1;filter:drop-shadow(0 9px 15px #111a2540);animation:pt-award-arrive .85s cubic-bezier(.2,.8,.3,1) both}
.pt-award::before {content:'';position:absolute;z-index:-1;inset:10% -6%;border-radius:50%;background:radial-gradient(ellipse,#f4cb7c30,transparent 68%)}
.pt-award svg {display:block;width:100%;height:auto;overflow:visible}
.pt-confetti {position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0}
.pt-confetti i {position:absolute;left:var(--x);top:var(--y);width:4px;height:9px;border-radius:1px;background:#f4c784;opacity:.48;transform:rotate(var(--tilt));animation:pt-confetti-arrive 1.3s ease-out both}
.pt-confetti i:nth-child(2n) {background:#e89849;width:7px;height:3px;animation-delay:.1s}
.pt-confetti i:nth-child(3n) {width:4px;height:4px;border-radius:50%;background:#fff0c2;animation-delay:.25s}
.pt-qualified .pt-metrics {align-content:center;gap:22px 20px;background:radial-gradient(ellipse at 100% 0,#f9e8c6b0,transparent 65%),#fffaf2;padding:26px clamp(20px,2.2cqi,32px)}
.pt-qualified .pt-metric+.pt-metric {border-color:#e9dcc6}
.pt-qualified .pt-metric>span {font-size:14px;color:#5d665f}
.pt-qualified .pt-metric strong {font-size:44px;color:#aa5b21;font-weight:600}
.pt-qualified .pt-metric.pt-right strong {color:#386760}
.pt-qualified .pt-metric small {display:flex;align-items:center;gap:5px;color:#48685a}
.pt-qualified .pt-metric small::before {content:'✓';font-weight:600}
.pt-success-caption {grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:8px 12px;border:1px solid #e4cca5;background:#f7ecd9;border-radius:8px;color:#795423;font-size:13px;line-height:1.7}
.pt-success-caption svg {width:18px;height:18px;flex:none}
@keyframes pt-award-arrive {from{opacity:0;transform:translateY(12px) rotate(-7deg) scale(.9)}to{opacity:1;transform:translateY(0) rotate(0) scale(1)}}
@keyframes pt-confetti-arrive {from{opacity:0;transform:translateY(-18px) rotate(calc(var(--tilt) - 40deg))}to{opacity:.48;transform:translateY(0) rotate(var(--tilt))}}
@container balance (max-width:950px) {
 .pt-report .pt-overview.pt-qualified {grid-template-columns:minmax(0,1fr)}
 .pt-qualified .pt-status {grid-template-columns:minmax(0,1fr) 130px;padding-block:26px}
 .pt-qualified .pt-metrics {grid-template-columns:repeat(2,minmax(0,1fr));padding-block:20px;gap:16px 24px}
 .pt-qualified .pt-metric+.pt-metric {padding-left:24px}
 .pt-qualified .pt-metric strong {font-size:36px}
 .pt-qualified .pt-success-caption {min-height:36px;padding-block:6px}
}
@container balance (max-width:560px) {
 .pt-qualified .pt-status {display:block;padding:24px 20px}
 .pt-qualified .pt-eyebrow {max-width:calc(100% - 62px);font-size:12px;margin-bottom:13px}
 .pt-report .pt-qualified .pt-status h2 {max-width:calc(100% - 62px);font-size:29px;margin-bottom:16px;line-height:1.45}
 .pt-qualified .pt-award {position:absolute;top:40px;right:12px;width:80px}
 .pt-report .pt-qualified .pt-achievement {font-size:16px}
 .pt-report .pt-qualified .pt-celebration-message {font-size:12px}
 .pt-qualified .pt-metrics {padding:18px 20px;gap:14px 18px}
 .pt-qualified .pt-metric+.pt-metric {padding-left:18px}
 .pt-qualified .pt-metric strong {font-size:32px}
 .pt-qualified .pt-metric small {font-size:11px}
}
@media (prefers-reduced-motion:reduce) {
 .pt-award,.pt-confetti i {animation:none}
}

/* Member profile: identity and available points first, then clearly dated commissions. */
.member-basic {max-width:none;container:profile / inline-size;--profile-pad:clamp(18px,2.1cqi,28px);--profile-line:#e1e7e5;--profile-muted:#596d70}
.member-basic .profile-overview {border:1px solid var(--profile-line);border-radius:16px;overflow:hidden;background:#fff}
.member-basic .profile-summary {display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr)}
.member-basic .profile-identity {display:flex;align-items:center;gap:20px;padding:27px var(--profile-pad);min-width:0;background:radial-gradient(ellipse at 100% 0,#8f986920,transparent 70%),#263b3d;border-top:3px solid #e7ac62}
.member-basic .profile-avatar {display:flex;align-items:center;justify-content:center;width:66px;height:66px;flex:none;border:1px solid #e4bd803d;border-radius:20px;background:#ffffff09;color:#f1b96e}
.member-basic .profile-avatar svg {width:31px;height:31px}
.member-basic .profile-member-copy {min-width:0}
.member-basic .profile-eyebrow {display:block;color:#e9c391;font-size:12px;margin-bottom:7px}
.member-basic .profile-identity h2 {font-size:clamp(22px,2.5cqi,29px);line-height:1.55;color:#fff9ef;margin:0;border:0;padding:0;font-weight:600;overflow-wrap:anywhere}
.member-basic .profile-center {font-size:13px;color:#c3d0cf;margin:6px 0 0;display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 9px}
.member-basic .profile-center strong {font-size:14px;font-weight:500;color:#fff1dc;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.member-basic .profile-sv {position:relative;min-width:0;display:flex;align-items:center;padding:23px var(--profile-pad);background:linear-gradient(115deg,#fffaf3,#fbefda);border-top:3px solid #e7ac62}
.member-basic .profile-sv-icon {display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid #ecd9b9;background:#fff8ec;border-radius:11px;color:#ad672c;position:absolute;right:22px;top:22px}
.member-basic .profile-sv-icon svg {width:21px;height:21px}
.member-basic .profile-sv dl {margin:0;min-width:0;width:100%}
.member-basic .profile-sv dt {font-size:13px;color:#7c603e;padding-right:48px;line-height:1.7}
.member-basic .profile-sv dd {display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 10px;margin:9px 0 0;color:#8b6c44;font-size:13px;line-height:1.4}
.member-basic .profile-sv-number {font-size:clamp(29px,3.7cqi,42px);font-weight:600;color:#a76129;font-variant-numeric:tabular-nums;line-height:1.3;overflow-wrap:anywhere;min-width:0}
.member-basic .profile-details {display:grid;grid-template-columns:minmax(0,1.3fr) repeat(2,minmax(0,1fr));margin:0;padding:22px 0}
.member-basic .profile-detail {min-width:0;padding:0 var(--profile-pad)}
.member-basic .profile-detail+.profile-detail {border-left:1px solid var(--profile-line)}
.member-basic .profile-detail dt {display:flex;align-items:center;gap:9px;margin:0 0 9px;color:var(--profile-muted);font-size:12px;line-height:1.6}
.member-basic .profile-detail-icon {display:flex;align-items:center;color:#ac7544}
.member-basic .profile-detail-icon svg {width:17px;height:17px}
.member-basic .profile-detail dd {margin:0;padding-left:26px;font-size:14px;font-weight:500;line-height:1.8;color:#293d41;overflow-wrap:anywhere}
.member-basic .profile-detail dd small {display:block;font-size:12px;font-weight:400;color:var(--profile-muted);margin-top:2px}
.member-basic .profile-commission {margin-top:24px}
.member-basic .profile-section-heading {display:flex;justify-content:space-between;align-items:baseline;gap:8px 16px;flex-wrap:wrap;margin-bottom:12px}
.member-basic .profile-section-heading h2 {font-size:19px;font-weight:600;border:0;padding:0;margin:0;line-height:1.7}
.member-basic .profile-section-heading>span {font-size:12px;color:var(--profile-muted)}
.member-basic .commission-grid {gap:18px;margin:0 0 12px;align-items:stretch;grid-template-columns:repeat(2,minmax(0,1fr))}
.member-basic .commission-card {--commission-accent:#a7642b;--commission-tint:#fcf7ef;--commission-edge:#d79151;padding:0;border-color:var(--profile-line);border-top:3px solid var(--commission-edge);overflow:hidden}
.member-basic .commission-card[data-plan='2'] {--commission-accent:#3f706c;--commission-tint:#f1f7f5;--commission-edge:#6d9690}
.member-basic .commission-heading {align-items:center;gap:12px;padding:17px 20px}
.member-basic .commission-plan-title {display:flex;align-items:center;gap:11px;min-width:0}
.member-basic .commission-plan-icon {display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:11px;background:var(--commission-tint);color:var(--commission-accent);flex:none}
.member-basic .commission-heading h3 {font-size:17px;line-height:1.6;color:#2b3d41;min-width:0;margin:0;font-weight:600}
.member-basic .commission-heading .commission-plan-label {padding:3px 9px;border-radius:6px;color:var(--commission-accent);background:var(--commission-tint);font-size:11px;white-space:nowrap}
.member-basic .commission-metrics {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0}
.member-basic .commission-metrics>div {display:block;border:0;padding:17px 20px;min-width:0}
.member-basic .commission-metrics>div:first-child {grid-column:1/-1;padding:19px 20px 20px;background:var(--commission-tint);border-block:1px solid #e7ebe580}
.member-basic .commission-metrics>div:nth-child(2):not(:last-child) {border-right:1px solid var(--profile-line)}
.member-basic .commission-card[data-plan='2'] .commission-metrics>div:last-child {grid-column:1/-1}
.member-basic .commission-metrics dt {font-size:12px;color:var(--profile-muted);line-height:1.7;font-weight:400}
.member-basic .commission-metrics dt small {font-size:11px;color:#72817f;font-weight:400;margin-top:2px}
.member-basic .commission-metrics dd {display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 7px;font-size:22px;line-height:1.5;margin:8px 0 0;text-align:left;font-weight:550;color:#293d41;min-width:0;overflow-wrap:anywhere}
.member-basic .commission-metrics>div:first-child dt {font-size:13px}
.member-basic .commission-metrics>div:first-child dt small {font-size:12px;color:#697773}
.member-basic .commission-metrics>div:first-child dd {font-size:clamp(28px,3.6cqi,39px);line-height:1.35;color:var(--commission-accent);margin-top:10px;font-weight:600}
.member-basic .commission-metrics dd small {display:inline;color:var(--profile-muted);font-size:12px;font-weight:400}
.member-basic .commission-status {margin:0;min-height:178px;padding:25px 20px;font-size:13px;line-height:1.9;color:var(--profile-muted);background:var(--commission-tint)}
.member-basic .profile-commission>.portal-report-link {font-size:13px;min-height:42px;display:inline-flex;align-items:center;gap:8px;margin-top:0}
@container profile (max-width:740px) {
 .member-basic .profile-summary {grid-template-columns:minmax(0,1fr)}
 .member-basic .profile-identity {padding-block:22px}
 .member-basic .profile-sv {border-top:0;padding-block:16px;gap:13px}
 .member-basic .profile-sv-icon {position:static;flex:none}
 .member-basic .profile-sv dl {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:7px 18px}
 .member-basic .profile-sv dt {padding:0;flex:1 1 150px}
 .member-basic .profile-sv dd {margin:0}
 .member-basic .profile-sv-number {font-size:30px}
 .member-basic .profile-details {grid-template-columns:repeat(2,minmax(0,1fr));padding:0}
 .member-basic .profile-detail {padding:17px var(--profile-pad)}
 .member-basic .profile-address {grid-column:1/-1;border-bottom:1px solid var(--profile-line)}
 .member-basic .profile-address+.profile-detail {border-left:0}
 .member-basic .profile-detail dd {padding-left:0}
 .member-basic .commission-grid {grid-template-columns:minmax(0,1fr);gap:16px}
 .member-basic .commission-metrics>div:first-child dd {font-size:32px}
}
@container profile (max-width:420px) {
 .member-basic .profile-identity {gap:14px;padding:21px 18px}
 .member-basic .profile-avatar {width:51px;height:57px;border-radius:15px}
 .member-basic .profile-avatar svg {width:26px;height:26px}
 .member-basic .profile-identity h2 {font-size:23px}
 .member-basic .profile-center {font-size:12px;gap:3px 6px}
 .member-basic .profile-center strong {font-size:13px}
 .member-basic .profile-sv-number {font-size:28px}
 .member-basic .profile-sv-icon {display:none}
 .member-basic .profile-sv dl {gap:5px}
 .member-basic .profile-section-heading {display:block}
 .member-basic .profile-section-heading>span {display:block;margin-top:3px}
 .member-basic .commission-heading {padding:15px 16px}
 .member-basic .commission-plan-title {gap:9px}
 .member-basic .commission-heading h3 {font-size:16px}
 .member-basic .commission-metrics {grid-template-columns:minmax(0,1fr)}
 .member-basic .commission-metrics>div {display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:8px 14px;padding:14px 16px}
 .member-basic .commission-metrics>div:first-child {display:block;padding:17px 16px}
 .member-basic .commission-metrics>div:nth-child(2):not(:last-child) {border-right:0;border-bottom:1px solid var(--profile-line)}
 .member-basic .commission-metrics dd {margin:0;font-size:21px}
 .member-basic .commission-metrics>div:first-child dd {font-size:29px;margin-top:10px}
}
