/* On non-Home routes leave the existing application unchanged. */
html:not(.nx-dashboard-active) #nx-rail,
html:not(.nx-dashboard-active) #nx-search {display:none!important}
/* FEAT-002 — controlled, single-layer CEO UI; applied on Home only. */
html.nx-dashboard-active{--nxd-ink:#0a1b3b;--nxd-line:#dee8f3;--nxd-muted:#627a9e;--nxd-blue:#0665e9}
html.nx-dashboard-active body{background:radial-gradient(ellipse at 30% -8%,#ecf4fb 0%,#f7fbff 48%,#fff 100%)!important;color:var(--nxd-ink)}
html.nx-dashboard-active .family-header{
position:sticky!important;top:0;z-index:41!important;display:grid!important;
grid-template-columns:232px minmax(0,1fr) minmax(225px,auto)!important;
min-height:68px!important;height:68px!important;gap:0!important;padding:0!important;
background:#fff!important;border:0!important;border-bottom:1px solid #e5edf5!important;
box-shadow:0 1px 8px #0b22410d!important;color:#102648!important
}
html.nx-dashboard-active .family-header .family-brand{grid-column:1;min-width:0;padding:0 20px;align-self:center;gap:0!important}
html.nx-dashboard-active .family-header .family-brand img{width:192px!important;height:auto!important;max-width:100%!important;flex:0 1 192px!important}
html.nx-dashboard-active .family-header .family-brand .product-lockup{display:none!important}
html.nx-dashboard-active .family-header .app-switcher{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important;padding:0!important;visibility:hidden!important;pointer-events:none!important}
html.nx-dashboard-active .family-header .identity-chip{grid-column:3;grid-row:1;justify-self:end;margin:0 22px!important;color:#102648;font-size:14px}
html.nx-dashboard-active .family-header .identity-chip .avatar{width:38px;height:38px;color:white}
html.nx-dashboard-active .family-header .identity-chip strong{color:#0d2648;font-size:14px}
html.nx-dashboard-active .family-header .identity-chip small{color:#597598}
html.nx-dashboard-active .family-header #nx-search{
grid-column:2;grid-row:1;justify-self:center;align-self:center;display:flex;align-items:center;
gap:11px;width:min(500px,calc(100% - 36px));height:44px;padding:0 14px;
border:1px solid #dbe4f0;border-radius:9px;background:#f9fbff;color:#435f83;
font:13px Arial,Helvetica,sans-serif
}
html.nx-dashboard-active #nx-search svg{width:20px;height:20px;flex:0 0 20px}
html.nx-dashboard-active #nx-search input{width:100%;min-width:0;outline:0!important;border:0!important;
padding:0!important;background:transparent!important;color:#0d2648;font:inherit}
html.nx-dashboard-active #nx-search input::placeholder{color:#7488a6}
html.nx-dashboard-active #nx-search kbd{white-space:nowrap;font-size:11px;color:#8091ac;padding:3px 6px;border:1px solid #dce5f1;border-radius:4px}
html.nx-dashboard-active .control-strip{display:none!important}
html.nx-dashboard-active .local-nav{position:absolute!important;width:1px!important;height:1px!important;
margin:0!important;padding:0!important;clip-path:inset(100%)!important;overflow:hidden!important;pointer-events:none!important}
html.nx-dashboard-active .feat029-nav-shell{display:none!important}
html.nx-dashboard-active main#main{margin-left:232px!important;min-height:calc(100vh - 68px)!important}
html.nx-dashboard-active #route-home{width:100%!important;max-width:none!important;margin:0!important;
padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important}
html.nx-dashboard-active #route-home>*:not(#nx-dashboard){display:none!important}
html.nx-dashboard-active #nx-rail{
display:flex!important;position:fixed;top:68px;left:0;bottom:0;width:232px;z-index:39;
background:linear-gradient(#fff,#f8fbff);border-right:1px solid #e6edf5;
flex-direction:column;overflow-y:auto;padding:15px 11px;font:14px Arial,Helvetica,sans-serif;color:#0b2445
}
html.nx-dashboard-active #nx-rail .nx-rail-title{font-size:18px;font-weight:800;padding:5px 14px 15px}
html.nx-dashboard-active #nx-rail-list{display:flex;flex-direction:column;gap:3px}
html.nx-dashboard-active .nx-rail-rule{display:block;height:1px;background:#e0eaf5;margin:13px 11px}
html.nx-dashboard-active .nx-rail-item{display:flex;align-items:center;gap:14px;width:100%;min-height:47px;
padding:9px 13px;text-align:left;color:#20395e;text-decoration:none;cursor:pointer;
background:transparent;border:0;border-radius:8px;font-size:14px;font-weight:500;line-height:1.25}
html.nx-dashboard-active .nx-rail-item .nx-icon{width:23px;flex:0 0 23px;color:#204776}
html.nx-dashboard-active .nx-rail-item .nx-icon svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
html.nx-dashboard-active .nx-rail-item:hover{background:#edf6ff}
html.nx-dashboard-active .nx-rail-item.is-active{background:#0764e7;color:white;font-weight:700}
html.nx-dashboard-active .nx-rail-item.is-active .nx-icon{color:#fff}
html.nx-dashboard-active .nx-rail-footer{margin-top:auto;padding:17px 13px 0;color:#627d9c;font-size:11px;border-top:1px solid #e5ecf5}
html.nx-dashboard-active #nx-dashboard{box-sizing:border-box;width:100%;min-height:calc(100vh - 68px);padding:27px 28px 32px;
font:14px Arial,Helvetica,sans-serif;color:#0b2143}
html.nx-dashboard-active #nx-dashboard *{box-sizing:border-box}
html.nx-dashboard-active #nx-dashboard button,html.nx-dashboard-active #nx-dashboard a{font:inherit}
html.nx-dashboard-active #nx-dashboard button{cursor:pointer}
html.nx-dashboard-active #nx-dashboard button:focus-visible,html.nx-dashboard-active #nx-dashboard a:focus-visible{
outline:3px solid #81baff;outline-offset:2px}
html.nx-dashboard-active #nx-dashboard svg{width:21px;height:21px;flex-shrink:0}
html.nx-dashboard-active #nx-dashboard .nx-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 18px}
html.nx-dashboard-active #nx-dashboard .nx-hero h1{font-size:32px;font-weight:800;letter-spacing:-.045em;
line-height:1.14;margin:0 0 4px;color:#0a1b3b}
html.nx-dashboard-active #nx-dashboard .nx-hero p{margin:0;color:#586f93;font-size:17px}
html.nx-dashboard-active #nx-dashboard .nx-current-date{display:flex;flex-direction:column;text-align:right;gap:5px;color:#637a9b;font-size:13px}
html.nx-dashboard-active #nx-dashboard .nx-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}
html.nx-dashboard-active #nx-dashboard .nx-stat{min-width:0;min-height:112px;display:flex;align-items:flex-start;
gap:15px;border:1px solid #e4edf6;border-radius:9px;text-align:left;padding:15px;color:#102a4b;
background:linear-gradient(125deg,#ebf5ff,#fcfdff)}
html.nx-dashboard-active #nx-dashboard .nx-stat:nth-child(n+3){background:linear-gradient(125deg,#f2f5f9,#fcfdff)}
html.nx-dashboard-active #nx-dashboard .nx-stat:hover{border-color:#9cc9fc;box-shadow:0 5px 17px #0b224115}
html.nx-dashboard-active #nx-dashboard .nx-stat-icon{width:46px;height:46px;flex:0 0 46px;border-radius:50%;
background:#dcecff;color:#056aee;display:grid;place-items:center}
html.nx-dashboard-active #nx-dashboard .nx-stat:nth-child(n+3) .nx-stat-icon{background:#e9eff7;color:#173d67}
html.nx-dashboard-active #nx-dashboard .nx-stat-icon svg{width:25px;height:25px}
html.nx-dashboard-active #nx-dashboard .nx-stat-content{display:flex;flex-direction:column;flex:1;min-width:0}
html.nx-dashboard-active #nx-dashboard .nx-stat-label{display:flex;justify-content:space-between;
align-items:center;gap:8px;font-weight:600;font-size:13px;line-height:1.3;padding-top:3px}
html.nx-dashboard-active #nx-dashboard .nx-stat-label>span{font-size:20px;color:#076af0}
html.nx-dashboard-active #nx-dashboard .nx-stat strong{font-size:27px;line-height:1.15;font-weight:800;margin-top:2px}
html.nx-dashboard-active #nx-dashboard .nx-stat small{font-size:12px;color:#61799c;line-height:1.4;margin-top:5px}
html.nx-dashboard-active #nx-dashboard .nx-middle{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(315px,.95fr);
gap:16px;align-items:stretch;margin-bottom:16px}
html.nx-dashboard-active #nx-dashboard .nx-panel{min-width:0;border:1px solid #dfe8f3;border-radius:9px;
background:white;box-shadow:0 2px 9px #11385f0b;overflow:hidden}
html.nx-dashboard-active #nx-dashboard .nx-panel-heading{display:flex;justify-content:space-between;align-items:center;
gap:12px;padding:18px 20px 12px;min-height:56px}
html.nx-dashboard-active #nx-dashboard .nx-panel-heading h2{display:flex;gap:11px;align-items:center;
font-size:16px;font-weight:800;letter-spacing:-.02em;margin:0;color:#092247}
html.nx-dashboard-active #nx-dashboard .nx-panel-heading h2 svg{color:#173f71}
html.nx-dashboard-active #nx-dashboard .nx-panel-heading>span{font-size:11px;color:#657fa0}
html.nx-dashboard-active #nx-dashboard .nx-priority{min-height:0}
html.nx-dashboard-active #nx-dashboard .nx-table-scroll{overflow-x:auto}
html.nx-dashboard-active #nx-dashboard .nx-table{width:100%;border-collapse:collapse;table-layout:fixed}
html.nx-dashboard-active #nx-dashboard .nx-table th{padding:10px 14px;color:#5b7393;background:#f5f9fd;font-size:12px;
font-weight:600;text-align:left;border-bottom:1px solid #dde7f3}
html.nx-dashboard-active #nx-dashboard .nx-table th:first-child{padding-left:20px;width:43%}
html.nx-dashboard-active #nx-dashboard .nx-table th:nth-child(2){width:17%}
html.nx-dashboard-active #nx-dashboard .nx-table th:nth-child(3){width:16%}
html.nx-dashboard-active #nx-dashboard .nx-table th:nth-child(4){width:12%}
html.nx-dashboard-active #nx-dashboard .nx-table th:nth-child(5){width:12%}
html.nx-dashboard-active #nx-dashboard .nx-table td{vertical-align:middle;border-bottom:1px solid #e8eef5;
font-size:12px;color:#526b8d;padding:13px 14px;height:69px}
html.nx-dashboard-active #nx-dashboard .nx-table td:first-child{padding-left:20px}
html.nx-dashboard-active #nx-dashboard .nx-table tr:last-child td{border-bottom:0}
html.nx-dashboard-active #nx-dashboard .nx-table tbody tr:hover{background:#f7fbff}
html.nx-dashboard-active #nx-dashboard .nx-record{display:flex;gap:11px;align-items:center;min-width:0;
width:100%;text-align:left;background:transparent;color:#112c4f;border:0;padding:0}
html.nx-dashboard-active #nx-dashboard .nx-record .nx-icon{width:22px;flex:0 0 22px}
html.nx-dashboard-active #nx-dashboard .nx-record strong{display:block;font-size:12px;line-height:1.35;font-weight:750}
html.nx-dashboard-active #nx-dashboard .nx-record small{display:block;font-size:11px;color:#7189a7;margin-top:4px}
html.nx-dashboard-active #nx-dashboard .nx-status{display:inline-flex;align-items:center;justify-content:center;
padding:5px 9px;border-radius:99px;min-width:70px;background:#eaf4ff;color:#095dcc;font-size:11px;font-weight:600}
html.nx-dashboard-active #nx-dashboard .nx-status.nx-warning{background:#fff1e4;color:#aa5600}
html.nx-dashboard-active #nx-dashboard .nx-empty-row{color:#6581a2;text-align:center;padding:32px!important}
html.nx-dashboard-active #nx-dashboard .nx-intelligence{min-height:0}
html.nx-dashboard-active #nx-dashboard .nx-source-label{color:#6280a4;font-size:10px;
background:#f0f7ff;border:1px solid #dfeefc;border-radius:5px;padding:4px 6px}
html.nx-dashboard-active #nx-dashboard .nx-intel-row{display:flex;justify-content:space-between;align-items:center;
gap:12px;width:calc(100% - 34px);margin:0 17px;border:0;border-bottom:1px solid #e7eef6;
background:transparent;color:#25476a;text-align:left;padding:14px 4px;min-height:52px;font-size:13px}
html.nx-dashboard-active #nx-dashboard .nx-intel-row:hover,
html.nx-dashboard-active #nx-dashboard .nx-intel-row[aria-pressed="true"]{background:#edf7ff}
html.nx-dashboard-active #nx-dashboard .nx-intel-row>span:last-child{display:flex;gap:11px;align-items:center}
html.nx-dashboard-active #nx-dashboard .nx-intel-row strong{font-size:18px;font-weight:800;color:#12355b}
html.nx-dashboard-active #nx-dashboard .nx-intel-row>span:last-child span{color:#92afcb;font-size:17px}
html.nx-dashboard-active #nx-dashboard .nx-intel-provenance{border-top:1px solid #e7edf6;
margin:13px 22px 0;padding-top:12px;color:#637d9c;font-size:11px;line-height:1.6}
html.nx-dashboard-active #nx-dashboard .nx-lower{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
html.nx-dashboard-active #nx-dashboard .nx-lower>.nx-panel{min-height:245px}
html.nx-dashboard-active #nx-dashboard .nx-source-unavailable{min-height:150px;
border:1px dashed #dbe7f5;border-radius:8px;background:linear-gradient(135deg,#fcfdff,#f5faff);
margin:5px 20px 20px;padding:18px;display:flex;flex-direction:column;justify-content:center;align-items:center;
gap:10px;text-align:center;color:#5b7498}
html.nx-dashboard-active #nx-dashboard .nx-source-unavailable>svg{width:29px;height:29px;color:#5288c6}
html.nx-dashboard-active #nx-dashboard .nx-source-unavailable strong{font-size:13px;color:#21426c}
html.nx-dashboard-active #nx-dashboard .nx-source-unavailable span{font-size:12px;line-height:1.5}
html.nx-dashboard-active #nx-dashboard .nx-source-unavailable button,
html.nx-dashboard-active #nx-dashboard .nx-source-unavailable a{background:transparent;border:0;
font-size:12px;color:#0066e9;font-weight:700;text-decoration:none}
html.nx-dashboard-active #nx-dashboard #nx-authorised-links{margin:2px 18px 11px}
html.nx-dashboard-active #nx-dashboard .nx-help-link{display:flex;align-items:center;gap:12px;
padding:9px 0;color:#1d3d64;text-decoration:none;min-height:49px}
html.nx-dashboard-active #nx-dashboard .nx-help-link .nx-icon{width:23px;flex:0 0 23px}
html.nx-dashboard-active #nx-dashboard .nx-help-link>span:nth-child(2){min-width:0;flex:1}
html.nx-dashboard-active #nx-dashboard .nx-help-link strong{display:block;font-size:12px;color:#16385c}
html.nx-dashboard-active #nx-dashboard .nx-help-link small{display:block;font-size:11px;color:#6b85a5;margin-top:3px}
html.nx-dashboard-active #nx-dashboard .nx-submitted-preview{border-top:1px solid #e7eef6;margin:10px 20px}
html.nx-dashboard-active #nx-dashboard .nx-submitted-preview h3{font-size:12px;margin:13px 0 5px;color:#1b3d66}
html.nx-dashboard-active #nx-dashboard #nx-submitted-current{font-size:11px;color:#6981a1}
html.nx-dashboard-active #nx-dashboard .nx-submitted-item{display:flex;width:100%;justify-content:space-between;
gap:8px;padding:7px 0;border:0;border-top:1px solid #edf1f7;background:white;color:#193b60;text-align:left}
html.nx-dashboard-active #nx-dashboard .nx-submitted-item strong{display:block;flex:1;min-width:0;font-size:11px;font-weight:700;line-height:1.4;color:#193b60;white-space:normal;overflow-wrap:anywhere}
html.nx-dashboard-active #nx-dashboard .nx-submitted-item span{flex:0 0 auto;font-size:11px;color:#5784ac}
html.nx-dashboard-active #nx-detail{position:fixed;right:0;top:68px;bottom:0;width:min(420px,100%);
background:#fff;box-shadow:-7px 0 25px #0b2c5426;border-left:1px solid #d7e4f0;z-index:100;
padding:25px;color:#143457}
html.nx-dashboard-active #nx-detail[hidden],html.nx-dashboard-active #nx-backdrop[hidden]{display:none!important}
html.nx-dashboard-active #nx-backdrop{position:fixed;inset:68px 0 0;background:#071a3a4d;z-index:99}
html.nx-dashboard-active #nx-detail h2{font-size:22px;margin:24px 0 9px}
html.nx-dashboard-active #nx-detail #nx-detail-close{float:right;background:#eaf4ff;border:0;border-radius:7px;
height:37px;width:37px;font-size:23px;cursor:pointer}
html.nx-dashboard-active #nx-detail small{display:block;margin:14px 0 0;color:#6a82a1}
html.nx-dashboard-active #nx-detail dl{font-size:13px;line-height:1.8;color:#627b9e}
html.nx-dashboard-active #nx-detail dt{font-weight:700;color:#274a72;margin-top:12px}
html.nx-dashboard-active #nx-detail #nx-detail-open{background:#0769e9;color:white;border:0;
border-radius:8px;font-size:13px;font-weight:700;padding:13px 18px;width:100%;margin-top:15px;cursor:pointer}
html.nx-dashboard-active #nx-rail .nx-rail-item:focus-visible,
html.nx-dashboard-active #nx-detail button:focus-visible{outline:3px solid #80b9f7;outline-offset:2px}
html.nx-dashboard-active .nx-sr{position:absolute!important;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap}
@media(max-width:1230px){
 html.nx-dashboard-active #nx-dashboard .nx-stats{gap:9px}
 html.nx-dashboard-active #nx-dashboard .nx-stat{padding:12px;gap:9px}
 html.nx-dashboard-active #nx-dashboard .nx-stat-icon{width:35px;height:35px;flex-basis:35px}
 html.nx-dashboard-active #nx-dashboard .nx-stat-icon svg{width:20px;height:20px}
 html.nx-dashboard-active #nx-dashboard .nx-middle{grid-template-columns:minmax(0,1.5fr) minmax(275px,.85fr)}
 html.nx-dashboard-active #nx-dashboard .nx-table th:nth-child(3),
 html.nx-dashboard-active #nx-dashboard .nx-table td:nth-child(3),
 html.nx-dashboard-active #nx-dashboard .nx-table th:nth-child(4),
 html.nx-dashboard-active #nx-dashboard .nx-table td:nth-child(4){display:none}
 html.nx-dashboard-active #nx-dashboard .nx-table th:first-child{width:59%}
}
@media(max-width:920px){
 html.nx-dashboard-active .family-header{grid-template-columns:1fr auto!important;
 height:113px!important;min-height:113px!important;align-content:start!important}
 html.nx-dashboard-active .family-header .family-brand{grid-column:1;grid-row:1;padding:10px 14px}
 html.nx-dashboard-active .family-header .identity-chip{grid-column:2;grid-row:1;padding:10px 15px;margin:0!important}
 html.nx-dashboard-active .family-header #nx-search{grid-column:1/-1;grid-row:2;
 width:calc(100% - 36px);margin:0 18px 8px}
 html.nx-dashboard-active #nx-rail{width:74px;top:113px;padding:11px 5px}
 html.nx-dashboard-active #nx-rail .nx-rail-title,
 html.nx-dashboard-active #nx-rail .nx-rail-item>span:last-child,
 html.nx-dashboard-active #nx-rail .nx-rail-footer{display:none}
 html.nx-dashboard-active #nx-rail .nx-rail-item{justify-content:center;padding:10px}
 html.nx-dashboard-active main#main{margin-left:74px!important}
 html.nx-dashboard-active #nx-dashboard{padding:22px}
 html.nx-dashboard-active #nx-dashboard .nx-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 html.nx-dashboard-active #nx-dashboard .nx-middle{grid-template-columns:1fr}
 html.nx-dashboard-active #nx-dashboard .nx-lower{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:610px){
 html.nx-dashboard-active #nx-dashboard{padding:16px}
 html.nx-dashboard-active #nx-dashboard .nx-hero h1{font-size:25px}
 html.nx-dashboard-active #nx-dashboard .nx-current-date{display:none}
 html.nx-dashboard-active #nx-dashboard .nx-hero p{font-size:14px}
 html.nx-dashboard-active #nx-dashboard .nx-lower{grid-template-columns:1fr}
 html.nx-dashboard-active #nx-dashboard .nx-table th:nth-child(2),
 html.nx-dashboard-active #nx-dashboard .nx-table td:nth-child(2){display:none}
 html.nx-dashboard-active #nx-dashboard .nx-table th:first-child{width:75%}
 html.nx-dashboard-active #nx-dashboard .nx-table th:nth-child(5){width:25%}
 html.nx-dashboard-active #nx-dashboard .nx-stat{min-width:0}
}
@media(max-width:450px){
 html.nx-dashboard-active #nx-dashboard .nx-stats{grid-template-columns:1fr}
 html.nx-dashboard-active #nx-dashboard .nx-stat{min-height:79px}
 html.nx-dashboard-active #nx-dashboard .nx-stat strong{font-size:24px}
 html.nx-dashboard-active #nx-dashboard .nx-panel-heading{padding:14px}
 html.nx-dashboard-active #nx-dashboard .nx-panel-heading h2{font-size:15px}
}