.mask-persona-dropdown{position:absolute;right:0;top:110%;background:#fff;border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.12);min-width:260px;max-width:320px;z-index:30;padding:8px}.chat-interface{width:100%;height:var(--chat-vv-height,100%);max-width:100%;margin:0 auto;display:flex;flex-direction:column;background-color:transparent;position:relative;overflow:hidden;flex:1 1 auto;min-height:0;max-height:var(--chat-vv-height,100%);top:var(--chat-vv-offset-top,0);overscroll-behavior:none;backdrop-filter:none;-webkit-backdrop-filter:none}@media (min-width:1024px){.chat-interface{max-width:100%;margin:0;border-left:none;border-right:none;box-shadow:none}}@media (min-width:768px) and (max-width:1023px){.chat-interface{max-width:100%;margin:0;border-left:none;border-right:none}}.chat-header{display:flex;align-items:center;padding:4px 12px;background-color:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;z-index:10;position:sticky;top:0;left:0;right:0;min-height:0;flex:0 0 auto}.chat-header.headfunction-search-active .back-button,.chat-header.headfunction-search-active .chat-actions .ifm-root,.chat-header.headfunction-search-active .chat-info{display:none!important}.chat-header.headfunction-search-active .chat-actions{flex:1}.chat-interface>.chat-header.headfunction-search-active{z-index:40;overflow:visible;isolation:isolate}@media (max-width:767px){.chat-header{padding:3px 10px;position:sticky;top:0;min-height:0}.chat-interface{height:var(--chat-vv-height,100%);min-height:0}}@media (max-width:480px){.chat-header{padding:2px 8px;position:sticky;top:0;min-height:0}.chat-interface{height:var(--chat-vv-height,100%);min-height:0}}.chat-header .back-button{display:flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:0;border-radius:0;background:transparent;cursor:pointer;color:var(--theme-text-primary,#202124);transition:color .2s ease,opacity .2s ease;margin-right:8px}.chat-header .back-button:hover{background:transparent}.chat-header .back-button.back-button-disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.chat-header .back-button svg{width:20px;height:20px}@media (max-width:767px){.chat-header .back-button{width:32px;height:32px;margin-right:6px}.chat-header .back-button svg{width:18px;height:18px}}@media (max-width:480px){.chat-header .back-button{width:28px;height:28px;margin-right:4px}.chat-header .back-button svg{width:16px;height:16px}}.chat-info{display:flex;align-items:center;flex:1;gap:12px;min-width:0}.chat-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;border:2px solid var(--theme-border-color,#e0e0e0)}@media (max-width:767px){.chat-avatar{width:36px;height:36px}}@media (max-width:480px){.chat-avatar{width:32px;height:32px}}.chat-details{display:flex;flex-direction:column;min-width:0;flex:1}.chat-name{font-weight:600;font-size:17px;color:var(--theme-text-primary,#1f1f1f);max-width:8em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (max-width:767px){.chat-name{font-size:15px;line-height:1.2;max-width:8em}}@media (max-width:480px){.chat-name{font-size:14px;line-height:1.1;max-width:8em}}.chat-status{font-size:12px;color:var(--theme-text-tertiary,#8a8a8a)}@media (max-width:480px){.chat-status{font-size:11px}}.chat-actions{display:flex;gap:8px;flex-shrink:0}.chat-actions .action-btn{background:none;border:none;color:var(--theme-text-secondary,#666);cursor:pointer;padding:8px;border-radius:50%;transition:all .2s ease;display:flex;align-items:center;justify-content:center;min-width:36px;min-height:36px}.chat-actions .action-btn svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.chat-actions .action-btn:hover{background-color:var(--theme-bg-tertiary,#f0f0f0);transform:scale(1.05)}.chat-actions .action-btn:active{transform:scale(.95);background-color:var(--theme-bg-quaternary,#e0e0e0)}@media (max-width:767px){.chat-actions{gap:4px}.chat-actions .action-btn{padding:6px;min-width:32px;min-height:32px;display:flex;align-items:center;justify-content:center}.chat-actions .action-btn svg{width:18px;height:18px}}@media (max-width:480px){.chat-actions{gap:2px}.chat-actions .action-btn{padding:4px;min-width:28px;min-height:28px}.chat-actions .action-btn svg{width:16px;height:16px}}.chat-message-panel{position:relative;min-width:0;overflow:hidden}.chat-message-panel,.messages-container{display:flex;flex:1 1 auto;flex-direction:column;min-height:0}.messages-container{overflow-y:auto;overflow-x:hidden;padding:12px 16px 16px;gap:15px;margin-top:0;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;touch-action:pan-y;scroll-behavior:auto;scroll-padding:16px 0;scroll-snap-type:none;overflow-anchor:none;transition:padding-bottom .2s ease}.messages-container--with-floating-action{padding-bottom:72px;scroll-padding-bottom:72px}.message-panel-content{display:flex;flex-direction:column;gap:15px;width:100%;min-width:0}.messages-container.initialized{scroll-behavior:auto}.messages-container:not(.initialized){scroll-behavior:auto!important}.load-more-container{display:flex;justify-content:center;padding:10px 0;margin-bottom:10px}.chat-interface .load-more-btn{background-color:var(--theme-bg-secondary,#ffffff);border:1px solid var(--theme-border-color,#e0e0e0);border-radius:20px;padding:10px 20px;font-size:14px;color:var(--theme-accent-color,#007bff);cursor:pointer;transition:all .2s ease;box-shadow:0 2px 4px rgba(0,0,0,.1);min-width:120px;font-weight:500}.chat-interface .load-more-btn:hover:not(:disabled){background-color:var(--theme-accent-color,#007bff);color:white;transform:translateY(-1px);box-shadow:0 4px 8px rgba(0,0,0,.15)}.chat-interface .load-more-btn:disabled{opacity:.6;cursor:not-allowed;transform:none}.chat-interface .load-more-btn.loading{background-color:var(--theme-accent-color,#007bff);color:white}.chat-interface .load-more-btn:active{transform:translateY(0);box-shadow:0 2px 4px rgba(0,0,0,.1)}@media (max-width:767px){.messages-container{padding:10px 12px 14px;gap:12px}.messages-container--with-floating-action{padding-bottom:62px;scroll-padding-bottom:62px}.chat-interface .load-more-btn{padding:8px 16px;font-size:13px;min-width:100px}}@media (max-width:480px){.messages-container{padding:8px 10px 12px;gap:10px}.messages-container--with-floating-action{padding-bottom:56px;scroll-padding-bottom:56px}.chat-interface .load-more-btn{padding:6px 12px;font-size:12px;min-width:80px}}.empty-chat{display:flex;justify-content:center;align-items:center;height:100%;color:var(--theme-text-tertiary,#8a8a8a);font-size:14px}@media (max-width:480px){.empty-chat{font-size:13px}}.date-divider{display:flex;align-items:center;justify-content:center;margin:20px 0;padding:0 16px;gap:12px}.date-divider-line{flex:1;height:1px;background:var(--theme-border-color,#e0e0e0);opacity:.6}.date-divider-text{font-size:12px;color:var(--theme-text-secondary,#999);padding:4px 12px;background:var(--theme-bg-primary,#ffffff);border-radius:12px;white-space:nowrap;font-weight:500}.date-divider-time .date-divider-text{font-size:11px;opacity:.85}@media (prefers-color-scheme:dark){.date-divider-line{background:var(--theme-border-color,#444);opacity:.8}.date-divider-text{background:var(--theme-bg-secondary,#1f1f1f);color:var(--theme-text-secondary,#aaa)}}@media (max-width:767px){.date-divider{margin:16px 0;padding:0 12px;gap:10px}.date-divider-text{font-size:11px;padding:3px 10px}}.scroll-to-bottom-btn{position:absolute;right:18px;bottom:16px;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,.2);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.3);color:#333;cursor:pointer;font-size:18px;box-shadow:0 2px 8px rgba(0,0,0,.1);transition:all .2s ease;z-index:8;display:flex;align-items:center;justify-content:center}.scroll-to-bottom-btn:hover{background:rgba(255,255,255,.3);transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.2)}.scroll-to-bottom-btn:active{transform:translateY(0)}.floating-continue-btn{position:absolute;right:18px;bottom:16px;z-index:8;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:0 15px;border:1px solid rgba(255,255,255,.34);border-radius:999px;background:rgba(255,255,255,.24);color:var(--theme-text-primary,#333);box-shadow:0 2px 10px rgba(0,0,0,.11);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);font-size:13px;font-weight:500;cursor:pointer;animation:floating-continue-in .2s ease-out;transition:background .2s ease,box-shadow .2s ease,transform .2s ease}.floating-continue-btn:hover{background:rgba(255,255,255,.38);box-shadow:0 4px 14px rgba(0,0,0,.16);transform:translateY(-2px)}.floating-continue-btn:active{transform:translateY(0) scale(.96)}@keyframes floating-continue-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@media (max-width:767px){.scroll-to-bottom-btn{right:14px;bottom:12px;width:36px;height:36px;font-size:16px}.floating-continue-btn{right:14px;bottom:12px;min-height:36px;padding:0 13px;font-size:12px}}@media (max-width:480px){.scroll-to-bottom-btn{right:12px;bottom:10px;width:32px;height:32px;font-size:14px}.floating-continue-btn{right:12px;bottom:10px;min-height:32px;padding:0 11px;font-size:12px}}.message{display:flex;max-width:80%;position:relative}.message.batch-delete-mode{padding-left:0;width:100%;max-width:100%}.message.batch-selected{background-color:rgba(59,130,246,.1);border-left:3px solid var(--accent-color,#3b82f6);margin-left:-3px}.message-checkbox{display:flex;align-items:flex-start;padding-top:10px;margin-right:8px;flex-shrink:0;width:18px}.message-checkbox input[type=checkbox]{width:18px;height:18px;cursor:pointer;margin:0}.message-avatar{width:40px;height:40px;flex-shrink:0;display:flex;align-items:center;justify-content:center}.message-avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover;border:none}.message-content{display:flex;flex-direction:column;gap:5px;flex:0 1 auto;min-width:0}.message-sender{font-size:12px;color:var(--theme-text-secondary,#666);font-weight:500;margin-bottom:2px;padding:0 5px}@media (max-width:480px){.message-sender{font-size:11px}}:root{--message-bubble-max-width:calc(100% - 20px);--group-message-bubble-max-width:calc(100% - 44px);--message-container-max-width:100%}.quoted-message{background-color:var(--theme-bg-tertiary,rgba(0,123,255,.1));padding:8px 12px;margin-bottom:5px;border-radius:8px;font-size:12px}.quote-header{display:flex;justify-content:space-between;margin-bottom:4px}.quote-sender{font-weight:500;color:var(--theme-accent-color,#007bff)}.quote-time{color:var(--theme-text-tertiary,#8a8a8a);font-size:11px}.quote-content{color:var(--theme-text-secondary,#555);line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal}@media (max-width:767px){:root{--message-bubble-max-width:calc(100% - 15px);--group-message-bubble-max-width:calc(100% - 40px)}}@media (max-width:480px){:root{--message-bubble-max-width:calc(100% - 10px);--group-message-bubble-max-width:calc(100% - 35px)}}.typing-dots{display:flex;gap:4px;align-items:center}.typing-dots span{width:6px;height:6px;background-color:var(--theme-text-tertiary,#8a8a8a);border-radius:50%;animation:typing 1.4s ease-in-out infinite}.typing-dots span:first-child{animation-delay:-.32s}.typing-dots span:nth-child(2){animation-delay:-.16s}@keyframes typing{0%,80%,to{transform:scale(.8);opacity:.5}40%{transform:scale(1);opacity:1}}.messages-container::-webkit-scrollbar{width:6px}.messages-container::-webkit-scrollbar-track{background:transparent}.messages-container::-webkit-scrollbar-thumb{background:rgba(0,0,0,.2);border-radius:3px}.messages-container::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.3)}@media (max-width:767px){.message-avatar{width:36px;height:36px;margin-right:10px}}@media (max-width:480px){.message-avatar{width:37px!important;height:37px!important;margin-right:2px}}@media (min-width:768px) and (max-width:1023px){:root{--message-bubble-max-width:calc(100% - 25px);--group-message-bubble-max-width:calc(100% - 50px)}}@media (min-width:1024px){:root{--message-bubble-max-width:calc(100% - 30px);--group-message-bubble-max-width:calc(100% - 55px)}}@media (orientation:landscape) and (max-height:500px){.chat-interface{height:var(--chat-vv-height,100%);max-height:var(--chat-vv-height,100%)}.chat-header{padding:2px 12px}.messages-container{padding:0 15px}}.sticker-message,.voice-message{display:flex;align-items:center;gap:8px}.voice-message{color:var(--theme-accent-color,#007bff);font-weight:500;cursor:pointer;transition:background-color .2s;min-width:80px;max-width:200px}.voice-message:hover{background-color:var(--theme-bg-tertiary,rgba(0,0,0,.05));border-radius:8px}.voice-message-body{display:flex;align-items:center;width:100%;gap:8px}.voice-waveform{display:flex;align-items:center;height:20px;gap:2px;flex-grow:1}.voice-waveform div{width:3px;background-color:currentColor;border-radius:2px;animation:wave-quiet 1.5s ease-in-out infinite}@keyframes wave-quiet{0%,to{height:2px}50%{height:10px}}.voice-waveform div:nth-child(2){animation-delay:.2s}.voice-waveform div:nth-child(3){animation-delay:.4s}.voice-waveform div:nth-child(4){animation-delay:.6s}.voice-waveform div:nth-child(5){animation-delay:.8s}.voice-duration{font-size:13px;font-weight:500;color:var(--text-secondary,#666);white-space:nowrap}@media (prefers-color-scheme:dark){.sticker-fallback{color:#ccc}.image-fallback{color:#999}.voice-message{color:#4dabf7}}.chat-menu-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:rgba(0,0,0,.3);z-index:9999;display:flex;align-items:flex-start;justify-content:flex-end;animation:fadeIn .2s ease}.chat-menu{position:absolute;top:80px;right:20px;background:var(--theme-bg-primary,#ffffff);border-radius:8px;box-shadow:var(--theme-shadow-heavy,0 4px 16px rgba(0,0,0,.2));border:1px solid var(--theme-border-color,#e8eaed);min-width:120px;overflow:hidden;animation:slideIn .2s ease;z-index:10000}.chat-menu-item{display:block;width:100%;padding:12px 16px;background:none;border:none;text-align:left;cursor:pointer;font-size:14px;color:var(--theme-text-primary,#202124);transition:background-color .2s ease;border-bottom:1px solid var(--theme-border-light,#f1f3f4)}.chat-menu-item:last-child{border-bottom:none}.chat-menu-item:hover{background-color:var(--theme-bg-secondary,#f8f9fa)}.chat-menu-item.delete{color:#dc3545}.chat-menu-item.delete:hover{background-color:#fff5f5}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideIn{0%{opacity:0;transform:translateY(-10px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}@media (max-width:767px){.chat-menu{top:70px;right:15px;min-width:100px}.chat-menu-item{padding:10px 14px;font-size:13px}}@media (max-width:480px){.chat-menu{top:65px;right:10px;min-width:90px}.chat-menu-item{padding:8px 12px;font-size:12px}}.message-footer{display:flex;align-items:center;gap:0;margin-top:2px;padding:0 2px}.message-footer .message-time{font-size:13px;color:var(--theme-text-tertiary,#8a8a8a);white-space:nowrap;font-weight:500}.message-footer .message-inline-actions{display:flex;align-items:center}@media (max-width:767px){.message-footer{gap:5px;margin-top:1px}.message-footer .message-time{font-size:12px}}@media (max-width:480px){.message-footer{gap:3px}.message-footer .message-time{font-size:11px}}.message-edit-container{width:100%}.message-edit-input{width:100%;min-height:60px;padding:12px;border:2px solid var(--theme-accent-color,#007bff);border-radius:12px;font-size:14px;line-height:1.4;resize:vertical;background:var(--theme-bg-primary,white);color:var(--theme-text-primary,#1f1f1f);outline:none;font-family:inherit}.message-edit-input:focus{border-color:var(--theme-accent-hover,#0056b3);box-shadow:0 0 0 3px var(--theme-bg-tertiary,rgba(0,123,255,.1))}.message-edit-actions{display:flex;gap:8px;margin-top:8px;justify-content:flex-end}.edit-cancel-btn,.edit-save-btn{padding:6px 12px;border:none;border-radius:6px;font-size:12px;cursor:pointer;transition:background-color .2s}.edit-save-btn{background-color:#28a745;color:white}.edit-save-btn:hover{background-color:#218838}.edit-cancel-btn{background-color:#6c757d;color:white}.edit-cancel-btn:hover{background-color:#545b62}@media (max-width:767px){.message-edit-input{min-height:50px;padding:10px;font-size:13px}.edit-cancel-btn,.edit-save-btn{padding:5px 10px;font-size:11px}}@media (max-width:480px){.message-edit-input{min-height:45px;padding:8px;font-size:12px}.edit-cancel-btn,.edit-save-btn{padding:4px 8px;font-size:10px}}.extra-info-inline{margin:8px 0!important;background:none!important;border:none!important;border-radius:0!important;box-shadow:none!important;padding:0!important;display:block!important;width:100%!important;position:relative!important;max-width:none!important;height:auto!important;min-height:auto!important}.extra-info-inline,.extra-info-inline *{max-height:none!important;overflow:visible!important}.extra-info-inline *{box-sizing:border-box}@media (prefers-color-scheme:dark){.extra-info-inline{background:none!important}}.story-action-btn{background:none;border:none;padding:8px 16px;border-radius:6px;cursor:pointer;font-size:14px;transition:all .2s ease;color:#666;background-color:rgba(0,0,0,.05);border:1px solid rgba(0,0,0,.1)}.story-action-btn:hover{background:rgba(0,0,0,.1);color:#333;transform:scale(1.05);border-color:rgba(0,0,0,.2)}.story-action-btn:disabled{opacity:.5;cursor:not-allowed;transform:none}.vision-message{display:flex;flex-direction:column;gap:8px}.vision-message-text{font-size:14px;color:var(--theme-text-primary,#333);white-space:pre-wrap;word-break:break-word}.vision-message-grid{display:flex;flex-wrap:wrap;gap:10px}.vision-message-item{position:relative;max-width:176px;max-height:176px;min-width:88px;min-height:88px;border-radius:6px;overflow:hidden;border:1px solid var(--theme-border-color,rgba(0,0,0,.08));box-shadow:0 1px 4px rgba(0,0,0,.08);background:var(--theme-bg-primary,#fff);cursor:zoom-in;display:flex;align-items:center;justify-content:center}.vision-message-image{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;transition:transform .2s ease}.vision-message-image:hover{transform:scale(1.02)}.vision-message-simple{display:flex;flex-direction:column;gap:8px}.vision-message-grid-simple{display:flex;flex-wrap:wrap;gap:8px}.vision-message-image-simple{max-width:176px;max-height:176px;width:auto;height:auto;object-fit:contain;border-radius:6px;cursor:zoom-in;transition:transform .2s ease;box-shadow:0 1px 4px rgba(0,0,0,.08)}.vision-message-image-simple:hover{transform:scale(1.05)}.message-content-direct{display:block;width:fit-content;max-width:100%}@media (max-width:768px){.vision-message-item{min-width:80px;min-height:80px}.vision-message-image-simple,.vision-message-item{max-width:160px;max-height:160px}}.chat-interface.cinematic-chat-interface{isolation:isolate;min-height:0;height:var(--chat-vv-height,100%);max-height:var(--chat-vv-height,100%);background:#0d0a0d!important;color:#fff}.cinematic-character-stage,.cinematic-chat-scrim,.live2d-stage-loading{position:absolute;inset:0;pointer-events:none}.live2d-stage-loading{z-index:1.5;display:grid;place-items:center;overflow:hidden;color:color-mix(in srgb,var(--chat-canvas,#fff9f5) 86%,transparent);background:radial-gradient(circle at 50% 38%,color-mix(in srgb,var(--chat-accent,#a93b5b) 22%,transparent),transparent 26%),linear-gradient(160deg,color-mix(in srgb,var(--chat-canvas,#fff9f5) 92%,#160d16),color-mix(in srgb,var(--chat-surface,#ffffff) 68%,#160d16))}.live2d-stage-loading:after,.live2d-stage-loading:before{position:absolute;content:"";pointer-events:none}.live2d-stage-loading:before{width:min(82vw,560px);aspect-ratio:1;border:1px solid color-mix(in srgb,var(--chat-accent,#a93b5b) 24%,transparent);border-radius:50%;box-shadow:0 0 0 18px color-mix(in srgb,var(--chat-accent,#a93b5b) 5%,transparent),0 0 70px color-mix(in srgb,var(--chat-accent,#a93b5b) 17%,transparent);animation:live2d-loading-drift 5s ease-in-out infinite}.live2d-stage-loading:after{width:130%;height:1px;background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--chat-accent,#a93b5b) 32%,transparent),transparent);animation:live2d-loading-sweep 2.8s ease-in-out infinite}.live2d-stage-loading__content{position:relative;z-index:1;display:grid;justify-items:center;gap:10px;transform:translateY(5vh)}.live2d-stage-loading__halo{position:absolute;width:min(48vw,260px);aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,color-mix(in srgb,var(--chat-accent,#a93b5b) 20%,transparent),transparent 68%);filter:blur(10px);animation:live2d-loading-pulse 2.4s ease-in-out infinite}.live2d-stage-loading__orb{width:18px;height:18px;border:2px solid color-mix(in srgb,var(--chat-canvas,#fff9f5) 70%,transparent);border-top-color:var(--chat-accent,#a93b5b);border-radius:50%;box-shadow:0 0 24px color-mix(in srgb,var(--chat-accent,#a93b5b) 55%,transparent);animation:live2d-loading-spin 1s linear infinite}.live2d-stage-loading__label{font-size:13px;letter-spacing:.16em;text-shadow:0 2px 16px color-mix(in srgb,var(--chat-text,#2e2228) 28%,transparent)}.live2d-stage-loading__dots{min-width:22px;color:var(--chat-accent,#a93b5b);font-weight:800;letter-spacing:.16em;line-height:1;animation:live2d-loading-dots 1.2s steps(4) infinite}@keyframes live2d-loading-drift{0%,to{transform:scale(.92) rotate(-8deg);opacity:.55}50%{transform:scale(1.04) rotate(8deg);opacity:1}}@keyframes live2d-loading-sweep{0%,to{transform:translateY(-28vh);opacity:0}20%,80%{opacity:.72}50%{transform:translateY(28vh)}}@keyframes live2d-loading-pulse{0%,to{transform:scale(.82);opacity:.42}50%{transform:scale(1.08);opacity:.84}}@keyframes live2d-loading-spin{to{transform:rotate(1turn)}}@keyframes live2d-loading-dots{0%{opacity:.2}50%{opacity:1}to{opacity:.2}}@media (prefers-reduced-motion:reduce){.live2d-stage-loading:after,.live2d-stage-loading:before,.live2d-stage-loading__dots,.live2d-stage-loading__halo,.live2d-stage-loading__orb{animation:none}}.cinematic-character-stage{z-index:0;overflow:hidden;background:#151015}.cinematic-character-stage img{width:100%!important;height:100%!important;object-fit:cover;object-position:center 14%;transform:scale(1.012)}.cinematic-chat-scrim{z-index:1;background:linear-gradient(180deg,rgba(9,6,9,.64),rgba(9,6,9,.08) 22%,rgba(9,6,9,.04) 42%,rgba(9,6,9,.62) 65%,rgba(9,6,9,.96)),linear-gradient(90deg,rgba(10,6,10,.18),transparent 30%,transparent 70%,rgba(10,6,10,.18))}.cinematic-chat-interface>.chat-header{position:relative;top:auto;min-height:0;padding:max(2px,env(safe-area-inset-top,0px)) 12px 2px;border:0;background:linear-gradient(180deg,rgba(8,5,8,.82),rgba(8,5,8,.22) 74%,transparent)!important;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}.cinematic-chat-interface .headfunction-companion-button,.cinematic-chat-interface .headfunction-search-button,.cinematic-chat-interface .ifm-trigger{border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(14,10,14,.42);color:rgba(255,255,255,.94);box-shadow:none}.cinematic-chat-interface .chat-header .back-button{width:40px;height:40px;min-width:40px;min-height:40px;margin-right:4px;padding:0;border:0;border-radius:0;color:rgba(255,255,255,.94);background:transparent;box-shadow:none}.cinematic-chat-interface .headfunction-companion-button:hover,.cinematic-chat-interface .headfunction-search-button:hover,.cinematic-chat-interface .ifm-trigger.open,.cinematic-chat-interface .ifm-trigger:hover{color:#fff;background:rgba(169,59,91,.72);transform:none}.cinematic-chat-interface .chat-header .back-button:hover{color:#fff;background:transparent}.cinematic-chat-interface .chat-info{gap:9px}.cinematic-chat-interface .chat-avatar{width:40px;height:40px;border-radius:12px;border:1px solid rgba(255,255,255,.28);box-shadow:0 4px 14px rgba(0,0,0,.26)}.cinematic-chat-interface .chat-name{color:#fff;font-size:15px;font-weight:720;line-height:1.18;text-shadow:0 1px 8px rgba(0,0,0,.8)}.cinematic-chat-interface .chat-status,.cinematic-chat-interface .chat-status-display,.cinematic-chat-interface .status-text{color:rgba(255,255,255,.72)!important;text-shadow:0 1px 7px rgba(0,0,0,.78)}.cinematic-chat-interface .ifm-trigger{justify-content:center;border-radius:50%}.cinematic-chat-interface .ifm-trigger-text{display:none}.cinematic-chat-interface>.chat-message-panel{flex:1 1 auto;width:min(calc(100% - 24px),720px);min-height:138px;margin:clamp(116px,31dvh,330px) auto 8px;overflow:hidden;border:1px solid rgba(255,255,255,.09);background:linear-gradient(180deg,rgba(19,16,20,.72),rgba(11,9,12,.91));box-shadow:0 18px 46px rgba(0,0,0,.32),inset 0 1px rgba(255,255,255,.035)}.cinematic-chat-interface .messages-container{padding:14px 12px 16px;gap:10px;background:transparent;scrollbar-color:rgba(255,255,255,.26) transparent}.cinematic-chat-interface .message-panel-content{gap:10px}.cinematic-chat-interface .messages-container::-webkit-scrollbar{width:3px}.cinematic-chat-interface .messages-container::-webkit-scrollbar-thumb{background:rgba(255,255,255,.26)}.cinematic-chat-interface .date-divider{margin:6px 0}.cinematic-chat-interface .date-divider-line{background:rgba(255,255,255,.1)}.cinematic-chat-interface .date-divider-text{color:rgba(255,255,255,.55);background:transparent}.cinematic-chat-interface .message{max-width:94%}.cinematic-chat-interface .message-avatar{width:28px;height:28px;align-self:flex-end}.cinematic-chat-interface .message-avatar img{border-radius:9px;border:1px solid rgba(255,255,255,.14)}.cinematic-chat-interface .message-content{gap:3px}.cinematic-chat-interface .message-sender,.cinematic-chat-interface .message-time{color:rgba(255,255,255,.5)}.cinematic-chat-interface .quoted-message{border-left:2px solid rgba(255,183,204,.7);background:rgba(255,255,255,.075)}.cinematic-chat-interface .quote-content,.cinematic-chat-interface .quote-sender,.cinematic-chat-interface .quote-time{color:rgba(255,255,255,.68)}.cinematic-chat-interface .empty-chat,.cinematic-chat-interface .story-empty-state{color:rgba(255,255,255,.76)}.cinematic-chat-interface .typing-dots span{background:rgba(255,255,255,.72)}.cinematic-chat-interface .floating-continue-btn,.cinematic-chat-interface .scroll-to-bottom-btn{border-color:rgba(255,255,255,.14);background:rgba(32,27,33,.94);color:#fff;box-shadow:0 8px 22px rgba(0,0,0,.28);backdrop-filter:none;-webkit-backdrop-filter:none}.cinematic-chat-interface .floating-continue-btn:not(.is-stopping){background:rgba(143,63,131,.96)}.cinematic-chat-interface .bottom-action-buttons-row{margin:0 0 6px;padding:0;gap:5px}.cinematic-chat-interface .bottom-action-buttons-left,.cinematic-chat-interface .bottom-action-buttons-right,.cinematic-chat-interface .bottom-action-buttons-right-inner{gap:5px}.cinematic-chat-interface .auto-reply-toggle,.cinematic-chat-interface .mode-segmented-control,.cinematic-chat-interface .plus-hub-btn,.cinematic-chat-interface .recollection-memory-summary-btn{border-color:rgba(255,255,255,.12)!important;background:rgba(255,255,255,.075)!important;color:rgba(255,255,255,.8)!important;box-shadow:none!important}.cinematic-chat-interface .plus-hub-btn{width:38px;height:38px;min-height:38px;max-height:38px}.cinematic-chat-interface .mode-segmented-control{height:38px;min-height:38px}.cinematic-chat-interface .mode-segmented-control button{color:rgba(255,255,255,.58)}.cinematic-chat-interface .mode-segmented-control button.is-active{background:rgba(255,255,255,.16);color:#fff;box-shadow:none}.cinematic-chat-interface .auto-reply-toggle.is-active .auto-reply-toggle-track{background:#a93b5b}.cinematic-chat-interface .input-row{gap:8px}.cinematic-chat-interface .input-wrapper{min-height:46px;padding:0 14px;border:1px solid rgba(255,255,255,.12);border-radius:16px;background:rgba(255,255,255,.085);backdrop-filter:none;-webkit-backdrop-filter:none}.cinematic-chat-interface .input-wrapper textarea{min-height:22px;padding:11px 0;color:#fff;caret-color:#ffafc5}.cinematic-chat-interface .input-wrapper textarea::placeholder{color:rgba(255,255,255,.42)}.cinematic-chat-interface .send-btn{width:46px;min-width:46px;height:46px;min-height:46px;padding:0;border:1px solid rgba(255,255,255,.16);border-radius:16px;background:#a93b5b;color:#fff;box-shadow:0 7px 18px rgba(93,21,50,.34)}.cinematic-chat-interface .send-btn:disabled{border-color:rgba(255,255,255,.08);background:rgba(255,255,255,.09);color:rgba(255,255,255,.35);box-shadow:none}@media (max-width:480px){.cinematic-chat-interface>.chat-header{min-height:0;padding-inline:10px}.cinematic-chat-interface .headfunction-companion-button,.cinematic-chat-interface .headfunction-search-button,.cinematic-chat-interface .ifm-trigger{width:38px;height:38px;min-width:38px;min-height:38px}.cinematic-chat-interface .chat-avatar{width:38px;height:38px}.cinematic-chat-interface>.chat-message-panel{width:calc(100% - 20px);margin-top:clamp(104px,30dvh,290px);border-radius:19px}.cinematic-chat-interface .messages-container{padding:12px 10px 14px}.cinematic-chat-interface .input-wrapper{min-height:44px;border-radius:15px}.cinematic-chat-interface .send-btn{width:44px;min-width:44px;height:44px;min-height:44px;border-radius:15px}}@media (max-height:650px){.cinematic-chat-interface>.chat-message-panel{margin-top:clamp(52px,19dvh,120px)}}.cinematic-chat-interface:has(textarea:focus)>.chat-message-panel{margin-top:0}@media (prefers-reduced-motion:reduce){.cinematic-character-stage img,.cinematic-chat-interface *{scroll-behavior:auto!important}}.chat-interface.cinematic-chat-interface{color:#fffaf7}.cinematic-chat-interface .headfunction-companion-button,.cinematic-chat-interface .headfunction-search-button,.cinematic-chat-interface .ifm-trigger{width:40px;height:40px;min-width:40px;min-height:40px;display:grid;place-items:center;padding:0;border:1px solid rgba(255,250,247,.18);border-radius:13px;background:rgba(245,240,237,.14);color:rgba(255,252,250,.94);box-shadow:0 5px 14px rgba(54,47,49,.1);-webkit-backdrop-filter:none;backdrop-filter:none}.cinematic-chat-interface .headfunction-live2d-button{position:relative}.cinematic-chat-interface .headfunction-live2d-button.is-active{border-color:rgba(255,234,240,.46);background:#9f4660}.headfunction-live2d-badge{position:absolute;right:-3px;bottom:-3px;min-width:18px;height:14px;display:grid;place-items:center;padding:0 3px;border:2px solid #746b6e;border-radius:6px;background:#f2ece8;color:#6d3d62;font-size:8px;font-weight:800;line-height:1}.cinematic-chat-interface .chat-header .back-button:hover,.cinematic-chat-interface .headfunction-companion-button:hover,.cinematic-chat-interface .headfunction-live2d-button:hover,.cinematic-chat-interface .headfunction-search-button:hover,.cinematic-chat-interface .ifm-trigger.open,.cinematic-chat-interface .ifm-trigger:hover{border-color:rgba(255,234,240,.34);background:rgba(159,70,96,.78);color:#fff}.cinematic-chat-interface .chat-details,.cinematic-chat-interface .chat-info{min-width:0}.cinematic-chat-interface .chat-name{overflow:hidden;max-width:min(220px,30vw);text-overflow:ellipsis;white-space:nowrap}.cinematic-chat-interface .chat-status,.cinematic-chat-interface .chat-status-display,.cinematic-chat-interface .status-text{color:rgba(255,250,247,.86)!important}.cinematic-chat-interface .date-divider-text,.cinematic-chat-interface .message-sender,.cinematic-chat-interface .message-time{color:#d9cfcc}.cinematic-chat-interface .date-divider-line{background:rgba(255,250,247,.14)}.cinematic-chat-interface .floating-continue-btn,.cinematic-chat-interface .scroll-to-bottom-btn{border-color:rgba(255,250,247,.18);background:#665d60;color:#fffaf7;box-shadow:0 8px 20px rgba(50,43,46,.22)}.cinematic-chat-interface:has(textarea:focus)>.chat-message-panel,.cinematic-chat-interface>.chat-message-panel{background:linear-gradient(180deg,rgba(78,72,74,0),rgba(78,72,74,.16) 18px,rgba(78,72,74,.42) 48px,rgba(78,72,74,.6) 88px,rgba(78,72,74,.64))}.cinematic-chat-interface .cinematic-character-stage{background:linear-gradient(180deg,#b9b0ab,#aaa19d 62%,#8f8583)}.cinematic-chat-interface .cinematic-character-stage img{object-fit:contain}.cinematic-chat-interface>.chat-message-panel{width:min(100%,760px);margin:auto auto 0;border:0;border-radius:0;background:linear-gradient(180deg,rgba(78,72,74,0),rgba(78,72,74,.24) 18px,rgba(78,72,74,.58) 48px,rgba(78,72,74,.74) 88px,rgba(78,72,74,.76));box-shadow:none}.cinematic-chat-interface .chat-sheet-toolbar{border-bottom-color:rgba(255,250,247,.08)}.cinematic-chat-interface:has(textarea:focus)>.chat-message-panel{margin:auto auto 0}@media (max-width:480px){.cinematic-chat-interface>.chat-message-panel{width:100%;margin:auto 0 0;border-radius:0}.cinematic-chat-interface:has(textarea:focus)>.chat-message-panel{margin:auto 0 0}}@media (max-width:480px){.cinematic-chat-interface .headfunction-companion-button,.cinematic-chat-interface .headfunction-live2d-button,.cinematic-chat-interface .headfunction-search-button,.cinematic-chat-interface .ifm-trigger{width:38px;height:38px;min-width:38px;min-height:38px}.cinematic-chat-interface .chat-actions{gap:4px!important}.cinematic-chat-interface .chat-name{max-width:28vw}}.live2d-stage-notice{position:absolute;z-index:8;top:calc(68px + env(safe-area-inset-top, 0px));left:50%;display:flex;max-width:min(86vw,460px);align-items:center;gap:10px;padding:8px 10px 8px 14px;border:1px solid rgba(255,255,255,.42);border-radius:999px;background:rgba(58,49,54,.78);color:#fff;font-size:12px;line-height:1.4;box-shadow:0 10px 28px rgba(36,27,31,.2);transform:translateX(-50%)}.live2d-stage-notice span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.live2d-stage-notice button{min-width:48px;min-height:40px;padding:0 12px;border:0;border-radius:999px;background:#fff;color:#6d3d62;font-weight:700}.cinematic-chat-interface.has-live2d-stage-ready .cinematic-character-stage{opacity:1;transition:opacity .26s ease}.cinematic-chat-interface>.chat-message-panel{flex:0 0 var(--chat-sheet-height,calc(100dvh - 168px));height:var(--chat-sheet-height,calc(100dvh - 168px));min-height:0;width:min(calc(100% - 20px),720px);margin:auto auto 8px;border-color:rgba(255,255,255,.12);border-radius:22px;background:rgba(25,19,23,.9);box-shadow:0 18px 48px rgba(0,0,0,.36),inset 0 1px rgba(255,255,255,.04);transition:height .26s cubic-bezier(.22,.8,.2,1),flex-basis .26s cubic-bezier(.22,.8,.2,1),border-radius .18s ease}.cinematic-chat-interface>.chat-message-panel.is-dragging{transition:none;user-select:none}.chat-sheet-toolbar{flex:0 0 44px;min-height:44px;display:grid;grid-template-columns:58px 1fr;align-items:center;border-bottom:1px solid rgba(255,255,255,.07)}.chat-sheet-drag-handle{min-width:44px;min-height:44px;border:0;background:transparent;color:#cdbfc4;display:grid;place-items:center;touch-action:none;cursor:ns-resize}.chat-sheet-drag-handle span{width:34px;height:4px;border-radius:999px;background:rgba(255,255,255,.34)}.cinematic-chat-interface .messages-container{padding:10px 12px 16px}.cinematic-chat-interface .typing-dots span{background:#a93b5b}.cinematic-chat-interface .quoted-message{border-left-color:#a93b5b;background:#392832;color:#fff9f5}@media (max-width:480px){.cinematic-chat-interface>.chat-message-panel{width:calc(100% - 16px);margin-top:auto;border-radius:19px}}@media (prefers-reduced-motion:reduce){.cinematic-chat-interface.has-live2d-stage-ready .cinematic-character-stage,.cinematic-chat-interface>.chat-message-panel{transition:none}}.chat-interface.cinematic-chat-interface{background:#aaa19d!important}.cinematic-chat-interface .cinematic-character-stage{background:#b5aca7}.cinematic-chat-interface .cinematic-chat-scrim{background:linear-gradient(180deg,rgba(69,61,64,.56),rgba(111,101,99,.12) 24%,rgba(112,101,99,.04) 45%,rgba(91,81,83,.3) 66%,rgba(69,62,64,.72)),linear-gradient(90deg,rgba(85,76,78,.14),transparent 32%,transparent 68%,rgba(85,76,78,.14))}.cinematic-chat-interface>.chat-header{background:linear-gradient(180deg,rgba(74,67,69,.72),rgba(74,67,69,.2) 76%,transparent)!important}.cinematic-chat-interface>.chat-message-panel{border-color:rgba(255,250,247,.15);background:rgba(78,72,74,.92);box-shadow:0 18px 46px rgba(55,48,51,.26),inset 0 1px rgba(255,255,255,.05)}.cinematic-chat-interface .chat-sheet-toolbar{border-bottom-color:rgba(255,250,247,.11)}.cinematic-chat-interface .chat-sheet-drag-handle{color:#ded3d0}.cinematic-chat-interface .chat-sheet-drag-handle span{background:rgba(255,250,247,.42)}.chat-interface.cinematic-chat-interface{--cinematic-sheet-surface:rgba(78,72,74,.56)}.chat-interface.cinematic-chat-interface.has-custom-background{background:transparent!important}.cinematic-chat-interface .cinematic-character-stage{inset:0;bottom:0}.cinematic-chat-interface .cinematic-character-stage img{object-fit:cover;object-position:center top;transform:none}.cinematic-chat-interface:has(textarea:focus)>.chat-message-panel,.cinematic-chat-interface>.chat-message-panel{width:min(100%,760px);margin:auto auto 0;border:0;border-radius:0;background:linear-gradient(180deg,rgba(78,72,74,0) 0,rgba(78,72,74,.14) 18px,rgba(78,72,74,.38) 48px,var(--cinematic-sheet-surface) 88px,var(--cinematic-sheet-surface) 100%);box-shadow:none}.cinematic-chat-interface .chat-sheet-toolbar{border-bottom:0;background:transparent}.cinematic-chat-interface .message-avatar{align-self:flex-start;margin-top:2px}@media (max-width:480px){.cinematic-chat-interface:has(textarea:focus)>.chat-message-panel,.cinematic-chat-interface>.chat-message-panel{width:100%;margin:auto 0 0;border-radius:0}}.cinematic-chat-interface .chat-actions{align-items:center;gap:clamp(6px,1.6vw,10px)!important;margin-left:auto}.cinematic-chat-interface .headfunction-live2d-button,.cinematic-chat-interface .headfunction-search-button,.cinematic-chat-interface .ifm-trigger{box-sizing:border-box;display:grid;place-items:center;flex:0 0 40px;width:40px;min-width:40px;height:40px;min-height:40px;padding:0;line-height:1;border-radius:12px}.cinematic-chat-interface .headfunction-live2d-button svg,.cinematic-chat-interface .headfunction-search-button svg,.cinematic-chat-interface .ifm-trigger svg{width:20px;height:20px;display:block;flex:0 0 20px;transform:none}.cinematic-chat-interface .ifm-trigger{gap:0}@media (max-width:767px){.cinematic-chat-interface .chat-header{padding-inline:max(12px,env(safe-area-inset-left,0px)) max(12px,env(safe-area-inset-right,0px))}.cinematic-chat-interface .headfunction-live2d-button,.cinematic-chat-interface .headfunction-search-button,.cinematic-chat-interface .ifm-trigger{flex-basis:40px;width:40px;min-width:40px;height:40px;min-height:40px}.cinematic-chat-interface .headfunction-live2d-button svg,.cinematic-chat-interface .headfunction-search-button svg,.cinematic-chat-interface .ifm-trigger svg{width:19px;height:19px;flex-basis:19px}}@media (max-width:380px){.cinematic-chat-interface .chat-actions{gap:4px!important}.cinematic-chat-interface .headfunction-live2d-button,.cinematic-chat-interface .headfunction-search-button,.cinematic-chat-interface .ifm-trigger{flex-basis:36px;width:36px;min-width:36px;height:36px;min-height:36px;border-radius:11px}.cinematic-chat-interface .headfunction-live2d-button svg,.cinematic-chat-interface .headfunction-search-button svg,.cinematic-chat-interface .ifm-trigger svg{width:18px;height:18px;flex-basis:18px}}.chat-interface.cinematic-chat-interface{--chat-canvas:var(--theme-bg-primary,#fff9f5);--chat-surface:var(--theme-bg-secondary,#ffffff);--chat-surface-soft:var(--theme-bg-tertiary,#f8efef);--chat-text:var(--theme-text-primary,#2e2228);--chat-muted:var(--theme-text-secondary,#725f68);--chat-border:var(--theme-border-color,rgba(46,34,40,.14));--chat-accent:var(--theme-accent-color,#a93b5b);--chat-accent-strong:var(--theme-accent-hover,#7f2945);--chat-header:var(--theme-header-bg,var(--chat-canvas));--chat-nav:var(--theme-nav-bg,var(--chat-canvas));--chat-user-bubble:var(--theme-message-user-bg,var(--chat-accent));--chat-user-text:var(--theme-message-user-text,#ffffff);--chat-ai-bubble:var(--theme-message-ai-bg,var(--chat-surface));--chat-ai-text:var(--theme-message-ai-text,var(--chat-text));background:var(--chat-canvas)!important;color:var(--chat-text)}.cinematic-chat-interface .cinematic-character-stage{background:var(--chat-canvas)}.cinematic-chat-interface>.chat-header{background:linear-gradient(180deg,color-mix(in srgb,var(--chat-header) 92%,transparent),color-mix(in srgb,var(--chat-header) 35%,transparent) 76%,transparent)!important}.cinematic-chat-interface>.chat-message-panel{border-color:color-mix(in srgb,var(--chat-border) 78%,transparent);background:color-mix(in srgb,var(--chat-surface) 92%,transparent);box-shadow:0 18px 46px color-mix(in srgb,var(--chat-text) 20%,transparent)}.cinematic-chat-interface .chat-sheet-toolbar{border-bottom-color:color-mix(in srgb,var(--chat-border) 72%,transparent)}.cinematic-chat-interface .chat-sheet-drag-handle,.cinematic-chat-interface .date-divider-text,.cinematic-chat-interface .message-sender,.cinematic-chat-interface .message-time{color:var(--chat-muted)}.cinematic-chat-interface .chat-sheet-drag-handle span,.cinematic-chat-interface .date-divider-line{background:color-mix(in srgb,var(--chat-text) 28%,transparent)}.cinematic-chat-interface .typing-dots span{background:var(--chat-accent)}.cinematic-chat-interface .cinematic-chat-scrim{background:linear-gradient(180deg,color-mix(in srgb,var(--chat-text) 52%,transparent) 0,transparent 30%,color-mix(in srgb,var(--chat-text) 12%,transparent) 58%,color-mix(in srgb,var(--chat-text) 76%,transparent) 100%)}.cinematic-chat-interface .headfunction-companion-button,.cinematic-chat-interface .headfunction-live2d-button,.cinematic-chat-interface .headfunction-search-button,.cinematic-chat-interface .ifm-trigger{border-color:color-mix(in srgb,var(--chat-border) 90%,transparent);background:color-mix(in srgb,var(--chat-header) 78%,transparent);color:var(--chat-text)}.cinematic-chat-interface .chat-header .back-button:hover,.cinematic-chat-interface .headfunction-companion-button:hover,.cinematic-chat-interface .headfunction-live2d-button:hover,.cinematic-chat-interface .headfunction-search-button:hover,.cinematic-chat-interface .ifm-trigger.open,.cinematic-chat-interface .ifm-trigger:hover{border-color:var(--chat-accent);background:var(--chat-accent);color:var(--theme-accent-contrast,#ffffff)}.cinematic-chat-interface .chat-avatar{border-color:color-mix(in srgb,var(--chat-border) 90%,transparent)}.cinematic-chat-interface .chat-name{color:var(--chat-text);text-shadow:none}.cinematic-chat-interface .chat-status,.cinematic-chat-interface .chat-status-display,.cinematic-chat-interface .status-text{color:var(--chat-muted)!important;text-shadow:none}.cinematic-chat-interface:has(textarea:focus)>.chat-message-panel,.cinematic-chat-interface>.chat-message-panel{background:transparent!important}.cinematic-chat-interface .messages-container{scrollbar-color:color-mix(in srgb,var(--chat-text) 28%,transparent) transparent}.cinematic-chat-interface .messages-container::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--chat-text) 28%,transparent)}.cinematic-chat-interface .message-sender,.cinematic-chat-interface .message-time{color:var(--chat-muted)}.cinematic-chat-interface .quoted-message{border-left-color:var(--chat-accent);background:color-mix(in srgb,var(--chat-accent) 10%,var(--chat-surface))}.cinematic-chat-interface .quote-sender{color:var(--chat-accent)}.cinematic-chat-interface .empty-chat,.cinematic-chat-interface .quote-content,.cinematic-chat-interface .quote-time,.cinematic-chat-interface .story-empty-state{color:var(--chat-muted)}.cinematic-chat-interface .floating-continue-btn,.cinematic-chat-interface .scroll-to-bottom-btn{border-color:var(--chat-border);background:var(--chat-surface);color:var(--chat-text)}.cinematic-chat-interface .floating-continue-btn:not(.is-stopping){background:var(--chat-accent);color:var(--theme-accent-contrast,#ffffff)}.cinematic-chat-interface .auto-reply-toggle,.cinematic-chat-interface .mode-segmented-control,.cinematic-chat-interface .plus-hub-btn,.cinematic-chat-interface .recollection-memory-summary-btn{border-color:var(--chat-border)!important;background:color-mix(in srgb,var(--chat-surface) 86%,transparent)!important;color:var(--chat-text)!important}.cinematic-chat-interface .mode-segmented-control button{color:var(--chat-muted)}.cinematic-chat-interface .mode-segmented-control button.is-active{background:color-mix(in srgb,var(--chat-accent) 16%,transparent);color:var(--chat-accent)}.cinematic-chat-interface .auto-reply-toggle.is-active .auto-reply-toggle-track{background:var(--chat-accent)}.cinematic-chat-interface .input-wrapper{border-color:var(--chat-border);background:color-mix(in srgb,var(--chat-surface) 82%,transparent)}.cinematic-chat-interface .input-wrapper textarea{color:var(--chat-text);caret-color:var(--chat-accent)}.cinematic-chat-interface .input-wrapper textarea::placeholder{color:var(--chat-muted)}.cinematic-chat-interface .send-btn{border-color:var(--chat-accent);background:var(--chat-accent);color:var(--theme-accent-contrast,#ffffff);box-shadow:var(--theme-shadow-medium,0 7px 18px rgba(0,0,0,.18))}.cinematic-chat-interface .send-btn:disabled{border-color:var(--chat-border);background:var(--chat-surface-soft);color:var(--chat-muted)}.chat-message-panel>.chat-sheet-toolbar{position:relative;z-index:4;display:flex;flex:0 0 14px;min-height:14px;align-items:center;justify-content:center;overflow:visible;border:0;background:transparent}.chat-message-panel .chat-sheet-drag-handle{position:absolute;top:50%;left:50%;display:grid;width:72px;min-width:72px;height:44px;min-height:44px;padding:0;place-items:center;border:0;background:transparent;color:var(--chat-muted);cursor:ns-resize;touch-action:none;transform:translate(-50%,-50%)}.chat-message-panel .chat-sheet-drag-handle span{width:34px;height:3px;border-radius:999px;background:color-mix(in srgb,var(--chat-accent) 70%,var(--chat-text));box-shadow:0 0 0 1px color-mix(in srgb,var(--chat-surface) 82%,transparent),0 0 8px color-mix(in srgb,var(--chat-accent) 42%,transparent);opacity:.86;transform-origin:center;animation:chat-sheet-handle-hint 5.2s ease-in-out infinite;will-change:transform,opacity,box-shadow}.chat-message-panel .chat-sheet-drag-handle:focus-visible span,.chat-message-panel .chat-sheet-drag-handle:hover span{width:42px;background:var(--chat-accent);opacity:1;box-shadow:0 0 10px color-mix(in srgb,var(--chat-accent) 56%,transparent)}.chat-message-panel .chat-sheet-drag-handle:focus-visible{outline:2px solid var(--chat-accent);outline-offset:-6px;border-radius:999px}.chat-message-panel.is-dragging .chat-sheet-drag-handle span{animation:none;background:var(--chat-accent);opacity:1;transform:scaleX(1.28);box-shadow:0 0 12px color-mix(in srgb,var(--chat-accent) 64%,transparent)}@keyframes chat-sheet-handle-hint{0%,70%,to{opacity:.76;transform:scaleX(1);box-shadow:0 0 0 1px color-mix(in srgb,var(--chat-surface) 82%,transparent),0 0 5px color-mix(in srgb,var(--chat-accent) 28%,transparent)}77%{opacity:1;transform:scaleX(1.38);box-shadow:0 0 0 1px color-mix(in srgb,var(--chat-surface) 88%,transparent),0 0 13px color-mix(in srgb,var(--chat-accent) 62%,transparent)}84%{opacity:.82;transform:scaleX(.94)}90%{opacity:.94;transform:scaleX(1.12)}}@media (prefers-reduced-motion:reduce){.chat-message-panel .chat-sheet-drag-handle span{animation:none;will-change:auto}}html body .chat-background-container:after{display:none!important;background:none!important}html body .chat-interface.cinematic-chat-interface{--chat-canvas:var(--lk-canvas,var(--theme-bg-primary,#fff9f5));--chat-surface:var(--lk-surface,var(--theme-bg-secondary,#ffffff));--chat-soft:var(--lk-soft,color-mix(in srgb,var(--chat-canvas) 92%,var(--lk-primary,#a93b5b) 8%));--chat-accent:var(--lk-primary,var(--theme-accent-color,#a93b5b));--chat-accent-strong:var(--lk-primary-strong,var(--theme-accent-hover,#862943));--chat-text:var(--lk-text,var(--theme-text-primary,#2e2228));--chat-muted:var(--lk-muted,var(--theme-text-secondary,#7c6a72));--chat-page-layer:transparent;min-height:0;height:var(--chat-vv-height,100dvh);max-height:var(--chat-vv-height,100dvh);border:0!important;color:var(--chat-text)!important;background:transparent!important;box-shadow:none!important;font-family:var(--lk-body-font,var(--font-family-base))!important}html body .chat-interface .cinematic-chat-scrim,html body .chat-interface .live2d-stage-loading{display:none!important}html body .chat-interface .chat-message-panel{border:0!important;border-radius:0!important;background:var(--chat-page-layer)!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}html body .chat-interface .chat-header{display:flex!important;align-items:center;min-height:0!important;padding:max(2px,env(safe-area-inset-top)) 10px 2px!important;color:var(--chat-text)!important;text-shadow:none!important}html body .chat-interface .chat-header-island{display:grid!important;grid-template-columns:34px minmax(0,1fr) auto;width:min(100%,760px);min-height:0;align-items:center;gap:6px;margin:0 auto;padding:2px;border:0;border-radius:999px;color:var(--chat-text)!important;background:var(--chat-surface);background-image:none;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;filter:none}html body .chat-interface .chat-header.headfunction-search-active .chat-header-island{grid-template-columns:minmax(0,1fr);overflow:visible}html body .chat-interface .chat-header.headfunction-search-active .chat-actions{grid-column:1/-1;width:100%;overflow:visible}html body .chat-interface .chat-actions .action-btn,html body .chat-interface .headfunction-companion-button,html body .chat-interface .headfunction-live2d-button,html body .chat-interface .headfunction-search-button,html body .chat-interface .ifm-trigger{display:inline-grid;width:34px;height:34px;min-width:34px;min-height:34px;place-items:center;padding:0;border:0;border-radius:999px;color:var(--chat-muted)!important;box-shadow:none!important}html body .chat-interface .back-button{display:inline-grid;width:34px;height:34px;min-width:34px;min-height:34px;place-items:center;padding:0;border:0;border-radius:0;color:var(--chat-text,var(--lk-text,#2f2529));background:transparent;box-shadow:none}html body .chat-interface .chat-actions{position:relative;display:flex;min-width:0;align-items:center;justify-content:flex-end;justify-self:end;gap:6px}html body .chat-interface .chat-actions .action-btn,html body .chat-interface .headfunction-companion-button,html body .chat-interface .headfunction-live2d-button,html body .chat-interface .headfunction-search-button,html body .chat-interface .ifm-trigger{background:transparent!important}html body .chat-interface .ifm-trigger-text{display:none!important}html body .chat-interface .headfunction-live2d-button.is-active{color:var(--chat-accent)!important;background:color-mix(in srgb,var(--chat-accent) 12%,var(--chat-surface))!important}html body .chat-interface .chat-actions .action-btn:hover,html body .chat-interface .headfunction-companion-button:hover,html body .chat-interface .headfunction-live2d-button:hover,html body .chat-interface .headfunction-search-button:hover,html body .chat-interface .ifm-trigger.open,html body .chat-interface .ifm-trigger:hover{color:var(--chat-accent)!important;background:var(--chat-soft)!important}html body .chat-interface .back-button:hover{color:var(--chat-accent);background:transparent}html body .chat-interface .chat-header .chat-header-island .back-button{border:0;color:var(--chat-text,var(--lk-text,#2f2529));background:transparent;box-shadow:none}html body .chat-interface .back-button:focus,html body .chat-interface .back-button:focus-visible{outline:none;border:0;background:transparent;box-shadow:none}html body .chat-interface .back-button:active,html body .chat-interface .chat-actions .action-btn:active,html body .chat-interface .headfunction-companion-button:active,html body .chat-interface .headfunction-live2d-button:active,html body .chat-interface .headfunction-search-button:active,html body .chat-interface .ifm-trigger:active{transform:scale(.97)}html body .chat-interface .chat-actions .action-btn:focus-visible,html body .chat-interface .headfunction-companion-button:focus-visible,html body .chat-interface .headfunction-live2d-button:focus-visible,html body .chat-interface .headfunction-search-button:focus-visible,html body .chat-interface .ifm-trigger:focus-visible{outline:3px solid color-mix(in srgb,var(--chat-accent) 18%,transparent);outline-offset:2px}html body .chat-interface .chat-info{position:relative;display:flex;overflow:hidden;min-width:0;align-items:center;gap:10px}html body .chat-interface .chat-avatar{width:34px!important;height:34px!important;flex:0 0 34px;border:0!important;border-radius:10px!important;box-shadow:none!important;object-fit:cover;cursor:pointer}html body .chat-interface .chat-details{display:flex;overflow:hidden;min-width:0;flex-direction:row;align-items:center;justify-content:center}.live2d-header-controls{display:inline-flex;flex:none;align-items:center;gap:4px}.live2d-header-debug,.live2d-header-mode-toggle{height:34px;border:0;border-radius:999px;background:var(--chat-soft);color:var(--chat-muted);cursor:pointer;font:inherit}.live2d-header-mode-toggle{display:inline-flex;align-items:center;gap:2px;padding:3px}.live2d-header-mode-toggle>span{display:inline-flex;height:28px;align-items:center;gap:4px;padding:0 7px;border-radius:8px;font-size:10px;font-weight:750}.live2d-header-mode-toggle>span.is-active{background:var(--chat-accent);color:#fff}.live2d-header-mode-toggle b{font:inherit}.live2d-header-debug{display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:0 9px;font-size:10px;font-weight:750}.live2d-header-debug:hover,.live2d-header-mode-toggle:hover:not(:disabled){color:var(--chat-accent);background:color-mix(in srgb,var(--chat-accent) 10%,var(--chat-soft))}.live2d-header-debug:focus-visible,.live2d-header-mode-toggle:focus-visible{outline:3px solid color-mix(in srgb,var(--chat-accent) 18%,transparent);outline-offset:2px}.live2d-header-mode-toggle:disabled{opacity:.42;cursor:not-allowed}.cinematic-character-stage>.live2d-stage,.cinematic-character-stage>div:has(canvas){position:absolute!important;inset:0;width:100%!important;height:100%!important}.cinematic-character-stage canvas{width:100%!important;height:100%!important}@media (max-width:640px){.live2d-header-controls{gap:2px}.live2d-header-debug,.live2d-header-mode-toggle{height:32px}.live2d-header-mode-toggle>span{height:26px;padding:0 6px}.live2d-header-debug span,.live2d-header-mode-toggle b{display:none}.live2d-header-debug{width:32px;padding:0}}html body .chat-interface .chat-title-row{display:flex;width:100%;min-width:0;align-items:center;gap:3px}html body .chat-interface .chat-name{overflow:hidden;max-width:100%;color:var(--chat-text)!important;font-family:var(--lk-body-font,var(--font-family-base))!important;font-size:16px!important;font-weight:600!important;line-height:1.3;letter-spacing:-.01em;text-overflow:ellipsis;text-shadow:none!important;white-space:nowrap;flex:0 1 auto}html body .chat-interface .chat-status{flex:0 0 auto;color:var(--chat-muted)!important;font-size:11px}html body .chat-interface .status-trigger{color:var(--chat-muted)!important;text-shadow:none!important;border:0!important;background:transparent!important}html body .chat-interface .status-trigger:hover,html body .chat-interface .status-trigger[aria-expanded=true]{color:var(--chat-accent)!important;background:var(--chat-soft)!important}html body .chat-interface .message-panel-content,html body .chat-interface .messages-container,html body .chat-interface .story-messages-list{background:transparent!important}html body .chat-interface .unified-message-host{position:relative;width:100%}html body .chat-interface .messages-container{gap:0!important;padding:18px 20px 30px!important;scrollbar-width:thin}html body .chat-interface .message-panel-content,html body .chat-interface .story-messages-list{display:flex;flex-direction:column;gap:0!important;width:min(100%,760px)!important;margin:0 auto;padding:0!important}html body .chat-interface .message{display:flex;width:100%;max-width:100%!important;align-items:flex-start;gap:9px;cursor:pointer}html body .chat-interface .message-avatar{width:32px!important;height:32px!important;flex:0 0 32px;margin:2px 0 0!important}html body .chat-interface .message-avatar img{width:32px!important;height:32px!important;border:0!important;border-radius:10px!important;box-shadow:none!important;object-fit:cover}html body .chat-interface .message-content{min-width:0;max-width:min(76%,620px);gap:4px}html body .chat-interface .message-sender{margin:0 0 2px;padding:0 3px;color:var(--chat-muted)!important;font-size:11px;font-weight:500}html body .chat-interface .message-content-direct{width:fit-content;max-width:100%;border:0!important;box-shadow:none!important}html body .chat-interface .message[data-message-presentation]:not([data-message-presentation=bubble]) .message-content{max-width:min(84%,620px)}html body .chat-interface .quoted-message{border:0!important;border-radius:8px!important;color:var(--chat-muted)!important;background:var(--chat-soft)!important}html body .chat-interface .message-footer{gap:2px;min-height:14px;margin-top:3px!important;padding:0 3px;opacity:.82}html body .chat-interface .message-footer .message-time{color:var(--chat-muted)!important;font-size:10px!important;font-variant-numeric:tabular-nums;font-weight:500}html body .chat-interface .message-edit-container{width:min(100%,620px);padding:6px;border:0;border-radius:12px;background:var(--chat-surface)}html body .chat-interface .message-edit-input{width:100%;min-height:72px;padding:10px 12px;border:0!important;border-radius:8px!important;color:var(--chat-text)!important;background:var(--chat-soft)!important;box-shadow:none!important;font:inherit;line-height:1.55;resize:vertical}html body .chat-interface .message-edit-input:focus{outline:2px solid color-mix(in srgb,var(--chat-accent) 36%,transparent);outline-offset:1px}html body .chat-interface .typing-dots span{background:var(--chat-accent)!important}html body .chat-interface .date-divider{margin:14px 0 4px;padding:0}html body .chat-interface .date-divider-line{display:none!important}html body .chat-interface .date-divider-text{padding:3px 7px;border:0!important;border-radius:6px;color:var(--chat-muted)!important;background:color-mix(in srgb,var(--chat-surface) 88%,transparent)!important;font-size:10px;font-weight:500}html body .chat-interface .empty-chat,html body .chat-interface .story-empty-state{min-height:60%;color:var(--chat-muted)!important;font-size:14px}html body :where(.chat-menu-overlay,.ifm-overlay,.mobile-form-frame,.modal-overlay,.asm-overlay,.asm-sub-overlay,.image-preview-overlay,.history-overlay,.chat-history-export-modal-overlay,.character-import-modal-overlay,.groupmember-overlay,.memory-manager-overlay,.single-chat-memory-manager-overlay,.gift-history-overlay,.gift-detail-overlay,.character-analysis-modal-overlay,.world-book-association-switch-modal-overlay){--chat-canvas:var(--lk-canvas,var(--theme-bg-primary,#f7f0ed));--chat-surface:var(--lk-surface,var(--theme-bg-secondary,#fffaf8));--chat-soft:var(--lk-soft,var(--theme-bg-tertiary,#eee2e5));--chat-accent:var(--lk-primary,var(--theme-accent-color,#a93b5b));--chat-accent-strong:var(--lk-primary-strong,var(--theme-accent-hover,#862943));--chat-text:var(--lk-text,var(--theme-text-primary,#2f2529));--chat-muted:var(--lk-muted,var(--theme-text-secondary,#786970))}html body .chat-menu-overlay,html body .headfunction-search-dropdown,html body .ifm-overlay{background:color-mix(in srgb,var(--chat-text) 18%,transparent)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}html body .asm-modal,html body .asm-sub-dialog,html body .chat-menu,html body .headfunction-search-dropdown,html body .ifm-menu,html body .save-config-dialog{border:0;border-radius:12px;color:var(--chat-text)!important;background:var(--chat-surface)!important;box-shadow:0 4px 14px color-mix(in srgb,var(--chat-text) 10%,transparent)!important}html body .chat-menu{min-width:190px;padding:6px}html body .chat-menu .chat-menu-item{min-height:42px;border:0;border-radius:8px;color:var(--chat-text)!important;background:transparent!important;font-size:13px;text-align:left}html body .chat-menu .chat-menu-item:hover{color:var(--chat-accent)!important;background:var(--chat-soft)!important}html body .chat-menu .chat-menu-item.delete{color:#b4233e!important}html body .headfunction-search{height:34px;padding:0 4px;border:0;border-radius:999px;background:var(--chat-soft)!important;box-shadow:none!important}html body .headfunction-search-input{color:var(--chat-text)!important}html body .headfunction-search-close,html body .headfunction-search-go,html body .headfunction-search-sort-btn{border:0;border-radius:6px;color:var(--chat-muted)!important;background:transparent!important}html body .headfunction-search-go{height:24px;padding:0 10px;border-radius:999px;color:var(--chat-accent)!important;background:var(--chat-surface)!important}html body .headfunction-search-go:hover:not(:disabled){color:var(--chat-accent)!important;background:color-mix(in srgb,var(--chat-accent) 14%,var(--chat-surface))!important}html body .headfunction-search-go.is-pressed:not(:disabled),html body .headfunction-search-go:active:not(:disabled){color:var(--chat-surface)!important;background:var(--chat-accent)!important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--chat-accent) 40%,transparent);transform:scale(.94)}html body .headfunction-search-go:disabled{color:var(--chat-muted)!important;background:transparent!important;transform:none;box-shadow:none}html body .headfunction-search-close:hover,html body .headfunction-search-sort-btn.active,html body .headfunction-search-sort-btn:hover{color:var(--chat-accent)!important;background:var(--chat-surface)!important}html body .headfunction-search-dropdown{top:calc(100% + 8px);min-width:280px;max-width:min(420px,86vw);max-height:min(60dvh,calc(100dvh - 96px));overflow:hidden;padding:6px}html body .headfunction-search-list{min-height:0;max-height:min(52dvh,calc(100dvh - 148px));overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}html body .headfunction-search-item,html body .headfunction-search-meta{border:0!important;color:var(--chat-text)!important;background:transparent!important}html body .headfunction-search-meta{padding:8px 10px;color:var(--chat-muted)!important}html body .headfunction-search-item{min-height:44px;padding:9px 10px!important;border-radius:8px!important}html body .headfunction-search-item:hover{background:var(--chat-soft)!important}html body .headfunction-search-highlight{border-radius:4px;color:var(--chat-accent-strong)!important;background:color-mix(in srgb,var(--chat-accent) 14%,transparent)!important}html body .ifm-menu{padding:6px;overflow:hidden}html body .ifm-item{min-height:52px}html body .ifm-back,html body .ifm-close,html body .ifm-icon{border:0;border-radius:8px;color:var(--chat-accent)!important;background:var(--chat-soft)!important}html body .ifm-panel-header{min-height:54px;padding:6px 8px;border:0;background:var(--chat-surface)!important}html body .ifm-label,html body .ifm-panel-header,html body .ifm-panel-title{color:var(--chat-text)!important}html body .ifm-desc{color:var(--chat-muted)!important}html body .ifm-api-config-item,html body .ifm-bubble-group,html body .ifm-bubble-preview-container,html body .ifm-persona-item,html body .ifm-setting-row{border:0;border-radius:8px;background:var(--chat-soft)!important}html body .chat-interface .floating-continue-btn,html body .chat-interface .scroll-to-bottom-btn{border:0;border-radius:8px;color:var(--theme-message-user-text,#fff)!important;background:var(--chat-accent)!important;box-shadow:none!important}html body .chat-interface .chat-sheet-drag-handle,html body .chat-interface .chat-sheet-toolbar{border:0!important;background:transparent!important}html body .chat-interface .chat-sheet-drag-handle span{width:46px;height:5px;border-radius:99px;background:color-mix(in srgb,var(--chat-accent) 68%,var(--chat-text))!important;box-shadow:0 1px 0 color-mix(in srgb,var(--chat-surface) 82%,transparent),0 3px 8px color-mix(in srgb,var(--chat-text) 18%,transparent)!important;opacity:1;animation:none!important;transition:transform .15s ease,background-color .15s ease,box-shadow .15s ease}html body .chat-interface .chat-message-panel .chat-sheet-drag-handle:focus-visible span,html body .chat-interface .chat-message-panel .chat-sheet-drag-handle:hover span{background:var(--chat-accent)!important;box-shadow:0 1px 0 color-mix(in srgb,var(--chat-surface) 88%,transparent),0 4px 10px color-mix(in srgb,var(--chat-accent) 28%,transparent)!important;transform:translateY(18px) scaleX(1.12)}html body .chat-interface .chat-message-panel>.chat-sheet-toolbar{position:absolute;inset:0 0 auto;z-index:6;display:block;height:44px;min-height:44px;pointer-events:none}html body .chat-interface .chat-message-panel .chat-sheet-drag-handle{top:-40px;transform:translateX(-50%);pointer-events:auto}html body .chat-interface .chat-message-panel .chat-sheet-drag-handle span{transform:translateY(18px)}html body .chat-interface .chat-message-panel.is-dragging .chat-sheet-drag-handle span{transform:translateY(18px) scaleX(1.24);background:var(--chat-accent)!important;box-shadow:0 1px 0 color-mix(in srgb,var(--chat-surface) 88%,transparent),0 4px 12px color-mix(in srgb,var(--chat-accent) 34%,transparent)!important}@media (prefers-reduced-motion:reduce){html body .chat-interface .chat-sheet-drag-handle span{transition:none}}html body .chat-interface .chat-message-panel.is-maximized .messages-container{padding-top:4px}html body .chat-interface .chat-message-panel.is-collapsed{z-index:3;overflow:visible!important}html body .chat-interface .chat-message-panel.is-collapsed .messages-container{visibility:hidden;opacity:0;pointer-events:none}html body .asm-overlay,html body .asm-sub-overlay,html body .character-analysis-modal-overlay,html body .character-import-modal-overlay,html body .chat-history-export-modal-overlay,html body .gift-detail-overlay,html body .gift-history-overlay,html body .groupmember-overlay,html body .history-overlay,html body .image-preview-overlay,html body .memory-manager-overlay,html body .mobile-form-frame,html body .modal-overlay,html body .single-chat-memory-manager-overlay,html body .world-book-association-switch-modal-overlay{background:color-mix(in srgb,var(--chat-text) 18%,transparent)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}html body .mobile-form-frame>[class*=container],html body .mobile-form-frame>[class*=dialog],html body .mobile-form-frame>[class*=modal],html body .mobile-form-frame>div[class*=content],html body .mobile-form-frame>section{border:0!important;border-radius:16px!important;color:var(--chat-text)!important;background:var(--chat-surface)!important;box-shadow:0 6px 20px color-mix(in srgb,var(--chat-text) 12%,transparent)!important}html body .mobile-form-frame input,html body .mobile-form-frame select,html body .mobile-form-frame textarea{border:0!important;border-radius:8px!important;color:var(--chat-text)!important;background:var(--chat-soft)!important;box-shadow:none!important}html body .mobile-form-frame input:focus,html body .mobile-form-frame select:focus,html body .mobile-form-frame textarea:focus{box-shadow:0 0 0 2px color-mix(in srgb,var(--chat-accent) 24%,transparent)!important}@media (max-width:767px){html body .chat-interface .chat-header{min-height:0!important;padding:max(2px,env(safe-area-inset-top)) 8px 2px!important}html body .chat-interface .chat-header-island{grid-template-columns:32px minmax(0,1fr) auto;gap:4px;min-height:0;padding:2px;border-radius:999px}html body .headfunction-search{height:32px}html body .chat-interface .back-button,html body .chat-interface .chat-actions .action-btn,html body .chat-interface .headfunction-companion-button,html body .chat-interface .headfunction-live2d-button,html body .chat-interface .headfunction-search-button,html body .chat-interface .ifm-trigger{width:32px;height:32px;min-width:32px;min-height:32px}html body .chat-interface .chat-actions{gap:4px}html body .chat-interface .chat-avatar{width:32px;height:32px;flex-basis:32px;border-radius:9px}html body .chat-interface .messages-container{padding:14px 10px 22px!important}html body .chat-interface .message-panel-content,html body .chat-interface .story-messages-list{gap:14px!important}html body .chat-interface .message-content{max-width:min(84%,620px)}html body .chat-menu{max-width:calc(100vw - 24px)}html body .headfunction-search-dropdown{min-width:min(280px,86vw)}}@media (max-width:380px){html body .chat-interface .chat-info{gap:7px}html body .chat-interface .chat-name{font-size:15px!important}html body .chat-interface .message-avatar,html body .chat-interface .message-avatar img{width:30px!important;height:30px!important}html body .chat-interface .message-avatar{flex-basis:30px}}.ImagePreviewModal_root__x569V{display:flex;height:100%;min-height:0;flex-direction:column;gap:.55rem;padding-bottom:.2rem}.ImagePreviewModal_toolbar__jUFq_{display:flex;min-height:2.75rem;flex:0 0 auto;align-items:center;justify-content:space-between;gap:.75rem}.ImagePreviewModal_scale__Gohk7{color:var(--chat-muted,#786970);font-size:.7rem;font-variant-numeric:tabular-nums;font-weight:600}.ImagePreviewModal_toolbarRight__RSrVd{display:flex;align-items:center;gap:.4rem}.ImagePreviewModal_toolButton__nyg9F{display:grid;width:2.75rem;height:2.75rem;place-items:center;padding:0;border:0;border-radius:.75rem;color:var(--chat-muted,#786970);background:var(--chat-soft,#eee2e5);font-size:1.05rem;cursor:pointer}.ImagePreviewModal_toolButton__nyg9F:focus-visible{outline:3px solid color-mix(in srgb,var(--chat-accent,#a93b5b) 22%,transparent);outline-offset:2px}.ImagePreviewModal_content__lmHIr{position:relative;min-height:17rem;flex:1;overflow:hidden;border-radius:.9rem;background:color-mix(in srgb,var(--chat-soft,#eee2e5) 86%,#1d171a 14%);touch-action:none;user-select:none}.ImagePreviewModal_imageWrapper__hn_ID{position:absolute;inset:0;transform-origin:center}.ImagePreviewModal_image__32p3Y{object-fit:contain;pointer-events:none}.ImagePreviewModal_loading__HHG7Z{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:.65rem;color:var(--chat-muted,#786970);background:var(--chat-soft,#eee2e5);font-size:.75rem}.ImagePreviewModal_spinner__xT0nY{width:1.6rem;height:1.6rem;border-left:2px solid color-mix(in srgb,var(--chat-muted,#786970) 20%,transparent);border-bottom:2px solid color-mix(in srgb,var(--chat-muted,#786970) 20%,transparent);border-right-color:color-mix(in srgb,var(--chat-muted,#786970) 20%,transparent);border-top-color:color-mix(in srgb,var(--chat-muted,#786970) 20%,transparent);border-top:2px solid var(--chat-accent,#a93b5b);border-right:2px solid var(--chat-accent,#a93b5b);border-radius:50%;transform:rotate(-25deg)}.ImagePreviewModal_spinnerError__Nwx4l{border-color:color-mix(in srgb,#a83d4b 62%,transparent)}.ImagePreviewModal_info__ixBTz{display:flex;flex:0 0 auto;flex-direction:column;gap:.25rem;padding:.65rem .75rem;border-radius:.78rem;background:var(--chat-soft,#eee2e5)}.ImagePreviewModal_sender__xSmYR{color:var(--chat-muted,#786970);font-size:.68rem}.ImagePreviewModal_description__4_VU9{color:var(--chat-text,#2f2529);font-size:.78rem;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}.ImagePreviewModal_fullscreen__cZPTD{position:fixed;inset:0;z-index:10070;padding:max(.75rem,env(safe-area-inset-top)) .75rem max(.75rem,env(safe-area-inset-bottom));color:var(--chat-text,#fff);background:color-mix(in srgb,#161114 94%,transparent)}.ImagePreviewModal_fullscreen__cZPTD .ImagePreviewModal_content__lmHIr{border-radius:0;background:#161114}.ImagePreviewModal_fullscreen__cZPTD .ImagePreviewModal_scale__Gohk7{color:rgba(255,255,255,.72)}.ImagePreviewModal_fullscreen__cZPTD .ImagePreviewModal_toolButton__nyg9F{color:#fff;background:rgba(255,255,255,.12)}.ImageDescriptionModal_root__F1APs{display:flex;flex-direction:column;gap:.9rem;padding:.15rem 0 .4rem}.ImageDescriptionModal_heading__aS7gX{display:flex;align-items:center;gap:.75rem}.ImageDescriptionModal_heading__aS7gX>span{display:grid;width:2.65rem;height:2.65rem;flex:0 0 2.65rem;place-items:center;border-radius:.85rem;color:var(--chat-accent,#a93b5b);background:var(--chat-soft,#eee2e5)}.ImageDescriptionModal_heading__aS7gX>div{display:flex;min-width:0;flex-direction:column;gap:.15rem}.ImageDescriptionModal_heading__aS7gX strong{overflow:hidden;font-size:.86rem;font-weight:660;text-overflow:ellipsis;white-space:nowrap}.ImageDescriptionModal_heading__aS7gX small{color:var(--chat-muted,#786970);font-size:.68rem}.ImageDescriptionModal_content__L3h4V{padding:.85rem .9rem;border-radius:.82rem;color:var(--chat-text,#2f2529);background:var(--chat-soft,#eee2e5);font-size:.82rem;line-height:1.65;overflow-wrap:anywhere;white-space:pre-wrap}.message-pagination-manager{width:100%;display:flex;flex-direction:column;align-items:center;padding:16px 0;background:transparent}.load-more-trigger{width:100%;height:1px;background:transparent;position:absolute;top:0;left:0;pointer-events:none}.load-more-button-container{display:flex;justify-content:center;align-items:center;margin:8px 0}.load-more-button{display:flex;align-items:center;gap:8px;padding:8px 16px;background:var(--bg-secondary,#f5f5f5);border:1px solid var(--border-color,#e0e0e0);border-radius:20px;color:var(--text-secondary,#666);font-size:14px;cursor:pointer;transition:all .2s ease;box-shadow:0 2px 4px rgba(0,0,0,.1);user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.load-more-button:hover:not(:disabled){background:var(--bg-hover,#e8e8e8);border-color:var(--border-hover,#d0d0d0);box-shadow:0 4px 8px rgba(0,0,0,.15)}.load-more-button:active:not(:disabled){box-shadow:0 2px 4px rgba(0,0,0,.1)}.load-more-button:disabled{opacity:.6;cursor:not-allowed;transform:none}.loading-spinner{width:16px;height:16px;border:2px solid transparent;border-top:2px solid var(--text-secondary,#666);border-radius:50%;animation:spin 1s linear infinite}.message-count{font-size:12px;opacity:.7;margin-left:4px}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@media (prefers-color-scheme:dark){.load-more-button{background:var(--bg-secondary-dark,#2a2a2a);border-color:var(--border-color-dark,#404040);color:var(--text-secondary-dark,#ccc)}.load-more-button:hover:not(:disabled){background:var(--bg-hover-dark,#353535);border-color:var(--border-hover-dark,#505050)}.loading-spinner{border-top-color:var(--text-secondary-dark,#ccc)}}@media (max-width:768px){.load-more-button{padding:6px 12px;font-size:13px}.message-count{font-size:11px}.loading-spinner{width:14px;height:14px}}@media (max-width:480px){.load-more-button{padding:5px 10px;font-size:12px}.message-count{font-size:10px}}