:root{color:#000;background:#fff;font-family:Inter,Noto Sans SC,Microsoft YaHei,system-ui,sans-serif;font-synthesis:none}*{box-sizing:border-box}html,body,#lite-root{width:100%;min-height:100dvh;height:100dvh;margin:0}body{overflow:hidden;background:#fff}button,textarea,input,select{font:inherit}button{cursor:pointer}button,a,input,textarea,select,[role=button],.message-bubble{-webkit-tap-highlight-color:transparent}html{background-position:center;background-size:cover;background-repeat:no-repeat}.lite-shell{width:min(100%,780px);height:var(--lite-viewport-height, 100dvh);margin:0 auto;position:relative;overflow:hidden;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;background:#faf8f4e6;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);box-shadow:0 0 60px #27241f1f}.lite-header{padding:calc(env(safe-area-inset-top,0px) + 14px) 18px 12px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(44,76,63,.08)}.lite-identity{display:flex;align-items:center;gap:12px}.lite-avatar{width:44px;height:44px;display:grid;place-items:center;color:#f8f4e8;background:#294d3e;border-radius:15px;font:700 20px/1 Georgia,serif;box-shadow:0 8px 20px #294d3e38;overflow:hidden}.lite-avatar img,.avatar-preview img{width:100%;height:100%;display:block;object-fit:cover}.lite-identity h1{margin:0 0 3px;font:700 18px/1.2 Georgia,"Noto Serif SC",serif}.lite-identity p{margin:0;color:#6a7c73;font-size:12px}.header-actions{display:flex;gap:8px}.status-dot{display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:50%;background:#c58a44}.status-dot.online{background:#4c9b73;box-shadow:0 0 0 3px #4c9b7321}.icon-button{width:42px;height:42px;display:grid;place-items:center;color:#375648;border:0;border-radius:14px;background:#2d504114}.context-strip{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 18px;color:#63766d;background:#e6eee9ad;font-size:12px}.context-strip>span:first-child{display:flex;align-items:center;gap:6px}.strip-button{min-width:0;display:flex;align-items:center;gap:6px;padding:0;overflow:hidden;color:#63766d;border:0;background:transparent;font-size:12px;white-space:nowrap;text-overflow:ellipsis}.strip-button:disabled{cursor:default;opacity:.62}.api-chip{max-width:46%;padding:5px 24px 5px 9px;overflow:hidden;color:#795a36;border:1px solid rgba(154,112,63,.14);border-radius:10px;outline:0;background:#f6ebdab8;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.message-stage{width:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:24px 18px 18px;scroll-padding-bottom:32px;display:block;background-position:center;background-size:cover}.message-stage.is-empty{display:grid;place-items:center}.message-stage.has-chat-background{background-color:#eeeae3}.message-list{width:100%;min-height:100%;flex:0 0 auto;display:flex;flex-direction:column;justify-content:flex-end;gap:10px}.handoff-label{align-self:center;display:flex;align-items:center;gap:6px;margin:4px 0 12px;padding:7px 11px;color:#6c7e75;border:1px solid rgba(56,91,76,.1);border-radius:999px;background:#edf2efcc;font-size:11px}.message-row{max-width:min(88%,590px);display:flex;align-items:flex-end;gap:6px}.message-row.assistant{align-self:flex-start}.message-row.user{align-self:flex-end;flex-direction:row-reverse}.message-bubble{max-width:100%;padding:11px 14px 8px;border-radius:19px;box-shadow:0 7px 22px #2340340f;touch-action:pan-y;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.message-bubble:focus-visible{outline:2px solid #858078;outline-offset:2px}.message-bubble p{margin:0;font-size:var(--lite-message-font-size, 14px);line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.message-time{flex:0 0 auto;margin-bottom:2px;color:#89847c;font-size:9px;line-height:1;white-space:nowrap}.message-bubble.assistant{align-self:flex-start;color:#2d453b;border:1px solid rgba(50,79,66,.09);border-bottom-left-radius:7px;background:#fff}.message-bubble.user{align-self:flex-end;color:#f5faf7;border-bottom-right-radius:7px;background:#315c49}.typing-bubble{align-self:flex-start;display:flex;gap:4px;padding:13px 16px;border-radius:18px 18px 18px 7px;background:#fff}.typing-bubble i{width:6px;height:6px;border-radius:50%;background:#8ba095;animation:typing 1.2s infinite ease-in-out}.typing-bubble i:nth-child(2){animation-delay:.15s}.typing-bubble i:nth-child(3){animation-delay:.3s}@keyframes typing{0%,70%,to{opacity:.3;transform:translateY(0)}35%{opacity:1;transform:translateY(-3px)}}.empty-card{width:min(100%,430px);margin:auto;padding:30px 26px;text-align:center;border:1px solid rgba(53,87,72,.12);border-radius:28px;background:#ffffffb8;box-shadow:0 18px 50px #23433614}.empty-icon{width:52px;height:52px;margin:0 auto 16px;display:grid;place-items:center;color:#ae7839;border-radius:18px;background:#f5ead7}.empty-card h2{margin:0 0 10px;font:700 24px/1.2 Georgia,"Noto Serif SC",serif}.empty-card p{margin:0;color:#65776e;font-size:14px;line-height:1.75}.empty-card button{margin-top:22px;padding:11px 18px;color:#fff;border:0;border-radius:14px;background:#315c49;font-weight:700}.composer{position:relative;z-index:5;flex:0 0 auto;padding:12px 14px calc(env(safe-area-inset-bottom,0px) + 14px);display:flex;align-items:flex-end;gap:10px;border-top:1px solid rgba(44,76,63,.1);background:#f8faf8eb}.composer textarea{min-height:48px;max-height:144px;flex:1;resize:none;padding:13px 16px;color:#243b31;border:1px solid rgba(45,79,64,.14);border-radius:17px;outline:none;background:#fff;font-size:var(--lite-message-font-size, 14px);line-height:1.45}.composer textarea:focus{border-color:#527a68;box-shadow:0 0 0 3px #4a77621f}.generate-button,.sticker-button,.menu-button{width:48px;height:48px;display:grid;place-items:center;color:#fff;border:0;border-radius:17px;background:#315c49}.generate-button{color:#faf9f6;background:#343433}.sticker-button,.menu-button{flex:0 0 auto;color:#65615b;border:0;background:transparent}.sticker-button:disabled,.generate-button:disabled,.menu-button:disabled{cursor:default;opacity:.35}.message-bubble.sticker-message{padding:5px;overflow:hidden;background:transparent!important;border:0!important;box-shadow:none!important}.message-bubble.sticker-message img{width:min(156px,34vw);max-height:156px;display:block;object-fit:contain;border-radius:14px}.notice{position:fixed;z-index:80;top:calc(env(safe-area-inset-top,0px) + 12px);left:50%;width:min(calc(100% - 28px),520px);margin:0;padding:10px 12px;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:8px;border-radius:13px;box-shadow:0 10px 35px #1414142e;font-size:12px;line-height:1.5;transform:translate(-50%);animation:toast-in .2s ease-out both;pointer-events:none}.notice.success{color:#246244;background:#def1e6}.notice.error{color:#8a3f35;background:#fae5e1}.notice.info{color:#68552c;background:#f4ecd4}.composer-tray{position:absolute;z-index:6;right:10px;bottom:calc(env(safe-area-inset-bottom,0px) + 80px);left:10px;max-height:min(42vh,330px);padding:12px;overflow:hidden;border:1px solid rgba(70,66,60,.14);border-radius:20px;background:#f7f4effa;box-shadow:none;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);animation:tray-in .2s cubic-bezier(.2,.8,.2,1) both}.function-tray{right:auto;width:max-content;padding:7px;display:flex;align-items:center;gap:6px;border:0;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}.theme-light.lite-shell{color:#000;background:radial-gradient(circle at 8% 6%,rgba(255,255,255,.94),transparent 34%),radial-gradient(circle at 92% 88%,rgba(200,202,202,.38),transparent 38%),linear-gradient(150deg,#f4f4f4,#e8e9e9)}.lite-shell.has-chat-background,.theme-light.lite-shell.has-chat-background,.theme-dark.lite-shell.has-chat-background{background:transparent}.function-tray>button{width:44px;height:42px;padding:0;display:grid;place-items:center;color:#45423e;border:1px solid #ddd7cf;border-radius:12px;background:#fffdf9}.function-tray>button:disabled{cursor:default;opacity:.35}.composer-tray-title{margin-bottom:9px;display:flex;align-items:center;justify-content:space-between;gap:8px;color:#777169;font-size:11px}.composer-tray-title button{width:30px;height:30px;display:grid;place-items:center;color:inherit;border:0;border-radius:10px;background:#3c393512}.sticker-tray{max-height:min(38vh,224px);padding:10px;display:flex;flex-direction:column}.sticker-tray .sticker-grid{min-height:0}.sticker-grid button{touch-action:manipulation;user-select:none;-webkit-user-select:none}.add-sticker-tile{place-content:center;color:#66615a!important}.sticker-editor-dialog{width:min(100%,520px);max-height:min(82dvh,680px);padding:18px;overflow-y:auto;color:#302f2c;border-radius:22px;background:#f7f4ef;box-shadow:0 24px 70px #18161347;animation:modal-in .22s cubic-bezier(.2,.8,.2,1) both}.sticker-editor-dialog label{display:block;margin-top:13px;color:#6f6a63;font-size:12px;font-weight:700}.sticker-editor-dialog input,.sticker-editor-dialog textarea{width:100%;margin-top:6px;padding:12px;color:#353330;border:1px solid #ddd7cf;border-radius:12px;outline:0;background:#fffdf9;line-height:1.5}.sticker-editor-dialog textarea{resize:vertical}.message-editor-dialog textarea{min-height:132px}.sticker-editor-dialog input:focus,.sticker-editor-dialog textarea:focus{border-color:#858078;box-shadow:0 0 0 3px #4e4a4417}.sticker-editor-dialog>.primary-button{width:100%;margin-top:14px}.sticker-editor-footer{margin-top:16px;display:flex;align-items:center;justify-content:space-between;gap:12px}.sticker-editor-footer .primary-button{min-width:130px;padding:0 15px}.copy-chat-api{margin-top:6px}.background-setting{margin-top:16px;display:flex;align-items:center;gap:12px}.background-setting>div:last-child{display:flex;align-items:flex-start;flex-direction:column}.background-preview{width:72px;height:72px;flex:0 0 auto;display:grid;place-items:center;color:#8b857d;border:1px solid #ded8cf;border-radius:16px;background:#eeeae3 center/cover no-repeat}.background-preview.custom svg{opacity:0}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10;display:flex;align-items:flex-end;justify-content:center;padding-top:40px;background:#121f1961;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.settings-sheet{width:min(100%,780px);max-height:88dvh;overflow-y:auto;padding:9px 20px calc(env(safe-area-inset-bottom,0px) + 24px);border-radius:28px 28px 0 0;background:#f6f8f6;box-shadow:0 -18px 55px #142c222e}.sheet-handle{width:42px;height:5px;margin:0 auto 18px;border-radius:99px;background:#ccd7d1}.sheet-title-row{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:18px}.eyebrow{color:#a26d32;font-size:10px;font-weight:800;letter-spacing:.16em}.sheet-title-row h2{margin:4px 0 0;font:700 25px/1.2 Georgia,"Noto Serif SC",serif}.text-button{padding:8px 2px;color:#315c49;border:0;background:transparent;font-weight:800}.settings-tabs{position:sticky;top:-9px;z-index:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:7px;overflow-x:auto;border:1px solid #dce4df;border-radius:15px;background:#f6f8f6f0;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.settings-tabs button{min-height:36px;padding:7px 10px;color:#66786f;border:0;border-radius:10px;background:transparent;font-size:12px;font-weight:750;white-space:nowrap}.settings-tabs button.active{color:#f7faf8;background:#315c49;box-shadow:0 5px 14px #315c492e}.settings-section-panel{animation:panel-in .2s ease-out both}.setting-card{margin-top:12px;padding:18px;border:1px solid #dce4df;border-radius:20px;background:#fff}.setting-card strong{font-size:15px}.setting-card p{margin:5px 0 0;color:#718178;font-size:12px;line-height:1.55}.setting-card-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:15px}.small-actions{display:flex;gap:6px}.round-action{width:34px;height:34px;display:grid;place-items:center;color:#315c49;border:1px solid #dae4df;border-radius:11px;background:#f5f8f6}.round-action.danger{color:#9b4f45}.template-button{flex:0 0 auto;padding:7px 10px;color:#315c49;border:1px solid #cad8d1;border-radius:10px;background:#f5f8f6;font-size:11px;font-weight:750}.setting-card label{display:block;margin-top:11px;color:#687a71;font-size:11px;font-weight:700}.setting-card input,.setting-card select,.setting-card textarea{width:100%;margin-top:6px;padding:11px 12px;color:#243b31;border:1px solid #dae3de;border-radius:12px;outline:0;background:#f8faf8;font-size:13px;line-height:1.45}.setting-card textarea{resize:vertical;min-height:92px}.setting-card input:focus,.setting-card select:focus,.setting-card textarea:focus{border-color:#5d836f;box-shadow:0 0 0 3px #4a77621a}.field-hint{margin:0;color:#728078;font-size:.72rem;line-height:1.55;overflow-wrap:anywhere}.field-hint code{padding:1px 4px;border-radius:4px;background:#edf2ef;font-size:.68rem}.toggle-line{display:flex!important;flex-direction:row!important;align-items:center;gap:.65rem!important;padding:.72rem .8rem;border-radius:14px;background:#f1f6f2;color:#31443a!important}.toggle-line input{width:18px!important;height:18px;margin:0;accent-color:#416f58;box-shadow:none!important}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.button-row{display:grid;grid-template-columns:1fr 1.2fr;gap:9px;margin-top:15px}.primary-button,.secondary-button{min-height:43px;display:flex;align-items:center;justify-content:center;gap:7px;border-radius:13px;font-size:12px;font-weight:800}.primary-button{color:#fff;border:1px solid #315c49;background:#315c49}.secondary-button{color:#315c49;border:1px solid #ccd9d2;background:#f6f9f7}.primary-button:disabled,.secondary-button:disabled{cursor:default;opacity:.5}.sql-toggle,.danger-link{padding:10px 0 0;color:#6e7f76;border:0;background:transparent;font-size:11px;text-decoration:underline;text-underline-offset:3px}.danger-link{color:#9a5147}.sql-box{margin-top:10px;overflow:hidden;border:1px solid #dde5e0;border-radius:13px;background:#17211d}.sql-box>div{padding:9px 10px;display:flex;align-items:center;justify-content:space-between;gap:8px;color:#c7d4cd;background:#223129;font-size:10px}.sql-box button{display:flex;align-items:center;gap:4px;color:#f2d5a9;border:0;background:transparent;font-size:10px}.sql-box pre{max-height:240px;margin:0;padding:12px;overflow:auto;color:#d8e5dd;font:10px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre;-webkit-user-select:text;user-select:text}.compact-card{margin-bottom:8px}.prompt-preview{margin-top:12px;color:#5c6e65;font-size:12px}.prompt-preview summary{cursor:pointer;color:#315c49;font-weight:750}.prompt-preview div{margin-top:12px;padding:12px;border-radius:12px;background:#f5f8f6}.prompt-preview ul{margin:6px 0 0;padding-left:18px;line-height:1.6}.prompt-preview li+li{margin-top:4px}.memory-import-row{margin-top:12px;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:14px;color:#31443a;border:1px dashed #bdcec5;border-radius:16px;background:#eef4f0}.memory-import-row strong{font-size:13px}.memory-import-row p{margin:4px 0 0;color:#718178;font-size:11px;line-height:1.5}.memory-import-row .secondary-button{flex:0 0 auto;padding:0 13px}.credential-state{margin-top:5px!important;color:#8a8379!important;font-size:10px!important}.credential-state.ready{color:#55514b!important}.model-actions{margin-top:9px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.memory-tool-actions{margin-top:14px;display:grid;grid-template-columns:1fr 1.2fr;gap:8px}.archive-context-button{width:100%;margin-top:10px;padding:0 13px}.vector-stats{margin-top:10px;padding:12px;display:grid;grid-template-columns:1fr 1fr;gap:8px;border:1px solid #ded8cf;border-radius:14px;background:#f3efe9}.vector-stats div{min-width:0}.vector-stats span{display:block;color:#827c74;font-size:10px}.vector-stats strong{display:block;margin-top:3px;color:#3b3935;font-size:15px}.vector-stats small{grid-column:1 / -1;overflow-wrap:anywhere;color:#89837b;font-size:9px}.synced-memory-overview{margin-bottom:10px}.synced-memory-totals{display:grid;grid-template-columns:1fr 1fr;gap:8px}.synced-memory-totals div{min-width:0;padding:11px 12px;border:1px solid #ded8cf;border-radius:13px;background:#f3efe9}.synced-memory-totals span{display:block;color:#827c74;font-size:10px}.synced-memory-totals strong{display:block;margin-top:4px;overflow:hidden;color:#3b3935;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.synced-memory-room-summary{margin-top:10px;display:flex;flex-wrap:wrap;gap:6px}.synced-memory-char-id code{-webkit-user-select:text;user-select:text}.synced-memory-room-summary span,.synced-memory-tags span{padding:4px 7px;color:#66615a;border-radius:8px;background:#eeeae3;font-size:10px}.compatibility-note{margin-top:12px;padding:12px;color:#5f5a53;border:1px dashed #ccc5bb;border-radius:14px;background:#f4f0ea;font-size:11px;line-height:1.6}.compatibility-note strong{color:#3d3a36;font-size:12px}.compatibility-note ol{margin:7px 0 0;padding-left:20px}.compatibility-note li+li{margin-top:3px}.synced-memory-list{display:flex;flex-direction:column;gap:9px}.synced-memory-empty{min-height:120px;padding:24px;display:flex;align-items:center;justify-content:center;gap:8px;color:#7b766f;border:1px dashed #d3ccc2;border-radius:18px;background:#fffdf985;font-size:12px;text-align:center}.synced-memory-card{padding:14px;border:1px solid #ddd7cf;border-radius:17px;background:#fffdf9}.synced-memory-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.synced-memory-card-head>div:first-child{display:flex;align-items:center;flex-wrap:wrap;gap:6px;color:#79736b;font-size:10px}.synced-memory-card-head b{font-weight:750}.synced-memory-card-head i{padding:2px 5px;border-radius:6px;background:#ece7df;font-style:normal}.synced-memory-card p{margin:9px 0 0;color:#393632;font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;-webkit-user-select:text;user-select:text}.synced-memory-card>small{margin-top:9px;display:block;color:#918a81;font-size:9px;overflow-wrap:anywhere}.synced-memory-tags{margin-top:8px;display:flex;flex-wrap:wrap;gap:5px}.synced-memory-footnote{margin:12px 4px 0;color:#7b766f;font-size:10px;line-height:1.55}.synced-memory-editor{width:min(100%,560px)}.synced-memory-editor select{width:100%;margin-top:6px;padding:12px;color:#353330;border:1px solid #ddd7cf;border-radius:12px;outline:0;background:#fffdf9;line-height:1.5}.synced-memory-editor select:focus{border-color:#858078;box-shadow:0 0 0 3px #4e4a4417}.identity-panel h3{margin:0 0 14px;font:700 19px/1.2 Georgia,"Noto Serif SC",serif}.avatar-setting-row{display:flex;align-items:center;gap:13px;margin-bottom:13px}.avatar-preview{width:58px;height:58px;flex:0 0 auto;display:grid;place-items:center;overflow:hidden;color:#faf8f3;border-radius:18px;background:#30302f;font:700 22px/1 Georgia,serif}.avatar-actions{display:flex;align-items:flex-start;flex-direction:column;gap:4px}.avatar-upload-button{min-height:38px;margin:0!important;padding:0 12px;display:inline-flex!important;align-items:center;gap:7px;color:#45433f!important;border:1px solid #d9d3ca;border-radius:11px;background:#f5f2ed;font-size:12px!important;cursor:pointer}.avatar-upload-button input{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.avatar-actions .danger-link{padding-top:5px}.appearance-card>label{font-size:12px}.theme-choice{margin-top:7px;padding:4px;display:grid;grid-template-columns:1fr 1fr;gap:4px;border:1px solid #ded8cf;border-radius:13px;background:#eeeae3}.theme-choice button{min-height:38px;color:#777169;border:0;border-radius:9px;background:transparent;font-weight:750}.theme-choice button.active{color:#faf9f6;background:#3a3937}.range-value{float:right;color:#45423e;font-variant-numeric:tabular-nums}.appearance-card input[type=range]{padding:0;accent-color:#55514b}.font-preview{margin-top:14px;padding:14px;color:#363431;border:1px solid #ded8cf;border-radius:14px;background:#fffdf9;line-height:1.65}.model-picker-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;padding:18px;display:grid;place-items:center;background:#1615147a;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.model-picker{width:min(100%,560px);max-height:min(78dvh,680px);padding:18px;display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:12px;color:#302f2c;border-radius:22px;background:#f7f4ef;box-shadow:0 24px 70px #18161347}.model-picker-backdrop,.sheet-backdrop{animation:backdrop-in .18s ease-out both}.model-picker,.memory-preview{animation:modal-in .22s cubic-bezier(.2,.8,.2,1) both}.settings-sheet{animation:sheet-in .24s cubic-bezier(.2,.8,.2,1) both}.model-picker-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.model-picker-header span{color:#817b73;font-size:10px}.model-picker-header h2{margin:3px 0 0;font:700 21px/1.2 Georgia,"Noto Serif SC",serif}.model-search{width:100%;min-height:43px;padding:10px 13px;color:#34322f;border:1px solid #d8d2c9;border-radius:12px;outline:0;background:#fffdf9}.model-search:focus{border-color:#7c7770;box-shadow:0 0 0 3px #4d49431a}.model-list{min-height:120px;overflow-y:auto;display:flex;flex-direction:column;gap:5px}.model-list button{min-height:43px;padding:9px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px;overflow-wrap:anywhere;color:#4b4843;text-align:left;border:1px solid transparent;border-radius:11px;background:transparent}.model-list button:hover,.model-list button.selected{border-color:#d7d1c8;background:#ece8e1}.model-list button.selected{color:#292826;font-weight:750}.model-empty{padding:34px 12px;color:#817b73;text-align:center;font-size:13px}.memory-preview{width:min(100%,560px);max-height:min(78dvh,680px);padding:18px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:12px;overflow:hidden;color:#302f2c;border-radius:22px;background:#f7f4ef;box-shadow:0 24px 70px #18161347}.sticker-grid{max-height:168px;overflow-y:auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:80px;gap:8px}.sticker-grid button{min-width:0;min-height:0;padding:5px;display:grid;grid-template-rows:minmax(0,1fr) auto;place-items:center;gap:3px;color:inherit;border:1px solid #ddd7cf;border-radius:12px;background:#fffdf9}.sticker-grid img{width:52px;height:52px;max-width:100%;display:block;object-fit:contain;border-radius:9px}.sticker-grid span{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.memory-preview-hint{margin:0;color:#777169;font-size:12px;line-height:1.55}.memory-preview-list{min-height:120px;overflow-y:auto;display:flex;flex-direction:column;gap:8px}.memory-preview-list article{padding:12px;border:1px solid #ddd7cf;border-radius:14px;background:#fffdf9}.memory-preview-list article>div{display:flex;justify-content:space-between;gap:8px;color:#777169;font-size:10px}.memory-preview-list article p{margin:8px 0 0;color:#34322f;font-size:13px;line-height:1.65;white-space:pre-wrap}.memory-preview-list article small{margin-top:7px;display:block;color:#89837b;font-size:10px}.preview-actions{display:grid;grid-template-columns:.8fr 1.2fr;gap:8px}@keyframes backdrop-in{0%{opacity:0}}@keyframes panel-in{0%{opacity:0;transform:translateY(7px)}}@keyframes modal-in{0%{opacity:0;transform:translateY(10px) scale(.985)}}@keyframes sheet-in{0%{transform:translateY(24px);opacity:.75}}@keyframes tray-in{0%{opacity:0;transform:translateY(10px) scale(.985)}}@keyframes toast-in{0%{opacity:0;transform:translate(-50%,-8px)}}.lite-crash-screen{width:100%;min-height:100dvh;padding:24px;display:grid;place-items:center;color:#000;background:#fff}.lite-crash-screen section{width:min(100%,420px);padding:28px;border:1px solid #d4d4d4;border-radius:24px;background:#fff;text-align:center}.lite-crash-screen h1{margin:0 0 10px;font:700 24px/1.2 Georgia,"Noto Serif SC",serif}.lite-crash-screen p{margin:0;color:#666;line-height:1.7}.lite-crash-screen code{margin-top:14px;padding:10px;display:block;overflow-wrap:anywhere;color:#333;border-radius:10px;background:#eee;font:11px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;-webkit-user-select:text;user-select:text}.lite-crash-screen button{margin-top:18px;padding:11px 18px;color:#fff;border:0;border-radius:12px;background:#000;font-weight:750}.spin{animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}html[data-lite-theme=light] body{color:#000;background:#fff}.theme-light .message-time{color:#707070}.theme-light .identity-panel,.theme-light .font-preview,.theme-light .model-picker{border-color:#d4d4d4}.theme-light.lite-shell{color:#000;background:#fff;box-shadow:0 0 60px #0000001a}.theme-light .lite-header{border-color:#e5e5e5}.theme-light .lite-avatar{color:#fff;background:#000;box-shadow:0 8px 20px #0000002e}.theme-light .lite-identity p,.theme-light .context-strip,.theme-light .strip-button{color:#666}.theme-light .status-dot{background:#aaa}.theme-light .status-dot.online{background:#111;box-shadow:0 0 0 3px #0000001a}.theme-light .icon-button{color:#111;background:#f2f2f2}.theme-light .context-strip{background:#f5f5f5}.theme-light .api-chip{color:#222;border-color:#d9d9d9;background:#fff}.theme-light .handoff-label{color:#666;border-color:#ddd;background:#f7f7f7}.theme-light .message-bubble{box-shadow:0 7px 22px #0000000f}.theme-light .message-bubble.assistant,.theme-light .typing-bubble{color:#000;border-color:#dedede;background:#fff}.theme-light .message-bubble.user{color:#fff;background:#000}.theme-light .typing-bubble i{background:#777}.theme-light .empty-card{border-color:#dedede;background:#fff;box-shadow:0 18px 50px #00000014}.theme-light .empty-icon{color:#000;background:#ededed}.theme-light .empty-card p{color:#666}.theme-light .empty-card button,.theme-light .primary-button,.theme-light .generate-button{color:#fff;border-color:#000;background:#000}.theme-light .sticker-button,.theme-light .menu-button{color:#333}.theme-light .composer{border-color:#e5e5e5;background:#fff}.theme-light .composer textarea{color:#000;border-color:#d4d4d4;background:#fff}.theme-light .composer textarea:focus{border-color:#000;box-shadow:0 0 0 3px #00000014}.theme-light .sheet-backdrop{background:#0006}.theme-light .settings-sheet{color:#000;background:#fff;box-shadow:0 -18px 55px #0003}.theme-light .sheet-handle{background:#bbb}.theme-light .eyebrow{color:#666}.theme-light .text-button,.theme-light .round-action,.theme-light .template-button,.theme-light .prompt-preview summary{color:#111}.theme-light .settings-tabs{border-color:#dedede;background:#fff}.theme-light .settings-tabs button{color:#666}.theme-light .settings-tabs button.active{color:#fff;background:#000;box-shadow:0 5px 14px #00000029}.theme-light .setting-card{border-color:#dedede;background:#fff}.theme-light .setting-card p,.theme-light .field-hint,.theme-light .memory-import-row p{color:#666}.theme-light .setting-card label{color:#444}.theme-light .setting-card input,.theme-light .setting-card select,.theme-light .setting-card textarea{color:#000;border-color:#d4d4d4;background:#f7f7f7}.theme-light .setting-card input:focus,.theme-light .setting-card select:focus,.theme-light .setting-card textarea:focus{border-color:#000;box-shadow:0 0 0 3px #00000014}.theme-light .round-action,.theme-light .template-button{border-color:#d4d4d4;background:#f5f5f5}.theme-light .toggle-line,.theme-light .prompt-preview div{color:#111!important;background:#f2f2f2}.theme-light .toggle-line input{accent-color:#000}.theme-light .field-hint code{background:#ededed}.theme-light .memory-import-row{color:#111;border-color:#ccc;background:#f2f2f2}.theme-light .secondary-button{color:#111;border-color:#ccc;background:#f7f7f7}.theme-light .sql-toggle{color:#666}.theme-light .sql-box{border-color:#000;background:#111}.theme-light .sql-box>div{color:#ddd;background:#222}.theme-light .sql-box button,.theme-light .sql-box pre{color:#fff}.theme-light .notice.success,.theme-light .notice.info,.theme-light .notice.error{color:#fff;background:#111}.theme-light .synced-memory-totals div,.theme-light .compatibility-note{border-color:#d4d4d4;background:#f5f5f5}.theme-light .synced-memory-card,.theme-light .synced-memory-empty{border-color:#d4d4d4;background:#fff}.theme-light .synced-memory-totals span,.theme-light .synced-memory-card-head>div:first-child,.theme-light .synced-memory-card>small,.theme-light .synced-memory-footnote{color:#666}.theme-light .synced-memory-totals strong,.theme-light .compatibility-note strong,.theme-light .synced-memory-card p{color:#000}.theme-light .synced-memory-room-summary span,.theme-light .synced-memory-tags span,.theme-light .synced-memory-card-head i{color:#333;background:#eee}.theme-light .synced-memory-editor select{color:#000;border-color:#d4d4d4;background:#fff}.theme-light .theme-choice{border-color:#d4d4d4;background:#f2f2f2}.theme-light .theme-choice button{color:#666}.theme-light .theme-choice button.active{color:#fff;background:#000}.theme-light .appearance-card input[type=range]{accent-color:#000}.theme-light .avatar-preview{color:#fff;background:#000}.theme-light .avatar-upload-button{color:#111!important;border-color:#d4d4d4;background:#f5f5f5}.theme-light .range-value{color:#111}.theme-light .credential-state,.theme-light .credential-state.ready{color:#666!important}.theme-light .round-action.danger,.theme-light .danger-link{color:#333}.theme-light .font-preview,.theme-light .vector-stats{color:#111;border-color:#d4d4d4;background:#f5f5f5}.theme-light .vector-stats span,.theme-light .vector-stats small{color:#666}.theme-light .vector-stats strong{color:#000}.theme-light .composer-tray,.theme-light .sticker-editor-dialog,.theme-light .model-picker,.theme-light .memory-preview{color:#000;border-color:#d4d4d4;background:#fff}.theme-light .function-tray{border:0;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}.theme-light .function-tray>button{color:#000;border-color:#d4d4d4;background:#fff}.theme-light .composer-tray-title,.theme-light .model-picker-header span,.theme-light .model-empty,.theme-light .memory-preview-hint,.theme-light .memory-preview-list article>div,.theme-light .memory-preview-list article small{color:#666}.theme-light .sticker-editor-dialog label{color:#444}.theme-light .sticker-editor-dialog input,.theme-light .sticker-editor-dialog textarea,.theme-light .model-search{color:#000;border-color:#d4d4d4;background:#fff}.theme-light .background-preview{color:#666;border-color:#d4d4d4;background-color:#f2f2f2}.theme-light .sticker-grid button,.theme-light .memory-preview-list article{border-color:#d4d4d4;background:#fff}.theme-light .memory-preview-list article p{color:#000}.theme-light .model-list button{color:#222}.theme-light .model-list button:hover,.theme-light .model-list button.selected{color:#000;border-color:#d4d4d4;background:#f2f2f2}.theme-light .message-stage.has-chat-background{background-color:#f2f2f2}.theme-light .message-bubble:focus-visible{outline-color:#000}html[data-lite-theme=dark] body{color:#e4e1db;background:radial-gradient(circle at 12% -5%,rgba(158,151,140,.1),transparent 36%),linear-gradient(155deg,#1a1a1a,#111)}.theme-dark .message-time{color:#858079}.theme-dark .identity-panel h3{color:#e4e1db}.theme-dark .avatar-preview{color:#242424;background:#dedad3}.theme-dark .avatar-upload-button{color:#d4d0c8!important;border-color:#484642;background:#323230}.theme-dark .theme-choice{border-color:#45433f;background:#292929}.theme-dark .theme-choice button{color:#aaa59d}.theme-dark .theme-choice button.active{color:#252525;background:#d7d2ca}.theme-dark .range-value{color:#d4d0c8}.theme-dark .appearance-card input[type=range]{accent-color:#d7d2ca}.theme-dark .font-preview{color:#e1ddd6;border-color:#45433f;background:#242424}.theme-dark .model-picker,.theme-dark .memory-preview{color:#e4e1db;background:#202020;box-shadow:0 24px 70px #0000007a}.theme-dark .model-picker-header span{color:#aaa59d}.theme-dark .model-search{color:#e5e1da;border-color:#484642;background:#292929;color-scheme:dark}.theme-dark .model-list button{color:#d4d0c8}.theme-dark .model-list button:hover,.theme-dark .model-list button.selected{color:#f0ede7;border-color:#4b4946;background:#323230}.theme-dark .model-empty{color:#aaa59d}.theme-dark .vector-stats{border-color:#45433f;background:#242424}.theme-dark .vector-stats span,.theme-dark .vector-stats small{color:#918c85}.theme-dark .vector-stats strong{color:#e1ddd6}.theme-dark.lite-shell{color:#e4e1db;background:#191919f2;box-shadow:0 0 60px #0000005c}.theme-dark .lite-header{border-color:#e7e2d914}.theme-dark .lite-avatar{color:#242424;background:#dedad3}.theme-dark .lite-identity p,.theme-dark .context-strip,.theme-dark .strip-button{color:#aaa59d}.theme-dark .status-dot{background:#77736d}.theme-dark .status-dot.online{background:#b8b3ab;box-shadow:0 0 0 3px #c5c0b71a}.theme-dark .icon-button{color:#ddd9d2;background:#e4ded414}.theme-dark .context-strip{background:#232323f0}.theme-dark .api-chip{color:#d1ccc4;border-color:#e0dad024;background:#3e3d3b99}.theme-dark .handoff-label{color:#aaa59d;border-color:#e0dad01a;background:#2b2b2be6}.theme-dark .message-bubble.assistant,.theme-dark .typing-bubble{color:#e1ddd6;border-color:#e7e2d917;background:#2a2a2a}.theme-dark .message-bubble.user{color:#f5f3ef;background:#4a4947}.theme-dark .empty-card{border-color:#e7e2d91a;background:#2a2a2ae0;box-shadow:0 18px 50px #0003}.theme-dark .empty-card p{color:#aaa59d}.theme-dark .empty-icon{color:#d2cdc5;background:#3b3a38}.theme-dark .empty-card button,.theme-dark .primary-button,.theme-dark .generate-button{color:#242424;border-color:#ddd8d0;background:#ddd8d0}.theme-dark .sticker-button,.theme-dark .menu-button{color:#b8b3ab}.theme-dark .composer-tray,.theme-dark .sticker-editor-dialog{color:#e4e1db;border-color:#484642;background:#202020fa}.theme-dark .function-tray{border:0;background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}.theme-dark .function-tray>button{color:#d4d0c8;border-color:#484642;background:#292929}.theme-dark .composer-tray-title{color:#aaa59d}.theme-dark .sticker-editor-dialog label{color:#bcb7af}.theme-dark .sticker-editor-dialog input,.theme-dark .sticker-editor-dialog textarea{color:#e5e1da;border-color:#484642;background:#222;color-scheme:dark}.theme-dark .background-preview{color:#aaa59d;border-color:#484642;background-color:#292929}.theme-dark .sticker-grid button,.theme-dark .memory-preview-list article{border-color:#484642;background:#292929}.theme-dark .memory-preview-hint,.theme-dark .memory-preview-list article>div,.theme-dark .memory-preview-list article small{color:#aaa59d}.theme-dark .memory-preview-list article p{color:#e5e1da}.theme-dark .composer{border-color:#e7e2d914;background:#1a1a1af7}.theme-dark .composer textarea{color:#e4e0d9;border-color:#e0dad021;background:#242424}.theme-dark .composer textarea::placeholder{color:#807b74}.theme-dark .settings-sheet{color:#e4e1db;background:#202020;box-shadow:0 -18px 55px #00000070}.theme-dark .sheet-handle{background:#4b4946}.theme-dark .eyebrow{color:#aaa49c}.theme-dark .text-button,.theme-dark .template-button,.theme-dark .round-action,.theme-dark .prompt-preview summary{color:#d4d0c8}.theme-dark .settings-tabs{border-color:#3a3937;background:#202020f5}.theme-dark .settings-tabs button{color:#aaa59d}.theme-dark .settings-tabs button.active{color:#252525;background:#d7d2ca}.theme-dark .setting-card{border-color:#3c3b39;background:#292929}.theme-dark .setting-card p,.theme-dark .field-hint,.theme-dark .memory-import-row p{color:#aaa59d}.theme-dark .setting-card label{color:#bcb7af}.theme-dark .setting-card input,.theme-dark .setting-card select,.theme-dark .setting-card textarea{color:#e5e1da;border-color:#484642;background:#222;color-scheme:dark}.theme-dark .round-action,.theme-dark .template-button{border-color:#484642;background:#323230}.theme-dark .toggle-line,.theme-dark .prompt-preview div{color:#dedad3!important;background:#343331}.theme-dark .field-hint code{background:#3a3937}.theme-dark .memory-import-row{color:#ddd9d2;border-color:#55514b;background:#2b2a29}.theme-dark .secondary-button{color:#d5d0c8;border-color:#4c4944;background:#32312f}.theme-dark .sql-toggle{color:#aaa59d}.theme-dark .notice.success,.theme-dark .notice.info{color:#ddd9d2;background:#31302e}.theme-dark .notice.error{color:#f0c4bc;background:#3b2927}.theme-dark .synced-memory-totals div,.theme-dark .compatibility-note{color:#bbb5ad;border-color:#4a4844;background:#242424}.theme-dark .synced-memory-totals span,.theme-dark .synced-memory-card>small,.theme-dark .synced-memory-footnote{color:#98928a}.theme-dark .synced-memory-totals strong,.theme-dark .compatibility-note strong,.theme-dark .synced-memory-card p{color:#e3dfd8}.theme-dark .synced-memory-room-summary span,.theme-dark .synced-memory-tags span,.theme-dark .synced-memory-card-head i{color:#bbb6ae;background:#393836}.theme-dark .synced-memory-card,.theme-dark .synced-memory-empty{color:#aaa59d;border-color:#484642;background:#292929}.theme-dark .synced-memory-editor select{color:#e5e1da;border-color:#484642;background:#222;color-scheme:dark}.lite-shell{--glass-surface: rgba(255, 255, 255, .44);--glass-surface-strong: rgba(255, 255, 255, .64);--glass-line: rgba(255, 255, 255, .76);--glass-shadow: 0 16px 38px rgba(0, 0, 0, .1);--shell-fade: rgba(241, 242, 242, .97);grid-template-rows:auto minmax(0,1fr) auto;background:radial-gradient(circle at 8% 6%,rgba(255,255,255,.94),transparent 34%),radial-gradient(circle at 92% 88%,rgba(200,202,202,.38),transparent 38%),linear-gradient(150deg,#f4f4f4,#e8e9e9);background-position:center;background-size:cover;-webkit-backdrop-filter:none;backdrop-filter:none}.theme-dark.lite-shell{--glass-surface: rgba(35, 37, 37, .48);--glass-surface-strong: rgba(42, 44, 44, .7);--glass-line: rgba(255, 255, 255, .09);--glass-shadow: 0 18px 42px rgba(0, 0, 0, .28);--shell-fade: rgba(24, 25, 25, .96);background:radial-gradient(circle at 8% 6%,rgba(99,101,101,.24),transparent 34%),radial-gradient(circle at 92% 88%,rgba(63,64,64,.28),transparent 38%),linear-gradient(150deg,#1e2020,#151616)}.lite-header{position:relative;z-index:8;grid-row:1;grid-column:1;min-height:116px;margin:0;padding:calc(env(safe-area-inset-top,0px) + 12px) 18px 10px;display:grid;grid-template-columns:1fr auto 1fr;align-items:start;border:0;border-radius:0;background:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}.lite-identity{grid-column:2;display:flex;align-items:center;flex-direction:column;gap:5px;text-align:center}.lite-identity h1{margin:0;font-size:16px}.header-actions{grid-column:3;justify-self:end;align-self:start}.lite-header:after{content:none}.lite-avatar{width:54px;height:54px;border:1px solid rgba(255,255,255,.42);border-radius:50%;box-shadow:0 2px 7px #0000001c}.icon-button,.theme-light .icon-button,.theme-dark .icon-button{width:42px;height:42px;display:grid;place-items:center;color:inherit;border:1px solid var(--glass-line);border-radius:999px;background:var(--glass-surface-strong);box-shadow:0 1px 5px #0000000f,inset 0 1px #fff6;-webkit-backdrop-filter:blur(18px) saturate(135%);backdrop-filter:blur(18px) saturate(135%)}.token-usage-pill{min-width:36px;min-height:20px;padding:1px 9px 0;display:inline-flex;align-items:center;justify-content:center;color:#484d4aa6;border:1px solid var(--glass-line);border-radius:999px;background:var(--glass-surface-strong);box-shadow:0 1px 5px #0000000d,inset 0 1px #ffffff59;-webkit-backdrop-filter:blur(18px) saturate(145%);backdrop-filter:blur(18px) saturate(145%);font-size:9px;font-weight:700;letter-spacing:.01em;white-space:nowrap}.token-usage-pill.has-usage{color:#111}.theme-dark .token-usage-pill{color:#e2e0db8c}.theme-dark .token-usage-pill.has-usage{color:#dcd8d1}.context-strip,.theme-dark .context-strip{position:relative;z-index:3;padding:20px 18px 8px;background:transparent}.api-chip,.theme-dark .api-chip,.handoff-label,.theme-dark .handoff-label{border-color:var(--glass-line);background:var(--glass-surface);box-shadow:inset 0 1px #ffffff38;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.message-stage{grid-row:2;grid-column:1;padding-top:18px;padding-bottom:32px;background-color:transparent;-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 18px,#000 calc(100% - 18px),transparent 100%);mask-image:linear-gradient(to bottom,transparent 0,#000 18px,#000 calc(100% - 18px),transparent 100%)}.message-stage.has-chat-background,.theme-light .message-stage.has-chat-background,.theme-dark .message-stage.has-chat-background{background-color:transparent;background-image:none}.message-bubble.assistant,.theme-light .message-bubble.assistant,.theme-dark .message-bubble.assistant,.typing-bubble,.theme-light .typing-bubble,.theme-dark .typing-bubble{border:1px solid var(--glass-line);background:var(--glass-surface-strong);box-shadow:0 9px 26px #262c2914,inset 0 1px #ffffff47;-webkit-backdrop-filter:blur(16px) saturate(135%);backdrop-filter:blur(16px) saturate(135%)}.message-bubble.user,.theme-light .message-bubble.user,.theme-dark .message-bubble.user{color:#fff;background:#202121bd;box-shadow:0 10px 26px #00000029,inset 0 1px #ffffff2e;-webkit-backdrop-filter:blur(14px) saturate(130%);backdrop-filter:blur(14px) saturate(130%)}.theme-dark .message-bubble.user{background:#696c698a}.empty-card,.theme-light .empty-card,.theme-dark .empty-card{border-color:var(--glass-line);background:var(--glass-surface);box-shadow:var(--glass-shadow),inset 0 1px #ffffff47;-webkit-backdrop-filter:blur(22px) saturate(140%);backdrop-filter:blur(22px) saturate(140%)}.composer-dock{position:relative;z-index:7;grid-row:3;grid-column:1;padding:10px 14px calc(env(safe-area-inset-bottom,0px) + 14px);display:flex;align-items:flex-end;gap:10px;background:transparent}.composer-dock:before{content:none}.composer,.theme-light .composer,.theme-dark .composer{min-width:0;flex:1;padding:4px 5px 4px 13px;display:flex;align-items:flex-end;gap:2px;border:1px solid var(--glass-line);border-radius:999px;background:var(--glass-surface-strong);box-shadow:0 1px 5px #0000000f,inset 0 1px #ffffff57;-webkit-backdrop-filter:blur(24px) saturate(150%);backdrop-filter:blur(24px) saturate(150%)}.composer textarea,.theme-light .composer textarea,.theme-dark .composer textarea{min-height:42px;padding:11px 5px;color:inherit;border:0;border-radius:0;background:transparent;box-shadow:none}.composer textarea:focus,.theme-light .composer textarea:focus,.theme-dark .composer textarea:focus{outline:0;border:0;background:transparent;box-shadow:none}.composer:focus-within,.theme-light .composer:focus-within,.theme-dark .composer:focus-within{outline:0}.generate-button,.sticker-button{width:42px;height:42px;flex:0 0 auto;border-radius:50%}.sticker-button,.theme-dark .sticker-button{color:inherit;background:transparent}.generate-button,.theme-light .generate-button,.theme-dark .generate-button{color:inherit;border:0;background:transparent;box-shadow:none}.menu-button,.theme-dark .menu-button{width:55px;height:55px;flex:0 0 auto;color:inherit;border:1px solid var(--glass-line);border-radius:50%;background:var(--glass-surface-strong);box-shadow:0 1px 5px #0000000f,inset 0 1px #ffffff57;-webkit-backdrop-filter:blur(24px) saturate(150%);backdrop-filter:blur(24px) saturate(150%)}.composer-tray,.theme-light .composer-tray,.theme-dark .composer-tray{bottom:calc(env(safe-area-inset-bottom,0px) + 82px);border-color:var(--glass-line);background:var(--glass-surface-strong);box-shadow:0 1px 5px #0000000f,inset 0 1px #ffffff47;-webkit-backdrop-filter:blur(24px) saturate(150%);backdrop-filter:blur(24px) saturate(150%)}.sticker-tray .composer-tray-title{justify-content:flex-end}.function-tray,.theme-light .function-tray,.theme-dark .function-tray{left:14px;padding:7px;border:1px solid var(--glass-line);border-radius:19px;background:var(--glass-surface-strong);box-shadow:0 1px 5px #0000000f,inset 0 1px #ffffff47;-webkit-backdrop-filter:blur(24px) saturate(150%);backdrop-filter:blur(24px) saturate(150%);transform-origin:left bottom;animation:menu-slide-up .2s ease-out both}.function-tray>button,.theme-light .function-tray>button,.theme-dark .function-tray>button{color:inherit;border-color:transparent;border-radius:14px;background:#ffffff14}.setting-card,.theme-dark .setting-card{border-color:var(--glass-line);background:var(--glass-surface-strong);-webkit-backdrop-filter:blur(24px) saturate(145%);backdrop-filter:blur(24px) saturate(145%)}.sheet-backdrop,.theme-light .sheet-backdrop{align-items:stretch;padding:0;background:#e8e9e97d;-webkit-backdrop-filter:blur(18px) saturate(120%);backdrop-filter:blur(18px) saturate(120%)}.theme-dark .sheet-backdrop{background:#0a0a0a87}.settings-sheet,.theme-light .settings-sheet,.theme-dark .settings-sheet{width:100%;max-width:none;height:100dvh;max-height:none;margin:0;padding:calc(env(safe-area-inset-top,0px) + 18px) max(18px,calc((100vw - 760px)/2)) calc(env(safe-area-inset-bottom,0px) + 28px);color:#111;border:0;border-radius:0;background:#f7f7f79e;box-shadow:none;-webkit-backdrop-filter:blur(30px) saturate(125%);backdrop-filter:blur(30px) saturate(125%);animation:settings-screen-in .24s cubic-bezier(.2,.8,.2,1) both}.theme-dark .settings-sheet{color:#f2f2f2;background:#111111a8}.sheet-handle{display:none}.sheet-title-row{position:sticky;z-index:5;top:calc(env(safe-area-inset-top,0px)*-1 - 18px);padding:2px 0 14px;align-items:center;background:linear-gradient(to bottom,rgba(247,247,247,.86) 64%,transparent);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.theme-dark .sheet-title-row{background:linear-gradient(to bottom,rgba(17,17,17,.86) 64%,transparent)}.eyebrow{color:#777}.text-button{color:inherit}.settings-tabs,.theme-light .settings-tabs,.theme-dark .settings-tabs{top:70px;border-color:var(--glass-line);background:#ffffff6b;box-shadow:0 10px 28px #0000000f;-webkit-backdrop-filter:blur(22px) saturate(130%);backdrop-filter:blur(22px) saturate(130%)}.theme-dark .settings-tabs{background:#22222294}.settings-tabs button.active,.theme-light .settings-tabs button.active{color:#fff;background:#111;box-shadow:none}.theme-dark .settings-tabs button.active{color:#111;background:#f1f1f1}.setting-card,.theme-light .setting-card{border-color:#fffc;background:#ffffff7a;box-shadow:0 14px 36px #0000000f,inset 0 1px #ffffffb3}.theme-dark .setting-card{border-color:#ffffff14;background:#24242485;box-shadow:0 14px 36px #00000029,inset 0 1px #ffffff0f}.primary-button,.theme-light .primary-button{color:#fff;border-color:#111;background:#111}.theme-dark .primary-button{color:#111;border-color:#eee;background:#eee}.lite-header,.theme-light .lite-header,.theme-dark .lite-header,html[data-lite-wallpaper=true] body{background:transparent}.lite-shell.has-input-overlay .composer-dock{visibility:hidden}.lite-avatar{padding:0;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.header-actions{position:relative;z-index:9}.token-usage-pill{min-width:82px;min-height:32px;gap:7px;padding:4px 11px;color:#252525;font-size:11px;background:#fffffff0;cursor:pointer}.theme-dark .token-usage-pill{color:#252525;background:#fffffff0}.token-usage-pill.is-error,.theme-dark .token-usage-pill.is-error{color:#b63838}.cloud-status-dot{width:7px;height:7px;flex:0 0 auto;border-radius:50%;background:#a9aaa9}.cloud-status-dot.connected{background:#2eb56a;box-shadow:0 0 0 3px #2eb56a1f}.status-loading{display:inline-flex;align-items:center;gap:3px;height:14px}.status-loading i{width:4px;height:4px;border-radius:50%;background:currentColor;animation:typing 1.2s infinite ease-in-out}.status-loading i:nth-child(2){animation-delay:.15s}.status-loading i:nth-child(3){animation-delay:.3s}.status-details{position:absolute;top:calc(100% + 48px);right:0;width:min(280px,calc(100vw - 28px));padding:13px 15px;color:#252525;text-align:left;border:1px solid rgba(200,200,200,.55);border-radius:16px;background:#fffffff5;box-shadow:0 12px 36px #00000021;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);font-size:12px;line-height:1.55;overflow-wrap:anywhere}.status-details strong{font-size:13px}.status-details p{margin:6px 0 0}.status-details .status-error-detail{color:#b63838;white-space:pre-wrap}.function-tray,.theme-light .function-tray,.theme-dark .function-tray{width:min(460px,calc(100vw - 28px));display:flex;flex-direction:row;align-items:center;gap:4px;max-height:none;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.function-tray::-webkit-scrollbar{display:none}.function-tray>button,.theme-light .function-tray>button,.theme-dark .function-tray>button{width:54px;min-height:62px;flex:0 0 54px;padding:5px 0;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:5px;border:0;background:transparent;text-align:center;font-size:10px;white-space:nowrap}.function-tray>button:hover{background:#7d7d7d17}.lite-shell input:not([type=checkbox]):not([type=range]):not([type=file]),.lite-shell .setting-card textarea,.lite-shell .sticker-editor-dialog textarea,.lite-shell select{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0!important;outline:0!important;box-shadow:none!important;background:#fff!important;color:#111!important;color-scheme:light}.lite-shell input:not([type=checkbox]):not([type=range]):not([type=file]):focus,.setting-card textarea:focus,.sticker-editor-dialog textarea:focus,.lite-shell select:focus{border:0;outline:0;box-shadow:none;background:#fff}.setting-card input[type=range],.setting-card input[type=checkbox]{border:0;box-shadow:none}.setting-card input:not([type=checkbox]):not([type=range]):not([type=file]),.setting-card textarea,.setting-card select{border:0;background:#fff;box-shadow:none;color:#111}.sheet-title-row,.theme-dark .sheet-title-row,.theme-light .sheet-title-row{color:#111;background:#fff}.sheet-title-row .eyebrow,.sheet-title-row .text-button,.theme-dark .sheet-title-row .eyebrow,.theme-dark .sheet-title-row .text-button{color:#555}.settings-sheet,.theme-light .settings-sheet,.theme-dark .settings-sheet{padding:0 0 calc(env(safe-area-inset-bottom,0px) + 28px)}.settings-sheet .sheet-title-row{top:0;width:100%;min-height:calc(env(safe-area-inset-top,0px) + 96px);margin:0;padding:calc(env(safe-area-inset-top,0px) + 18px) max(18px,calc((100vw - 760px)/2)) 16px;-webkit-backdrop-filter:none;backdrop-filter:none}.settings-section-panel{padding:0 max(18px,calc((100vw - 760px)/2))}.lite-shell input:focus,.lite-shell input:focus-visible,.lite-shell textarea:focus,.lite-shell textarea:focus-visible,.lite-shell select:focus,.lite-shell select:focus-visible{outline:none!important;box-shadow:none!important;-webkit-tap-highlight-color:transparent}@keyframes settings-screen-in{0%{opacity:0;transform:scale(.985)}to{opacity:1;transform:scale(1)}}@keyframes menu-slide-up{0%{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}@media (min-width: 780px){body{padding:20px}.lite-shell{height:calc(var(--lite-viewport-height, 100dvh) - 40px);border-radius:28px;overflow:hidden}.settings-sheet{margin:0;border-radius:0}}@media (display-mode: standalone){html,body,#lite-root{min-height:100vh;height:100vh}.lite-shell{height:var(--lite-viewport-height, 100vh)}.settings-sheet{height:100vh}}html.cookie-keyboard-open body{padding:0}html.cookie-keyboard-open .lite-shell{position:fixed;top:var(--lite-viewport-top, 0px);left:50%;height:var(--lite-viewport-height);margin:0;border-radius:0;transform:translate(-50%)}html.cookie-keyboard-open .settings-sheet{height:100%}@supports (-webkit-touch-callout: none){.lite-shell input:not([type=range]),.lite-shell textarea,.lite-shell select{font-size:16px!important}.lite-shell .composer textarea{font-size:max(16px,var(--lite-message-font-size, 14px))!important}}@media (max-width: 520px){.composer-dock{gap:8px;padding-left:10px;padding-right:10px}.composer{gap:1px;padding-left:12px;padding-right:4px}.generate-button,.sticker-button,.menu-button{width:43px;height:45px;border-radius:15px}.menu-button{width:55px;height:55px;border-radius:50%}.generate-button,.sticker-button{width:42px;height:42px;border-radius:50%}.settings-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.settings-tabs button{min-width:0;padding-right:6px;padding-left:6px;font-size:11px}.model-actions,.memory-tool-actions{grid-template-columns:1fr}.model-picker-backdrop{padding:12px}.composer textarea,.setting-card input:not([type=range]),.setting-card select,.setting-card textarea,.model-search{font-size:16px}.sticker-editor-dialog input,.sticker-editor-dialog textarea,.sticker-editor-dialog select{font-size:16px}.synced-memory-edit-fields{grid-template-columns:1fr;gap:0}.sticker-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
