.hljs{color:#d6d2c9}.hljs-comment,.hljs-quote{color:#8c8b7f}.hljs-keyword,.hljs-selector-tag,.hljs-literal{color:#c5a2d6}.hljs-string,.hljs-regexp,.hljs-addition{color:#aabc99}.hljs-number,.hljs-symbol,.hljs-bullet{color:#dcb78e}.hljs-title,.hljs-section,.hljs-function .hljs-title{color:#e3ba94}.hljs-built_in,.hljs-type,.hljs-attr{color:#a1b9c6}.hljs-variable,.hljs-template-variable,.hljs-deletion{color:#d39688}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#eae7e2;background:#242424;color-scheme:dark;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--accent: #dda58d;--muted: #93918d;--border: #3a3937}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:default}a{color:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}input:focus-visible,textarea:focus-visible{outline:none}button{border:0}::selection{background:#684d42;color:#fff}.app-shell{display:flex;height:100dvh;min-height:360px;overflow:hidden}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:8px;background:transparent;color:#a5a39f;flex-shrink:0;transition:background .15s,color .15s}.icon-button:hover{background:#ffffff0b;color:#eee}.sidebar{background:#191919;width:268px;flex-shrink:0;display:flex;flex-direction:column;overflow:hidden;border-right:1px solid #ffffff04;transition:width .2s,transform .2s}.sidebar:not(.is-open){width:0;visibility:hidden}.sidebar-brand{display:flex;align-items:center;justify-content:space-between;height:78px;padding:8px 18px 0 24px;min-width:268px}.sidebar-brand a{display:flex;align-items:center;gap:10px;text-decoration:none;font-size:24px;letter-spacing:-.9px;font-weight:600}.sidebar-brand svg{width:27px;height:27px;color:var(--accent)}.sidebar-brand .sidebar-close svg{width:19px;color:#8e8c89}.new-chat{margin:12px 16px 18px;padding:13px 12px;background:#292827;border:1px solid #3a3633;border-radius:10px;display:flex;align-items:center;gap:11px;text-align:left;font-size:13px;white-space:nowrap;transition:background .15s}.new-chat:hover{background:#33302d}.new-chat>svg{color:var(--accent)}.new-chat-plus{margin-left:auto;font-size:19px;color:#87817d}.history-search{display:flex;align-items:center;margin:0 18px 26px;gap:10px;color:#7d7b77;border-radius:6px;padding:8px}.history-search:focus-within{box-shadow:0 0 0 1px #645345}.history-search input{min-width:0;width:100%;background:transparent;border:0;color:#ddd;font-size:12px}.history-search input::placeholder{color:#8e8b87}.history-search button{display:flex;background:transparent;color:#888}.history-heading{padding:0 27px 12px;font-size:11px;font-weight:500;color:#797773;white-space:nowrap}.history-list{padding:0 14px;overflow-y:auto;flex:1;scrollbar-width:thin;scrollbar-color:#3e3b38 transparent}.history-item{display:flex;align-items:center;width:100%;gap:10px;background:transparent;border-radius:7px;min-height:40px;padding:10px 11px;font-size:12px;text-align:left;color:#a9a6a1;margin-bottom:3px}.history-item:hover{background:#252423}.history-item.active{background:#302c29;color:#e9d4c8}.history-item>svg{flex-shrink:0;color:#85807b}.history-item.active>svg{color:#bb927e}.history-item span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-empty{font-size:12px;color:#797773;line-height:1.6;padding:0 13px}.sidebar-bottom{padding:18px 17px;min-width:268px}.local-note{display:flex;align-items:center;gap:7px;color:#817d77;font-size:11px;margin:5px 10px 20px}.local-note-dot{width:5px;height:5px;background:#8f9b84;border-radius:50%}.profile{display:flex;align-items:center;gap:11px;border-top:1px solid #2b2927;padding:17px 5px 0}.avatar{width:33px;height:33px;border-radius:50%;display:grid;place-items:center;background:#45372f;color:#dcc4b5;font-size:13px}.profile strong{display:block;font-size:12px;font-weight:500}.profile span{display:block;margin-top:4px;font-size:10px;color:#7f7c77}.main-panel{display:flex;flex-direction:column;flex:1;min-width:0;position:relative;background:#242424}.chat-header{height:72px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 32px;border-bottom:1px solid #ffffff02;gap:12px}.header-left{display:flex;align-items:center;gap:14px}.header-title{font-size:14px;font-weight:500;letter-spacing:-.2px}.header-separator{color:#5c5955;font-size:13px;padding:0 13px;font-weight:400}.header-subtitle{color:#8e8b87;font-size:12px;font-weight:400}.connection-area{position:relative}.connection-status{background:#ffffff03;border:1px solid #3a3733;border-radius:20px;padding:7px 11px;display:flex;align-items:center;gap:7px;color:#a39a91;font-size:10px;white-space:nowrap}.connection-status:hover{background:#ffffff07}.status-dot{width:5px;height:5px;border-radius:50%;background:#b19b7a}.connected .status-dot{background:#9daa87}.disconnected .status-dot{background:#c5887b}.checking .status-dot{animation:pulse 1.2s ease-in-out infinite}.connection-popover{position:absolute;top:40px;right:0;z-index:15;width:300px;padding:20px;background:#2c2b29;border:1px solid #49423c;box-shadow:0 12px 50px #0005;border-radius:14px}.connection-popover strong{font-size:13px;font-weight:500;padding-right:16px;display:block}.connection-popover p{font-size:12px;line-height:1.7;color:#aaa49d;margin:12px 0}.connection-close{position:absolute;top:7px;right:5px}.chat-panel{flex:1;min-height:0;position:relative}.chat-scroll{height:100%;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#46423e transparent}.is-empty .chat-scroll{display:flex;align-items:center}.welcome{margin:auto;padding:35px 24px 45px;width:100%;max-width:750px}.welcome-intro{display:flex;align-items:center;justify-content:center;gap:10px;color:#c6ada0;font-size:11px;letter-spacing:.3px}.welcome-mark{width:26px;height:26px;color:var(--accent)}.welcome h1{font-family:Georgia,Times New Roman,serif;font-weight:400;font-size:clamp(32px,3.7vw,48px);text-align:center;letter-spacing:-1.7px;line-height:1.18;margin:23px 0 15px;color:#f0ece7}.welcome-subtitle{color:#9f9a93;font-size:13px;line-height:1.8;margin:0;text-align:center}.suggestions{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin:38px auto 0;max-width:578px}.suggestion{border:1px solid #413b36;border-radius:12px;background:linear-gradient(145deg,#2b2926,#272624);text-align:left;padding:17px 18px;transition:background .15s,border-color .15s,transform .15s;min-width:0}.suggestion:hover{background:#322d29;border-color:#786151;transform:translateY(-2px)}.suggestion-top{display:flex;align-items:center;justify-content:space-between;color:#d4a286;margin-bottom:17px}.suggestion:nth-child(2) .suggestion-top{color:#b5accc}.suggestion:nth-child(3) .suggestion-top{color:#a5b49a}.suggestion:nth-child(4) .suggestion-top{color:#c6b485}.suggestion .suggestion-arrow{color:#756d65;opacity:0;transition:opacity .15s}.suggestion:hover .suggestion-arrow,.suggestion:focus-visible .suggestion-arrow{opacity:1}.suggestion strong{display:block;font-size:12px;font-weight:500;margin-bottom:7px;color:#d6d0c8}.suggestion>span{display:block;font-size:10px;color:#8f8880;line-height:1.5}.welcome-footnote{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:30px;color:#716d67;font-size:10px}.tiny-line{width:21px;height:1px;background:#433e38}.composer-area{padding:12px 28px 17px;flex-shrink:0;width:100%;max-width:836px;margin:0 auto}.composer{border:1px solid #4e4841;background:#30302e;border-radius:20px;box-shadow:0 6px 25px #0000000a;padding:17px 17px 12px;transition:border-color .15s}.composer:focus-within{border-color:#736151}.composer.invalid{border-color:#ae7666}.composer textarea{display:block;width:100%;min-height:50px;max-height:220px;resize:none;background:transparent;border:0;color:#e6e0d8;line-height:1.6;font-size:14px;padding:0 3px;scrollbar-width:thin}.composer textarea::placeholder{color:#8f8c86}.composer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:37px;margin-top:9px}.composer-hint{color:#807b75;font-size:9px;display:flex;flex-wrap:wrap;align-items:center;gap:5px;padding-left:3px}.composer-hint kbd{font-family:inherit;color:#989188}.shortcut-divider{margin:0 3px;color:#69635c}.send-button{display:grid;place-items:center;width:35px;height:35px;border-radius:50%;flex-shrink:0;background:var(--accent);color:#292420;transition:background .15s}.send-button:hover:not(:disabled){background:#efbba4}.send-button:disabled{color:#766d63;background:#49443f}.stop-button{background:#e1d1c6}.composer-disclaimer{font-size:9px;color:#77736d;text-align:center;margin:12px 0 0;line-height:1.5}.messages{max-width:792px;margin:0 auto;padding:12px 28px 24px}.conversation-start{color:#69655f;font-size:10px;text-align:center;padding:16px 0 26px}.message{margin-bottom:29px}.user-message{display:flex;justify-content:flex-end;padding-left:52px}.user-bubble{max-width:87%;padding:12px 18px;border-radius:20px 20px 5px;font-size:14px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;color:#e9e3db;background:#383532}.assistant-message{display:flex;gap:15px}.message-mark{color:var(--accent);width:24px;height:24px;flex-shrink:0;margin-top:2px}.assistant-content{flex:1;min-width:0}.markdown{font-size:14px;line-height:1.85;overflow-wrap:anywhere;color:#dcd7cf}.markdown>:first-child{margin-top:0}.markdown>:last-child{margin-bottom:0}.markdown p{margin:0 0 16px}.markdown h1,.markdown h2,.markdown h3{line-height:1.4;margin:25px 0 12px;font-weight:600;color:#eee6dd}.markdown h1{font-size:24px}.markdown h2{font-size:20px}.markdown h3{font-size:17px}.markdown ul,.markdown ol{padding-left:24px}.markdown li{padding-left:3px;margin-bottom:4px}.markdown a{color:#e1b098;text-decoration-color:#9f7968;text-underline-offset:3px}.markdown blockquote{border-left:3px solid #7a604e;padding-left:16px;margin-left:0;color:#bdb3a6}.markdown pre{overflow-x:auto;background:#1c1c1c;border:1px solid #3b3732;padding:17px;border-radius:12px;font-size:12px;line-height:1.7}.markdown code{font-family:SFMono-Regular,Consolas,Liberation Mono,monospace}.markdown :not(pre)>code{padding:3px 5px;border-radius:4px;background:#3b3631;font-size:12px}.markdown table{display:block;overflow-x:auto;width:100%;border-collapse:collapse;margin:18px 0;font-size:12px}.markdown th,.markdown td{border:1px solid #4b4238;padding:8px 12px;text-align:left}.markdown th{background:#302b27}.markdown hr{border:0;border-top:1px solid #484038;margin:25px 0}.image-placeholder{color:#aaa097;font-style:italic}.message-notice{margin:12px 0 0;color:#a69a8f;font-size:11px;line-height:1.7}.message-error{border:1px solid #61473a;border-radius:10px;background:#3b2d261f;padding:13px 15px}.message-error p{margin:0 0 10px;font-size:12px;line-height:1.7;color:#d7aa92}.retry-button{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;background:#45372e;border:1px solid #67503f;border-radius:6px;color:#e1b295;font-size:11px}.retry-button:hover{background:#523e31}.retry-button:disabled{opacity:.5}.message-actions{display:flex;align-items:center;gap:4px;margin-top:9px}.message-actions .icon-button{width:28px;height:28px}.message-actions span{font-size:10px;color:#969086}.thinking{display:flex;gap:4px;min-height:26px;align-items:center}.thinking>span:not(.thinking-label){width:4px;height:4px;border-radius:50%;background:#c5a489;animation:pulse 1.4s infinite}.thinking>span:nth-child(2){animation-delay:.2s}.thinking>span:nth-child(3){animation-delay:.4s}.thinking-label{color:#a49a8f;font-size:12px;margin-left:8px}.scroll-bottom{position:absolute;bottom:6px;left:50%;transform:translate(-50%);border:1px solid #4b433b;border-radius:50%;background:#302c28;box-shadow:0 3px 15px #0004}.sidebar-overlay{display:none}.storage-notice{padding:10px 25px;background:#44332a;color:#dcc0aa;font-size:11px;line-height:1.6}.spin{animation:rotate 1s linear infinite}@keyframes pulse{0%,to{opacity:.4}50%{opacity:1}}@keyframes rotate{to{transform:rotate(360deg)}}@media(min-width:1500px){.welcome{padding-bottom:75px}.welcome h1{font-size:51px}}@media(max-height:780px)and (min-width:860px){.welcome{padding-top:24px;padding-bottom:24px}.welcome h1{font-size:40px;margin:17px 0 10px}.suggestions{margin-top:25px}.welcome-footnote{margin-top:22px}.suggestion{padding:14px 17px}.suggestion-top{margin-bottom:12px}}@media(max-width:859px){.sidebar{position:fixed;inset:0 auto 0 0;z-index:30;width:268px;transform:translate(-100%)}.sidebar:not(.is-open){width:268px}.sidebar.is-open{transform:translate(0)}.sidebar-overlay{display:block;position:fixed;inset:0;background:#0009;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);z-index:29}.chat-header{height:64px;padding:0 18px}.header-left{gap:9px}.welcome{max-width:645px;padding:30px 26px}.welcome h1{font-size:40px}.composer-area{padding:12px 22px max(12px,env(safe-area-inset-bottom))}.messages{padding-left:22px;padding-right:22px}.connection-status{font-size:9px}}@media(max-width:500px){.chat-header{padding:0 12px}.header-separator{padding:0 8px}.header-subtitle{font-size:11px}.connection-status{padding:6px 8px;font-size:8px}.connection-popover{width:min(300px,calc(100vw - 24px))}.welcome{padding:27px 22px}.welcome h1{font-size:34px;letter-spacing:-1.2px;margin-top:20px}.welcome-subtitle{font-size:12px}.welcome-intro{font-size:10px}.suggestions{gap:9px;margin-top:27px}.suggestion{padding:14px 12px;border-radius:10px}.suggestion strong{font-size:11px}.suggestion>span{font-size:9px}.suggestion-top{margin-bottom:14px}.welcome-footnote{font-size:8px;gap:9px;margin-top:23px}.tiny-line{width:12px}.composer-area{padding-left:12px;padding-right:12px}.composer{border-radius:17px;padding:14px 12px 10px}.composer textarea{font-size:16px}.composer-hint{font-size:8px;gap:3px}.shortcut-divider{margin:0 1px}.composer-disclaimer{font-size:8px}.messages{padding:5px 15px 15px}.user-message{padding-left:24px}.user-bubble{font-size:13px}.assistant-message{gap:10px}.message-mark{width:21px;height:21px}.markdown{font-size:13px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}.composer{position:relative}.file-input{display:none}.composer-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.attach-button{color:#b5a596;width:29px;height:29px}.attachment-help-button{background:transparent;color:#a2988b;font-size:10px;padding:6px 4px}.attachment-help-button:hover{color:#e1b99c}.composer-tools .composer-hint{margin-left:5px}.attachment-help{font-size:10px;line-height:1.7;color:#aba094;border-top:1px solid #4b433b;padding-top:10px;margin:10px 3px 0}.attachment-notice{font-size:11px;color:#e0ae97;margin:8px 3px;line-height:1.6}.attachment-list{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:13px}.attachment-card{position:relative;display:flex;align-items:center;max-width:100%;width:240px;border:1px solid #51463b;border-radius:11px;background:#252320;overflow:hidden}.attachment-card.error{border-color:#996b53}.attachment-preview-button{display:flex;align-items:center;gap:10px;padding:10px;flex:1;min-width:0;background:transparent;text-align:left}.attachment-preview-button:hover:enabled{background:#ffffff06}.attachment-icon{display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;border-radius:7px;color:#d6a58b;background:#493a2e;overflow:hidden}.attachment-icon img{width:100%;height:100%;object-fit:cover}.attachment-label{flex:1;min-width:0}.attachment-label strong{display:block;font-weight:500;font-size:11px;color:#e7d8c9;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-label span{display:block;font-size:9px;color:#9f9386;margin-top:5px;line-height:1.4}.attachment-remove{align-self:flex-start;width:24px;height:24px;margin:3px 3px 0 0}.attachment-error{flex-basis:100%;font-size:10px;color:#dbaa93;margin:-4px 0 3px;line-height:1.6;overflow-wrap:anywhere}.dragging{border-color:var(--accent);background:#393029}.drop-hint{position:absolute;inset:0;z-index:3;border-radius:inherit;display:grid;place-items:center;background:#302722ef;color:#edc4aa;border:1px dashed var(--accent);pointer-events:none;font-size:14px}.user-message-body{display:flex;align-items:flex-end;flex-direction:column;max-width:90%;min-width:0}.user-message-body .user-bubble{max-width:100%}.user-message-body .attachment-list{justify-content:flex-end;margin-bottom:10px}.attachment-dialog{width:min(820px,calc(100vw - 32px));max-height:85dvh;border:1px solid #645344;border-radius:16px;background:#282522;color:#e4d9cf;padding:0;box-shadow:0 20px 80px #0008}.attachment-dialog::backdrop{background:#000b;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.attachment-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px 20px;border-bottom:1px solid #51473e;position:sticky;top:0;background:#282522}.attachment-dialog-header div{min-width:0}.attachment-dialog-header strong{display:block;font-size:13px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-dialog-header span{display:block;font-size:10px;color:#9a8e81;margin-top:5px}.attachment-dialog-content{padding:20px;overflow:auto;max-height:65dvh}.attachment-dialog-content img{max-width:100%;max-height:60dvh;height:auto;display:block;margin:0 auto}.attachment-dialog-content pre{font:12px/1.8 ui-monospace,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}@media(max-width:500px){.composer-tools .composer-hint{display:none}.attachment-card{width:100%}.attachment-list{max-height:165px;overflow-y:auto}.user-message-body .attachment-list{max-height:none}.attachment-help-button{font-size:11px}.attachment-dialog-content{padding:14px}}.auth-page{min-height:100dvh;display:grid;place-items:center;padding:28px 16px;background:var(--bg-main, #171717);color:var(--text-primary, #f2f2f2)}.auth-card{width:min(100%,430px);padding:32px;border:1px solid #3a3a3a;border-radius:22px;background:#202020;box-shadow:0 24px 80px #0003}.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:32px;font-size:21px;font-weight:600}.auth-brand svg{margin-left:auto;color:#aba59c}.auth-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#d9b899;color:#241e18}.auth-card h1{font-size:25px;line-height:1.25;margin:0 0 12px;letter-spacing:-.5px}.auth-card p{color:#b7b4ae;line-height:1.6;margin:0 0 24px;font-size:14px}.auth-card form{display:flex;flex-direction:column}.auth-card label{font-size:14px;margin:0 0 8px}.auth-card input:not([type=checkbox]){width:100%;border:1px solid #55514c;background:#171717;color:#f4f0eb;border-radius:10px;padding:12px;margin-bottom:18px;font-size:16px;min-height:46px}.auth-card input:focus{outline:2px solid #d9b899;outline-offset:2px}.auth-card .auth-hint{font-size:12px;margin:-7px 0 20px}.auth-primary,.auth-secondary{width:100%;padding:13px;border-radius:10px;font-size:15px;font-weight:600;cursor:pointer}.auth-primary{border:0;background:#dfc0a4;color:#231d17}.auth-primary:disabled{opacity:.5;cursor:default}.auth-secondary{background:transparent;border:1px solid #777;color:#eee;margin-bottom:16px}.auth-link{width:100%;border:0;background:none;color:#dbbca1;margin-top:18px;padding:8px;cursor:pointer;font-size:13px}.auth-card .auth-private{display:flex;justify-content:center;gap:8px;margin:24px 0 0;font-size:12px}.auth-card .auth-error,.auth-toast{color:#ffc7ba;background:#4c2620;border-radius:9px;padding:12px;font-size:14px}.auth-toast{position:fixed;bottom:16px;right:16px;z-index:100;max-width:400px}.auth-setup{text-align:center;margin-bottom:22px}.auth-setup img{border-radius:12px;background:#fff;margin-bottom:12px}.auth-setup details{font-size:13px;color:#ddd}.auth-setup code{display:block;overflow-wrap:anywhere;padding:14px 0}.recovery-codes{display:grid;gap:8px;padding:16px;background:#141414;border-radius:10px;margin-bottom:20px;font-size:13px}.auth-check{display:flex;gap:10px;align-items:center;padding:8px 0 20px}.auth-shield{color:#dfc0a4;margin-bottom:16px}.auth-signout{border:1px solid #555;background:transparent;color:inherit;border-radius:8px;padding:6px 12px;cursor:pointer;margin-right:12px}@media(max-width:480px){.auth-card{padding:24px 20px}.connection-status>span:not(.status-dot){display:none}}
