@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap";:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#ededf0;background:#0a0a0b;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--bg: #0a0a0b;--panel: #0e0e10;--panel-2: #18181c;--composer: #141416;--card: #141416;--border: rgba(255,255,255,.08);--border-strong: rgba(255,255,255,.16);--text: #ededf0;--muted: #9b9ba4;--muted-2: #6b6b74;--accent: #f3f3f5;--accent-ink: #0a0a0b;--accent-soft: rgba(255,255,255,.08);--accent-soft-2: rgba(255,255,255,.16);--danger: #e5605f;--ok: #46c771;--shadow-soft: 0 2px 10px rgba(0,0,0,.4);--shadow-card: 0 10px 34px rgba(0,0,0,.5);--shadow-menu: 0 22px 70px rgba(0,0,0,.62)}*,*:before,*:after{box-sizing:border-box}html,body{width:100%;min-width:320px;height:100%;margin:0;padding:0;overflow:hidden;background:var(--bg)}button,input,textarea,select{font:inherit}button{border:0}button:focus-visible,input:focus-visible{outline:2px solid var(--accent-soft-2);outline-offset:2px}textarea:focus-visible{outline:none}::selection{background:#ffffff2e}svg{stroke-linecap:round;stroke-linejoin:round}svg[fill=none]{stroke-width:2}.app-shell{width:100vw;height:100vh;overflow:hidden;color:var(--text);background:linear-gradient(180deg,#0c0c0e,#060607)}.chat-surface{width:100%;height:100%;display:grid;grid-template-columns:auto minmax(0,1fr);background:transparent}.chat-surface.has-side-panel{grid-template-columns:auto 1fr 1fr}.chat-main{position:relative;min-width:0;height:100%;display:grid;grid-template-rows:1fr auto}.chat-main:not(.welcome){border-left:1px solid var(--border)}.page-view{grid-row:1 / -1;min-height:0;overflow:hidden;display:flex;flex-direction:column;padding:34px 42px 42px}.page-view-header{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:22px}.page-view-header h2{margin:0;color:#fff;font-size:28px;line-height:1.1;font-weight:800}.page-view-header p{margin:6px 0 0;color:var(--muted);font-size:13px;font-weight:600}.page-view-content{min-height:0;flex:1;overflow:auto}.history-panel{width:288px;height:100vh;display:flex;flex-direction:column;overflow:hidden;position:relative;background:linear-gradient(180deg,#121215eb,#0c0c0eeb);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);transition:width .35s ease}.history-top{padding:20px 18px 12px;position:relative}.side-brand{display:flex;align-items:center;gap:8px}.side-brand-icon{width:36px;height:36px;border-radius:10px;flex:0 0 auto;object-fit:cover}.side-brand strong{font-size:19px;font-weight:800;letter-spacing:-.02em;line-height:1;background:linear-gradient(180deg,#fff,#b7b7c0);-webkit-background-clip:text;background-clip:text;color:transparent;transition:opacity .2s cubic-bezier(.4,0,.2,1)}.side-toggle-btn{position:absolute;width:28px;height:28px;display:grid;place-items:center;background:transparent;border:none;color:var(--muted-2);cursor:pointer;border-radius:8px;opacity:0;transition:opacity .2s}.side-toggle-btn:hover{background:var(--panel-2);color:#fff}.side-toggle-btn-right{right:18px;top:22px}.history-top:hover .side-toggle-btn-right{opacity:1}.history-panel.collapsed .side-toggle-btn-right{opacity:0;pointer-events:none}.side-toggle-btn-logo{left:18px;top:20px;width:36px;height:36px;border-radius:50%;pointer-events:none;opacity:0}.history-panel.collapsed .side-toggle-btn-logo{pointer-events:auto}.history-panel.collapsed .side-toggle-btn-logo:hover{opacity:1}.side-nav{display:flex;flex-direction:column;gap:2px;padding:0 14px 8px}.side-nav-icon-btn{display:inline-flex;align-items:center;justify-content:flex-start;gap:10px;height:36px;padding:0 14px 0 10px;border-radius:18px;background:transparent;border:none;color:var(--muted);font-size:13px;font-weight:600;cursor:pointer;min-width:0;transition:background .15s,color .15s}.side-nav-icon-btn:hover,.side-nav-icon-btn.active{background:#ffffff14;color:#fff}.side-nav-icon-btn svg{flex-shrink:0;color:currentColor}.side-nav-icon-btn span{display:inline-flex;align-items:center;overflow:hidden;transition:opacity .2s cubic-bezier(.4,0,.2,1),width .2s cubic-bezier(.4,0,.2,1)}.history-section{min-height:0;flex:1;display:grid;grid-template-rows:minmax(0,1fr);padding:2px 14px 14px;transition:opacity .2s cubic-bezier(.4,0,.2,1)}.history-list{min-height:0;overflow-y:auto;padding-right:3px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.16) transparent}.history-group-label{padding:14px 10px 6px;color:var(--muted-2);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em}.history-list>.history-group-label:first-child{padding-top:4px}.history-item{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;height:38px;border-radius:11px;padding:0 8px 0 10px;background:transparent;color:var(--muted);text-align:left;font-size:13px;font-weight:500;cursor:pointer;border:0;transition:background .15s,color .15s}.history-item>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.history-item:hover{background:var(--panel-2);color:#fff}.history-item.selected{background:var(--accent-soft-2);color:#fff}.delete-chat{width:26px;height:26px;display:grid;place-items:center;flex:0 0 auto;border-radius:8px;color:var(--muted-2);opacity:0;background:transparent;cursor:pointer;border:0;transition:opacity .12s,color .12s,background .12s}.history-item:hover .delete-chat,.history-item.selected .delete-chat{opacity:1}.delete-chat:hover{color:var(--danger);background:#e5605f1f}.history-settings{display:grid;gap:9px;padding:0 14px 14px;background:transparent;transition:opacity .2s cubic-bezier(.4,0,.2,1)}.side-profile{padding:8px 14px 14px;border-top:1px solid var(--border);transition:opacity .2s cubic-bezier(.4,0,.2,1)}.side-profile-btn{display:inline-flex;align-items:center;gap:10px;width:100%;height:44px;padding:0 10px;border-radius:18px;background:transparent;border:none;color:var(--muted);font-size:13px;font-weight:600;cursor:pointer;min-width:0;transition:background .15s,color .15s}.side-profile-btn:hover{background:#ffffff14;color:#fff}.side-profile-avatar{width:32px;height:32px;border-radius:50%;overflow:hidden;flex-shrink:0;display:grid;place-items:center;background:var(--panel-2)}.side-profile-avatar img{width:100%;height:100%;object-fit:cover}.side-profile-avatar span{font-size:14px;font-weight:700;color:#fff}.side-profile-avatar svg{width:18px;height:18px;color:var(--muted)}.side-profile-name{display:inline-flex;align-items:center;overflow:hidden;transition:opacity .2s cubic-bezier(.4,0,.2,1),width .2s cubic-bezier(.4,0,.2,1)}.unread-dot{width:8px;height:8px;flex:0 0 auto;border-radius:50%;background:#fff;box-shadow:0 0 0 3px #ffffff1f;animation:pulseDot 1.8s ease-in-out infinite}.history-panel.collapsed{width:64px}.history-panel.collapsed .history-top{padding:18px 14px 14px;display:flex;justify-content:center}.history-panel.collapsed .side-brand{justify-content:center;gap:0}.history-panel.collapsed .side-brand strong{position:fixed;opacity:0;pointer-events:none}.history-panel.collapsed .side-brand-icon{transition:opacity .15s}.history-panel.collapsed .history-top:hover .side-brand-icon{opacity:0}.history-panel.collapsed .side-nav{padding:0 10px 8px;align-items:center}.history-panel.collapsed .side-nav-icon-btn{justify-content:center;padding:0;width:36px;height:36px;border-radius:50%;gap:0;overflow:hidden}.history-panel.collapsed .side-nav-icon-btn span{width:0;opacity:0;visibility:hidden;pointer-events:none}.history-panel.collapsed .side-profile{display:flex;justify-content:center;padding:8px 14px 14px}.history-panel.collapsed .side-profile-btn{justify-content:center;padding:0;width:36px;height:36px;border-radius:50%;gap:0;overflow:hidden}.history-panel.collapsed .side-profile-btn .side-profile-name{width:0;opacity:0;visibility:hidden;pointer-events:none}.history-panel.collapsed .side-profile-avatar{width:28px;height:28px}.sidebar-search-wrap{padding:0 12px 6px;min-width:0;transition:opacity .2s cubic-bezier(.4,0,.2,1)}.sidebar-search-field{position:relative;display:flex;align-items:center;width:100%;min-width:0;background:var(--panel-2);border:1px solid var(--border);border-radius:999px;padding:2px 14px;transition:border-color .15s,background-color .15s}.sidebar-search-field:focus-within{border-color:var(--border-strong);background:#1d1d22}.sidebar-search-field-icon{color:var(--muted-2);margin-right:10px;flex-shrink:0}.sidebar-search-field input{background:transparent;border:none;color:var(--text);font-size:13px;font-weight:500;padding:9px 0;width:100%;min-width:0;outline:none}.sidebar-search-field input::placeholder{color:var(--muted-2)}.model-topbar{padding:14px 36px 0;display:flex;align-items:center;flex-shrink:0;gap:8px}.model-picker-wrap{position:relative}.model-pick-btn{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:12px;cursor:pointer;border:1px solid var(--border);background:var(--panel-2);color:var(--text);font-size:13px;font-weight:700;transition:border-color .14s,background .14s,transform .14s;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}.model-pick-btn:hover{border-color:var(--border-strong);background:#202026;transform:translateY(-1px)}.model-pick-btn svg{opacity:.5;flex-shrink:0}.model-dropdown{position:absolute;top:calc(100% + 8px);left:0;z-index:30;width:250px;padding:8px;border:1px solid var(--border-strong);border-radius:18px;background:#161619;box-shadow:var(--shadow-menu);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);animation:popIn .18s cubic-bezier(.34,1.4,.5,1)}.model-option{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 11px;border-radius:12px;border:0;background:transparent;cursor:pointer;color:var(--text);font-size:13px;font-weight:700;text-align:left;transition:background .12s}.model-option:hover{background:var(--accent-soft);color:#fff}.model-option.active{color:#fff}.model-option.active:hover{background:var(--accent-soft)}.model-option-check{width:18px;height:18px;display:grid;place-items:center;color:#fff;flex-shrink:0}.model-option-sub{font-size:11px;font-weight:600;color:var(--muted-2);margin-top:1px}.chat-body-wrap{min-height:0;position:relative;display:flex;flex-direction:column}.conversation{min-height:0;height:100%;overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.16) transparent}.conversation-empty{display:grid;place-items:center;height:100%}.conversation-active{width:min(820px,calc(100% - 72px));margin:0 auto;padding:28px 0 34px}.message{display:grid;gap:8px;margin-bottom:26px;animation:riseIn .3s cubic-bezier(.22,.8,.3,1)}.message-user{justify-items:end}.message-meta{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:12px;font-weight:700}.message-user .message-meta{justify-content:flex-end}.message-assistant .message-meta>span:first-child{color:#fff;font-weight:800}.message-bubble{max-width:min(720px,88%);white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid var(--border);border-radius:18px;padding:15px 17px;font-size:15px;line-height:1.65;color:#ececef;background:var(--card);box-shadow:var(--shadow-soft)}.message-user .message-bubble{width:fit-content;max-width:78%;display:inline-block;color:var(--text);border-color:var(--border-strong);background:#ffffff0f;padding:12px 14px}.message-assistant .message-bubble{background:#ffffff0f;border-color:transparent;box-shadow:none}.message-bubble p{margin:0 0 8px}.message-bubble p:last-child{margin-bottom:0}.message-bubble ul,.message-bubble ol{padding-left:20px;margin:8px 0}.message-bubble li{margin:3px 0}.message-bubble strong{color:#fff}.message-bubble h1,.message-bubble h2,.message-bubble h3{margin:10px 0 5px;color:#fff}.code-block-wrap{position:relative;margin:8px 0}.code-block-wrap pre{background:#0c0c0e;color:#e7e7f0;border:1px solid var(--border);border-radius:12px;padding:14px;overflow-x:auto;font-size:13px;font-family:JetBrains Mono,Courier New,monospace;margin:0;line-height:1.55}.code-copy-btn{position:absolute;top:8px;right:8px;display:none;align-items:center;gap:5px;padding:4px 10px;border-radius:8px;border:1px solid var(--border);background:#1c1c20;color:var(--muted);font-size:11px;font-weight:700;cursor:pointer}.code-copy-btn:hover{color:#fff;border-color:var(--border-strong);background:#26262b}.code-copy-btn.copied{color:var(--ok);border-color:#46c77180}.code-block-wrap:hover .code-copy-btn{display:flex}.message-bubble code{background:var(--accent-soft);color:#fff;padding:1px 6px;border-radius:6px;font-size:13px}.code-block-wrap pre code{background:none;color:inherit;padding:0;border-radius:0}.md-table-wrap{width:100%;max-height:min(56vh,520px);overflow:auto;margin:10px 0;border:1px solid var(--border);border-radius:12px;background:#111113}.md-table{width:max-content;min-width:100%;border-collapse:collapse;font-size:13px;line-height:1.45}.md-table th,.md-table td{padding:10px 12px;border-bottom:1px solid rgba(255,255,255,.08);text-align:left;vertical-align:top;white-space:nowrap}.md-table th{position:sticky;top:0;z-index:1;background:#18181b;color:#fff;font-weight:800}.md-table tr:last-child td{border-bottom:0}.composer{width:min(760px,calc(100% - 72px));margin:0 auto 28px}.welcome-centered .composer{margin-bottom:0}.attached-chips{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:10px}.attach-chip{display:inline-flex;align-items:center;gap:7px;padding:5px 10px;border-radius:11px;border:1px solid var(--border);background:var(--panel-2);font-size:12px;font-weight:700;color:var(--muted);animation:popIn .2s cubic-bezier(.34,1.4,.5,1)}.attach-chip img{width:28px;height:28px;object-fit:cover;border-radius:7px}.chip-remove{display:grid;place-items:center;cursor:pointer;color:var(--muted-2);background:transparent;border-radius:6px;padding:1px;transition:color .12s}.chip-remove:hover{color:var(--danger)}.composer-input-wrap{position:relative;display:flex;flex-direction:column;gap:0;min-height:56px;border:0;border-radius:34px;padding:0 10px;background:#141417d1;background-clip:padding-box;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);box-shadow:var(--shadow-card);transition:box-shadow .16s}.composer-input-wrap:before{content:"";position:absolute;z-index:-1;pointer-events:none;top:-1px;right:-1px;bottom:-1px;left:-1px;border-radius:35px;padding:1px;background:conic-gradient(from var(--composer-angle, 0deg),rgba(255,255,255,.08) 0deg,rgba(255,255,255,.55) 30deg,rgba(255,255,255,.9) 45deg,rgba(255,255,255,.55) 60deg,rgba(255,255,255,.08) 70deg,rgba(255,255,255,.08) 360deg);-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;animation:composerSpin 3s linear infinite}.composer-input-wrap:focus-within{box-shadow:var(--shadow-card),0 0 24px #ffffff12}.composer-input-wrap:focus-within:before{background:conic-gradient(from var(--composer-angle, 0deg),rgba(255,255,255,.1) 0deg,rgba(255,255,255,.6) calc(var(--composer-sweep, 35deg) * .5),rgba(255,255,255,1) var(--composer-sweep, 35deg),rgba(255,255,255,.6) calc(var(--composer-sweep, 35deg) * 1.5),rgba(255,255,255,.1) calc(var(--composer-sweep, 35deg) * 2))}.composer-input-main{display:flex;min-height:56px}.composer-input-wrap[data-has-tool=true] .composer-input-main{padding:6px 0}.composer-input-wrap:not([data-has-tool=true]):not([data-multiline=true]) .composer-input-main{align-items:center;gap:6px}.composer-input-wrap[data-multiline=true]:not([data-has-tool=true]) .composer-input-main{padding-bottom:6px}.composer-input-wrap[data-has-tool=true] .composer-input{min-height:34px;font-size:14px}.composer-input{flex:1;min-width:0;min-height:40px;max-height:200px;border:0;padding:8px;color:var(--text);background:transparent;font-size:15px;outline:none;resize:none;overflow-y:auto;line-height:1.45;scrollbar-width:none;transition:height .18s ease}.composer-input::-webkit-scrollbar{display:none}.composer-input:focus-visible{outline:none}.composer-input-wrap button:focus-visible{outline:none}.composer-input::placeholder{color:var(--muted-2)}.composer-input-wrap[data-expanded=true] .composer-input{max-height:calc(100vh - 220px)}.composer-right{display:flex;align-items:center;gap:4px;flex-shrink:0}.attach-menu-wrap{position:relative;flex-shrink:0}.attach-menu-wrap .round-tool-button{width:32px;height:32px;padding:0;background:none;border:none;box-shadow:none;border-radius:50%;display:inline-flex;align-items:center;justify-content:center}.attach-menu-wrap .round-tool-button:hover{background:var(--accent-soft)}.attach-menu-wrap .round-tool-button svg{display:block;width:24px;height:24px}.attach-menu{position:absolute;left:-6px;top:calc(100% + 6px);z-index:20;min-width:160px;width:auto;padding:6px;border:1px solid var(--border-strong);border-radius:14px;background:#161619;box-shadow:var(--shadow-menu);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);animation:popIn .18s cubic-bezier(.34,1.4,.5,1)}.attach-menu button{width:100%;display:flex;align-items:center;gap:10px;height:34px;padding:0 10px;background:transparent;border:none;color:var(--text);font-size:13px;font-weight:600;white-space:nowrap;border-radius:999px;transition:background .12s,color .12s}.attach-menu button svg{flex-shrink:0;color:#cdcdd4;opacity:.9}.attach-menu button:hover{background:var(--accent-soft);color:#fff}.attach-menu button:hover svg{color:#fff}.model-select-wrap{position:relative;flex-shrink:0;display:flex;align-items:center}.model-select-btn{display:flex;align-items:center;gap:4px;padding:5px 10px;cursor:pointer;color:#fff;font-size:12px;font-weight:700;white-space:nowrap;background:none;border:none;border-radius:999px;height:auto;transition:background .14s}.model-select-btn:hover{background:#ffffff0f}.model-select-btn svg{opacity:.65;flex-shrink:0}.composer-model-dropdown{position:absolute;right:0;left:auto;z-index:30;width:220px;padding:8px;border:1px solid var(--border-strong);border-radius:16px;background:#161619;box-shadow:var(--shadow-menu);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);animation:popIn .18s cubic-bezier(.34,1.4,.5,1)}.composer-model-dropdown .model-option{padding:7px 10px;font-size:12px}.model-dropdown-separator{height:1px;background:var(--border);margin:4px 0}.reasoning-btn-wrap{position:relative}.reasoning-btn{width:100%;display:flex;align-items:center;gap:4px;padding:6px 10px;border-radius:10px;border:0;background:transparent;color:#fff;font-size:13px;font-weight:700;cursor:pointer;text-align:left;transition:background .12s}.reasoning-btn:hover{background:var(--accent-soft)}.reasoning-btn-label{flex:1;color:#fff;font-size:13px;font-weight:700}.reasoning-btn-value{color:var(--muted-2);font-weight:500}.reasoning-btn svg{opacity:.5;flex-shrink:0}.reasoning-submenu{position:absolute;left:100%;top:-4px;z-index:31;width:220px;padding:8px;border:1px solid var(--border-strong);border-radius:14px;background:#161619;box-shadow:var(--shadow-menu);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);animation:popIn .18s cubic-bezier(.34,1.4,.5,1)}.reasoning-submenu-option{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 9px;border-radius:10px;border:0;background:transparent;cursor:pointer;color:var(--text);font-size:12px;font-weight:700;text-align:left;transition:background .12s}.reasoning-submenu-option:hover{background:var(--accent-soft);color:#fff}.reasoning-submenu-option.active{color:#fff}.reasoning-submenu-option.active:hover{background:var(--accent-soft);color:#fff}.reasoning-submenu-text{display:flex;flex-direction:column;gap:1px;min-width:0}.reasoning-submenu-desc{font-size:10px;font-weight:500;color:var(--muted-2)}.reasoning-submenu-option:hover .reasoning-submenu-desc,.reasoning-submenu-option.active .reasoning-submenu-desc{color:var(--muted)}.round-tool-button{width:40px;height:40px;border-radius:14px;color:var(--muted);background:var(--panel-2);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s}.round-tool-button:hover{background:#26262b;color:#fff}.action-buttons{display:flex;align-items:center;gap:4px}.send-button{width:38px;height:38px;border-radius:50%;color:var(--accent-ink);background:linear-gradient(160deg,#fff,#cfcfd4);box-shadow:0 8px 20px #00000073;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:opacity .2s,width .2s,padding .2s,margin .2s}.send-hidden{width:0!important;padding:0!important;margin:0!important;opacity:0!important;overflow:hidden!important;pointer-events:none}.send-button:hover:not(:disabled){opacity:.85}.send-button:disabled{cursor:not-allowed;color:#5e5e66;background:#222227;box-shadow:none}.mic-button{color:var(--muted);background:transparent;box-shadow:none}.mic-button:hover{background:var(--accent-soft);color:#fff}.mic-button.active{color:#0a0a0b;background:linear-gradient(160deg,#fff,#cfcfd4);animation:micPulse 1.3s ease-in-out infinite}.voice-call-button{width:34px;height:34px;border-radius:12px;color:var(--muted);background:transparent;box-shadow:none}.voice-call-button:hover{background:var(--accent-soft);color:#fff}.voice-call-button.active{color:#0a0a0b;background:linear-gradient(160deg,#fff,#cfcfd4);animation:micPulse 1.3s ease-in-out infinite}.stop-button{color:#fff!important;background:var(--danger)!important;box-shadow:0 8px 20px #e5605f47!important}.composer-input-footer{display:flex;align-items:center;gap:6px;padding:0 4px 10px;flex-wrap:wrap;animation:popIn .2s cubic-bezier(.34,1.4,.5,1)}.composer-footer-right{position:relative;margin-left:auto;display:flex;align-items:center;gap:4px;flex-shrink:0}.mode-tag{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:999px;border:1px solid transparent;color:var(--muted);font-size:13px;font-weight:700;transition:border-color .12s,background .12s;-webkit-user-select:none;user-select:none}.mode-tag svg{width:18px;height:18px;opacity:.75;flex-shrink:0}.mode-tag:hover{border-color:var(--border-strong);background:var(--accent-soft)}.mode-tag-close{background:transparent;border:none;color:transparent;opacity:0;font-size:16px;font-weight:800;cursor:pointer;padding:0 2px;line-height:1;transition:color .12s,opacity .12s}.mode-tag:hover .mode-tag-close{opacity:1;color:var(--muted)}.mode-tag-close:hover{color:#fff!important}.provider-hidden{display:none!important}.expand-input-btn{position:absolute;top:0;right:10px;z-index:5;display:flex;align-items:center;justify-content:center;background:none;border:none;outline:none;color:var(--muted);cursor:pointer;padding:0;width:38px;height:56px;transition:color .12s}.expand-input-btn:hover{color:#fff}.expand-input-btn:focus-visible{outline:none}.composer-input-wrap[data-multiline=true] .composer-input{padding-right:40px}.gen-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:#0000009e;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;animation:fadeIn .15s ease}.gen-card{width:348px;padding:22px;border-radius:22px;border:1px solid var(--border-strong);background:#161619;box-shadow:var(--shadow-menu);animation:popIn .22s cubic-bezier(.34,1.5,.5,1)}.gen-card-title{font-size:16px;font-weight:800;margin-bottom:14px}.gen-prompt-wrap{margin-bottom:14px}.gen-prompt-input{width:100%;min-height:70px;max-height:140px;resize:none;padding:11px 13px;border-radius:14px;border:1px solid var(--border);background:#0e0e10;color:var(--text);font-size:13px;font-weight:500;line-height:1.45;outline:none}.gen-prompt-input:focus{border-color:var(--border-strong)}.gen-ratio-label{font-size:12px;font-weight:700;color:var(--muted);margin-bottom:8px}.gen-ratio-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.gen-ratio-btn{padding:10px;border-radius:12px;border:1px solid var(--border);background:var(--panel-2);color:var(--muted);font-size:13px;font-weight:700;cursor:pointer;transition:border-color .12s,background .12s,color .12s}.gen-ratio-btn:hover{border-color:var(--border-strong);color:#fff}.gen-ratio-btn.active{border-color:#fff;background:var(--accent-soft-2);color:#fff}.gen-actions{display:flex;gap:8px;margin-top:18px}.gen-cancel-btn{flex:1;padding:11px;border-radius:13px;border:1px solid var(--border);background:transparent;color:var(--muted);font-size:13px;font-weight:700;cursor:pointer;transition:background .12s}.gen-cancel-btn:hover{background:var(--panel-2);color:#fff}.gen-go-btn{flex:1;padding:11px;border-radius:13px;background:linear-gradient(160deg,#fff,#d3d3d8);color:#0a0a0b;font-size:13px;font-weight:800;cursor:pointer;box-shadow:0 8px 20px #0006;transition:transform .12s,box-shadow .12s}.gen-go-btn:hover{transform:translateY(-1px);background:#fff;box-shadow:0 11px 26px #00000080}.toggle-row{display:flex;align-items:center;gap:10px;cursor:pointer}.toggle-row input{display:none}.toggle-track{position:relative;width:38px;height:22px;border-radius:11px;background:#33333a;transition:background .2s;flex:0 0 auto}.toggle-row input:checked+.toggle-track{background:#fff}.toggle-thumb{position:absolute;width:16px;height:16px;border-radius:50%;background:#86868e;top:3px;left:3px;transition:left .2s,background .2s}.toggle-row input:checked+.toggle-track .toggle-thumb{left:19px;background:#0a0a0b}.toggle-lbl{font-size:13px;font-weight:700;color:var(--muted)}.side-panel{height:100vh;width:100%;max-width:420px;background:var(--panel-2);border-left:1px solid var(--border);display:flex;flex-direction:column;overflow:hidden;transform:translate(100%);animation:slideLeftFade .26s cubic-bezier(.25,1,.5,1) forwards}.side-panel.closing{animation:slideRightFade .26s cubic-bezier(.25,1,.5,1) forwards}.side-panel-header{padding:14px 18px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;background:var(--panel-2)}.side-panel-title-wrap{display:flex;align-items:center;gap:10px}.side-panel-title-wrap strong{font-size:14px;font-weight:800;color:#fff}.side-panel-icon{font-size:16px;color:#cdcdd4}.side-panel-actions{display:flex;align-items:center;gap:8px}.panel-action-btn{display:inline-flex;align-items:center;gap:6px;padding:7px 13px;border-radius:10px;background:linear-gradient(160deg,#fff,#d3d3d8);color:#0a0a0b;font-size:12px;font-weight:700;cursor:pointer;border:0;box-shadow:0 6px 16px #0006;transition:transform .12s}.panel-action-btn:hover{transform:translateY(-1px);background:#fff}.panel-close-btn{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--panel-2);color:var(--muted);cursor:pointer;border:0;transition:background .12s,color .12s}.panel-close-btn:hover{background:#26262b;color:#fff}.side-panel-content{flex:1;overflow-y:auto;display:flex;flex-direction:column;padding:16px}@keyframes slideRightFade{0%{opacity:1;transform:translate(0)}to{opacity:0;transform:translate(100%)}}.context-compactor-wrap{position:absolute;bottom:84px;left:50%;transform:translate(-50%);z-index:40;pointer-events:none;width:min(440px,90%)}.context-compactor{pointer-events:auto;display:flex;flex-direction:column;gap:8px;padding:13px 16px;border-radius:18px;border:1px solid var(--border-strong);background:#141416e6;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);box-shadow:var(--shadow-menu);animation:riseIn .24s cubic-bezier(.34,1.4,.5,1)}.context-compactor-info{display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:700;color:#fff}.context-compactor-title{display:flex;align-items:center;gap:6px}.context-compactor-pct{color:var(--muted);font-variant-numeric:tabular-nums}.context-compactor-progress-track{width:100%;height:6px;border-radius:3px;background:var(--accent-soft);overflow:hidden}.context-compactor-progress-bar{height:100%;width:0%;border-radius:3px;background:linear-gradient(90deg,#fff,#9a9aa3);transition:width .1s linear}.context-compactor-status{font-size:11px;font-weight:600;color:var(--muted-2);margin-top:-2px}.auth-overlay,.admin-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:500;display:flex;align-items:center;justify-content:center;background:#000000d1;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);padding:18px}.auth-card,.admin-card{width:min(420px,100%);border:1px solid rgba(255,255,255,.06);border-radius:20px;background:#08080a;box-shadow:0 22px 70px #000000b3;padding:0;display:flex;flex-direction:column;animation:popIn .22s cubic-bezier(.34,1.5,.5,1)}.auth-card-inner{padding:32px 28px 28px;display:flex;flex-direction:column;gap:16px}.auth-title{color:#e8e8ed;font-size:20px;font-weight:800;text-align:center;margin:0 0 4px}.auth-email-label{color:#5f5f6b;font-size:13px;font-weight:600;text-align:center;margin:-6px 0 2px}.auth-subtitle,.admin-subtitle{color:#5f5f6b;font-size:13px;font-weight:500;line-height:1.5;text-align:center}.auth-field{display:flex;flex-direction:column;gap:6px}.auth-label{color:#e8e8ed;font-size:13px;font-weight:700}.auth-label-row{display:flex;align-items:center;justify-content:space-between}.auth-forgot-link{background:none;border:none;color:#5f5f6b;font-size:12px;font-weight:600;cursor:pointer;padding:0;outline:none;transition:color .12s}.auth-forgot-link:hover{color:#e8e8ed}.auth-input{width:100%;height:44px;border-radius:11px;border:1px solid rgba(255,255,255,.07);background:#0d0d10;color:#e8e8ed;padding:0 14px;font-size:14px;font-weight:500;outline:none;transition:border-color .18s;box-sizing:border-box}.auth-input:focus{border-color:#ffffff26;outline:none}.auth-input::placeholder{color:#5f5f6b}.auth-input:-webkit-autofill{-webkit-box-shadow:0 0 0 30px #0d0d10 inset;-webkit-text-fill-color:#e8e8ed}.auth-submit{height:44px;border-radius:11px;background:#e8e8ed;color:#08080a;font-size:14px;font-weight:800;cursor:pointer;border:none;display:flex;align-items:center;justify-content:center;gap:8px;transition:background .18s}.auth-submit:hover{background:#fff}.auth-submit:disabled{opacity:.6;cursor:default}.auth-error{color:#e5605f;font-size:13px;font-weight:600;text-align:center}.auth-google-btn{display:flex;align-items:center;justify-content:center;gap:10px;height:44px;border-radius:11px;border:1px solid rgba(255,255,255,.07);background:#0d0d10;color:#e8e8ed;font-size:14px;font-weight:700;cursor:pointer;outline:none;transition:border-color .14s,background .14s}.auth-google-btn:hover{border-color:#ffffff26;background:#131316}.auth-divider{display:flex;align-items:center;gap:12px}.auth-divider-line{flex:1;height:1px;background:var(--border)}.auth-divider-text{color:var(--muted-2);font-size:12px;font-weight:600;flex-shrink:0}.auth-loader{width:20px;height:20px;border:2px solid var(--accent-ink);border-top-color:transparent;border-radius:50%;animation:authSpin .6s linear infinite}@keyframes authSpin{to{transform:rotate(360deg)}}.auth-back{position:absolute;top:16px;left:16px;width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:transparent;color:var(--muted);cursor:pointer;border:none;outline:none;transition:background .12s,color .12s}.auth-back:hover{background:var(--panel-2);color:var(--text)}.auth-card{position:relative}.admin-open-btn,.admin-close{border:1px solid var(--border);background:var(--panel-2);color:var(--text);border-radius:10px;cursor:pointer;font-size:12px;font-weight:800}.admin-open-btn{margin-top:8px;width:100%;height:34px}.admin-card{width:min(720px,100%);max-height:min(720px,90vh)}.admin-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.admin-close{width:34px;height:34px;display:grid;place-items:center;font-size:20px}.admin-grant{display:grid;grid-template-columns:1fr 130px 110px;gap:8px}.admin-users{overflow:auto;display:flex;flex-direction:column;gap:8px;padding-right:2px}.admin-user-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid var(--border);border-radius:13px;background:#101012}.admin-user-row strong{color:#fff;font-size:13px}.admin-user-row span,.admin-user-meta small{display:block;color:var(--muted);font-size:11px;font-weight:700;margin-top:3px}.admin-user-meta{text-align:right;flex-shrink:0}.admin-user-meta b{color:#fff;font-size:15px}.admin-empty{color:var(--muted);font-size:13px;font-weight:700;padding:12px;text-align:center}.creations-gallery{display:flex;flex-direction:column;gap:16px;height:100%}.creations-gallery-page{padding-top:16px;border-top:1px solid var(--border)}.gallery-filters{display:flex;gap:6px;overflow-x:auto;padding-bottom:6px;scrollbar-width:none;flex-shrink:0}.filter-pill{padding:7px 13px;border-radius:99px;background:var(--panel-2);border:1px solid var(--border);color:var(--muted);font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap;transition:background .12s,color .12s,border-color .12s}.filter-pill:hover{background:var(--accent-soft);color:#fff}.filter-pill.active{background:#fff;color:#0a0a0b;border-color:#fff}.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px;overflow-y:auto;flex:1}.page-gallery-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));align-content:start}.gallery-card{position:relative;border-radius:14px;overflow:hidden;background:var(--card);border:1px solid var(--border);cursor:pointer;transition:border-color .15s,transform .15s,box-shadow .15s;aspect-ratio:4/3;display:flex;flex-direction:column}.gallery-card:hover{border-color:var(--border-strong);transform:translateY(-2px);box-shadow:var(--shadow-card)}.gallery-card img{width:100%;height:100%;object-fit:cover;flex:1}.gallery-card-icon{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;color:#cdcdd4;font-size:28px;background:var(--accent-soft)}.gallery-card-play{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;background:#0000004d;color:#fff}.gallery-card-play svg{fill:currentColor;filter:drop-shadow(0 2px 4px rgba(0,0,0,.5))}.gallery-card-info{padding:8px 10px;background:var(--panel-2);border-top:1px solid var(--border);font-size:11px;font-weight:700;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.clear-creations-btn{display:inline-flex;align-items:center;gap:7px;padding:9px 14px;border-radius:12px;border:1px solid var(--border);background:var(--panel-2);color:var(--muted);font-size:13px;font-weight:600;cursor:pointer;transition:border-color .14s,background .14s,color .14s}.clear-creations-btn:hover{border-color:#e5605f80;background:#e5605f1a;color:var(--danger)}.media-gen-bubble,.message-assistant .message-bubble.media-gen-bubble,.media-result-bubble,.message-assistant .message-bubble.media-result-bubble{padding:0;background:none;border:0;box-shadow:none;width:fit-content;max-width:100%}.media-result-bubble .gen-result-img,.media-result-bubble .gen-result-video{max-width:min(100%,420px);max-height:460px;border-radius:16px}.gen-result-img{display:block;max-width:100%;max-height:340px;object-fit:contain;border-radius:16px;cursor:zoom-in;margin-bottom:8px}.gen-result-video{display:block;max-width:100%;max-height:340px;border-radius:16px;margin-bottom:8px}.gen-result-actions{display:flex;gap:8px;margin-top:6px}.gen-result-btn{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border-radius:11px;border:1px solid var(--border);background:var(--panel-2);color:var(--muted);font-size:12px;font-weight:700;cursor:pointer;text-decoration:none;transition:color .12s,border-color .12s,background .12s}.gen-result-btn:hover{border-color:var(--border-strong);color:#fff;background:#222227}.media-gen-card-wrap{display:flex;flex-direction:column;gap:10px;width:fit-content;max-width:100%}.media-gen-animation-card{position:relative;border-radius:16px;overflow:hidden;background:#1f2422;border:1px solid rgba(255,255,255,.03);display:flex;justify-content:center;align-items:center;margin:0;max-width:100%}.media-gen-animation-card.ratio-16-9{width:min(100%,420px);aspect-ratio:16/9}.media-gen-animation-card.ratio-9-16{width:min(72vw,236px);aspect-ratio:9/16}.media-gen-animation-card.ratio-1-1{width:min(72vw,320px);aspect-ratio:1/1}.media-gen-animation-card.ratio-4-3{width:min(72vw,360px);aspect-ratio:4/3}.media-gen-animation-card.is-error{background:#201d1d;border-color:#e5605f2e}.media-gen-dotfield{position:absolute;top:18px;right:22px;bottom:18px;left:22px;display:grid;grid-template-columns:repeat(12,1fr);grid-auto-rows:1fr;gap:15px 22px;opacity:.92}.media-gen-dotfield i{width:3px;height:3px;border-radius:50%;background:#c8cfcb;justify-self:center;align-self:center;animation:dotFieldPulse 2.6s ease-in-out infinite}.media-gen-progress{position:absolute;right:18px;bottom:14px;z-index:1}.media-gen-percentage{font-size:12px;font-weight:800;color:#ffffff8c;font-variant-numeric:tabular-nums}.media-gen-error{position:relative;z-index:2;width:min(78%,320px);display:flex;flex-direction:column;gap:7px;padding:13px 15px;border-radius:14px;background:#00000057;border:1px solid rgba(255,255,255,.08);color:#fff}.media-gen-error strong{font-size:13px;font-weight:900}.media-gen-error span{color:#ffffffad;font-size:12px;line-height:1.4}.media-gen-log{display:none}.media-gen-log-head{display:flex;align-items:center;gap:7px;color:#fff;font-weight:800;font-size:11px;text-transform:uppercase;letter-spacing:.05em;margin-bottom:2px}.media-gen-log-head .dot{width:7px;height:7px;border-radius:50%;background:#fff;animation:pulseDot 1.4s ease-in-out infinite}.media-gen-log-line{display:flex;gap:9px;color:var(--muted);font-weight:600;line-height:1.4;animation:logIn .26s ease}.media-gen-log-line .t{color:var(--muted-2);font-variant-numeric:tabular-nums;flex:0 0 auto}.media-gen-log-line.done{color:var(--ok)}.media-gen-log-line.err{color:var(--danger)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;background:#000000d6;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);display:flex;align-items:center;justify-content:center}.modal-media img,.modal-media video{max-width:88vw;max-height:88vh;border-radius:16px;display:block;animation:popIn .24s cubic-bezier(.34,1.5,.5,1)}.modal-close-btn{position:absolute;top:18px;right:18px;width:38px;height:38px;border-radius:50%;cursor:pointer;background:#ffffff1f;color:#fff;display:grid;place-items:center;border:0;transition:background .12s}.thinking-card{position:relative;width:fit-content;padding:6px 2px}.thinking-dotgrid{display:grid;width:fit-content;grid-template-columns:repeat(3,4px);grid-template-rows:repeat(3,4px);gap:4px}.thinking-dotgrid i{width:4px;height:4px;border-radius:50%;background:#fff;opacity:.16;transform:scale(.7);animation:dotPulse 1.25s ease-in-out infinite}.thinking-dotgrid i:nth-child(1){animation-delay:0s}.thinking-dotgrid i:nth-child(2){animation-delay:.1s}.thinking-dotgrid i:nth-child(3){animation-delay:.2s}.thinking-dotgrid i:nth-child(4){animation-delay:.1s}.thinking-dotgrid i:nth-child(5){animation-delay:.2s}.thinking-dotgrid i:nth-child(6){animation-delay:.3s}.thinking-dotgrid i:nth-child(7){animation-delay:.2s}.thinking-dotgrid i:nth-child(8){animation-delay:.3s}.thinking-dotgrid i:nth-child(9){animation-delay:.4s}.reasoning-block{margin-bottom:10px;display:block}.reasoning-block[open]{margin-bottom:12px}summary{list-style:none;outline:none}summary::-webkit-details-marker{display:none}.reasoning-summary{display:inline-block;cursor:pointer;-webkit-user-select:none;user-select:none;outline:none}.reasoning-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 13px;border-radius:99px;background:var(--accent-soft);border:1px solid var(--border);color:var(--muted);font-size:12px;font-weight:700;transition:background .14s,color .14s,border-color .14s}.reasoning-pill:hover{background:var(--accent-soft-2);color:#fff}.reasoning-pill-icon{opacity:.75}.reasoning-pill-arrow{opacity:.65;transition:transform .2s ease}.reasoning-block[open] .reasoning-pill-arrow{transform:rotate(180deg)}.reasoning-content{margin-top:8px;padding:11px 14px;border-left:2px solid var(--border-strong);font-size:13px;line-height:1.55;color:var(--muted);white-space:pre-wrap;background:var(--panel-2);border-radius:0 10px 10px 0}.typing-cursor{display:inline-block;width:3px;height:1.05em;margin-left:2px;border-radius:999px;background:#fff;vertical-align:-.16em;animation:caretBlink .9s steps(1,end) infinite}.chat-main.welcome{display:flex;align-items:center;justify-content:center;overflow:hidden;background:#ffffff05}.chat-main.welcome:before{content:"";position:absolute;left:0;top:0;bottom:0;width:1px;background:var(--border);pointer-events:none}.welcome-centered{display:flex;flex-direction:column;align-items:center;gap:40px;width:100%;max-width:760px;padding:0 24px;margin-top:-48px;animation:welcomeIn .55s cubic-bezier(.22,.9,.3,1) both}.welcome-centered .composer{width:100%;max-width:660px}.welcome-centered .composer-input-wrap{min-height:52px}.welcome-centered .composer-input{min-height:38px;padding:7px 8px}.chat-main.welcome.expanded{align-items:center}.chat-main.welcome.expanded .welcome-screen{display:none}.chat-main.welcome.expanded .welcome-centered{margin-top:0;gap:0}.welcome-screen{position:relative;display:flex;flex-direction:column;align-items:center;width:100%}.welcome-glow{position:absolute;top:-80px;left:50%;margin-left:-200px;width:400px;height:400px;border-radius:50%;z-index:0;pointer-events:none;background:transparent;filter:blur(10px);animation:none}.welcome-question{position:relative;z-index:1;margin:0;font-size:clamp(28px,4vw,44px);line-height:1.2;font-weight:800;letter-spacing:-.02em;text-align:center;background:linear-gradient(180deg,#fff 28%,#8f8f99);-webkit-background-clip:text;background-clip:text;color:transparent;transition:opacity .3s ease,transform .3s ease}.welcome-question.fade-out{opacity:0;transform:translateY(-6px)}.welcome-question.fade-in{opacity:1;transform:translateY(0)}.web-preview-container{display:flex;flex-direction:column;gap:12px;height:100%}.web-preview-iframe-wrap{flex:1;border-radius:14px;overflow:hidden;background:#fff;border:1px solid var(--border)}.web-preview-iframe{width:100%;height:100%;border:0;background:#fff}.web-console-drawer{height:140px;background:#0c0c0e;border:1px solid var(--border);border-radius:14px;display:flex;flex-direction:column;font-family:JetBrains Mono,Courier New,monospace;flex-shrink:0}.web-console-header{background:#161619;padding:7px 13px;font-size:11px;font-weight:700;color:#b9b9c2;display:flex;justify-content:space-between;border-radius:13px 13px 0 0}.web-console-logs{flex:1;overflow-y:auto;padding:8px 13px;font-size:11px;display:flex;flex-direction:column;gap:4px;color:#dcdce4}.console-log-line{word-break:break-all}.console-log-line.error{color:#f08a8a}.console-log-line.warn{color:#e8c45e}.console-log-line.info{color:#8fc5f0}.console-log-line.success{color:#6fd99a}.settings-title{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;font-weight:800}.status-row{display:flex;align-items:center;gap:8px}.status-dot{width:8px;height:8px;border-radius:50%;background:var(--muted-2)}.status-dot.online{background:var(--ok)}.status-dot.offline{background:var(--danger)}.status-text{font-size:12px;font-weight:700;color:var(--muted)}.profile-popup-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:200;display:flex;align-items:center;justify-content:center;background:#00000080;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.profile-popup{width:400px;border-radius:20px;border:1px solid var(--border-strong);background:#161619;box-shadow:0 22px 70px #0000009e;animation:popIn .18s cubic-bezier(.34,1.5,.5,1);overflow:hidden}.profile-popup-body{padding:24px 24px 16px}.profile-popup-top{display:flex;gap:16px;align-items:flex-start}.profile-popup-avatar-wrap{position:relative;width:60px;height:60px;border-radius:50%;flex-shrink:0;cursor:pointer;overflow:hidden}.profile-popup-avatar-img{width:100%;height:100%;object-fit:cover;border-radius:50%}.profile-popup-avatar-letter{width:100%;height:100%;border-radius:50%;background:var(--accent);color:var(--accent-ink);display:grid;place-items:center;font-size:24px;font-weight:900}.profile-popup-avatar-overlay{position:absolute;top:0;right:0;bottom:0;left:0;background:#0000008c;display:grid;place-items:center;border-radius:50%;color:#fff}.profile-popup-info{flex:1;min-width:0}.profile-popup-name{font-size:17px;font-weight:800;color:#fff;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-popup-email{font-size:12px;font-weight:600;color:var(--muted-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px}.profile-popup-credits-bar-wrap{margin-top:12px}.profile-popup-credits-bar{height:6px;border-radius:999px;background:var(--accent-soft);overflow:hidden}.profile-popup-credits-bar-fill{height:100%;border-radius:999px;background:var(--accent);transition:width .5s ease}.profile-popup-credits-bar-text{display:flex;justify-content:space-between;margin-top:6px;font-size:11px;font-weight:600;color:var(--muted-2)}.profile-popup-credits-bar-text strong{font-weight:800;color:var(--muted)}.profile-popup-credits-bar-pct{font-weight:800;color:var(--accent)}.profile-popup-divider{height:1px;background:var(--border);margin:18px 0 14px}.profile-popup-history-header{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:700;color:var(--text);margin-bottom:10px}.profile-popup-history-list{display:flex;flex-direction:column;gap:2px;max-height:200px;overflow-y:auto}.profile-popup-history-empty{font-size:13px;color:var(--muted-2);text-align:center;padding:16px 0}.profile-popup-history-item{display:flex;align-items:center;gap:10px;padding:7px 10px;border-radius:10px;transition:background .15s}.profile-popup-history-item:hover{background:var(--accent-soft)}.profile-popup-history-icon{width:28px;height:28px;border-radius:8px;background:var(--accent-soft);display:grid;place-items:center;color:var(--muted-2);flex-shrink:0}.profile-popup-history-info{flex:1;min-width:0}.profile-popup-history-title{font-size:13px;font-weight:700;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-popup-history-date{font-size:11px;font-weight:600;color:var(--muted-2);margin-top:1px}.profile-popup-history-cost{font-size:13px;font-weight:800;color:var(--danger);flex-shrink:0}*::-webkit-scrollbar{width:10px;height:10px}*::-webkit-scrollbar-track{background:transparent}*::-webkit-scrollbar-thumb{background:#ffffff1f;border-radius:999px;border:2px solid transparent;background-clip:padding-box}*::-webkit-scrollbar-thumb:hover{background:#ffffff38;background-clip:padding-box}@keyframes popIn{0%{opacity:0;transform:scale(.96) translateY(4px)}to{opacity:1;transform:scale(1) translateY(0)}}@keyframes riseIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes logIn{0%{opacity:0;transform:translate(-6px)}to{opacity:1;transform:translate(0)}}@keyframes slideLeftFade{0%{opacity:0;transform:translate(20px)}to{opacity:1;transform:translate(0)}}@keyframes caretBlink{0%,55%{opacity:1}56%,to{opacity:0}}@keyframes dotFieldPulse{0%,to{opacity:.05;transform:scale(.55)}45%{opacity:.48;transform:scale(1.15)}}@keyframes dotPulse{0%,to{opacity:.16;transform:scale(.7)}45%{opacity:1;transform:scale(1)}}@keyframes pulseDot{0%,to{transform:scale(.8);opacity:.5}50%{transform:scale(1.1);opacity:1}}@keyframes micPulse{0%,to{box-shadow:0 0 0 0 var(--accent-soft-2)}50%{box-shadow:0 0 0 6px transparent}}@keyframes glowPulse{0%,to{opacity:.55;transform:scale(.95)}50%{opacity:1;transform:scale(1.08)}}@keyframes welcomeIn{0%{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}@property --composer-angle{syntax: "<angle>"; initial-value: 0deg; inherits: false;}@property --composer-sweep{syntax: "<angle>"; initial-value: 35deg; inherits: false;}@keyframes composerSpin{0%{--composer-angle: 0deg}15%{--composer-angle: 70deg}25%{--composer-angle: 140deg}50%{--composer-angle: 220deg}65%{--composer-angle: 255deg}75%{--composer-angle: 270deg}85%{--composer-angle: 310deg}to{--composer-angle: 360deg}}@media(max-width:1024px){.chat-surface.has-side-panel{grid-template-columns:288px 1fr}.side-panel{position:fixed;right:0;top:0;bottom:0;width:60%;z-index:100;box-shadow:-10px 0 30px #00000080}}@media(max-width:920px){body{overflow:auto}.app-shell{min-height:100vh;height:auto;overflow:auto}.chat-surface{min-height:100vh;grid-template-columns:1fr}.history-panel{display:grid;position:fixed;left:0;top:0;bottom:0;z-index:220;width:min(86vw,320px);max-width:min(86vw,320px);transform:translate(-104%);transition:transform .18s ease;box-shadow:18px 0 46px #0000007a}.history-panel.mobile-open{transform:translate(0)}.conversation-active{width:min(760px,calc(100% - 28px));padding-top:34px}.composer{width:min(760px,calc(100% - 28px))}.model-topbar{padding:10px 14px 0}.context-compactor-wrap{bottom:76px}}@media(max-width:640px){body{overflow:hidden}.app-shell{height:100dvh;min-height:100dvh;overflow:hidden}.chat-surface{height:100dvh;min-height:100dvh;grid-template-columns:1fr}.chat-main{height:100dvh;grid-template-rows:auto minmax(0,1fr) auto}.model-topbar{padding:8px 10px 0;gap:7px}.mobile-history-btn,.mobile-new-chat-btn{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:12px;background:var(--panel-2);border:1px solid var(--border);color:#fff;cursor:pointer}.model-pick-btn{height:34px;max-width:calc(100vw - 20px);padding:0 12px;font-size:12px}.model-dropdown{width:min(260px,calc(100vw - 20px))}.welcome-centered{gap:28px;padding:0 16px;max-width:100%;margin-top:-36px}.welcome-question{font-size:26px}.conversation-active{width:calc(100% - 16px);padding:18px 0}.message{margin-bottom:18px}.message-bubble{max-width:94%;border-radius:14px;padding:11px 13px;font-size:14px}.message-user .message-bubble{max-width:84%}.composer{width:calc(100% - 12px);margin:0 auto}.composer-input-wrap{padding:0 8px;gap:4px}.composer-input{min-height:40px;font-size:15px}.send-button{width:34px;height:34px;border-radius:50%}.model-select-btn{padding:4px 6px;font-size:11px}.attach-menu{left:0;width:min(252px,calc(100vw - 18px));bottom:calc(100% + 10px);border-radius:18px}.page-view-header{padding:14px;gap:10px}.page-view-header h2{font-size:20px}.page-view-content{padding:12px}.gallery-grid,.page-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.side-panel{width:100%!important;left:0;right:0}.side-panel-content{padding:12px}.auth-card,.admin-card{width:calc(100vw - 32px);border-radius:16px}.auth-card-inner{padding:24px 20px;gap:14px}.admin-card{max-height:88dvh}.admin-grant{grid-template-columns:1fr}}@media(max-width:560px){.welcome-question{font-size:22px}.welcome-centered{gap:24px;margin-top:-28px}.composer-input-wrap{padding:0 8px}.composer-input{min-height:36px;font-size:14px}.attach-menu{width:224px}}
