.builder-choice-screen{min-height:80dvh;display:grid;place-items:center;padding:32px 20px}.builder-choice{max-width:768px;width:100%;border:1px solid #2b2b2b;background:#171717;border-radius:16px;padding:24px}.builder-choice header{display:flex;align-items:center;justify-content:space-between;margin-bottom:40px}.builder-choice h1{font-size:16px;font-weight:400;margin:0}.builder-choice header a{color:#777}.builder-choice>div{display:grid;grid-template-columns:1fr 1fr;gap:12px}.builder-choice [data-create-type]{position:relative;overflow:hidden;min-height:304px;text-align:left;border:1px solid #333;border-radius:12px;background:#222;padding:0;color:#fff}.builder-choice [data-create-type]:hover{border-color:#c5a46c}.builder-choice img{width:100%;height:304px;object-fit:cover}.builder-choice button>span{position:absolute;inset:35% 0 0;display:flex;flex-direction:column;justify-content:flex-end;padding:12px 10px 16px;background:linear-gradient(transparent,#000)}.builder-choice strong{font-size:16px;font-weight:500}.builder-choice small{font-size:12px;line-height:18px;color:#aaa;margin-top:8px}.builder-editor{min-height:100dvh;color:#ddd}.builder-header{height:56px;border-bottom:1px solid #2b2b2b;display:flex;align-items:center;gap:16px;padding:8px 16px}.builder-header>a{font-size:24px;color:#888}.builder-header h1{font-size:16px;font-weight:400;margin:0}.builder-header>span{margin-left:auto;color:#888;font-size:12px}.builder-header>button{display:flex;align-items:center;gap:6px;border-radius:6px;padding:8px 12px;background:#222}.builder-header>.shell-white-button{background:#eee}.builder-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.builder-main{border-right:1px solid #2b2b2b;min-width:0;display:flex;flex-direction:column;min-height:calc(100dvh - 56px)}.builder-steps{height:44px;display:flex;gap:24px;align-items:center;overflow-x:auto;padding:0 24px;border-bottom:1px solid #2b2b2b;white-space:nowrap}.builder-steps button{font-size:14px;color:#999}.builder-steps span{color:#c5a46c;margin-left:2px}.builder-steps [aria-current=step]{color:#fff}.builder-fields{padding:24px;flex:1}.builder-field{margin-bottom:32px}.builder-field>label:first-child{display:block;font-size:14px;font-weight:500;margin-bottom:8px}.builder-field p{font-size:13px;line-height:20px;color:#888;margin:0 0 12px}.builder-field input:not([type=file]),.builder-field textarea{width:100%;display:block;color:#eee;background:#1c1c1c;border:1px solid #333;border-radius:8px;padding:12px;font:14px/1.6 inherit;box-sizing:border-box;resize:vertical;margin-bottom:8px}.builder-field input:focus,.builder-field textarea:focus{outline:1px solid #aaa}.builder-field small{display:block;text-align:right;font-size:12px;color:#777}.builder-field [type=file]{max-width:100%;font-size:12px;color:#999}.builder-upload{display:flex;width:128px;height:176px;background:#222;border:1px dashed #555;border-radius:8px;flex-direction:column;align-items:center;justify-content:center;gap:12px;margin:12px 0;cursor:pointer}.builder-upload img{width:100%;height:136px;object-fit:cover}.builder-upload span{font-size:12px}.builder-controls{position:sticky;bottom:0;background:#111f;border-top:1px solid #2b2b2b;padding:16px;display:flex;justify-content:space-between;gap:16px}.builder-controls button{border:1px solid #333;border-radius:8px;padding:10px 28px}.builder-controls button:disabled{opacity:.3;cursor:default}.builder-preview{padding:0 24px;min-width:0;background:#111}.builder-preview>header{display:flex;align-items:center;justify-content:space-between;height:44px;border-bottom:1px solid #292929}.builder-preview h2{font-size:16px;font-weight:400}.builder-preview>header button{display:none}.builder-preview-card{max-width:192px;margin:32px auto}.builder-preview-card>img,.builder-cover-placeholder{width:192px;height:288px;border-radius:12px;object-fit:cover;background:#222;display:grid;place-items:center;color:#777}.builder-preview-card h3{font-size:16px;margin:12px 0 6px;overflow-wrap:anywhere}.builder-preview-card p,.builder-preview>p{font-size:12px;color:#888;line-height:20px}.builder-scene{white-space:pre-wrap;overflow-wrap:anywhere;border-top:1px solid #292929;padding:24px 0;font-size:14px;line-height:1.7}.builder-scene h3{font-size:14px}.builder-scene span{display:block;border:1px solid #333;border-radius:8px;padding:12px;margin:8px 0;color:#aaa}.builder-mobile-preview{display:none}.library-draft>a{display:block}.library-draft img{max-height:200px;object-fit:cover}.library-controls{gap:12px}.library-controls select{max-width:160px}.library-controls>span{margin-right:auto}@media(max-width:1023px){.builder-layout{grid-template-columns:1fr}.builder-preview{display:none}.builder-preview.is-open{display:block;position:fixed;inset:56px 0 0;z-index:40;overflow:auto;padding-bottom:40px}.builder-preview>header button{display:block}.builder-mobile-preview{display:block;position:fixed;right:16px;bottom:84px;z-index:30;background:#333;color:#fff;border:1px solid #666;border-radius:24px;padding:10px 20px}.builder-header{position:sticky;top:0;z-index:20;background:#111}.builder-main{border-right:0}.builder-controls{padding-bottom:max(16px,env(safe-area-inset-bottom))}}@media(max-width:600px){.builder-choice{padding:20px}.builder-choice header{margin-bottom:24px}.builder-choice>div{grid-template-columns:1fr}.builder-choice [data-create-type],.builder-choice img{height:220px;min-height:220px}.builder-fields{padding:24px 16px}.builder-steps{padding:0 16px;gap:20px}.builder-header{gap:10px;padding:8px 12px}.builder-header>span{font-size:10px}.builder-header>button{padding:8px}.builder-header [data-draft-save] svg{display:none}.library-controls{flex-wrap:wrap}.library-controls>span{flex-basis:100%}}
#precision-view[data-page=builder] [data-shrink]{display:none!important}#precision-view[data-page=builder] .shell-content{margin-left:0!important;padding-bottom:0!important}#precision-view[data-page=builder] .builder-choice-screen{min-height:100dvh}
.builder-field{position:relative}.builder-ai-trigger{color:#f5f3ee;font-size:12px;min-height:36px;border:1px solid #d9ee9133;border-radius:8px;padding:6px 12px;margin:8px 0}.builder-ai label{display:block;margin:16px 0 8px;color:#bbb}.builder-ai textarea{display:block;width:100%;box-sizing:border-box;resize:vertical;border:1px solid #ffffff24;border-radius:8px;background:#202020;color:#eee;padding:12px;font:14px/1.7 Inter,sans-serif}.builder-ai p{font-size:12px;color:#999;line-height:1.7}.builder-ai-actions{display:flex;gap:12px;margin:16px 0}.builder-ai button{padding:10px 16px;border-radius:8px}.builder-ai button:disabled{opacity:.45}.builder-ai [data-ai-status]{min-height:24px}

/* ---- v2: studio window ---- */
.builder-choice [data-create-type]{min-height:320px;background:#111113;border-color:#ffffff17;transition:transform .25s,border-color .25s,box-shadow .25s}
.builder-choice [data-create-type]:hover{border-color:#f5f3ee;transform:translateY(-3px);box-shadow:0 18px 40px #0009,0 0 0 1px #bba68044}
.builder-choice .builder-art{display:block;position:absolute;inset:0}.builder-choice .builder-art svg{width:100%;height:100%;display:block}
.builder-choice header h1{font-size:18px;font-weight:600;letter-spacing:.01em}.builder-choice{background:linear-gradient(180deg,#111113,#141414);border-color:#ffffff17}
.builder-choice button>span{inset:45% 0 0;background:linear-gradient(transparent,#000d 60%)}.builder-choice strong{font-size:18px;color:#f5f3ee}
#precision-view[data-page=builder] .builder-editor{position:fixed;inset:0;z-index:40;display:flex;align-items:center;justify-content:center;padding:28px;background:radial-gradient(1200px 600px at 50% -10%,#17171a 0,#111113 70%);overflow:auto}
#precision-view[data-page=builder] .builder-editor:before{content:"";position:absolute;inset:0;background:#000a;backdrop-filter:blur(6px);z-index:-1}
.builder-editor>.builder-header,.builder-editor>.builder-layout{width:min(1180px,100%)}
.builder-editor{flex-direction:column;gap:0}
.builder-header{position:relative;height:64px;border:1px solid #ffffff17;border-bottom:0;border-radius:20px 20px 0 0;background:linear-gradient(180deg,#111113,#111113);padding:0 20px}
.builder-header h1{font-size:18px;font-weight:600;color:#f5f3ee}.builder-header>a{font-size:22px;color:#f5f3ee;width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:#ffffff0d}
.builder-header>button{background:#ffffff10;border:1px solid #ffffff14}.builder-header>.shell-white-button{background:#f5f3ee;color:#121212;border-color:#f5f3ee;font-weight:600}
.builder-layout{border:1px solid #ffffff17;border-radius:0 0 20px 20px;background:#121212;overflow:hidden;max-height:calc(100dvh - 156px);box-shadow:0 40px 90px #000a}
.builder-main{border-right:1px solid #ffffff17;min-height:0;max-height:calc(100dvh - 156px);overflow:hidden}
.builder-steps{height:auto;padding:16px 24px;gap:10px;background:#111113}
.builder-steps button{display:flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;border:1px solid #2f2a1c;font-size:13px;color:#a89b78}
.builder-steps button b{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#2a2417;font-size:11px;font-weight:600}
.builder-steps [aria-current=step]{color:#121212;background:#f5f3ee;border-color:#f5f3ee}.builder-steps [aria-current=step] b{background:#1a140866;color:#121212}
.builder-steps span{display:none}
.builder-fields{overflow:auto;padding:28px 32px}
.builder-field>label:first-child{font-size:15px;font-weight:600;color:#f5f3ee;margin-bottom:6px}
.builder-field input:not([type=file]),.builder-field textarea{background:#111113;border:1px solid #ffffff17;border-radius:12px;padding:14px 16px;font-size:15px;line-height:1.7;transition:border-color .2s,box-shadow .2s}
.builder-field input:focus,.builder-field textarea:focus{outline:0;border-color:#f5f3ee;box-shadow:0 0 0 3px #D4A85322}
.builder-ai-trigger{color:#121212;background:linear-gradient(135deg,#f5f3ee,#f5f3ee);border:0;border-radius:999px;font-weight:600;padding:7px 16px;min-height:0;cursor:pointer}
.builder-ai-trigger:hover{filter:brightness(1.08)}
.builder-upload{border-color:#4a3f26;background:#111113;width:150px;height:200px;border-radius:14px}.builder-upload img{height:100%;border-radius:12px}
.builder-controls{background:#111113;border-top:1px solid #ffffff17}.builder-controls button{border-radius:999px;padding:10px 32px}
.builder-controls .shell-white-button{background:#f5f3ee;color:#121212;font-weight:600;border-color:#f5f3ee}
.builder-preview{background:linear-gradient(180deg,#111113,#0f0f0f);overflow:auto;max-height:calc(100dvh - 156px)}
.builder-preview>header{border-bottom:1px solid #ffffff17}.builder-preview-card h3{color:#f5f3ee}
.builder-scene{border-top:1px solid #ffffff17;font-family:"Noto Serif SC",Georgia,serif;line-height:1.9}
.builder-ai h2{font-size:20px;font-weight:600;color:#f5f3ee;margin:0 0 8px}
.builder-ai textarea{background:#111113;border-color:#ffffff17;border-radius:12px;font-size:15px;line-height:1.85}.builder-ai textarea:focus{outline:0;border-color:#f5f3ee}
.builder-ai .shell-white-button{background:#f5f3ee;color:#121212;font-weight:600;border-radius:999px;padding:10px 22px}
#modal:has(.builder-ai,.builder-review){border:1px solid #ffffff1a;border-radius:16px;background:#171717;font-size:14px}
#modal:has(.builder-ai){width:min(760px,calc(100vw - 24px));max-width:none}
@media(max-width:820px){#precision-view[data-page=builder] .builder-editor{padding:0;align-items:stretch}.builder-header{border-radius:0}.builder-layout{border-radius:0;max-height:none;flex:1}.builder-main{max-height:none}.builder-fields{padding:20px 16px}}
.builder-cover-result{display:flex;justify-content:center;margin:12px 0}.builder-cover-result img{max-height:46dvh;border-radius:14px;border:1px solid #ffffff17;box-shadow:0 18px 40px #0008}
.builder-upload+.builder-ai-trigger{margin:0 0 12px}
.builder-field:has(>input[type=file]){position:relative}
.builder-field>input[type=file]{position:absolute;left:0;top:0;width:1px;height:1px;padding:0;border:0;opacity:0;clip-path:inset(50%);overflow:hidden}
.builder-field:has(>input[type=file]:focus-visible) .builder-upload{outline:2px solid #c5a46c;outline-offset:3px}
.builder-leave h2{font-size:20px;margin:0 0 12px}
.builder-leave p{font-size:14px;line-height:1.7;color:#bbb;margin:0 0 16px}
.builder-leave button{min-height:44px;padding:10px 16px;margin:6px 6px 0 0;border:1px solid #3a3a3a;border-radius:8px;background:#222;color:#fafafa}
.builder-leave .shell-white-button{background:#fafafa;color:#171717;font-weight:500}
.builder-leave button:focus-visible{outline:2px solid #c5a46c;outline-offset:3px}
#modal:has(.builder-leave){width:min(520px,calc(100vw - 24px));max-width:none;border:1px solid #3a3a3a;border-radius:12px;background:#171717}
.builder-ai #ai-result{min-height:200px;max-height:36dvh}.builder-ai #ai-idea{max-height:20dvh}#modal:has(.builder-ai){max-height:94dvh;overflow:auto}
.builder-review h2{font-size:20px;font-weight:600;color:#f5f3ee;margin:0 0 12px}.builder-checklist{list-style:none;margin:0 0 16px;padding:0;display:grid;gap:8px}.builder-checklist li{display:flex;gap:10px;align-items:center;padding:10px 14px;border-radius:12px;background:#111113;border:1px solid #ffffff17;color:#bbb}.builder-checklist li[data-ok=true]{color:#f5f3ee;border-color:#bba68044}.builder-checklist b{color:#f5f3ee;width:18px}
.builder-review p{font-size:13px;line-height:1.7;color:#999}.builder-review button{padding:10px 20px;border-radius:999px;border:1px solid #ffffff17}.builder-review .shell-white-button{background:#f5f3ee;color:#121212;font-weight:600;border-color:#f5f3ee}.builder-review button:disabled{opacity:.4;cursor:not-allowed}
#modal:has(.builder-review){width:min(520px,calc(100vw - 24px))}
.library-draft{position:relative}.library-play{position:absolute;right:16px;top:16px;padding:8px 18px;border-radius:999px;background:#f5f3ee;color:#121212;font-weight:600;font-size:13px}
.builder-visibility{border:0;margin:0 0 14px;padding:0;display:grid;gap:8px}.builder-visibility legend{font-size:13px;color:#bbb;margin-bottom:8px;padding:0}
.builder-visibility label{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border-radius:12px;background:#111113;border:1px solid #ffffff17;cursor:pointer}.builder-visibility label:has(input:checked){border-color:#f5f3ee;background:#211c11}.builder-visibility label[data-disabled=true]{opacity:.45;cursor:not-allowed}
.builder-visibility input{margin-top:4px;accent-color:#f5f3ee}.builder-visibility strong{display:block;color:#f5f3ee;font-weight:600}.builder-visibility small{display:block;color:#999;font-size:12px;line-height:1.5;margin-top:2px}
.builder-share{display:flex;gap:8px;margin:0 0 14px}.builder-share input{flex:1;min-width:0;padding:10px 12px;border-radius:10px;background:#111113;border:1px solid #ffffff17;color:#eee}[data-publish-error]{min-height:18px;color:#ff9a8a}

/* ---- v3: editorial polish for Community, My Titles & Builder ---- */
.library-content{max-width:1040px;margin:20px auto 64px;padding:0 24px}
.library-header{padding:12px 0 20px;border-bottom:1px solid #ffffff0e}
.library-header h1{font-size:24px;font-weight:600;letter-spacing:-.02em;color:#f7f4ec}
.library-header .shell-white-button{border-radius:999px;padding:9px 20px;font-size:13px;font-weight:600;background:#f5f3ee;color:#121212;transition:transform .18s,background .18s}
.library-header .shell-white-button:hover{background:#fff;transform:translateY(-1px)}
.library-tabs{padding:18px 0 12px;gap:8px}
.library-tabs button{height:34px;border-radius:999px;padding:0 16px;font-size:13px;border:1px solid rgba(255,255,255,.1);color:#949088;background:transparent;transition:border-color .18s,color .18s,background .18s}
.library-tabs button:hover{color:#eee;border-color:rgba(255,255,255,.24)}
.library-tabs button[aria-selected=true]{background:#f5f3ee;color:#121212;border-color:#f5f3ee;font-weight:600}
.community-note{font-size:13px;color:#7e7a72;margin:0 0 8px;line-height:1.6}
.library-items{grid-template-columns:repeat(auto-fill,216px);gap:24px 20px;padding:20px 0 32px;justify-content:start}
.library-draft{padding:0;overflow:hidden;border-radius:12px;background:#161617;border:1px solid rgba(255,255,255,.08);transition:transform .24s cubic-bezier(.22,1,.36,1),border-color .24s,box-shadow .24s}
.library-draft:hover{border-color:rgba(255,255,255,.22);box-shadow:0 20px 44px #0009}
.library-draft>a{display:flex;flex-direction:column;height:100%}
.library-draft img{width:100%;max-height:none;aspect-ratio:2/3;object-fit:cover;display:block;transition:transform .35s cubic-bezier(.22,1,.36,1)}
.library-draft:hover img{transform:scale(1.03)}
.library-draft:not(.community-card)>a{padding:14px}
.library-draft:not(.community-card) img{border-radius:10px;margin-bottom:12px}
.community-poster{position:relative;overflow:hidden;aspect-ratio:2/3;background:#1c1a16}
.community-noimg{width:100%;height:100%;display:grid;place-items:center;color:#665e4e;background:radial-gradient(circle at 50% 35%,#272118,#141310)}
.community-type-pill{position:absolute;top:10px;left:10px;padding:4px 10px;border-radius:999px;font-size:11px;letter-spacing:.02em;color:#f5f3ee;background:#121212cc;border:1px solid #bba68044;backdrop-filter:blur(8px)}
.community-card-body{padding:14px 16px 16px;display:flex;flex-direction:column;gap:5px;flex:1}
.community-card-body h2{font-size:15px;font-weight:600;color:#f6f4ee;margin:0;line-height:1.35;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.community-card-body p{font-size:13px;color:#999;margin:0;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.community-card-body small{margin-top:auto;padding-top:10px;font-size:12px;color:#73706a}
.library-play{right:12px;top:12px;padding:6px 14px;font-size:12px;box-shadow:0 6px 18px #0008}
.builder-choice{max-width:740px;padding:28px;border-radius:20px;background:#111113;border:1px solid #ffffff17;box-shadow:0 32px 80px #000a}
.builder-choice header{margin-bottom:28px}
.builder-choice header h1{font-size:20px;font-weight:600;letter-spacing:-.01em;color:#f7f4ec}
.builder-choice>div{gap:16px}
.builder-choice [data-create-type]{min-height:312px;border-radius:16px;border:1px solid #ffffff17;transition:transform .26s cubic-bezier(.22,1,.36,1),border-color .26s,box-shadow .26s}
.builder-choice [data-create-type]:hover{transform:translateY(-4px);border-color:#bba68044;box-shadow:0 22px 48px #000a,0 0 0 1px #D4A85333}
.builder-choice button>span{inset:auto 0 0;min-height:126px;justify-content:flex-start;padding:24px 18px 20px;background:linear-gradient(transparent,#000d 28%,#000e 100%)}
.builder-choice strong{font-size:18px;letter-spacing:-.01em;color:#f8f3e6}
.builder-choice small{font-size:13px;line-height:1.55;color:#aaa}
.builder-ai-trigger{color:#ebd59d;background:#D4A85314;border:1px solid #bba68044;font-weight:500;padding:6px 14px;transition:background .18s,border-color .18s,color .18s}
.builder-ai-trigger:hover{background:#D4A85328;border-color:#bba68044;color:#fff4d6;filter:none}
.builder-field{margin-bottom:28px}
.builder-field>label:first-child{font-size:14px;color:#eee8da}
.builder-field input:not([type=file]),.builder-field textarea{background:#17171a;border:1px solid #ffffff17;border-radius:10px;padding:12px 14px;font-size:14px}
.builder-field input:focus,.builder-field textarea:focus{border-color:#bba68044;box-shadow:0 0 0 3px #D4A8531a}
.builder-preview-card{max-width:210px}
.builder-preview-card>img,.builder-cover-placeholder{width:210px;height:315px;border-radius:14px;border:1px solid #ffffff12}

/* ---- v4: pro studio editor polish (/builder/story/new) ---- */
#precision-view[data-page=builder] .builder-editor{background:radial-gradient(1000px 480px at 50% -15%,#17171a 0,#0d0d0d 68%)}
.builder-header{background:#111113;border-color:#ffffff17;height:60px}
.builder-header h1{font-size:16px;font-weight:600;color:#f5f0e4;letter-spacing:-.01em}
.builder-header>a{width:34px;height:34px;font-size:20px;color:#d6be86;background:#ffffff0a;border:1px solid #ffffff10;transition:background .16s,border-color .16s}
.builder-header>a:hover{background:#ffffff14;border-color:#bba68044}
.builder-header>button{height:34px;padding:0 14px;border-radius:999px;font-size:13px;background:#17171a;border:1px solid #ffffff17;color:#e8e2d5;transition:border-color .16s,background .16s}
.builder-header>button:hover{border-color:#4c4333;background:#17171a}
.builder-header>.shell-white-button{background:#f5f3ee;color:#121212;border-color:#f5f3ee;font-weight:600}
.builder-header>.shell-white-button:hover{background:#fff}
.builder-layout{border-color:#ffffff17;background:#111113;box-shadow:0 36px 88px #000b}
.builder-main{border-right-color:#ffffff17}
.builder-steps{background:#111113;border-bottom:1px solid #ffffff17;padding:12px 28px;gap:8px}
.builder-steps button{padding:7px 14px;font-size:13px;border-color:#ffffff17;color:#8e877a;background:transparent;transition:border-color .16s,color .16s,background .16s}
.builder-steps button:hover{color:#e6decb;border-color:#443c2e}
.builder-steps [aria-current=step]{background:#17171a;color:#f5f3ee;border-color:#bba68044}
.builder-steps [aria-current=step] b{background:#f5f3ee;color:#121212}
.builder-fields{padding:24px 28px 32px}
.builder-field{margin-bottom:24px}
.builder-field-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}
.builder-field-head>label{font-size:14px;font-weight:600;color:#f3eee2;margin:0}
.builder-field-head .builder-ai-trigger{margin:0;padding:5px 12px;font-size:12px;line-height:1.4;flex-shrink:0}
.builder-field p{font-size:12.5px;color:#827d74;margin:0 0 10px;line-height:1.55}
.builder-cover-block{display:flex;align-items:center;gap:20px;padding:16px;border-radius:14px;background:#111113;border:1px solid #17171a}
.builder-cover-block .builder-upload{width:116px;height:174px;margin:0;flex-shrink:0;border-radius:12px;border:1px dashed #453c2c;background:#1b1915;color:#a89b7e;gap:8px;transition:border-color .18s,background .18s}
.builder-cover-block .builder-upload:hover{border-color:#bba68044;background:#211d16}
.builder-cover-block .builder-upload img{width:100%;height:100%;border-radius:11px;object-fit:cover}
.builder-cover-aside{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}
.builder-cover-aside>label{font-size:14px;font-weight:600;color:#f3eee2;margin:0}
.builder-cover-aside>p{margin:0 0 6px}
.builder-cover-aside .builder-ai-trigger{margin:0}
.builder-cover-aside [data-image-error]{color:#ff9a8a;margin:4px 0 0;min-height:0}
.builder-controls{background:#111113;border-top-color:#ffffff17;padding:14px 28px}
.builder-controls button{height:38px;padding:0 24px;font-size:13px;border-color:#ffffff17;color:#d6d0c4}
.builder-controls .shell-white-button{background:#f5f3ee;color:#121212;border-color:#f5f3ee}
.builder-preview{background:#111113;padding:0 28px}
.builder-preview>header{height:52px;border-bottom-color:#ffffff17}
.builder-preview>header h2{font-size:13px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#8e877a}
.builder-preview-card{margin:24px auto 20px;text-align:left}
.builder-preview-card h3{font-size:16px;font-weight:600;color:#f6f3ec;margin:14px 0 4px}
.builder-preview-card p{font-size:13px;color:#948f86;line-height:1.55;margin:0}
.builder-scene{border-top-color:#ffffff17;padding:20px 0 28px;font-size:13.5px;line-height:1.8;color:#d6d2ca}
.builder-scene h3{font-size:12px;font-weight:600;letter-spacing:.04em;color:#f5f3ee;margin:0 0 10px}
.builder-scene span{border-color:#2a261e;background:#111113;border-radius:10px;padding:10px 14px;font-size:13px;color:#cfc9bc}
@media(max-width:600px){.library-content{padding:0 16px}.library-items{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px}.community-card-body{padding:10px 12px 12px}.community-card-body h2{font-size:14px}.community-card-body p{font-size:12px}.builder-steps{padding:10px 12px;gap:6px}.builder-steps button{padding:6px 10px;font-size:12px;gap:5px}.builder-steps button b{width:17px;height:17px;font-size:10px}.builder-fields{padding:18px 16px 108px}.builder-cover-block{gap:14px;padding:12px}.builder-cover-block .builder-upload{width:92px;height:138px}.builder-controls{padding:12px 16px}.builder-mobile-preview{bottom:76px;right:14px;padding:8px 16px;font-size:13px;background:#1c1914ee;border-color:#bba68044;color:#f5f3ee;backdrop-filter:blur(8px)}}

@media (max-width:767px) {
  .builder-choice header a {display:inline-grid;place-items:center;min-width:44px;min-height:44px}
}

.cast-picker,.cast-consent {margin:0 0 24px;padding:14px;border:1px solid #ffffff19;border-radius:12px;background:#ffffff04}
.cast-picker header,.cast-consent {display:flex;align-items:baseline;gap:10px}
.cast-picker header {justify-content:space-between;flex-wrap:wrap}
.cast-picker h3,.cast-consent strong {margin:0;font-size:14px;font-weight:600}
.cast-picker header small,.cast-consent small {font-size:12px;color:#aaa6a0}
.cast-picked,.cast-group {margin-top:12px}
.cast-picker .cast-chip {min-height:36px;cursor:pointer}
.cast-picker .cast-chip:disabled {opacity:.45;cursor:default}
.cast-chip b {font-weight:400}
.cast-consent {align-items:center;cursor:pointer}
.cast-consent input {accent-color:#c5a46c;width:18px;height:18px;flex:none}
.cast-consent small {display:block;margin-top:4px}
@media(max-width:767px){.cast-picker .cast-chip,.cast-strip a.cast-chip{min-height:44px}}


.studio-modes {display:flex;margin:16px 0;gap:3px;padding:3px;border-radius:10px;background:#111113;border:1px solid #ffffff17}
.studio-modes button {flex:1;padding:8px 4px;border-radius:7px;background:none;color:#aaa;font-size:13px}
.studio-modes [aria-pressed=true] {background:#303034;color:#f5f3ee}
.builder-preview [data-draft-preview] {min-width:0;padding-bottom:20px;overflow-wrap:anywhere}
.builder-preview .ensemble-stage {position:relative;width:100%;top:auto;border-radius:12px;height:215px}
.builder-preview .ensemble-stage[data-collapsed=true] {height:52px}
.studio-scene-header:not([hidden]) {display:flex;align-items:center;gap:14px}
.studio-scene-header img {width:72px;height:96px;object-fit:cover;border-radius:8px}
.studio-scene-header h3,.studio-shelf h3 {margin:0;font-size:17px;color:#f5f3ee}
.studio-scene-header p,.studio-placeholder,.studio-shelf p {margin:4px 0;color:#aaa}
.builder-preview .studio-reading {width:100%;max-width:none;padding:16px 0;margin:0;background:transparent;border:0;line-height:1.75}
.studio-lines {display:grid;gap:6px}
.studio-lines button {padding:9px 12px;text-align:start;border:1px solid #ffffff17;border-radius:9px;background:#17171a;color:#ccc}
.studio-lines [aria-pressed=true] {border-color:#aaa;color:white}
.studio-shelf {width:min(220px,100%);margin:12px auto}
.studio-shelf .library-poster {aspect-ratio:2/3;border-radius:10px;overflow:hidden}
.studio-shelf img:not(.cast-avatar) {width:100%;height:100%;object-fit:cover}
.studio-shelf h3,.studio-shelf>p {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.studio-shelf h3 {margin-top:8px}
.studio-author {margin:0 0 16px;color:#d7c6ab}
.builder-steps button span {font-size:0}
.builder-steps button[data-complete=true] span{display:inline-block}
.builder-steps button[data-complete=true] span::after {content:'✓';font-size:12px;color:#d7c6ab}
.builder-review .builder-checklist button {display:flex;align-items:center;gap:10px;width:100%;min-height:36px;padding:0;background:none;border:0;border-radius:4px;text-align:start}
.studio-bundle [data-bundle-fields] {display:grid;gap:8px}
.studio-bundle [hidden] {display:none}
.studio-bundle fieldset {border:0;margin:4px 0;padding:0}
.studio-bundle fieldset label {display:flex;align-items:center;gap:8px;margin:4px 0}
.studio-bundle fieldset input {flex:1;min-width:0;padding:9px;background:#111113;border:1px solid #ffffff24;border-radius:8px;color:inherit}
.collection-popover [data-menu-action]:not(.is-danger):is(:hover,:focus-visible){background:#ffffff10;color:#f5f3ee}
.collection-popover .is-danger,.draft-delete-dialog [data-delete-confirm]{color:#f87171}
.library-items .library-tile.library-draft>.library-play {left:6px;right:auto}
[data-draft-notice]:empty{margin:0}
.draft-delete-dialog p {overflow-wrap:anywhere}
.draft-delete-dialog button {margin-inline-end:8px;min-height:44px;padding:8px 16px;border-radius:8px;background:#ffffff0e}
@media(max-width:820px){.studio-modes button,.studio-lines button,.studio-author{min-height:44px}.builder-preview .ensemble-stage:not([data-collapsed=true]){height:168px}}

.studio-bundle .builder-ai-actions:last-child {position:sticky;bottom:0;margin:12px 0 0;padding:8px 0;background:#171717}
.studio-shelf img[src$="/seven-nights/p3.webp"] {object-position:70% center}

.builder-choice .fusion-entry {display:grid;align-content:end;gap:4px;position:relative;isolation:isolate;overflow:hidden;margin:0 0 16px;padding:18px 22px;min-height:130px;border:1px solid #ffffff24;border-radius:14px;text-decoration:none;background:linear-gradient(90deg,#0c0c0f 16%,#0d0d10cc 54%,transparent),url('/assets/living-manga/seven-nights/p3.webp') right 35%/65% auto no-repeat,#111113}
.builder-choice .fusion-entry strong {font:500 26px Georgia,serif}
.builder-choice .fusion-entry small {color:#d3cfc7;margin:0;max-width:65%}
.builder-choice .fusion-entry:hover,.builder-choice .fusion-entry:focus-visible {border-color:#c9b79a}
.builder-fields .fusion-shortcut {margin-inline-end:10px;display:inline-flex;align-items:center;min-height:44px;color:#cdc0a7;font-size:13px;text-decoration:none}
