.generation-action-state[data-generating=true]{isolation:isolate;cursor:pointer;white-space:nowrap;flex-shrink:0;position:relative;overflow:hidden;color:#15171c!important;opacity:1!important;background:#fff!important;min-width:80px!important}.generation-action-state[data-generating=true]:after{content:"";z-index:-1;pointer-events:none;will-change:transform;background:linear-gradient(110deg,#0000,#15171c29,#0000);width:55%;animation:1.8s linear infinite generation-button-sweep;position:absolute;inset:0 auto 0 0;transform:translate(-200%)}@keyframes generation-button-sweep{0%{transform:translate(-200%)}to{transform:translate(300%)}}@media (prefers-reduced-motion:reduce){.generation-action-state[data-generating=true]:after{opacity:0;animation:none}}.character-library-content.voice-content{padding:0;display:flex;overflow:hidden}.character-voices{flex-direction:column;width:100%;min-height:0;display:flex;position:relative}.character-voice-filters{z-index:1;min-height:60px;position:absolute;top:0;left:0}.character-voice-layout{flex:1;grid-template-columns:minmax(0,1fr) 352px;gap:36px;min-height:0;padding:8px 42px 20px;display:grid}.character-voice-main{flex-direction:column;justify-content:flex-start;align-items:center;gap:22px;min-width:0;padding-top:88px;display:flex;overflow:auto}.character-voice-main h2{text-align:center;margin:0;font-size:18px;font-weight:500}.character-voice-picture,.character-voice-main>.character-import-placeholder{object-fit:cover;border-radius:20px;flex-shrink:0;width:254px;max-width:100%;height:284px}.character-voice-main>.character-import-placeholder{background:var(--ui-surface-raised);border:1px solid var(--ui-border);padding:0;position:relative}.character-voice-main>.character-import-placeholder>span{text-align:center;color:var(--ui-text-muted,#93969e);font-size:12px;font-weight:400;line-height:18px;position:absolute;bottom:20px;left:12px;right:12px}.character-voice-picture{position:relative}.character-voice-portrait{object-fit:cover;border-radius:inherit;width:100%;height:100%}.character-voice-picture-actions{justify-content:center;gap:6px;display:flex;position:absolute;bottom:10px;left:8px;right:8px}.voice-reference-workspace .character-voice-picture-actions button{background:var(--ui-surface-menu);color:#eee;border:1px solid var(--ui-border-hover);white-space:nowrap;gap:5px;padding:7px 9px;font-size:12px}.voice-reference-workspace .character-voice-picture-actions button:hover{background:var(--ui-hover)}.character-voice-picture-actions svg{width:14px;height:14px}.character-voices-panel{flex-direction:column;min-width:0;min-height:0;display:flex;overflow:hidden}.character-voice-controls{background:var(--ui-surface-menu);flex-shrink:0}.character-voice-controls>nav{border-bottom:1px solid var(--ui-border);gap:6px;height:43px;margin-bottom:14px;display:flex}.character-voice-controls>nav button{color:#999;background:0 0;border-radius:0;gap:8px;padding:9px 10px;font-size:14px;font-weight:400}.character-voice-controls>nav button[aria-pressed=true]{color:#eee;background-color:var(--ui-selected)}.character-voice-controls svg{flex:none;width:18px;height:18px;display:block}.character-voice-scroll{overscroll-behavior:contain;scrollbar-width:thin;outline:none;flex:1;min-height:0;padding-bottom:12px;overflow:auto}.character-voice-list{flex-direction:column;gap:8px;display:flex}.character-voice-list>div{background:var(--ui-surface-panel);border:1px solid #0000;border-radius:10px;align-items:center;gap:2px;min-height:58px;padding:6px 4px;display:flex}.character-voice-list>div.selected{background:var(--ui-selected);border-color:var(--ui-border-hover)}.character-voice-list .character-voice-choice{text-align:left;background:0 0;flex:1;justify-content:flex-start;align-items:center;gap:10px;min-width:0;padding:0;display:flex}.character-voice-symbol{background:var(--ui-surface-raised);border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;width:42px;height:46px;display:flex}.character-voice-label{overflow-wrap:anywhere;min-width:0;font-size:13px;font-weight:400}.character-voice-list small{color:#999;margin-top:3px;font-size:11px;line-height:1.5;display:block}.character-voice-list .character-voice-action{background:0 0;flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;min-height:32px;padding:0;display:inline-flex}.character-voice-action svg{flex-shrink:0;width:18px;height:18px;display:block}.character-voice-footer>label{justify-self:start;align-items:center;gap:8px;margin-right:auto;font-size:12px;display:flex}.voice-reference-workspace .character-voice-footer input,.voice-reference-workspace .character-voice-consent>input{appearance:none;border:1px solid var(--ui-border-hover);background:var(--ui-surface-input);box-sizing:border-box;border-radius:4px;flex-shrink:0;place-content:center;width:18px;min-width:18px;height:18px;min-height:18px;margin:0;padding:0;display:grid}.voice-reference-workspace .character-voice-footer input:checked,.voice-reference-workspace .character-voice-consent>input:checked{border-color:var(--ui-border-hover);color:#222;background:#f7f7f7}.voice-reference-workspace .character-voice-footer input:checked:after,.voice-reference-workspace .character-voice-consent>input:checked:after{content:"";border-bottom:1.6px solid;border-right:1.6px solid;width:4px;height:8px;display:block;transform:translateY(-1px)rotate(45deg)}.voice-reference-workspace .character-voice-footer input:disabled{opacity:.4}.character-voice-preview{background:var(--ui-surface-panel);color:#bbb;border-radius:12px;margin-bottom:12px;padding:10px 12px;font-size:12px}.character-voice-preview>div{justify-content:space-between;align-items:center;gap:8px;margin-top:6px;display:flex}.character-voice-preview button{background:var(--ui-surface-raised);padding:6px 10px}.character-voices-panel .character-status{padding:8px 0}.character-voice-load-error{color:#d6b28d;align-items:center;gap:8px;margin-bottom:12px;font-size:12px;display:flex}.character-voice-load-error p{flex:1;margin:0}.character-voice-load-error button{padding:5px 10px}.character-voice-create-tabs{background:var(--ui-surface-input);border:1px solid var(--ui-border);border-radius:12px;flex-shrink:0;gap:4px;height:42px;margin-bottom:18px;padding:3px;display:flex}.character-voice-create-tabs>button{color:#eee;background:0 0;border:0;border-radius:9px;flex:1;min-height:34px;padding:6px;font-size:14px;font-weight:400}.character-voice-create-tabs>button[aria-pressed=true]{background:var(--ui-selected);color:#fff}.voice-form-field{flex-direction:column;gap:6px;min-width:0;display:flex}.voice-form-field>label,.voice-recording-field>label:first-child{color:#ddd;font-size:11px;font-weight:400;line-height:16px}.voice-choice-field{margin-bottom:24px}.voice-reference-workspace .voice-workflow-picker{border:1px solid var(--ui-border);background:var(--ui-surface-raised);border-radius:10px;justify-content:flex-start;align-items:center;gap:8px;width:100%;height:38px;min-height:38px;padding:8px 12px;font-size:12px;font-weight:400;display:flex!important}.voice-workflow-picker>span{text-overflow:ellipsis;white-space:nowrap;text-align:left;flex:1;min-width:0;overflow:hidden}.voice-workflow-picker>svg{flex:none;width:16px;height:16px}.voice-workflow-picker>.select-chevron{margin-left:auto}.voice-state{color:#d2b475;align-items:center;gap:5px;margin-top:2px;font-size:11px;line-height:16px;display:flex}.voice-state>svg{width:14px;height:14px}.voice-reference-workspace .character-prompt-editor{gap:8px;margin:0 0 16px}.voice-reference-workspace .character-prompt-heading{flex-wrap:nowrap;gap:8px;min-height:30px}.voice-reference-workspace .character-prompt-heading>label{color:#bbb;font-size:11px;font-weight:400;line-height:16px}.voice-reference-workspace .character-prompt-actions{--canvas-icon-primary-size:30px;--canvas-icon-size:14px;--canvas-icon-primary-radius:7px;flex-wrap:nowrap;gap:6px;margin-left:auto}.voice-reference-workspace .character-prompt-actions .canvas-generation-action{border-radius:7px;gap:5px;height:30px;min-height:30px;padding:5px 8px;font-size:11px;font-weight:600}.voice-reference-workspace .character-prompt-actions .canvas-generation-action svg{width:14px;height:14px}.voice-reference-workspace .character-prompt-actions .script-model-anchor>button:not(.model-picker-trigger){background:var(--ui-surface-raised);border:1px solid var(--ui-border);border-radius:7px;width:30px;height:30px;min-height:30px;padding:6px}.voice-reference-workspace .character-prompt-actions .prompt-optimization-cost{font-size:11px}.voice-reference-workspace .character-prompt-editor textarea,.voice-reference-workspace .voice-spoken-text textarea{border:1px solid var(--ui-border);background:var(--ui-surface-input);color:#eee;width:100%;min-width:0;height:86px;min-height:86px;font:400 12px/1.6 var(--ui-font-family);resize:vertical;border-radius:9px;margin:0;padding:10px 11px;display:block}.voice-reference-workspace textarea::placeholder{color:var(--ui-field-placeholder);opacity:1}.voice-spoken-text{gap:8px}.voice-submit-row{justify-content:flex-end;align-items:center;gap:10px;min-width:0;margin-top:18px;display:flex}.voice-submit-row>.script-model-anchor{flex:0 auto;min-width:0}.voice-reference-workspace .voice-submit-row .script-model-anchor>button:not(.model-picker-trigger){color:#f3f3f3;background:0 0;border:0;justify-content:flex-start;align-items:center;gap:6px;min-width:0;max-width:100%;height:32px;min-height:32px;padding:0;font-size:13px;font-weight:400;display:flex}.voice-reference-workspace .voice-submit-row .script-model-anchor>button:not(.model-picker-trigger):disabled{opacity:1;cursor:default}.voice-submit-row .script-model-anchor>button:not(.model-picker-trigger)>span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.voice-submit-row .script-model-anchor>button:not(.model-picker-trigger)>svg{flex:none;width:14px;height:14px}.voice-action-price{color:var(--ui-muted);white-space:nowrap;flex-shrink:0;align-items:center;gap:4px;font-size:11px;line-height:16px;display:inline-flex}.voice-action-price>svg{color:#d2ad61;width:18px;height:18px}.voice-reference-workspace .voice-submit-row>.canvas-generation-action{white-space:nowrap;border-radius:10px;gap:8px;height:40px;min-height:40px;padding:8px 12px;font-size:12px;font-weight:600}.voice-submit-row>.canvas-generation-action>svg{width:16px;height:16px}.voice-fee-note{color:#b7a06e;margin:12px 0 0 28px;font-size:11px;line-height:1.5}.voice-result-column{scrollbar-width:thin;flex-direction:column;align-items:center;gap:70px;min-width:0;min-height:0;padding-top:88px;display:flex;overflow:auto}.voice-result-card{border:1px solid var(--ui-border);background:var(--ui-surface-raised);width:254px;max-width:100%;height:284px;min-height:284px;color:var(--ui-text);border-radius:20px;flex-direction:column;flex-shrink:0;align-items:center;display:flex;position:relative}.voice-reference-workspace .voice-result-name{text-overflow:ellipsis;white-space:nowrap;color:#f2f2f2;background:0 0;border:0;justify-content:center;gap:5px;max-width:calc(100% - 28px);min-height:24px;padding:4px 0;font-size:14px;font-weight:600;line-height:20px;display:flex;position:absolute;top:24px;overflow:hidden}.voice-result-name>svg{flex:none;width:16px;height:16px}.voice-result-name:disabled{opacity:1}.voice-reference-workspace .voice-result-name-input{text-align:center;background:var(--ui-surface-input);border:1px solid #555;border-radius:7px;width:calc(100% - 32px);height:32px;padding:5px 8px;font-size:14px;position:absolute;top:24px}.voice-result-wave{width:calc(100% - 32px);height:62px;color:var(--ui-subtle);display:block;position:absolute;top:97px;left:16px;right:16px}.voice-result-card[data-ready=true] .voice-result-wave{color:var(--ui-text);top:106px}.voice-result-card>p{color:var(--ui-muted);margin:0;font-size:12px;font-weight:400;line-height:18px;position:absolute;bottom:29px}.voice-result-player{align-items:center;gap:12px;min-width:0;display:flex;position:absolute;bottom:20px;left:22px;right:22px}.voice-result-player audio{display:none}.voice-reference-workspace .voice-result-player>.voice-result-play{border:1px solid var(--ui-border-hover);width:36px;height:36px;min-height:36px;color:var(--ui-surface-menu);background:#f5f5f5;border-radius:50%;flex:none;place-items:center;padding:8px;display:grid}.voice-result-play>svg{width:20px;height:20px;display:block}.voice-result-player>input[type=range]{appearance:none;cursor:pointer;width:100%;min-width:30px;height:16px;min-height:16px;accent-color:var(--ui-text);background:0 0;border:0;flex:1;padding:0}.voice-result-player>input[type=range]::-webkit-slider-runnable-track{background:var(--ui-border-hover);border-radius:4px;height:3px}.voice-result-player>input[type=range]::-webkit-slider-thumb{appearance:none;background:var(--ui-text);border-radius:50%;width:7px;height:7px;margin-top:-2px}.voice-result-player>input[type=range]::-moz-range-track{background:var(--ui-border-hover);border-radius:4px;height:3px}.voice-result-player>input[type=range]::-moz-range-thumb{background:var(--ui-text);border:0;border-radius:50%;width:7px;height:7px}.voice-result-player time{white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--ui-text);flex:none;font-size:10px;font-weight:400}.voice-play-error{color:#d6b28d;font-size:10px;position:absolute;bottom:2px}.voice-result-traits{flex:none;grid-template-columns:1fr 1fr;gap:12px 10px;width:244px;max-width:100%;display:grid}.voice-result-traits>div{flex-direction:column;gap:6px;min-width:0;display:flex}.voice-result-traits span{color:var(--ui-muted);font-size:11px;line-height:16px}.voice-reference-workspace .voice-result-traits button{background:var(--ui-surface-raised);border:1px solid var(--ui-border);color:#eee;border-radius:9px;justify-content:space-between;align-items:center;width:100%;min-width:0;height:35px;min-height:35px;padding:7px 9px;font-size:12px;display:flex}.voice-recording-field{flex-direction:column;gap:6px;margin-bottom:24px;display:flex}.voice-recording-upload{background:var(--ui-surface-raised);border:1px dashed var(--ui-border-hover);text-align:center;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;gap:10px;min-height:116px;padding:14px 10px;font-size:11px;display:flex}.voice-recording-upload>div{flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.voice-reference-workspace .voice-recording-upload button{border:1px solid var(--ui-border);background:var(--ui-surface-raised);border-radius:9px;justify-content:center;align-items:center;gap:6px;min-height:32px;padding:6px 10px;font-size:11px;display:inline-flex}.voice-recording-upload svg{flex:none;width:16px;height:16px;display:block}.character-voice-consent{color:#ddd;align-items:center;gap:7px;margin-top:6px;font-size:11px;line-height:16px;display:flex}.voice-reference-workspace .character-voice-consent>input{border-color:#888;border-radius:3px;width:13px;min-width:13px;height:13px;min-height:13px}.voice-reference-workspace .character-voice-consent>input:checked:after{width:3px;height:6px}.voice-recording-selected{border:1px solid var(--ui-border-hover);background:var(--ui-surface-raised);border-radius:9px;align-items:center;gap:8px;min-height:55px;padding:8px 10px;display:flex}.voice-recording-selected>span:not(.compact-audio-player){flex:1;min-width:0}.voice-recording-selected b{text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:400;display:block;overflow:hidden}.voice-recording-selected small{color:var(--ui-muted);font-size:11px;display:block}.voice-reference-workspace .voice-recording-selected>button{background:var(--ui-surface-raised);border:1px solid var(--ui-border);width:30px;height:30px;min-height:30px;padding:6px}.voice-recording-selected>button svg{width:16px;height:16px}.voice-recording-selected .compact-audio-player.icon-only,.voice-recordings-list .compact-audio-player.icon-only{background:0 0;border:0;flex:none;width:20px;min-width:20px;height:30px;padding:0}.voice-recording-selected .compact-audio-player.icon-only>button,.voice-recordings-list .compact-audio-player.icon-only>button{color:#ddd!important;background:0 0!important;width:20px!important;height:30px!important;min-height:30px!important;padding:0!important}.voice-recording-selected .compact-audio-player svg,.voice-recordings-list .compact-audio-player svg{width:15px;height:15px}.voice-workflow-options,.voice-recordings-dialog{background:var(--ui-surface-menu);border:1px solid var(--ui-border);box-shadow:var(--ui-menu-shadow);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);color:#eee;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;font:400 12px/1.5 var(--ui-font-family);border-radius:20px;padding:6px}.voice-workflow-options>p{color:var(--ui-muted);margin:8px 12px 6px;font-size:11px}.voice-workflow-options>button{width:100%;color:inherit;text-align:left;font:inherit;cursor:pointer;background:0 0;border:0;border-radius:11px;align-items:center;gap:10px;min-height:48px;padding:12px;display:flex}.voice-workflow-options>button[aria-selected=true]{background:var(--ui-selected)}.voice-workflow-options>button:hover{background:var(--ui-hover)}.voice-workflow-options>button>svg{flex:none;width:17px;height:17px}.voice-workflow-options>button>span{flex:1;min-width:0}.voice-workflow-options b{font-size:13px;font-weight:400}.voice-workflow-options small{color:var(--ui-muted);font-size:11px;display:block}.voice-workflow-options .voice-option-check{color:var(--ui-accent);margin-left:auto}.voice-recordings-dialog{flex-direction:column;gap:18px;padding:22px;display:flex}.voice-recordings-dialog header{justify-content:space-between;align-items:center;gap:16px;display:flex}.voice-recordings-dialog h2{margin:0;font-size:16px;font-weight:500}.voice-recordings-dialog button{border:1px solid var(--ui-border);background:var(--ui-surface-raised);color:#eee;min-height:32px;font:400 12px/1.4 var(--ui-font-family);cursor:pointer;border-radius:9px;justify-content:center;align-items:center;gap:6px;padding:7px 10px;display:inline-flex}.voice-recordings-dialog header>button{width:34px;height:34px;padding:7px}.voice-recordings-dialog button:disabled{opacity:.4;cursor:default}.voice-recordings-dialog p{color:#aaa;margin:0;font-size:12px}.voice-recordings-dialog p[role=alert]{color:#d6b28d}.voice-recordings-list{flex-direction:column;gap:8px;min-height:0;max-height:300px;display:flex;overflow:auto}.voice-recordings-list article{background:var(--ui-surface-raised);border:1px solid var(--ui-border);border-radius:12px;align-items:center;gap:10px;min-height:66px;padding:10px 12px;display:flex}.voice-recordings-list article>span:not(.compact-audio-player){overflow-wrap:anywhere;flex:1;min-width:0;font-size:13px}.voice-recordings-list small{color:var(--ui-muted);margin-top:3px;font-size:11px;display:block}.character-voices.picker .character-voice-layout{flex-direction:column;padding:8px 24px 16px;display:flex;overflow:auto}.character-voices.picker .character-voices-panel{flex:1;min-height:240px;overflow:visible}.character-voices.picker .voice-result-column{flex:none;gap:20px;padding-top:0;overflow:visible}.character-voices.picker .character-voice-scroll{flex:none;overflow:visible}.character-voices.picker .character-voice-footer{justify-content:flex-end;padding:12px 24px}.character-voices.picker .character-voice-footer>div{gap:8px}.character-voices.picker.audio-node-voice .character-voice-layout{padding:0;overflow:visible}.character-voices.picker.audio-node-voice .character-voice-footer{background:0 0;min-height:0;padding:12px 0 0}.character-library-workspace.audio-node-voice{height:auto;font-size:12px}.audio-node-voice .character-voices-panel{height:auto;overflow:visible}.audio-node-voice .voice-result-column{display:none}.audio-node-voice .library-empty{margin:16px 0}@media (width<=1000px){.character-voice-layout{gap:24px;padding-inline:24px}.character-voice-filters{flex-wrap:wrap;max-width:calc(100% - 390px)}.voice-result-column{padding-top:88px}}@media (width<=650px){.library-dialog.character-library-dialog:has(.voice-reference-workspace){width:calc(100vw - 24px);height:calc(100dvh - 24px)}.character-voice-layout{flex-direction:column;gap:24px;padding:8px 16px 20px;display:flex;overflow:auto}.character-voice-main{flex-shrink:0;gap:14px;padding-top:0;overflow:visible}.character-voices-panel{flex:none;min-height:240px;overflow:visible}.character-voice-scroll{flex:none;overflow:visible}.character-voice-filters{flex-shrink:0;max-width:none;min-height:0;padding:0 16px 12px;position:static}.character-voice-picture,.character-voice-main>.character-import-placeholder{width:220px;height:246px}.character-voice-picture-actions{gap:4px;left:4px;right:4px}.character-voice-picture-actions button{gap:3px;padding:6px;font-size:11px}.character-voice-picture-actions svg{display:none}.character-voice-footer>label{justify-content:flex-start;width:100%}.voice-result-column{flex:none;gap:20px;padding:0;overflow:visible}.voice-result-card{width:220px;height:246px;min-height:246px}.voice-result-wave{top:82px}.voice-result-card[data-ready=true] .voice-result-wave{top:88px}.voice-result-player{gap:8px;left:16px;right:16px}.voice-result-player time{font-size:9px}.voice-submit-row{gap:7px}.voice-reference-workspace .voice-submit-row .script-model-anchor>button:not(.model-picker-trigger){font-size:12px}.voice-reference-workspace .voice-submit-row>.canvas-generation-action{padding:8px}.voice-fee-note{margin-left:0}.voice-recordings-dialog{padding:16px}.voice-result-traits{width:244px}}.voice-submit-row .script-model-anchor>button:not(.model-picker-trigger)>b{font-size:inherit;white-space:nowrap;text-overflow:ellipsis;font-weight:400;line-height:20px;overflow:hidden}.voice-submit-row .script-model-anchor>button:not(.model-picker-trigger)>span:empty{display:none}.library-dialog:has(.voice-reference-workspace) .character-library-heading>nav button{font-size:16px;font-weight:400}.voice-reference-workspace .character-voice-controls>nav button{background:0 0;border:1px solid #0000;border-radius:0}.voice-reference-workspace .character-voice-controls>nav button[aria-pressed=true]{background-color:var(--ui-selected)}.voice-result-column>.voice-result-recover{border:1px solid var(--ui-border);background:var(--ui-surface-raised);margin-top:-54px;padding:6px 12px}.character-library-dialog{padding:0;overflow:hidden}.character-library-workspace{color:#eee;flex-direction:column;height:100%;min-height:0;font-size:14px;line-height:1.5;display:flex}.character-library-workspace button,.character-library-workspace input:not(.history-select,:where(.character-voice-footer input[type=checkbox],.character-voice-consent>input[type=checkbox])),.character-library-workspace textarea{font:inherit;box-sizing:border-box;min-height:32px;padding:6px 12px}.character-library-workspace button,.character-library-workspace input:not(.history-select,:where(.character-voice-footer input[type=checkbox],.character-voice-consent>input[type=checkbox])):where([type=checkbox],[type=radio],[type=range],[type=color],[type=file],[type=button],[type=submit],[type=reset],[type=image],[type=hidden]){color:inherit;border-radius:var(--ui-radius-control);background:var(--ui-surface-raised);border:1px solid #0000}.character-library-workspace input:not(.history-select,:where(.character-voice-footer input[type=checkbox],.character-voice-consent>input[type=checkbox])):where([type=checkbox],[type=radio],[type=range],[type=color],[type=file],[type=button],[type=submit],[type=reset],[type=image],[type=hidden]){background:var(--ui-surface-input);border-color:var(--ui-border)}.character-library-workspace button{cursor:pointer;transition:background .15s,border-color .15s}.character-library-workspace button:hover{background:var(--ui-hover)}.character-library-workspace button:disabled{opacity:.4;cursor:default}.character-library-workspace .primary{color:#111;background:#fff}.character-library-workspace .primary:not(:disabled):hover{color:#111;background:#e7e7e7}.character-library-heading{flex-shrink:0;align-items:center;gap:16px;height:64px;padding:16px 24px;display:flex}.character-library-heading>nav{flex-wrap:wrap;align-items:center;gap:0;min-width:0;display:flex}.character-library-heading>nav button{color:#8e8e8e;border-radius:var(--ui-radius-control);font-size:var(--ui-font-heading);white-space:nowrap;background:0 0;padding:4px 18px;position:relative}.character-library-heading>nav button:first-child{margin-left:-12px;padding-left:12px}.character-library-heading>nav button+button:before{content:"";pointer-events:none;background:#343434;width:1px;height:16px;position:absolute;top:50%;left:0;transform:translateY(-50%)}.character-library-heading .library-close{background:0 0;margin-left:auto}.character-library-filter{flex-wrap:wrap;align-items:center;gap:10px;padding:0 28px 20px;display:flex}.library-select-trigger{align-items:center;gap:12px;display:inline-flex}.character-library-filter>button{border-radius:12px}.character-library-filter input{min-width:120px;max-width:250px;height:40px;margin-left:auto}.character-library-content{overscroll-behavior:contain;scrollbar-width:thin;flex:1;min-height:0;padding:12px 28px 32px;overflow:auto}.character-gallery-section{margin:0 0 34px}.character-gallery-section h3{margin:4px 0 18px;font-size:16px;font-weight:500}.character-gallery{grid-template-columns:repeat(6,minmax(0,1fr));align-items:start;gap:18px;display:grid}.character-gallery .character-gallery-card{aspect-ratio:3/4;background:var(--ui-surface-panel);text-align:left;border-radius:18px;padding:0;display:block;position:relative;overflow:hidden}.character-gallery-card.wide{aspect-ratio:3/2;grid-column:span 2}.character-gallery-card img{object-fit:cover;object-position:center top;width:100%;height:100%}.character-gallery-card>span{bottom:0;color:#fff;opacity:0;background:linear-gradient(#0000,#000b);padding:22px 12px 12px;position:absolute;inset-inline:0}.character-gallery-card:hover>span,.character-gallery-card:focus-visible>span{opacity:1}.character-gallery-card:has(>small)>span{padding-bottom:38px}.character-gallery-card small{white-space:nowrap;background:#181818bf;border-radius:8px;padding:2px 8px;position:absolute;bottom:10px;left:50%;transform:translate(-50%)}.character-library-footer{border-top:1px solid var(--ui-border);flex-shrink:0;justify-content:center;align-items:center;gap:18px;min-height:74px;padding:16px 24px;display:flex;position:relative}.character-library-actions{justify-content:flex-end;gap:10px;margin-left:auto;display:flex}.character-create-menu{position:absolute;left:24px}.character-create-menu>button{background:0 0}.character-detail{max-width:1000px;margin:auto;padding-top:24px}.character-hero-navigation{min-width:0;position:relative}.character-library-workspace .character-gallery-arrow{z-index:3;border:1px solid var(--ui-border);color:#fff;background:#202124ed;border-radius:12px;width:36px;height:40px;padding:0;position:absolute;top:calc(50% - 5px);transform:translateY(-50%);box-shadow:0 3px 12px #0006}.character-gallery-arrow.previous{left:6px}.character-gallery-arrow.next{right:6px}.character-gallery-arrow.next svg{transform:rotate(180deg)}.character-hero-slots{scroll-snap-type:x proximity;scrollbar-width:thin;flex-wrap:nowrap;align-items:flex-start;gap:16px;padding-bottom:10px;display:flex;overflow-x:auto}.character-hero-slot{scroll-snap-align:start;aspect-ratio:3/4;background:var(--ui-surface-raised);border:1px solid var(--ui-border);border-radius:20px;flex-direction:column;flex:none;justify-content:center;align-items:center;gap:16px;min-width:120px;height:212px;display:flex;position:relative;overflow:hidden}.character-library-workspace .character-hero-slot>.image-editor-trigger{border-radius:inherit;border:0;width:100%;height:100%;padding:0}.character-hero-slot>b+button{background:var(--ui-surface-raised);border:1px solid #555;width:auto;height:auto;padding:8px 20px}.character-hero-slot img{object-fit:cover;object-position:center;width:100%;height:100%;display:block}.character-hero-slot>small{bottom:0;pointer-events:none;color:#fff;opacity:0;background:linear-gradient(#0000,#0009);padding:18px 10px 8px;position:absolute;inset-inline:0}.character-hero-slot:hover>small{opacity:1}.character-voice-strip{background:var(--ui-surface-panel);border:1px solid var(--ui-border);border-radius:12px;justify-content:center;align-items:center;gap:12px;min-height:64px;margin-top:26px;padding:12px;display:flex}.character-voice-strip>button:first-of-type{background:0 0}.character-voice-strip audio{flex:1;min-width:120px;max-width:70%}.character-detail-name{justify-content:center;align-items:center;gap:12px;margin-top:28px;display:flex}.character-detail-name h2{margin:0;font-size:22px;font-weight:500}.character-detail-name button{background:0 0;padding:8px}.character-detail-name svg{width:20px;height:20px}.character-description{color:#999;text-align:center;max-width:750px;margin:18px auto}.character-verification-row{align-items:center;gap:10px;font-size:12px;display:flex;position:absolute;right:24px}.character-verification-row span{color:#a5c5e8}.character-editor{grid-template-columns:minmax(0,1.15fr) minmax(320px,1fr);gap:40px;max-width:1100px;margin:20px auto;display:grid}.character-edit-picture{flex-direction:column;justify-content:center;align-items:center;gap:20px;display:flex}.character-edit-picture>button{aspect-ratio:3/4;width:100%;max-width:260px;padding:0;overflow:hidden}.character-edit-picture img{object-fit:cover;width:100%;height:100%}.character-edit-picture>div:last-child{flex-wrap:wrap;justify-content:center;gap:10px;display:flex}.character-import-placeholder{aspect-ratio:3/4;background:var(--ui-surface-panel);color:#ccc;border-radius:12px;justify-content:center;align-items:center;width:100%;max-width:240px;font-size:48px;font-weight:200;display:flex}.character-edit-form{flex-direction:column;gap:16px;display:flex}.character-edit-form h2{margin:0;font-size:20px;font-weight:500}.character-edit-form label{color:#aaa;flex-direction:column;gap:6px;display:flex}.character-edit-form input,.character-edit-form textarea{width:100%}.character-edit-form textarea{resize:vertical;min-height:90px}.character-edit-traits,.character-edit-slots,.character-slot-actions{flex-wrap:wrap;gap:8px;display:flex}.character-edit-traits>button{gap:8px;font-size:12px;display:flex}.character-slot-actions>button:has(img){width:80px;height:80px;padding:0;overflow:hidden}.character-slot-actions img{object-fit:cover;width:100%;height:100%}.character-generate-actions{gap:var(--canvas-icon-gap);background:0 0;border:0;flex-wrap:wrap;justify-content:flex-end;align-self:stretch;align-items:center;padding:0;display:flex}.character-generate-actions>.script-model-anchor,.character-generate-actions>button:not(.model-picker-trigger):first-child{text-align:left;flex:none;min-width:0}.character-generate-actions>.script-generation-spec{margin-left:0}.character-generate-actions .script-model-anchor>button:not(.model-picker-trigger){border-radius:var(--ui-radius-control)}.character-generate-actions .script-model-anchor b{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.character-price{white-space:nowrap;color:#d7b473;align-items:center;gap:4px;font-size:12px;display:inline-flex}.character-price svg{width:14px;height:14px}.character-status{color:#d6b28d;overflow-wrap:anywhere;margin:0;padding:8px 28px;font-size:12px}.character-recovery{background:var(--ui-surface-panel);border:1px solid var(--ui-border);border-radius:12px;align-items:center;gap:12px;margin:0 28px 12px;padding:8px 12px;font-size:12px;display:flex}.character-recovery .character-resume{background:0 0;flex:1;justify-content:flex-start;align-items:center;gap:8px;display:flex}.character-resume svg{width:16px;height:16px}.character-recovery>button:last-child{color:var(--ui-muted);background:0 0}.library-empty{text-align:center;color:#858585;margin:40px 0}.character-asset-picker{max-width:900px;max-height:80dvh;overflow:auto}.character-asset-picker .character-gallery{padding:24px}.character-library-heading>.library-back{background:0 0;border:0;place-items:center;width:36px;min-width:36px;height:36px;padding:8px;display:grid}.character-library-heading>.library-back svg{flex:none;width:20px;height:20px;display:block}.embedded{min-height:460px;max-height:70dvh}.embedded .character-library-heading{height:auto;padding:12px}.embedded .character-library-heading>nav button{font-size:14px}.embedded .character-library-filter{padding:10px}.embedded .character-library-content{padding:12px}.embedded .character-create-menu{position:static}.embedded .character-library-footer{flex-wrap:wrap;justify-content:space-between;padding:12px}.embedded .character-verification-row{margin-left:auto;position:static}.embedded .character-editor{grid-template-columns:1fr}.embedded .character-hero-slots{gap:8px}@media (width<=1100px){.character-gallery{grid-template-columns:repeat(4,minmax(0,1fr))}.character-hero-slots{gap:14px}.character-editor{gap:22px}}.character-library-footer:has(.character-verification-row) .character-library-actions{flex-shrink:0}@media (width<=800px){.character-verification-row{margin-left:auto;position:static}.character-library-footer:has(.character-verification-row) .character-library-actions{order:3;justify-content:center;width:100%}.character-create-menu{position:static}.character-library-footer{flex-wrap:wrap;justify-content:space-between}}@media (width<=650px){.character-library-footer{flex-wrap:wrap}.character-library-footer .character-create-menu{flex:1 0 100%;position:static}.character-library-heading{height:auto;min-height:64px;padding:14px 16px}.character-library-heading>nav button{padding:0 10px;font-size:14px}.character-library-filter{gap:8px;padding:0 16px 12px}.character-library-filter input{width:100%;max-width:none;margin:0}.character-library-content{padding:10px 16px 24px}.character-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.character-gallery-card.wide{grid-column:span 2}.character-library-footer{gap:10px;padding:12px 16px}.character-library-footer button{padding:8px 12px;font-size:12px}.character-hero-slot{height:180px}.character-detail{padding-top:0}.character-detail-name{margin-top:24px}.character-editor{grid-template-columns:1fr;margin-top:0}.character-edit-picture>button{max-width:210px}.character-voice-strip{flex-wrap:wrap}.character-voice-strip audio{max-width:100%}}.character-library-workspace audio{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}.character-edit-preview{aspect-ratio:3/4;background:var(--ui-surface-raised);border:1px solid var(--ui-border);border-radius:20px;place-items:center;width:100%;max-width:300px;display:grid;position:relative;overflow:hidden}.character-edit-preview[data-orientation=landscape]{max-width:480px}.character-library-workspace .character-edit-preview>.image-editor-trigger{border-radius:inherit;border:0;width:100%;height:100%;padding:0}.character-edit-preview img{object-fit:cover;width:100%;height:100%;display:block}.character-edit-preview .character-import-placeholder{aspect-ratio:auto;background:0 0;flex-direction:column;width:100%;max-width:none;height:100%}.character-edit-preview small{color:#aaa;font-size:13px;font-weight:400}.character-image-progress{pointer-events:none;background:#10151b88;place-items:center;display:grid;position:absolute;inset:0;overflow:hidden}.character-image-progress i{background:linear-gradient(#0000 35%,#bad8ff66 50%,#0000 65%);animation:2.4s linear infinite character-sweep;position:absolute;inset:-100% 0}.character-image-progress span{color:#e7f1ff;background:#131a25d9;border:1px solid #ffffff26;border-radius:20px;padding:7px 16px;font-size:14px;position:relative}@keyframes character-sweep{0%{transform:translateY(-45%)}to{transform:translateY(45%)}}@media (prefers-reduced-motion:reduce){.character-image-progress i{animation:none}}.character-canvas-card{color:#ddd;flex-direction:column;gap:14px;padding:16px;font-size:12px;display:flex}.character-canvas-images{grid-template-columns:1fr 1fr;gap:10px;display:grid}.character-canvas-images>div{flex-direction:column;gap:6px;min-width:0;display:flex;position:relative}.character-canvas-images button{background:#292c31;border:1px solid #3a3c42;border-radius:12px;place-items:center;width:100%;height:156px;display:grid;overflow:hidden;padding:0!important}.character-canvas-images img{object-fit:contain;width:100%;max-width:100%;height:100%;display:block}.character-canvas-images span{color:#999;font-size:11px}.character-canvas-empty{color:#777;font-size:26px}.character-canvas-card>p{color:#aaa;white-space:pre-wrap;overflow-wrap:anywhere;max-height:90px;margin:0;overflow:auto}.character-canvas-voice{background:#292c31;border:1px solid #383b40;border-radius:12px;flex-direction:column;gap:8px;padding:10px;display:flex;position:relative}.character-canvas-voice audio{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;width:100%;height:32px}.character-canvas-voice>span{color:#aaa}.character-canvas-edit{background:var(--ui-selected);border:1px solid var(--ui-border-hover);color:#ddd;border-radius:10px;width:100%;padding:9px}.character-edit-preview .character-import-add{width:100%;color:inherit;cursor:pointer;background:0 0;border:0;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:8px;padding:20px;font-size:48px;font-weight:200;display:flex}.character-edit-preview .character-import-add:disabled{cursor:default;opacity:.5}.character-canvas-card .character-canvas-remove{color:#ccc;cursor:pointer;background:#181a20e8;border:1px solid #ffffff24;border-radius:7px;place-items:center;width:24px;height:24px;font-size:17px;display:grid;position:absolute;top:5px;right:5px;padding:0!important}.character-canvas-card .character-canvas-remove:hover{color:#fff;background:#63383e}.character-canvas-purpose{color:#8f97a3;min-width:0;font-size:11px}.character-canvas-purpose summary{cursor:pointer;padding:3px 0}.character-canvas-card .character-canvas-purpose textarea{resize:vertical;width:100%;min-height:84px;padding:8px;line-height:1.6;font-size:11px!important}.character-canvas-voice>span{padding-right:24px}.voice-creation-costs{color:var(--ui-text-muted,#93969e);flex-basis:100%;margin:6px 0;font-size:11px;line-height:1.5;display:block}.voice-generation-action:has(.voice-creation-costs){flex-wrap:wrap}.voice-sample-dialog{border:1px solid var(--ui-border);border-radius:var(--ui-radius-menu);background:var(--ui-surface-menu);box-shadow:var(--ui-menu-shadow);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);font:400 var(--ui-font-control)/var(--ui-line-control) var(--ui-font-family);--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;padding:0}.voice-sample-dialog,.voice-sample-dialog *{box-sizing:border-box}.voice-sample-picker{min-height:0;max-height:calc(var(--adaptive-max-height,520px) - 2px);color:var(--ui-text);flex-direction:column;display:flex}.voice-sample-picker button{border:1px solid var(--ui-border);border-radius:var(--ui-radius-control);background:var(--ui-surface-raised);color:var(--ui-text);cursor:pointer;font:12px/1.4 var(--ui-font-family);justify-content:center;align-items:center;gap:8px;display:inline-flex}.voice-sample-picker button:disabled{opacity:.4;cursor:default}.voice-sample-picker button svg{flex:none;width:18px;height:18px;display:block}.voice-sample-picker h2{margin:0;font-size:16px;font-weight:500}.voice-sample-picker .character-library-heading{flex-shrink:0;height:64px;padding:16px}.voice-sample-picker .library-close{background:0 0;width:32px;height:32px;min-height:32px;padding:0}.voice-sample-search{align-items:center;gap:10px;height:36px;min-height:36px;margin:0 16px 12px;padding:0 12px;display:flex}.voice-sample-search>svg{flex:none;width:18px;height:18px}.voice-sample-search>input{width:100%;min-width:0;font-size:12px}.voice-sample-list{overscroll-behavior:contain;scrollbar-width:thin;flex-direction:column;gap:8px;min-height:0;margin:0 8px;padding:0 8px 12px;display:flex;overflow:auto}.voice-sample-row{border:1px solid var(--ui-border);border-radius:var(--ui-radius-control);background:var(--ui-surface-panel);flex-shrink:0;align-items:center;gap:8px;padding:8px;display:flex}.voice-sample-row[data-selected=true]{border-color:var(--ui-border-hover);background:var(--ui-selected)}.voice-sample-row .voice-sample-choice{text-align:left;background:0 0;border:0;flex:1;justify-content:flex-start;min-width:0;padding:0}.voice-sample-choice>span:last-child{min-width:0}.voice-sample-choice b{text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:400;display:block;overflow:hidden}.voice-sample-choice small{color:var(--ui-muted);margin-top:4px;font-size:11px;display:block}.voice-sample-symbol{flex:none;place-items:center;width:32px;height:36px;display:grid}.voice-sample-row>small{color:var(--ui-muted);font-size:11px}.voice-sample-row .compact-audio-player.icon-only{background:0 0;border:0;justify-content:center;width:32px;min-width:32px;height:32px;padding:0;display:flex}.voice-sample-row .compact-audio-player.icon-only>button{width:32px!important;height:32px!important;color:var(--ui-text)!important;background:0 0!important}.voice-sample-row .compact-audio-player.icon-only svg{width:16px;height:16px}.voice-sample-picker>footer{border-top:1px solid var(--ui-border);flex-shrink:0;justify-content:flex-end;gap:8px;padding:12px 16px;display:flex}.voice-sample-picker>footer>button{min-height:36px;padding:0 14px}.voice-sample-picker>footer>.primary{background:var(--ui-text);color:var(--ui-surface-menu)}.voice-sample-error{color:var(--ui-text-muted);flex-shrink:0;align-items:center;gap:12px;padding:8px 16px;font-size:12px;display:flex}.voice-sample-error>span{flex:1}.voice-creation-costs>span{color:#d7b473;vertical-align:middle;align-items:center;gap:3px;display:inline-flex}.voice-creation-costs>span>svg{width:14px;height:14px;display:block}.voice-sample-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.voice-charge-rules{color:var(--ui-text-muted);padding:0 16px 16px;font-size:12px;line-height:1.7}.voice-charge-rules p{margin:0 0 12px}.voice-charge-rules p:last-child{margin-bottom:0}.voice-charge-rules strong{color:#d7b473;font-weight:500}.voice-charge-dialog .character-library-heading{height:auto;min-height:56px}.character-editor .character-editor-voice{border:1px solid var(--ui-border);background:var(--ui-surface-raised);border-radius:var(--ui-radius-control);justify-content:center;align-items:center;min-height:48px;display:flex}.character-edit-slots .character-slot-tab{border:1px solid var(--ui-border);border-radius:var(--ui-radius-control);background:var(--ui-surface-raised);align-items:center;min-width:0;display:inline-flex}.character-slot-tab[data-selected=true]{background:var(--ui-selected);border-color:var(--ui-border-hover)}.character-slot-tab>button{background:0 0;padding:6px 8px;font-size:12px}.character-slot-tab>button+button{width:28px;min-width:28px;padding:6px}.character-slot-tab svg,.character-slot-add svg{width:16px;height:16px;display:block}.character-slot-dialog{flex-direction:column;gap:16px;display:flex}.character-slot-dialog h3{margin:0}.character-slot-dialog input{box-sizing:border-box;width:100%;min-height:36px;padding:8px 12px}.character-slot-dialog>footer{flex-wrap:wrap;justify-content:flex-end;gap:8px;margin:0;display:flex;position:static}.character-slot-dialog .character-delete-tag{margin-right:auto}.character-prompt-editor{flex-direction:column;gap:12px;display:flex}.character-prompt-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.character-prompt-heading>label{font-size:var(--ui-font-control);color:var(--ui-text);font-weight:500}.character-prompt-actions{gap:var(--canvas-icon-gap);flex-wrap:wrap;align-items:center;margin-left:auto;display:flex}.character-prompt-actions>.script-model-anchor{flex:none;min-width:0}.character-prompt-actions>small{flex-basis:100%}.character-edit-form{min-width:0}.character-library-actions{flex-wrap:wrap}.character-notice{animation:2s forwards character-notice-fade}@keyframes character-notice-fade{0%,70%{opacity:1}to{opacity:0}}.character-voice-strip{position:relative}.character-voice-strip:has(.history-select){padding-right:46px}.character-hero-slot>.character-image-approved{inset-inline:unset;white-space:nowrap;opacity:1;background:#151719df;border-radius:8px;padding:3px 8px;font-size:11px;bottom:8px;left:50%;right:auto;transform:translate(-50%)}.character-image-menu>button{text-align:left;width:100%;min-height:44px}@media (width>=651px){.character-library-content.character-edit-content{padding-bottom:16px;overflow:hidden}.character-edit-content .character-editor{height:100%;min-height:0;margin:0 auto}.character-edit-content .character-edit-form{overscroll-behavior:contain;scrollbar-width:thin;padding:8px 8px 20px 0;overflow-y:auto}.character-edit-content .character-edit-picture{align-self:center;min-height:0}.character-edit-content .character-edit-preview{max-height:calc(100dvh - 330px)}.embedded .character-edit-content{overflow:auto}.embedded .character-editor{height:auto}.embedded .character-edit-form{overflow:visible}}.library-options.character-card-menu>button,.library-options.character-image-menu>button{justify-content:flex-start;gap:10px}.character-card-menu svg,.character-image-menu svg{flex:none;width:18px;height:18px}.character-add-progress{border-bottom:1px solid var(--ui-border);color:var(--ui-muted);justify-content:space-between;align-items:center;gap:12px;padding:8px 24px;font-size:12px;display:flex}.character-add-progress button{background:var(--ui-surface-raised);border:1px solid var(--ui-border);border-radius:6px;padding:4px 8px}
