:root{
  --nx-void:#09080f;--nx-deep:#0f0d17;--nx-panel:#15131f;--nx-panel-2:#1b1827;
  --nx-line:rgba(229,224,255,.13);--nx-line-strong:rgba(229,224,255,.23);
  --nx-text:#f4f0e8;--nx-muted:#aaa4ba;--nx-violet:#9c7cff;--nx-violet-2:#7258d9;
  --nx-citron:#d9ff72;--nx-mint:#6ee7bb;--nx-amber:#ffc66d;--nx-red:#ff8b9a;
}
.nexus-skip-link{position:fixed;left:12px;top:10px;z-index:100000;transform:translateY(-160%);padding:10px 14px;border-radius:8px;background:#f4f0e8;color:#111;font-weight:800;text-decoration:none}.nexus-skip-link:focus{transform:translateY(0)}
.portal-body{background:var(--nx-void)!important;color:var(--nx-text);min-height:100vh;position:relative;overflow-x:hidden}
.portal-body:before{content:"";position:fixed;inset:0;pointer-events:none;opacity:.32;background-image:linear-gradient(rgba(156,124,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(156,124,255,.045) 1px,transparent 1px);background-size:46px 46px;mask-image:linear-gradient(to bottom,black,transparent 72%)}
.portal-body:after{content:"";position:fixed;width:560px;height:560px;right:-190px;top:-230px;border-radius:50%;pointer-events:none;background:radial-gradient(circle,rgba(156,124,255,.22),rgba(156,124,255,.04) 42%,transparent 70%);filter:blur(12px)}
.portal-body .auth-shell{position:relative;z-index:1;max-width:1160px;margin:auto;padding:58px 24px 90px}
.portal-body .auth-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:14px}
.portal-body .panel,.portal-body .box,.portal-body .stat,.portal-body .row,.portal-body .metric-card,.portal-body .upload{background:linear-gradient(155deg,rgba(27,24,39,.96),rgba(16,14,24,.98));border:1px solid var(--nx-line);box-shadow:0 18px 55px rgba(0,0,0,.22)}
.portal-body .panel{border-radius:22px;padding:28px;position:relative;overflow:hidden}
.portal-body .panel:before,.portal-body .nx-corner:before{content:"";position:absolute;left:-1px;top:-1px;width:42px;height:3px;background:var(--nx-citron);box-shadow:0 0 20px rgba(217,255,114,.22)}
.portal-body .brand{color:var(--nx-text)}
.portal-body .mark{background:var(--nx-violet);border:0;color:#0c0815;border-radius:8px;box-shadow:0 0 30px rgba(156,124,255,.26)}
.portal-body .eyebrow{background:rgba(217,255,114,.06);border-color:rgba(217,255,114,.25);color:var(--nx-citron);border-radius:4px}
.portal-body .muted,.portal-body .small{color:var(--nx-muted)}
.portal-body .tabs{display:flex;gap:7px;padding:5px;background:rgba(255,255,255,.025);border:1px solid var(--nx-line);border-radius:12px}
.portal-body .tabs button{flex:1;background:transparent;color:var(--nx-muted);border:0;border-radius:8px;padding:11px 12px}
.portal-body .tabs button.active{background:var(--nx-violet);color:#0b0713;font-weight:900}
.portal-body input,.portal-body select,.portal-body textarea{background:#0d0b14;border-color:var(--nx-line);color:var(--nx-text)}
.portal-body input:focus,.portal-body select:focus,.portal-body textarea:focus{border-color:rgba(156,124,255,.7);box-shadow:0 0 0 3px rgba(156,124,255,.11)}
.portal-body .btn{border-radius:8px;border-color:var(--nx-line-strong)}
.portal-body .btn.primary{background:var(--nx-citron);color:#11100d;border:0;box-shadow:0 10px 30px rgba(217,255,114,.08)}
.portal-body .btn.secondary{background:rgba(255,255,255,.035);color:var(--nx-text)}
.portal-body .success-box{border:1px solid rgba(110,231,187,.32);background:rgba(110,231,187,.055);border-radius:16px}
.portal-body .note{background:rgba(255,198,109,.045);border-color:rgba(255,198,109,.21);color:#ead8b8}
.portal-body .topbar{position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:10px;padding:12px 18px;background:rgba(9,8,15,.91);backdrop-filter:blur(22px);border-bottom:1px solid var(--nx-line)}
.portal-body .topbar .brand{margin-right:auto}
.portal-body .workspace{position:relative;z-index:1;max-width:1540px;margin:auto;display:grid;grid-template-columns:248px minmax(0,1fr);min-height:calc(100vh - 63px)}
.portal-body .sidebar{position:relative;background:linear-gradient(180deg,#0e0c15,#0a0910);border-right:1px solid var(--nx-line);padding:21px 14px}
.portal-body .sidebar:before{content:"";position:absolute;right:-1px;top:0;width:2px;height:118px;background:linear-gradient(var(--nx-citron),transparent)}
.portal-body .side-nav{display:grid;gap:5px}
.portal-body .side-nav button{border:1px solid transparent;background:transparent;color:#8f899c;text-align:left;padding:10px 12px;border-radius:8px;position:relative}
.portal-body .side-nav button:hover{background:rgba(156,124,255,.07);color:var(--nx-text)}
.portal-body .side-nav button.active{background:linear-gradient(90deg,rgba(156,124,255,.18),rgba(156,124,255,.035));border-color:rgba(156,124,255,.2);color:var(--nx-text)}
.portal-body .side-nav button.active:before{content:"";position:absolute;left:-1px;top:8px;bottom:8px;width:3px;background:var(--nx-citron);border-radius:4px}
.portal-body .main{padding:29px;min-width:0}
.portal-body .section{display:none}.portal-body .section.active{display:block}
.portal-body .toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.portal-body .stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.portal-body .stat{padding:17px;border-radius:12px}.portal-body .stat b{font-size:30px}.portal-body .stat span{font-size:11px;color:var(--nx-muted);text-transform:uppercase;letter-spacing:.06em}
.portal-body .two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.portal-body .box{padding:18px;border-radius:13px}.portal-body .list{display:grid;gap:8px}.portal-body .row{padding:13px;display:flex;gap:12px;align-items:flex-start;border-radius:11px}.portal-body .grow{flex:1;min-width:0}
.portal-body .pill{display:inline-flex;border:1px solid var(--nx-line);border-radius:4px;padding:4px 7px;font-size:10px;color:#bab4c9;text-transform:uppercase;letter-spacing:.04em}
.portal-body .empty{padding:22px;text-align:center;border:1px dashed var(--nx-line-strong);border-radius:10px;color:var(--nx-muted)}
.portal-body .timeline{display:grid}.portal-body .mile{position:relative;border-left:2px solid rgba(156,124,255,.35);padding:0 0 20px 23px;margin-left:7px}.portal-body .mile:before{content:"";position:absolute;width:10px;height:10px;background:var(--nx-citron);left:-6px;top:5px;transform:rotate(45deg)}
.portal-body .metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.portal-body .metric-card{border-radius:12px;padding:16px}
.portal-body .modal{position:fixed;inset:0;background:rgba(0,0,0,.76);display:none;align-items:center;justify-content:center;padding:18px;z-index:70}.portal-body .modal.show{display:flex}.portal-body .modal-card{width:min(650px,100%);max-height:90vh;overflow:auto;background:var(--nx-panel);border:1px solid var(--nx-line-strong);border-radius:16px;padding:22px}
.portal-body .toast{position:fixed;right:18px;bottom:18px;background:#1a1725;border:1px solid rgba(156,124,255,.38);border-radius:10px;padding:12px 15px;display:none;z-index:90;max-width:390px}.portal-body .toast.show{display:block}
.portal-body .company-select{max-width:300px}

/* Data Room */
.data-room-stack{display:grid;gap:14px}.data-room-hero{position:relative;overflow:hidden;border:1px solid rgba(156,124,255,.24);border-radius:18px;padding:23px;background:linear-gradient(120deg,rgba(156,124,255,.12),rgba(217,255,114,.035) 62%,rgba(255,255,255,.015))}.data-room-hero:after{content:"DATA ROOM";position:absolute;right:18px;top:10px;font-weight:950;font-size:54px;letter-spacing:-.06em;color:rgba(255,255,255,.025)}.data-room-hero h2{font-size:29px;margin:6px 0}.data-room-hero p{max-width:830px;color:var(--nx-muted);margin:0}.data-room-meter{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:center;margin-top:18px}.data-room-meter-track{height:7px;background:rgba(255,255,255,.06);border-radius:10px;overflow:hidden}.data-room-meter-fill{height:100%;background:linear-gradient(90deg,var(--nx-violet),var(--nx-citron));transition:.3s}.data-room-meter strong{font-size:13px;color:var(--nx-citron)}
.requirement-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.requirement-card{position:relative;border:1px solid var(--nx-line);background:linear-gradient(155deg,rgba(25,22,36,.96),rgba(13,12,19,.97));border-radius:13px;padding:17px;overflow:hidden}.requirement-card:before{content:"";position:absolute;width:22px;height:22px;right:-11px;top:-11px;border:1px solid rgba(217,255,114,.34);transform:rotate(45deg)}.requirement-card.addressed{border-color:rgba(110,231,187,.25)}.requirement-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.requirement-card h3{font-size:17px;margin:7px 0 10px}.req-status{display:inline-flex;padding:4px 7px;border-radius:4px;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;border:1px solid var(--nx-line);color:#b7b0c6}.req-status.uploaded,.req-status.ready{color:var(--nx-mint);border-color:rgba(110,231,187,.28);background:rgba(110,231,187,.05)}.req-status.build_with_nexus{color:var(--nx-citron);border-color:rgba(217,255,114,.25);background:rgba(217,255,114,.04)}.req-status.needed{color:var(--nx-amber);border-color:rgba(255,198,109,.25)}.req-detail{padding:9px 0;border-top:1px solid rgba(255,255,255,.06)}.req-detail b{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:#797386;margin-bottom:3px}.req-detail p{margin:0;color:var(--nx-muted);font-size:12px}.req-detail.missing{border-left:2px solid var(--nx-citron);padding-left:10px;margin-top:7px}.req-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.req-answer{display:none;margin-top:10px}.req-answer.open{display:block}.req-answer textarea{min-height:85px}.data-room-upload{border:1px solid rgba(217,255,114,.22)!important;background:linear-gradient(135deg,rgba(217,255,114,.04),rgba(156,124,255,.035))!important;border-radius:15px!important;padding:19px!important}.upload-context{display:none;margin-bottom:12px;padding:10px 12px;border-left:3px solid var(--nx-citron);background:rgba(217,255,114,.04);font-size:12px}.upload-context.show{display:block}.request-strip{display:grid;gap:8px}.request-strip .row{border-color:rgba(255,198,109,.2)}
.data-room-help{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.data-room-help>div{padding:13px;border:1px solid var(--nx-line);border-radius:10px;background:rgba(255,255,255,.018)}.data-room-help b{display:block;font-size:12px;color:var(--nx-text)}.data-room-help span{display:block;font-size:11px;color:var(--nx-muted);margin-top:4px}
.email-control{border:1px solid var(--nx-line);border-radius:14px;padding:17px;background:linear-gradient(145deg,rgba(156,124,255,.07),rgba(255,255,255,.015));margin-bottom:16px}.email-status{display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:850}.email-status:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--nx-amber);box-shadow:0 0 14px rgba(255,198,109,.4)}.email-status.live:before{background:var(--nx-mint);box-shadow:0 0 14px rgba(110,231,187,.4)}.pref-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-top:13px}.pref-toggle{display:flex;gap:9px;align-items:flex-start;padding:10px;border:1px solid rgba(255,255,255,.07);border-radius:9px}.pref-toggle input{width:auto;margin-top:3px}.pref-toggle b{display:block;font-size:12px}.pref-toggle span{display:block;font-size:10px;color:var(--nx-muted)}
.portal-verify-preflight{margin-top:16px;padding:14px;border:1px solid rgba(217,255,114,.3);border-left:4px solid var(--nx-citron);background:rgba(217,255,114,.055);font-size:14px}.portal-verified-overlay{position:fixed;inset:0;background:rgba(4,3,8,.92);display:grid;place-items:center;z-index:100;padding:20px}.portal-verified-card{width:min(620px,100%);padding:28px;background:var(--nx-panel);border:1px solid rgba(110,231,187,.3);border-radius:18px}.portal-verified-card.error{border-color:rgba(255,139,154,.3)}.portal-verified-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:var(--nx-mint);color:#07110e;font-size:23px;font-weight:900;margin-bottom:15px}.portal-verified-card.error .portal-verified-icon{background:var(--nx-red);color:#17070a}

/* Operations module overrides */
.portal-body .ops-nav-group{color:#665f75}.portal-body .ops-role-chip{border-color:rgba(156,124,255,.26);background:rgba(156,124,255,.08);color:#d7ceff}.portal-body .ops-hero{border-color:rgba(156,124,255,.23);background:linear-gradient(135deg,rgba(156,124,255,.12),rgba(217,255,114,.028))}.portal-body .ops-stat,.portal-body .ops-panel,.portal-body .ops-client{background:linear-gradient(155deg,rgba(25,22,36,.96),rgba(13,12,19,.97));border-color:var(--nx-line)}.portal-body .ops-stage span.active{background:rgba(217,255,114,.07);border-color:rgba(217,255,114,.25);color:var(--nx-citron)}.portal-body .ops-pulse{border-color:var(--nx-citron)}.portal-body .ops-badge.building,.portal-body .ops-badge.submitted,.portal-body .ops-badge.planned,.portal-body .ops-badge.in_progress,.portal-body .ops-badge.recommended{background:rgba(156,124,255,.07);border-color:rgba(156,124,255,.24);color:#d2c7ff}

@media(max-width:1020px){.portal-body .workspace{grid-template-columns:1fr}.portal-body .sidebar{border-right:0;border-bottom:1px solid var(--nx-line)}.portal-body .side-nav{display:flex;overflow:auto;padding-bottom:3px}.portal-body .side-nav button{white-space:nowrap}.requirement-grid{grid-template-columns:1fr}.data-room-help{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.portal-body .auth-grid,.portal-body .two,.portal-body .stats,.portal-body .metrics,.pref-grid,.data-room-help{grid-template-columns:1fr}.portal-body .main{padding:18px 13px 90px}.portal-body .topbar{flex-wrap:wrap}.portal-body .company-select{order:4;max-width:none;width:100%}.data-room-hero:after{font-size:37px}.data-room-meter{grid-template-columns:1fr}.requirement-card{padding:15px}.portal-body .panel{padding:20px}.portal-body .auth-shell{padding:28px 13px 80px}}
