:root{--sidebar-size:270px;--composer-max-width:760px;--chat-radius:20px;--chat-gap:12px;--web-edge:rgba(var(--fg-rgb),.08);--web-muted:rgba(var(--fg-rgb),.46)}
[hidden]{display:none!important}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.35}button:focus-visible,a:focus-visible,select:focus-visible{outline:2px solid rgb(var(--link-rgb));outline-offset:4px}button .glyph,.brand .glyph,.search-box .glyph{width:21px;height:21px;display:block}.glyph-ghost-eye{fill:var(--chat-bg)}.icon-button{border:0;background:transparent;color:var(--fg-secondary);display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;flex-shrink:0;transition:background .18s,color .18s}.icon-button:hover{color:var(--fg-primary);background:var(--row-hover-bg)}.quiet-button{border:0;background:transparent;color:var(--fg-secondary);padding:10px;display:flex;align-items:center;gap:10px;border-radius:10px}.quiet-button:hover{background:var(--row-hover-bg);color:var(--fg-primary)}.quiet-button .glyph{width:19px;height:19px}.sidebar{padding:30px 18px 20px;gap:24px}.brand{display:flex;gap:11px;align-items:center;padding:0 8px;color:var(--fg-primary);text-decoration:none;font-size:19px;font-weight:600;letter-spacing:-.55px}.brand .glyph{width:27px;height:28px}.sidebar-header{gap:6px;flex:none;height:auto}.search-box{display:flex;align-items:center;gap:9px;min-width:0;padding:8px 9px;background:rgba(var(--fg-rgb),.035);border-radius:10px;flex:1}.search-box .glyph{width:16px;height:16px;color:var(--web-muted);flex-shrink:0}.search-box input{width:100%;min-width:0;background:none;border:0;color:var(--fg-primary);font-size:13px;outline:none}.search-box input::placeholder{color:var(--web-muted)}.web-chats{flex:1;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--web-edge) transparent;margin:0 -4px;padding:0 4px}.chat-section{font-size:10px;letter-spacing:1.2px;text-transform:uppercase;font-weight:600;color:var(--web-muted);margin:22px 10px 9px}.chat-section:first-child{margin-top:0}.chat-row{position:relative;display:flex;align-items:center;border-radius:10px;margin:3px 0;min-height:42px;gap:2px}.chat-row:hover{background:var(--row-hover-bg)}.chat-row.active{background:var(--row-active-bg);box-shadow:var(--row-active-lift)}.chat-open{flex:1;min-width:0;background:none;border:0;text-align:left;color:var(--fg-secondary);padding:11px 10px;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.active .chat-open{color:var(--fg-primary)}.chat-row .chat-menu{width:27px;height:27px;margin-right:5px;opacity:0}.chat-row:hover .chat-menu,.chat-row:focus-within .chat-menu{opacity:1}.chat-row .pin-mark{width:13px;height:13px;color:var(--web-muted);margin-right:7px}.sidebar-footer{justify-content:space-between;align-items:center;padding-top:12px;border-top:1px solid var(--web-edge);flex:none}.main::before,.main::after{display:none}.main{overflow:hidden}.web-header{display:flex;align-items:center;gap:10px;padding:15px 18px;flex:none;border-bottom:1px solid transparent;z-index:2}#chat-title{font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;color:var(--fg-secondary)}.connection{font-size:11px;color:var(--web-muted);display:flex;align-items:center;gap:6px;margin-right:6px}.connection::before{content:'';width:5px;height:5px;border-radius:50%;background:#6ac99b}.connection.offline::before{background:#d7ad67}.thread{position:relative;inset:auto;flex:1;min-height:0;scrollbar-width:thin;scrollbar-color:var(--web-edge) transparent;overflow-anchor:none;scroll-padding-bottom:20px}.thread::-webkit-scrollbar{display:block;width:5px}.thread-list{padding:34px 0 50px;gap:36px}.composer-dock{flex:none;padding:0 0 12px;background:linear-gradient(transparent,var(--chat-bg) 15%);z-index:2}.composer{margin:0 auto;padding:17px 17px 12px;gap:15px;border-radius:23px;box-shadow:inset 0 0 0 1px var(--composer-border),0 8px 35px rgba(0,0,0,calc(.16*var(--shadow)))}.composer-input{display:block;resize:none;background:none;border:0;outline:0;position:static;width:100%;min-height:28px;max-height:180px;font-size:16px;line-height:1.55;padding:0 3px;color:var(--fg-primary);overflow:auto;scrollbar-width:thin}.composer-input::placeholder{color:var(--web-muted)}.web-composer-toolbar{display:flex;align-items:center;gap:6px}.web-composer-toolbar select{min-width:0;max-width:240px;border:0;background:transparent;color:var(--fg-secondary);font-size:12px;padding:7px;border-radius:8px;cursor:pointer}.web-composer-toolbar select:hover{background:var(--row-hover-bg)}select option{background:var(--chat-bg);color:var(--fg-primary)}.toolbar-spacer{flex:1}.send-button{width:34px;height:34px;border:0;border-radius:50%;background:rgb(var(--composer-accent-rgb));color:rgb(var(--composer-on-accent-rgb));display:flex;justify-content:center;align-items:center;transition:transform .2s}.send-button:hover:not(:disabled){transform:translateY(-2px)}.send-button .glyph{width:18px;height:18px}.composer-caption{text-align:center;font-size:10px;color:var(--fg-tertiary);padding-top:11px;letter-spacing:.2px}.composer-caption span{padding:0 6px}.web-welcome{display:flex;min-height:100%;flex-direction:column;align-items:center;justify-content:center;padding:30px 24px 70px;text-align:center}.welcome-mark .glyph{height:64px;width:64px;opacity:.86;filter:drop-shadow(0 8px 30px rgba(var(--link-rgb),.1));animation:float 5s ease-in-out infinite}.web-welcome h1{font-weight:500;font-size:29px;letter-spacing:-1.2px;margin:28px 0 7px}.web-welcome p{font-size:14px;color:var(--web-muted);margin:0}.suggestions{display:flex;gap:10px;margin-top:36px;flex-wrap:wrap;justify-content:center}.suggestions button{border:1px solid var(--web-edge);background:transparent;color:var(--fg-secondary);border-radius:12px;padding:11px 14px;font-size:12px;display:flex;gap:9px;align-items:center;transition:background .2s,transform .2s}.suggestions button:hover{background:var(--row-hover-bg);transform:translateY(-2px)}.suggestions .glyph{width:16px;height:16px;opacity:.7}.assistant-head{display:flex;align-items:center;gap:10px;font-size:11px;font-weight:500;color:var(--web-muted);margin-bottom:16px;letter-spacing:.2px}.assistant-head .glyph{width:22px;height:23px;color:var(--fg-secondary)}.message-content{min-width:0}.answer-footer{display:flex;align-items:center;gap:8px;margin-top:16px}.answer-footer .icon-button{width:28px;height:28px}.answer-footer .glyph{width:15px;height:15px}.answer-footer small{font-size:10px;color:var(--fg-tertiary)}.reasoning{font-size:12px;color:var(--fg-secondary);margin:0 0 16px}.reasoning summary{cursor:pointer;color:var(--web-muted)}.reasoning pre{white-space:pre-wrap;font:inherit;padding:15px;max-height:280px;overflow:auto;background:var(--row-hover-bg);border-radius:12px}.thinking-line{display:flex;align-items:center;gap:12px;color:var(--web-muted);font-size:12px;padding:12px 0 5px}.thinking-orbit{position:relative;width:24px;height:24px;display:block}.thinking-orbit i{position:absolute;inset:0;border:1px solid rgba(var(--link-rgb),.2);border-radius:50%;animation:orbit 3.2s cubic-bezier(.37,0,.63,1) infinite}.thinking-orbit i:nth-child(2){inset:5px;animation-delay:-1.6s;border-color:rgba(var(--link-rgb),.55)}.thinking-orbit i:nth-child(3){inset:10px;background:rgba(var(--link-rgb),.75);border:0;animation:breath 2.4s ease-in-out infinite}.message{position:relative}.message-bubble{max-width:85%;font-size:15px}.user-files{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.attachment-image{height:140px;max-width:220px;object-fit:cover;border-radius:14px}.file-link{display:inline-flex;align-items:center;gap:9px;color:var(--fg-secondary);text-decoration:none;border:1px solid var(--web-edge);border-radius:11px;padding:10px 13px;font-size:12px}.file-link .glyph{width:18px;height:18px}.file-link:hover{background:var(--row-hover-bg)}.message-error{margin-top:12px;font-size:13px;color:rgb(var(--danger-rgb))}.latest{position:absolute;right:26px;bottom:184px;border:1px solid var(--web-edge);background:var(--composer-bg);box-shadow:0 5px 18px #0002;z-index:3;border-radius:50%}.drafts{display:flex;gap:7px;flex-wrap:wrap}.draft-item{display:flex;align-items:center;gap:5px;border:1px solid var(--web-edge);border-radius:10px;padding:5px;font-size:11px;max-width:200px}.draft-item img{width:38px;height:38px;object-fit:cover;border-radius:6px}.draft-item span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:120px}.draft-item button{background:none;border:0;color:var(--fg-secondary);padding:4px}.draft-item .glyph{width:13px;height:13px}.login-screen{height:100%;display:grid;place-items:center;padding:24px}.login-card{width:360px;max-width:100%;text-align:center}.brand-mark .glyph{width:66px;height:68px;color:var(--fg-primary)}.login-card h1{font-size:32px;font-weight:550;letter-spacing:-1px;margin:20px 0 5px}.login-card p{color:var(--web-muted);margin:0 0 42px;font-size:14px}.login-card label{display:block;text-align:left;margin-bottom:10px;font-size:12px;color:var(--fg-secondary)}.login-card input{width:100%;background:var(--composer-bg);border:1px solid var(--web-edge);color:var(--fg-primary);border-radius:13px;padding:15px;outline:0}.login-card input:focus{border-color:rgba(var(--link-rgb),.5)}.primary{border:0;background:rgb(var(--composer-accent-rgb));color:rgb(var(--composer-on-accent-rgb));border-radius:12px;padding:13px 18px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:10px}.primary .glyph{width:18px;height:18px}.login-card .primary{width:100%;margin:12px 0 24px}.login-card small{display:block;color:var(--web-muted);font-size:11px;line-height:1.8}.login-card #login-error{margin:0 0 12px;color:rgb(var(--danger-rgb));font-size:12px;min-height:0}.toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);max-width:min(90vw,560px);background:var(--menu-bg);border:1px solid var(--web-edge);color:var(--fg-primary);padding:13px 18px;border-radius:12px;box-shadow:0 8px 30px #0004;z-index:20;font-size:13px}.web-panel,.visual-dialog{background:var(--chat-bg);color:var(--fg-primary);border:1px solid var(--web-edge);box-shadow:0 24px 100px #0006;border-radius:22px;padding:24px;width:min(560px,calc(100% - 30px));max-height:85dvh;overscroll-behavior:contain}.web-panel::backdrop,.visual-dialog::backdrop{background:#0006;backdrop-filter:blur(8px)}.web-panel>header,.visual-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}.web-panel h2{font-size:19px;font-weight:550;letter-spacing:-.5px;margin:0}.panel-stack{display:flex;flex-direction:column;gap:12px}.panel-stack label{font-size:12px;color:var(--fg-secondary);display:flex;flex-direction:column;gap:8px}.panel-stack input,.panel-stack textarea,.panel-stack select{padding:12px;border:1px solid var(--web-edge);border-radius:10px;color:var(--fg-primary);background:var(--composer-bg);width:100%;outline:none}.panel-stack textarea{resize:vertical;min-height:130px}.panel-stack p,.panel-note{font-size:12px;color:var(--web-muted);line-height:1.7;margin:4px 0 10px}.panel-stack .quiet-button{justify-content:flex-start;text-align:left}.danger{color:rgb(var(--danger-rgb))}.panel-stack .primary{align-self:flex-end}.visual-dialog{width:calc(100% - 48px);max-width:1400px;height:calc(100dvh - 48px);max-height:none;padding:20px;overflow:hidden}.visual-dialog>header{font-size:13px;margin-bottom:8px}.visual-hint{font-size:11px;color:var(--web-muted)}#visual-viewport{position:relative;height:calc(100% - 50px);overflow:hidden;touch-action:none;cursor:grab;display:grid;place-items:center}#visual-viewport:active{cursor:grabbing}#visual-content{width:100%;max-width:1000px;transform-origin:center;will-change:transform}#visual-content .md-diagram{margin:0!important;width:100%!important}.expand-visual{position:absolute;top:6px;right:6px;z-index:4;background:var(--chat-bg);width:28px;height:28px;border:1px solid var(--web-edge);opacity:0}.md-diagram:hover .expand-visual,.expand-visual:focus-visible{opacity:1}.md-diagram{position:relative}.files-list{display:flex;flex-direction:column;gap:9px}.browser-tab{margin-bottom:20px}.browser-tab h3{font-size:14px;font-weight:500;margin:0 0 4px}.browser-tab p{font-size:11px;word-break:break-all;color:var(--web-muted)}.browser-tab img{max-width:100%;border-radius:10px;border:1px solid var(--web-edge)}@keyframes orbit{0%,100%{transform:scale(.8) rotate(0);opacity:.5}50%{transform:scale(1) rotate(180deg);opacity:1}}@keyframes breath{0%,100%{opacity:.35;transform:scale(.8)}50%{opacity:.9;transform:scale(1)}}@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media(min-width:1550px){:root{--sidebar-size:300px}}@media(max-width:850px){:root{--sidebar-size:235px;--composer-side-gap:24px}.suggestions{max-width:400px}.connection{display:none}.web-composer-toolbar select{max-width:180px}.markdown .md-wide{max-width:100%;width:100%;margin-left:0;margin-right:0}}@media(max-width:640px){:root{--chat-gap:0px;--chat-radius:0px;--composer-side-gap:20px;--sidebar-size:270px}.main{left:0}.sidebar{background:var(--app-bg);z-index:8;transform:translateX(-100%);transition:transform .25s}.app.mobile-sidebar .sidebar{transform:none;box-shadow:30px 0 100px #0007}.web-header{padding:12px;gap:4px}.web-welcome h1{font-size:25px}.web-welcome p{max-width:270px}.suggestions{flex-direction:column}.thread-list{padding-top:20px;gap:30px}.composer-dock{padding-bottom:max(10px,env(safe-area-inset-bottom))}.composer{padding:14px 12px 9px;border-radius:20px}.web-composer-toolbar select{max-width:148px;padding:6px 2px;font-size:11px}#effort{max-width:75px}.visual-dialog{width:100%;height:100dvh;border-radius:0;padding:14px}.visual-hint{display:none}.expand-visual,.chat-row .chat-menu{opacity:1}.sidebar-footer{margin-bottom:env(safe-area-inset-bottom)}.latest{right:18px;bottom:166px}.brand{padding-top:env(safe-area-inset-top)}}

/* Use the same width for the visual and its centering offset. The desktop
   renderer allows a wider stage; a separate max-width shifts that stage left. */
.thread-list .markdown > .md-wide {
  --wide: min(100cqw - 56px, 100% + 64px, 1320px);
  max-width: none;
}
@media (max-width: 850px) {
  .thread-list .markdown > .md-wide { --wide: 100%; }
}
