.chat-top{height:74px;padding:0 28px}.model-choice select{font-size:19px;letter-spacing:-.4px}.model-choice>span{display:none}.access-avatar{margin-left:auto;width:35px;height:35px;font-size:14px;border:1px solid var(--border);background:var(--selected);color:var(--text);transition:box-shadow .2s}.access-avatar:hover{box-shadow:0 0 0 5px var(--hover)}.connection{margin-left:auto}.connection:not([hidden])+.access-avatar{margin-left:0}.connection i{display:none}.connection{font-size:12px;color:var(--subtle)}
.welcome{max-width:760px;margin:clamp(4px,3vh,35px) auto 0}.chat-mascot{width:170px;height:170px;margin:0 auto 6px;position:relative;touch-action:pan-y;isolation:isolate}.chat-mascot>img,.chat-mascot>canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transition:opacity .2s}.chat-mascot>canvas{opacity:0}.chat-mascot.mascot-loaded>canvas{opacity:1}.chat-mascot.mascot-loaded>img{opacity:0}.welcome h1{font-size:clamp(30px,3.1vw,43px);font-weight:520;letter-spacing:-1.7px;margin:4px 0 12px;line-height:1.2}.welcome>.welcome-subtitle{color:var(--subtle);font-size:15px;margin:0}.suggestions{margin-top:36px;gap:13px}.suggestions button{position:relative;overflow:hidden;min-height:143px;padding:20px;background:transparent;border:1px solid var(--border);border-radius:16px;transition:transform .22s,border-color .22s,background .22s,box-shadow .22s}.suggestions button:hover{transform:translateY(-5px);border-color:color-mix(in srgb,var(--accent) 45%,transparent);background:var(--hover);box-shadow:0 10px 25px #0000000a}.suggestions button>span{display:grid;place-items:center;width:35px;height:35px;background:var(--selected);border-radius:10px;margin:0 0 9px;color:var(--accent);transition:transform .22s}.suggestions button:hover>span{transform:rotate(-7deg) scale(1.08)}.suggestions svg{width:20px;height:20px}.suggestions strong{font-size:14px;font-weight:550;color:var(--text)}.suggestions small{font-size:12px;color:var(--subtle)}
.web-messages{max-width:800px}.message-content{font-size:15px;line-height:1.8;color:var(--text)}.rich-message p{white-space:normal}.rich-message h1,.rich-message h2,.rich-message h3,.rich-message h4{font-weight:600;line-height:1.35;letter-spacing:-.4px;margin:28px 0 13px}.rich-message h1{font-size:27px}.rich-message h2{font-size:23px}.rich-message h3{font-size:19px}.rich-message ul,.rich-message ol{padding-left:25px;margin:12px 0 20px}.rich-message li{margin:6px 0}.rich-message a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}.rich-message blockquote{border-left:3px solid var(--accent);margin:18px 0;padding:4px 20px;color:var(--subtle)}.rich-message table{display:block;overflow:auto;border-collapse:collapse;max-width:100%;margin:20px 0;font-size:13px}.rich-message th,.rich-message td{padding:10px 14px;border:1px solid var(--border);text-align:left}.rich-message th{background:var(--hover)}.rich-message hr{border:0;border-top:1px solid var(--border);margin:26px 0}.rich-message :not(pre)>code{background:var(--selected);color:var(--text);padding:3px 6px;font-size:13px}.message-tools button{font-size:12px;color:var(--subtle)}.message-tools{gap:18px}.assistant-brand{font-size:12px;color:var(--subtle)}
.code-card{background:#131416;border:1px solid #ffffff14;border-radius:13px;position:relative;box-shadow:0 3px 12px #0001;margin:20px 0;color:#dadde5}.code-card pre{padding:20px;margin:0;max-height:530px;overflow:auto;scrollbar-width:thin;scrollbar-color:#454750 transparent;line-height:1.6;tab-size:4}.code-card pre code,.code-viewer pre code{font:12.5px/1.65 "Cascadia Code",Consolas,monospace;color:#d7dbe5;background:none;white-space:inherit;padding:0;border-radius:0}.code-card.code-truncated pre{max-height:215px;overflow:hidden;mask-image:linear-gradient(#000 65%,transparent)}.code-card footer{border-top:1px solid #ffffff10;background:#191a1d;display:flex;align-items:center;justify-content:space-between;padding:9px 10px;gap:8px}.code-file{display:flex;align-items:center;gap:10px;min-width:0;text-align:left;background:none;border:0;color:inherit;padding:3px}.code-file>svg{width:31px;height:31px;background:#ffffff07;border:1px solid #ffffff15;border-radius:8px;padding:7px;flex-shrink:0}.code-file>span{min-width:0}.code-file .code-filename{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.code-file .code-size{display:block;color:#969ba8;font-size:10px}.code-card-actions{display:flex;flex-shrink:0;gap:2px}.code-card-actions button,.code-viewer header button{display:grid;place-items:center;width:30px;height:31px;padding:6px;background:none;border:0;border-radius:6px;color:#a7adba}.code-card-actions button:hover,.code-viewer header button:hover{background:#ffffff12;color:#fff}.code-card svg,.code-viewer svg{width:18px;height:18px}.code-card-actions .code-copied{color:#9bdfaa}.code-reveal{display:block;background:none;border:0;color:#c4c8d2;font-size:11px;width:100%;padding:3px 10px 13px;margin-top:-7px;position:relative}.code-wrap{white-space:pre-wrap!important;overflow-wrap:anywhere}.code-popover{position:fixed;z-index:90;max-height:min(420px,75dvh);overflow:auto;background:var(--sidebar-bg);border:1px solid var(--border);border-radius:12px;padding:6px;box-shadow:0 15px 60px #0005}.code-popover button{display:block;width:100%;border:0;border-radius:7px;background:none;color:var(--text);padding:9px 11px;text-align:left;font-size:13px}.code-popover button:hover{background:var(--selected)}
.code-viewer{max-width:none;width:min(1200px,calc(100% - 40px));height:min(900px,calc(100dvh - 40px));max-height:none;padding:0;background:#131416;border:1px solid #454750;color:#ddd;overflow:hidden;border-radius:14px}.code-viewer[open]{display:flex;flex-direction:column}.code-viewer header{padding:12px 16px;display:flex;align-items:center;justify-content:space-between;background:#1a1b1f;border-bottom:1px solid #ffffff14;gap:10px}.code-viewer header strong{font-size:13px;font-weight:500;overflow:hidden;text-overflow:ellipsis}.code-viewer header>div{display:flex}.code-viewer pre{flex:1;min-height:0;overflow:auto;margin:0;padding:23px;white-space:pre;tab-size:4}.hljs-keyword,.hljs-selector-tag,.hljs-literal{color:#ff929e}.hljs-string,.hljs-regexp,.hljs-addition{color:#99d9af}.hljs-number,.hljs-symbol,.hljs-bullet{color:#e2b589}.hljs-title,.hljs-section,.hljs-function .hljs-title{color:#a5beff}.hljs-attr,.hljs-attribute,.hljs-variable{color:#dfb9ef}.hljs-comment,.hljs-quote{color:#808c9a}.hljs-built_in,.hljs-type{color:#8ad1de}.hljs-deletion{color:#f69a9a}
.composer-zone{padding-bottom:17px}.web-composer{border:1px solid var(--border);background:var(--surface);box-shadow:0 5px 25px #00000008;border-radius:25px;padding:18px 16px 12px;max-width:800px}.web-composer:focus-within{border-color:color-mix(in srgb,var(--subtle) 40%,transparent)}.web-composer textarea{font-size:16px;padding:0 4px;color:var(--text)}.composer-toolbar{margin-top:14px}.composer-tools{gap:7px}.composer-tools svg,.send-button svg,.stop-button svg{width:21px;height:21px}.square-button{width:35px;height:35px;color:var(--subtle)}#composer-more{border:1px solid var(--border);border-radius:50%}.send-button,.stop-button{width:36px;height:36px;background:var(--text);color:var(--chat-bg)}.composer-note{font-size:10px;line-height:1.5;color:var(--subtle);margin-top:10px}.image-mode-chip{max-width:800px;margin:0 auto 10px;display:flex;align-items:center;gap:10px;font-size:13px;color:var(--accent)}.image-mode-chip button{border:0;background:var(--selected);color:inherit;border-radius:50%;width:24px;height:24px}.image-options{max-width:800px;margin:0 auto 12px;display:flex;gap:15px;align-items:center;flex-wrap:wrap;padding:12px 15px;border-radius:13px;background:var(--hover);border:1px solid var(--border)}.image-options label{font-size:12px;color:var(--subtle)}.image-options select{border:0;background:var(--surface);color:var(--text);padding:5px;border-radius:5px;margin-left:5px}.image-options>span{font-size:11px;color:var(--subtle)}
.chat-popover{position:fixed;z-index:80;background:var(--sidebar-bg);border:1px solid var(--border);border-radius:17px;padding:7px;box-shadow:0 18px 70px #0003;color:var(--text);animation:popover-in .14s ease-out}.composer-menu{width:min(370px,calc(100vw - 24px))}.chat-popover button{width:100%;border:0;background:none;border-radius:10px;text-align:left;color:inherit;padding:11px 13px;font-size:14px;display:flex;gap:13px;align-items:center}.chat-popover button:hover{background:var(--selected)}.chat-popover svg{width:21px;height:21px;color:var(--subtle);flex-shrink:0}.chat-popover strong{font-size:13px;font-weight:500;display:block}.chat-popover small{display:block;font-size:11px;color:var(--subtle);margin-top:2px}.profile-menu{width:260px}.profile-menu>strong{padding:10px 13px 0;font-size:15px}.profile-menu>small{padding:0 13px 12px;overflow-wrap:anywhere;border-bottom:1px solid var(--border);margin-bottom:5px}.chat-settings{width:min(560px,calc(100% - 28px));max-width:none;background:var(--sidebar-bg);border:1px solid var(--border);color:var(--text);padding:27px}.chat-settings header{display:flex;justify-content:space-between;align-items:center}.chat-settings h2{margin:0;font-size:27px}.chat-settings header button{font-size:28px;border:0;background:none;color:var(--subtle)}.chat-settings label{color:var(--subtle);font-size:12px}.chat-settings input{background:var(--surface);border:1px solid var(--border);color:var(--text);font-size:14px}.chat-settings p{color:var(--subtle);font-size:12px}.chat-settings form>button,.chat-settings section>button{background:var(--selected);border:1px solid var(--border);border-radius:8px;color:var(--text);padding:9px 13px;font-size:12px;margin:3px 7px 3px 0}.chat-settings section{border-top:1px solid var(--border);margin-top:20px;padding-top:14px}.chat-settings h3{font-size:14px;font-weight:550}.voice-strip{max-width:800px;display:flex;align-items:center;gap:12px;margin:0 auto 10px;background:var(--surface);border:1px solid #dc737344;border-radius:13px;padding:12px 15px;font-size:13px}.voice-strip svg{width:22px;height:22px;color:#e68686}.voice-strip span{flex:1}.voice-strip button{background:none;border:0;color:var(--subtle);font-size:12px}.recording{color:#ef9393!important;background:#ef939312!important}.voice-review{background:var(--sidebar-bg);color:var(--text);border:1px solid var(--border);max-width:480px}.voice-review p{color:var(--subtle)}.voice-review audio{width:100%;margin:16px 0}.voice-review h2{font-size:24px}.voice-review .dialog-actions button{font-size:13px}
@keyframes popover-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:720px){.chat-top{height:65px;padding:0 15px}.model-choice select{font-size:17px}.welcome{margin-top:0}.chat-mascot{width:135px;height:135px}.chat-mascot>canvas{width:135px!important;height:135px!important}.welcome h1{font-size:31px;letter-spacing:-1.2px}.welcome>.welcome-subtitle{font-size:13px}.suggestions{margin-top:27px;gap:8px}.suggestions button{min-height:0;padding:13px 16px;border-radius:13px;grid-template-columns:33px 1fr;gap:0 12px}.suggestions button>span{width:33px;height:33px;margin:0}.suggestions strong{font-size:13px}.suggestions small{font-size:11px}.message-content{font-size:14px}.web-composer textarea{font-size:15px}.code-card pre code{font-size:11px}.code-card-actions button{width:27px;padding:5px}.code-card footer{padding:8px}.code-file{gap:7px}.code-file .code-size{font-size:9px}.code-viewer{width:calc(100% - 16px);height:calc(100dvh - 16px)}.code-viewer pre{padding:15px}.composer-note{font-size:9px}.chat-settings{padding:22px}.image-options{gap:8px}.image-options>span{width:100%}.access-avatar{width:33px;height:33px}}
.recover-password{display:block;margin:7px auto 18px;border:0;background:none;color:var(--subtle);font-size:12px}.recover-password:hover{color:var(--text)}.email-auth-dialog{background:var(--sidebar-bg);color:var(--text);border:1px solid var(--border);width:min(450px,calc(100% - 28px));padding:32px}.email-auth-dialog h2{font-size:29px;margin:25px 0 15px}.email-auth-dialog label{color:var(--subtle);font-size:12px}.email-auth-dialog p{color:var(--subtle);font-size:13px}.email-auth-dialog input{background:var(--surface);border:1px solid var(--border);color:var(--text);font-size:15px}.email-auth-dialog input[name=code]{font-size:28px;letter-spacing:9px;text-align:center}.email-auth-brand{color:var(--accent);font-size:14px;letter-spacing:1px;font-weight:600}.email-resend{border:0;background:none;color:var(--subtle);font-size:12px;margin:20px auto 0;display:block}.email-resend:disabled{cursor:default;opacity:.6}.verify-email-access{display:block;max-width:800px;margin:0 auto 10px;background:var(--selected);color:var(--accent);border:1px solid var(--border);border-radius:9px;padding:10px 16px;font-size:13px}
.message-sources{margin:18px 0 10px;border:1px solid var(--border);border-radius:11px;padding:10px 14px;color:var(--subtle);font-size:12px}.message-sources summary{cursor:pointer}.message-sources a{display:block;color:var(--accent);padding:7px 0;text-decoration:underline;text-underline-offset:3px}.web-search-chip{max-width:800px;margin:0 auto 10px;display:flex;align-items:center;gap:10px;font-size:13px;color:var(--accent)}.web-search-chip button{border:0;background:var(--selected);color:inherit;border-radius:50%;width:24px;height:24px}
.code-card .code-file>svg{width:32px;height:32px;padding:7px}.sidebar-foot #customer-password,.sidebar-foot #logout-chat,.sidebar-foot #export-chat{display:none}
:root[data-theme=light] .code-card{background:#131416;border-color:#d5d7dd}:root[data-theme=light] .code-card pre code{background:none;color:#d7dbe5}
@media(prefers-reduced-motion:reduce){.suggestions button,.suggestions button>span,.chat-popover{animation:none;transition:none}.suggestions button:hover,.suggestions button:hover>span{transform:none}}

.context-badge{display:block;margin:0 0 9px auto;padding:5px 9px;border:1px solid #ffffff13;border-radius:7px;background:#ffffff04;color:#979b9d;font-size:11px;cursor:pointer}.context-badge:hover{color:#d9c58d;border-color:#d9c58d38}.context-dialog{width:min(560px,calc(100vw - 30px));max-height:85dvh;overflow:auto;padding:28px;background:#202222;color:#e9e7df;border:1px solid #ffffff1c;border-radius:18px}.context-dialog header{display:flex;justify-content:space-between;gap:20px;margin-bottom:22px}.context-dialog header h2{font-size:23px;margin:0 0 8px}.context-dialog p{font-size:12px;line-height:1.7;color:#a2a7a5}.context-dialog header button{align-self:flex-start;background:none;color:#a2a7a5;font-size:24px}.context-dialog label{font-size:12px;display:block;margin:20px 0;color:#bdc3bf}.context-dialog select,.context-dialog textarea{width:100%;display:block;margin-top:9px;font:13px/1.6 inherit;padding:11px;background:#151717;color:#dedfd8;border:1px solid #ffffff18;border-radius:9px}.context-dialog textarea{font-family:inherit;font-size:13px;min-height:85px}.context-dialog summary{cursor:pointer;font-size:12px;color:#c6b786}.context-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;line-height:1.7;max-height:240px;overflow:auto;padding:15px;border-radius:9px;background:#171919;color:#acb5b1}.context-dialog .dialog-actions button{padding:11px 15px;border-radius:9px;border:1px solid #ffffff16;background:#292c2b;color:#d8dcd7}.context-dialog .dialog-actions button:last-child{background:#d8c58e;color:#27251d}.context-dialog #context-error{color:#d6a190}:root[data-theme=light] .context-badge{color:#737670;border-color:#0002;background:#00000003}
