:root{color:#3a3a3a;background:#eaeaea;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:#eaeaea}html[data-lite-theme=dark] body,body:has(.theme-dark){color:#e5e5e5;background:#363636}button,textarea,input,select{font:inherit}button{cursor:pointer;transition:background-color .18s ease,border-color .18s ease,opacity .18s ease}button:disabled{cursor:default;opacity:.45}button svg{flex-shrink:0}button,a,input,textarea,select,[role=button],.message-bubble{-webkit-tap-highlight-color:transparent}button:focus-visible,summary:focus-visible,a:focus-visible{outline:2px solid #8e8e8e;outline-offset:3px}.theme-dark button:focus-visible,.theme-dark summary:focus-visible,.theme-dark a:focus-visible{outline-color:#acacac}.chat-wallpaper{position:fixed;top:0;right:0;bottom:0;left:0;z-index:0;overflow:hidden;background:#3b3b3b;pointer-events:none}.chat-wallpaper img{width:100%;height:100%;display:block;object-fit:cover;object-position:center}.lite-shell{position:relative;z-index:1;width:min(100%,780px);height:var(--lite-viewport-height, 100dvh);margin:0 auto;overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr) auto;color:#3a3a3a;color-scheme:light;background:radial-gradient(ellipse at 5% 0%,rgba(255,255,255,.8),transparent 58%),linear-gradient(145deg,#f0f0f0,#e2e2e2);background-position:center;background-size:cover;box-shadow:0 12px 36px #47474714}.lite-shell.theme-dark{color:#e5e5e5;color-scheme:dark;background:radial-gradient(ellipse at 5% 0%,rgba(141,141,141,.17),transparent 58%),linear-gradient(145deg,#434343,#343434);box-shadow:0 12px 36px #2121212e}.lite-shell.has-chat-background{background:transparent}.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;background:transparent}.lite-identity{grid-column:2;display:flex;align-items:center;flex-direction:column;gap:5px;text-align:center}.lite-identity h1{margin:0;color:#3a3a3a;font-size:15px;font-weight:600;line-height:1.2;letter-spacing:-.025em}.theme-dark .lite-identity h1{color:#e5e5e5}.lite-identity p{margin:0;color:#727272;font-size:12px}.theme-dark .lite-identity p{color:#b3b3b3}.lite-avatar{width:54px;height:54px;padding:0;display:grid;place-items:center;overflow:hidden;color:#f9f9f9;border:1px solid rgba(255,255,255,.42);border-radius:50%;background:#5c5c5c;font-family:inherit;font-size:20px;font-weight:600;line-height:1;-webkit-appearance:none;-moz-appearance:none;appearance:none}.theme-dark .lite-avatar{color:#3a3a3a;background:#c6c6c6}.lite-avatar img,.avatar-preview img{width:100%;height:100%;display:block;object-fit:cover}.header-actions{position:relative;z-index:9;grid-column:3;justify-self:end;align-self:end;display:flex;gap:8px}.token-usage-pill{min-width:80px;min-height:25px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:4px 11px;color:#3a3a3a;border:1px solid rgba(143,143,143,.2);border-radius:999px;background:#fcfcfcad;box-shadow:0 12px 36px #47474714;-webkit-backdrop-filter:blur(18px) saturate(145%);backdrop-filter:blur(18px) saturate(145%);font-size:11px;font-weight:700;letter-spacing:.01em;white-space:nowrap}.theme-dark .token-usage-pill{color:#e5e5e5;border-color:#cbcbcb29;background:#474747b3;box-shadow:0 12px 36px #2121212e}.token-usage-pill.is-error{color:#ae5358}.theme-dark .token-usage-pill.is-error{color:#e79b9e}.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% + 12px);right:0;width:min(180px,calc(100vw - 28px));padding:13px 15px;color:#3a3a3a;border:1px solid rgba(143,143,143,.1);border-radius:16px;background:#fcfcfc8c;box-shadow:0 2px 12px #47474714;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);text-align:left;font-size:12px;line-height:1.2;overflow-wrap:anywhere}.theme-dark .status-details{color:#e5e5e5;border-color:#cbcbcb29;background:#474747b3;box-shadow:0 2px 12px #2121212e}.status-details strong{font-size:13px}.status-details p{margin:6px 0 0}.status-details .status-error-detail{color:#ae5358;white-space:pre-wrap}.theme-dark .status-details .status-error-detail{color:#e79b9e}.message-stage{grid-row:2;grid-column:1;width:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain;overflow-anchor:none;padding:18px 18px 32px;scroll-padding-bottom:32px;display:block;background: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.is-empty{display:grid;place-items:center}.message-list{width:100%;min-height:100%;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:#727272;border:1px solid rgba(143,143,143,.2);border-radius:999px;background:#ffffff52;font-size:11px;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.theme-dark .handoff-label{color:#b3b3b3;border-color:#cbcbcb29;background:#4f4f4f57}.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{position:relative;max-width:100%;padding:11px 14px 8px;color:#3a3a3a;border:.5px solid rgba(255,255,255,.3);border-radius:20px;background:#ffffff80;box-shadow:0 12px 36px #47474714;-webkit-backdrop-filter:blur(16px) saturate(135%);backdrop-filter:blur(16px) saturate(135%);touch-action:pan-y;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}.theme-dark .message-bubble{color:#f6f6f6;border-color:#ffffff4d;background:#212121b3;box-shadow:0 12px 36px #21212114}.message-bubble:focus-visible{outline:2px solid #8e8e8e;outline-offset:2px}.theme-dark .message-bubble:focus-visible{outline-color:#acacac}.message-bubble p{margin:0;font-size:var(--lite-message-font-size, 14px);line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;font-synthesis:weight style}.message-bubble em{font-style:italic}.message-bubble strong{font-weight:700}.message-time{flex:0 0 auto;margin-bottom:2px;color:#727272;font-size:9px;line-height:1;white-space:nowrap}.theme-dark .message-time{color:#b3b3b3}.message-bubble.assistant{align-self:flex-start}.message-bubble.user{align-self:flex-end}.message-bubble:not(.sticker-message):after{content:"";position:absolute;bottom:-.5px;width:6px;height:8px;background:inherit;-webkit-backdrop-filter:inherit;backdrop-filter:inherit;pointer-events:none}.message-bubble.assistant:not(.sticker-message){border-bottom-left-radius:0}.message-bubble.assistant:not(.sticker-message):after{left:-6px;clip-path:polygon(100% 0,100% 100%,0 100%)}.message-bubble.user:not(.sticker-message){border-bottom-right-radius:0}.message-bubble.user:not(.sticker-message):after{right:-6px;clip-path:polygon(0 0,100% 100%,0 100%)}.message-bubble.sticker-message,.theme-dark .message-bubble.sticker-message{max-width:120px;max-height:120px;padding:0;overflow:hidden;background:transparent;border:0;box-shadow:none}.message-bubble.sticker-message img{width:auto;height:auto;max-width:120px;max-height:120px;display:block;object-fit:contain;border-radius:14px}.typing-bubble{align-self:flex-start;display:flex;gap:4px;padding:13px 16px;border:1px solid rgba(143,143,143,.2);border-radius:18px 18px 18px 7px;background:#fcfcfcad;box-shadow:0 9px 26px #2a2a2a14,inset 0 1px #ffffff47;-webkit-backdrop-filter:blur(16px) saturate(135%);backdrop-filter:blur(16px) saturate(135%)}.theme-dark .typing-bubble{border-color:#cbcbcb29;background:#474747b3}.typing-bubble i{width:6px;height:6px;border-radius:50%;background:#727272;animation:typing 1.2s infinite ease-in-out}.theme-dark .typing-bubble i{background:#b3b3b3}.typing-bubble i:nth-child(2){animation-delay:.15s}.typing-bubble i:nth-child(3){animation-delay:.3s}.empty-card{width:min(100%,430px);margin:auto;padding:30px 26px;text-align:center;border:1px solid rgba(143,143,143,.2);border-radius:24px;background:#ffffff52;box-shadow:0 12px 36px #47474714;-webkit-backdrop-filter:blur(22px) saturate(140%);backdrop-filter:blur(22px) saturate(140%)}.theme-dark .empty-card{border-color:#cbcbcb29;background:#4f4f4f57;box-shadow:0 12px 36px #2121212e}.empty-icon{width:52px;height:52px;margin:0 auto 16px;display:grid;place-items:center;color:#727272;border-radius:18px;background:#ffffff7a}.theme-dark .empty-icon{color:#b3b3b3;background:#71717129}.empty-card h2{margin:0 0 10px;font-size:24px;font-weight:600;line-height:1.2;letter-spacing:-.025em}.empty-card p{margin:0;color:#727272;font-size:14px;line-height:1.75}.theme-dark .empty-card p{color:#b3b3b3}.empty-card button{margin-top:22px;padding:11px 18px;color:#f9f9f9;border:1px solid transparent;border-radius:14px;background:#5c5c5c;font-weight:700}.theme-dark .empty-card button{color:#3a3a3a;background:#c6c6c6}.empty-card button:hover:not(:disabled){opacity:.86}.composer-dock{position:relative;z-index:7;grid-row:3;grid-column:1;padding:10px 14px calc(env(safe-area-inset-bottom,0px) + 15px);display:flex;align-items:flex-end;gap:10px;background:transparent}.lite-shell.has-input-overlay .composer-dock{visibility:hidden}.composer{position:relative;z-index:5;min-width:0;flex:1;padding:4px 5px 4px 13px;display:flex;align-items:flex-end;gap:2px;color:#3a3a3a;border:1px solid rgba(255,255,255,.1);border-radius:28px;background:#fcfcfc8c;box-shadow:0 2px 12px #47474714;-webkit-backdrop-filter:blur(24px) saturate(150%);backdrop-filter:blur(24px) saturate(150%)}.theme-dark .composer{color:#e5e5e5;border-color:#cbcbcb29;background:#474747b3;box-shadow:0 2px 12px #2121212e}.composer textarea{min-width:0;min-height:42px;max-height:144px;flex:1;resize:none;padding:11px 5px;color:#3a3a3a;border:0;border-radius:0;outline:none;background:transparent;box-shadow:none;font-size:var(--lite-message-font-size, 14px);line-height:1.45}.theme-dark .composer textarea{color:#e5e5e5}.composer textarea::placeholder{color:#727272;opacity:.85}.theme-dark .composer textarea::placeholder{color:#b3b3b3}.menu-button{width:52px;height:52px;flex:0 0 auto;display:grid;place-items:center;color:#3a3a3a;border:1px solid rgba(255,255,255,.2);border-radius:50%;background:#fcfcfc8c;box-shadow:0 2px 12px #47474714;-webkit-backdrop-filter:blur(24px) saturate(150%);backdrop-filter:blur(24px) saturate(150%)}.theme-dark .menu-button{color:#e5e5e5;border-color:#cbcbcb29;background:#474747b3;box-shadow:0 2px 12px #2121212e}.sticker-button,.generate-button{width:42px;height:42px;flex:0 0 auto;display:grid;place-items:center;border:0;border-radius:50%}.sticker-button{color:inherit;background:transparent}.generate-button{color:#f9f9f9;background:#5c5c5c}.theme-dark .generate-button{color:#3a3a3a;background:#c6c6c6}.composer-tray{position:absolute;z-index:6;right:10px;bottom:calc(env(safe-area-inset-bottom,0px) + 82px);left:10px;max-height:min(42vh,330px);padding:12px;overflow:hidden;color:#3a3a3a;border:1px solid rgba(255,255,255,.2);border-radius:20px;background:#fcfcfc8c;box-shadow:0 2px 12px #47474714;-webkit-backdrop-filter:blur(24px) saturate(150%);backdrop-filter:blur(24px) saturate(150%);animation:tray-in .2s cubic-bezier(.2,.8,.2,1) both}.theme-dark .composer-tray{color:#e5e5e5;border-color:#cbcbcb29;background:#474747b3;box-shadow:0 12px 36px #2121212e}.function-tray{right:auto;left:14px;width:min(460px,calc(100vw - 28px));padding:7px;display:flex;align-items:center;gap:4px;max-height:none;overflow-x:auto;overflow-y:hidden;border-radius:19px;scrollbar-width:none;transform-origin:left bottom;animation:menu-slide-up .2s ease-out both}.function-tray::-webkit-scrollbar{display:none}.function-tray>button{width:54px;min-height:62px;height:42px;flex:0 0 54px;padding:5px 0;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:5px;color:inherit;border:0;border-radius:14px;background:transparent;text-align:center;font-size:10px;white-space:nowrap}.function-tray>button:hover:not(:disabled){background:#7e7e7e1f}.theme-dark .function-tray>button:hover:not(:disabled){background:#b1b1b124}.composer-tray-title{margin-bottom:9px;display:flex;align-items:center;justify-content:flex-end;gap:8px;color:#727272;font-size:11px}.theme-dark .composer-tray-title{color:#b3b3b3}.composer-tray-title button{width:30px;height:30px;display:grid;place-items:center;color:inherit;border:0;border-radius:10px;background:#3a3a3a12}.sticker-tray{max-height:min(38vh,224px);padding:10px;display:flex;flex-direction:column}.sticker-tray .sticker-grid{min-height:0}.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 rgba(143,143,143,.2);border-radius:12px;background:#ffffff7a;touch-action:manipulation;user-select:none;-webkit-user-select:none}.theme-dark .sticker-grid button{border-color:#cbcbcb29;background:#71717129}.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}.sticker-grid .add-sticker-tile{place-content:center;color:#727272}.theme-dark .sticker-grid .add-sticker-tile{color:#b3b3b3}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10;display:flex;align-items:stretch;justify-content:center;padding:0;background:#ffffff4d;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);animation:backdrop-in .18s ease-out both}.theme-dark .sheet-backdrop{background:#34343470}.settings-sheet{width:100%;height:100dvh;max-height:none;margin:0;overflow-y:auto;padding:0 0 calc(env(safe-area-inset-bottom,0px) + 32px);color:#3a3a3a;border:0;border-radius:0;background:#fafafa99;-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:#e5e5e5;background:#353535b3}.sheet-handle{display:none}.sheet-title-row{position:sticky;z-index:5;top:0;width:100%;min-height:calc(env(safe-area-inset-top,0px) + 64px);margin:0 0 24px;padding:calc(env(safe-area-inset-top,0px) + 10px) 18px 10px;display:grid;grid-template-columns:80px minmax(0,1fr) 80px;align-items:center;gap:8px;color:#3a3a3a;border-bottom:1px solid rgba(245,245,245,.5);background:#fff;-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px)}.theme-dark .sheet-title-row{color:#e5e5e5;border-color:#cbcbcb29;background:#474747b3}.sheet-title-row>div{grid-column:2;grid-row:1;min-width:0;text-align:center}.sheet-title-row>.settings-back-button{grid-column:1;grid-row:1;justify-self:start}.sheet-title-row h2{margin:0;font-size:18px;font-weight:700;line-height:1.2;letter-spacing:-.025em}.settings-back-button{width:40px;min-height:40px;padding:0;color:#3a3a3a;border:0;border-radius:999px;background:transparent;font-size:24px;font-weight:600}.theme-dark .settings-back-button{color:#e5e5e5}.settings-back-button:hover:not(:disabled){background:#7e7e7e1f}.theme-dark .settings-back-button:hover:not(:disabled){background:#b1b1b124}.settings-section-panel{width:100%;padding:0 max(20px,calc((100% - 720px)/2));animation:panel-in .2s ease-out both}.setting-card{margin-top:16px;padding:24px;border:1px solid rgba(255,255,255,.2);border-radius:20px;background:#ffffffa6;box-shadow:0 2px 12px #47474714;-webkit-backdrop-filter:blur(24px) saturate(145%);backdrop-filter:blur(24px) saturate(145%)}.theme-dark .setting-card{border-color:#cbcbcb29;background:#4f4f4f57;box-shadow:0 12px 36px #2121212e}.settings-section-panel>.setting-card:first-child{margin-top:0}.setting-card strong{font-size:15px;font-weight:600}.setting-card p{margin:5px 0 0;color:#727272;font-size:12px;line-height:1.7}.theme-dark .setting-card p{color:#b3b3b3}.setting-card-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}.setting-card-title>div{min-width:0}.setting-card label{display:block;margin-top:16px;color:#727272;font-size:12px;font-weight:500}.theme-dark .setting-card label{color:#b3b3b3}.field-hint{margin:0;color:#727272;font-size:.72rem;line-height:1.55;overflow-wrap:anywhere}.theme-dark .field-hint{color:#b3b3b3}.field-hint code{padding:1px 4px;color:#727272;border-radius:4px;background:#7e7e7e1f;font-size:.68rem}.theme-dark .field-hint code{color:#b3b3b3;background:#b1b1b124}.compact-card{margin-bottom:8px}.small-actions{display:flex;gap:6px}.setting-card input:not([type=checkbox]):not([type=range]):not([type=file]),.setting-card textarea,.setting-card select,.sticker-editor-dialog input:not([type=file]),.sticker-editor-dialog textarea,.sticker-editor-dialog select,.model-search{width:100%;min-width:0;margin-top:6px;padding:11px 12px;color:#3a3a3a;border:.5px solid rgba(143,143,143,.1);border-radius:12px;outline:none;background:#ffffff7a;box-shadow:inset 1px 1px 2px #aeaeae40;color-scheme:inherit;line-height:1.45}.theme-dark .setting-card input:not([type=checkbox]):not([type=range]):not([type=file]),.theme-dark .setting-card textarea,.theme-dark .setting-card select,.theme-dark .sticker-editor-dialog input:not([type=file]),.theme-dark .sticker-editor-dialog textarea,.theme-dark .sticker-editor-dialog select,.theme-dark .model-search{color:#e5e5e5;border-color:#cbcbcb29;background:#71717129}.setting-card input:not([type=range]):not([type=checkbox]):not([type=file]),.setting-card textarea,.setting-card select{font-size:13px}.setting-card textarea{resize:vertical;min-height:92px}.sticker-editor-dialog textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#727272;opacity:.78}.theme-dark input::placeholder,.theme-dark textarea::placeholder{color:#b3b3b3}select option{color:#3a3a3a;background:#f1f1f1}.theme-dark select option{color:#e5e5e5;background:#434343}input[type=range],input[type=checkbox]{accent-color:#5c5c5c;box-shadow:none}.theme-dark input[type=range],.theme-dark input[type=checkbox]{accent-color:#c6c6c6}.two-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.setting-card .toggle-line{display:flex;align-items:center;gap:.65rem;padding:.72rem .8rem;color:#3a3a3a;border-radius:14px;background:#ffffff7a}.theme-dark .setting-card .toggle-line{color:#e5e5e5;background:#71717129}.toggle-line input{width:18px;height:18px;margin:0}.primary-button{min-height:42px;padding:10px 16px;display:flex;align-items:center;justify-content:center;gap:7px;color:#f9f9f9;border:.5px solid transparent;border-radius:12px;background:#5c5c5c;font-size:12px;font-weight:600;line-height:1.5}.theme-dark .primary-button{color:#3a3a3a;background:#c6c6c6}.primary-button:hover:not(:disabled){opacity:.86}.secondary-button{min-height:42px;padding:10px 16px;display:flex;align-items:center;justify-content:center;gap:7px;color:#3a3a3a;border:.5px solid rgba(255,255,255,.3);border-radius:12px;background:#ffffff7a;box-shadow:0 2px 6px #47474714;font-size:12px;font-weight:600;line-height:1.5}.theme-dark .secondary-button{color:#e5e5e5;border-color:#cbcbcb29;background:#71717129}.secondary-button:hover:not(:disabled){border-color:#8e8e8e;background:#7e7e7e1f}.theme-dark .secondary-button:hover:not(:disabled){border-color:#acacac;background:#b1b1b124}.round-action,.icon-button{width:38px;height:38px;flex-shrink:0;padding:0;display:grid;place-items:center;color:#3a3a3a;border:.5px solid rgba(255,255,255,.3);border-radius:12px;background:#ffffff7a;box-shadow:0 2px 6px #47474714}.theme-dark .round-action,.theme-dark .icon-button{color:#e5e5e5;border-color:#cbcbcb29;background:#71717129}.round-action:hover:not(:disabled){border-color:#8e8e8e;background:#7e7e7e1f}.theme-dark .round-action:hover:not(:disabled){border-color:#acacac;background:#b1b1b124}.primary-button.danger-button,.round-action.danger{color:#fff;border-color:#b83c3c;background:#b83c3c}.primary-button.danger-button:hover:not(:disabled),.round-action.danger:hover:not(:disabled){color:#fff;border-color:#a53131;background:#a53131;opacity:1}.danger-link{width:100%;min-height:36px;padding:8px 0;display:flex;align-items:center;justify-content:center;color:#ab030b;border:0;background:transparent;font-size:11px;text-align:center;text-decoration:underline;text-underline-offset:4px}.theme-dark .danger-link{color:#e79b9e}.danger-link:hover:not(:disabled){text-decoration-thickness:2px}.model-actions,.memory-tool-actions,.button-row{margin-top:18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.model-actions>:nth-child(3){grid-column:1 / -1}.api-preset-dialog-actions,.preview-actions,.sticker-editor-footer{display:flex;justify-content:flex-end;gap:10px;padding-top:18px;margin-top:22px;border-top:1px solid rgba(143,143,143,.2)}.theme-dark .api-preset-dialog-actions,.theme-dark .preview-actions,.theme-dark .sticker-editor-footer{border-color:#cbcbcb29}.api-preset-dialog-actions>button,.preview-actions>button,.sticker-editor-footer>button{width:auto;min-width:96px}.sticker-editor-footer>:first-child{margin-right:auto}.sticker-editor-footer .danger-link{flex:1;min-width:0;margin:0}.chat-api-title{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 12px}.chat-api-title>p{grid-column:1 / -1;margin:0}.memory-api-title>div{width:100%}.memory-api-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:10px}.copy-api-pill{min-height:30px;padding:6px 10px;display:inline-flex;align-items:center;gap:4px;color:#3a3a3a;border:.5px solid rgba(255,255,255,.3);border-radius:12px;background:#ffffff7a;box-shadow:0 2px 6px #47474714;font-size:10px;font-weight:500;white-space:nowrap}.theme-dark .copy-api-pill{color:#e5e5e5;border-color:#cbcbcb29;background:#71717129}.copy-api-pill:hover:not(:disabled){border-color:#8e8e8e;background:#7e7e7e1f}.theme-dark .copy-api-pill:hover:not(:disabled){border-color:#acacac;background:#b1b1b124}.save-current-api-pill{flex:0 0 auto;align-self:flex-start;margin-top:-3px}.memory-api-heading .copy-api-pill{flex-shrink:0;align-self:flex-start}.optional-label{margin-left:8px;font-size:10px;font-weight:400;opacity:.6}.api-preset-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0;color:inherit;border:0;background:transparent;text-align:left;font-size:13px;font-weight:750}.api-preset-trigger>span:last-child{color:#727272;font-size:11px;font-weight:500;white-space:nowrap}.theme-dark .api-preset-trigger>span:last-child{color:#b3b3b3}.api-preset-list{max-height:240px;margin-top:12px;overflow-y:auto;display:flex;flex-direction:column;gap:6px}.api-preset-row{display:flex;align-items:center;gap:7px}.api-preset-choice{min-width:0;min-height:42px;flex:1;padding:8px 11px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:#3a3a3a;border:.5px solid rgba(255,255,255,.3);border-radius:12px;background:#ffffff7a;box-shadow:0 2px 6px #47474714;text-align:left}.theme-dark .api-preset-choice{color:#e5e5e5;border-color:#cbcbcb29;background:#71717129}.api-preset-choice strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.api-preset-choice small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#727272;font-size:10px}.theme-dark .api-preset-choice small{color:#b3b3b3}.api-preset-choice.selected,.api-preset-choice:hover:not(:disabled){border-color:#8e8e8e;background:#7e7e7e1f}.theme-dark .api-preset-choice.selected,.theme-dark .api-preset-choice:hover:not(:disabled){border-color:#acacac;background:#b1b1b124}.api-preset-empty{padding:10px 0}.setting-card .credential-state{margin-top:5px;color:#727272;font-size:10px}.setting-card .credential-state.ready{color:#696969}.theme-dark .setting-card .credential-state{color:#b3b3b3}.theme-dark .setting-card .credential-state.ready{color:#bfbfbf}.api-preset-error{margin:8px 0 0;color:#ae5358;font-size:12px}.theme-dark .api-preset-error{color:#e79b9e}.archive-context-button{width:100%;margin-top:22px;padding:10px 13px}.vector-stats{margin-top:10px;padding:12px;display:grid;grid-template-columns:1fr 1fr;gap:8px;color:#3a3a3a;border:.5px solid rgba(255,255,255,.3);border-radius:12px;background:#ffffff7a;box-shadow:0 2px 6px #47474714}.theme-dark .vector-stats{color:#e5e5e5;border-color:#cbcbcb29;background:#71717129}.vector-stats div{min-width:0}.vector-stats span{display:block;color:#727272;font-size:10px}.vector-stats strong{display:block;margin-top:3px;font-size:15px}.vector-stats small{grid-column:1 / -1;overflow-wrap:anywhere;color:#727272;font-size:9px}.theme-dark .vector-stats span,.theme-dark .vector-stats small{color:#b3b3b3}.prompt-preview{margin-top:12px;color:#727272;font-size:12px}.theme-dark .prompt-preview{color:#b3b3b3}.prompt-preview summary{cursor:pointer;color:#3a3a3a;font-weight:750}.theme-dark .prompt-preview summary{color:#e5e5e5}.prompt-preview div{margin-top:12px;padding:12px;color:#3a3a3a;border-radius:12px;background:#ffffff7a}.theme-dark .prompt-preview div{color:#e5e5e5;background:#71717129}.prompt-preview ul{margin:6px 0 0;padding-left:18px;line-height:1.6}.prompt-preview li+li{margin-top:4px}.sql-toggle{padding:10px 0 0;color:#727272;border:0;background:transparent;font-size:11px;text-decoration:underline;text-underline-offset:3px}.theme-dark .sql-toggle{color:#b3b3b3}.sql-box{margin-top:10px;overflow:hidden;border:1px solid rgba(143,143,143,.2);border-radius:13px;background:#3d3d3d}.theme-dark .sql-box{border-color:#cbcbcb29}.sql-box>div{padding:9px 10px;display:flex;align-items:center;justify-content:space-between;gap:8px;color:#ddd;background:#4c4c4c;font-size:10px}.sql-box button{display:flex;align-items:center;gap:4px;color:#e8e8e8;border:0;background:transparent;font-size:10px}.sql-box pre{max-height:240px;margin:0;padding:12px;overflow:auto;color:#e8e8e8;font:10px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre;-webkit-user-select:text;user-select:text}.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 rgba(143,143,143,.2);border-radius:13px;background:#ffffff7a}.theme-dark .synced-memory-totals div{border-color:#cbcbcb29;background:#71717129}.synced-memory-totals span{display:block;color:#727272;font-size:10px}.theme-dark .synced-memory-totals span{color:#b3b3b3}.synced-memory-totals strong{display:block;margin-top:4px;overflow:hidden;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:#727272;border-radius:8px;background:#7e7e7e1f;font-size:10px}.theme-dark .synced-memory-room-summary span,.theme-dark .synced-memory-tags span{color:#b3b3b3;background:#b1b1b124}.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:#3a3a3a;border:1px dashed rgba(143,143,143,.2);border-radius:18px;background:#ffffff7a;font-size:12px;text-align:center}.theme-dark .synced-memory-empty{color:#e5e5e5;border-color:#cbcbcb29;background:#71717129}.synced-memory-card{padding:14px;color:#3a3a3a;border:1px solid rgba(143,143,143,.2);border-radius:17px;background:#ffffff7a}.theme-dark .synced-memory-card{color:#e5e5e5;border-color:#cbcbcb29;background:#71717129}.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:#727272;font-size:10px}.theme-dark .synced-memory-card-head>div:first-child{color:#b3b3b3}.synced-memory-card-head b{font-weight:750}.synced-memory-card-head i{padding:2px 5px;border-radius:6px;background:#7e7e7e1f;font-style:normal}.theme-dark .synced-memory-card-head i{background:#b1b1b124}.synced-memory-card p{margin:9px 0 0;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:#727272;font-size:9px;overflow-wrap:anywhere}.theme-dark .synced-memory-card>small{color:#b3b3b3}.synced-memory-tags{margin-top:8px;display:flex;flex-wrap:wrap;gap:5px}.synced-memory-footnote{margin:12px 4px 0;color:#727272;font-size:10px;line-height:1.55}.theme-dark .synced-memory-footnote{color:#b3b3b3}.compatibility-note{margin-top:12px;padding:12px;color:#3a3a3a;border:1px dashed rgba(143,143,143,.2);border-radius:14px;background:#ffffff7a;font-size:11px;line-height:1.6}.theme-dark .compatibility-note{color:#e5e5e5;border-color:#cbcbcb29;background:#71717129}.compatibility-note strong{font-size:12px}.compatibility-note ol{margin:7px 0 0;padding-left:20px}.compatibility-note li+li{margin-top:3px}.identity-panel h3{margin:0 0 14px;font-size:19px;font-weight:600;line-height:1.2;letter-spacing:-.025em}.avatar-setting-row{display:flex;align-items:center;gap:13px;margin-bottom:22px}.avatar-preview{width:58px;height:58px;flex:0 0 auto;display:grid;place-items:center;overflow:hidden;color:#f9f9f9;border-radius:18px;background:#5c5c5c;font-size:22px;font-weight:600;line-height:1}.theme-dark .avatar-preview{color:#3a3a3a;background:#c6c6c6}.avatar-actions{display:flex;align-items:flex-start;flex-direction:column;gap:4px}.setting-card .avatar-upload-button{min-height:42px;margin:0;padding:10px 16px;display:inline-flex;align-items:center;gap:7px;color:#3a3a3a;border:1px solid rgba(143,143,143,.2);border-radius:12px;background:#ffffff7a;font-size:12px;font-weight:600;line-height:1.5;cursor:pointer}.theme-dark .setting-card .avatar-upload-button{color:#e5e5e5;border-color:#cbcbcb29;background:#71717129}.avatar-upload-button input{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}.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 rgba(143,143,143,.2);border-radius:13px;background:#ffffff7a}.theme-dark .theme-choice{border-color:#cbcbcb29;background:#71717129}.theme-choice button{min-height:38px;color:#727272;border:0;border-radius:9px;background:transparent;font-weight:750}.theme-dark .theme-choice button{color:#b3b3b3}.theme-choice button.active{color:#f9f9f9;border:1px solid transparent;background:#5c5c5c}.theme-dark .theme-choice button.active{color:#3a3a3a;background:#c6c6c6}.range-value{float:right;color:#3a3a3a;font-variant-numeric:tabular-nums}.theme-dark .range-value{color:#e5e5e5}.appearance-card input[type=range]{width:100%;margin-top:6px;padding:0;background:transparent}.font-preview{margin-top:14px;padding:14px;color:#3a3a3a;border:1px solid rgba(143,143,143,.2);border-radius:14px;background:#ffffff7a;line-height:1.65}.theme-dark .font-preview{color:#e5e5e5;border-color:#cbcbcb29;background:#71717129}.background-setting{margin-top:24px;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;overflow:hidden;color:#727272;border:1px solid rgba(143,143,143,.2);border-radius:16px;background:#ffffff7a}.theme-dark .background-preview{color:#b3b3b3;border-color:#cbcbcb29;background:#71717129}.background-preview img{width:100%;height:100%;display:block;object-fit:contain}.model-picker-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;padding:18px;display:grid;place-items:center;background:#d9d9d952;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);animation:backdrop-in .18s ease-out both}.theme-dark .model-picker-backdrop{background:#34343470}.model-picker-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.model-picker-header span{color:#727272;font-size:10px}.theme-dark .model-picker-header span{color:#b3b3b3}.model-picker-header h2{margin:3px 0 0;font-size:20px;font-weight:600;line-height:1.2;letter-spacing:-.025em}.sticker-editor-dialog{width:min(100%,520px);max-height:min(82dvh,680px);padding:24px;overflow-y:auto;color:#3a3a3a;border:.5px solid rgba(255,255,255,.3);border-radius:12px;background:#ffffff7a;box-shadow:0 2px 6px #47474714;box-shadow:0 12px 36px #47474714;-webkit-backdrop-filter:blur(30px);backdrop-filter:blur(30px);animation:modal-in .22s cubic-bezier(.2,.8,.2,1) both}.theme-dark .sticker-editor-dialog{color:#e5e5e5;border-color:#cbcbcb29;background:#474747b3;box-shadow:0 12px 36px #2121212e}.sticker-editor-dialog label{display:block;margin-top:13px;color:#727272;font-size:12px;font-weight:700}.theme-dark .sticker-editor-dialog label{color:#b3b3b3}.sticker-editor-dialog input,.sticker-editor-dialog textarea,.sticker-editor-dialog select{padding:12px;line-height:1.5}.message-editor-dialog textarea{min-height:132px}.simple-editor-dialog>textarea{margin-top:18px}.editor-fields{margin-top:18px;display:grid;gap:10px}.editor-fields input{margin-top:0}.sticker-editor-dialog>.primary-button{width:100%;margin-top:14px}.api-preset-dialog form{margin-top:14px}.api-preset-dialog form>label{margin-top:0}.synced-memory-editor{width:min(100%,560px)}.model-picker{width:min(100%,560px);max-height:min(78dvh,680px);padding:24px;display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:12px;color:#3a3a3a;border:1px solid rgba(143,143,143,.2);border-radius:22px;background:#fcfcfcad;box-shadow:0 12px 36px #47474714;-webkit-backdrop-filter:blur(30px);backdrop-filter:blur(30px);animation:modal-in .22s cubic-bezier(.2,.8,.2,1) both}.theme-dark .model-picker{color:#e5e5e5;border-color:#cbcbcb29;background:#474747b3;box-shadow:0 12px 36px #2121212e}.model-search{min-height:43px;margin-top:0;padding:10px 13px}.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:#3a3a3a;text-align:left;border:1px solid transparent;border-radius:11px;background:transparent}.theme-dark .model-list button{color:#e5e5e5}.model-list button:hover,.model-list button.selected{border-color:#8f8f8f33;background:#7e7e7e1f}.theme-dark .model-list button:hover,.theme-dark .model-list button.selected{border-color:#cbcbcb29;background:#b1b1b124}.model-list button.selected{font-weight:750}.model-empty{padding:34px 12px;color:#727272;text-align:center;font-size:13px}.theme-dark .model-empty{color:#b3b3b3}.memory-preview{width:min(100%,560px);max-height:min(78dvh,680px);padding:24px;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;gap:12px;overflow:hidden;color:#3a3a3a;border:1px solid rgba(143,143,143,.2);border-radius:22px;background:#fcfcfcad;box-shadow:0 12px 36px #47474714;-webkit-backdrop-filter:blur(30px);backdrop-filter:blur(30px);animation:modal-in .22s cubic-bezier(.2,.8,.2,1) both}.theme-dark .memory-preview{color:#e5e5e5;border-color:#cbcbcb29;background:#474747b3;box-shadow:0 12px 36px #2121212e}.memory-preview-hint{margin:0;color:#727272;font-size:12px;line-height:1.55}.theme-dark .memory-preview-hint{color:#b3b3b3}.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 rgba(143,143,143,.2);border-radius:14px;background:#ffffff7a}.theme-dark .memory-preview-list article{border-color:#cbcbcb29;background:#71717129}.memory-preview-list article>div{display:flex;justify-content:space-between;gap:8px;color:#727272;font-size:10px}.memory-preview-list article p{margin:8px 0 0;font-size:13px;line-height:1.65;white-space:pre-wrap}.memory-preview-list article small{margin-top:7px;display:block;color:#727272;font-size:10px}.theme-dark .memory-preview-list article>div,.theme-dark .memory-preview-list article small{color:#b3b3b3}.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;color:#3a3a3a;border:1px solid rgba(143,143,143,.2);border-radius:13px;background:#fcfcfcad;box-shadow:0 12px 36px #47474714;-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);font-size:12px;line-height:1.5;transform:translate(-50%);animation:toast-in .2s ease-out both;pointer-events:none}.theme-dark .notice{color:#e5e5e5;border-color:#cbcbcb29;background:#474747b3;box-shadow:0 12px 36px #2121212e}.notice.success{color:#696969}.theme-dark .notice.success{color:#bfbfbf}.notice.error{color:#ae5358}.theme-dark .notice.error{color:#e79b9e}.lite-crash-screen{width:100%;min-height:100dvh;padding:24px;display:grid;place-items:center;color:#3a3a3a;background:#eaeaea}.lite-crash-screen section{width:min(100%,420px);padding:28px;border:1px solid #d4d4d4;border-radius:24px;background:#ffffffad;text-align:center}.lite-crash-screen h1{margin:0 0 10px;font-size:24px;font-weight:600;line-height:1.2}.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:#ae5358;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:#5c5c5c;font-weight:600}.spin{animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@keyframes typing{0%,70%,to{opacity:.3;transform:translateY(0)}35%{opacity:1;transform:translateY(-3px)}}@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 tray-in{0%{opacity:0;transform:translateY(10px) scale(.985)}}@keyframes toast-in{0%{opacity:0;transform:translate(-50%,-8px)}}@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}}@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-ios body{padding:0}html.cookie-ios .lite-shell{position:fixed;top:var(--lite-viewport-top, 0px);left:50%;height:var(--lite-viewport-height, 100dvh);margin:0;transform:translate(-50%)}html.cookie-keyboard-open .lite-shell{border-radius:0}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}.settings-section-panel{padding:0 14px}.setting-card{padding:18px 16px;border-radius:18px}.sheet-title-row{margin-bottom:18px}.setting-card-title{gap:10px}.save-current-api-pill{max-width:176px;white-space:normal;text-align:center}.memory-api-heading{gap:7px}.memory-api-heading strong{font-size:13px}.memory-api-heading .copy-api-pill{padding-right:8px;padding-left:8px}.model-actions,.memory-tool-actions,.button-row{gap:8px}.primary-button,.secondary-button{padding:10px}.sticker-editor-dialog,.model-picker,.memory-preview{padding:20px}.model-picker-backdrop{padding:12px}.composer textarea,.setting-card input:not([type=range]):not([type=checkbox]):not([type=file]),.setting-card select,.setting-card textarea,.sticker-editor-dialog input,.sticker-editor-dialog textarea,.sticker-editor-dialog select,.model-search{font-size:16px}.synced-memory-edit-fields{grid-template-columns:1fr;gap:0}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
