@font-face{font-family:Raleway;src:url('fonts/raleway.ttf') format('truetype');font-weight:100 900;font-display:swap}
:root{--nx-bg:#f6f7fb;--nx-surface:#fff;--nx-surface-alt:#f2f3f9;--nx-text:#202238;--nx-muted:#70738c;--nx-border:#e5e6f0;--nx-accent:#7555e8;--nx-accent-soft:#f0ebff;--nx-shadow:0 4px 24px #1c1e3806;--nx-sidebar-width:232px}
html[data-theme=dark]{--nx-bg:#141729;--nx-surface:#1d2137;--nx-surface-alt:#252940;--nx-text:#f2f1ff;--nx-muted:#b3b7cd;--nx-border:#353a53;--nx-accent:#ac91ff;--nx-accent-soft:#34294f;--nx-shadow:0 4px 24px #080a1612}
body.nexus-app,body.nexus-auth{--paper:var(--nx-bg);--surface:var(--nx-surface);--ink:var(--nx-text);--muted:var(--nx-muted);--line:var(--nx-border);--control-line:var(--nx-border);--accent:var(--nx-accent);--accent-soft:var(--nx-accent-soft);--error:#c74157;--error-soft:#fff0f3;background:var(--nx-bg);color:var(--nx-text);font-family:Raleway,sans-serif;line-height:1.6;margin:0;font-size:14px}
html[data-theme=dark] body.nexus-app,html[data-theme=dark] body.nexus-auth{--error:#ffa0ad;--error-soft:#402b3b}
.nexus-app *, .nexus-auth *{box-sizing:border-box}.nexus-app a,.nexus-auth a{color:inherit}.nexus-app :focus-visible,.nexus-auth :focus-visible{outline:3px solid var(--nx-accent);outline-offset:4px}.nexus-app .skip-link{z-index:100;min-height:44px;border-radius:8px;background:var(--nx-accent);color:white}
.nx-icon{width:20px;height:20px;flex-shrink:0;display:block}.nx-sidebar{position:fixed;inset:0 auto 0 0;width:var(--nx-sidebar-width);z-index:60;display:flex;flex-direction:column;padding:32px 16px 20px;background:#10132b;color:#c0c2db;overflow-y:auto;scrollbar-width:thin;border-right:1px solid #ffffff0a}
.nx-brand{display:flex;align-items:center;gap:11px;text-decoration:none;padding:0 11px;color:#fff!important;line-height:1;font-size:24px;font-weight:800;letter-spacing:.045em;min-height:52px}
.nx-brand>svg{width:42px;height:42px;color:#a78aff;flex-shrink:0}.nx-brand small{display:block;font-size:8px;letter-spacing:.13em;color:#a2a9ce;margin-top:8px;font-weight:600}
.nx-nav-label{font-size:9px;letter-spacing:.15em;color:#8589ad;font-weight:700;padding:0 14px;margin:38px 0 12px}.nx-navigation{display:flex;flex-direction:column;gap:7px}
.nx-nav-link{min-height:46px;display:flex;gap:12px;align-items:center;padding:10px 14px;border-radius:9px;text-decoration:none;font-weight:600;font-size:12px;color:#c9cbe1!important;transition:background .18s,color .18s;white-space:nowrap}
.nx-sidebar .nx-nav-link:hover{background:#242741;color:#fff!important;text-decoration:none}.nx-sidebar .nx-nav-link.is-active{background:#7953e5;color:#fff!important;box-shadow:0 5px 18px #7953e530}.nx-nav-link svg{width:18px;height:18px}
.nx-sidebar-callout{margin:34px 4px 24px;padding:20px 16px;border:1px solid #30344f;border-radius:12px;background:#191d38}.nx-callout-mark{display:block;font-size:38px;color:#aa91ff;letter-spacing:-.08em;font-weight:800;margin-bottom:12px;line-height:1}.nx-sidebar-callout strong{font-size:13px;color:#f2efff;line-height:1.5;display:block}.nx-sidebar-callout p{font-size:10px;line-height:1.7;color:#a4aac7;margin:10px 0 16px}.nx-sidebar-callout a{font-size:11px;font-weight:700;color:#cab9ff;display:flex;gap:14px;align-items:center;min-height:36px;text-decoration:none}.nx-sidebar-callout .nx-icon{width:16px;height:16px}
.nx-sidebar-bottom{margin-top:auto;padding:0 5px}.nx-theme-control{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;background:#1e223e;border:1px solid #303550;border-radius:9px;margin-bottom:22px}.nx-theme-control button{display:flex;align-items:center;justify-content:center;gap:6px;padding:9px 4px;min-height:38px;border:0;border-radius:6px;background:none;color:#a9afcc;font-size:10px;font-weight:600}.nx-theme-control button[aria-pressed=true]{background:#363053;color:#e3d8ff}.nx-theme-control svg{height:16px;width:16px}.nx-account{display:flex;align-items:center;gap:10px;border-top:1px solid #2e324d;padding-top:18px}.nx-avatar{height:34px;width:34px;display:grid;place-items:center;flex-shrink:0;background:#493963;color:#e5d5ff;border-radius:10px;font-size:14px;font-weight:800}.nx-account>div{min-width:0}.nx-account strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:146px;font-size:10px;font-weight:600;color:#eeeaff}.nx-account small{font-size:9px;color:#999fbe}.nx-logout{margin:10px 0 0}.nx-logout button{border:0;background:none;color:#9fa6c5;display:flex;align-items:center;gap:9px;min-height:36px;width:100%;font-size:10px}.nx-logout svg{height:16px;width:16px}
.nexus-body{margin-left:var(--nx-sidebar-width);min-height:100vh;min-width:0}.nx-topbar{height:73px;padding:0 32px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--nx-border);background:var(--nx-surface);gap:15px}.nx-topbar-leading,.nx-topbar-trailing{display:flex;align-items:center;gap:18px;min-width:0}.nx-breadcrumb{font-size:11px;color:var(--nx-muted);display:flex;gap:14px;white-space:nowrap}.nx-breadcrumb strong{font-weight:600;color:var(--nx-text)}.nx-site-link{font-size:10px;text-decoration:none;display:flex;align-items:center;gap:7px;color:var(--nx-muted)!important;white-space:nowrap}.nx-site-link svg{height:15px;width:15px}.nx-quick-theme,.nx-menu-toggle{width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--nx-border);background:var(--nx-surface);border-radius:10px;color:var(--nx-text)}.nx-menu-toggle{display:none}.nx-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--nx-border);margin:0 32px;padding:20px 0;font-size:10px;color:var(--nx-muted)}.nx-footer a{text-decoration:none}
.nexus-app .lab-main{width:calc(100% - 64px);max-width:1260px;margin:auto;padding:32px 0 48px;min-height:calc(100vh - 132px)}
.nexus-app .lab-heading{padding-bottom:28px;align-items:center}.nexus-app .lab-heading h1{font-family:Raleway,sans-serif;font-size:29px;font-weight:800;letter-spacing:-.045em;margin-top:8px}.nexus-app .eyebrow{font-size:10px;letter-spacing:.1em;color:var(--nx-muted)}.nexus-app .dashboard-intro{font-size:12px;color:var(--nx-muted)}
.nexus-app .button,.nexus-auth .button{border:1px solid transparent;border-radius:9px;background:#7555e8;color:white;min-height:44px;gap:10px;padding:11px 18px;font-size:12px;font-weight:700;box-shadow:0 4px 12px #7555e810;transition:background .18s,box-shadow .18s}.nexus-app .button:hover:not(:disabled),.nexus-auth .button:hover:not(:disabled){background:#6546d5;color:white;box-shadow:0 5px 16px #7555e825;text-decoration:none}.nexus-app .button-secondary,.nexus-auth .button-secondary{border-color:var(--nx-border);color:var(--nx-text);background:var(--nx-surface);box-shadow:none}.nexus-app .button-secondary:hover:not(:disabled),.nexus-auth .button-secondary:hover:not(:disabled){color:var(--nx-accent);background:var(--nx-accent-soft);border-color:var(--nx-accent)}
.nexus-app .small-text{color:var(--nx-muted);font-size:11px}.nexus-app .text-link{color:var(--nx-accent);font-size:12px;border:0;min-height:36px}.nexus-app .notice{background:var(--nx-surface-alt);border:1px solid var(--nx-border);border-radius:10px;color:var(--nx-text);font-size:12px;line-height:1.75;padding:18px 20px}.nexus-app .notice.error{color:var(--error);background:var(--error-soft);border-color:var(--error)}
.nexus-app input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),.nexus-app select,.nexus-auth input:not([type=hidden]){background:var(--nx-surface);border:1px solid var(--nx-border);border-radius:8px;color:var(--nx-text);padding:11px 13px;min-height:44px;font:inherit;width:100%;max-width:100%}.nexus-app input[type=checkbox],.nexus-app input[type=radio]{accent-color:var(--nx-accent)}.nexus-app input::placeholder{color:var(--nx-muted)}.nexus-app label{color:var(--nx-text)}
.nexus-app .settings-intro{font-size:13px;max-width:780px}.nexus-app .settings-note{font-size:11px;margin-bottom:28px}.nexus-app .settings-section{background:var(--nx-surface);border:1px solid var(--nx-border);border-radius:14px;padding:26px 30px;margin:20px 0;box-shadow:var(--nx-shadow)}.nexus-app .settings-section h2{font-size:20px;font-weight:800;letter-spacing:-.025em}.nexus-app .settings-state{border:1px solid var(--nx-border);padding:7px 12px;border-radius:7px;background:var(--nx-surface-alt);font-size:11px;color:var(--nx-muted)}.nexus-app .section-number{font-size:9px;color:var(--nx-accent)}.nexus-app .section-intro{font-size:12px;max-width:800px;color:var(--nx-muted)}.nexus-app .settings-form{max-width:680px}.nexus-app .settings-form .field-label{font-size:11px}.nexus-app .settings-actions{margin-top:12px;gap:10px}.nexus-app .lab-footnote{font-size:10px;color:var(--nx-muted);border-color:var(--nx-border)}
.nexus-app .login-section{width:100%;max-width:790px;margin:0}.nexus-app .login-section h1{font-family:Raleway,sans-serif;font-size:30px;font-weight:800;letter-spacing:-.04em}.nexus-app .login-section>p{font-size:13px}.nexus-app .login-section .login-form{background:var(--nx-surface);border:1px solid var(--nx-border);border-radius:13px;padding:24px;gap:15px}.nexus-app .check-label{font-size:12px;line-height:1.7}.nexus-app .login-section .notice h2{font-size:17px}.nexus-app .login-section .login-form p{font-size:12px;line-height:1.8}
.nexus-app .users-layout .dashboard-card{background:var(--nx-surface);border-color:var(--nx-border);box-shadow:var(--nx-shadow)}.nexus-app .users-layout h2{font-size:21px;font-weight:800}.nexus-app .permission-grid{gap:12px}.nexus-app .permission-grid label{font-size:11px;line-height:1.7}.nexus-app .collaborator-card,.nexus-app .invite-record{border-color:var(--nx-border)}.nexus-app .collaborator-card summary{min-height:44px}.nexus-app .collaborator-card summary strong{font-size:13px;color:var(--nx-text)}.nexus-app .collaborator-card summary span{font-size:11px;color:var(--nx-muted)}.nexus-app .permission-note{font-size:11px;color:var(--nx-muted);border-color:var(--nx-accent)}.nexus-app .invite-link{background:var(--nx-accent-soft);border-color:var(--nx-border);color:var(--nx-text)}
.nx-help-intro{max-width:760px;margin-bottom:28px}.nx-help-intro h1{font-size:30px;font-weight:800;letter-spacing:-.04em;margin:8px 0 12px}.nx-help-intro p{color:var(--nx-muted);font-size:13px}.nx-help-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.nx-help-card{padding:28px;border:1px solid var(--nx-border);background:var(--nx-surface);border-radius:14px}.nx-help-card h2{font-size:18px;margin-bottom:14px;font-weight:800}.nx-help-card p,.nx-help-card li{color:var(--nx-muted);font-size:12px;line-height:1.9}.nx-help-card li+li{margin-top:10px}.nx-help-card ul,.nx-help-card ol{padding-left:20px}.nx-help-card a{color:var(--nx-accent)}.nx-help-card details{border-top:1px solid var(--nx-border);padding-top:12px;margin-top:16px}.nx-help-card summary{min-height:36px;font-size:12px;font-weight:700;cursor:pointer}.nx-help-card code{padding:3px 6px;background:var(--nx-surface-alt);border-radius:4px;font-size:11px}.nx-help-wide{grid-column:1/-1}
.nexus-auth .nx-auth-header{display:flex;align-items:center;justify-content:space-between;max-width:1180px;padding:24px;margin:auto}.nexus-auth .nx-brand{color:var(--nx-text)!important}.nexus-auth .nx-brand small{color:var(--nx-muted)}.nexus-auth .nx-auth-main{display:grid;grid-template-columns:1fr 1fr;gap:80px;max-width:1100px;min-height:75vh;padding:70px 24px;margin:auto;align-items:center}.nx-auth-copy>p{color:var(--nx-muted);font-size:14px;max-width:45ch}.nx-auth-copy h1{font-family:Raleway,sans-serif;font-size:50px;font-weight:800;line-height:1.1;letter-spacing:-.06em;margin:18px 0 24px}.nx-auth-copy h1 span{color:var(--nx-accent)}.nx-auth-caption{font-size:11px!important;border-left:3px solid var(--nx-accent);padding-left:16px;margin-top:32px}.nx-auth-card{background:var(--nx-surface);border:1px solid var(--nx-border);border-radius:18px;padding:36px;box-shadow:0 12px 50px #17193a08}.nx-auth-card h2{font-size:24px;font-weight:800;letter-spacing:-.04em}.nx-auth-card>p{font-size:12px;color:var(--nx-muted);margin-top:8px}.nx-auth-card .login-form{gap:10px;margin:28px 0 18px}.nx-auth-card .login-form label{font-size:12px}.nx-auth-card .button{width:100%;margin-top:14px}.nx-auth-footer{font-size:11px;text-align:center;color:var(--nx-muted);padding:24px}.nexus-auth .notice{border-radius:9px;color:var(--nx-text);background:var(--nx-surface-alt)}.nexus-auth .notice.error{color:var(--error);background:var(--error-soft)}
.nx-backdrop{position:fixed;inset:0;background:#0507198c;z-index:59}.nx-backdrop[hidden]{display:none}.nexus-viewer-content{min-width:0}
@media(min-width:901px) and (max-height:850px){.nx-sidebar-callout{display:none}.nx-nav-label{margin-top:25px}.nx-sidebar{padding-top:22px}}
@media(max-width:1100px){.nx-topbar{padding-inline:24px}.nexus-app .lab-main{width:calc(100% - 48px)}.nx-footer{margin-inline:24px}.nx-help-grid{grid-template-columns:1fr}.nx-help-wide{grid-column:auto}}
@media(max-width:900px){.nx-sidebar{transform:translateX(-100%);transition:transform .2s ease;box-shadow:12px 0 60px #07091955;width:252px;padding-top:26px}.nx-menu-open .nx-sidebar{transform:translateX(0)}.nx-menu-open{overflow:hidden}.nexus-body{margin-left:0}.nx-menu-toggle{display:grid}.nx-topbar{height:67px;padding:0 20px}.nx-breadcrumb{gap:8px;font-size:11px}.nx-breadcrumb>span{display:none}.nx-breadcrumb{font-size:0}.nx-breadcrumb strong{font-size:12px}.nx-topbar-trailing{gap:10px}.nx-site-link{font-size:10px}.nexus-app .lab-main{width:calc(100% - 40px);padding-top:24px}.nx-footer{margin:0 20px;flex-wrap:wrap}.nexus-auth .nx-auth-main{gap:35px;grid-template-columns:1fr;padding-block:30px;max-width:550px}.nx-auth-copy h1{font-size:38px}.nx-auth-caption{margin-top:20px}.nx-help-card{padding:22px}}
@media(max-width:520px){.nx-topbar{padding:0 16px}.nx-site-link{display:none}.nx-topbar-leading{gap:12px}.nexus-app .lab-main{width:calc(100% - 32px)}.nexus-app .lab-heading h1{font-size:25px}.nexus-app .settings-section{padding:22px 18px}.nexus-app .settings-section-heading{align-items:flex-start}.nexus-app .settings-state{text-align:left}.nexus-app .login-section h1{font-size:26px}.nexus-app .login-section .login-form{padding:20px 16px}.nx-help-intro h1{font-size:26px}.nx-auth-card{padding:25px}.nexus-auth .nx-auth-header{padding:16px}.nexus-auth .nx-brand{font-size:20px}.nexus-auth .nx-auth-main{padding:24px 16px}.nx-auth-copy h1{font-size:35px}.nexus-auth .nx-auth-header .nx-site-link{display:flex}.nx-footer{font-size:9px;margin-inline:16px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.nx-sidebar-close{display:none}@media(max-width:900px){.nx-sidebar-close{display:grid;place-items:center;position:absolute;right:10px;top:25px;width:38px;height:44px;border:0;border-radius:8px;background:#242741;color:#d9dcf3;font-size:24px;line-height:1}.nx-sidebar .nx-brand{padding-left:7px}.nx-sidebar .nx-brand>svg{width:36px;height:36px}.nx-sidebar .nx-brand{font-size:22px}}

/* NEXUS brand: locally hosted Raleway, warm sculptural accents, calm work surfaces. */
.nx-brand{font-family:Raleway,sans-serif;font-weight:900;letter-spacing:.035em}
.nx-brand-image{display:block;width:48px;height:48px;object-fit:contain;flex-shrink:0}
.nx-avatar img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 23%;border-radius:inherit}
.nx-research-launch{display:flex;align-items:center;justify-content:space-between;gap:28px;margin:0 0 26px;padding:26px 30px;border:1px solid var(--nx-border);border-radius:20px;background:linear-gradient(115deg,#fff5e3 0%,#fff9f4 45%,#f0edff 100%);box-shadow:var(--nx-shadow)}
.nx-launch-intro{display:flex;align-items:center;gap:20px;min-width:0}
.nx-launch-intro>img{width:76px;height:76px;object-fit:contain;flex-shrink:0}
.nx-launch-intro p{margin:0 0 5px;font-size:10px;font-weight:800;letter-spacing:.13em;color:#946029}
.nx-launch-intro h2{margin:0 0 6px;font-size:25px;line-height:1.2;font-weight:800;letter-spacing:-.025em;color:var(--nx-text)}
.nx-launch-intro span{font-size:13px;line-height:1.6;color:var(--nx-muted)}
.nx-launch-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;flex-shrink:0}
.nx-launch-actions a{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:11px 17px;border-radius:11px;font-size:12px;font-weight:700;text-decoration:none;transition:background .15s,transform .15s}
.nx-launch-primary{background:#7555e8;color:#fff!important;box-shadow:0 5px 13px #7555e826}
.nx-launch-primary:hover{background:#6243cf;transform:translateY(-1px)}
.nx-launch-secondary{background:var(--nx-surface);border:1px solid var(--nx-border)}
.nx-launch-secondary:hover{background:var(--nx-accent-soft)}
.nx-launch-actions .nx-launch-link{grid-column:1/-1;min-height:32px;padding:0;background:none;color:var(--nx-muted);font-size:11px}
.nexus-app button,.nexus-app input,.nexus-app select,.nexus-app textarea,.nexus-auth button,.nexus-auth input{font-family:Raleway,sans-serif}
.nexus-app .lab-heading h1{font-weight:800;letter-spacing:-.04em}
.nexus-app .nx-stat-value{font-weight:800;font-variant-numeric:lining-nums tabular-nums}
html[data-theme=dark] .nx-research-launch{background:linear-gradient(115deg,#302b35,#25243c 55%,#2b2545)}
html[data-theme=dark] .nx-launch-intro p{color:#f7c38d}
@media(max-width:1250px){.nx-research-launch{align-items:flex-start;flex-direction:column;gap:18px}.nx-launch-actions{display:flex;flex-wrap:wrap}.nx-launch-actions .nx-launch-link{padding:8px 12px}}
@media(max-width:520px){.nx-research-launch{padding:20px 18px;border-radius:16px}.nx-launch-intro{gap:12px}.nx-launch-intro>img{width:50px;height:50px}.nx-launch-intro h2{font-size:21px}.nx-launch-intro p{font-size:8px}.nx-launch-actions{width:100%}.nx-launch-actions a{flex:1;padding:11px 10px}.nx-launch-actions .nx-launch-link{flex-basis:100%}.nx-brand-image{width:42px;height:42px}}
