:root{color-scheme:light;--studio-bg: #edf3fb;--studio-bg-elevated: rgba(255, 255, 255, .82);--studio-surface: rgba(255, 255, 255, .86);--studio-border: rgba(148, 163, 184, .28);--studio-text: #0f172a;--studio-muted: #54627a;--studio-primary: #0b57d0;--studio-primary-soft: rgba(11, 87, 208, .12);--studio-glow: rgba(56, 189, 248, .2)}.dark{color-scheme:dark;--studio-bg: #070b13;--studio-bg-elevated: rgba(11, 17, 29, .82);--studio-surface: rgba(10, 16, 27, .86);--studio-border: rgba(148, 163, 184, .2);--studio-text: #e5edf9;--studio-muted: #99a6bd;--studio-primary: #7cb4ff;--studio-primary-soft: rgba(124, 180, 255, .16);--studio-glow: rgba(45, 212, 191, .18)}html,body,#root{min-height:100%}body{margin:0;font-family:Space Grotesk,Manrope,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:var(--studio-text);background-color:var(--studio-bg);background-image:radial-gradient(1000px 560px at 12% -10%,rgba(56,189,248,.18),transparent 60%),radial-gradient(900px 480px at 88% 0%,rgba(45,212,191,.12),transparent 58%),linear-gradient(180deg,#ffffffc2,#f1f7fff0 48%,#eef4fc);background-attachment:fixed}.dark body{background-image:radial-gradient(880px 520px at 8% -8%,rgba(59,130,246,.24),transparent 62%),radial-gradient(780px 440px at 88% 2%,rgba(45,212,191,.16),transparent 60%),linear-gradient(180deg,#060912,#090f1b 44%,#050a14)}body:before{content:"";position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;opacity:.35;background-image:radial-gradient(rgba(148,163,184,.16) .6px,transparent .6px);background-size:1px 1px;z-index:-1}.dark body:before{opacity:.28}#root{transform-origin:center top;transition:filter .22s ease,transform .22s ease}body.modal-open #root{filter:blur(10px) brightness(.9);transform:scale(.995)}*{box-sizing:border-box}code,pre,.font-mono{font-family:IBM Plex Mono,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.studio-surface{background:var(--studio-surface);border:1px solid var(--studio-border);box-shadow:0 16px 38px -30px #0f172a8c;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.studio-elevated{background:var(--studio-bg-elevated);border:1px solid var(--studio-border);box-shadow:0 24px 48px -32px #0f172ab3;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.studio-ring{box-shadow:0 0 0 1px var(--studio-border),0 0 0 4px var(--studio-primary-soft)}.studio-chip{display:inline-flex;align-items:center;gap:.4rem;border-radius:999px;border:1px solid var(--studio-border);background:#fff9;padding:.25rem .65rem;font-size:.72rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--studio-muted)}.dark .studio-chip{background:#0f172a6b}.studio-input{width:100%;border:1px solid var(--studio-border);border-radius:.8rem;padding:.64rem .78rem;font-size:.92rem;background:#ffffffbf;color:var(--studio-text);transition:border-color .2s ease,box-shadow .2s ease,background-color .2s ease}.dark .studio-input{background:#0f172a7a}.studio-input:focus{outline:none;border-color:color-mix(in srgb,var(--studio-primary) 68%,transparent);box-shadow:0 0 0 4px var(--studio-primary-soft)}.studio-button{display:inline-flex;align-items:center;justify-content:center;border-radius:.8rem;border:1px solid transparent;padding:.55rem .95rem;font-size:.86rem;font-weight:600;transition:transform .15s ease,filter .2s ease,border-color .2s ease}.studio-button:active{transform:translateY(1px)}.studio-button-primary{color:#fff;background:linear-gradient(135deg,#0b57d0,#2563eb 54%,#0891b2);box-shadow:0 12px 26px -20px #0b57d0d9}.dark .studio-button-primary{color:#06101f;background:linear-gradient(135deg,#7cb4ff,#6ee7f9)}.studio-button-secondary{color:var(--studio-text);background:#fff9;border-color:var(--studio-border)}.dark .studio-button-secondary{background:#0f172a6b}.studio-button:hover{filter:brightness(1.02)}.studio-gradient-border{position:relative;border-radius:1rem;overflow:hidden}.studio-gradient-border:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:inherit;padding:1px;background:linear-gradient(145deg,#38bdf8a6,#3b82f63d,#0f172a0f);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none}@keyframes fadeIn{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeInDown{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}@keyframes pulseGlow{0%,to{box-shadow:0 0 #38bdf84d}50%{box-shadow:0 0 0 8px #38bdf800}}.animate-fade-in{animation:fadeIn .35s ease both}.animate-fade-in-up{animation:fadeIn .45s ease both}.animate-fade-in-down{animation:fadeInDown .35s ease both}.animate-glow-pulse{animation:pulseGlow 1.9s ease-in-out infinite}.nexus-stage{position:relative;isolation:isolate;display:flex;min-height:640px;height:100%;flex-direction:column;overflow:hidden;border:1px solid rgba(148,163,184,.34);border-radius:1rem;color:#111827;background:radial-gradient(760px 440px at 50% -12%,rgba(59,130,246,.2),transparent 68%),linear-gradient(180deg,#fffffffa,#f6f8fcfa 48%,#eaeff7fa);box-shadow:0 34px 80px -56px #0f172a85}.dark .nexus-stage{color:#f8fafc;border-color:#94a3b829;background:radial-gradient(760px 440px at 50% -12%,rgba(96,165,250,.16),transparent 68%),linear-gradient(180deg,#111419,#0d1116 48%,#090d10);box-shadow:0 34px 90px -54px #000000e6}.nexus-stage:before,.nexus-stage:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:-1}.nexus-stage:before{background:linear-gradient(90deg,transparent 0%,rgba(148,163,184,.08) 49.8%,rgba(148,163,184,.16) 50%,rgba(148,163,184,.08) 50.2%,transparent 100%),linear-gradient(180deg,rgba(255,255,255,.46),transparent 34%);opacity:.72}.dark .nexus-stage:before{background:linear-gradient(90deg,transparent 0%,rgba(148,163,184,.04) 49.8%,rgba(148,163,184,.1) 50%,rgba(148,163,184,.04) 50.2%,transparent 100%),linear-gradient(180deg,rgba(255,255,255,.05),transparent 36%);opacity:1}.nexus-stage:after{background-image:linear-gradient(rgba(148,163,184,.08) 1px,transparent 1px);background-size:100% 96px;opacity:.28}.dark .nexus-stage:after{opacity:.11}.nexus-topbar{position:absolute;top:.9rem;left:.9rem;right:.9rem;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:1rem}.nexus-top-id,.nexus-new-chat{display:inline-flex;align-items:center;gap:.55rem;min-height:2rem;border:1px solid rgba(148,163,184,.28);border-radius:.7rem;background:#ffffffa3;color:#334155eb;box-shadow:0 14px 36px -30px #0f172ae6;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.nexus-top-id{padding:.36rem .68rem;font-size:.78rem;font-weight:700}.dark .nexus-top-id,.dark .nexus-new-chat{border-color:#ffffff1a;background:#1f232aa8;color:#f1f5f9e6}.nexus-panel-glyph{position:relative;width:.9rem;height:.9rem;border:1px solid currentColor;border-radius:.32rem;opacity:.72}.nexus-panel-glyph:before{content:"";position:absolute;top:.16rem;bottom:.16rem;left:.34rem;border-left:1px solid currentColor;opacity:.58}.nexus-new-chat{padding:.42rem .78rem;font-size:.76rem;font-weight:700;transition:border-color .18s ease,background-color .18s ease,transform .18s ease}.nexus-new-chat:hover{border-color:#3b82f652;transform:translateY(-1px)}.nexus-new-chat:disabled{cursor:not-allowed;opacity:.55;transform:none}.nexus-main{min-height:0;flex:1;overflow-y:auto}.nexus-main-empty{display:flex;align-items:center;justify-content:center;padding:6.25rem 1.25rem 4rem}.nexus-hero{display:flex;width:min(100%,640px);flex-direction:column;align-items:center;text-align:center}.nexus-hero-mark{display:flex;width:4rem;height:4rem;align-items:center;justify-content:center;border:1px solid rgba(148,163,184,.22);border-radius:1.15rem;background:linear-gradient(145deg,#ffffffeb,#e2e8f0c2),radial-gradient(circle at 30% 20%,rgba(59,130,246,.18),transparent 56%);box-shadow:0 24px 60px -34px #0f172ab3}.dark .nexus-hero-mark{border-color:#ffffff1a;background:linear-gradient(145deg,#2d3139f0,#1c1f26f0),radial-gradient(circle at 30% 20%,rgba(96,165,250,.22),transparent 58%);box-shadow:0 24px 60px -34px #000000f2}.nexus-hero-mark span{font-size:1.45rem;font-weight:800}.nexus-hero-copy{margin-top:1.25rem}.nexus-hero-copy p{margin:0;color:#475569cc;font-size:1.38rem;font-weight:600}.dark .nexus-hero-copy p{color:#cbd5e1bd}.nexus-hero-copy h2{margin:.08rem 0 0;color:#111827;font-size:1.78rem;font-weight:700;line-height:1.18}.dark .nexus-hero-copy h2{color:#f8fafc}.nexus-hero-copy>span{display:block;margin-top:.8rem;color:#64748bc7;font-size:.84rem;font-weight:600}.dark .nexus-hero-copy>span{color:#94a3b8c7}.nexus-composer{width:100%}.nexus-composer-hero{margin-top:4.5rem}.nexus-composer-footer{width:min(100%,760px);margin:0 auto}.nexus-composer-rail{display:flex;min-height:2.45rem;align-items:center;justify-content:space-between;gap:.75rem;border:1px solid rgba(148,163,184,.2);border-bottom:0;border-radius:1rem 1rem 0 0;padding:.58rem .82rem;background:#ffffff75;color:#475569b8;font-size:.73rem;font-weight:700;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.dark .nexus-composer-rail{border-color:#ffffff14;background:#16191f99;color:#cbd5e194}.nexus-active-signal{display:inline-flex;align-items:center;gap:.48rem;white-space:nowrap}.nexus-active-signal span{width:.42rem;height:.42rem;border-radius:999px;background:#22c55e;box-shadow:0 0 0 3px #22c55e1f}.nexus-input-row{display:flex;align-items:flex-end;gap:.55rem;min-height:3.45rem;border:1px solid rgba(148,163,184,.24);border-radius:0 0 1rem 1rem;padding:.42rem;background:#ffffffb3;box-shadow:inset 0 1px #ffffffad,0 24px 70px -48px #0f172ad1;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}.dark .nexus-input-row{border-color:#ffffff17;background:#191c23bd;box-shadow:inset 0 1px #ffffff0f,0 24px 70px -48px #000}.nexus-input-action,.nexus-send-button{display:inline-flex;width:2.38rem;height:2.38rem;flex:0 0 auto;align-items:center;justify-content:center;border:1px solid rgba(148,163,184,.2);border-radius:.78rem;background:#ffffffb8;color:#334155e6;font-size:1.18rem;transition:border-color .18s ease,background-color .18s ease,transform .18s ease}.dark .nexus-input-action,.dark .nexus-send-button{border-color:#ffffff14;background:#ffffff0a;color:#e2e8f0db}.nexus-input-action:hover,.nexus-send-button:hover{border-color:#3b82f657;transform:translateY(-1px)}.nexus-send-button:disabled{cursor:not-allowed;opacity:.44;transform:none}.nexus-textarea{width:100%;max-height:8.5rem;min-height:2.38rem;resize:none;border:0;background:transparent;color:#0f172a;font:inherit;font-size:.9rem;line-height:1.5;outline:0;padding:.58rem .15rem}.dark .nexus-textarea{color:#f8fafc}.nexus-textarea::placeholder{color:#64748bc7}.dark .nexus-textarea::placeholder{color:#94a3b8b8}.nexus-send-wave{display:inline-flex;align-items:center;gap:.12rem}.nexus-send-wave span{width:.12rem;border-radius:999px;background:currentColor}.nexus-send-wave span:nth-child(1){height:.5rem}.nexus-send-wave span:nth-child(2){height:.82rem}.nexus-send-wave span:nth-child(3){height:.38rem}.nexus-prompt-row{display:flex;flex-wrap:wrap;justify-content:center;gap:.6rem;margin-top:.95rem}.nexus-prompt-chip{min-height:2rem;max-width:100%;border:1px solid rgba(148,163,184,.2);border-radius:.72rem;padding:.42rem .7rem;background:#ffffff6b;color:#334155e0;font-size:.76rem;font-weight:700;transition:border-color .18s ease,background-color .18s ease,transform .18s ease;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.dark .nexus-prompt-chip{border-color:#ffffff14;background:#ffffff08;color:#e2e8f0d1}.nexus-prompt-chip:hover{border-color:#3b82f652;transform:translateY(-1px)}.nexus-prompt-chip:disabled{cursor:not-allowed;opacity:.5;transform:none}.nexus-main-chat{padding:5.5rem 1.25rem 1.5rem}.nexus-thread{display:flex;width:min(100%,820px);min-height:100%;flex-direction:column;gap:1.2rem;margin:0 auto}.nexus-message{display:flex;gap:.75rem}.nexus-message-user{justify-content:flex-end}.nexus-user-bubble{max-width:min(84%,620px);border:1px solid rgba(15,23,42,.08);border-radius:1rem;padding:.78rem .95rem;background:#111827;color:#fff;box-shadow:0 18px 46px -34px #0f172abd;font-size:.9rem;line-height:1.62}.dark .nexus-user-bubble{border-color:#ffffff17;background:#ffffffeb;color:#0f172a}.nexus-user-bubble p{margin:.45rem 0 0;text-align:right;color:#ffffff8f;font-size:.68rem;line-height:1}.dark .nexus-user-bubble p{color:#0f172a85}.nexus-message-assistant{align-items:flex-start}.nexus-message-mark{display:flex;width:2.2rem;height:2.2rem;flex:0 0 auto;align-items:center;justify-content:center;border:1px solid rgba(148,163,184,.24);border-radius:.72rem;background:#ffffff9e;color:#0f172ac7;font-size:.78rem;font-weight:800;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.dark .nexus-message-mark{border-color:#ffffff14;background:#ffffff0d;color:#f1f5f9e0}.nexus-assistant-body{min-width:0;flex:1}.nexus-assistant-card,.nexus-thinking{border:1px solid rgba(148,163,184,.22);border-radius:1rem;background:#ffffff9e;color:#0f172ae6;box-shadow:0 24px 60px -48px #0f172ab8;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.nexus-assistant-card{padding:1rem;font-size:.9rem;line-height:1.7}.dark .nexus-assistant-card,.dark .nexus-thinking{border-color:#ffffff14;background:#ffffff0b;color:#f1f5f9e6;box-shadow:0 24px 60px -48px #000}.nexus-message-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.42rem;margin-top:.56rem;color:#64748bbd;font-size:.68rem;font-weight:700}.dark .nexus-message-actions{color:#94a3b8c7}.nexus-message-actions button{border:1px solid rgba(148,163,184,.2);border-radius:999px;padding:.25rem .56rem;background:#ffffff61;color:inherit;transition:border-color .18s ease,background-color .18s ease}.dark .nexus-message-actions button{border-color:#ffffff14;background:#ffffff08}.nexus-message-actions button:hover,.nexus-message-actions button.is-selected{border-color:#22c55e57;background:#22c55e1a;color:#047857}.dark .nexus-message-actions button:hover,.dark .nexus-message-actions button.is-selected{color:#86efac}.nexus-message-actions button.is-warning{border-color:#f59e0b61;background:#f59e0b1a;color:#b45309}.dark .nexus-message-actions button.is-warning{color:#fcd34d}.nexus-thinking{display:inline-flex;width:fit-content;align-items:center;gap:.68rem;padding:.78rem .95rem;color:#475569d1;font-size:.86rem;font-weight:700}.dark .nexus-thinking{color:#cbd5e1c7}.nexus-thinking-spinner{width:.86rem;height:.86rem;border:2px solid rgba(148,163,184,.35);border-top-color:#3b82f6e6;border-radius:999px;animation:spin .8s linear infinite}.nexus-footer{padding:.75rem 1.25rem 1.25rem}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:640px){.nexus-stage{min-height:680px;border-radius:.9rem}.nexus-main-empty{padding:5.5rem .9rem 2.5rem}.nexus-hero-copy p{font-size:1.12rem}.nexus-hero-copy h2{font-size:1.42rem}.nexus-composer-hero{margin-top:3rem}.nexus-composer-rail{align-items:flex-start;flex-direction:column;gap:.3rem}.nexus-prompt-row{justify-content:flex-start}.nexus-main-chat{padding:5.1rem .85rem 1rem}.nexus-message{gap:.55rem}.nexus-message-mark{width:1.9rem;height:1.9rem}.nexus-user-bubble{max-width:88%}.nexus-footer{padding:.65rem .85rem 1rem}}
