@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--nav:#101b2f;--nav2:#0a1323;--pink:#e90c65;--pink2:#ff317f;--bg:#f5f7fb;--surface:#fff;--line:#e6eaf2;--ink:#18243a;--muted:#6b7891;--soft:#f1f5fa;--ok:#0d936b;--bad:#c83e55;--warn:#b87515;--blue:#365cd2;--shadow:0 12px 28px rgba(18,37,69,.045)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',system-ui,sans-serif;font-size:13px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}a{color:inherit;text-decoration:none}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #ffa9d1;outline-offset:2px}.app{min-height:100vh;display:grid;grid-template-columns:274px minmax(0,1fr)}.sidebar{background:linear-gradient(180deg,#101c30 0%,#0a1322 100%);color:#d9e5f3;min-height:100vh;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;overflow:hidden;z-index:30}.side-top{padding:25px 22px 16px;display:flex;align-items:center}.brand{display:flex;align-items:center;gap:11px}.brand-icon{display:grid;place-items:center;position:relative;width:39px;height:39px;border-radius:12px;background:linear-gradient(145deg,#fb377f,#c60057);color:#fff;font-family:'Manrope',sans-serif;font-size:25px;font-weight:900}.brand-dot{width:6px;height:6px;background:#fff;border-radius:50%;position:absolute;right:5px;bottom:7px}.brand-type strong{display:block;letter-spacing:.09em;font-size:17px;color:#fff;font-weight:800}.brand-type strong span{color:#ff4a91}.brand-type small{display:block;font-size:8px;letter-spacing:.09em;color:#91a0b8;margin-top:3px}.demo-label{border:1px solid #30405b;background:#17273d;border-radius:10px;margin:2px 16px 18px;display:flex;align-items:center;gap:7px;padding:10px;font-size:9px;font-weight:800;letter-spacing:.07em;color:#e4ecf8}.demo-label b{margin-left:auto;color:#93a8c0;font-size:8px}.pulse{width:7px;height:7px;border-radius:50%;background:#27dcaa;box-shadow:0 0 0 4px #27dcaa22}.sidebar-intro{padding:0 22px 17px;border-bottom:1px solid #26344b;display:grid;gap:3px}.sidebar-intro small{letter-spacing:.12em;font-size:9px;color:#8a9bb4;font-weight:800}.sidebar-intro strong{color:white;font-family:Manrope,sans-serif;font-size:18px}.sidebar-intro span{color:#8da0b9;font-size:10px}.sidebar-nav{overflow:auto;padding:8px 10px 24px;flex:1;scrollbar-width:thin;scrollbar-color:#30425c transparent}.nav-group{padding:17px 12px 7px;color:#768aa7;font-size:9px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;display:flex;justify-content:space-between}.nav-link{width:100%;text-align:left;color:#bbcadc;display:flex;align-items:center;gap:11px;padding:10px 12px;border:0;border-radius:9px;background:transparent;font-weight:650;font-size:11.5px;margin:1px 0}.nav-link:hover{background:#1b2b42;color:white}.nav-link.active{background:linear-gradient(90deg,#eb146c,#cc0757);color:#fff;box-shadow:0 4px 12px #ed0a6327}.nav-icon{font-size:15px;width:20px;text-align:center;flex:none;opacity:.9}.nav-link em{font-style:normal;margin-left:auto;font-size:9px;background:#2b3a54;border-radius:6px;padding:3px 5px;color:#bad0e8}.nav-link.active em{background:#ffffff22;color:#fff}.side-bottom{padding:12px 16px 17px;border-top:1px solid #26344b}.side-help{background:#182940;color:#fff;display:flex;gap:10px;align-items:center;width:100%;border:1px solid #2d4160;padding:11px;border-radius:10px;text-align:left}.side-help>span:first-child{color:#ff6ca1;font-size:20px}.side-help strong{display:block;font-size:11px}.side-help small{color:#9ab0ca;font-size:9px}.side-help>span:last-child{margin-left:auto;color:#8ba3c1}.side-foot{color:#69809d;font-size:9px;text-align:center;margin-top:15px}.main{min-width:0;display:flex;flex-direction:column;min-height:100vh}.topbar{position:sticky;top:0;height:72px;background:#fff;display:flex;align-items:center;gap:15px;padding:0 26px;border-bottom:1px solid var(--line);z-index:20}.crumb{display:flex;gap:9px;align-items:center;white-space:nowrap;font-size:9px;color:#8290a5;letter-spacing:.09em;font-weight:800}.crumb b{color:#c9d0db}.crumb strong{color:#1c2d45;max-width:130px;text-overflow:ellipsis;overflow:hidden}.top-search{margin-left:auto;max-width:330px;min-width:150px;flex:1;display:flex;align-items:center;gap:9px;border:1px solid #e4eaf1;background:#f7f9fc;border-radius:10px;padding:8px 10px}.top-search span{font-size:20px;color:#8899ae}.top-search input{background:transparent;border:0;outline:0;width:100%;min-width:20px;font-size:11px}.top-search kbd{border:1px solid #e4e7ec;background:#fff;padding:2px 6px;border-radius:5px;color:#96a4b4;font-size:10px}.portal-switch{border:1px solid #e4e9f1;padding:3px;background:#f5f7fa;border-radius:10px;display:flex;flex:none}.portal-switch button{border:0;background:transparent;padding:9px 12px;font-size:10px;font-weight:800;border-radius:7px;white-space:nowrap;color:#718099}.portal-switch button.active{background:#fff;box-shadow:0 2px 7px #15253b16;color:#172841}.persona-btn{display:flex;align-items:center;gap:7px;border:0;background:transparent;font-size:10px;font-weight:800;color:#25354b;white-space:nowrap}.persona-initials{background:#fff0f6;color:#cc0856;display:grid;place-items:center;border-radius:10px;width:33px;height:33px;font-size:10px}.environment-bar{padding:10px 28px;background:#f0f4f9;border-bottom:1px solid #e4eaf3;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#65748b;font-size:10px}.environment-bar>div{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.environment-bar strong{color:#394d64}.env-tag{color:#067a59;background:#e3f5eb;border:1px solid #bce7d2;padding:4px 7px;border-radius:5px;font-size:9px;font-weight:800;letter-spacing:.06em}.env-divider{color:#c4cdd9}.build-tag{white-space:nowrap;color:#314962;font-size:9px;font-weight:900}.view{padding:28px 30px;max-width:1680px;width:100%;margin:0 auto;flex:1}.footer{padding:20px 30px;color:#95a1b0;font-size:10px;display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line)}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:Manrope,sans-serif;letter-spacing:-.035em}h1{font-size:30px;margin-bottom:5px;line-height:1.25}h2{font-size:17px;margin-bottom:12px}h3{font-size:13px;margin-bottom:9px}.eyebrow{font-size:9px;letter-spacing:.17em;font-weight:900;color:var(--pink);margin-bottom:8px;text-transform:uppercase}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:24px}.page-head p{color:var(--muted);font-size:12px;margin:0;max-width:720px;line-height:1.7}.head-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.button{background:var(--pink);border:1px solid var(--pink);color:#fff;border-radius:9px;padding:10px 15px;font-size:11px;font-weight:800;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px}.button:hover:not(:disabled){filter:brightness(.96)}.button.ghost{background:#fff;border-color:#dce4ee;color:#263950}.button.dark{background:#162338;border-color:#162338}.button.small{padding:7px 10px;min-height:30px;font-size:10px}.button.subtle{background:#f6f8fc;border-color:#e6eaf1;color:#29405c}.tag{display:inline-flex;align-items:center;font-size:9px;font-weight:800;padding:5px 8px;border-radius:99px;background:#eff4fb;color:#516883;white-space:nowrap}.tag.ok{background:#e5f7ed;color:#087f5a}.tag.warn{background:#fff4db;color:#9e6c09}.tag.bad{background:#ffe9ee;color:#b3364e}.tag.info{background:#edf0ff;color:#3a55bb}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}.cards.three{grid-template-columns:repeat(3,minmax(0,1fr))}.cards.two{grid-template-columns:repeat(2,minmax(0,1fr))}.card,.panel{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);min-width:0}.card{padding:18px}.stat-label{color:#77869a;font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:space-between}.stat-icon{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;background:#f1f4fa;color:#3e5879;font-size:16px}.stat-value{font-size:28px;color:#19283e;font-family:Manrope,sans-serif;font-weight:900;margin:11px 0 5px;letter-spacing:-.05em}.stat-desc{font-size:10px;color:#8a98a9}.stat-desc strong{color:#0a8e67}.panel{padding:19px;margin-bottom:16px}.panel-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}.panel-header h2{margin:0}.panel-sub{font-size:10px;color:#8b98a9}.hero{background:linear-gradient(118deg,#111d30,#1e3551);color:#fff;padding:27px 29px;border-radius:16px;margin-bottom:20px;display:flex;justify-content:space-between;gap:18px;align-items:center;position:relative;overflow:hidden}.hero:after{content:'';width:270px;height:270px;border-radius:50%;border:70px solid #ffffff08;position:absolute;right:13%;top:-160px;pointer-events:none}.hero>*{position:relative;z-index:1}.hero .eyebrow{color:#ff7aae}.hero h2{font-size:24px;margin:5px 0 8px}.hero p{color:#b7c7d8;font-size:11px;max-width:560px;line-height:1.8;margin:0}.hero-side{min-width:140px;text-align:right}.hero-side strong{font-size:31px;font-weight:900;display:block}.hero-side small{color:#acc1d7;font-size:10px}.tile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.tile{background:white;border:1px solid var(--line);text-align:left;padding:18px;border-radius:13px;display:flex;flex-direction:column;gap:8px;min-height:144px;transition:transform .15s,box-shadow .15s}.tile:hover{transform:translateY(-2px);box-shadow:0 10px 24px #18335212;border-color:#d6dce8}.tile .tile-icon{font-size:22px;color:var(--pink)}.tile strong{font-size:13px;color:#1f2c43}.tile p{color:#8592a4;font-size:10px;line-height:1.6;margin:0;flex:1}.tile .tile-foot{display:flex;align-items:center;justify-content:space-between;gap:5px;font-size:9px;font-weight:800;color:#df166c}.tile .tile-foot span:last-child{font-size:16px}.section-strip{font-weight:800;text-transform:uppercase;letter-spacing:.09em;font-size:10px;color:#8494a8;margin:26px 0 12px}.table-wrap{width:100%;overflow:auto;border:1px solid #e6ebf3;border-radius:10px}table{border-collapse:collapse;width:100%;min-width:650px}th{background:#f8fafc;color:#8a97a7;letter-spacing:.07em;text-transform:uppercase;font-size:9px;font-weight:900;text-align:left;padding:12px}td{font-size:11px;color:#33445b;padding:12px;border-top:1px solid #edf0f5}tr:hover td{background:#fcfdff}td strong{color:#172941;font-weight:800}.table-actions{display:flex;gap:5px}.table-actions button{border:1px solid #e0e7ef;background:#fff;border-radius:7px;padding:6px 9px;color:#34506b;font-size:10px;font-weight:800}.table-actions button:hover{border-color:#ec4e98}.toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:12px}.toolbar input,.toolbar select,.field input,.field select,.field textarea{border:1px solid #dde5ef;background:#fbfcfe;color:#25354b;border-radius:9px;padding:10px 11px;min-height:37px;font-size:11px;max-width:100%}.toolbar input{min-width:200px;flex:1}.toolbar select{max-width:190px}.toolbar .button:last-child{margin-left:auto}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.field{min-width:0;display:grid;gap:6px}.field label{font-weight:800;color:#5b6c82;font-size:10px}.field input,.field select,.field textarea{width:100%;min-width:0}.field textarea{min-height:95px;resize:vertical}.field small{color:#8a98a9;font-size:9px}.field.wide{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}.cols{display:grid;grid-template-columns:1.5fr 1fr;gap:15px}.cols.equal{grid-template-columns:1fr 1fr}.lines{display:grid;gap:0}.line{padding:11px 0;border-bottom:1px solid #edf0f5;display:flex;justify-content:space-between;align-items:center;gap:13px}.line:last-child{border:0}.line .line-detail{display:grid;gap:4px}.line strong{font-size:11px}.line small{font-size:10px;color:#8998aa}.progress{background:#e8eef7;border-radius:99px;height:7px;overflow:hidden}.progress>span{display:block;height:100%;background:var(--pink);border-radius:99px}.switch{position:relative;display:inline-block;width:37px;height:22px;border-radius:15px;background:#ced6e1;border:none;transition:.15s;flex:none}.switch.on{background:#0e9b78}.switch:after{content:'';width:16px;height:16px;background:white;position:absolute;top:3px;left:3px;border-radius:50%;box-shadow:0 1px 3px #0002}.switch.on:after{left:18px}.notice{border:1px solid #dce6f3;background:#f6faff;padding:13px 15px;border-radius:11px;color:#4a637e;font-size:11px;line-height:1.65;margin-bottom:15px}.notice.warning{border-color:#f3e2b8;background:#fff9ec;color:#946b24}.notice strong{color:#263d5a}.tabs{display:flex;gap:6px;margin:0 0 16px;flex-wrap:wrap}.tabs button{border:1px solid #e2e7f0;border-radius:8px;background:#fff;padding:9px 13px;font-weight:800;font-size:10px;color:#6e7e92}.tabs button.active{background:#182b44;border-color:#182b44;color:#fff}.mini-bars{display:flex;align-items:flex-end;justify-content:space-between;gap:8px;height:130px;padding-top:14px}.mini-bars div{flex:1;display:grid;align-items:end;height:100%;position:relative;gap:7px;text-align:center;color:#8b9cb0;font-size:9px}.mini-bars i{display:block;border-radius:5px 5px 0 0;background:linear-gradient(180deg,#f35391,#e9adc9);width:100%;min-height:7px;align-self:end}.breadcrumbs{color:#8b97a7;font-size:10px;margin-bottom:10px}.empty{border:1px dashed #d8e2ee;border-radius:12px;text-align:center;padding:30px;color:#8695a8;font-size:11px}.audit-items{display:grid;gap:0}.audit-item{display:flex;align-items:flex-start;gap:10px;border-bottom:1px solid #ecf0f5;padding:12px 0}.audit-item:last-child{border:none}.audit-dot{display:grid;place-items:center;background:#f1f5fa;color:#7890a9;border-radius:50%;width:28px;height:28px;flex:none}.audit-item small{color:#94a0b0;font-size:9px;display:block;margin-top:4px}.audit-item strong{font-size:10px}.callout{border:1px solid #e7eaf3;border-left:4px solid var(--pink);background:#fff;border-radius:9px;padding:12px 15px;margin-bottom:15px;font-size:11px;line-height:1.6;color:#5c6c82}.code-area{background:#101a2e;border-radius:9px;padding:15px;color:#c2d4e9;white-space:pre-wrap;font:11px/1.7 ui-monospace,Consolas,monospace;overflow:auto;max-height:300px}.modal-cover{position:fixed;inset:0;background:#0a1526a6;z-index:70;display:grid;place-items:center;padding:16px;backdrop-filter:blur(4px)}.modal{background:#fff;border-radius:17px;width:min(620px,100%);max-height:min(88vh,850px);overflow:auto;box-shadow:0 28px 70px #06102252}.modal-head{padding:22px 24px 17px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px}.modal-head h2{margin:0}.modal-body{padding:22px 24px}.modal-close{border:0;background:#f3f6fa;border-radius:8px;width:30px;height:30px}.toast{position:fixed;right:22px;bottom:20px;z-index:90;background:#18273b;color:#fff;border-radius:12px;box-shadow:0 16px 35px #12213a44;padding:13px 18px;font-size:11px;max-width:min(390px,92vw);opacity:0;transform:translateY(12px);transition:.2s;pointer-events:none}.toast.show{opacity:1;transform:translateY(0)}.scrim{display:none}.menu-toggle,.mobile-close{display:none}.icon-btn{border:0;background:transparent;font-size:18px;color:#425774;padding:7px}.persona-pop{position:fixed;z-index:60;right:25px;top:63px;max-width:320px;width:calc(100vw - 30px);background:#fff;border:1px solid #e4eaf1;border-radius:13px;box-shadow:0 15px 45px #18253d24;padding:10px}.persona-pop button{border:0;background:transparent;padding:10px 12px;width:100%;text-align:left;border-radius:8px;color:#30415a;font-size:11px;font-weight:700}.persona-pop button:hover,.persona-pop button.active{background:#f4f7fb}.persona-pop small{display:block;color:#8694a7;margin-top:4px}.help-steps{counter-reset:steps;display:grid;gap:11px}.help-step{padding:13px 15px;background:#f7f9fc;border:1px solid #e6edf5;border-radius:9px;display:flex;align-items:flex-start;gap:12px}.help-step i{width:23px;height:23px;display:grid;place-items:center;background:#152943;color:#fff;border-radius:8px;font-style:normal;font-size:10px;flex:none}.help-step p{margin:0;color:#607187;font-size:11px;line-height:1.6}.help-step strong{display:block;color:#21384f;font-size:11px;margin-bottom:3px}
@media(max-width:1400px){.topbar{gap:10px;padding:0 16px}.crumb{display:none}.top-search{max-width:260px}}@media(max-width:1160px){.app{grid-template-columns:238px 1fr}.top-search{min-width:120px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.tile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.view{padding:23px}.persona-btn #persona-label{display:none}}
@media(max-width:880px){.app{display:block}.sidebar{position:fixed;left:0;top:0;bottom:0;width:278px;transform:translateX(-100%);transition:transform .2s}.sidebar.open{transform:translateX(0)}.scrim.open{display:block;position:fixed;inset:0;background:#07112688;z-index:25}.menu-toggle,.mobile-close{display:inline-flex}.mobile-close{margin-left:auto;color:#d0deed}.topbar{height:62px}.portal-switch{margin-left:auto}.top-search{flex:1;max-width:none;margin:0}.environment-bar{padding:9px 16px}.view{padding:20px 16px}.footer{padding:20px 16px}.cols{grid-template-columns:1fr}}
@media(max-width:620px){.top-search{display:none}.topbar{gap:6px}.portal-switch button{padding:8px;font-size:9px}.persona-btn{gap:0}.persona-btn>span:last-child{display:none}.environment-bar{font-size:9px}.build-tag{display:none}.cards,.cards.three,.cards.two,.tile-grid,.form-grid{grid-template-columns:1fr}.hero{padding:19px;align-items:flex-start;flex-direction:column}.hero-side{text-align:left}.page-head{flex-direction:column}.page-head h1{font-size:25px}.head-actions{width:100%}.footer{flex-direction:column}.toolbar .button:last-child{margin-left:0}.toolbar input{min-width:100px}.panel{padding:15px}.modal-head,.modal-body{padding:17px}}

/* GlobalPort360 R3.2 approved product-branding patch */
.side-top{padding:16px 13px 12px;gap:6px}
.side-top .brand{display:flex;align-items:center;justify-content:center;width:100%;background:#fff;border:1px solid rgba(255,255,255,.85);box-shadow:0 7px 18px rgba(0,0,0,.15);border-radius:13px;padding:7px 9px;min-height:112px}
.side-top .brand-logo{display:block;width:100%;height:auto;max-height:124px;object-fit:contain}
.side-top .mobile-close{flex:none}
.side-foot a,.footer a{color:inherit;text-decoration:underline;text-underline-offset:3px;text-decoration-color:#9aabc0}
.side-foot a:hover,.footer a:hover{color:var(--pink2);text-decoration-color:var(--pink2)}
@media(max-width:880px){.side-top{padding:16px 13px 12px}.side-top .brand{min-width:0}.side-top .brand-logo{max-height:115px}}

/* R3.3 dark-logo layout */
.sidebar .side-top .brand{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;min-height:110px}
.sidebar .side-top .brand-logo{width:100%;height:auto;max-height:125px;object-fit:contain}

/* Scoped GlobalPort360 authenticated portal dark-logo support */
.sidebar .side-top .brand{background:transparent!important;border-color:transparent!important;box-shadow:none!important;padding:0!important;min-height:100px!important}
.sidebar .side-top .brand-logo{width:100%;height:auto;object-fit:contain;max-height:122px}
/* Numerish GlobalPort360 — Admin and Client R4 responsive layout */
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.mobile-brand-row{display:none}
.mobile-nav-search-wrap{display:none}
.main,.panel,.card,.tile,.line,.page-head,.head-actions,.toolbar,.hero,.cols,.cards,.tile-grid{min-width:0}
.panel,.tile,.card{overflow-wrap:anywhere}
.table-wrap{max-width:100%;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.table-wrap table{max-width:none}
.mobile-cell-content{display:contents}
.nav-link{min-width:0}
.sidebar{overscroll-behavior:contain}
button,a,input,select{touch-action:manipulation}
@media(min-width:881px) and (max-width:1250px){
 .topbar{flex-wrap:wrap;height:auto;min-height:72px;padding:10px 16px;row-gap:9px}
 .top-search{max-width:none;flex:1 1 150px;min-width:110px}
 .portal-switch button{padding:8px 9px}
 .view{padding:22px}
 .panel,.tile{max-width:100%}
}
@media(max-width:880px){
 .app{min-width:0;display:block}
 .main{width:100%;min-width:0}
 .sidebar{z-index:112;box-shadow:10px 0 35px #101c301c}
 .scrim.open{z-index:111}
 body.nav-open{overflow:hidden}
 .topbar{height:auto;min-height:121px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:62px 40px;gap:7px;padding:9px 15px 10px;box-shadow:0 4px 14px #182e4810}
 .mobile-brand-row{grid-column:1;grid-row:1;display:flex;align-items:center;gap:5px;padding:4px 7px;border-radius:10px;background:#101b2f;width:max-content;max-width:100%;min-width:0}
 .menu-toggle{display:flex;justify-content:center;align-items:center;flex:0 0 35px;width:35px;height:35px;color:#fff;background:#20324b;border:1px solid #34506f;border-radius:8px}
 .menu-toggle:focus-visible{outline-offset:-2px}
 .mobile-logo-link{display:flex;align-items:center;justify-content:center;min-width:0;width:155px;height:49px}
 .mobile-logo-link img{display:block;width:100%;height:100%;object-fit:contain}
 .crumb{display:none}
 .top-search{display:none}
 .portal-switch{grid-column:1/-1;grid-row:2;width:100%;margin:0;justify-content:stretch}
 .portal-switch button{flex:1;min-width:0;font-size:11px}
 .persona-btn{grid-column:2;grid-row:1;justify-self:end;margin:0;background:#f5f7fa;border:1px solid #e8edf5;border-radius:9px;padding:6px}
 .persona-btn #persona-label{display:none}
 .persona-initials{flex:0 0 33px}
 .mobile-nav-search-wrap{display:block;padding:9px 13px 11px;position:sticky;top:0;z-index:1;background:#101b2f;border-bottom:1px solid #30405b}
 .mobile-nav-search-wrap input{background:#17273d;color:#fff;border:1px solid #334661;padding:10px 12px;border-radius:9px;width:100%;font-size:12px;min-height:38px}
 .mobile-nav-search-wrap input::placeholder{color:#abbcd0}
 .mobile-nav-search-wrap input:focus{outline:2px solid #fb5795}
 .sidebar-nav{min-height:0}
 .sidebar .side-top .brand-logo{max-height:130px}
 .environment-bar{min-width:0;flex-wrap:wrap;padding:10px 15px;gap:5px;font-size:10px}
 .environment-bar>div{min-width:0;gap:5px;flex-wrap:wrap}
 .environment-bar .env-divider{display:none}
 .environment-bar .build-tag{display:none}
 .view{width:100%;padding:20px 16px}
 .page-head{gap:11px}
 .page-head h1{font-size:clamp(22px,3.6vw,30px);overflow-wrap:anywhere}
 .page-head p{overflow-wrap:break-word}
 .hero{flex-wrap:wrap;padding:23px}
 .hero-side{text-align:left}
 .cols{grid-template-columns:1fr}
 .tile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .footer{padding:18px 16px;gap:11px;flex-wrap:wrap}
 .toolbar{gap:8px}
 .toolbar input{min-width:0}
 .form-grid>*{min-width:0}
}
@media(max-width:640px){
 .topbar{padding:6px 12px 9px;min-height:112px;grid-template-rows:59px 37px;gap:5px}
 .mobile-brand-row{padding:3px 5px}
 .mobile-logo-link{width:143px;height:48px}
 .menu-toggle{width:34px;height:34px;flex-basis:34px}
 .portal-switch{padding:2px}
 .portal-switch button{padding:7px 5px;font-size:11px}
 .persona-btn{padding:4px}
 .environment-bar{padding:8px 12px}
 .view{padding:18px 12px}
 .cards,.cards.three,.cards.two{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .card{padding:14px;min-width:0}
 .stat-value{font-size:clamp(20px,5vw,26px);overflow-wrap:anywhere}
 .stat-desc{font-size:10px}
 .tile-grid{grid-template-columns:1fr}
 .panel{padding:14px}
 .panel-header{flex-wrap:wrap}
 .page-head{flex-direction:column;margin-bottom:15px}
 .page-head h1{font-size:23px}
 .head-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;width:100%}
 .head-actions .button{min-width:0;white-space:normal;padding:10px 8px;font-size:10px}
 .head-actions .button:only-child{grid-column:1/-1}
 .toolbar{flex-direction:column;align-items:stretch}
 .toolbar input,.toolbar select{min-width:0;max-width:100%;width:100%}
 .toolbar .button:last-child{margin-left:0}
 .form-grid{grid-template-columns:1fr}
 .hero{padding:20px 17px}
 .hero h2{font-size:22px}
 .hero-side strong{font-size:26px}
 .footer{flex-direction:column;gap:8px}
 .table-wrap{border:0;overflow:visible}
 .table-wrap table{display:block;min-width:0;width:100%}
 .table-wrap thead{display:none}
 .table-wrap tbody{display:grid;gap:10px}
 .table-wrap tbody tr{display:block;padding:8px 13px;border:1px solid #e2eaf3;border-radius:11px;background:#fff;box-shadow:0 2px 9px #101b2f08}
 .table-wrap tbody td{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;text-align:right;width:100%;padding:9px 0;border:0;border-bottom:1px solid #eef2f6;font-size:11px;max-width:none;min-width:0;overflow-wrap:anywhere}
 .table-wrap tbody td:last-child{border-bottom:0}
 .table-wrap tbody td::before{content:attr(data-label);flex:0 0 38%;min-width:0;align-self:flex-start;text-align:left;font-size:10px;line-height:1.5;font-weight:800;color:#72839a;text-transform:uppercase;letter-spacing:.03em;white-space:normal;overflow-wrap:anywhere}
 .table-wrap .mobile-cell-content{display:block;flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
 .mobile-cell-content strong,.mobile-cell-content small{display:block}
 .mobile-cell-content .table-actions{justify-content:flex-end;flex-wrap:wrap;gap:5px}
 .mobile-cell-content button{white-space:normal}
 .tag{white-space:normal}
 .modal-cover{padding:8px;align-items:center}
 .modal{max-height:90dvh;max-width:100%}
 .modal-head,.modal-body{padding:16px}
 .persona-pop{right:10px;top:59px;max-width:calc(100vw - 20px)}
}
@media(max-width:374px){
 .mobile-brand-row{gap:3px}
 .mobile-logo-link{width:119px;height:46px}
 .persona-btn{padding:2px}
 .topbar{grid-template-columns:minmax(0,1fr) auto}
 .cards,.cards.three,.cards.two{grid-template-columns:1fr}
 .head-actions{grid-template-columns:1fr}
 .head-actions .button{grid-column:1/-1}
}

/* R4.1 QA: prevent page-head button overflow at 768-900px and fully filter mobile menus */
@media (min-width:881px) and (max-width:1160px){
 .app{grid-template-columns:238px minmax(0,1fr)}
 .page-head{flex-wrap:wrap}
 .page-head>div:first-child{min-width:0;flex:1 1 380px}
 .head-actions{max-width:100%;min-width:0;flex:0 1 auto}
 .head-actions .button{white-space:normal}
}
@media (max-width:880px){
 .page-head{flex-wrap:wrap}
 .page-head>div:first-child{min-width:0;flex:1 1 300px}
 .head-actions .button{white-space:normal}
}
/* R4.2: page-heading vertical rhythm on phone (no flex-basis min-height) */
@media(max-width:880px){
 .page-head>div:first-child{flex:0 1 auto;width:100%;min-width:0}
 .page-head{justify-content:flex-start;align-items:flex-start;gap:11px}
 .head-actions{min-height:0}
}
@media(max-width:640px){
 .mobile-logo-link{width:176px;height:51px}
 .page-head{margin-bottom:17px}
 .head-actions{margin-top:0}
}
@media(max-width:374px){
 .mobile-logo-link{width:136px;height:47px}
}