@layer tokens,reset,components,utilities,responsive;@layer reset{*,::after,::before{box-sizing:border-box}body,html{width:100%;height:100%}body{margin:0;overflow:hidden}button,input,textarea{font:inherit}button{color:inherit}button:disabled{cursor:not-allowed}}@layer utilities{.hidden,.mobile-only,.view,[hidden]{display:none}.view.active{display:block}}@layer components{.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:8px 14px;border:1px solid var(--dialogue-line);border-radius:7px;background:0 0;color:var(--dialogue-text);cursor:pointer}.btn-primary{border-color:var(--dialogue-accent);background:var(--dialogue-accent);color:var(--dialogue-ink)}.btn-primary:hover{filter:brightness(.96)}.btn-ghost:hover{background:var(--dialogue-hover)}.btn-danger{border-color:#b86666;color:#b86666}.btn-sm{min-height:34px;padding:5px 10px;font-size:12px}.btn-full{width:100%}.input-group{display:grid;gap:8px;color:var(--dialogue-muted);font-size:13px}.chat-search-input,.input-group input{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--dialogue-line);border-radius:7px;outline:0;background:var(--dialogue-bg);color:var(--dialogue-text)}.chat-search-input:focus,.input-group input:focus{border-color:var(--dialogue-accent)}.error-msg{margin:0;color:#d87575;font-size:13px}.auth-view{position:fixed;inset:0;overflow:auto;padding:clamp(28px,6vw,80px);background:var(--dialogue-bg)}.auth-view.active{display:grid;place-items:center}.auth-scene{display:grid;grid-template-columns:minmax(280px,1fr) minmax(320px,440px);align-items:center;gap:clamp(48px,9vw,140px);width:min(1040px,100%)}.auth-hero h1{margin:20px 0 12px;color:var(--dialogue-text);font-size:clamp(38px,5vw,64px);font-weight:500;letter-spacing:-.04em}.auth-hero p{margin:0;color:var(--dialogue-muted);font-size:17px;line-height:1.8}.brand-mark{display:flex;gap:8px}.brand-mark span{width:13px;height:13px;border-radius:50%;background:var(--dialogue-accent)}.brand-mark span+span{opacity:.45}.auth-card{padding:34px;border:1px solid var(--dialogue-line);border-radius:12px;background:var(--dialogue-input)}.auth-header h2{margin:0 0 8px;color:var(--dialogue-text);font-size:25px;font-weight:550}.auth-header p{margin:0}.auth-tabs{display:flex;gap:4px;margin:28px 0 22px;border-bottom:1px solid var(--dialogue-line)}.auth-header p,.auth-tab{color:var(--dialogue-muted)}.auth-tab{flex:1;padding:11px;border:0;border-bottom:2px solid transparent;background:0 0;cursor:pointer}.auth-tab.active{border-color:var(--dialogue-accent);color:var(--dialogue-text)}.auth-form{display:grid;gap:18px}.sidebar-backdrop{z-index:200}.mobile-more-backdrop,.settings-backdrop,.sidebar-backdrop{position:fixed;inset:0;background:#10181766}.batch-action-bar,.mobile-more-group-label,.mobile-more-head,.settings-actions,.settings-head,.sidebar-actions,.sidebar-section-label,.sidebar-title-row,.user-card{display:flex;align-items:center}.mobile-more-group-label,.mobile-more-head,.settings-head,.sidebar-section-label,.sidebar-title-row{justify-content:space-between}.sidebar-title-row h3{margin:0;color:var(--dialogue-text)}.sidebar-chats-wrap{display:flex;flex:1;min-height:0;flex-direction:column}.sidebar-chats{flex:1;min-height:0;overflow-y:auto}.sidebar-section-label{color:var(--dialogue-muted)}.batch-select-btn,.chat-item-delete{border:0;background:0 0;color:var(--dialogue-muted);cursor:pointer}.chat-search-empty{padding:20px 8px;color:var(--dialogue-muted);text-align:center;font-size:13px}.chat-item{position:relative;display:flex;align-items:center;gap:9px;cursor:pointer}.chat-item-body{min-width:0;flex:1}.chat-item-title{overflow:hidden;color:var(--dialogue-text);text-overflow:ellipsis;white-space:nowrap}.chat-item-meta{color:var(--dialogue-muted)}.chat-item-checkbox{width:16px;height:16px;accent-color:var(--dialogue-accent)}.batch-action-bar{gap:8px;padding:12px 8px;border-top:1px solid var(--dialogue-line)}.batch-count{margin-right:auto;color:var(--dialogue-muted);font-size:12px}.user-card{gap:10px}.user-avatar{display:grid;flex:0 0 34px;width:34px;height:34px;place-items:center}.user-meta{display:grid;min-width:0}.user-name{overflow:hidden;color:var(--dialogue-text);text-overflow:ellipsis;white-space:nowrap}.remote-image-copy span,.user-sub{color:var(--dialogue-muted);font-size:11px}.message-action{border:0;cursor:pointer}.message-action-popover .message-action{width:100%}.remote-image-placeholder{display:flex;align-items:center;justify-content:space-between;gap:18px;width:min(100%,520px);margin:10px 0;padding:14px 16px;border:1px solid var(--dialogue-line);border-radius:9px;background:color-mix(in srgb,var(--dialogue-input) 84%,var(--dialogue-hover));color:var(--dialogue-text);text-align:left;cursor:pointer}.remote-image-placeholder:hover{border-color:var(--dialogue-accent)}.remote-image-copy{display:grid;gap:3px;min-width:0}.remote-image-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.remote-image-copy span{font-size:12px}.remote-image-action{flex:0 0 auto;color:var(--dialogue-accent);font-size:13px}.mobile-message-action-sheet{position:fixed;inset:auto 0 0;z-index:420;display:grid;gap:6px;padding:14px 14px calc(14px + env(safe-area-inset-bottom));border-radius:14px 14px 0 0;background:var(--dialogue-input)}.mobile-message-action-grid{display:grid;gap:6px}.mobile-message-action-sheet .message-action{min-height:44px;border-radius:7px;background:0 0;color:var(--dialogue-text)}.mobile-message-action-backdrop{position:fixed;inset:0;z-index:410;background:#10181788}.message-extra-panel summary{display:flex;cursor:pointer;list-style:none}.message-extra-panel summary::-webkit-details-marker{display:none}.message-extra-body{margin-top:8px;color:var(--dialogue-muted)}.search-result-list{display:grid;gap:8px;padding:0;list-style:none}.search-result-link{color:var(--dialogue-accent)}.code-block-shell{position:relative;overflow:hidden;margin:14px 0;background:#15191c}.code-block-toolbar{display:flex;align-items:center;justify-content:space-between;padding:7px 10px;color:#b8c1c5;font-size:11px}.code-block-copy{padding:4px 7px;border:0;background:#ffffff12;color:inherit;cursor:pointer}.code-block-shell pre{margin:0;padding:14px;background:#15191c}.message-content code:not(pre code){padding:.12em .35em;border-radius:4px;background:var(--dialogue-hover)}.message-content blockquote{margin:12px 0;border-left:3px solid var(--dialogue-accent);color:var(--dialogue-muted)}.streaming-cursor::after{content:"";display:inline-block;width:7px;height:1em;margin-left:3px;background:currentColor;animation:blink .8s steps(2) infinite;vertical-align:-.15em}@keyframes blink{50%{opacity:0}}.settings-modal{position:fixed;top:50%;left:50%;z-index:310;width:min(520px,calc(100vw - 32px));max-height:min(760px,calc(100dvh - 32px));overflow:auto;transform:translate(-50%,-50%);border:1px solid var(--dialogue-line);background:var(--dialogue-input);color:var(--dialogue-text)}.settings-backdrop{z-index:300}.settings-head{position:sticky;top:0;z-index:1;border-bottom:1px solid var(--dialogue-line);background:var(--dialogue-input)}.settings-title{font-weight:550}.settings-body,.settings-section{display:grid;gap:14px;padding:18px 22px 24px}.settings-section{padding:16px;border:1px solid var(--dialogue-line);border-radius:9px}.settings-section-title{color:var(--dialogue-text);font-weight:550}.settings-theme{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.settings-theme-btn{min-height:38px;border:0;background:0 0;color:var(--dialogue-muted);cursor:pointer}.settings-theme-btn.active{color:var(--dialogue-text);background:var(--dialogue-hover)}.settings-divider{height:1px;background:var(--dialogue-line)}.settings-subtle{margin:0;color:var(--dialogue-muted);font-size:12px;line-height:1.6}.settings-message{margin:0;font-size:13px}.settings-message[data-kind=error]{color:#d87575}.settings-message[data-kind=success]{color:var(--dialogue-accent)}.settings-actions{justify-content:flex-end}.mobile-more-menu{position:fixed;inset:auto 10px calc(10px + env(safe-area-inset-bottom));z-index:260;flex-direction:column;gap:14px;padding:16px;border:1px solid var(--dialogue-line);border-radius:12px}.mobile-more-backdrop{z-index:250}.mobile-more-title{font-weight:550}.mobile-more-section{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.mobile-more-item{min-height:42px;border:1px solid var(--dialogue-line);border-radius:7px;background:0 0;color:var(--dialogue-text)}.mobile-more-item.active{border-color:var(--dialogue-accent);background:var(--dialogue-hover)}.mobile-more-group-label{color:var(--dialogue-muted);font-size:12px}.app-dialog-backdrop{position:fixed;inset:0;z-index:500;display:grid;place-items:center;padding:20px;background:#10181788}.app-dialog{width:min(430px,100%);padding:22px;border:1px solid var(--dialogue-line);border-radius:12px;background:var(--dialogue-input);color:var(--dialogue-text)}.app-dialog-head{display:grid;gap:7px}.app-dialog-head strong{font-size:19px;font-weight:550}.app-dialog-head span{line-height:1.6}.app-dialog-fields{display:grid;gap:14px;margin:18px 0}.app-dialog-field,.app-dialog-head span{color:var(--dialogue-muted);font-size:13px}.app-dialog-field{display:grid;gap:7px}.app-dialog-input{width:100%;min-height:42px;padding:9px 11px;border:1px solid var(--dialogue-line);border-radius:7px;outline:0;background:var(--dialogue-bg);color:var(--dialogue-text)}.app-dialog-input:focus{border-color:var(--dialogue-accent)}.app-dialog-actions{display:flex;justify-content:flex-end;gap:8px}.app-dialog textarea{min-height:120px;resize:vertical}.toast{position:fixed;right:22px;bottom:22px;z-index:600;max-width:min(360px,calc(100vw - 32px));padding:11px 14px;border-radius:8px;font-size:13px}.scroll-bottom-btn{cursor:pointer}}@layer responsive{@media (max-width:720px){.auth-view{padding:24px 18px}.auth-scene{grid-template-columns:1fr;gap:28px}.auth-hero{text-align:center}.auth-hero h1{margin-top:14px;font-size:36px}.auth-hero p{display:none}.brand-mark{justify-content:center}.auth-card{padding:24px 20px}.settings-modal{inset:auto 0 0;width:100%;max-height:88dvh;transform:none;border-width:1px 0 0}}}@layer tokens{html:root{--dialogue-bg:#23292d;--dialogue-ai:#30383d;--dialogue-input:#282f34;--dialogue-text:#e5e8e9;--dialogue-muted:#aab4ba;--dialogue-line:#465157;--dialogue-accent:#b6cec5;--dialogue-ink:#243730;--dialogue-hover:#394449;--dialogue-avatar:#424c52;--dialogue-reading:920px;--dialogue-rail:76px;--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif}html[data-theme=light]{--dialogue-bg:#fafbf9;--dialogue-ai:#eef2ef;--dialogue-input:#ffffff;--dialogue-text:#29332f;--dialogue-muted:#626e68;--dialogue-line:#cbd3ce;--dialogue-accent:#426b59;--dialogue-ink:#ffffff;--dialogue-hover:#e4ebe5;--dialogue-avatar:#dde4df}}@layer reset{:where(body.selected-ui){margin:0;color:var(--dialogue-text);font-family:var(--font-sans);background:var(--dialogue-bg);-webkit-font-smoothing:antialiased}:where(body.selected-ui) :focus-visible{outline:2px solid var(--dialogue-accent);outline-offset:4px}}@layer utilities{:where(body.selected-ui) .hidden,:where(body.selected-ui) [hidden]{display:none}}@layer components{.ui-icon{display:block;flex:0 0 auto;width:24px;height:24px;background:currentColor;mask:var(--icon) center/contain no-repeat;-webkit-mask:var(--icon) center/contain no-repeat}.icon-chat{--icon:url('/vendor/lucide/message-square.svg')}.icon-plus{--icon:url('/vendor/lucide/plus.svg')}.icon-history{--icon:url('/vendor/lucide/clock-3.svg')}.icon-search{--icon:url('/vendor/lucide/search.svg')}.icon-settings{--icon:url('/vendor/lucide/settings-2.svg')}.icon-send{--icon:url('/vendor/lucide/send.svg')}.icon-chevron{--icon:url('/vendor/lucide/chevron-down.svg')}.icon-close{--icon:url('/vendor/lucide/x.svg')}:where(.server-chat-only),:where(.server-chat-only).active{position:fixed;inset:0;width:100%;height:100dvh;padding:0;overflow:hidden;background:var(--dialogue-bg)}:where(.server-chat-only) .shell{display:grid;grid-template-columns:var(--dialogue-rail) minmax(0,1fr);width:100%;max-width:none;height:100%;min-height:0;padding:0;gap:0;margin:0}:where(.server-chat-only) .main{grid-column:2;width:100%;min-width:0;height:100%;padding:0;overflow:hidden}:where(.server-chat-only) .main-frame{display:flex;flex-direction:column;height:100%;min-height:0;padding:0;border:0;border-radius:0;background:var(--dialogue-bg);box-shadow:none;backdrop-filter:none}:where(.server-chat-only) .dialogue-rail{grid-column:1;grid-row:1;z-index:30;display:flex;flex-direction:column;align-items:center;padding:18px 0 28px;border-right:1px solid var(--dialogue-line);background:var(--dialogue-bg)}:where(.server-chat-only) .rail-button{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:0;border-radius:8px;background:0 0;color:var(--dialogue-muted);cursor:pointer;transition:background .15s,color .15s}:where(.server-chat-only) .rail-button:hover{color:var(--dialogue-text);background:var(--dialogue-hover)}:where(.server-chat-only) .rail-brand{color:var(--dialogue-text)}:where(.server-chat-only) .rail-links{display:grid;gap:20px;margin-top:26px}:where(.server-chat-only) .rail-settings{margin-top:auto}:where(.server-chat-only) .rail-button .ui-icon{width:27px;height:27px}:where(.server-chat-only) .main-header{position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 78px;min-height:78px;margin:0;padding:0 32px;border:0;border-bottom:1px solid var(--dialogue-line);background:var(--dialogue-bg);box-shadow:none}:where(.server-chat-only) .dialogue-wordmark{position:absolute;left:32px;font-size:20px;line-height:1.3;font-weight:450;letter-spacing:-.4px}:where(.server-chat-only) .main-title-block{display:flex;min-width:0;flex:0 1 auto}:where(.server-chat-only) .main-title-copy{display:flex;flex-direction:row;align-items:center;gap:4px;min-width:0;max-width:min(420px,40vw);width:auto;padding:0;border:0;border-radius:0;background:0 0;box-shadow:none}:where(.server-chat-only) .main-title-copy h1{margin:0;max-width:100%;color:var(--dialogue-text);font-size:18px;font-weight:550;letter-spacing:0;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}:where(.server-chat-only) .chat-title-edit{min-width:0;width:260px;height:38px;border:1px solid var(--dialogue-line);border-radius:6px;padding:4px 8px;color:var(--dialogue-text);background:var(--dialogue-input);font:inherit;font-size:17px}:where(.server-chat-only) .header-actions{position:absolute;right:16px;display:flex;gap:4px}:where(.server-chat-only) .icon-btn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;min-width:40px;padding:0;border:0;border-radius:6px;background:0 0;color:var(--dialogue-muted);box-shadow:none;cursor:pointer}:where(.server-chat-only) .icon-btn:hover{background:var(--dialogue-hover)}:where(.server-chat-only) .title-history{width:28px;min-width:28px}:where(.server-chat-only) .title-history .ui-icon{width:18px;height:18px}:where(.server-chat-only) .messages-container.hidden,:where(.server-chat-only) .mobile-only{display:none}:where(.server-chat-only) .content-stage{position:relative;inset:auto;border-radius:0;display:flex;flex:1 1 0;min-height:0;width:100%;padding:0;margin:0;overflow:hidden;background:var(--dialogue-bg)}:where(.server-chat-only) .tab-chat{position:relative;display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;padding:0;overflow:hidden}:where(.server-chat-only) .messages-container{position:relative;inset:auto;height:auto;display:block;flex:1 1 0;width:100%;max-width:none;min-height:0;margin:0;padding:0 0 20px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--dialogue-line) transparent;background:var(--dialogue-bg)}:where(.server-chat-only) .messages-container .message{position:relative;display:grid;grid-template-columns:34px minmax(0,1fr);align-items:start;column-gap:34px;width:100%;max-width:none;min-height:0;margin:0;padding:24px max(32px,calc((100% - var(--dialogue-reading))/2));border:0;border-radius:0;box-shadow:none;backdrop-filter:none;background:var(--dialogue-bg);animation:none}:where(.server-chat-only) .messages-container .message-role-assistant{background:var(--dialogue-ai)}:where(.server-chat-only) .messages-container .message-avatar{display:flex;align-items:center;justify-content:center;flex:none;width:34px;height:34px;margin:0;border:0;border-radius:4px;color:var(--dialogue-text);background:var(--dialogue-avatar);box-shadow:none;font:500 16px/1 var(--font-sans)}:where(.server-chat-only) .messages-container .message-role-assistant .message-avatar{color:var(--dialogue-ink);background:var(--dialogue-accent)}:where(.server-chat-only) .messages-container .message-body{position:relative;display:block;min-width:0;width:100%;padding:0;margin:0;border:0;background:0 0;box-shadow:none}:where(.server-chat-only) .messages-container .message-content{min-width:0;padding:1px 0;margin:0;border:0;border-radius:0;background:0 0;color:var(--dialogue-text);font-size:17px;line-height:1.8;font-weight:400;overflow-wrap:anywhere}:where(.server-chat-only) .message-content p{margin:0 0 12px}:where(.server-chat-only) .message-content>:first-child{margin-top:0}:where(.server-chat-only) .message-content>:last-child{margin-bottom:0}:where(.server-chat-only) .message-content ol,:where(.server-chat-only) .message-content ul{padding-left:1.5em;margin:12px 0}:where(.server-chat-only) .message-content li{margin:4px 0}:where(.server-chat-only) .message-content h1,:where(.server-chat-only) .message-content h2,:where(.server-chat-only) .message-content h3{font-size:1.12em;line-height:1.6;margin:18px 0 8px}:where(.server-chat-only) .message-content table{display:block;width:max-content;max-width:100%;overflow-x:auto;border-collapse:collapse;font-size:.9em}:where(.server-chat-only) .message-content td,:where(.server-chat-only) .message-content th{border:1px solid var(--dialogue-line);padding:8px 12px}:where(.server-chat-only) .message-content img{max-width:100%;height:auto}:where(.server-chat-only) .message-content pre{white-space:pre;overflow-x:auto}:where(.server-chat-only) .message-content .code-block-shell{border-radius:8px}:where(.server-chat-only) .message-content pre code{font-size:13px;line-height:1.7}:where(.server-chat-only) .messages-container .message-actions{position:absolute;right:0;top:-19px;bottom:auto;display:flex;align-items:center;gap:4px;width:auto;min-height:0;margin:0;padding:0;border:0;background:0 0;opacity:0;transition:opacity .12s}:where(.server-chat-only) .messages-container .is-streaming .message-actions,:where(.server-chat-only) .messages-container .message:focus-within .message-actions,:where(.server-chat-only) .messages-container .message:hover .message-actions{opacity:1}:where(.server-chat-only) .message-action,:where(.server-chat-only) .message-status{min-height:22px;height:auto;padding:2px 6px;font-size:11px;line-height:18px;border:0;border-radius:4px;background:0 0;color:var(--dialogue-muted)}:where(.server-chat-only) .message-action:hover{background:var(--dialogue-hover);color:var(--dialogue-text)}:where(.server-chat-only) .message-action-mobile-only{display:none}:where(.server-chat-only) .message-action-menu{position:relative}:where(.server-chat-only) .message-action-popover{display:none;position:absolute;top:25px;right:0;bottom:auto;left:auto;z-index:70;min-width:132px;padding:6px;border:1px solid var(--dialogue-line);border-radius:8px;background:var(--dialogue-input);box-shadow:0 8px 28px #0002;transform:none}:where(.server-chat-only) .message-action-menu.open .message-action-popover{display:grid}:where(.server-chat-only) .message-action-popover .message-action{font-size:13px;padding:8px 10px;text-align:left}:where(.server-chat-only) .message-action-sheet-head{display:none}:where(.server-chat-only) .message-extras{margin-top:12px;font-size:12px;color:var(--dialogue-muted)}:where(.server-chat-only) .older-messages-btn{display:block;margin:16px auto;color:var(--dialogue-muted);background:0 0;border:1px solid var(--dialogue-line);border-radius:6px;padding:8px 14px}:where(.server-chat-only) .input-area{position:relative;inset:auto;flex:0 0 auto;width:100%;max-width:none;padding:24px 32px 40px;margin:0;border:0;background:var(--dialogue-bg);box-shadow:none;backdrop-filter:none;transform:none}:where(.server-chat-only) .composer-shell{position:relative;display:flex;align-items:flex-end;width:min(100%,820px);min-height:64px;margin:0 auto;padding:10px 12px 10px 24px;gap:12px;border:1px solid var(--dialogue-line);border-radius:8px;background:var(--dialogue-input);box-shadow:none;backdrop-filter:none;transition:border-color .15s}:where(.server-chat-only) .composer-shell:focus-within{border-color:var(--dialogue-accent)}:where(.server-chat-only) .message-input{position:relative;inset:auto;height:auto;display:block;flex:1 1 0;width:100%;min-width:0;min-height:42px;max-height:240px;margin:0;padding:7px 0;border:0;border-radius:0;background:0 0;box-shadow:none;color:var(--dialogue-text);font:400 16px/28px var(--font-sans);outline:0;resize:none}:where(.server-chat-only) .message-input::placeholder{color:var(--dialogue-muted);opacity:.85}:where(.server-chat-only) .btn-send{display:flex;align-items:center;justify-content:center;position:static;flex:0 0 42px;width:42px;min-width:42px;height:42px;min-height:42px;margin:0;padding:0;border:0;border-radius:6px;background:0 0;color:var(--dialogue-text);box-shadow:none;transform:none}:where(.server-chat-only) .btn-send:hover:not(:disabled){background:var(--dialogue-hover)}:where(.server-chat-only) .btn-send:disabled{color:var(--dialogue-muted);opacity:.45;cursor:default}:where(.server-chat-only) .btn-send.hidden,:where(.server-chat-only) .empty-state.hidden{display:none}.stop-square{width:14px;height:14px;border-radius:3px;background:currentColor}:where(.server-chat-only) .empty-state{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;padding:32px;color:var(--dialogue-text);background:0 0}:where(.server-chat-only) .empty-state h2{font-size:26px;font-weight:500;margin:0;color:var(--dialogue-text)}:where(.server-chat-only) .empty-state p{font-size:14px;color:var(--dialogue-muted);margin:0}:where(.server-chat-only) .scroll-bottom-btn{position:absolute;right:28px;bottom:138px;width:36px;height:36px;border:1px solid var(--dialogue-line);border-radius:50%;color:var(--dialogue-text);background:var(--dialogue-input);box-shadow:none}:where(.server-chat-only) .sidebar-panel{position:fixed;inset:0 auto 0 var(--dialogue-rail);z-index:220;display:flex;flex-direction:column;width:320px;max-width:calc(100vw - var(--dialogue-rail));height:100dvh;max-height:none;padding:0;border:0;border-right:1px solid var(--dialogue-line);border-radius:0;background:var(--dialogue-bg);box-shadow:12px 0 40px #0002;transform:translateX(-24px);opacity:0;visibility:hidden;pointer-events:none;transition:transform .18s,opacity .18s}:where(.server-chat-only) .sidebar-panel.mobile-open{transform:none;opacity:1;visibility:visible;pointer-events:auto}:where(.server-chat-only) .sidebar-panel.hidden,:where(body.selected-ui) .settings-kicker{display:none}:where(.server-chat-only) .sidebar-panel .sidebar-top{padding:22px 20px 16px;background:0 0;border:0}:where(.server-chat-only) .sidebar-panel .sidebar-title-row{margin-bottom:16px}:where(.server-chat-only) .sidebar-panel h3{font-size:17px;font-weight:550}:where(.server-chat-only) .sidebar-panel .new-chat-btn{min-height:42px;border-radius:7px;font-size:14px}:where(.server-chat-only) .sidebar-panel .sidebar-chats-wrap{padding:0 14px;background:0 0}:where(.server-chat-only) .sidebar-panel .chat-search-shell{padding:0 6px 12px}:where(.server-chat-only) .sidebar-panel .chat-search-input{border-radius:7px;font-size:14px;min-height:40px;box-shadow:none}:where(.server-chat-only) .sidebar-panel .sidebar-section-label{padding:8px;font-size:12px}:where(.server-chat-only) .sidebar-panel .chat-item{border:0;border-radius:8px;margin:3px 0;padding:12px 10px;background:0 0}:where(.server-chat-only) .sidebar-panel .chat-item.active,:where(.server-chat-only) .sidebar-panel .chat-item:hover{background:var(--dialogue-hover)}:where(.server-chat-only) .sidebar-panel .chat-item.active{box-shadow:inset 2px 0 var(--dialogue-accent)}:where(.server-chat-only) .sidebar-panel .chat-item-title{font-size:14px}:where(.server-chat-only) .sidebar-panel .chat-item-meta{font-size:11px;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(.server-chat-only) .sidebar-panel .chat-item-delete{color:var(--dialogue-muted);font-size:11px}:where(.server-chat-only) .sidebar-panel .sidebar-footer{padding:16px 20px;background:0 0;border-top:1px solid var(--dialogue-line)}:where(.server-chat-only) .sidebar-panel .user-card{padding:0;background:0 0;border:0}:where(.server-chat-only) .sidebar-panel .user-avatar{border-radius:5px;background:var(--dialogue-hover);color:var(--dialogue-text);box-shadow:none}:where(body.selected-ui) .settings-modal{border-radius:12px;background:var(--dialogue-input)}:where(body.selected-ui) .settings-head{padding:16px 22px}:where(body.selected-ui) .settings-title{font-size:17px}:where(body.selected-ui) .settings-theme-btn{border-radius:6px}:where(body.selected-ui) .settings-theme-btn.active{box-shadow:inset 0-2px var(--dialogue-accent)}:where(body.selected-ui) .settings-actions .btn-primary{border-radius:7px}:where(body.selected-ui) .settings-backdrop{backdrop-filter:none}:where(body.selected-ui) .auth-hero p{max-width:30em}:where(body.selected-ui) .auth-card,:where(body.selected-ui) .auth-panel{box-shadow:none;background:var(--dialogue-input);border-color:var(--dialogue-line)}:where(body.selected-ui) .auth-hero h1{color:var(--dialogue-text)}:where(body.selected-ui) .auth-card input{background:var(--dialogue-bg);color:var(--dialogue-text);border-color:var(--dialogue-line)}:where(body.selected-ui) .toast{color:var(--dialogue-text);background:var(--dialogue-input);border:1px solid var(--dialogue-line);box-shadow:0 6px 20px #0002}}@layer responsive{@media (min-width:1400px){html:root{--dialogue-rail:96px;--dialogue-reading:1100px}:where(.server-chat-only) .main-header{flex-basis:98px;min-height:98px;padding-inline:40px}:where(.server-chat-only) .dialogue-wordmark{left:40px;font-size:24px}:where(.server-chat-only) .main-title-copy h1{font-size:22px}:where(.server-chat-only) .dialogue-rail{padding-top:28px;padding-bottom:72px}:where(.server-chat-only) .rail-links{gap:40px;margin-top:52px}:where(.server-chat-only) .rail-button .ui-icon{width:32px;height:32px}:where(.server-chat-only) .messages-container .message{grid-template-columns:44px minmax(0,1fr);gap:52px;padding-block:30px}:where(.server-chat-only) .messages-container .message-avatar{width:44px;height:44px;font-size:22px}:where(.server-chat-only) .messages-container .message-content{font-size:22px;line-height:1.9}:where(.server-chat-only) .composer-shell{width:min(100%,926px);min-height:80px;padding:17px 18px 17px 34px}:where(.server-chat-only) .message-input{font-size:20px}:where(.server-chat-only) .input-area{padding-bottom:60px}}@media (max-width:720px){html:root{--dialogue-rail:0px}:where(.server-chat-only) .dialogue-rail,:where(.server-chat-only) .dialogue-wordmark{display:none}:where(.server-chat-only) .main-header .mobile-only,:where(.server-chat-only) .shell{display:flex}:where(.server-chat-only) .main-header{flex:0 0 auto;min-height:62px;padding:calc(8px + env(safe-area-inset-top)) 10px 8px}:where(.server-chat-only) .main-title-copy{max-width:calc(100vw - 174px)}:where(.server-chat-only) .main-title-copy h1{font-size:16px}:where(.server-chat-only) .mobile-sidebar-btn{position:absolute;left:8px;top:calc(10px + env(safe-area-inset-top))}:where(.server-chat-only) .header-actions{right:8px}:where(.server-chat-only) .title-history{display:none}:where(.server-chat-only) .messages-container .message{grid-template-columns:28px minmax(0,1fr);column-gap:14px;padding:22px 18px}:where(.server-chat-only) .messages-container .message-avatar{width:28px;height:28px;font-size:13px}:where(.server-chat-only) .messages-container .message-content{font-size:16px;line-height:1.8}:where(.server-chat-only) .messages-container .message-actions{top:-20px;opacity:1}:where(.server-chat-only) .message-actions>.message-action{display:none}:where(.server-chat-only) .message-action-more{min-width:40px}:where(.server-chat-only) .input-area{padding:12px 12px calc(16px + env(safe-area-inset-bottom))}:where(.server-chat-only) .composer-shell{min-height:56px;border-radius:8px;padding:6px 8px 6px 16px;gap:8px}:where(.server-chat-only) .message-input{font-size:16px;max-height:180px}:where(.server-chat-only) .empty-state h2{font-size:23px}:where(.server-chat-only) .sidebar-panel{width:min(340px,88vw);max-width:88vw}:where(.server-chat-only) .scroll-bottom-btn{bottom:100px;right:16px}:where(.server-chat-only) .mobile-more-menu.open{display:flex;background:var(--dialogue-input);color:var(--dialogue-text)}:where(.server-chat-only) .mobile-more-backdrop.open{display:block}:where(body.selected-ui) .settings-modal{border-radius:14px 14px 0 0}}@media (prefers-reduced-motion:reduce){:where(body.selected-ui) *,:where(body.selected-ui) ::after,:where(body.selected-ui) ::before{animation:none;transition:none;scroll-behavior:auto}}}@layer components{:where(.server-chat-only) .message-action-more{display:inline-flex}:where(.server-chat-only) .header-actions::before,:where(.server-chat-only) .icon-btn::after,:where(.server-chat-only) .icon-btn::before,:where(.server-chat-only) .input-area::before,:where(.server-chat-only) .main-title-copy::before,:where(.server-chat-only) .message::after,:where(.server-chat-only) .message::before,:where(.server-chat-only) [hidden]{display:none}:where(.server-chat-only) .header-actions{display:flex}:where(.server-chat-only) .main-title-copy{justify-content:center}:where(.server-chat-only) .icon-btn .ui-icon{display:block;width:24px;height:24px;background:currentColor;mask:var(--icon) center/contain no-repeat;-webkit-mask:var(--icon) center/contain no-repeat}:where(.server-chat-only) .title-history .ui-icon{width:18px;height:18px}:where(.server-chat-only) .icon-btn,:where(.server-chat-only) .main-title-copy{backdrop-filter:none;-webkit-backdrop-filter:none}:where(.server-chat-only) .mobile-more-btn{font-size:24px;line-height:1}}@layer responsive{@media (max-width:720px){:where(.server-chat-only) .main-title-copy{position:absolute;left:56px;right:96px;top:calc(10px + env(safe-area-inset-top));width:auto;max-width:none;height:40px;min-height:40px}}}@layer components{:where(.server-chat-only) .message-content pre,:where(.server-chat-only) .message-content pre code{white-space:pre;overflow-wrap:normal;word-break:normal}:where(.server-chat-only) .message-content pre{overflow-x:auto}:where(.server-chat-only) .message-content table{display:block;width:max-content;max-width:100%;overflow-x:auto;table-layout:auto;border-radius:6px}:where(.server-chat-only) .message-content td,:where(.server-chat-only) .message-content th{min-width:92px;white-space:nowrap;word-break:normal}:where(.server-chat-only) .message-content blockquote{border-radius:0 6px 6px 0;padding:10px 14px}:where(.server-chat-only) .code-block-copy{border-radius:4px}:where(.server-chat-only) .message-content table,:where(.server-chat-only) .message-content td,:where(.server-chat-only) .message-content tr{color:var(--dialogue-text);background:0 0;box-shadow:none}:where(.server-chat-only) .message-content th{color:var(--dialogue-text);background:var(--dialogue-hover)}:where(.server-chat-only) .code-block-toolbar{background:#23282d}:where(.server-chat-only) .code-block-shell{box-shadow:none}:where(.server-chat-only) .message-extra-panel{border:0;border-radius:4px;background:0 0;box-shadow:none}:where(.server-chat-only) .message-extra-panel summary{justify-content:flex-start;gap:8px;padding:2px 0;color:var(--dialogue-muted);font-size:12px}:where(.server-chat-only) .message-extra-summary{display:none}:where(.server-chat-only) .empty-state::after,:where(.server-chat-only) .empty-state::before,:where(.server-chat-only) .main-frame::after,:where(.server-chat-only) .main-frame::before{display:none;content:none}:where(.server-chat-only) .sidebar-panel.is-dragging-close{transform:translateX(var(--sidebar-drag-offset, 0));transition:none}:where(.server-chat-only) .web-search-toggle{min-height:34px;padding:0 8px;border:0;border-radius:6px;background:0 0;color:var(--dialogue-muted)}:where(.server-chat-only) .web-search-toggle.active{background:var(--dialogue-hover);color:var(--dialogue-accent)}}