.story-card-layer{position:absolute;z-index:45;inset:0;pointer-events:none}.story-card-layer.is-active{pointer-events:auto}.story-card-scrim{position:absolute;inset:0;padding:0;border:0;background:color-mix(in srgb,var(--chat-text,#2f2529) 30%,transparent);cursor:default;opacity:0;transition:opacity .17s ease}.story-card-layer.is-open .story-card-scrim{opacity:1;transition-duration:.24s}.story-card{position:absolute;top:calc(max(2px, env(safe-area-inset-top, 0px)) + 4px);left:50%;display:flex;width:min(calc(100% - 20px),440px);max-height:calc(100% - 24px);overflow-y:auto;flex-direction:column;align-items:center;gap:14px;padding:18px 12px;border:1px solid color-mix(in srgb,var(--chat-text,#2f2529) 9%,transparent);border-radius:32px;color:var(--chat-text,#2f2529);background:var(--chat-surface,#fff);box-shadow:0 14px 40px color-mix(in srgb,var(--chat-text,#2f2529) 22%,transparent);outline:none;opacity:0;overscroll-behavior:contain;transform:translateX(-50%) translateY(-14px) scale(.9);transform-origin:50% 0;transition:opacity .17s cubic-bezier(.22,.61,.36,1),transform .17s cubic-bezier(.22,.61,.36,1)}html[data-native-shell=true] .story-card{top:6px}.story-card-layer.is-open .story-card{opacity:1;transform:translateX(-50%) translateY(0) scale(1);transition-duration:.24s}.story-card-collapse{position:absolute;top:8px;right:8px;z-index:1;display:grid;width:44px;height:44px;place-items:center;padding:0;border:0;border-radius:50%;color:var(--chat-muted,#786970);background:transparent;cursor:pointer}.story-card-collapse svg{width:21px;height:21px}.story-card-collapse:hover{color:var(--chat-accent,#a93b5b);background:var(--chat-soft,#eee2e5)}.story-card-collapse:focus-visible{outline:2px solid color-mix(in srgb,var(--chat-accent,#a93b5b) 42%,transparent)}.story-card-avatar{display:grid;width:84px;height:84px;flex:0 0 84px;overflow:hidden;place-items:center;border-radius:50%;color:var(--chat-accent,#a93b5b);background:var(--chat-soft,#eee2e5);font-size:26px;font-weight:750}.story-card-avatar img{width:84px;height:84px;object-fit:cover}.story-card-identity{display:flex;max-width:100%;flex-direction:column;align-items:center;gap:3px;margin-top:-2px;padding-inline:48px;text-align:center}.story-card-name{max-width:100%;overflow:hidden;font-size:19px;font-weight:650;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.story-card-sub{display:inline-flex;align-items:center;gap:5px;color:var(--chat-muted,#786970);font-size:12.5px;white-space:nowrap}.story-card-sub>span[aria-hidden=true]:not(.story-card-dot){margin-inline:-2px}.story-card-dot{width:7px;height:7px;border-radius:50%;background:color-mix(in srgb,var(--chat-text,#2f2529) 30%,transparent)}.story-card-dot.is-online{background:#4caf7a}.story-card-chips{display:flex;max-width:100%;flex-wrap:wrap;justify-content:center;gap:8px;padding-inline:4px}.story-card-chip{display:inline-flex;max-width:100%;min-height:32px;align-items:center;gap:6px;padding:0 12px;border:0;border-radius:16px;color:var(--chat-text,#2f2529);background:color-mix(in srgb,var(--chat-text,#2f2529) 6%,transparent);font:inherit;font-size:12.5px;cursor:pointer}.story-card-chip svg{width:14px;height:14px;flex:0 0 14px;color:var(--chat-muted,#786970)}.story-card-chip span{overflow:hidden;max-width:11em;text-overflow:ellipsis;white-space:nowrap}.story-card-chip.is-expanded{border-radius:14px;padding-block:7px}.story-card-chip.is-expanded span{max-width:none;white-space:normal;text-align:left;line-height:1.45}.story-card-chip:hover{background:color-mix(in srgb,var(--chat-accent,#a93b5b) 10%,transparent)}.story-card-chip:focus-visible{outline:2px solid color-mix(in srgb,var(--chat-accent,#a93b5b) 42%,transparent)}.story-card-divider{align-self:stretch;height:1px;margin-inline:6px;background:color-mix(in srgb,var(--chat-text,#2f2529) 9%,transparent)}.story-card-actions{display:flex;align-self:stretch;justify-content:space-around}.story-card-action{display:flex;max-width:88px;flex:1 1 0;flex-direction:column;align-items:center;gap:7px;padding:0 2px;border:0;color:var(--chat-text,#2f2529);background:transparent;font:inherit;cursor:pointer}.story-card-action-icon{display:grid;width:50px;height:50px;place-items:center;border-radius:50%;color:var(--chat-muted,#786970);background:color-mix(in srgb,var(--chat-text,#2f2529) 6%,transparent);transition:color .16s ease,background-color .16s ease,transform .16s ease}.story-card-action-icon svg{width:20px;height:20px}.story-card-action-label{font-size:11.5px;line-height:15px;text-align:center}.story-card-action:focus-visible .story-card-action-icon,.story-card-action:hover .story-card-action-icon{color:var(--chat-accent,#a93b5b);background:color-mix(in srgb,var(--chat-accent,#a93b5b) 12%,transparent)}.story-card-action:active .story-card-action-icon{transform:scale(.94)}.story-card-action:focus-visible{outline:none}.story-card-extra{display:flex;justify-content:center}@media (prefers-reduced-motion:reduce){.story-card,.story-card-action-icon,.story-card-scrim{transition:none}}.ComposerFeatureForm_form__sk3le{--feature-tone:var(--chat-accent,#a93b5b);display:flex;min-width:0;flex-direction:column;gap:1rem;padding-top:.2rem}.ComposerFeatureForm_money__uT2wj{--feature-tone:#a84d53}.ComposerFeatureForm_gift__OL_i2{--feature-tone:#955f78}.ComposerFeatureForm_location__319Xx{--feature-tone:#4f756a}.ComposerFeatureForm_voice__jBH_8{--feature-tone:#687262}.ComposerFeatureForm_media__ClFtr{--feature-tone:#6f5d8e}.ComposerFeatureForm_intro__k2axw{position:relative;display:flex;min-width:0;align-items:center;gap:.8rem;overflow:hidden;padding:.85rem;border-radius:1rem;background:radial-gradient(circle at 92% 0,color-mix(in srgb,var(--feature-tone) 13%,transparent),transparent 42%),color-mix(in srgb,var(--feature-tone) 8%,var(--chat-surface,#fff))}.ComposerFeatureForm_intro__k2axw:after{position:absolute;inset:0;pointer-events:none;background-image:radial-gradient(color-mix(in srgb,var(--feature-tone) 17%,transparent) .55px,transparent .55px);background-size:7px 7px;content:"";opacity:.2;mask-image:linear-gradient(90deg,#000,transparent 78%)}.ComposerFeatureForm_introIcon__QS9gp{position:relative;z-index:1;display:grid;width:2.75rem;height:2.75rem;flex:0 0 2.75rem;place-items:center;border-radius:.9rem;color:color-mix(in srgb,var(--feature-tone) 84%,var(--chat-text,#2e2228));background:color-mix(in srgb,var(--feature-tone) 12%,var(--chat-surface,#fff))}.ComposerFeatureForm_introCopy__dup1l{position:relative;z-index:1;display:flex;min-width:0;flex:1;flex-direction:column;gap:.14rem}.ComposerFeatureForm_introCopy__dup1l strong{color:var(--chat-text,#2e2228);font-size:.88rem;font-weight:650;line-height:1.35;overflow-wrap:anywhere}.ComposerFeatureForm_introCopy__dup1l span{color:var(--chat-muted,#7c6a72);font-size:.7rem;line-height:1.45;overflow-wrap:anywhere}.ComposerFeatureForm_introValue__oJI_X{position:relative;z-index:1;color:color-mix(in srgb,var(--feature-tone) 82%,var(--chat-text,#2e2228));font-size:1.1rem;font-variant-numeric:tabular-nums;font-weight:720;letter-spacing:-.025em}.ComposerFeatureForm_fields__q28ar{display:flex;flex-direction:column;gap:.85rem}.ComposerFeatureForm_field__vrFwZ{display:flex;min-width:0;flex-direction:column;gap:.42rem}.ComposerFeatureForm_fieldRow__49Jj9{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.ComposerFeatureForm_fieldHeader__likK7{display:flex;min-width:0;align-items:baseline;justify-content:space-between;gap:.6rem}.ComposerFeatureForm_label__zm49a{color:var(--chat-text,#2e2228);font-size:.76rem;font-weight:620;line-height:1.35}.ComposerFeatureForm_counter__5gK53,.ComposerFeatureForm_hint__8ITgY{color:var(--chat-muted,#7c6a72);font-size:.66rem;font-variant-numeric:tabular-nums;line-height:1.35}.ComposerFeatureForm_input__2W0tS,.ComposerFeatureForm_textarea__02jD_{width:100%;min-width:0;box-sizing:border-box;border:1px solid color-mix(in srgb,var(--chat-muted,#7c6a72) 18%,transparent);border-radius:.8rem;outline:none;color:var(--chat-text,#2e2228);background:var(--chat-soft,#eee2e5);font:inherit;font-size:.84rem;line-height:1.5;transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease}.ComposerFeatureForm_input__2W0tS{min-height:3rem;padding:.68rem .78rem}.ComposerFeatureForm_textarea__02jD_{min-height:6.5rem;resize:vertical;padding:.72rem .78rem}.ComposerFeatureForm_input__2W0tS::placeholder,.ComposerFeatureForm_textarea__02jD_::placeholder{color:color-mix(in srgb,var(--chat-muted,#7c6a72) 72%,transparent)}.ComposerFeatureForm_input__2W0tS:focus,.ComposerFeatureForm_textarea__02jD_:focus{border-color:color-mix(in srgb,var(--feature-tone) 50%,transparent);background:var(--chat-surface,#fff);box-shadow:0 0 0 3px color-mix(in srgb,var(--feature-tone) 12%,transparent)}.ComposerFeatureForm_input__2W0tS:disabled,.ComposerFeatureForm_textarea__02jD_:disabled{cursor:not-allowed;opacity:.58}.ComposerFeatureForm_amountField__Sm_bc{position:relative}.ComposerFeatureForm_currency__GGkPn{position:absolute;top:50%;left:.85rem;color:var(--feature-tone);font-size:1rem;font-weight:680;transform:translateY(-50%)}.ComposerFeatureForm_amountInput__cJcIR{min-height:4rem;padding-left:2rem;font-size:1.7rem;font-variant-numeric:tabular-nums;font-weight:720;letter-spacing:-.04em}.ComposerFeatureForm_segmented__2E1ov{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.38rem;padding:.3rem;border-radius:.85rem;background:var(--chat-soft,#eee2e5)}.ComposerFeatureForm_segment__175jJ{min-height:2.75rem;padding:.55rem .38rem;border:0;border-radius:.62rem;color:var(--chat-muted,#7c6a72);background:transparent;font:inherit;font-size:.7rem;font-weight:620;cursor:pointer}.ComposerFeatureForm_segment__175jJ[data-active=true]{color:var(--chat-text,#2e2228);background:var(--chat-surface,#fff);box-shadow:0 .25rem .75rem color-mix(in srgb,var(--chat-text,#2e2228) 8%,transparent)}.ComposerFeatureForm_segment__175jJ:focus-visible{outline:3px solid color-mix(in srgb,var(--feature-tone) 20%,transparent);outline-offset:2px}.ComposerFeatureForm_preview__m65fp{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:.75rem;padding:.72rem .78rem;border-radius:.78rem;color:var(--chat-muted,#7c6a72);background:color-mix(in srgb,var(--feature-tone) 7%,var(--chat-surface,#fff));font-size:.72rem}.ComposerFeatureForm_preview__m65fp strong{color:var(--chat-text,#2e2228);font-variant-numeric:tabular-nums;font-size:.92rem}.ComposerFeatureForm_error__8RC6Z{padding:.68rem .75rem;border-radius:.72rem;color:#8f303c;background:color-mix(in srgb,#a83d4b 10%,var(--chat-surface,#fff));font-size:.74rem;line-height:1.45}.ComposerFeatureForm_footerActions__7CkHs{--feature-tone:var(--chat-accent,#a93b5b);display:grid;width:100%;grid-template-columns:minmax(5rem,.55fr) minmax(8rem,1fr);gap:.55rem}.ComposerFeatureForm_primary__UkBFq,.ComposerFeatureForm_secondary__MoPzn{min-height:2.85rem;padding:.65rem .85rem;border:0;border-radius:.78rem;font:inherit;font-size:.78rem;font-weight:650;cursor:pointer}.ComposerFeatureForm_secondary__MoPzn{color:var(--chat-muted,#7c6a72);background:var(--chat-soft,#eee2e5)}.ComposerFeatureForm_primary__UkBFq{color:var(--theme-message-user-text,#fff);background:var(--feature-tone,var(--chat-accent,#a93b5b))}.ComposerFeatureForm_primary__UkBFq:active:not(:disabled),.ComposerFeatureForm_secondary__MoPzn:active:not(:disabled){transform:scale(.985)}.ComposerFeatureForm_primary__UkBFq:focus-visible,.ComposerFeatureForm_secondary__MoPzn:focus-visible{outline:3px solid color-mix(in srgb,var(--feature-tone) 22%,transparent);outline-offset:2px}.ComposerFeatureForm_primary__UkBFq:disabled,.ComposerFeatureForm_secondary__MoPzn:disabled{cursor:not-allowed;opacity:.46}@media (max-width:380px){.ComposerFeatureForm_fieldRow__49Jj9{grid-template-columns:1fr}.ComposerFeatureForm_introValue__oJI_X{font-size:.98rem}}@media (prefers-reduced-motion:reduce){.ComposerFeatureForm_input__2W0tS,.ComposerFeatureForm_textarea__02jD_{transition:none}.ComposerFeatureForm_primary__UkBFq:active:not(:disabled),.ComposerFeatureForm_secondary__MoPzn:active:not(:disabled){transform:none}}.StoryBranchDialog_options__Ukc9W{display:flex;flex-direction:column;gap:.6rem;padding:.15rem 0 .35rem}.StoryBranchDialog_option__ergLK{display:flex;width:100%;min-width:0;align-items:flex-start;gap:.8rem;padding:.85rem .9rem;border:1px solid color-mix(in srgb,var(--chat-muted,#786970) 12%,transparent);border-radius:1rem;color:var(--chat-text,#2f2529);background:color-mix(in srgb,var(--chat-soft,#eee2e5) 55%,transparent);font:inherit;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .18s ease,transform .12s ease}.StoryBranchDialog_option__ergLK:hover:not(:disabled){background:var(--chat-soft,#eee2e5)}.StoryBranchDialog_option__ergLK:active:not(:disabled){transform:scale(.985)}.StoryBranchDialog_option__ergLK:focus-visible{outline:3px solid color-mix(in srgb,var(--chat-accent,#a93b5b) 22%,transparent);outline-offset:2px}.StoryBranchDialog_option__ergLK:disabled{cursor:not-allowed;opacity:.55}.StoryBranchDialog_optionIcon__1Lxp0{display:grid;width:2.5rem;height:2.5rem;flex:0 0 2.5rem;place-items:center;border-radius:.85rem;color:var(--chat-accent,#a93b5b);background:color-mix(in srgb,var(--chat-accent,#a93b5b) 12%,var(--chat-surface,#fffaf8))}.StoryBranchDialog_optionIcon__1Lxp0 svg{width:1.2rem;height:1.2rem;stroke-width:1.8}.StoryBranchDialog_optionText__l5_9E{display:flex;min-width:0;flex:1;flex-direction:column;gap:.22rem}.StoryBranchDialog_optionTitle__ReJyv{font-size:.9rem;font-weight:680;line-height:1.35}.StoryBranchDialog_optionHint__f2Gi6{color:var(--chat-muted,#786970);font-size:.74rem;line-height:1.5;overflow-wrap:anywhere}.StoryBranchDialog_nameForm__3ThsH{display:flex;min-width:0;flex-direction:column;gap:.55rem;padding:.2rem 0 .35rem}.StoryBranchDialog_hint__Uz9uM{margin:0;color:var(--chat-muted,#786970);font-size:.72rem;line-height:1.5;overflow-wrap:anywhere}.StoryBranchDialog_problem__FtTxX{margin:0;color:var(--theme-error-color,#b4233e);font-size:.74rem;line-height:1.45;overflow-wrap:anywhere}.StoryBranchDialog_input__qu8yW[aria-invalid=true]{border-color:color-mix(in srgb,var(--theme-error-color,#b4233e) 45%,transparent)}.StoryBranchDialog_busy__ugBlp{display:inline-flex;align-items:center;justify-content:center;gap:.4rem}.StoryBranchDialog_spinner__wOJKS{width:1rem;height:1rem;animation:StoryBranchDialog_story-branch-spin__xIOR1 .9s linear infinite}@keyframes StoryBranchDialog_story-branch-spin__xIOR1{to{transform:rotate(1turn)}}@media (prefers-reduced-motion:reduce){.StoryBranchDialog_option__ergLK{transition:none}.StoryBranchDialog_option__ergLK:active:not(:disabled){transform:none}.StoryBranchDialog_spinner__wOJKS{animation:none}}.ChatMenuFullScreen_layer__Ut23F{--chat-canvas-fallback:var(--lk-canvas,var(--theme-bg-primary,#f7f0ed));position:absolute;inset:0;z-index:120;display:flex;min-width:0;min-height:0;flex-direction:column;color:var(--chat-text,var(--lk-text,var(--theme-text-primary,#2f2529)));background:var(--chat-canvas,var(--chat-canvas-fallback));overscroll-behavior:contain;animation:ChatMenuFullScreen_chat-menu-fullscreen-in__opFeH .22s cubic-bezier(.22,.8,.24,1)}.ChatMenuFullScreen_layer__Ut23F[data-host=viewport]{position:fixed;z-index:var(--chat-overlay-z,10050)}@keyframes ChatMenuFullScreen_chat-menu-fullscreen-in__opFeH{0%{opacity:0;transform:translateX(18px)}}.ChatMenuFullScreen_header__HcXHt{flex:0 0 auto;padding:max(8px,env(safe-area-inset-top,0px)) 10px 8px 12px;border-bottom:1px solid color-mix(in srgb,var(--chat-muted,#786970) 12%,transparent);background:color-mix(in srgb,var(--chat-surface,#fffaf8) 88%,var(--chat-canvas,var(--chat-canvas-fallback)))}.ChatMenuFullScreen_headerInner__v86ah{display:flex;box-sizing:border-box;width:min(100%,620px);min-height:44px;align-items:center;gap:10px;margin:0 auto}.ChatMenuFullScreen_leading__6xOiz{display:grid;flex:0 0 auto;place-items:center}.ChatMenuFullScreen_heading___ZIgZ{min-width:0;flex:1}.ChatMenuFullScreen_heading___ZIgZ h2{overflow:hidden;margin:0;font-size:16px;font-weight:680;letter-spacing:-.018em;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.ChatMenuFullScreen_subtitle__US47k{overflow:hidden;margin-top:2px;color:var(--chat-muted,#786970);font-size:11.5px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.ChatMenuFullScreen_iconButton__lPglb{display:grid;width:44px;height:44px;flex:0 0 44px;place-items:center;padding:0;border:0;border-radius:12px;color:var(--chat-text,#2f2529);background:var(--chat-soft,color-mix(in srgb,var(--chat-muted,#786970) 10%,transparent));cursor:pointer}.ChatMenuFullScreen_iconButton__lPglb:active{transform:scale(.97)}.ChatMenuFullScreen_iconButton__lPglb:focus-visible{outline:2px solid color-mix(in srgb,var(--chat-accent,#a93b5b) 60%,white);outline-offset:2px}.ChatMenuFullScreen_body__7b_U0{min-height:0;flex:1;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.ChatMenuFullScreen_content__gTbAK{box-sizing:border-box;width:min(100%,640px);margin:0 auto;padding:14px 14px max(28px,env(safe-area-inset-bottom,0px))}@media (prefers-reduced-motion:reduce){.ChatMenuFullScreen_layer__Ut23F{animation:none}.ChatMenuFullScreen_iconButton__lPglb:active{transform:none}}.ifm-token-stats{display:grid;gap:10px;color:var(--chat-text,var(--lk-text,#2f2529))}.ifm-token-breakdown,.ifm-token-hero,.ifm-token-meta{overflow:hidden;border:1px solid color-mix(in srgb,var(--chat-text,#18212b) 8%,transparent);border-radius:14px;background:var(--chat-surface,var(--lk-surface,#fff))}.ifm-token-hero{display:grid;gap:8px;padding:12px;background:linear-gradient(180deg,color-mix(in srgb,var(--chat-accent,var(--lk-primary,#a93b5b)) 10%,var(--chat-soft,var(--lk-soft,#eee2e5))),var(--chat-surface,var(--lk-surface,#fff)) 72%)}.ifm-token-hero-topline,.ifm-token-meta>div,.ifm-token-row,.ifm-token-total{display:flex;align-items:center;justify-content:space-between;gap:10px}.ifm-token-hero-topline{color:var(--chat-muted,var(--lk-muted,#786970));font-size:11px;font-weight:600}.ifm-token-mode{display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:999px;background:color-mix(in srgb,var(--chat-accent,var(--lk-primary,#a93b5b)) 12%,transparent);color:var(--chat-accent,var(--lk-primary,#a93b5b));font-size:10px;font-weight:700;letter-spacing:.04em}.ifm-token-total{align-items:baseline}.ifm-token-total strong{color:var(--chat-text,var(--lk-text,#2f2529));font-size:28px;font-variant-numeric:tabular-nums;font-weight:750;letter-spacing:-.04em;line-height:1}.ifm-token-total span{color:var(--chat-muted,var(--lk-muted,#786970));font-size:11px;font-weight:600}.ifm-token-bar{display:flex;height:5px;overflow:hidden;border-radius:999px;background:color-mix(in srgb,var(--chat-soft,var(--lk-soft,#eee2e5)) 88%,transparent)}.ifm-token-bar-part{display:block;min-width:0;height:100%}.ifm-token-bar-part.system,.ifm-token-dot.system{background:var(--chat-accent,var(--lk-primary,#a93b5b))}.ifm-token-bar-part.world-book,.ifm-token-dot.world-book{background:#34c759}.ifm-token-bar-part.context,.ifm-token-dot.context{background:#ff9f0a}.ifm-token-bar-part.vision,.ifm-token-dot.vision{background:#5856d6}.ifm-token-bar-part.format,.ifm-token-dot.format{background:color-mix(in srgb,var(--chat-muted,#786970) 55%,var(--chat-accent,#a93b5b))}.ifm-token-breakdown,.ifm-token-meta{padding:4px 10px}.ifm-token-meta>div,.ifm-token-row{min-height:36px;font-size:13px}.ifm-token-meta>div+div,.ifm-token-row+.ifm-token-row{border-top:1px solid color-mix(in srgb,var(--chat-text,#18212b) 7%,transparent)}.ifm-token-dot{width:7px;height:7px;flex:0 0 7px;border-radius:50%}.ifm-token-meta span,.ifm-token-row-label{min-width:0;color:var(--chat-muted,var(--lk-muted,#786970));font-weight:500}.ifm-token-meta strong,.ifm-token-row strong{color:var(--chat-text,var(--lk-text,#2f2529));font-size:13px;font-variant-numeric:tabular-nums;font-weight:700}.ifm-token-model{overflow:hidden;padding:0 4px;font-size:11px;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}.ifm-token-empty,.ifm-token-model{color:var(--chat-muted,var(--lk-muted,#786970))}.ifm-token-empty{padding:22px 12px;border-radius:14px;background:var(--chat-soft,var(--lk-soft,#eee2e5));font-size:13px;line-height:1.5;text-align:center}.ifm-token-error{background:color-mix(in srgb,var(--chat-danger,#c3444e) 10%,transparent);color:var(--chat-danger,#c3444e)}.ifm-token-dropped,.ifm-token-error{padding:8px 10px;border-radius:10px;font-size:12px;line-height:1.45}.ifm-token-dropped{background:color-mix(in srgb,var(--chat-warning,#d99a2b) 12%,transparent);color:var(--chat-warning,#a8701a)}.ifm-token-footer{display:grid;gap:10px}.ifm-token-footer p{margin:0;color:var(--chat-muted,var(--lk-muted,#786970));font-size:11px;line-height:1.5}.ifm-token-refresh{display:inline-flex;min-height:40px;align-items:center;justify-content:center;gap:6px;padding:0 14px;border:0;border-radius:12px;background:var(--chat-accent,var(--lk-primary,#a93b5b));color:#fff;cursor:pointer;font:inherit;font-size:13px;font-weight:700}.ifm-token-refresh:disabled{cursor:wait;opacity:.62}.ifm-token-refresh .spinning{animation:ifm-token-spin .8s linear infinite}@keyframes ifm-token-spin{to{transform:rotate(1turn)}}@media (prefers-reduced-motion:reduce){.ifm-token-refresh .spinning{animation:none}}.api-debug-overlay{position:fixed;inset:0;z-index:12050;display:grid;place-items:center;padding:max(14px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));background:color-mix(in srgb,#120d10 62%,transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}.api-debug-modal{width:min(980px,100%);height:min(760px,100%);min-height:0;display:flex;flex-direction:column;overflow:hidden;color:var(--theme-text-primary,#2f2025);background:var(--theme-bg-secondary,#fffdfb);border:1px solid var(--theme-border-color,#eadde1);border-radius:20px;box-shadow:var(--theme-shadow-heavy,0 28px 90px rgba(0,0,0,.36))}.api-debug-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px 14px;background:var(--theme-header-bg,var(--theme-bg-secondary,#fffdfb));border-bottom:1px solid var(--theme-border-color,#eadde1)}.api-debug-header h2{margin:2px 0 0;font-size:20px;line-height:1.25}.api-debug-eyebrow{color:var(--theme-accent-color,#a93b5b);font-size:10px;font-weight:800;letter-spacing:.12em}.api-debug-close{width:40px;height:40px;flex:0 0 auto;border:1px solid var(--theme-border-color,#eadde1);border-radius:12px;background:var(--theme-bg-tertiary,#f8eef1);font-size:24px;cursor:pointer}.api-debug-close,.api-debug-summary{color:var(--theme-text-secondary,#755f67)}.api-debug-summary{display:flex;flex-wrap:wrap;align-items:center;gap:7px;padding:10px 20px;background:var(--theme-bg-primary,#fff9f5);border-bottom:1px solid var(--theme-border-color,#eadde1);font-size:12px}.api-debug-summary span{padding:4px 8px;border-radius:8px;background:var(--theme-bg-tertiary,#f8eef1)}.api-debug-status.is-pending{color:var(--theme-warning-color,#b76816)}.api-debug-status.is-completed{color:var(--theme-success-color,#477b5b)}.api-debug-status.is-failed{color:var(--theme-error-color,#cf445b)}.api-debug-tabs{display:flex;gap:4px;padding:10px 20px 0;background:var(--theme-bg-secondary,#fffdfb);overflow-x:auto}.api-debug-tabs button{flex:0 0 auto;min-height:38px;padding:8px 13px;border:0;border-radius:10px 10px 0 0;color:var(--theme-text-secondary,#755f67);background:transparent;font-weight:650;cursor:pointer}.api-debug-tabs button.is-active{color:var(--theme-accent-color,#a93b5b);background:color-mix(in srgb,var(--theme-accent-color,#a93b5b) 10%,var(--theme-bg-primary,#fff9f5))}.api-debug-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 20px;background:color-mix(in srgb,var(--theme-accent-color,#a93b5b) 5%,var(--theme-bg-primary,#fff9f5));border-block:1px solid var(--theme-border-color,#eadde1)}.api-debug-toolbar p{margin:0;color:var(--theme-text-secondary,#755f67);font-size:12px}.api-debug-toolbar button{min-height:36px;flex:0 0 auto;padding:7px 12px;border:0;border-radius:10px;color:var(--theme-accent-contrast,#fff);background:var(--theme-accent-color,#a93b5b);font-weight:700;cursor:pointer}.api-debug-console{flex:1;min-height:0;margin:12px;overflow:auto;color:#d8d5df;background:#15131a;border:1px solid #302b39;border-radius:13px;box-shadow:inset 0 1px 0 rgba(255,255,255,.035);font:12px/1.65 ui-monospace,SFMono-Regular,Consolas,Liberation Mono,monospace;tab-size:2}.api-debug-console:focus-visible{outline:2px solid var(--theme-accent-color,#a93b5b);outline-offset:2px}.api-debug-console-titlebar{position:sticky;top:0;z-index:3;display:flex;align-items:center;gap:6px;min-height:36px;padding:7px 12px;color:#8f899a;background:rgba(28,25,34,.96);border-bottom:1px solid #302b39;backdrop-filter:blur(12px)}.api-debug-console-dot{width:8px;height:8px;border-radius:50%}.api-debug-console-dot.is-red{background:#ff6b6b}.api-debug-console-dot.is-amber{background:#f7c75e}.api-debug-console-dot.is-green{background:#58c98d}.api-debug-console-path{margin-left:5px;overflow:hidden;font-size:10px;letter-spacing:.04em;text-overflow:ellipsis;white-space:nowrap}.api-debug-console-content{min-width:min(100%,520px);padding:10px 0 22px}.api-debug-tree-empty,.api-debug-tree-row,.api-debug-tree-toggle{width:100%;min-height:27px;padding:3px 12px 3px calc(12px + var(--debug-depth, 0) * 18px);text-align:left}.api-debug-tree-toggle{display:flex;align-items:center;gap:5px;border:0;color:inherit;background:transparent;font:inherit;cursor:pointer}.api-debug-tree-row:hover,.api-debug-tree-toggle:hover{background:rgba(255,255,255,.045)}.api-debug-disclosure{width:12px;flex:0 0 12px;color:#858091;font-size:17px;line-height:1;transform-origin:center;transition:transform .12s ease}.api-debug-disclosure.is-open{transform:rotate(90deg)}.api-debug-tree-key{color:#8fc7ff;font-weight:600;overflow-wrap:anywhere}.api-debug-tree-colon{color:#6e6878}.api-debug-tree-shape{color:#9a94a5}.api-debug-role{margin-left:6px;padding:1px 6px;border:1px solid #3c3745;border-radius:5px;color:#c9c4d1;font-size:10px;line-height:1.5}.api-debug-role.is-system{color:#f3a6c1;border-color:rgba(243,166,193,.35);background:rgba(243,166,193,.08)}.api-debug-role.is-user{color:#8fc7ff;border-color:rgba(143,199,255,.35);background:rgba(143,199,255,.08)}.api-debug-role.is-assistant{color:#8ed8ac;border-color:rgba(142,216,172,.35);background:rgba(142,216,172,.08)}.api-debug-tree-row{display:flex;align-items:baseline;gap:5px}.api-debug-tree-row.has-block-value{display:grid;grid-template-columns:auto auto minmax(0,1fr)}.api-debug-tree-value.is-string{color:#d7b889}.api-debug-tree-value.is-number{color:#b8a7ff}.api-debug-tree-value.is-boolean{color:#ff91a8}.api-debug-tree-value.is-null,.api-debug-tree-value.is-undefined{color:#817b8b;font-style:italic}.api-debug-string-block{min-width:0;margin:3px 12px 7px 0;padding:9px 11px;overflow:visible;color:#d7c3a5;background:#1c1922;border-left:2px solid #6f5a83;border-radius:0 7px 7px 0;font:inherit;white-space:pre-wrap;overflow-wrap:anywhere}.api-debug-console-empty,.api-debug-tree-empty{color:#858091}.api-debug-console-empty{padding:18px;line-height:1.7}.api-debug-console-empty code{color:#8fc7ff}.api-debug-prompt-list{display:grid;gap:8px;padding:2px 10px}.api-debug-prompt-section{overflow:hidden;background:#1b1820;border:1px solid #302b39;border-radius:9px}.api-debug-prompt-section[open]{border-color:#4b4258}.api-debug-prompt-section summary{display:grid;grid-template-columns:30px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:42px;padding:7px 10px;cursor:pointer;list-style:none}.api-debug-prompt-section summary::-webkit-details-marker{display:none}.api-debug-prompt-section summary:hover{background:rgba(255,255,255,.04)}.api-debug-prompt-index{color:#8f899a}.api-debug-prompt-title{color:#8fc7ff;font-weight:700}.api-debug-prompt-size{color:#858091;font-size:10px}.api-debug-prompt-section pre{max-height:420px;margin:0;padding:13px 14px 18px;overflow:auto;color:#d7c3a5;background:#15131a;border-top:1px solid #302b39;font:inherit;white-space:pre-wrap;overflow-wrap:anywhere}@media (max-width:640px){.api-debug-overlay{padding:0}.api-debug-modal{width:100%;height:100%;border:0;border-radius:0}.api-debug-header{padding-top:max(14px,env(safe-area-inset-top))}.api-debug-summary{max-height:76px;overflow-y:auto}.api-debug-tabs{padding-inline:10px}.api-debug-tabs button{flex:1;padding-inline:5px;font-size:13px}.api-debug-toolbar{align-items:flex-start;padding-inline:14px}.api-debug-toolbar p{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}.api-debug-console{margin:8px 8px max(8px,env(safe-area-inset-bottom));border-radius:10px}.api-debug-console-content{min-width:100%}.api-debug-tree-empty,.api-debug-tree-row,.api-debug-tree-toggle{padding-right:8px;padding-left:calc(8px + var(--debug-depth, 0) * 14px)}.api-debug-tree-row.has-block-value{grid-template-columns:auto auto minmax(0,1fr)}.api-debug-string-block{grid-column:1/-1;margin-left:14px;margin-right:4px}}.ChatMenuPrimitives_section__cNT3F{display:grid;gap:8px}.ChatMenuPrimitives_section__cNT3F+.ChatMenuPrimitives_section__cNT3F{margin-top:18px}.ChatMenuPrimitives_choiceField__Y9BO1 legend,.ChatMenuPrimitives_sectionTitle__KCPOf{margin:0;padding:0 10px;color:var(--chat-muted,#72808f);font-size:11px;font-weight:700;letter-spacing:.08em;line-height:1.4;text-transform:uppercase}.ChatMenuPrimitives_sectionBody__kziYI{overflow:hidden;border:1px solid color-mix(in srgb,var(--chat-text,#18212b) 9%,transparent);border-radius:15px;background:var(--chat-surface,#fff)}.ChatMenuPrimitives_listItem__8zpnb,.ChatMenuPrimitives_toggleRow__aMgsQ{position:relative;display:flex;width:100%;min-height:58px;align-items:center;gap:11px;margin:0;padding:9px 12px;border:0;background:transparent;color:var(--chat-text,#18212b);font:inherit;text-align:left}.ChatMenuPrimitives_listItem__8zpnb:not(:last-child):after,.ChatMenuPrimitives_toggleRow__aMgsQ:not(:last-child):after{position:absolute;right:12px;bottom:0;left:55px;height:1px;background:color-mix(in srgb,var(--chat-text,#18212b) 8%,transparent);content:""}.ChatMenuPrimitives_listItem__8zpnb:active{background:color-mix(in srgb,var(--chat-accent,#2878ff) 8%,transparent)}.ChatMenuPrimitives_choiceGroup__iTMMY button:focus-visible,.ChatMenuPrimitives_field___Ef6t :is(input,select,textarea):focus-visible,.ChatMenuPrimitives_footer__LMJ_g button:focus-visible,.ChatMenuPrimitives_listItem__8zpnb:focus-visible,.ChatMenuPrimitives_toggleRow__aMgsQ:focus-within{outline:2px solid color-mix(in srgb,var(--chat-accent,#2878ff) 72%,white);outline-offset:-2px}.ChatMenuPrimitives_disabled__Rlsuw,.ChatMenuPrimitives_listItem__8zpnb:disabled{cursor:not-allowed;opacity:.46}.ChatMenuPrimitives_icon__iIa_g{display:grid;width:34px;height:34px;flex:0 0 34px;place-items:center;border-radius:10px;background:color-mix(in srgb,var(--chat-accent,#2878ff) 10%,var(--chat-soft,#f4f6f8));color:var(--chat-accent,#2878ff)}.ChatMenuPrimitives_copy__wgUbO{display:grid;min-width:0;flex:1;gap:2px}.ChatMenuPrimitives_title__jihmH{overflow-wrap:anywhere;font-size:14px;font-weight:620;line-height:1.35}.ChatMenuPrimitives_error__aYDy4,.ChatMenuPrimitives_hint__IFRbO,.ChatMenuPrimitives_summary__K1RDd{overflow-wrap:anywhere;color:var(--chat-muted,#72808f);font-size:12px;line-height:1.45}.ChatMenuPrimitives_trailing__uOa0i{display:grid;flex:0 0 22px;place-items:center;color:var(--chat-muted,#72808f)}.ChatMenuPrimitives_selected__h1diO{background:color-mix(in srgb,var(--chat-accent,#2878ff) 8%,transparent)}.ChatMenuPrimitives_danger__c1kkJ,.ChatMenuPrimitives_error__aYDy4,.ChatMenuPrimitives_selected__h1diO .ChatMenuPrimitives_trailing__uOa0i{color:var(--chat-danger,#c3444e)}.ChatMenuPrimitives_choiceField__Y9BO1,.ChatMenuPrimitives_field___Ef6t,.ChatMenuPrimitives_rangeField__W_9lf{display:grid;min-width:0;gap:7px;margin:0;padding:0;border:0}.ChatMenuPrimitives_fieldLabel__ngkRB,.ChatMenuPrimitives_rangeHeader__ND_Gi{color:var(--chat-text,#18212b);font-size:13px;font-weight:650}.ChatMenuPrimitives_field___Ef6t :is(input,select,textarea){box-sizing:border-box;width:100%;min-height:44px;padding:10px 12px;border:1px solid color-mix(in srgb,var(--chat-text,#18212b) 13%,transparent);border-radius:12px;outline:0;background:var(--chat-surface,#fff);color:var(--chat-text,#18212b);font:inherit}.ChatMenuPrimitives_toggleRow__aMgsQ{cursor:pointer}.ChatMenuPrimitives_toggleRow__aMgsQ input{position:absolute;width:1px;height:1px;opacity:0}.ChatMenuPrimitives_switch__zYJI7{display:flex;width:44px;height:26px;flex:0 0 44px;align-items:center;padding:3px;border-radius:999px;background:color-mix(in srgb,var(--chat-muted,#72808f) 30%,transparent);transition:background-color .16s ease}.ChatMenuPrimitives_switch__zYJI7 span{width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgb(20 29 38/16%);transition:transform .16s ease}.ChatMenuPrimitives_toggleRow__aMgsQ input:checked+.ChatMenuPrimitives_switch__zYJI7{background:var(--chat-accent,#2878ff)}.ChatMenuPrimitives_toggleRow__aMgsQ input:checked+.ChatMenuPrimitives_switch__zYJI7 span{transform:translateX(18px)}.ChatMenuPrimitives_choiceField__Y9BO1{gap:9px}.ChatMenuPrimitives_choiceField__Y9BO1 legend{margin-bottom:7px;padding:0}.ChatMenuPrimitives_choiceGroup__iTMMY{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;border-radius:13px;background:var(--chat-soft,#f2f4f7)}.ChatMenuPrimitives_choiceGroup__iTMMY button{min-height:40px;border:0;border-radius:10px;background:transparent;color:var(--chat-muted,#72808f);font:inherit;font-size:13px;font-weight:650}.ChatMenuPrimitives_choiceGroup__iTMMY .ChatMenuPrimitives_choiceActive__YnpO5{background:var(--chat-surface,#fff);color:var(--chat-text,#18212b);box-shadow:0 1px 5px rgb(20 29 38/8%)}.ChatMenuPrimitives_rangeHeader__ND_Gi{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.ChatMenuPrimitives_rangeHeader__ND_Gi output{color:var(--chat-accent,#2878ff);font-variant-numeric:tabular-nums}.ChatMenuPrimitives_rangeField__W_9lf input{width:100%;min-height:32px;accent-color:var(--chat-accent,#2878ff)}.ChatMenuPrimitives_footer__LMJ_g{position:sticky;z-index:2;bottom:calc(-1 * max(16px, env(safe-area-inset-bottom)));display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:8px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid color-mix(in srgb,var(--chat-text,#18212b) 9%,transparent);background:var(--chat-surface,#fff)}.ChatMenuPrimitives_footer__LMJ_g button{min-height:44px;padding:0 14px;border:1px solid color-mix(in srgb,var(--chat-text,#18212b) 12%,transparent);border-radius:12px;background:var(--chat-soft,#f2f4f7);color:var(--chat-text,#18212b);font:inherit;font-size:13px;font-weight:700}.ChatMenuPrimitives_footer__LMJ_g button:last-child{border-color:transparent;background:var(--chat-accent,#2878ff);color:#fff}@media (hover:hover){.ChatMenuPrimitives_listItem__8zpnb:hover{background:color-mix(in srgb,var(--chat-accent,#2878ff) 6%,transparent)}}.ChatMenuPrimitives_locked__gMgqj{opacity:.62}.IntegratedFunctionMenu_root__3T6j_{position:relative;display:contents}.IntegratedFunctionMenu_trigger__HJcSE{display:inline-flex;min-width:44px;min-height:44px;align-items:center;justify-content:center;gap:5px;padding:0 10px;border:0;border-radius:12px;background:transparent;color:inherit;font:inherit}.IntegratedFunctionMenu_triggerOpen__FgMjZ,.IntegratedFunctionMenu_trigger__HJcSE:active{background:color-mix(in srgb,currentColor 9%,transparent);transform:scale(.97)}.IntegratedFunctionMenu_trigger__HJcSE:focus-visible{outline:2px solid color-mix(in srgb,var(--chat-accent,#2878ff) 72%,white);outline-offset:2px}.IntegratedFunctionMenu_panelContent__eTG1T{--chat-danger:#c3444e;min-height:100%;padding-bottom:8px;will-change:transform,opacity}.IntegratedFunctionMenu_headerAvatar__NI4Zk{display:grid;width:42px;height:42px;overflow:hidden;place-items:center;border:1px solid color-mix(in srgb,var(--chat-text,#18212b) 10%,transparent);border-radius:50%;background:var(--chat-soft,#f2f4f7);color:var(--chat-accent,#2878ff);font-size:16px;font-weight:750}.IntegratedFunctionMenu_headerAvatar__NI4Zk img,.IntegratedFunctionMenu_personaAvatar__Vwo0i{width:100%;height:100%;object-fit:cover}.IntegratedFunctionMenu_formStack__5RCpx{display:grid;gap:18px;padding-top:4px}.IntegratedFunctionMenu_empty__gPQ2Y{padding:28px 16px;color:var(--chat-muted,#72808f);font-size:13px;line-height:1.5;text-align:center}.IntegratedFunctionMenu_inlineError__O4Oe3{margin:2px 0 12px;padding:10px 12px;border:1px solid color-mix(in srgb,var(--chat-danger,#c3444e) 24%,transparent);border-radius:12px;background:color-mix(in srgb,var(--chat-danger,#c3444e) 8%,var(--chat-surface,#fff));color:var(--chat-danger,#c3444e);font-size:12px;line-height:1.45}.IntegratedFunctionMenu_budgetHint__TWGhY{margin:-8px 2px 0;color:var(--chat-muted,#72808f);font-size:12px;line-height:1.5}.IntegratedFunctionMenu_fieldInset__yzyCA{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:14px}.IntegratedFunctionMenu_fieldInset__yzyCA>:last-child{grid-column:1/-1}.IntegratedFunctionMenu_fieldInset__yzyCA input[type=color]{padding:5px}.IntegratedFunctionMenu_bubblePreview__AqWBL{display:grid;gap:7px;padding:15px;border-radius:15px;background:var(--chat-soft,#f2f4f7)}.IntegratedFunctionMenu_bubblePreview__AqWBL>div{position:relative;z-index:0;width:fit-content;max-width:82%;overflow:hidden;padding:9px 12px;color:var(--preview-text);font-size:13px;line-height:1.45}.IntegratedFunctionMenu_bubblePreview__AqWBL>div:before{position:absolute;z-index:-1;inset:0;border-radius:inherit;background:var(--preview-bg);content:"";opacity:var(--preview-opacity)}.IntegratedFunctionMenu_aiPreview__yFNXn{justify-self:start}.IntegratedFunctionMenu_userPreview__Dj9o8{justify-self:end}.IntegratedFunctionMenu_bubblePreview__AqWBL.IntegratedFunctionMenu_storyPreview__UkdNj{gap:14px;padding:16px;border:1px solid color-mix(in srgb,var(--chat-text,#2f2529) 9%,transparent);background:var(--chat-canvas,var(--lk-canvas,#fff9f5))}.IntegratedFunctionMenu_storyPreviewAi__Gl2m4{margin:0;font-family:var(--lk-story-body-font,var(--lk-display-font,"Noto Serif SC","Songti SC",STSong,serif));letter-spacing:.01em}.IntegratedFunctionMenu_bubblePreview__AqWBL>.IntegratedFunctionMenu_storyPreviewUser__U99aq{justify-self:end;max-width:84%;padding:10px 16px}.IntegratedFunctionMenu_fieldHint__hfqCA{grid-column:1/-1;margin:0;color:var(--chat-muted,#72808f);font-size:12.5px;line-height:1.45}.IntegratedFunctionMenu_confirmBody__MYNbF{display:grid;gap:18px}.IntegratedFunctionMenu_confirmBody__MYNbF p{margin:0;color:var(--chat-muted,#72808f);font-size:14px;line-height:1.6}.IntegratedFunctionMenu_confirmActions__6xAxw{display:grid;grid-template-columns:1fr 1fr;gap:8px}.IntegratedFunctionMenu_confirmActions__6xAxw button{min-height:44px;border:0;border-radius:12px;background:var(--chat-soft,#f2f4f7);color:var(--chat-text,#18212b);font:inherit;font-weight:700}.IntegratedFunctionMenu_confirmActions__6xAxw button:last-child{background:var(--chat-danger,#c3444e);color:#fff}@media (prefers-reduced-motion:reduce){.IntegratedFunctionMenu_triggerOpen__FgMjZ,.IntegratedFunctionMenu_trigger__HJcSE:active{transform:none}}.headfunction-search-button{border:none;background:transparent;padding:6px;border-radius:6px;cursor:pointer;font-size:18px;display:flex;align-items:center;justify-content:center;width:30px;height:30px;line-height:1;color:var(--theme-text-primary,#333);transition:all .2s ease}.headfunction-search-button svg{display:block;transform:translateY(-1px)}.headfunction-search-button:hover{background:var(--theme-bg-secondary,rgba(0,0,0,.05));color:var(--theme-primary-color,#007bff)}.headfunction-companion-button{border:none;background:transparent;padding:6px;border-radius:6px;cursor:pointer;color:var(--theme-text-primary,#333);transition:all .2s ease;font-size:18px;display:flex;align-items:center;justify-content:center;width:30px;height:30px;line-height:1}.headfunction-companion-button:hover{background:var(--theme-bg-secondary,rgba(0,0,0,.05));color:var(--theme-primary-color,#007bff)}.headfunction-search{display:flex;align-items:center;gap:6px;margin:0;background:rgba(255,255,255,.8);border:1px solid rgba(0,0,0,.08);border-radius:8px;height:30px;padding:0 6px;position:relative}.headfunction-search-input{width:100%;border:none;outline:none;background:transparent;height:28px;line-height:28px}.headfunction-search-go{flex:0 0 auto;height:24px;padding:0 10px;border:1px solid rgba(0,0,0,.1);border-radius:999px;background:#fff;color:inherit;cursor:pointer;font-size:12px;font-weight:650;line-height:1;white-space:nowrap;transition:transform .12s ease,background-color .12s ease,color .12s ease,box-shadow .12s ease;-webkit-tap-highlight-color:transparent;touch-action:manipulation}.headfunction-search-go:hover:not(:disabled){background:rgba(0,0,0,.06)}.headfunction-search-go.is-pressed:not(:disabled),.headfunction-search-go:active:not(:disabled){transform:scale(.94);background:rgba(0,0,0,.12)}.headfunction-search-go:disabled{cursor:default;opacity:.45}.headfunction-search-input::-webkit-search-cancel-button{-webkit-appearance:none}.headfunction-search-close{border:none;background:transparent;cursor:pointer;padding:4px}.headfunction-search-dropdown{position:absolute;top:calc(100% + 4px);left:0;display:flex;flex-direction:column;width:100%;max-height:min(calc(5 * 48px + 36px),calc(100dvh - 90px));overflow:hidden;background:#fff;border:1px solid rgba(0,0,0,.1);border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.12);z-index:50;pointer-events:auto}.headfunction-search-list{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}.headfunction-search-meta{flex:0 0 auto;background:#fff;padding:6px 10px;font-size:12px;color:#6b7280;border-bottom:1px solid rgba(0,0,0,.06);display:flex;justify-content:space-between;align-items:center}.headfunction-search-sort{display:flex;gap:4px}.headfunction-search-sort-btn{border:none;background:transparent;cursor:pointer;padding:2px 6px;border-radius:4px;font-size:14px;color:#6b7280;transition:all .2s ease;line-height:1}.headfunction-search-sort-btn:hover{background:rgba(0,0,0,.05);color:var(--theme-primary-color,#007bff)}.headfunction-search-sort-btn.active{background:var(--theme-primary-color,#007bff);color:#fff}.headfunction-search-item{width:100%;padding:8px 10px;background:#fff;border:none;text-align:left;display:flex;justify-content:space-between;gap:10px;cursor:pointer;min-height:40px;touch-action:pan-y}.headfunction-search-item:hover{background:#f5f7fb}.headfunction-search-item-text{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.headfunction-search-item-time{color:#6b7280;font-size:12px;white-space:nowrap}.headfunction-search-highlight{background:rgba(255,193,7,.4);color:inherit;padding:0 1px;border-radius:2px;font-weight:500}.headfunction-highlight{outline:2px solid rgba(59,130,246,.7);box-shadow:0 0 0 4px rgba(59,130,246,.25)}.headfunction-search--full{flex:1;width:100%}html body .chat-interface .chat-header{--story-morph-ease:cubic-bezier(.65,0,.35,1);--story-glass:color-mix(in srgb,var(--chat-surface,#fff) 76%,transparent);--story-glass-line:color-mix(in srgb,var(--chat-text,#2f2529) 9%,transparent);--story-button-shift:14px;overflow:visible}html body .chat-interface .chat-header .chat-header-island{transition:background-color .17s ease,box-shadow .17s ease}html body .chat-interface .chat-header .chat-info,html body .chat-interface .chat-header .headfunction-search-button,html body .chat-interface .chat-header .live2d-header-controls{transition:opacity .17s ease}html body .chat-interface.cinematic-chat-interface>.chat-header.is-story:not(.headfunction-search-active){background:transparent!important}html body .chat-interface .chat-header.is-story:not(.headfunction-search-active) .chat-header-island{background:transparent;box-shadow:none}html body .chat-interface .chat-header.is-story:not(.headfunction-search-active) .chat-info,html body .chat-interface .chat-header.is-story:not(.headfunction-search-active) .headfunction-search-button,html body .chat-interface .chat-header.is-story:not(.headfunction-search-active) .live2d-header-controls{opacity:0;pointer-events:none}html body .chat-interface .chat-header.is-story .chat-header-island .chat-avatar,html body .chat-interface .chat-header.is-story-morphing .chat-header-island .chat-avatar{opacity:0}html body .chat-interface .chat-header .chat-actions .ifm-trigger,html body .chat-interface .chat-header .chat-header-island .back-button{position:relative;isolation:isolate;overflow:visible;transition:transform .38s var(--story-morph-ease),color .16s ease}html body .chat-interface .chat-header .chat-actions .ifm-trigger:before,html body .chat-interface .chat-header .chat-header-island .back-button:before{position:absolute;z-index:-1;inset:-3px;border:1px solid var(--story-glass-line);border-radius:50%;background:var(--story-glass);box-shadow:0 6px 18px color-mix(in srgb,var(--chat-text,#2f2529) 12%,transparent);backdrop-filter:blur(14px) saturate(1.2);-webkit-backdrop-filter:blur(14px) saturate(1.2);content:"";opacity:0;pointer-events:none;transform:scale(.8);transition:opacity .18s ease,transform .18s ease}html body .chat-interface .chat-header.is-story:not(.headfunction-search-active) .chat-actions .ifm-trigger,html body .chat-interface .chat-header.is-story:not(.headfunction-search-active) .chat-header-island .back-button{transform:translateY(var(--story-button-shift))}html body .chat-interface .chat-header.is-story:not(.headfunction-search-active) .chat-actions .ifm-trigger:active,html body .chat-interface .chat-header.is-story:not(.headfunction-search-active) .chat-header-island .back-button:active{transform:translateY(var(--story-button-shift)) scale(.95)}html body .chat-interface .chat-header.is-story:not(.headfunction-search-active) .chat-actions .ifm-trigger:before,html body .chat-interface .chat-header.is-story:not(.headfunction-search-active) .chat-header-island .back-button:before{opacity:1;transform:scale(1);transition:opacity .25s ease .13s,transform .25s var(--story-morph-ease) .13s}html body .chat-interface .chat-header.is-story:not(.headfunction-search-active) .chat-actions .ifm-trigger,html body .chat-interface .chat-header.is-story:not(.headfunction-search-active) .chat-actions .ifm-trigger:hover{background:transparent!important}html body .chat-interface .chat-header .chat-story-avatar{position:absolute;top:calc(max(2px, env(safe-area-inset-top, 0px)) - 2px);left:50%;z-index:2;display:grid;width:76px;height:76px;margin:0 0 0 -38px;place-items:center;padding:0;border:0;border-radius:50%;color:var(--chat-text,#2f2529);background:transparent;cursor:pointer;opacity:0;pointer-events:none;-webkit-tap-highlight-color:transparent}html[data-native-shell=true] body .chat-interface .chat-header .chat-story-avatar{top:0}html body .chat-interface .chat-header.is-story .chat-story-avatar,html body .chat-interface .chat-header.is-story-morphing .chat-story-avatar{opacity:1}html body .chat-interface .chat-header.is-story:not(.headfunction-search-active) .chat-story-avatar{pointer-events:auto}html body .chat-interface .chat-header.headfunction-search-active .chat-story-avatar{opacity:0;pointer-events:none}html body .chat-interface .chat-header .chat-story-avatar:focus-visible{outline:3px solid color-mix(in srgb,var(--chat-accent,#a93b5b) 32%,transparent);outline-offset:0}html body .chat-interface .chat-header .chat-story-avatar>span{position:relative;grid-area:1/1}.chat-story-avatar-frame{width:66px;height:66px;border-radius:50%;background:var(--chat-canvas,var(--chat-surface,#fff));box-shadow:0 6px 18px color-mix(in srgb,var(--chat-text,#2f2529) 16%,transparent);opacity:0;transition:opacity .38s var(--story-morph-ease,ease)}.chat-header.is-story .chat-story-avatar-frame{opacity:1}.chat-story-avatar-clip{display:grid;width:60px;height:60px;overflow:hidden;place-items:center;border-radius:30%;background:var(--chat-soft,#eee2e5);transition:border-radius .38s var(--story-morph-ease,ease)}.chat-header.is-story .chat-story-avatar-clip{border-radius:50%}.chat-story-avatar-clip img{width:60px;height:60px;object-fit:cover}.chat-story-avatar-initials{color:var(--chat-accent,#a93b5b);font-size:19px;font-weight:750}.chat-story-avatar-ring{width:76px;height:76px;border:3px solid var(--chat-accent,#a93b5b);border-radius:50%;opacity:0;pointer-events:none}.chat-story-avatar.is-generating .chat-story-avatar-ring{animation:chat-story-ring-blink .7s ease-in-out infinite alternate}@keyframes chat-story-ring-blink{0%{opacity:1}to{opacity:.15}}html body .chat-interface .chat-header.is-story-instant *,html body .chat-interface .chat-header.is-story-instant :before{transition:none!important}@media (prefers-reduced-motion:reduce){.chat-story-avatar.is-generating .chat-story-avatar-ring{animation:none;opacity:1}}html body .chat-interface .chat-message-panel .chat-sheet-drag-handle{transition:top .38s cubic-bezier(.65,0,.35,1)}html body .chat-interface.is-story-header .chat-message-panel .chat-sheet-drag-handle{top:-6px}html body .chat-interface.is-story-header .chat-message-panel .chat-sheet-drag-handle span{box-shadow:0 0 0 5px color-mix(in srgb,var(--chat-canvas,#fff) 94%,transparent),0 3px 10px color-mix(in srgb,var(--chat-text,#2f2529) 16%,transparent)!important}html body .chat-interface.is-story-mode .messages-container{padding-top:52px!important;-webkit-mask-image:linear-gradient(180deg,transparent 0,#000 28px);mask-image:linear-gradient(180deg,transparent 0,#000 28px)}@media (prefers-reduced-motion:reduce){html body .chat-interface .chat-message-panel .chat-sheet-drag-handle{transition:none}}html body .chat-interface .chat-header .chat-header-island{display:grid!important;grid-template-columns:minmax(96px,1fr) minmax(0,max-content) minmax(96px,1fr);min-height:44px;align-items:center;gap:8px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}html body .chat-interface .chat-header.headfunction-search-active .chat-header-island{grid-template-columns:minmax(0,1fr)}html body .chat-interface .chat-header .chat-header-cluster,html body .chat-interface .chat-header .chat-header-identity,html body .chat-interface .chat-header:not(.headfunction-search-active) .chat-actions{position:relative;isolation:isolate;height:44px;border-radius:22px}html body .chat-interface .chat-header .chat-header-cluster:before,html body .chat-interface .chat-header .chat-header-identity:before,html body .chat-interface .chat-header:not(.headfunction-search-active) .chat-actions:before{position:absolute;z-index:-1;inset:0;border:1px solid var(--lg-line,rgba(255,255,255,.55));border-radius:inherit;background:linear-gradient(155deg,var(--lg-sheen-1,rgba(255,255,255,.55)) 0,var(--lg-sheen-2,rgba(255,255,255,.06)) 34%,transparent 60%,var(--lg-sheen-3,rgba(255,255,255,.16)) 100%),var(--lg-fill,color-mix(in srgb,var(--chat-surface,#fff) 62%,transparent));box-shadow:inset 0 1px 1px var(--lg-hi,rgba(255,255,255,.95)),inset 0 -1px 1px var(--lg-lo,rgba(255,255,255,.3)),var(--lg-shadow,0 10px 28px -10px rgba(58,24,66,.26));-webkit-backdrop-filter:var(--lg-blur,blur(20px) saturate(1.8));backdrop-filter:var(--lg-blur,blur(20px) saturate(1.8));content:"";pointer-events:none;transition:opacity .17s ease}html body .chat-interface .chat-header .chat-header-cluster--lead{display:inline-flex;align-items:center;justify-self:start;padding:0 1px}html body .chat-interface .chat-header:not(.headfunction-search-active) .chat-actions{display:inline-flex;align-items:center;justify-self:end;gap:0;padding:0 1px}html body .chat-interface .chat-header .chat-actions .ifm-trigger,html body .chat-interface .chat-header .chat-header-cluster .back-button,html body .chat-interface .chat-header .chat-header-cluster .chat-header-search-trigger{display:inline-grid;width:42px;height:42px;min-width:42px;min-height:42px;place-items:center;margin:0;padding:0;border:0;border-radius:21px;color:var(--chat-text,var(--lk-text,#2f2529))!important;background:transparent!important;cursor:pointer;-webkit-tap-highlight-color:transparent}html body .chat-interface .chat-header .chat-header-cluster .chat-header-search-trigger{transition:color .16s ease,opacity .17s ease}html body .chat-interface .chat-header .chat-actions .ifm-trigger.open,html body .chat-interface .chat-header .chat-actions .ifm-trigger:hover,html body .chat-interface .chat-header .chat-header-cluster .back-button:hover,html body .chat-interface .chat-header .chat-header-cluster .chat-header-search-trigger:hover{color:var(--chat-accent,#a93b5b)!important}html body .chat-interface .chat-header .chat-header-cluster .back-button:focus-visible,html body .chat-interface .chat-header .chat-header-cluster .chat-header-search-trigger:focus-visible{outline:2px solid color-mix(in srgb,var(--chat-accent,#a93b5b) 38%,transparent);outline-offset:-3px}html body .chat-interface .chat-header .chat-actions .ifm-trigger:before,html body .chat-interface .chat-header .chat-header-cluster .back-button:before{inset:-1px}html body .chat-interface .chat-header .chat-header-center{display:flex;min-width:0;justify-content:center}html body .chat-interface .chat-header .chat-header-identity{display:inline-flex;max-width:100%;min-width:0;align-items:center;margin:0;padding:0 18px 0 5px;border:0;color:var(--chat-text,#2f2529);background:transparent;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:opacity .17s ease,transform .14s ease}html body .chat-interface .chat-header .chat-header-identity:active{transform:scale(.97)}html body .chat-interface .chat-header .chat-header-identity:focus-visible{outline:2px solid color-mix(in srgb,var(--chat-accent,#a93b5b) 38%,transparent);outline-offset:2px}html body .chat-interface .chat-header .chat-header-identity .chat-info{display:flex;min-width:0;align-items:center;gap:9px;overflow:hidden}html body .chat-interface .chat-header .chat-header-identity .chat-avatar{width:34px!important;height:34px!important;flex:0 0 34px;border:0!important;border-radius:50%!important;cursor:pointer}html body .chat-interface .chat-header .chat-header-identity .chat-details{display:block;min-width:0;overflow:hidden}html body .chat-interface .chat-header .chat-header-identity .chat-name{display:block;overflow:hidden;margin:0;color:var(--chat-text,#2f2529)!important;font-size:16px!important;font-weight:600!important;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}html body .chat-interface .chat-header .chat-story-avatar-clip{border-radius:50%}html body .chat-interface .chat-header.is-story:not(.headfunction-search-active) .chat-actions:before,html body .chat-interface .chat-header.is-story:not(.headfunction-search-active) .chat-header-cluster:before,html body .chat-interface .chat-header.is-story:not(.headfunction-search-active) .chat-header-identity:before{opacity:0}html body .chat-interface .chat-header.is-story:not(.headfunction-search-active) .chat-header-identity,html body .chat-interface .chat-header.is-story:not(.headfunction-search-active) .chat-header-search-trigger{opacity:0;pointer-events:none}html body div.chat-interface .chat-header{padding-right:12px!important;padding-left:12px!important}@media (max-width:360px){html body .chat-interface .chat-header .chat-header-island{grid-template-columns:minmax(88px,1fr) minmax(0,max-content) minmax(88px,1fr);gap:6px}html body .chat-interface .chat-header .chat-header-cluster .back-button,html body .chat-interface .chat-header .chat-header-cluster .chat-header-search-trigger{width:40px;min-width:40px}}@media (prefers-reduced-transparency:reduce){html body .chat-interface .chat-header .chat-header-cluster:before,html body .chat-interface .chat-header .chat-header-identity:before,html body .chat-interface .chat-header:not(.headfunction-search-active) .chat-actions:before{background:var(--chat-surface,#fff);-webkit-backdrop-filter:none;backdrop-filter:none}}