.wallpaper-workspace{max-width:980px;margin:auto}.wallpaper-workspace h2{margin:14px 0 10px}.wallpaper-workspace>.drawer-intro{font-size:14px;line-height:1.8}.wallpaper-scope{gap:12px;margin:26px 0;display:flex}.wallpaper-scope button{color:#ddd;text-align:left;cursor:pointer;background:#ffffff04;border:1px solid #ffffff24;border-radius:12px;flex:1;padding:15px 20px;font-size:15px}.wallpaper-scope small{color:#a6b2b6;margin-top:6px;font-size:12px;display:block}.wallpaper-scope button[aria-pressed=true]{border-color:var(--scene-accent);background:color-mix(in srgb,var(--scene-accent) 10%,transparent);color:var(--scene-accent)}.wallpaper-layout{grid-template-columns:minmax(0,1.25fr) minmax(270px,1fr);align-items:start;gap:32px;display:grid}.wallpaper-preview-tools{color:#bdc6c9;justify-content:space-between;align-items:center;margin-bottom:12px;font-size:13px;display:flex}.wallpaper-preview-tools button{color:#bdc6c9;cursor:pointer;background:0 0;border:1px solid #ffffff25;border-radius:6px;margin-left:6px;padding:6px 12px}.wallpaper-preview-tools button[aria-pressed=true]{background:var(--scene-accent);color:#171a1c}.wallpaper-preview{aspect-ratio:4/3;isolation:isolate;background:#172124;border:1px solid #ffffff20;border-radius:14px;position:relative;overflow:hidden}.wallpaper-preview.wallpaper-phone{aspect-ratio:9/15;max-width:235px;margin-inline:auto}.wallpaper-preview-image,.wallpaper-preview-shade{background-position:50%;background-size:cover;position:absolute;inset:0}.wallpaper-preview-shade{z-index:1;background:linear-gradient(90deg,#0b121936,#0000 60%),linear-gradient(#0000 45%,#0c121adc)}.wallpaper-preview .character-figure{width:68%;height:95%;animation:none;bottom:0;left:50%;transform:translate(-24%)}.wallpaper-preview .scene-cutout>.portrait-surface{flex-shrink:0;width:auto;max-width:100%;height:100%}.wallpaper-preview .adaptive-portrait{width:46%;height:78%;bottom:5%}.wallpaper-preview .adaptive-artwork{width:65%}.wallpaper-preview .custom-upload-frame{width:100%;height:100%}.wallpaper-preview .character-aura{filter:blur(24px)}.wallpaper-preview-brand{z-index:3;font:18px var(--serif);color:#eee7dd;position:absolute;top:18px;left:20px}.wallpaper-preview-brand small{font:8px var(--sans);letter-spacing:.2em;margin-top:4px;display:block}.wallpaper-preview-caption{z-index:3;color:#fff;text-shadow:0 2px 10px #0008;position:absolute;bottom:24px;left:22px}.wallpaper-preview-caption small{color:#e1e3dc;font-size:10px;display:block}.wallpaper-preview-caption strong{font:27px var(--serif);margin:10px 0 6px;display:block}.wallpaper-preview-caption>span{font-size:11px}.wallpaper-phone .character-figure{width:115%;height:83%;bottom:7%;left:50%;transform:translate(-50%)}.wallpaper-phone .adaptive-portrait{width:75%;height:70%}.wallpaper-hint{font:12px/1.8 var(--sans);color:#a6b3b8;margin:14px 0}.wallpaper-file-input{display:none}.wallpaper-upload{text-align:left;color:#e4e8e6;cursor:pointer;background:#ffffff04;border:1px dashed #ffffff4a;border-radius:12px;grid-template-columns:38px 1fr;align-items:center;column-gap:12px;width:100%;padding:21px;display:grid}.wallpaper-upload>span{color:var(--scene-accent);grid-row:span 2;font-size:27px}.wallpaper-upload strong{font-size:15px;font-weight:500}.wallpaper-upload small{color:#adb6b9;margin-top:6px;font-size:11px}.wallpaper-controls fieldset{border:0;margin:26px 0 20px;padding:0}.wallpaper-controls legend{color:#d6dedf;margin-bottom:15px;font-size:14px}.wallpaper-controls label{color:#bdc9ce;margin-bottom:14px;font-size:12px;display:block}.wallpaper-controls output{float:right;color:var(--scene-accent)}.wallpaper-controls input[type=range]{width:100%;accent-color:var(--scene-accent);cursor:pointer;margin-top:8px;display:block}.wallpaper-controls fieldset:disabled{opacity:.38}.wallpaper-controls .wallpaper-character-toggle{cursor:pointer;border-bottom:1px solid #ffffff18;justify-content:space-between;align-items:center;gap:20px;margin:20px 0;padding:18px 0;display:flex}.wallpaper-character-toggle strong{color:#e4e8e6;font-size:14px;font-weight:500;display:block}.wallpaper-character-toggle small{color:#a6b3b8;margin-top:7px;font-size:12px;line-height:1.7;display:block}.wallpaper-character-toggle input{-webkit-appearance:none;appearance:none;cursor:pointer;background:#ffffff16;border:1px solid #ffffff35;border-radius:999px;flex:0 0 42px;width:42px;height:24px;margin:0;transition:background .15s}.wallpaper-character-toggle input:before{content:"";background:#e4e8e6;border-radius:50%;width:16px;height:16px;margin:3px;transition:transform .15s;display:block}.wallpaper-character-toggle input:checked{background:var(--scene-accent);border-color:var(--scene-accent)}.wallpaper-character-toggle input:checked:before{background:#171a1c;transform:translate(18px)}.wallpaper-character-toggle input:focus-visible{outline:2px solid var(--scene-accent);outline-offset:4px}.wallpaper-character-toggle input:disabled{opacity:.4;cursor:wait}.wallpaper-save{justify-content:flex-end;gap:10px;padding-top:6px;display:flex}.wallpaper-save button{min-width:100px;min-height:44px;font-size:14px}.wallpaper-reset{flex-wrap:wrap;justify-content:flex-end;gap:12px;margin-top:18px;display:flex}.wallpaper-reset button{color:#aab9bf;text-underline-offset:4px;cursor:pointer;background:0 0;border:0;padding:6px 0;font-size:12px;text-decoration:underline}.wallpaper-workspace button:disabled{opacity:.4;cursor:wait}.wallpaper-error{color:#ffb7b1;font-size:13px;line-height:1.7}.wallpaper-workspace button:focus-visible{outline:2px solid var(--scene-accent);outline-offset:4px}.scene-background.user-wallpaper{animation:none;inset:0;transform:none}.wallpaper-load-message{font-size:14px;line-height:1.8}@media (max-width:760px){.wallpaper-layout{grid-template-columns:1fr;gap:16px}.wallpaper-workspace h2{font-size:28px}.wallpaper-scope{gap:8px;margin-block:20px}.wallpaper-scope button{padding:12px;font-size:14px}.wallpaper-preview{max-width:420px;margin:auto}.wallpaper-preview.wallpaper-phone{max-width:180px}.wallpaper-preview-column{min-width:0}.wallpaper-save{z-index:5;background:#1d2226;padding:14px 0;position:sticky;bottom:-1px}.mobile-switcher{z-index:16;gap:6px;display:flex;position:fixed;bottom:89px;left:15px}.mobile-switcher button{-webkit-backdrop-filter:blur(13px);backdrop-filter:blur(13px);color:#ffffffba;background:#0f1213b8;border:1px solid #ffffff24;border-radius:999px;align-items:center;gap:5px;padding:6px 9px 6px 6px;font-size:10px;display:flex}.mobile-switcher span{color:#18201c;background:var(--scene-accent);width:23px;height:23px;font:500 10px var(--serif);border-radius:50%;place-items:center;display:grid}.quick-rail{display:none}}.character-audition{border:1px solid var(--line,#ffffff21);color:var(--ink,#ece7df);background:#1214168c;min-width:0;margin:24px 0;padding:22px}.character-audition-heading{justify-content:space-between;align-items:center;gap:16px;display:flex}.character-audition-tools{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.custom-builder>header p,.custom-builder .builder-summary p,.custom-builder .concept-builder>label,.custom-builder .builder-fields label,.custom-builder .builder-error{font-size:14px}.custom-builder textarea{font-size:16px}.drawer .custom-builder>header p{color:#b9b7b1;font-size:14px}.drawer .custom-builder :is(.source-mode-choice small,.concept-examples button,.character-count,.identity-visual-note span){font-size:12px}.character-audition .character-audition-eyebrow{color:var(--scene-accent,#b7a28c);letter-spacing:.12em;font-size:10px}.character-audition .character-audition-heading h3{font:500 23px/1.4 var(--serif,serif);overflow-wrap:anywhere;margin:8px 0 0}.character-audition .character-audition-restart,.character-audition .character-audition-send{border:1px solid var(--line,#ffffff21);min-height:40px;color:var(--ink,#ece7df);font:11px/1.5 var(--sans,sans-serif);cursor:pointer;background:0 0;border-radius:999px;padding:9px 16px}.character-audition .character-audition-restart{flex-shrink:0}.character-audition .character-audition-send{border-color:var(--scene-accent,#b7a28c);background:var(--scene-accent,#b7a28c);color:#141719}.character-audition button:disabled{opacity:.45;cursor:not-allowed}.character-audition button:not(:disabled):hover{filter:brightness(1.15)}.character-audition :is(button,textarea,.character-audition-log):focus-visible{outline:2px solid var(--scene-accent,#b7a28c);outline-offset:3px}.character-audition .character-audition-notice,.character-audition .character-audition-progress{color:var(--ink-soft,#ece7dfa3);font:11px/1.8 var(--sans,sans-serif);margin:12px 0 16px}.character-audition-log{overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#fff3 transparent;background:#080a0c59;border:1px solid #ffffff12;min-height:130px;max-height:min(540px,65svh);padding:18px;overflow:auto}.character-audition-message+.character-audition-message{margin-top:22px}.character-audition-speaker{color:var(--scene-accent,#b7a28c);font:11px/1.5 var(--sans,sans-serif);align-items:baseline;gap:9px;margin-bottom:8px;display:flex}.character-audition-speaker small{color:#ece7df7a;font-size:10px}.character-audition-message.user{border-left:1px solid #ffffff21;padding-left:18px}.character-audition-message.user .character-audition-speaker{color:var(--ink-soft,#ece7dfa3)}.character-audition-text{white-space:pre-wrap;overflow-wrap:anywhere;font:16px/1.95 var(--sans,sans-serif)}.character-audition .character-audition-empty,.character-audition .character-audition-waiting{color:var(--ink-soft,#ece7dfa3);font:12px/1.8 var(--sans,sans-serif);margin:16px 0}.character-audition-composer{margin-top:18px}.character-audition-composer>label{margin-bottom:8px;font-size:12px;display:block}.character-audition .character-audition-composer textarea{width:100%;min-height:100px;color:var(--ink,#ece7df);font:14px/1.8 var(--sans,sans-serif);resize:vertical;background:#080a0c59;border:1px solid #ffffff21;border-radius:3px;padding:13px;display:block}.character-audition-composer textarea::placeholder{color:#ece7df6b}.character-audition-composer textarea:disabled{opacity:.6}.character-audition-compose-actions{justify-content:space-between;align-items:center;gap:12px;margin-top:10px;display:flex}.character-audition-compose-actions>span{color:var(--ink-soft,#ece7dfa3);font-size:10px}.character-audition .character-audition-error,.character-audition .character-audition-limit{color:#e0aaa5;font:12px/1.7 var(--sans,sans-serif);overflow-wrap:anywhere;border:1px solid #e0aaa54d;margin:14px 0 0;padding:12px}.character-audition .character-audition-limit{border-color:var(--line,#ffffff21);color:var(--ink-soft,#ece7dfa3)}.character-audition .character-audition-progress{margin-bottom:0}.experience-settings{border:1px solid #ffffff21;margin:20px 0;padding:16px}.experience-settings summary{cursor:pointer;color:var(--scene-accent,#b7a28c);font-size:14px}.experience-settings>p{color:#ece7dfa6;font-size:12px;line-height:1.8}.experience-settings label{margin:18px 0;font-size:13px;display:block}.experience-settings textarea{resize:vertical;color:#ece7df;width:100%;font:14px/1.8 var(--sans,sans-serif);background:#131619;border:1px solid #ffffff26;margin-top:8px;padding:12px;display:block}.experience-settings textarea:focus-visible{outline:2px solid var(--scene-accent,#b7a28c)}.experience-settings textarea:disabled{opacity:.6}@media (max-width:600px){.custom-builder .builder-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.custom-builder .builder-actions button{white-space:normal;min-width:0;min-height:44px;padding:10px 12px}.custom-builder .builder-actions .primary-button{grid-column:1/-1}.character-audition-heading{flex-wrap:wrap}.character-audition{margin:20px 0;padding:15px}.character-audition-log{max-height:60svh;padding:14px}.character-audition .character-audition-heading h3{font-size:21px}.character-audition .character-audition-composer textarea{font-size:16px}.character-audition .character-audition-restart,.character-audition .character-audition-send{min-height:44px;padding-inline:13px}}.roleplay-text{white-space:normal;overflow-wrap:anywhere;min-width:0;font-size:1rem;line-height:1.95}.roleplay-text>:first-child{margin-top:0}.roleplay-text>:last-child{margin-bottom:0}.roleplay-text>p{white-space:pre-wrap;margin:0 0 1.15em}.roleplay-text.has-dialogue>p:not(.roleplay-heading){color:#b8b9b5}.roleplay-text blockquote{border-left:3px solid var(--scene-accent,#d4c598);color:#f0ece2;white-space:pre-wrap;margin:1.2em 0;padding:.2em 0 .2em 1em}.roleplay-text strong,.roleplay-text .roleplay-heading{color:#f0ece2;font-weight:650}.roleplay-text em{color:#c4bcab}.roleplay-text pre{white-space:pre-wrap;overflow-wrap:anywhere;font:.875rem/1.85 var(--sans,sans-serif);background:#00000026;border:1px solid #ffffff26;border-radius:6px;margin:1em 0;padding:.85em 1em}.roleplay-text code{font:inherit}.roleplay-text :is(ul,ol){margin:1em 0;padding-left:1.5em}.roleplay-text li{white-space:pre-wrap}.message.assistant>.roleplay-text{background:#fff1;border-radius:20px 20px 20px 4px;max-width:92%;padding:18px 20px}.message.assistant>.roleplay-text p{max-width:none;font:inherit;background:0 0;border:0;border-radius:0;padding:0}.message.assistant>.roleplay-text>p{margin:0 0 1.15em}.message.assistant>.roleplay-text>:last-child{margin-bottom:0}.reply-format-editor{background:#d4c59809;border:1px solid #d4c59852;min-width:0;margin:20px 0;padding:20px}.reply-format-editor h3{font:500 1.3rem/1.5 var(--serif,serif);margin:0}.reply-format-editor>p,.reply-format-editor small{color:#b8b9b5;font-size:.875rem;line-height:1.75}.reply-format-editor label{margin-top:16px;font-size:.875rem;display:block}.reply-format-editor :is(textarea,select){color:#ece7df;width:100%;min-width:0;font:1rem/1.7 var(--sans,sans-serif);background:#131619;border:1px solid #ffffff2e;margin-top:8px;padding:12px;display:block}.reply-format-editor textarea{resize:vertical}.reply-format-editor :is(button,textarea,select):focus-visible{outline:2px solid var(--scene-accent,#d4c598);outline-offset:3px}.reply-format-editor button{color:#e5d7ac;min-height:44px;font:inherit;cursor:pointer;background:0 0;border:1px solid #d4c59880;margin-top:12px;padding:10px 16px}.reply-format-editor button:disabled{opacity:.5;cursor:not-allowed}.reply-format-preview{background:#0003;border:1px solid #ffffff1a;margin-top:16px;padding:16px}.reply-format-editor .reply-format-current{border-left:3px solid var(--scene-accent,#d4c598);color:#ece7df;margin:14px 0 0;padding:10px 12px}.reply-format-caption{color:#b8b9b5;font:.875rem/1.7 var(--sans,sans-serif);margin:0 0 12px}.experience-opening{border:1px solid #ffffff26;min-width:0;margin:20px 0;padding:20px}.experience-opening h3{font:500 1.3rem/1.5 var(--serif,serif);margin:0 0 14px}.experience-opening p,.experience-opening small{color:#b8b9b5;font:.875rem/1.75 var(--sans,sans-serif)}.opening-choices{border:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 18px;padding:0;display:grid}.opening-choices legend{color:#b8b9b5;margin-bottom:8px;font-size:.875rem}.opening-choices label{cursor:pointer;border:1px solid #ffffff2e;align-items:flex-start;gap:10px;min-width:0;padding:12px;display:flex}.opening-choices label:has(input:checked){border-color:var(--scene-accent,#d4c598);background:#d4c59814}.opening-choices input{accent-color:#d4c598;flex:none;margin:5px 0 0}.opening-choices strong,.opening-choices small{overflow-wrap:anywhere;display:block}.opening-choices strong{font-size:1rem;line-height:1.6}.opening-draft{font-size:.875rem;display:block}.opening-draft textarea{resize:vertical;color:#ece7df;width:100%;min-width:0;font:1rem/1.8 var(--sans,sans-serif);background:#131619;border:1px solid #ffffff2e;margin:8px 0;padding:12px;display:block}.experience-opening :is(input,textarea):focus-visible{outline:2px solid var(--scene-accent,#d4c598);outline-offset:3px}@media (max-width:600px){.experience-opening{padding:15px}.opening-choices{grid-template-columns:1fr}}.chat-header .memory-shortcut{border:1px solid var(--line);min-height:40px;color:var(--ink);white-space:nowrap;background:0 0;border-radius:8px;padding:8px;font-size:.875rem}.chat-panel .chat-header{grid-template-columns:38px 48px minmax(0,1fr) auto 38px}.chat-header>div{overflow-wrap:anywhere;min-width:0}@media (max-width:600px){.reply-format-editor{padding:15px}.message.assistant>.roleplay-text{max-width:100%;padding:14px 16px}}.message-blocks{flex-direction:column;align-items:flex-start;gap:9px;min-width:0;max-width:100%;display:flex}.message-blocks>.message-part{color:#e3e3db;overflow-wrap:anywhere;background:#ffffff06;border:1px solid #ffffff06;border-radius:3px 16px 16px;width:fit-content;min-width:0;max-width:100%;padding:14px 18px}.message-blocks>.message-part .roleplay-text{font:1rem/1.85 var(--sans,sans-serif)}.message-blocks .roleplay-text p{max-width:none;font:inherit;background:0 0;border:0;border-radius:0;padding:0}.message-blocks>.message-status-panel{width:fit-content;min-width:0;max-width:100%;margin-top:3px}.message-blocks>.message-status-panel .roleplay-text pre{margin:0}.chat-panel[data-presentation=reading] .message-blocks{gap:14px}.chat-panel[data-presentation=reading] .message-blocks>.message-part{background:0 0;border:0;border-radius:0;padding:0}.chat-panel[data-presentation=reading] .message-blocks>.message-part .roleplay-text{font-size:1.0625rem;line-height:2}@media (max-width:600px){.message-blocks>.message-part{padding:12px 14px}}.reminder-manager ul{gap:12px;margin:20px 0 0;padding:0;list-style:none;display:grid}.reminder-manager li{background:#202423;border:1px solid #424641;border-radius:12px;justify-content:space-between;align-items:center;gap:16px;padding:18px;display:flex}.reminder-manager li>div{overflow-wrap:anywhere;min-width:0}.reminder-manager li p{white-space:pre-wrap;margin:8px 0;line-height:1.7}.reminder-manager time,.reminder-empty{color:#b5bcb4;font-size:.875rem}.reminder-manager button{color:#e1d8bd;cursor:pointer;background:#272d29;border:1px solid #666b60;border-radius:8px;flex-shrink:0;min-height:44px;padding:10px 16px}.reminder-manager button:hover:not(:disabled),.chat-display-toolbar .reminder-shortcut:hover{background:#343c35}.reminder-manager button:focus-visible{outline-offset:3px;outline:2px solid #d5c6a3}.chat-display-toolbar .reminder-shortcut:focus-visible{outline-offset:3px;outline:2px solid #d5c6a3}.reminder-manager button:disabled{opacity:.5}.reminder-manager [role=alert]{color:#f1bca4}.reminder-manager [role=status]{color:#d5c6a3}.chat-display-toolbar{flex-wrap:wrap}.chat-display-toolbar .reminder-shortcut{color:#bfc6bc;background:#202723;border:1px solid #41473f;border-radius:8px;min-height:36px;padding:7px 10px;font-size:.75rem}@media (max-width:480px){.reminder-manager li{flex-direction:column;align-items:stretch}.reminder-manager li button{align-self:flex-start}}.dialogue-source-review{border:1px solid var(--line,#3b4141);background:#ffffff06;min-width:0;margin:20px 0;padding:clamp(16px,3vw,26px)}.dialogue-source-review>header{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:12px;display:flex}.dialogue-source-review h3{margin:6px 0 10px;font-size:1.2rem}.dialogue-source-review p,.dialogue-source-review li{overflow-wrap:anywhere;line-height:1.7}.dialogue-source-review small,.dialogue-source-review header>span{color:#b8b9b4;font-size:.83rem;line-height:1.6}.dialogue-review-field{gap:8px;margin:20px 0;display:grid}.dialogue-review-field select,.dialogue-review-field textarea{color:#e9e5da;width:100%;min-width:0;font:inherit;background:#111516;border:1px solid #454b4a;padding:12px}.dialogue-review-field select{white-space:normal}.dialogue-review-field textarea{resize:vertical;line-height:1.6}.dialogue-review-check{align-items:flex-start;gap:10px;margin:18px 0 8px;font-size:.9rem;line-height:1.7;display:flex!important}.dialogue-review-check input{accent-color:#d4c79b;flex-shrink:0;height:18px;margin:4px 0 0;width:18px!important}.dialogue-review-error{color:#f2b6a9}.dialogue-review-result{color:#d5c79d}.dialogue-source-review details{margin:16px 0}.dialogue-source-review summary{cursor:pointer;line-height:1.7}.dialogue-source-review details ul{margin:12px 0;padding-left:22px}.dialogue-source-review blockquote{overflow-wrap:anywhere}.dialogue-source-review blockquote span{margin:8px 0;display:block}.drawer.drawer-create-character{width:min(960px,100%);height:100dvh;padding:0;overflow:hidden}.drawer .creation-workspace{--creation-gutter:clamp(20px, 4vw, 40px);grid-template-rows:auto minmax(0,1fr) auto;max-width:none;height:100%;margin:0;display:grid}.drawer .creation-header{padding:24px var(--creation-gutter) 18px;border-bottom:1px solid var(--line);margin:0;padding-right:80px;display:block}.drawer .creation-header h2{font:500 1.65rem/1.35 var(--serif);overflow-wrap:anywhere;margin:0 0 14px}.creation-steps{flex-wrap:wrap;gap:12px 28px;margin:0;padding:0;list-style:none;display:flex}.creation-steps li{color:#8e9396;align-items:center;gap:8px;font-size:.875rem;display:flex}.creation-steps li span{border:1px solid #54595c;border-radius:50%;place-items:center;width:24px;height:24px;font-size:.75rem;display:grid}.creation-steps li[aria-current]{color:#e6d7a7}.creation-steps li[aria-current] span{color:#17191c;background:#d8c99b;border-color:#d8c99b}.creation-content{overscroll-behavior:contain;scrollbar-gutter:stable;min-height:0;padding:24px var(--creation-gutter) 32px;overflow:auto}.character-creation-methods{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.character-creation-methods button{text-align:left;color:#ece7df;cursor:pointer;background:#202426;border:1px solid #404547;border-radius:8px;min-width:0;padding:18px 16px}.character-creation-methods strong{justify-content:space-between;align-items:center;gap:8px;font-size:1.125rem;font-weight:500;display:flex}.character-creation-methods i{font:500 .875rem var(--sans)}.character-creation-methods span{color:#bfc2bf;margin-top:9px;font-size:.875rem;line-height:1.65;display:block}.character-creation-methods button[aria-pressed=true]{background:#2c2e29;border-color:#d8c99b;box-shadow:inset 0 0 0 1px #d8c99b}.character-creation-methods button[aria-pressed=true] strong{color:#eadcaf}.creation-workspace :is(button,input,select,textarea,summary):focus-visible{outline-offset:3px;outline:2px solid #e5d3a1}.creation-workspace button:disabled{cursor:not-allowed;opacity:.45}.creation-policy{color:#c1bcae;margin:16px 0 28px;font-size:.875rem;line-height:1.8}.creation-workspace .builder-section{min-height:0}.creation-workspace .concept-builder>label{color:#eee9df;gap:10px;font-size:1rem;display:grid}.creation-field-hint{color:#afb4b4;font-size:.875rem;line-height:1.8}.creation-workspace .creation-main-field textarea{height:clamp(240px,30vh,360px);min-height:240px;font:1rem/1.85 var(--sans);background:#131719;border-color:#454b4e;border-radius:6px;margin-top:3px;padding:16px}.creation-workspace textarea::placeholder,.creation-workspace input::placeholder{color:#92999b}.creation-input-meta,.creation-footer-meta{color:#b2b6b3;flex-wrap:wrap;justify-content:space-between;gap:4px 16px;font-size:.75rem;line-height:1.6;display:flex}.creation-input-meta{margin:8px 0 24px}.creative-assistant{background:#202626;border:1px solid #454b48;border-radius:8px;margin:0 0 24px;padding:20px}.creative-heading{flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:6px 12px;display:flex}.creative-heading h3{color:#ece2c6;margin:0;font-size:1rem;font-weight:600}.creative-heading>span,.creative-cost{color:#afb7b3;font-size:.75rem;line-height:1.7}.creative-assistant p{color:#c4cbc5;margin:10px 0;font-size:.875rem;line-height:1.8}.creative-preferences{margin:16px 0}.creative-assistant summary{cursor:pointer;color:#e4dfce;font-size:.875rem;line-height:1.8}.creative-preferences summary span{color:#aeb6b0;margin-left:12px;font-size:.75rem}.creative-preferences fieldset{border:0;min-width:0;margin:0;padding:16px 0 0}.creative-preferences legend{color:#c8cec9;padding-top:16px;font-size:.875rem}.creative-features{grid-template-columns:1fr 1fr;gap:12px;display:grid}.creative-features label{color:#e2e4db;cursor:pointer;align-items:flex-start;gap:9px;font-size:.875rem;display:flex}.creative-features small{color:#adb8b0;margin-top:4px;font-size:.75rem;line-height:1.6;display:block}.creative-assistant input[type=checkbox]{-webkit-appearance:auto;appearance:auto;accent-color:#d8c99b;flex:none;width:18px;height:18px;margin:2px 0 0}.creative-wishes{color:#d3d9cf;gap:8px;margin-top:20px;font-size:.875rem;display:grid}.creative-assistant textarea{color:#e9ece1;resize:vertical;background:#161d1c;border:1px solid #555f57;border-radius:4px;width:100%;min-width:0;min-height:100px;padding:12px;font-size:1rem;line-height:1.8}.creative-assistant textarea::placeholder{color:#a1aba4}.creative-tools,.creative-review-actions{flex-wrap:wrap;gap:10px;margin:16px 0 10px;display:flex}.creative-assistant button,.creative-import{color:#e4d9b4;cursor:pointer;background:0 0;border:1px solid #757b69;border-radius:5px;min-height:42px;padding:10px 16px;font-size:.875rem;line-height:1.5}.creative-tools button:first-child,.creative-review-actions button:last-child:not(:first-child){color:#1c2421;background:#d8c99b;border-color:#d8c99b}.creative-assistant button:disabled{opacity:.5;cursor:not-allowed}.creative-import:has(input:disabled){opacity:.5;cursor:not-allowed}.creative-import{text-underline-offset:4px;border-color:#0000;align-items:center;text-decoration:underline;display:inline-flex;position:relative}.creative-import input{opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.creative-import:focus-within{outline-offset:2px;outline:2px solid #d8c99b}.creative-assistant .creative-progress,.creative-assistant .creative-notice{color:#e2d49f}.creative-assistant .creative-error{color:#ffb4a7}.creative-review{margin-top:20px;scroll-margin-top:18px}.creative-review h4{color:#e9dfc3;margin:0;font-size:1.1rem}.creative-review .creative-review-note{color:#ddd3b5}.creative-questions{color:#d4d9cc;background:#292f2d;border-left:2px solid #ab9e71;margin:16px 0;padding:14px;font-size:.875rem;line-height:1.8}.creative-questions ul{padding-left:22px}.creative-section{margin:20px 0}.creative-section-select{color:#dce0d3;align-items:flex-start;gap:9px;margin-bottom:8px;font-size:.875rem;display:flex}.creative-section textarea{min-height:160px}.creative-inspiration,.creative-revision{margin-top:18px}.creative-inspiration-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px;display:grid}.creative-inspiration-grid button{text-align:left}.creative-inspiration-grid strong{margin-bottom:6px;display:block}.creative-inspiration-grid span{color:#c4cbc5;font-size:.875rem;display:block}.creative-section{border-top:1px solid #434d43;padding-top:16px}.creative-section summary{overflow-wrap:anywhere;margin-bottom:10px}.creative-selection{border-top:1px solid #586053;padding-top:16px}.creative-merged pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:360px;font:inherit;color:#e9ece1;background:#161d1c;padding:14px;line-height:1.8;overflow:auto}.creative-assistant .creative-cost,.creative-heading>span,.creative-features small,.creative-preferences summary span{font-size:.875rem}.creative-help{border-top:1px solid #434d43;margin-top:16px;padding-top:14px}@media (max-width:600px){.creative-assistant{padding:16px}.creative-features,.creative-inspiration-grid{grid-template-columns:1fr}.creative-tools button{flex:auto}.creative-tools .creative-import{padding-left:0}}.creation-options{border-top:1px solid var(--line);padding:17px 0}.creation-options summary{cursor:pointer;color:#e3ded2;font-size:.875rem;line-height:1.8}.creation-options summary span{color:#aeb3b2;margin-left:12px;font-size:.75rem;display:inline-block}.creation-optional-fields{grid-template-columns:1fr 1fr;gap:16px;margin:18px 0;display:grid}.creation-optional-fields label,.creation-workspace .creation-target{color:#d0d2cb;gap:8px;font-size:.875rem;display:grid}.creation-workspace :is(.creation-optional-fields,.creation-target) :is(input,select){color:#ece7df;background:#191e21;border:1px solid #454b4e;border-radius:4px;width:100%;min-width:0;padding:12px;font-size:1rem}.creation-options>p,.creation-privacy,.creation-format-note{color:#aeb3b2;margin:10px 0 0;font-size:.875rem;line-height:1.8}.creation-examples{grid-template-columns:1fr 1fr;gap:8px;margin-top:16px;display:grid}.creation-examples button{color:#c4c8c4;text-align:left;cursor:pointer;background:#202426;border:1px solid #414749;padding:14px;font-size:.875rem;line-height:1.8}.creation-import{flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:20px;display:flex}.creation-import label{color:#dfd3ad;gap:10px;font-size:.875rem;display:grid}.creation-import input{color:#bac1c0;max-width:100%;font-size:.875rem}.creation-import input::file-selector-button{color:#e3dac1;cursor:pointer;background:#282d2d;border:1px solid #656558;border-radius:4px;padding:8px 12px}.creation-import>span{color:#b2b6b3;font-size:.75rem}.creation-privacy{margin-bottom:24px}.creation-workspace .dialogue-file-note{color:#d6c99f;font-size:.875rem;line-height:1.8}.creation-workspace .source-analysis-preview :is(p,small,i,blockquote,header>span){font-size:.875rem;line-height:1.8}.creation-preview-intro{color:#ccd0ca;font-size:1rem;line-height:1.8}.creation-workspace .builder-summary p{font-size:1rem}.creation-workspace :is(.adjust-character,.experience-settings label){font-size:.875rem}.creation-workspace .experience-settings textarea{font-size:1rem}.creation-footer{padding:14px var(--creation-gutter) max(18px, env(safe-area-inset-bottom));background:#202527;border-top:1px solid #484c49}.creation-workspace .builder-actions{background:0 0;border:0;justify-content:flex-end;align-items:stretch;gap:10px;margin:10px 0 0;padding:0;display:flex;position:static}.creation-workspace .builder-actions button{white-space:normal;border-radius:6px;flex:0 auto;min-width:110px;min-height:46px;padding:10px 24px;font-size:.875rem;line-height:1.5}.creation-workspace .builder-actions button:first-child{margin-right:auto}.creation-workspace .builder-actions .primary-button{color:#151b1d;background:#d8c99b;border-color:#d8c99b;min-width:160px}.creation-footer .builder-error{max-height:5rem;margin:0 0 10px;font-size:.875rem;line-height:1.6;overflow:auto}.creation-workspace .character-audition :is(.character-audition-notice,.character-audition-progress,.character-audition-restart,.character-audition-send,.character-audition-composer>label){font-size:.875rem}.creation-workspace .character-audition :is(.character-audition-eyebrow,.character-audition-speaker,.character-audition-speaker small,.character-audition-compose-actions>span){font-size:.75rem}.creation-workspace .character-audition-log{max-height:min(450px,48dvh)}.drawer-characters .custom-character-entry small{font-size:.875rem}.drawer-characters .custom-character-entry :is(span,b){font-size:.75rem}@media (max-width:600px){.drawer .creation-header{padding-top:20px;padding-bottom:16px}.drawer .creation-header h2{font-size:1.4rem}.creation-content{padding-top:18px}.character-creation-methods{grid-template-columns:1fr;gap:8px}.character-creation-methods button{padding:12px 14px}.character-creation-methods strong{font-size:1rem}.character-creation-methods span{margin-top:4px}.creation-policy{margin:14px 0 22px}.creation-optional-fields,.creation-examples{grid-template-columns:1fr}.creation-workspace .builder-actions{flex-wrap:wrap;gap:8px;display:flex}.creation-workspace .builder-actions button{flex:1 1 0;min-width:0;padding:10px 8px}.creation-workspace .builder-actions .primary-button{flex:1.25 1 0;min-width:0}.creation-workspace .builder-actions button:first-child{margin-right:0}.creation-footer{padding-top:12px;padding-bottom:max(14px, env(safe-area-inset-bottom))}.creation-footer-meta{font-size:.75rem}}.character-workspace [hidden]{display:none!important}.character-workspace>h2{margin:16px 0 8px;font-size:clamp(26px,3vw,36px)}.character-workspace>.drawer-intro{margin-bottom:20px;font-size:14px;line-height:1.7}.character-editor-tabs,.image-source-choice,.appearance-filters{flex-wrap:wrap;gap:8px;display:flex}.character-editor-tabs{border-bottom:1px solid #ffffff25;margin-bottom:20px;padding-bottom:12px}.character-editor-tabs button{color:#d8dfdf;background:0 0;border:1px solid #ffffff35;border-radius:8px;padding:12px 20px;font-size:16px}.character-editor-tabs [aria-selected=true]{color:#15191b;background:var(--scene-accent)}.character-workspace .appearance-preset-grid{overscroll-behavior:contain;gap:8px;max-height:330px;margin:12px 0;padding:4px;display:grid;overflow:auto}.character-workspace .appearance-preset-grid button{background:#24282b;border:1px solid #ffffff25}.character-workspace .appearance-preset-grid button[aria-pressed=true]{border:2px solid var(--scene-accent);color:#fff;background:#303839}.character-workspace .appearance-preset-grid img{object-fit:contain;object-position:center top;width:100%;height:145px;display:block}.character-workspace .appearance-preset-grid span{margin-top:8px;display:block}.character-save-bar{z-index:8;background:#202629;border:1px solid #ffffff36;justify-content:space-between;align-items:center;gap:16px;margin-top:20px;padding:16px;display:flex;position:sticky;bottom:-1px;box-shadow:0 -8px 30px #0005}.character-save-bar b,.character-save-bar small{display:block}.character-save-bar b{font:16px/1.5 var(--sans);color:#edf0ef}.character-save-bar small{font:13px/1.6 var(--sans);color:#b6c1c4}.character-save-bar .primary-button{white-space:nowrap;min-width:116px;min-height:46px;padding:12px 20px;font-size:16px}.character-workspace .character-version-history{margin-top:24px}.character-workspace .image-tone-option{align-items:center;display:flex}.character-workspace .image-tone-option input{width:18px;accent-color:var(--scene-accent);height:18px!important}.portrait-soft-tone{filter:saturate(.9)brightness(.96)}.portrait-surface{isolation:isolate;width:100%;display:block;position:relative;overflow:hidden}.portrait-surface>img,.character-figure .portrait-surface>img,.about-drawer>header .portrait-surface>img{object-fit:fill;object-position:center;filter:none;pointer-events:none;-webkit-user-select:none;user-select:none;border-radius:0;max-width:none;max-height:none;position:absolute;inset:auto;transform:none;-webkit-mask-image:none;mask-image:none}.portrait-load-error{color:#d2d8da;min-height:140px;font:14px/1.6 var(--sans);background:#22272b;place-items:center;padding:20px;display:grid}.adaptive-character-figure{justify-content:center;align-items:center;display:flex}.scene-cutout{justify-content:center;align-items:flex-end;display:flex}.scene-cutout>.portrait-surface{width:min(100%,75svh - 116.25px);box-shadow:none;background:0 0;border:0;border-radius:0;-webkit-mask-image:linear-gradient(#000 0% 80%,#000000f0 90%,#0000 100%);mask-image:linear-gradient(#000 0% 80%,#000000f0 90%,#0000 100%)}.character-figure.scene-cutout .portrait-surface>img{filter:drop-shadow(0 28px 45px #00000085)saturate(.88)contrast(.98)}.adaptive-character-figure>.portrait-surface{border-radius:18px;width:min(100%,75svh - 97.5px);box-shadow:0 24px 64px #0004}.adaptive-character-figure.adaptive-cutout>.portrait-surface{box-shadow:none;border-radius:0;-webkit-mask-image:linear-gradient(#000 90%,#0000);mask-image:linear-gradient(#000 90%,#0000)}.adaptive-character-figure.adaptive-portrait{width:min(34vw,460px);left:56%}.adaptive-character-figure.adaptive-artwork{width:min(44vw,620px);left:48%}.adaptive-character-figure.adaptive-artwork>.portrait-surface{width:100%}.adaptive-avatar{background:#24292c;border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;width:48px;height:54px;display:inline-flex;overflow:hidden}.adaptive-avatar .portrait-surface{flex-shrink:0;width:auto;height:100%;max-height:100%}.adaptive-avatar .portrait-artwork{width:100%;height:auto}.character-grid article>.adaptive-avatar{border-radius:0;width:100%;height:100%;min-height:240px}.character-grid article>.adaptive-avatar .portrait-surface{width:100%;height:auto;max-height:none}.adaptive-about{align-self:center;min-width:0;padding:16px}.adaptive-about .portrait-surface{border-radius:12px}.portrait-editor-v2.character-image-editor{grid-template-columns:minmax(240px,1fr) minmax(300px,1fr);align-items:start;gap:28px}.portrait-editor-v2 .composition-column{min-width:0;display:block;position:sticky;top:10px}.portrait-editor-v2 .composition-preview-tools{flex-wrap:wrap;gap:6px;margin:0 0 12px;display:flex}.portrait-editor-v2 button,.portrait-editor-v2 .image-file-picker{min-height:42px;padding:10px 12px;font-size:14px;line-height:1.35}.portrait-editor-v2 button[aria-pressed=true]{color:#15191b;background:var(--scene-accent);border-color:var(--scene-accent)}.portrait-editor-v2 p,.portrait-editor-v2 .composition-help{font:14px/1.7 var(--sans);color:#b2bbbf}.portrait-editor-v2 .composition-scene{aspect-ratio:16/10;background-position:50%;background-size:cover;border-radius:12px;width:100%;margin:0;display:block;position:relative;overflow:hidden;box-shadow:inset 0 -40px 60px #0005}.portrait-editor-v2 .preview-phone{aspect-ratio:9/15;width:65%;max-width:300px;margin-inline:auto}.composition-subject{width:40%;position:absolute;bottom:9%;left:48%}.composition-subject.composition-artwork{width:62%;bottom:24%;left:30%}.composition-subject.composition-cutout{width:42%;bottom:6%;left:42%}.portrait-editor-v2 .preview-phone .composition-subject{width:75%;bottom:15%;left:18%}.portrait-editor-v2 .preview-phone .composition-artwork{width:90%;bottom:30%;left:5%}.portrait-editor-v2 .image-crop-preview{touch-action:none;background:0 0;border:0;border-radius:12px;width:100%;height:auto;min-height:0;padding:0;display:block;position:relative;overflow:hidden}.portrait-editor-v2 .image-crop-preview:focus-visible{outline:3px solid var(--scene-accent);outline-offset:3px}.portrait-editor-v2 .image-crop-preview.image-crop-cutout{border-radius:0}.portrait-editor-v2 .image-crop-preview.image-crop-artwork{aspect-ratio:4/3}.portrait-editor-v2 .image-crop-preview.image-crop-immersive,.portrait-editor-v2 .image-crop-preview.image-crop-full{aspect-ratio:190/230;background:#151719;border-radius:40% 60% 44% 56%}.portrait-editor-v2 .image-crop-preview .portrait-surface>img{filter:none;inset:auto;transform:none}.composition-chat-reference{pointer-events:none;background:#141619ed;border-left:1px solid #ffffff26;justify-content:center;align-items:center;width:37%;display:flex;position:absolute;inset:0 0 0 auto}.composition-chat-reference span{color:#cad0d4;writing-mode:vertical-rl;letter-spacing:.2em;font-size:12px}.preview-phone .composition-chat-reference{border-radius:16px 16px 0 0;width:100%;height:72%;inset:auto 0 0}.preview-phone .composition-chat-reference span{writing-mode:horizontal-tb}.portrait-editor-v2 .composition-avatar-reference{color:#bbc4c8;align-items:center;gap:12px;margin-top:12px;font-size:14px;display:flex}.portrait-editor-v2 .composition-avatar-reference>img{object-fit:cover;width:48px;height:54px}.portrait-editor-v2 .image-presentation-controls{grid-template-columns:1fr;gap:14px!important;display:grid!important}.portrait-editor-v2 .image-presentation-controls label{color:#c9d1d4;gap:8px;font-size:14px}.portrait-editor-v2 .image-presentation-controls input{cursor:pointer;height:26px}.portrait-editor-v2 .image-mode-choice{flex-wrap:wrap;grid-column:auto;display:flex}.portrait-editor-v2 .image-mode-choice button{flex:1 0 90px}.portrait-editor-v2 details{border-top:1px solid #ffffff1f;margin-top:18px;padding-top:14px}.portrait-editor-v2 summary{color:#d2dadd;cursor:pointer;padding:8px 0;font-size:14px;line-height:1.5}.portrait-editor-v2 .appearance-preset-groups{margin-top:12px!important}.portrait-editor-v2 .appearance-preset-groups>section>strong{font-size:13px}.portrait-editor-v2 .appearance-preset-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.portrait-editor-v2 .appearance-preset-grid button{min-width:0;padding:0 0 8px}.portrait-editor-v2 .appearance-preset-grid span{font-size:12px}.portrait-editor-v2 .image-upload-success{color:#beddb6}.portrait-editor-v2 .builder-error{color:#ffb7b1}@keyframes focus-breathe{0%,to{translate:0}50%{translate:0 -3px}}@media (max-width:1000px){.portrait-editor-v2.character-image-editor{grid-template-columns:1fr}.portrait-editor-v2 .composition-column{position:static}.portrait-editor-v2 .composition-scene{max-width:600px}.character-workspace .composition-scene{max-width:440px;max-height:260px;margin:auto}.character-workspace .preview-phone{max-width:150px}.character-workspace .composition-avatar-reference{display:none}.character-workspace .composition-help{font-size:13px}}@media (max-width:760px){.scene-cutout>.portrait-surface{width:min(100%,53.25svh)}.adaptive-character-figure.adaptive-portrait{width:70vw;left:50%}.adaptive-character-figure.adaptive-artwork{width:82vw;left:42%}.adaptive-character-figure.adaptive-cutout{width:86vw;left:50%}.adaptive-character-figure>.portrait-surface{width:min(100%,50svh);max-width:100%}.adaptive-character-figure.adaptive-artwork>.portrait-surface{width:100%}.portrait-editor-v2.character-image-editor{gap:18px;padding:16px}.portrait-editor-v2 .preview-phone{width:68%}.portrait-editor-v2 .appearance-preset-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.lingwu-shell.chat-open{--chat-width:clamp(600px, 60vw, 860px)}.lingwu-shell .chat-panel{width:var(--chat-width);-webkit-backdrop-filter:none;backdrop-filter:none;background:#171a1b;border-left:1px solid #ffffff14;grid-template-rows:auto auto minmax(0,1fr) auto auto;min-width:0;height:100dvh;min-height:0;inset:0 0 auto auto;box-shadow:-16px 0 60px #0003}.chat-open .topbar{right:var(--chat-width);padding-inline:28px}.chat-open .top-actions,.chat-open .companion-card,.chat-open .quick-rail,.chat-open .mobile-switcher,.chat-open .compliance-corner{display:none}.chat-open .scene-stage{width:calc(100% - var(--chat-width))}.chat-open .scene-copy{width:calc(100% - 56px);top:15%;left:28px}.chat-open .scene-copy h1{font-size:clamp(36px,4vw,64px)}.chat-open .stage-buttons{flex-wrap:wrap;display:flex}.chat-open .character-figure{width:100%;left:50%;transform:translate(-50%)}.chat-open .sound-dock{left:calc((100% - var(--chat-width)) / 2);width:calc(100% - var(--chat-width) - 40px);grid-template-columns:44px minmax(0,1fr) 90px;padding:12px}.chat-open .sound-wave,.chat-open .timer-menu{display:none}.chat-open .volume-control{width:90px}.chat-open .sound-meta{min-width:0}.chat-open .sound-meta strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.lingwu-shell .chat-panel .chat-header{background-position:50% 42%;background-size:cover;border-bottom:0;grid-template-columns:40px 44px minmax(0,1fr) auto 40px;gap:12px;height:auto;min-height:78px;padding:14px 24px}.chat-panel .chat-header>:is(img,.adaptive-avatar,.character-symbol-avatar,.character-identity-avatar){border-radius:13px;width:44px;height:48px}.chat-panel .chat-header strong{font:600 1rem/1.5 var(--sans);overflow-wrap:anywhere}.chat-panel .chat-header small{color:#b2b5b2;font-size:.75rem;line-height:1.5}.chat-panel .chat-header .round-button{background:0 0;width:40px;height:40px}.chat-panel .chat-header .memory-shortcut{color:#d5cbb0;border-color:#d5cbb030;padding:8px 12px;font-size:.8125rem}.chat-display-toolbar{border-bottom:1px solid #ffffff0e;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:0 24px 14px;display:flex}.chat-display-toolbar button{cursor:pointer}.chat-latest{color:#d5c6a3;background:0 0;border:0;min-height:36px;margin-left:auto;padding:6px 8px;font-size:.75rem}.chat-scene-chip{color:#b9beb9;background:0 0;border:0;align-items:center;gap:7px;min-width:0;max-width:48%;min-height:36px;padding:4px 6px;font-size:.75rem;display:flex}.chat-scene-chip img{object-fit:cover;border-radius:50%;flex-shrink:0;width:20px;height:20px}.chat-scene-chip span:first-of-type{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chat-display-options{background:#ffffff03;border:1px solid #ffffff10;border-radius:9px;gap:3px;padding:3px;display:flex}.chat-display-options button{color:#a9adaa;background:0 0;border:0;border-radius:6px;min-height:32px;padding:4px 12px;font-size:.75rem;line-height:1.5}.chat-display-options button[aria-pressed=true]{color:#e1d3b0;background:#d5c6a322;box-shadow:0 1px 4px #0002}.chat-panel .chat-messages{overscroll-behavior:contain;overflow-anchor:none;scrollbar-width:thin;scrollbar-color:#68706b70 transparent;min-width:0;min-height:0;padding:24px 32px 16px}.chat-thread{width:100%;max-width:720px;margin-inline:auto}.chat-history-controls{color:#b9beb9;text-align:center;flex-direction:column;align-items:center;gap:8px;font-size:.8125rem;line-height:1.6;display:flex}.chat-history-controls:not(:empty){margin-bottom:20px}.chat-history-controls.chat-history-notice{flex-basis:100%;margin:4px 0 0}.chat-history-controls>div{flex-wrap:wrap;justify-content:center;align-items:center;gap:8px 12px;display:flex}.chat-history-controls button{color:#dfd3b5;min-height:36px;font:inherit;cursor:pointer;background:#ffffff04;border:1px solid #d5c6a333;border-radius:8px;padding:6px 12px}.chat-history-controls button:disabled{cursor:wait;opacity:.6}.chat-panel .message{overflow-wrap:anywhere;min-width:0;max-width:88%;margin:0 0 26px}.chat-panel .message>small{color:#b3b8b2;gap:8px;margin:0 0 9px 2px;font-size:.75rem;line-height:1.5}.chat-panel .ai-generated{color:#a8ada7;border-color:#ffffff18;padding:1px 5px;font-size:.625rem}.chat-panel .message>p,.chat-panel .message.assistant>.roleplay-text{color:#e3e3db;width:fit-content;max-width:100%;font:1rem/1.85 var(--sans);overflow-wrap:anywhere;background:#ffffff06;border:1px solid #ffffff06;border-radius:3px 16px 16px;padding:14px 18px}.chat-panel .message.assistant>.roleplay-text p{font:inherit;background:0 0;border:0;padding:0}.chat-panel .roleplay-text.has-dialogue>p:not(.roleplay-heading){color:#c4c7c0}.chat-panel .roleplay-text blockquote{color:#f0e8d9;border-color:#baac8266;border-left-width:2px;padding-left:1em}.chat-panel .roleplay-text strong{color:#eee7d7}.chat-panel .roleplay-text pre{color:#c9cbbf;background:#ffffff04;border-color:#ffffff12;border-radius:10px;font-size:.875rem}.chat-panel .message.user{width:fit-content;max-width:80%;margin-left:auto}.chat-panel .message.user>p{color:#eee5cf;background:#39392f;border-color:#d5c6a31a;border-radius:16px 3px 16px 16px}.chat-panel[data-presentation=reading] .message.assistant{max-width:100%;margin-bottom:34px}.chat-panel[data-presentation=reading] .message.assistant>:is(p,.roleplay-text){background:0 0;border:0;border-radius:0;width:100%;padding:0;font-size:1.0625rem;line-height:2}.chat-panel[data-presentation=reading] .message.assistant>small{margin-bottom:16px}.chat-panel[data-presentation=reading] .message.user{margin-block:12px 32px}.chat-panel .message-feedback{opacity:.7;max-width:100%;margin:6px 0 0}.chat-panel .message-feedback .message-feedback-trigger{color:#b4bab4;min-width:36px;min-height:32px;font-size:1rem}.chat-panel .message-feedback-menu{width:min(220px,100%);min-width:160px;box-shadow:none;background:#232728;border-radius:10px;margin-top:4px;padding:6px;position:static}.chat-panel .message-feedback-menu button{white-space:normal;color:#d0d4ce;min-height:40px;font-size:.8125rem}.chat-panel .feedback-reasons{border-radius:10px;margin-left:0}.chat-panel .feedback-reasons span,.chat-panel .feedback-teach label{color:#c7cbc4;font-size:.875rem}.chat-panel .feedback-reasons button{color:#c7cbc4;min-height:36px;font-size:.8125rem}.chat-panel .feedback-teach{border-radius:10px;margin-left:0}.chat-panel .feedback-teach textarea{font-size:1rem}.chat-panel .feedback-teach select,.chat-panel .feedback-teach input{color:#ecece5;width:100%;min-height:42px;font:inherit;background:#15191a;border:1px solid #4b514c;border-radius:6px;padding:8px 10px}.chat-panel .feedback-teach :is(select,input,textarea):focus-visible{outline:2px solid var(--scene-accent);outline-offset:2px}.chat-panel .feedback-teach small{color:#a7ada6;font-size:.75rem}.chat-panel .feedback-teach button{min-height:40px;font-size:.8125rem}.chat-panel .composer{background:#202425;border-color:#ffffff17;border-radius:16px;grid-template-columns:40px minmax(0,1fr) 40px;gap:10px;min-width:0;margin:8px 24px;padding:8px}.chat-panel .composer:focus-within{border-color:#d5c6a366}.chat-panel .composer textarea{min-height:44px;max-height:144px;font:1rem/1.65 var(--sans);padding:9px 0}.chat-panel .composer textarea::placeholder{color:#a1a79f}.chat-panel .composer button{width:40px;height:40px}.chat-panel .composer .send{background:#d5c6a3;border-radius:12px}.chat-panel .composer button:disabled{opacity:.45}.chat-panel .ai-note{padding:0 20px max(12px, env(safe-area-inset-bottom));color:#969e96;flex-wrap:wrap;gap:4px 10px;font-size:.6875rem;line-height:1.6}.chat-panel .ai-note button{color:#b5bcb4;font-size:inherit}.chat-panel :is(button,textarea):focus-visible{outline-offset:3px;outline:2px solid #d5c6a3}.chat-panel .opening-message{color:#b0b8ad;margin:12% auto 30px}.chat-panel .opening-message p{font-size:1rem}.chat-panel .opening-message strong{color:#d4d9ce;font-size:1rem}.portrait-editor-v2 .composition-chat-reference{width:60%}.portrait-editor-v2 .preview-phone .composition-chat-reference{border-radius:0;width:100%;height:100%;inset:0}.portrait-editor-v2 .preview-phone .composition-chat-reference span{text-align:center;padding:12px;line-height:1.8}@media (prefers-reduced-motion:reduce){.chat-panel,.chat-panel *{transition:none!important}}@media (max-width:1100px){.lingwu-shell.chat-open{--chat-width:100%}.lingwu-shell .chat-panel{border:0;border-radius:0;width:100%;height:100dvh;animation:none;inset:0}.lingwu-shell .chat-panel:before{display:none}.chat-open>:is(.topbar,.scene-stage,.sound-dock){visibility:hidden;pointer-events:none}.chat-panel .chat-thread{max-width:700px}}@media (max-width:600px){.lingwu-shell .chat-panel .chat-header{min-height:72px;padding:max(12px, env(safe-area-inset-top)) 12px 10px;grid-template-columns:36px 40px minmax(0,1fr) auto 36px;gap:8px}.chat-panel .chat-header>:is(img,.adaptive-avatar,.character-symbol-avatar,.character-identity-avatar){width:40px;height:44px}.chat-panel .chat-header .round-button{width:36px;height:40px}.chat-panel .chat-header .memory-shortcut{padding:8px}.chat-display-toolbar{padding:0 14px 10px}.chat-display-options button{padding-inline:10px}.chat-panel .chat-messages{padding:22px 20px 12px}.chat-panel .message{max-width:94%}.chat-panel .message.user{max-width:88%}.chat-panel .message>p,.chat-panel .message.assistant>.roleplay-text{padding:12px 14px}.chat-panel[data-presentation=reading] .message.assistant>:is(p,.roleplay-text){padding:0}.chat-panel .composer{gap:6px;margin:6px 12px 8px}}@media (max-width:360px){.lingwu-shell .chat-panel .chat-header{grid-template-columns:32px minmax(0,1fr) auto 32px;gap:6px}.chat-panel .chat-header>:is(img,.adaptive-avatar,.character-symbol-avatar,.character-identity-avatar){display:none}.chat-panel .chat-header .round-button{width:32px}.chat-panel .chat-messages{padding-inline:16px}}@media (max-height:500px){.lingwu-shell .chat-panel .chat-header{min-height:56px;padding-block:6px}.chat-panel .chat-header small{display:none}.chat-display-toolbar{padding-bottom:6px}.chat-panel .composer textarea{max-height:72px}.chat-panel .ai-note{padding-bottom:4px}}
