:root{--text:#6b6375;--text-h:#08060d;--bg:#fff;--border:#e5e4e7;--code-bg:#f4f3ec;--accent:#aa3bff;--accent-bg:#aa3bff1a;--accent-border:#aa3bff80;--social-bg:#f4f3ec80;--shadow:#0000001a 0 10px 15px -3px, #0000000d 0 4px 6px -2px;--sans:system-ui, "Segoe UI", Roboto, sans-serif;--heading:system-ui, "Segoe UI", Roboto, sans-serif;--mono:ui-monospace, Consolas, monospace;font:18px/145% var(--sans);letter-spacing:.18px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}@media (width<=1024px){:root{font-size:16px}}@media (prefers-color-scheme:dark){:root{--text:#9ca3af;--text-h:#f3f4f6;--bg:#16171d;--border:#2e303a;--code-bg:#1f2028;--accent:#c084fc;--accent-bg:#c084fc26;--accent-border:#c084fc80;--social-bg:#2f303a80;--shadow:#0006 0 10px 15px -3px, #00000040 0 4px 6px -2px}#social .button-icon{filter:invert()brightness(2)}}body{margin:0}#root{text-align:center;border-inline:1px solid var(--border);box-sizing:border-box;flex-direction:column;width:1126px;max-width:100%;min-height:100svh;margin:0 auto;display:flex}h1,h2{font-family:var(--heading);color:var(--text-h);font-weight:500}h1{letter-spacing:-1.68px;margin:32px 0;font-size:56px}@media (width<=1024px){h1{margin:20px 0;font-size:36px}}h2{letter-spacing:-.24px;margin:0 0 8px;font-size:24px;line-height:118%}@media (width<=1024px){h2{font-size:20px}}p{margin:0}code,.counter{font-family:var(--mono);color:var(--text-h);border-radius:4px;display:inline-flex}code{background:var(--code-bg);padding:4px 8px;font-size:15px;line-height:135%}#root{text-align:left;flex-direction:column;max-width:100%;min-height:100dvh;margin:0 auto;display:flex;border:none!important;width:100%!important}.chat-app{color:#e8eaef;background:linear-gradient(165deg,#0c0e14 0%,#12151f 45%,#0a0c12 100%);flex-direction:column;flex:1;width:100%;max-width:520px;min-height:100dvh;margin:0 auto;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;display:flex}.chat-header{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#00000040;border-bottom:1px solid #ffffff0f;justify-content:space-between;align-items:center;padding:14px 16px 12px;display:flex}.chat-header__brand{align-items:center;gap:12px;display:flex}.chat-header__avatar{background:linear-gradient(135deg,#6366f1 0%,#8b5cf6 50%,#ec4899 100%);border-radius:14px;justify-content:center;align-items:center;width:44px;height:44px;font-size:1.35rem;display:flex;box-shadow:0 4px 20px #6366f159}.chat-header__title{letter-spacing:-.02em;color:#f4f4f5;margin:0;font-size:1.05rem;font-weight:650}.chat-header__subtitle{color:#71717a;margin:2px 0 0;font-size:.72rem}.chat-header__dot{background:#22c55e;border-radius:50%;width:8px;height:8px;box-shadow:0 0 12px #22c55e99}.chat-header__dot--busy{background:#f59e0b;animation:1s ease-in-out infinite pulse;box-shadow:0 0 12px #f59e0b99}@keyframes pulse{50%{opacity:.55}}.chat-messages{-webkit-overflow-scrolling:touch;flex-direction:column;flex:1;gap:12px;padding:16px 14px 8px;display:flex;overflow-y:auto}.bubble-row{width:100%;display:flex}.bubble-row--user{justify-content:flex-end}.bubble-row--assistant{justify-content:flex-start}.bubble{border-radius:18px;max-width:88%;padding:12px 14px;font-size:.92rem;line-height:1.45}.bubble--user{color:#fafafa;background:linear-gradient(135deg,#4f46e5 0%,#7c3aed 100%);border-bottom-right-radius:6px;box-shadow:0 4px 16px #4f46e559}.bubble--assistant{color:#d4d4d8;background:#ffffff0f;border:1px solid #ffffff14;border-bottom-left-radius:6px}.bubble-text{margin:0 0 8px}.bubble-text:last-child{margin-bottom:0}.bubble-status{color:#a1a1aa;margin:0 0 8px;font-size:.82rem}.bubble-status--ok{color:#86efac}.bubble-status--err{color:#fca5a5}.bubble-code-block{margin-top:4px}.bubble-code-label{text-transform:uppercase;letter-spacing:.06em;color:#71717a;margin-bottom:6px;font-size:.65rem;display:block}.bubble-code{color:#c4b5fd;background:#00000059;border:1px solid #ffffff0f;border-radius:10px;margin:0;padding:10px 12px;font-family:ui-monospace,SF Mono,Menlo,monospace;font-size:.78rem;overflow-x:auto}.bubble--typing{align-items:center;gap:5px;padding:14px 18px;display:flex}.bubble--typing span{background:#a78bfa;border-radius:50%;width:6px;height:6px;animation:1.2s ease-in-out infinite bounce}.bubble--typing span:nth-child(2){animation-delay:.15s}.bubble--typing span:nth-child(3){animation-delay:.3s}@keyframes bounce{0%,80%,to{opacity:.5;transform:translateY(0)}40%{opacity:1;transform:translateY(-5px)}}.chat-composer{padding:10px 12px 16px;padding-bottom:max(16px, env(safe-area-inset-bottom));-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#00000059;border-top:1px solid #ffffff0f}.chip-scroll{scrollbar-width:none;-ms-overflow-style:none;gap:8px;margin-bottom:2px;padding-bottom:10px;display:flex;overflow-x:auto}.chip-scroll::-webkit-scrollbar{display:none}.chip{color:#e4e4e7;cursor:pointer;background:#ffffff0d;border:1px solid #ffffff1f;border-radius:999px;flex-shrink:0;padding:8px 14px;font-size:.8rem;transition:background .15s,border-color .15s,transform .1s}.chip:hover:not(:disabled){background:#8b5cf633;border-color:#a78bfa73}.chip:active:not(:disabled){transform:scale(.97)}.chip:disabled{opacity:.45;cursor:not-allowed}.composer-form{align-items:stretch;gap:10px;display:flex}.composer-input{color:#fafafa;background:#0006;border:1px solid #ffffff1a;border-radius:14px;outline:none;flex:1;min-width:0;padding:14px 16px;font-size:.95rem;transition:border-color .2s,box-shadow .2s}.composer-input::placeholder{color:#52525b}.composer-input:focus{border-color:#8b5cf68c;box-shadow:0 0 0 3px #8b5cf626}.composer-input:disabled{opacity:.6}.composer-send{cursor:pointer;color:#fff;background:linear-gradient(135deg,#6366f1,#8b5cf6);border:none;border-radius:14px;padding:0 20px;font-size:.9rem;font-weight:600;transition:opacity .15s,transform .1s;box-shadow:0 4px 14px #6366f166}.composer-send:hover:not(:disabled){opacity:.92}.composer-send:active:not(:disabled){transform:scale(.98)}.composer-send:disabled{opacity:.4;cursor:not-allowed;box-shadow:none}
