.aichat-shell{display:none;position:absolute;inset:0;z-index:80;width:100%;height:100%;overflow:hidden;background:var(--bg-app)}.aichat-shell.show{display:flex}@media (min-width:900px) and (min-height:561px){.aichat-shell{left:var(--desktop-sidebar);top:var(--desktop-topbar);width:auto;height:auto}}@media ((hover:none) or (pointer:coarse)) and (max-width:899px){.aichat-shell{bottom:72px;height:auto}}.aichat-sidebar-backdrop{display:none;position:absolute;inset:0;background:rgba(6,17,31,.45);z-index:39}.aichat-sidebar-backdrop.show{display:block}.aichat-sidebar{position:absolute;top:0;left:0;width:82vw;max-width:320px;height:100%;background:#fff;color:var(--text-main);display:flex;flex-direction:column;border-right:1px solid rgba(6,17,31,.12);z-index:40;transform:translateX(-100%);transition:transform var(--dur-base,280ms) var(--ease-snappy,cubic-bezier(.32,.72,0,1))}.aichat-sidebar.show{transform:translateX(0)}.aichat-sidebar-head{display:flex;align-items:center;gap:10px;padding:16px 14px 14px}.aichat-brand{flex:1;display:flex;align-items:center;gap:9px;min-width:0}.aichat-brand-logo{flex:0 0 auto;width:24px;height:24px;border-radius:7px;object-fit:cover}.aichat-brand-name{font-family:var(--font-display);font-weight:800;font-size:16px;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aichat-sidebar-close{flex:0 0 auto;width:38px;height:38px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;background:rgba(6,17,31,.06);color:var(--text-main);border:none;cursor:pointer}.aichat-sidebar-close .material-symbols-rounded{font-size:20px}.aichat-newchat-btn{margin:2px 14px 12px;display:flex;align-items:center;justify-content:center;gap:8px;padding:12px;border-radius:14px;border:1.5px solid rgba(6,17,31,.14);background:rgba(6,17,31,.04);color:var(--text-main);font-family:var(--font-display);font-weight:700;font-size:13.5px;cursor:pointer;transition:background 120ms}.aichat-newchat-btn:hover{background:rgba(6,17,31,.08)}.aichat-newchat-btn .material-symbols-rounded{font-size:19px;color:var(--accent)}.aichat-session-scroll{flex:1;overflow-y:auto;padding:0 10px 10px;min-height:0}.aichat-session-list{display:flex;flex-direction:column;gap:3px}.aichat-session-item{display:flex;align-items:center;gap:9px;padding:10px 10px;border-radius:12px;cursor:pointer;color:rgba(6,17,31,.68);position:relative}.aichat-session-item:hover{background:rgba(6,17,31,.05)}.aichat-session-item.active{background:rgba(0,91,255,.12);color:var(--accent)}.aichat-session-item .material-symbols-rounded{font-size:18px;flex:0 0 auto;opacity:.8}.aichat-session-title{flex:1;min-width:0;font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aichat-session-del{flex:0 0 auto;width:26px;height:26px;border-radius:8px;border:none;background:0 0;color:rgba(6,17,31,.42);display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .1s,background .1s,color .1s}.aichat-session-item.active .aichat-session-del,.aichat-session-item:hover .aichat-session-del{opacity:1}.aichat-session-del:hover{background:rgba(251,63,92,.14);color:#e0384f}.aichat-session-del .material-symbols-rounded{font-size:16px}.aichat-session-empty{display:none;flex-direction:column;align-items:center;gap:8px;padding:34px 14px;color:rgba(6,17,31,.32);text-align:center}.aichat-session-empty.show{display:flex}.aichat-session-empty .material-symbols-rounded{font-size:28px}.aichat-session-empty span:last-child{font-size:12.5px;font-weight:600}.aichat-sidebar-foot{padding:12px 16px 16px;border-top:1px solid rgba(6,17,31,.1)}.aichat-foot-note{display:flex;align-items:center;gap:7px;color:rgba(6,17,31,.45);font-size:11.5px;font-weight:600}.aichat-foot-note .material-symbols-rounded{font-size:15px}.aichat-main{position:relative;flex:1;min-width:0;display:flex;flex-direction:column;height:100%;background:var(--bg-app)}.aichat-topbar{flex:0 0 auto;height:56px;display:flex;align-items:center;gap:6px;padding:0 10px;background:#fff;border-bottom:1px solid var(--hairline)}.aichat-icon-btn{flex:0 0 auto;width:38px;height:38px;border-radius:12px;border:none;background:rgba(6,17,31,.05);color:var(--text-main);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background .1s}.aichat-icon-btn:hover{background:rgba(6,17,31,.09)}.aichat-icon-btn .material-symbols-rounded{font-size:20px}.aichat-topbar-title-wrap{flex:1;min-width:0;display:flex;align-items:center;gap:8px}.aichat-topbar-logo{flex:0 0 auto;width:22px;height:22px;border-radius:6px;object-fit:cover}.aichat-topbar-title{flex:0 1 auto;min-width:0;max-width:100%;border:none;background:0 0;outline:0;font-family:var(--font-display);font-weight:800;font-size:14.5px;color:var(--text-main);padding:6px 8px;border-radius:8px;text-overflow:ellipsis}.aichat-topbar-title:focus,.aichat-topbar-title:hover{background:rgba(6,17,31,.05)}.aichat-topbar-actions{flex:0 0 auto;display:flex;align-items:center;gap:6px}.aichat-messages{flex:1;overflow-y:auto;overflow-x:hidden;padding:22px 0 10px}.aichat-empty-state{max-width:640px;margin:2vh auto 0;padding:0 16px;display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}.aichat-empty-logo{width:56px;height:56px;border-radius:16px;object-fit:cover;box-shadow:0 6px 18px rgba(6,17,31,.16)}.aichat-empty-title{font-family:var(--font-display);font-size:20px;font-weight:800;color:var(--text-main);letter-spacing:-.01em}.aichat-empty-text{font-size:13.5px;color:var(--text-muted);line-height:1.6;max-width:480px}.aichat-suggestion-grid{margin-top:6px;display:grid;grid-template-columns:1fr;gap:10px;width:100%}.aichat-suggestion-chip{text-align:left;padding:12px 14px;border-radius:14px;border:1.5px solid var(--hairline);background:#fff;color:var(--text-main);font-size:13px;font-weight:600;line-height:1.4;cursor:pointer;transition:border-color 120ms,transform .1s,box-shadow 120ms}.aichat-suggestion-chip:hover{border-color:rgba(0,91,255,.4);box-shadow:0 6px 14px rgba(6,17,31,.08);transform:translateY(-1px)}.aichat-thread{max-width:760px;margin:0 auto;padding:0 14px;display:flex;flex-direction:column;gap:18px}.aichat-msg{display:flex;gap:8px;align-items:flex-start}.aichat-msg-user{justify-content:flex-end}.aichat-msg-bubble{position:relative;max-width:100%;min-width:0}.aichat-msg-user .aichat-msg-bubble{background:var(--accent);color:#fff;border-radius:18px 18px 4px 18px;padding:11px 15px;max-width:88%}.aichat-msg-assistant .aichat-msg-bubble{background:0 0;padding:2px 0 0;max-width:100%;flex:1}.aichat-msg-text{font-size:14px;line-height:1.6;word-wrap:break-word;overflow-wrap:break-word}.aichat-msg-user .aichat-msg-text{white-space:pre-wrap}.aichat-msg-assistant .aichat-msg-text{color:var(--text-main)}.aichat-msg-text p{margin:0 0 10px}.aichat-msg-text p:last-child{margin-bottom:0}.aichat-msg-text ol,.aichat-msg-text ul{margin:0 0 10px;padding-left:22px}.aichat-msg-text li{margin-bottom:4px;line-height:1.55}.aichat-msg-text strong{font-weight:800}.aichat-msg-text a{color:var(--accent);font-weight:700;text-decoration:underline;text-decoration-color:rgba(0,91,255,0.35);word-break:break-word}.aichat-msg-text a:hover{text-decoration-color:var(--accent)}.aichat-msg-user .aichat-msg-text a{color:#fff;text-decoration-color:rgba(255,255,255,0.55)}.aichat-msg-text h1,.aichat-msg-text h2,.aichat-msg-text h3{font-family:var(--font-display);font-weight:800;line-height:1.3;margin:14px 0 8px}.aichat-msg-text h1:first-child,.aichat-msg-text h2:first-child,.aichat-msg-text h3:first-child{margin-top:0}.aichat-msg-text h1{font-size:18px}.aichat-msg-text h2{font-size:16.5px}.aichat-msg-text h3{font-size:15px}.aichat-msg-text code{font-family:ui-monospace,'SF Mono',SFMono-Regular,Consolas,monospace;font-size:12.6px;background:rgba(6,17,31,.07);padding:2px 6px;border-radius:6px}.aichat-msg-user .aichat-msg-text code{background:rgba(255,255,255,.18)}.aichat-msg-text blockquote{margin:0 0 10px;padding:2px 0 2px 12px;border-left:3px solid rgba(0,91,255,.4);color:var(--text-muted)}.aichat-code-block{position:relative;margin:2px 0 12px;border-radius:14px;overflow:hidden;border:1px solid rgba(6,17,31,.12);background:#0d1522}.aichat-code-head{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background:#111c2c;color:rgba(255,255,255,.55);font-size:11.5px;font-weight:700;font-family:ui-monospace,'SF Mono',SFMono-Regular,Consolas,monospace;text-transform:uppercase;letter-spacing:.4px}.aichat-code-copy-btn{display:inline-flex;align-items:center;gap:5px;border:none;background:rgba(255,255,255,.08);color:rgba(255,255,255,.85);font-size:11px;font-weight:700;font-family:var(--font-body);padding:5px 9px;border-radius:8px;cursor:pointer;text-transform:none;letter-spacing:0;transition:background .1s}.aichat-code-copy-btn:hover{background:rgba(255,255,255,.16)}.aichat-code-copy-btn .material-symbols-rounded{font-size:14px}.aichat-code-block pre{margin:0;padding:13px 14px;overflow-x:auto;color:#e8f0ff;font-family:ui-monospace,'SF Mono',SFMono-Regular,Consolas,monospace;font-size:12.6px;line-height:1.55}.aichat-code-block pre code{background:0 0;padding:0}.aichat-msg-error .aichat-msg-bubble{background:rgba(220,38,38,.06)!important;border:1px solid rgba(220,38,38,.22);border-radius:14px;padding:11px 14px}.aichat-msg-error .aichat-msg-text{color:#b42318}.aichat-typing-dots{display:flex;gap:5px;padding:8px 0}.aichat-typing-dots span{width:7px;height:7px;border-radius:50%;background:rgba(6,17,31,.28);animation:aichatTyping 1.1s ease-in-out infinite}.aichat-typing-dots span:nth-child(2){animation-delay:.15s}.aichat-typing-dots span:nth-child(3){animation-delay:.3s}@keyframes aichatTyping{0%,100%,60%{transform:translateY(0);opacity:.5}30%{transform:translateY(-4px);opacity:1}}.aichat-composer-wrap{flex:0 0 auto;padding:10px 12px calc(12px + env(safe-area-inset-bottom));background:linear-gradient(to bottom,rgba(231,244,255,0),var(--bg-app) 40%)}.aichat-composer-bar{max-width:760px;margin:0 auto;display:flex;align-items:flex-end;gap:8px;padding:8px 8px 8px 10px;background:#fff;border:2px solid #06111f;border-radius:20px;box-shadow:inset 0 2px 0 rgba(255,255,255,.6),0 4px 0 rgba(6,17,31,.08),0 12px 26px rgba(6,17,31,.12)}.aichat-composer-input{flex:1;min-width:0;border:none;outline:0;resize:none;background:0 0;font-size:14px;font-family:var(--font-body);color:var(--text-main);line-height:1.5;padding:8px 2px;max-height:160px}.aichat-composer-input::placeholder{color:var(--text-faint)}.aichat-composer-send-btn{flex:0 0 auto;width:38px;height:38px;border-radius:12px;border:none;background:var(--accent);color:#fff;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 3px 0 #00358f;transition:background .1s,transform 80ms,opacity .1s}.aichat-composer-send-btn:disabled{opacity:.4;cursor:not-allowed;box-shadow:none}.aichat-composer-send-btn:not(:disabled):active{transform:translateY(1px);box-shadow:none}.aichat-composer-send-btn.is-stop{background:#06111f;box-shadow:0 3px 0 #000}.aichat-composer-send-btn .material-symbols-rounded{font-size:19px}.aichat-composer-footnote{max-width:760px;margin:7px auto 0;display:flex;align-items:center;justify-content:center;gap:6px;font-size:11px;color:var(--text-faint);text-align:center}.aichat-footnote-sep{opacity:.6}.aichat-toast-wrap{position:absolute;top:12px;left:0;right:0;display:flex;flex-direction:column;align-items:center;gap:8px;z-index:9997;pointer-events:none}.aichat-toast{pointer-events:auto;max-width:min(360px,92%);display:flex;align-items:center;gap:8px;padding:10px 14px;border-radius:14px;background:#06111f;color:#fff;font-size:12.5px;font-weight:600;box-shadow:0 10px 24px rgba(6,17,31,.28);opacity:0;transform:translateY(-8px);transition:opacity 160ms,transform 160ms}.aichat-toast.show{opacity:1;transform:translateY(0)}.aichat-toast.t-error{background:#b42318}.aichat-toast .material-symbols-rounded{font-size:17px;flex:0 0 auto}.aichat-confirm-overlay{display:none;position:absolute;inset:0;z-index:9996;align-items:center;justify-content:center;padding:18px;background:rgba(6,17,31,.45)}.aichat-confirm-overlay.show{display:flex}.aichat-confirm-card{max-width:340px;width:100%;background:#fff;border-radius:20px;border:2px solid #06111f;padding:22px 20px;display:flex;flex-direction:column;gap:6px;box-shadow:inset 0 3px 0 rgba(255,255,255,.6),0 6px 0 rgba(6,17,31,.1),0 18px 34px rgba(6,17,31,.18)}.aichat-confirm-title{font-family:var(--font-display);font-size:16px;font-weight:800;color:var(--text-main)}.aichat-confirm-text{font-size:13px;color:var(--text-muted);line-height:1.5;margin-bottom:12px}.aichat-confirm-actions{display:flex;gap:8px}.aichat-confirm-btn{flex:1;padding:11px;border-radius:12px;border:1.5px solid var(--hairline);background:#fff;color:var(--text-main);font-family:var(--font-display);font-weight:700;font-size:13px;cursor:pointer;transition:background .1s}.aichat-confirm-btn:hover{background:rgba(6,17,31,.05)}.aichat-confirm-btn.is-danger{background:#dc2626;border-color:#dc2626;color:#fff}.aichat-confirm-btn.is-danger:hover{background:#b91c1c}@media (max-width:380px){.aichat-brand-name{font-size:15px}.aichat-empty-title{font-size:17px}.aichat-composer-wrap{padding:8px 10px calc(10px + env(safe-area-inset-bottom))}}@media (max-height:520px) and (orientation:landscape){.aichat-empty-state{margin-top:1vh}.aichat-suggestion-grid{display:none}}.aichat-cost-chip{display:inline-flex;align-items:center;gap:5px;padding:2px 9px 2px 5px;border-radius:999px;background:linear-gradient(180deg,#fff8dd,#ffe28a);border:1.5px solid #06111f;color:#06111f;font-size:10.5px;font-weight:900;line-height:1.4;letter-spacing:.1px;box-shadow:0 1.5px 0 rgba(6,17,31,.14)}.aichat-cost-credit{width:12px;height:12px;flex:0 0 auto;border-radius:50%;background:radial-gradient(circle at 32% 30%,#ffe27a 0,#f5b301 55%,#c98d00 100%);border:1px solid #c98d00;display:grid;place-items:center;box-shadow:inset 0 1px 0 rgba(255,255,255,.55)}.aichat-cost-credit svg{width:7px;height:7px;fill:#7a5300;display:block}@media ((hover:none) or (pointer:coarse)) and (max-width:899px){.aichat-composer-footnote{display:none}}@media (min-width:900px) and (min-height:561px){.aichat-sidebar{position:relative;top:auto;left:auto;width:296px;max-width:296px;flex:0 0 296px;transform:none!important}.aichat-sidebar-backdrop{display:none!important}.aichat-sidebar-close{display:none}#aichatMenuBtn{display:none}#aichatCloseOverlayBtn{display:none}.aichat-topbar-logo{display:none}.aichat-topbar{height:52px;padding:0 18px;background:0 0;border-bottom:none}.aichat-topbar-title{font-size:15px;font-weight:700;padding:6px 6px}.aichat-topbar-title:hover{background:rgba(6,17,31,.05)}.aichat-topbar-title:focus{background:rgba(6,17,31,.06)}.aichat-topbar-actions .aichat-icon-btn{background:0 0;color:var(--text-muted)}.aichat-topbar-actions .aichat-icon-btn:hover{background:rgba(6,17,31,.06);color:var(--text-main)}.aichat-empty-state{max-width:680px;margin-top:6vh}.aichat-empty-logo{width:64px;height:64px}.aichat-empty-title{font-size:22px}.aichat-suggestion-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}