:root {
  color-scheme: dark;
  --bg: #07090d;
  --bg-2: #0a0d13;
  --surface: #0f131b;
  --surface-2: #151a24;
  --surface-3: #1b2230;
  --surface-4: #232c3a;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .13);
  --text: #f6f7fb;
  --muted: #9ba5b5;
  --subtle: #818b9b;
  --accent: #7b78ff;
  --accent-2: #64d7ff;
  --accent-3: #a68cff;
  --success: #6fe0b2;
  --warning: #f3c36e;
  --danger: #ff8897;
  --shadow: 0 30px 100px rgba(0, 0, 0, .46);
  --shadow-soft: 0 18px 54px rgba(0, 0, 0, .30);
  --sidebar: 268px;
  --topbar: 62px;
  --chat: 920px;
  --drawer: 405px;
  --content-gutter: clamp(14px, 2.2vw, 28px);
  --ease: cubic-bezier(.2, .78, .2, 1);
  --z-content: 10;
  --z-composer: 22;
  --z-sidebar-backdrop: 49;
  --z-sidebar: 50;
  --z-popover: 60;
  --z-drawer: 70;
  --z-modal-backdrop: 79;
  --z-modal: 80;
  --z-command: 90;
  --z-toast: 100;
  --visual-viewport-height: 100dvh;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; overscroll-behavior: none; }
html { font-size: 16px; }
body {
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font: 14.5px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button { border: 0; background: transparent; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid rgba(123, 120, 255, .82); outline-offset: 2px; }
svg { display: block; }
[hidden], .hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.icon-slot { display: inline-grid; place-items: center; flex: 0 0 auto; }
.icon-slot svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; left: 12px; top: 12px; z-index: 110; transform: translateY(-160%); padding: 10px 13px; border-radius: 10px; background: #fff; color: var(--bg); font-weight: 700; text-decoration: none; transition: transform .2s ease; }
.skip-link:focus { transform: none; }

.ambient { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; background: radial-gradient(circle at 52% -14%, rgba(123,120,255,.11), transparent 35%), radial-gradient(circle at 86% 18%, rgba(100,215,255,.045), transparent 23%), radial-gradient(circle at 15% 78%, rgba(166,140,255,.035), transparent 28%); }
.ambient::before, .ambient::after { content: ""; position: absolute; width: min(62vw, 900px); height: min(62vw, 900px); border-radius: 50%; filter: blur(90px); opacity: .14; }
.ambient::before { left: -22vw; top: -30vw; background: radial-gradient(circle, rgba(123,120,255,.45), transparent 68%); animation: ambient-one 22s ease-in-out infinite alternate; }
.ambient::after { right: -28vw; bottom: -35vw; background: radial-gradient(circle, rgba(100,215,255,.38), transparent 68%); animation: ambient-two 26s ease-in-out infinite alternate; }
.noise { position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .045; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E"); }
@keyframes ambient-one { to { transform: translate(18vw, 12vw) scale(1.12); } }
@keyframes ambient-two { to { transform: translate(-16vw, -10vw) scale(.92); } }

.aura-core { --core: 58px; position: relative; width: var(--core); height: var(--core); display: grid; place-items: center; isolation: isolate; flex: 0 0 auto; }
.aura-core.big { --core: 72px; }
.aura-core.mini { --core: 34px; }
.aura-halo { position: absolute; inset: -30%; border-radius: 44%; background: radial-gradient(circle at 45% 40%, rgba(131,154,255,.35), transparent 38%), radial-gradient(circle at 65% 68%, rgba(100,215,255,.16), transparent 46%); filter: blur(18px); opacity: .78; animation: halo-breath 6.8s ease-in-out infinite; }
.aura-body { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 28%; background: linear-gradient(145deg, rgba(255,255,255,.22), transparent 28%), radial-gradient(circle at 30% 19%, rgba(255,255,255,.25), transparent 24%), linear-gradient(135deg, var(--accent-3), var(--accent) 44%, #4e91fb 73%, var(--accent-2)); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 18px 46px rgba(20,31,87,.46), 0 0 36px rgba(110,130,255,.34), inset 0 1px 0 rgba(255,255,255,.28); animation: aura-float 5.8s ease-in-out infinite; }
.aura-contour { position: absolute; inset: 18%; z-index: 2; border-radius: 39%; border: 1.25px solid rgba(205,229,255,.64); box-shadow: 0 0 18px rgba(168,214,255,.18); }
.aura-orbit { position: absolute; inset: -14%; z-index: 3; border-radius: 50%; animation: orbit 8.2s linear infinite; }
.aura-orbit::before { content: ""; position: absolute; left: 50%; top: 0; width: 5px; height: 5px; border-radius: 50%; transform: translateX(-50%); background: #effcff; box-shadow: 0 0 5px #fff, 0 0 13px rgba(126,231,255,.84); }
.aura-spark { position: absolute; z-index: 4; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.88); }
.aura-spark.s1 { left: 20%; top: 26%; } .aura-spark.s2 { right: 18%; bottom: 23%; } .aura-spark.s3 { right: 28%; top: 17%; }
[data-aura-state="working"] .aura-orbit, [data-aura-state="thinking"] .aura-orbit { animation-duration: 2s; }
[data-aura-state="success"] .aura-body { background: linear-gradient(135deg, #70d6b1, #5ccfba 50%, #98f0d7); }
[data-aura-state="error"] .aura-body { background: linear-gradient(135deg, #d98e76, #f0bd72 56%, #ffd2a0); }
@keyframes aura-float { 50% { transform: translateY(-3px) scale(1.018); } }
@keyframes halo-breath { 50% { opacity: .95; transform: scale(1.08) rotate(4deg); } }
@keyframes orbit { to { transform: rotate(360deg); } }

.boot { position: fixed; inset: 0; z-index: 110; background: var(--bg); display: grid; place-items: center; pointer-events: none; transition: opacity .14s ease; }
.boot.is-hidden { opacity: 0; }
.boot-inner { position: relative; width: 104px; height: 104px; display: grid; place-items: center; }
.boot-a { font-weight: 820; font-size: 66px; color: transparent; background: linear-gradient(135deg, #e7edff, #8da4ff 38%, #6be0ff 68%, #fff); background-clip: text; -webkit-background-clip: text; }
.boot-core { position: absolute; }
.page-backgrounded *, .page-backgrounded *::before, .page-backgrounded *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } }
