/* Orbit / visual layer. The data surfaces stay readable above the atmospheric layer. */
:root{--nx-accent:#e4e8ef;--nx-surface:rgba(12,18,32,.86);font-size:16px}
html[data-nx-size=small]{font-size:14.4px}html[data-nx-size=large]{font-size:18.4px}html[data-nx-size=extra]{font-size:20.8px}
html[data-theme=space]{--bg:#090d17;--paper:#151e30;--ink:#edf1fa;--muted:#aab9d1;--line:#34445d;--blue:#e4e8ef;--nx-accent:#e4e8ef;--on-accent:#09131f;--panel-soft:#202e44;--surface:#111b2b;color-scheme:dark}
html[data-theme=light]{--nx-accent:#224d83;--blue:#224d83;--nx-surface:#ffffffed;--bg:#f4f6fa;--paper:#fff;--ink:#17283c;--muted:#53657b;--line:#d0dae7;color-scheme:light}
#universe{display:block!important;background-size:cover;background-position:65% center;opacity:1}
#universe canvas{opacity:.72;mix-blend-mode:screen}
#universe:after{background:linear-gradient(90deg,rgba(4,8,17,.86),rgba(4,8,17,.58) 48%,rgba(4,8,17,.22)),linear-gradient(0deg,#080c17c9,transparent 75%)}
html[data-nx-background=market] #universe{background:radial-gradient(ellipse at 85% 25%,#16343c,#0a111b 65%)}
html[data-nx-background=market] #universe canvas{opacity:.82;mix-blend-mode:normal}
html[data-nx-background=plain] #universe,html[data-theme=light] #universe{display:none!important}
html[data-theme=space] .top,html[data-theme=space] .rail{background:rgba(8,13,24,.92)!important;backdrop-filter:blur(16px)!important}
html[data-theme=space] main,html[data-theme=space] .shell,html[data-theme=space] #view{background:transparent!important}
.top{border-bottom-color:var(--line)}.rail{border-right-color:var(--line)}
.brand svg{color:var(--nx-accent)}.nav-link.active{box-shadow:inset 2px 0 var(--nx-accent);background:#e3e8f015!important}.nav-link:hover{background:#e3e8f012!important}
.nx-conversation{max-width:850px;padding-top:clamp(32px,7vh,70px)}
.nx-intro{position:relative;margin-bottom:24px}.nx-kicker{font-size:.68rem;letter-spacing:.15em}.nx-live-dot{box-shadow:0 0 14px var(--nx-accent)}
.nx-intro h1{font-size:clamp(2.4rem,5.7vw,4.8rem);letter-spacing:-.065em;line-height:1.02;margin:18px 0 12px;font-weight:500;text-shadow:0 4px 32px #0006}.nx-intro h1 em{color:var(--nx-accent)}.nx-intro p{font-size:1.03rem;line-height:1.45}
.nx-prompt{background:var(--nx-surface);border-color:#8eafdb55;backdrop-filter:blur(14px);border-radius:18px;box-shadow:0 15px 55px #0003}.nx-prompt textarea{font:1.0625rem/1.5 Arial!important;min-height:58px}.nx-send{background:var(--nx-accent);color:var(--on-accent)}
.nx-launch{margin-top:24px}.nx-section-head{padding-bottom:10px}.nx-section-head h2{font-size:1.3rem}.nx-section-head span{font-size:.75rem}
.nx-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px;margin-top:10px}.nx-tools>a{display:grid;grid-template-columns:24px minmax(0,1fr) 16px;align-items:center;gap:10px;min-height:64px;padding:10px 12px;border:1px solid #96b6e226;border-radius:9px;background:#101827a6;backdrop-filter:blur(8px);transition:background .18s,border-color .18s,transform .18s}.nx-tools>a:hover{transform:translateY(-2px);background:#26394ac9;border-color:#a7c7f68c}.nx-tools>a>span{min-width:0}.nx-tools strong{font-size:.94rem;line-height:1.2}.nx-tools small{font-size:.72rem;line-height:1.3}.nx-tools>a svg:last-child{width:14px;opacity:.65}.nx-tools>a.nx-unavailable{opacity:.72}.nx-tools>a.nx-unavailable small{color:var(--muted)}
.nx-message.user,.nx-answer:not(pre),pre.nx-answer{background:var(--nx-surface);border-radius:12px}.nx-message.assistant .nx-answer{padding:15px 18px}.nx-answer{font-size:1rem!important;line-height:1.75}.nx-answer pre,pre.nx-answer{font-size:.875rem!important}.nx-message.user .nx-answer{background:none}.nx-slide{background:var(--paper)}
.nx-all{font-size:.83rem}.next-settings{background:var(--bg);border-color:var(--line)}.pref-nav button[aria-current]{box-shadow:inset 2px 0 var(--nx-accent)}.pref-panel h3{font-size:1.3rem}.pref-row strong{font-size:.9rem}.pref-row small{font-size:.77rem;line-height:1.4}.pref-row select{font-size:.84rem}.pref-row select:focus-visible{outline-offset:2px}.pref-row>span{min-width:0}.pref-row{min-height:66px}.pref-row input[role=switch]:checked:after{background:var(--on-accent)}
html[data-nx-density=compact] .nx-tools>a{min-height:49px;padding-block:7px}html[data-nx-density=compact] .pref-row{padding-block:8px;min-height:54px}html[data-nx-density=compact] .nx-conversation{padding-top:26px}html[data-nx-density=compact] .nav-link{min-height:40px}
html[data-theme=light] .nx-tools>a{background:#ffffffbb;border-color:var(--line)}html[data-theme=light] .nx-intro h1{text-shadow:none}html[data-theme=light] .nx-tools>a:hover{background:#e2ebf7}.nx-answer-actions button{background:var(--paper);color:var(--ink)}
#nxBoot{position:fixed;z-index:99999;inset:0;display:grid;place-items:center;overflow:hidden;background:#080d19;color:#f0f5ff;isolation:isolate}#nxBoot[hidden]{display:none!important}.boot-grid{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 40%,#263b62a3,transparent 60%),radial-gradient(circle,#a9c7ff99 0.75px,transparent 1px);background-size:auto,47px 47px;opacity:.8;mask-image:radial-gradient(ellipse,#000,transparent 80%);animation:boot-drift 2.2s linear both}.boot-center{display:flex;flex-direction:column;align-items:center;gap:14px;z-index:1}.boot-overline{font: .65rem var(--mono);letter-spacing:.25em;color:#adc5ec}.boot-center>strong{font-size:clamp(2.1rem,6vw,4.6rem);font-weight:600;letter-spacing:-.075em;animation:boot-type .55s .3s both}.boot-caption{font-size:.8rem;color:#a4b6d1;animation:boot-type .5s .5s both}.boot-pet{height:82px;width:82px;animation:boot-flight .85s cubic-bezier(.18,.78,.25,1) both;filter:drop-shadow(0 10px 22px #91c7ff75)}.boot-pet svg{width:100%;height:100%}.boot-track{width:150px;height:2px;background:#334765;overflow:hidden;margin-top:12px}.boot-track i{display:block;height:100%;background:#c0dbff;transform-origin:left;animation:boot-load 1s linear both}#nxBoot.leaving{animation:boot-out .25s ease-out both}
@keyframes boot-flight{0%{transform:translate(-65vw,30vh) rotate(-25deg) scale(.45);opacity:0}70%{transform:translate(12px,-12px) rotate(8deg) scale(1.1);opacity:1}100%{transform:translate(0,0) rotate(0) scale(1);opacity:1}}@keyframes boot-type{from{transform:translateY(7px);opacity:0}to{transform:none;opacity:1}}@keyframes boot-load{from{transform:scaleX(.05)}to{transform:scaleX(1)}}@keyframes boot-drift{from{transform:scale(1)}to{transform:scale(1.15)}}@keyframes boot-out{to{opacity:0;visibility:hidden}}
@media(max-width:740px){main{padding:0 15px!important}.nx-conversation{padding-top:25px}.nx-intro h1{font-size:clamp(2.35rem,10vw,3.6rem);margin:14px 0 10px}.nx-intro{margin-bottom:18px}.nx-tools{gap:6px;grid-template-columns:repeat(2,minmax(0,1fr))}.nx-tools>a{grid-template-columns:18px minmax(0,1fr);gap:7px;min-height:66px;padding:9px 8px}.nx-tools>a>svg:last-child{display:none}.nx-tools small{font-size:.68rem}.nx-tools strong{font-size:.86rem}.nx-launch{margin-top:20px}.nx-prompt textarea{font-size:1rem!important}.nx-caption{font-size:.66rem}.nx-tools>a>svg:first-child{width:19px}.nx-model{font-size:.67rem}.nx-intro p{font-size:.9rem}.nx-message.assistant .nx-answer{padding:12px}.pref-row{gap:9px}.pref-panel{padding:12px}.pref-row select{max-width:47%}.pref-nav{scrollbar-width:thin}.companion{bottom:10px;right:9px}.nx-conversation{padding-bottom:65px}#universe{background-position:66% center}#universe:after{background:linear-gradient(180deg,#080c1750,#080c17bb 75%),linear-gradient(90deg,#080c1785,transparent)}html[data-nx-size=extra] .nx-tools{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){#nxBoot{display:none!important}}@media print{#universe,#nxBoot{display:none!important}}
/* Final visual polish and accessible mobile preferences. */
#universe:after{background:linear-gradient(90deg,#040811bb,#04081166 48%,#04081113),linear-gradient(0deg,#080c17a0,transparent 75%)}
.next-settings[open]{animation:nxmodal .18s ease-out both!important;opacity:1}.next-settings .dialog-head{position:sticky;top:0;background:var(--bg);margin:0;z-index:3;padding:10px 16px}.next-settings-body{min-height:0}.pref-nav{background:var(--bg)}.pref-panel{min-width:0}.avatar-mark{background:var(--nx-accent)!important;color:var(--on-accent)!important}.rail-profile b{color:var(--nx-accent)!important}.nx-answer::selection,::selection{background:#bad6ff;color:#09131f}.companion>button{background:var(--paper);border-color:var(--line)}.nx-intro h1{font-weight:600}.nx-intro h1 em{font-weight:500}
@media(max-width:740px){#universe:after{background:linear-gradient(180deg,#080c1733,#080c1788 90%),linear-gradient(90deg,#080c1755,transparent)}.next-settings{max-height:90dvh}.pref-nav{position:sticky;top:65px;z-index:2;min-height:56px}.next-settings .dialog-head{min-height:65px}.pref-panel{padding:12px 14px}.pref-row select{min-width:85px}.nx-tools>a{min-height:64px}.companion{bottom:8px;right:8px}.nx-all{padding-right:60px}}
/* 0.9 / monochrome interface, profile and launch transition */
html[data-theme=space]{--nx-accent:#e4e8ef;--blue:#e4e8ef;--on-accent:#111319;--nx-surface:rgba(19,22,29,.94);--paper:#181c24;--ink:#f0f2f6;--muted:#a5aab5;--line:#363b46;--panel-soft:#242933;--surface:#191d25}
html[data-theme=space] .primary,html[data-theme=space] .nx-send{background:#e4e8ef!important;color:#12151b!important;border-color:#e4e8ef!important}html[data-theme=space] .primary:hover,html[data-theme=space] .nx-send:hover{background:#fff!important}html[data-theme=space] input[type=checkbox],html[data-theme=space] input[type=radio]{accent-color:#bfc7d5}.brand svg{color:var(--ink)}.nx-intro h1 em{color:#b7c4d6}html[data-theme=light] .nx-intro h1 em{color:#345678}
#accountDialog{width:min(440px,calc(100% - 28px));padding:0;border-radius:22px;background:var(--paper);border:1px solid var(--line);box-shadow:0 25px 100px #0006;max-height:90dvh;overflow:auto;color:var(--ink)}#accountDialog .dialog-head{padding:14px 20px;margin:0;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--paper);z-index:2}#accountContent{padding:20px 24px 12px}.profile-hero{text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px;margin:4px 0 24px}.profile-hero h2{font-size:1.55rem;line-height:1.2;letter-spacing:-.04em;margin:8px 0 0}.profile-hero p{font-size:.84rem;color:var(--muted);margin:0;overflow-wrap:anywhere}.profile-avatar-wrap{position:relative;display:block;cursor:pointer;width:80px;height:80px}.profile-avatar{width:80px;height:80px;border-radius:50%;background:linear-gradient(140deg,#525d70,#222a38);color:#fff;display:grid;place-items:center;font-size:2rem;font-weight:500;overflow:hidden}.profile-avatar img,.avatar-mark img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.avatar-mark{overflow:hidden}.profile-camera{position:absolute;right:0;bottom:0;width:29px;height:29px;background:#e5e8ef;color:#151922;border-radius:50%;display:grid;place-items:center;border:2px solid var(--paper)}.profile-camera svg{width:15px;height:15px}.profile-avatar-wrap input,.nx-attach input{position:absolute;inset:0;opacity:0;width:100%!important;height:100%!important;cursor:pointer;padding:0!important;min-height:0!important}.profile-avatar-wrap:focus-within,.nx-attach:focus-within{outline:2px solid var(--nx-accent);outline-offset:3px}.profile-block{display:grid;gap:10px;border-top:1px solid var(--line);padding:18px 0}.profile-detail{display:flex;justify-content:space-between;font-size:.9rem}.profile-detail span,.profile-note{color:var(--muted)}.profile-note{font-size:.83rem;line-height:1.55;margin:0}.profile-block form{display:grid;gap:9px}.profile-block label{font-size:.8rem;color:var(--muted)}.profile-block input:not([type=file]){width:100%;min-height:46px;font-size:1rem;border-radius:10px;padding:10px 12px}.profile-block .primary,.profile-block .secondary,.profile-footer button{min-height:44px;border-radius:10px;text-align:center}.profile-tabs{display:flex;padding:3px;border-radius:10px;background:var(--panel-soft);gap:3px}.profile-tabs button{flex:1;border:0;background:none;color:var(--muted);min-height:40px;border-radius:8px}.profile-tabs button[aria-pressed=true]{background:var(--paper);color:var(--ink);box-shadow:0 1px 4px #0002}.profile-link{border:none;background:transparent;color:var(--muted);min-height:38px;text-decoration:underline;text-underline-offset:4px;font-size:.8rem}.profile-footer{display:flex;gap:8px;border-top:1px solid var(--line);padding-top:14px}.profile-footer button{flex:1}.profile-hero [hidden]{display:none!important}
.nx-attach{position:relative;width:44px;height:44px;display:grid;place-items:center;flex:none;border-radius:50%;border:1px solid var(--line);color:var(--muted);cursor:pointer;margin:0}.nx-attach:hover{color:var(--ink);background:var(--panel-soft)}.nx-attach svg{width:21px;height:21px}.nx-attachment{display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--panel-soft);margin:4px 10px;padding:4px 10px;border-radius:8px;font-size:.8rem}.nx-attachment[hidden]{display:none}.nx-attachment span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nx-attachment-remove{border:0;background:none;color:var(--ink);width:36px;height:36px}.nx-promptbar{gap:7px}.nx-model{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Launch: arrival, wordmark reveal, upward thrust, split reveal. */
#nxBoot{background:transparent;pointer-events:auto;isolation:isolate}#nxBoot::before,#nxBoot::after{content:'';position:absolute;inset:0;background:#0b0e15;z-index:-1}#nxBoot::before{clip-path:inset(0 0 50% 0)}#nxBoot::after{clip-path:inset(50% 0 0 0)}.boot-grid{z-index:0;background:radial-gradient(ellipse at 50% 45%,#45577138,transparent 62%),repeating-linear-gradient(90deg,#9db0cd13 0 1px,transparent 1px 55px),repeating-linear-gradient(0deg,#9db0cd13 0 1px,transparent 1px 55px)}.boot-center{gap:12px}.boot-center>strong{font-weight:500;letter-spacing:.1em;font-size:clamp(1.8rem,5.6vw,4rem);animation:boot-type .65s .65s both}.boot-overline,.boot-track{display:none}.boot-caption{animation:boot-type .55s 1s both}.boot-pet{position:relative;animation:nx-rocket-flight 2.45s cubic-bezier(.22,.72,.24,1) both;filter:drop-shadow(0 7px 20px #b9d4ff44)}.boot-pet:after{content:'';position:absolute;top:76%;left:37%;width:26%;height:66%;border-radius:60% 60% 85% 85%;background:linear-gradient(#fff9d9,#ffc76c 25%,#f97b31 58%,transparent);filter:blur(2px);transform-origin:50% 0;animation:nx-thrust 2.45s both;z-index:-1}.boot-pet svg{width:100%;height:100%}#nxBoot.leaving{animation:none;pointer-events:none}#nxBoot.leaving:before{animation:nx-split-top .65s cubic-bezier(.76,0,.24,1) both}#nxBoot.leaving:after{animation:nx-split-bottom .65s cubic-bezier(.76,0,.24,1) both}#nxBoot.leaving .boot-center,#nxBoot.leaving .boot-grid{animation:boot-out .28s both}@keyframes nx-rocket-flight{0%{transform:translate(-40vw,35vh) rotate(25deg) scale(.5);opacity:0}30%{transform:translate(0,0) rotate(0) scale(1);opacity:1}58%{transform:translateY(-5px)}74%{transform:translateY(5px)}100%{transform:translateY(-75vh) scale(.75);opacity:1}}@keyframes nx-thrust{0%,62%{opacity:0;transform:scaleY(.1)}76%{opacity:1;transform:scaleY(.9)}100%{opacity:1;transform:scaleY(2.3)}}@keyframes nx-split-top{to{transform:translateY(-55%)}}@keyframes nx-split-bottom{to{transform:translateY(55%)}}
@media(max-width:740px){#accountContent{padding:16px 20px 8px}.profile-hero{margin-bottom:15px}.nx-attach{width:40px;height:40px}.nx-model{font-size:.65rem}.nx-promptbar{gap:5px}}@media(prefers-reduced-motion:reduce){#nxBoot{display:none!important}}
