/* Preserves the exact uploaded Nexus Prime theme; only shared header/mobile refinements */
:root,[data-theme="saas-orange"]{--bg-primary:#0b1120;--bg-secondary:#111827;--bg-card:#1e293b;--bg-elevated:#263449;--bg-glass:rgba(11,17,32,.88);--text-primary:#f8fafc;--text-secondary:#cbd5e1;--text-muted:#94a3b8;--border-color:#334155;--accent-primary:#f97316;--accent-hover:#ea580c;--accent-soft:rgba(249,115,22,.14);--badge-text:#fff}
[data-theme="luxury-gold"]{--bg-primary:#090d16;--bg-secondary:#0f1522;--bg-card:#111827;--bg-elevated:#1c2638;--bg-glass:rgba(9,13,22,.90);--text-primary:#faf8f5;--text-secondary:#d6d3cd;--text-muted:#9e9a90;--border-color:#2c3545;--accent-primary:#d4af37;--accent-hover:#b59024;--accent-soft:rgba(212,175,55,.16);--badge-text:#090d16}
[data-theme="corporate-light"]{--bg-primary:#f8fafc;--bg-secondary:#f1f5f9;--bg-card:#fff;--bg-elevated:#f1f5f9;--bg-glass:rgba(255,255,255,.92);--text-primary:#0f172a;--text-secondary:#334155;--text-muted:#64748b;--border-color:#e2e8f0;--accent-primary:#ea580c;--accent-hover:#c2410c;--accent-soft:rgba(234,88,12,.11);--badge-text:#fff}
.theme-bg-primary{background-color:var(--bg-primary)}.theme-bg-secondary{background-color:var(--bg-secondary)}.theme-bg-card{background-color:var(--bg-card)}.theme-bg-elevated{background-color:var(--bg-elevated)}.theme-bg-glass{background-color:var(--bg-glass);backdrop-filter:blur(16px)}.theme-text-primary{color:var(--text-primary)}.theme-text-secondary{color:var(--text-secondary)}.theme-text-muted{color:var(--text-muted)}.theme-border{border-color:var(--border-color)}.theme-accent-bg{background-color:var(--accent-primary);color:var(--badge-text)}.theme-accent-text{color:var(--accent-primary)}.theme-accent-soft{background-color:var(--accent-soft);color:var(--accent-primary)}
.nexus-topbar,.nexus-header,.nexus-mobile-menu{font-family:'Inter',sans-serif;box-sizing:border-box}.nexus-topbar *,.nexus-header *,.nexus-mobile-menu *{box-sizing:border-box}
.nexus-topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:45px;padding-top:4px;padding-bottom:4px}
.nexus-pulse{height:8px;width:8px;flex:0 0 auto;background:var(--accent-primary);border-radius:50%;box-shadow:0 0 0 3px var(--accent-soft)}.nexus-credit-term{padding:4px 7px;white-space:nowrap}
.nexus-theme-box{display:flex;align-items:center;gap:3px;padding:3px;min-width:0}.nexus-theme-caption{font-size:10px;padding:2px 5px;white-space:nowrap}
.nexus-theme-btn{display:flex;align-items:center;justify-content:center;gap:5px;font-size:11px;line-height:1.3;padding:7px 9px;white-space:nowrap;cursor:pointer;border:0;min-width:0}.nexus-theme-btn.is-active{background:var(--accent-primary);color:var(--badge-text)}.nexus-theme-dot{width:8px;height:8px;flex:0 0 auto;border:1px solid #fff;border-radius:50%}
.nexus-icon-btn{min-width:43px;height:34px;display:flex;align-items:center;justify-content:center;gap:5px;padding:5px 8px;color:var(--text-primary);cursor:pointer}.nexus-icon-btn span{display:inline-flex;padding:1px 5px;border-radius:5px;font-size:10px;line-height:1.2;background:var(--accent-primary);color:var(--badge-text);font-weight:700}
.nexus-header-inner{height:74px;min-width:0}.nexus-brand{min-width:0;flex:0 1 auto;text-decoration:none}.nexus-brand-icon{width:44px;height:44px;flex:0 0 auto;box-shadow:0 8px 20px rgba(0,0,0,.14)}.nexus-brand-copy{min-width:0;display:flex;flex-direction:column;gap:2px}.nexus-brand-line{display:flex;align-items:center;gap:9px;white-space:nowrap}.nexus-brand-line strong{font-family:'Space Grotesk',sans-serif;font-size:20px;line-height:1.15;letter-spacing:-.025em;color:var(--text-primary)}.nexus-brand-line em{font-style:normal;color:var(--accent-primary)}.nexus-brand-line small{font-size:9px;padding:4px 5px;color:var(--text-muted);border:1px solid var(--border-color);border-radius:3px}.nexus-brand-subtitle{font-size:10px;letter-spacing:.09em;text-transform:uppercase;line-height:1.2;color:var(--text-muted);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nexus-desktop-nav{display:flex;align-items:center;gap:2px;min-width:0}.nexus-desktop-nav a{padding:9px 8px;border-radius:8px;white-space:nowrap;font-size:12px;font-weight:600;color:var(--text-secondary)}.nexus-desktop-nav a:hover,.nexus-desktop-nav a:focus{background:var(--accent-soft);color:var(--text-primary)}.nexus-header-actions{flex:0 0 auto}.nexus-consultation{display:flex;align-items:center;gap:8px;padding:11px 13px;font-size:12px;text-decoration:none;white-space:nowrap;color:var(--badge-text)}.nexus-consultation:hover{opacity:.88}.nexus-menu-toggle{display:none;width:42px;height:42px;padding:9px;border:1px solid var(--border-color);border-radius:9px;background:var(--bg-card);cursor:pointer}.nexus-menu-toggle span{display:block;height:2px;margin:5px 0;background:var(--text-primary);border-radius:2px}
.nexus-nav-overlay{position:fixed;inset:0;z-index:80;background:rgba(2,6,23,.64)}.nexus-mobile-menu{position:fixed;z-index:81;inset:0 0 0 auto;width:min(360px,88vw);padding:18px;overflow-y:auto;background:var(--bg-secondary);border-left:1px solid var(--border-color);color:var(--text-primary);box-shadow:-20px 0 50px rgba(0,0,0,.25)}
.nexus-nav-overlay[hidden],.nexus-mobile-menu[hidden]{display:none!important}.nexus-mobile-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.nexus-mobile-heading strong{font-family:'Space Grotesk',sans-serif;font-size:20px}.nexus-menu-close{width:38px;height:38px;border-radius:9px;border:1px solid var(--border-color);color:var(--text-primary);background:var(--bg-card);font-size:26px;line-height:1;cursor:pointer}.nexus-mobile-links{display:grid;gap:6px}.nexus-mobile-links a{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;font-size:14px;font-weight:600;background:var(--bg-card);border:1px solid var(--border-color);border-radius:10px;color:var(--text-primary)}.nexus-mobile-links a:hover{border-color:var(--accent-primary)}.nexus-mobile-cta{margin-top:16px;display:flex;justify-content:space-between;padding:14px;border-radius:10px;color:var(--badge-text);font-weight:700}
body.nexus-nav-open{overflow:hidden}
@media(max-width:1380px){.nexus-desktop-nav{display:none}.nexus-menu-toggle{display:block}}
@media(max-width:640px){
.nexus-topbar-inner{display:flex;flex-direction:column;align-items:stretch;gap:5px;min-height:0;padding-top:6px;padding-bottom:6px}.nexus-topbar-credit{font-size:10px;line-height:1.15;white-space:nowrap;gap:5px}.nexus-credit-term{padding:2px 5px}.nexus-topbar-actions{width:100%;justify-content:space-between;gap:5px}.nexus-theme-box{flex:1;padding:2px;min-width:0;gap:0}.nexus-theme-caption{display:none}.nexus-theme-btn{padding:5px 4px;font-size:10px;flex:1;white-space:normal;text-align:center;line-height:1.1;gap:3px}.nexus-theme-dot{width:6px;height:6px}.nexus-quick-actions{gap:4px}.nexus-icon-btn{min-width:34px;width:35px;height:31px;gap:3px;padding:4px}.nexus-icon-btn span{font-size:9px;padding:1px 3px}
.nexus-header-inner{height:65px;padding-left:12px;padding-right:12px;gap:5px}.nexus-brand{gap:8px;min-width:0}.nexus-brand-icon{width:38px;height:38px;border-radius:11px}.nexus-brand-icon svg{width:23px;height:23px}.nexus-brand-line{gap:5px}.nexus-brand-line strong{font-size:17px}.nexus-brand-line small{display:none}.nexus-brand-subtitle{font-size:8px;letter-spacing:.035em}.nexus-consultation{display:none}.nexus-menu-toggle{width:38px;height:38px;padding:8px}
/* Prevent viewport overflows from the upstream Gemini canvas at 360-430px */
body{overflow-x:hidden}.max-w-\[1440px\]{min-width:0}.bento-card{min-width:0}.nexus-topbar-inner,.nexus-header-inner{max-width:100%}
}
@media(max-width:400px){.nexus-brand-line strong{font-size:16px}.nexus-brand-subtitle{font-size:7.5px}.nexus-topbar-credit{font-size:9px}.nexus-theme-btn{font-size:9px}}
