/* Character studio — same monochrome design language as the rest of Liubai. */
.creator-main{max-width:1600px}.creator-heading{display:flex;justify-content:space-between;gap:25px;align-items:flex-start;margin-bottom:26px}.creator-heading h1{font-size:27px;font-weight:500;letter-spacing:1px;margin:9px 0 4px}.creator-heading>div>p{font-size:11px;color:#777;margin:0}.creator-toolbar{display:flex;gap:7px;padding-top:18px;flex-wrap:wrap;justify-content:flex-end}.creator-toolbar .outline-btn{font-size:11px;white-space:nowrap}.file-button{cursor:pointer;display:inline-flex;align-items:center}.creator-steps{display:flex;border-block:1px solid #e3e3e3;margin:0 0 29px;overflow:auto;gap:0;scrollbar-width:thin}.creator-steps button{flex:1;padding:17px 12px;display:flex;align-items:center;justify-content:center;gap:10px;white-space:nowrap;font-size:12px;color:#888;border-bottom:2px solid transparent;border-radius:0}.creator-steps button span{font:10px monospace;color:#aaa}.creator-steps button.active{color:#222;border-bottom-color:#222}.creator-steps button.active span{color:#222}.creator-steps button.passed{color:#555}.creator-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:28px;align-items:start}.creator-content{min-width:0}.creator-block{border:1px solid #e3e3e3;background:#fff;border-radius:5px;margin-bottom:20px;padding:25px}.creator-block-heading{margin-bottom:21px}.creator-block-heading h2{font-size:16px;font-weight:550;line-height:1.7;margin:0 0 5px}.creator-block-heading>p{font-size:12px;color:#777;margin:0;line-height:1.9}.creator-field{display:block;margin:0 0 20px;font-size:12px;color:#444}.creator-field>span{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:8px;font-weight:500}.creator-field>span>small{font-size:10px;color:#999;font-weight:400}.creator-field input:not([type=checkbox]),.creator-field textarea,.creator-field select{display:block;width:100%;border:1px solid #d9d9d9;border-radius:4px;padding:10px 12px;color:#333;background:#fff;font-size:13px;line-height:1.75;min-width:0}.creator-field textarea{resize:vertical;min-height:90px;tab-size:2;white-space:pre-wrap}.creator-field input:focus,.creator-field textarea:focus,.creator-field select:focus{outline:1px solid #444;outline-offset:0;border-color:#444}.creator-field input::placeholder,.creator-field textarea::placeholder{color:#aaa}.creator-two{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.creator-three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 14px}.field-hint{display:block;font-size:11px!important;line-height:1.9;color:#888!important;margin:7px 0 0;font-weight:400}.static-field{padding:11px 12px;background:#f2f2f0;border:1px solid #ddd;border-radius:4px;margin-top:8px;color:#777}.creator-check{display:flex;gap:10px;align-items:flex-start;font-size:12px;margin:3px 0 20px;cursor:pointer}.creator-check input{accent-color:#222;margin:4px 0 0;flex-shrink:0}.creator-check small{display:block;color:#888;font-size:11px;margin-top:3px;line-height:1.9}.check-row{display:flex;gap:24px;flex-wrap:wrap}.creator-explanation{font-size:12px;line-height:1.9;color:#777;margin:18px 0 0}.card-type-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.card-type{padding:25px 22px;border:1px solid #ddd;background:#f8f8f7;border-radius:5px;text-align:left;min-height:220px;display:flex;flex-direction:column;justify-content:space-between}.card-type .type-no{font-size:10px;letter-spacing:1.3px;color:#888;font-family:monospace}.card-type strong{font-size:29px;font-weight:500;letter-spacing:3px;margin-top:24px}.card-type p{font-size:12px;line-height:1.9;color:#777;margin:10px 0 25px}.card-type .type-mark{font-size:11px;color:#666}.card-type.selected{background:#252525;border-color:#252525;color:#fff}.card-type.selected .type-no,.card-type.selected p,.card-type.selected .type-mark{color:#bbb}.creator-preview{position:sticky;top:24px;min-width:0;border:1px solid #e1e1e1;border-radius:5px;overflow:hidden;background:#fff}.preview-heading{padding:13px 15px;border-bottom:1px solid #e6e6e6;display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:11px}.preview-heading small{font-size:9px;color:#999}.preview-cover{height:190px;background:#e2e2de;display:grid;place-items:center;overflow:hidden}.preview-cover>span{font-size:72px;font-family:"Songti SC",Georgia,serif;color:#777}.preview-cover img{width:100%;height:100%;object-fit:cover}.preview-role-info{padding:0 18px 16px;position:relative}.preview-avatar{width:44px;height:44px;border-radius:50%;overflow:hidden;margin-top:-22px;background:#eee;border:3px solid white;display:grid;place-items:center;font-size:17px;font-family:serif;position:relative}.preview-avatar img{width:100%;height:100%;object-fit:cover}.preview-role-info h3{font-size:17px;font-weight:550;margin:9px 0 1px;overflow-wrap:anywhere}.preview-role-info>small{font-size:10px;color:#888}.preview-role-info>p{font-size:12px;line-height:1.85;color:#666;white-space:pre-wrap;max-height:140px;overflow:auto;margin:13px 0}.preview-opening{border-top:1px solid #eee;padding:17px}.preview-opening>strong{font-size:11px;font-weight:500;color:#555}.preview-opening>div{white-space:pre-wrap;font-size:12px;line-height:1.9;color:#777;margin-top:10px;max-height:240px;overflow:auto;overflow-wrap:anywhere}.preview-annotation{padding:13px 17px;border-top:1px solid #eee;color:#999;font-size:10px;line-height:1.9}.creator-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fafafaf5;backdrop-filter:blur(10px);border-top:1px solid #ddd;position:sticky;bottom:0;padding:17px 0;z-index:5;margin-top:20px}.creator-footer>span{font-size:10px;color:#999;font-family:monospace}.creator-footer>div{display:flex;gap:10px}.creator-footer .solid-btn{gap:12px}.creator-error{color:#333;background:#ededeb;border-radius:4px;padding:12px 16px;font-size:12px;margin-bottom:16px}.creator-error:empty{display:none}.creator-details{border-top:1px solid #e4e4e4;padding:0;margin:0}.creator-details:last-child{border-bottom:1px solid #e4e4e4}.creator-details>summary{display:flex;justify-content:space-between;align-items:center;padding:17px 0;font-size:13px;font-weight:500;list-style:none;cursor:pointer}.creator-details>summary::-webkit-details-marker{display:none}.creator-details>summary>span{font-size:19px;color:#999;font-weight:400}.creator-details[open]>summary>span{transform:rotate(45deg)}.creator-details[open]{padding-bottom:18px}.creator-details>p.field-hint{margin:-2px 0 18px}.member-entry{background:#f8f8f6;border:1px solid #e1e1df;border-radius:4px;padding:17px;margin:0 0 18px}.member-entry>summary{cursor:pointer;list-style:none;font-size:12px;color:#555;font-weight:550;display:flex;justify-content:space-between;gap:12px}.member-entry>summary::-webkit-details-marker{display:none}.member-entry[open]>summary{margin-bottom:19px}.member-entry>summary>span+span{font-size:10px;color:#999;font-weight:400}.member-entry .creator-field{margin-bottom:16px}.entry-actions{display:flex;gap:15px;align-items:center;flex-wrap:wrap}.entry-actions button{font-size:11px;color:#777;padding:4px 0}.entry-actions .outline-btn{padding:7px 12px}.image-editor{display:grid;grid-template-columns:150px 1fr;gap:25px}.cover-upload{height:204px;border:1px dashed #bfbfba;border-radius:5px;background:#f4f4f1;position:relative;overflow:hidden;display:grid;place-items:center;cursor:pointer}.cover-upload>span{font-size:29px;color:#888;text-align:center}.cover-upload small{display:block;font-size:11px;margin-top:3px}.cover-upload>img{width:100%;height:100%;object-fit:cover}.cover-upload>input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.image-settings>p{font-size:11px;color:#888;line-height:1.8;margin:0 0 14px}.avatar-preview{width:56px;height:56px;border:1px solid #ddd;background:#eee;border-radius:50%;overflow:hidden;display:grid;place-items:center;color:#888;font-size:11px;margin-bottom:13px}.avatar-preview img{width:100%;height:100%;object-fit:cover}.image-settings .creator-field{font-size:11px;margin-bottom:10px}.image-settings .creator-field>input{padding:0;accent-color:#333;margin-top:5px}.image-settings>small{display:block;font-size:10px;color:#888;margin-top:10px}.item-thumb{height:70px;width:70px;object-fit:cover;border-radius:4px;margin:0 0 15px}.interaction-editor{border-top:1px solid #ddd;padding-top:14px}.regex-result{background:#f1f1ed;border:1px solid #e0e0dc;padding:13px;margin-top:14px;white-space:pre-wrap;font-size:12px;line-height:1.9;max-height:300px;overflow:auto}.regex-result:empty{display:none}.rich-frame{display:block;border:0;width:100%;min-width:0;background:transparent;max-width:100%}.review-top>h2{font-size:24px;font-weight:500;margin:12px 0}.review-top>p{font-size:12px;line-height:1.9;color:#777;white-space:pre-wrap}.review-type{font-size:10px;color:#888;border:1px solid #ddd;padding:4px 8px;border-radius:3px}.review-checks{display:flex;gap:18px;flex-wrap:wrap;border-block:1px solid #eee;padding:15px 0;margin:22px 0;color:#aaa;font-size:12px}.review-checks .complete{color:#333}.review-sections p{font-size:11px;color:#888;line-height:1.9;margin:9px 0}.review-sections strong{font-weight:500;color:#555;margin-right:12px}.debug-messages{max-height:340px;overflow:auto;background:#f7f7f5;border:1px solid #e6e6e2;border-radius:4px;padding:17px;margin:18px 0}.debug-message{margin:0 0 20px}.debug-message:last-child{margin-bottom:0}.debug-message>small{font-size:10px;color:#999}.debug-message>p{white-space:pre-wrap;font-size:13px;line-height:1.9;margin:7px 0 0;overflow-wrap:anywhere}.debug-message.user>p{color:#666}.debug-actions{display:flex;justify-content:space-between;align-items:center;gap:15px}.draft-list{display:grid;gap:9px;margin-top:20px;max-height:55vh;overflow:auto}.draft-list button{border:1px solid #ddd;border-radius:4px;padding:13px;display:flex;align-items:center;justify-content:space-between;background:white;text-align:left;font-size:12px}.draft-list small{display:block;font-size:10px;color:#999;margin-top:4px}.recovery-banner{background:#efefeb;border:1px solid #deded7;border-radius:4px;padding:12px 16px;font-size:11px;color:#666;display:flex;align-items:center;gap:15px;margin-bottom:20px}.recovery-banner button{font-size:11px}.recovery-banner button:last-child{margin-left:auto;font-size:18px;color:#999}.role-cover-image{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.chat-host{height:100%;min-width:0;contain:layout paint;position:relative}.chat-host .chat-column,:host .chat-column{height:100%}.chat-heading-actions{display:flex;gap:10px;align-items:center}.chat-header>div:first-child{min-width:0}.chat-header h1{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:280px}.chat-profile{overflow:auto;max-height:100%;padding-bottom:15px}.author-note{border-top:1px solid #ddd;margin-top:20px;padding-top:16px}.author-note>strong{font-size:11px;font-weight:500}.author-note p,.author-text{white-space:pre-wrap}.author-note p{margin-top:8px!important}.inventory-item{border:1px solid #e0e0da;border-radius:4px;padding:12px;margin:12px 0}.inventory-item>strong{font-size:12px;font-weight:500}.inventory-item p{margin-top:8px;font-size:11px;line-height:1.8;white-space:pre-wrap}.inventory-item img{width:50px;height:50px;object-fit:cover;float:right;border-radius:4px;margin:0 0 8px 8px}.inventory-item .outline-btn{font-size:10px;margin:5px 5px 0 0;width:auto!important;padding:5px 8px}#chat-inventory>h3{font-size:12px;font-weight:500;margin:24px 0 10px}#chat-inventory>p{font-size:11px}.message>div{min-width:0;flex:1}
@media(max-width:1200px){.creator-layout{grid-template-columns:minmax(0,1fr) 225px;gap:18px}.creator-block{padding:20px}.creator-heading{gap:15px}.creator-toolbar{max-width:260px}.creator-steps button{font-size:11px;gap:7px;padding:15px 10px}.image-editor{grid-template-columns:125px 1fr;gap:18px}.cover-upload{height:180px}.card-type{padding:20px 16px}.card-type strong{font-size:25px}.creator-three{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:950px){.creator-layout{grid-template-columns:minmax(0,1fr)}.creator-preview{position:static;display:none}.creator-heading h1{font-size:24px}.creator-toolbar{padding-top:13px}.creator-steps{margin-bottom:22px}.creator-field textarea{font-size:14px}.creator-field input:not([type=checkbox]),.creator-field select{font-size:14px}.chat-host{height:100%}}
@media(max-width:600px){.creator-heading{display:block;margin-bottom:20px}.creator-heading h1{font-size:25px}.creator-toolbar{max-width:none;justify-content:flex-start;gap:7px;padding-top:16px}.creator-toolbar .outline-btn{padding:7px 12px}.creator-steps{margin-inline:-20px;padding-inline:12px}.creator-steps button{flex:0 0 auto;padding:13px 12px;font-size:11px;gap:7px}.creator-steps button span{font-size:9px}.creator-block{padding:20px 17px;border-radius:4px}.creator-block-heading h2{font-size:15px}.card-type-grid{gap:10px}.card-type{min-height:215px;padding:18px 14px}.card-type strong{font-size:24px;letter-spacing:1px}.card-type p{font-size:11px}.creator-two,.creator-three{grid-template-columns:1fr;gap:0}.image-editor{grid-template-columns:110px 1fr;gap:16px}.cover-upload{height:160px}.image-settings>p{font-size:10px}.creator-footer{margin-inline:-20px;padding:14px 20px;gap:8px}.creator-footer .solid-btn{padding:10px 13px;font-size:11px;gap:5px}.creator-footer .outline-btn{padding:8px 9px;font-size:10px}.creator-footer>span{display:none}.creator-footer .text-btn{font-size:11px;padding-left:0}.creator-footer>div{gap:7px}.member-entry{padding:14px}.debug-actions{gap:8px}.debug-actions .solid-btn{font-size:11px;padding:10px 14px;gap:0}.recovery-banner{flex-wrap:wrap;gap:5px 12px}.recovery-banner button:last-child{margin-left:0}.chat-header h1{max-width:130px}.chat-heading-actions{gap:5px}.chat-heading-actions .text-btn{font-size:10px}.chat-heading-actions .api-badge{font-size:8px;max-width:130px}.rich-frame{max-width:100%}}

.debug-content{white-space:pre-wrap;font-size:13px;line-height:1.9;margin:7px 0 0;overflow-wrap:anywhere}

.message-avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}

.creator-field small,.creator-steps button span,.preview-annotation,.preview-heading small{color:#666}.field-hint{color:#666!important}.creator-heading p:empty{display:none}
@media(max-width:600px){.creator-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));overflow:visible}.creator-steps button{min-width:0;padding:12px 2px;font-size:11px;display:flex;flex-direction:column;align-items:center;gap:4px;white-space:nowrap}.creator-steps button span{font-size:10px;margin:0}.creator-heading{margin-bottom:18px}.creator-toolbar{padding-top:10px}.creator-field textarea{min-height:100px}}

body.immersive-active>.sidebar,body.immersive-active>.workspace>header,body.immersive-active footer{visibility:hidden}body.immersive-active #main{padding:0;margin:0}.immersive-host{position:fixed;inset:0;z-index:35;height:100dvh!important;width:100vw}.import-code{width:100%;min-height:160px;font:12px/1.6 monospace}

#dialog.wide-theme-preview{width:min(94vw,720px);max-width:720px}#dialog.wide-theme-preview .modal-body{padding:0}
