@charset "UTF-8";
:root{color-scheme:dark;--bg:#090909;--panel:#141414;--raised:#1c1c1c;--line:#292929;--text:#f4f4f4;--muted:#a0a0a0;--dim:#777;font-family:Inter,Arial,"Segoe UI",sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:14px;line-height:1.5}button,input,select,textarea{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit}button{background:none;border:0}a{color:inherit;text-decoration:none}img{max-width:100%;display:block;filter:grayscale(1)}button:disabled{opacity:.42;cursor:not-allowed}button:hover:not(:disabled),a:hover{color:#fff}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #fff;outline-offset:4px}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.15;letter-spacing:-.035em;font-weight:650}h1{font-size:36px}h2{font-size:23px}h3{font-size:18px}i{font-style:normal}p{color:var(--muted)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:fixed;top:10px;left:220px;transform:translateY(-150%);padding:12px;background:#fff;color:#000;z-index:100}.skip-link:focus{transform:none}.eyebrow,.small-label{font-size:10px;font-weight:650;letter-spacing:.13em;color:#999}.eyebrow{margin-bottom:10px}.button{display:inline-flex;align-items:center;justify-content:center;gap:22px;min-height:43px;border-radius:9px;padding:10px 17px;font-size:12px;font-weight:600;border:1px solid transparent;white-space:nowrap;transition:background .15s}.primary{background:#f1f1f1;color:#0c0c0c}.primary:hover:not(:disabled){background:#fff;color:#000}.secondary{background:#1b1b1b;border-color:#353535;color:#e2e2e2}.secondary:hover:not(:disabled){background:#272727}.danger{background:#ddd;color:#111}.circle-button{border:1px solid #333;border-radius:50%;height:30px;width:30px;color:#aaa}.text-button{font-size:12px;text-decoration:underline;color:#ccc;padding:5px 0}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:206px;background:#101010;border-right:1px solid #222;padding:28px 16px 20px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;gap:10px;align-items:center;padding:0 7px;font-size:15px;font-weight:750;letter-spacing:.04em;line-height:1.15}.brand-mark{display:grid;place-items:center;background:#eee;color:#111;border-radius:9px;font-size:26px;font-weight:800;width:38px;height:40px;letter-spacing:-.1em;padding-right:2px;flex-shrink:0}.brand-small{display:block;font-size:6px;font-weight:500;letter-spacing:.1em;color:#999;margin-top:8px}.sidebar-rule{height:1px;background:#252525;margin:28px 7px 24px}.nav-label{font-size:9px;letter-spacing:.14em;color:#777;padding:0 12px;margin-bottom:10px}.sidebar nav{display:grid;gap:5px}.sidebar nav a{display:flex;align-items:center;gap:10px;padding:12px 10px;border-radius:8px;color:#a3a3a3;font-size:12px;white-space:nowrap}.sidebar nav a:hover{background:#1a1a1a;color:#fff}.sidebar nav a.active{background:#252525;color:#fff}.nav-glyph{font-size:19px;line-height:16px;width:19px;text-align:center}.nav-arrow,.nav-count{margin-left:auto}.nav-count{font-size:10px;color:#999;min-width:17px;text-align:center}.tiny-new{font-size:7px;letter-spacing:.05em;color:#aaa;border:1px solid #444;padding:2px 4px;margin-left:auto;border-radius:3px}.sidebar-note{margin:30px 4px 20px;padding:15px 13px;border:1px solid #2a2a2a;border-radius:10px;background:#151515}.sidebar-note .small-label{font-size:8px}.sidebar-note p{font-size:18px;letter-spacing:-.03em;color:#eee;margin:8px 0}.sidebar-note>span:last-of-type{font-size:11px;color:#888;display:block;line-height:1.7}.sidebar-note a{display:block;margin-top:16px;font-size:11px;font-weight:600}.sidebar-bottom{margin-top:auto}.sidebar-link{display:flex;width:100%;justify-content:space-between;padding:9px 10px;font-size:10px;color:#999}.sidebar-footer{display:flex;align-items:center;gap:10px;border-top:1px solid #252525;margin:17px 8px 0;padding-top:16px;font-size:9px;color:#777}.age-chip{font-size:11px;border:1px solid #444;border-radius:5px;padding:4px}.main-shell{margin-left:206px}.topbar{height:64px;border-bottom:1px solid #202020;padding:0 30px;display:flex;align-items:center;gap:20px;background:#0c0c0c}.breadcrumb{color:#777;font-size:11px}.breadcrumb span{margin:0 12px;color:#444}.preview-label{margin-left:auto;display:flex;align-items:center;gap:7px;font-size:8px;letter-spacing:.1em;color:#a0a0a0}.preview-label>span{width:5px;height:5px;border-radius:50%;background:#bbb}.mobile-brand,.mobile-nav{display:none}#main:focus{outline:none}.discover-page,.collection-page,.studio-page{max-width:1500px;margin:auto;padding:30px}.discovery-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.discovery-heading h1{font-size:34px}.discovery-heading .eyebrow{font-size:9px;margin-bottom:7px}.search-wrap{display:flex;align-items:center;gap:12px;border:1px solid #313131;background:#181818;padding:0 16px;border-radius:10px;height:52px;width:100%;margin-bottom:23px}.search-wrap>span:first-child{font-size:30px;line-height:1;color:#aaa;transform:rotate(-15deg)}.search-wrap input{flex:1;min-width:0;color:#eee;background:none;border:0;outline:none;height:100%;font-size:13px}.search-wrap:focus-within{border-color:#b8b8b8}.search-wrap input:focus-visible{outline:none}.search-wrap input::placeholder{color:#777}.search-count{font-size:8px;letter-spacing:.1em;white-space:nowrap;color:#777}.cast-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.filters{display:flex;gap:7px}.filter{padding:9px 15px;font-size:11px;border-radius:7px;background:#141414;border:1px solid #282828;color:#a9a9a9;white-space:nowrap}.filter.active{background:#eee;color:#111;border-color:#eee;font-weight:650}.filter.active:hover{color:#111}.filter:hover:not(.active){background:#222}.sort-label{font-size:8px;letter-spacing:.12em;color:#777}.cast-section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:15px}.cast-section-title h2{font-size:18px;letter-spacing:-.025em}.cast-section-title p{font-size:11px;color:#777}.cast-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.character-card{position:relative;border:1px solid #2b2b2b;border-radius:12px;background:#151515;overflow:hidden;transition:border-color .2s,transform .2s}.character-card:hover{border-color:#555;transform:translateY(-2px)}.card-open{width:100%;text-align:left;padding:0;display:block}.character-portrait{height:244px;position:relative;overflow:hidden;background:#191919}.character-portrait:after{content:"";position:absolute;inset:50% 0 0;background:linear-gradient(transparent,rgba(0,0,0,.86));pointer-events:none}.character-portrait img{width:100%;height:100%;object-fit:cover;object-position:center 21%;transition:transform .35s,filter .35s;filter:grayscale(1) brightness(.86)}.card-open:hover img{transform:scale(1.035);filter:grayscale(1) brightness(1)}.portrait-label,.portrait-age{position:absolute;bottom:13px;z-index:1;font-size:8px;font-weight:600;letter-spacing:.08em;color:#ddd}.portrait-label{left:15px;border:1px solid #777;border-radius:4px;padding:3px 6px;background:#15151599}.portrait-age{right:15px;bottom:17px;color:#bbb;font-size:7px}.save-button{position:absolute;right:11px;top:11px;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#111b;border:1px solid #ffffff38;z-index:2;font-size:20px}.save-button[aria-pressed=true]{background:#eee;color:#111}.card-info{padding:15px}.card-info h3{font-size:20px;display:flex;justify-content:space-between;align-items:center;letter-spacing:-.035em}.card-info h3 span{font-size:18px;color:#777;font-weight:400}.card-role{font-size:10px;color:#a0a0a0;margin-top:5px}.card-info>p{font-size:11px;line-height:1.65;color:#888;margin:11px 0 14px;min-height:36px}.tags{display:flex;flex-wrap:wrap;gap:5px}.tag{font-size:8px;border:1px solid #333;border-radius:4px;padding:3px 7px;color:#bbb;white-space:nowrap}.page-foot{display:flex;justify-content:space-between;gap:20px;margin-top:32px;padding-top:20px;border-top:1px solid #222;color:#686868;font-size:9px}.page-foot button{font-size:9px;padding:0;color:#888;text-align:right}.continue-banner{display:flex;align-items:center;gap:12px;padding:12px 16px;border:1px solid #333;border-radius:10px;background:#161616;margin:0 0 22px}.continue-banner p{font-size:12px;color:#ccc;margin-top:3px}.continue-banner .button{margin-left:auto;min-height:35px}.avatar{height:42px;width:42px;object-fit:cover;object-position:50% 20%;border-radius:50%;border:1px solid #454545;flex-shrink:0}.section-header{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:24px}.section-header>p{font-size:11px;text-align:right;line-height:1.8}.collection-page .section-header{margin-bottom:30px}.story-card{display:flex;gap:18px;align-items:center;padding:22px;border:1px solid #303030;border-radius:12px;margin-bottom:12px;background:#151515}.story-card .avatar{width:66px;height:66px}.story-card h2{font-size:20px;margin:7px 0}.story-card p{font-size:11px}.story-actions{margin-left:auto;display:flex;gap:8px}.collection-note{font-size:11px;color:#888;margin-top:25px}.empty-state{grid-column:1/-1;padding:50px 22px;border:1px dashed #333;border-radius:12px;text-align:center;background:#121212}.empty-state h2{font-size:21px}.empty-state p{font-size:12px;max-width:440px;margin:12px auto 22px}.empty-state .button{margin-top:2px}dialog{padding:0;color:#eee;background:#151515;border:1px solid #393939;border-radius:16px;max-height:90dvh;box-shadow:0 30px 120px #000b}dialog::backdrop{background:#000c;backdrop-filter:blur(8px)}.age-gate{width:490px;padding:32px}.gate-top{display:flex;align-items:center;gap:12px;margin-bottom:36px}.gate-top .small-label{font-size:10px;color:#bbb}.gate-number{margin-left:auto;border:1px solid #444;border-radius:7px;padding:7px;font-size:14px}.age-gate h1{font-size:35px;line-height:1.12;margin-bottom:18px}.age-gate #age-description{font-size:13px;line-height:1.8}.gate-rules{display:grid;gap:9px;padding:20px 0;margin:20px 0;border-top:1px solid #2d2d2d;border-bottom:1px solid #2d2d2d;font-size:11px;color:#a7a7a7}.gate-rules span:before{content:'✓';margin-right:10px;color:#eee}.age-check{display:flex;align-items:center;gap:12px;font-size:12px;cursor:pointer;margin:23px 0}.age-check input,input[type=radio]{accent-color:#ddd;width:17px;height:17px;flex-shrink:0}.age-gate .primary{width:100%;justify-content:space-between}.gate-exit{width:100%;font-size:11px;color:#aaa;margin:16px 0 8px}.gate-footnote{font-size:9px;line-height:1.6;color:#777;margin-top:13px}.close-modal{position:absolute;top:13px;right:13px;background:#111c;border:1px solid #555;color:#eee;width:32px;height:32px;line-height:1;font-size:24px;border-radius:50%;z-index:3}.detail-modal{width:850px}.detail-layout{display:grid;grid-template-columns:43% 57%}.detail-cover{position:relative;min-height:600px;overflow:hidden}.detail-cover>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 20%;filter:grayscale(1) brightness(.85)}.detail-cover:after{content:"";position:absolute;inset:55% 0 0;background:linear-gradient(transparent,#000d)}.detail-cover-caption{position:absolute;bottom:32px;left:25px;right:25px;z-index:1}.detail-cover-caption p{font-size:22px;font-weight:600;color:#eee;line-height:1.3;margin-top:12px;letter-spacing:-.03em}.detail-cover-caption .eyebrow{font-size:8px;color:#bbb}.detail-body{padding:40px 30px 24px}.detail-body h2{font-size:36px;margin:0 0 16px}.detail-body>.eyebrow{font-size:9px;margin-right:18px}.detail-bio{font-size:12px;line-height:1.85;margin:20px 0;color:#aaa}.scene-list{padding:0;border:0;margin:20px 0}.scene-list legend{font-size:11px;font-weight:600;margin-bottom:11px}.scene-option{display:flex;align-items:center;gap:10px;padding:11px;border:1px solid #333;border-radius:7px;margin-bottom:7px;cursor:pointer;background:#191919}.scene-option:has(input:checked){border-color:#aaa;background:#222}.scene-option input{width:14px;height:14px;margin:0}.scene-option strong{font-size:11px;display:block;font-weight:500}.scene-option small{display:block;color:#888;font-size:9px;margin-top:4px}.detail-boundary{font-size:10px;line-height:1.7;color:#888;margin:17px 0}.detail-body>.primary{width:100%;justify-content:space-between}.modal-footnote{font-size:9px;text-align:center;margin-top:12px;color:#777}.info-modal,.confirm-modal{width:600px;padding:34px}.info-modal h2,.confirm-modal h2{font-size:30px;margin-bottom:20px}.info-modal>p,.confirm-modal>p{font-size:12px;line-height:1.9;margin-bottom:16px}.info-modal>.eyebrow{font-size:9px}.rule-list{list-style:none;padding:0;margin:20px 0}.rule-list li{padding:15px 0;border-top:1px solid #303030}.rule-list strong{display:block;font-size:12px;margin-bottom:6px}.rule-list span{display:block;color:#999;font-size:11px;line-height:1.8}.dialog-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.leave-page{max-width:600px;padding:90px 30px;margin:auto}.leave-page h1{margin:20px 0}.leave-page .button{margin-top:30px}.toast{position:fixed;bottom:26px;left:calc(50% + 103px);transform:translate(-50%,15px);max-width:calc(100% - 32px);border:1px solid #5b5b5b;background:#242424;color:#eee;border-radius:10px;padding:13px 20px;font-size:12px;opacity:0;pointer-events:none;z-index:100;box-shadow:0 10px 40px #0008;transition:opacity .2s,transform .2s}.toast.visible{opacity:1;transform:translate(-50%,0)}
.chat-page{display:grid;grid-template-columns:minmax(0,1fr) 265px;height:calc(100dvh - 64px);min-height:500px}.chat-column{display:flex;flex-direction:column;min-width:0;min-height:0}.chat-header{display:flex;align-items:center;gap:12px;border-bottom:1px solid #292929;min-height:82px;padding:16px 24px;background:#121212}.chat-header h1{font-size:19px}.chat-header p{font-size:9px;margin-top:5px}.back-button{font-size:22px;color:#aaa;margin-right:2px}.chat-badge{margin-left:auto;font-size:7px;border:1px solid #444;border-radius:4px;white-space:nowrap;padding:5px;color:#999}.mobile-notebook,.notebook-close{display:none}.chat-log{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:25px 28px}.scene-intro{text-align:center;max-width:480px;margin:2px auto 24px}.scene-intro h2{font-size:23px;margin-bottom:13px}.scene-intro>p:last-child{font-size:11px;line-height:1.85;color:#858585}.scene-intro .eyebrow{font-size:8px}.chapter-divider{display:flex;align-items:center;gap:14px;color:#626262;font-size:7px;letter-spacing:.12em;margin:26px 0}.chapter-divider:before,.chapter-divider:after{content:'';height:1px;background:#242424;flex:1}.message{margin-bottom:22px;max-width:95%}.message.user{margin-left:auto;max-width:85%}.speaker{font-size:10px;color:#ddd;font-weight:600;display:flex;align-items:center;gap:10px;margin:0 0 8px}.speaker small{font-size:6px;letter-spacing:.08em;font-weight:400;color:#666}.message-body{padding:16px 18px;background:#181818;border:1px solid #2b2b2b;border-radius:0 12px 12px;font-size:12px;line-height:1.85;color:#c7c7c7;white-space:pre-wrap;overflow-wrap:anywhere}.message.user .message-body{background:#292929;border-color:#393939;border-radius:12px 0 12px 12px;color:#e2e2e2}.message.user .speaker{justify-content:end}.message-actions{display:flex;gap:16px;margin-top:7px}.message-actions button{font-size:9px;color:#777;padding:2px 0}.message-actions button[aria-pressed=true]{color:#eee}.message.pinned .message-body{border-color:#737373}.typing{font-size:10px;color:#888;padding:6px 0}.composer-area{padding:16px 24px 15px;border-top:1px solid #252525;background:#101010}.suggestions{display:flex;gap:6px;margin-bottom:13px;flex-wrap:wrap}.suggestion{font-size:9px;padding:7px 10px;border:1px solid #333;border-radius:6px;color:#aaa;background:#171717}.suggestion:hover{background:#242424}.composer{display:flex;align-items:end;gap:10px;padding:9px;border:1px solid #454545;background:#1b1b1b;border-radius:11px}.composer:focus-within{border-color:#999}.composer textarea{flex:1;min-width:0;background:none;border:0;color:#eee;outline:none;resize:vertical;min-height:35px;max-height:110px;padding:8px 5px;font-size:12px}.composer textarea:focus-visible{outline:none}.send-button{background:#ddd;color:#111;border-radius:7px;width:34px;height:34px;font-size:22px;flex-shrink:0}.send-button:hover:not(:disabled){color:#000;background:#fff}.composer-foot{display:flex;justify-content:space-between;gap:10px;font-size:7px;color:#707070;margin-top:10px}.notebook{overflow-y:auto;background:#121212;border-left:1px solid #2a2a2a;padding:27px 20px}.notebook h2{font-size:20px;margin-bottom:7px}.notebook>.small-label{font-size:7px}.notebook-section{border-top:1px solid #2b2b2b;margin-top:24px;padding-top:18px}.notebook-label{display:flex;justify-content:space-between;font-size:8px;letter-spacing:.1em;color:#999;margin-bottom:13px}.notebook-section h3{font-size:15px;margin-bottom:8px}.notebook-section p{font-size:10px;line-height:1.7;margin:8px 0;color:#858585}.setting-tag{font-size:8px;border:1px solid #333;border-radius:4px;padding:3px 5px;display:inline-block;margin-right:4px;margin-top:4px;color:#aaa}.notebook label{display:block;font-size:10px;margin:12px 0 7px;color:#aaa}select{width:100%;border:1px solid #3b3b3b;border-radius:7px;background:#1c1c1c;color:#ddd;min-height:38px;padding:8px 10px;font-size:11px}.notebook .button{font-size:10px;width:100%;padding:9px}.notebook .text-button{font-size:10px}.notebook-footnote{font-size:8px;line-height:1.8;margin-top:24px;color:#676767}.memory-note{position:relative;padding:8px 24px 8px 10px;border:1px solid #3a3a3a;border-radius:7px;margin-bottom:9px;background:#202020}.memory-note p{font-size:9px;margin:0}.memory-note button{position:absolute;right:4px;top:4px;color:#999;font-size:17px}.memory-counter{color:#ddd}
.studio-page>.section-header{margin-bottom:14px}.studio-page h1{font-size:34px}.studio-intro{font-size:12px;max-width:650px;line-height:1.8;margin-bottom:27px}.studio-layout{display:grid;grid-template-columns:290px minmax(0,1fr);gap:20px;align-items:start}.studio-controls{display:grid;gap:21px;background:#151515;border:1px solid #303030;border-radius:12px;padding:22px}.studio-controls label,.studio-controls legend{font-size:8px;letter-spacing:.1em;color:#aaa;display:block;margin-bottom:9px;font-weight:600}.studio-controls select{font-size:11px;min-height:40px}.studio-controls fieldset{padding:0;margin:0;border:0;min-width:0}.choice-row{display:flex;gap:5px}.choice{flex:1;border:1px solid #373737;background:#1c1c1c;border-radius:6px;padding:9px 4px;font-size:9px;color:#999;min-height:35px}.choice.active{border-color:#b9b9b9;background:#303030;color:#fff}.studio-boundary{font-size:9px;color:#777;line-height:1.8;background:#1c1c1c;border-radius:7px;padding:12px}.studio-boundary strong{color:#bbb;font-weight:500}.studio-controls>.button{gap:8px;justify-content:space-between;font-size:11px}.credit-note{font-size:9px;text-align:center;margin-top:-11px;color:#888}.studio-stage{padding:17px;border:1px solid #2f2f2f;border-radius:12px;background:#111;min-width:0}.studio-stage-top{display:flex;justify-content:space-between;font-size:7px;letter-spacing:.1em;color:#888;margin-bottom:16px}.scene-frame{position:relative;overflow:hidden;background:#090909;max-width:100%;border-radius:7px;border:1px solid #333;margin:0 auto}.scene-frame.landscape{aspect-ratio:4/3}.scene-frame.square{aspect-ratio:1/1;max-height:520px}.scene-frame.portrait{aspect-ratio:3/4;max-height:560px}.scene-frame>img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.scene-frame.illustrated>img,.scene-card.illustrated>img{filter:grayscale(1) contrast(.92) brightness(1.1)}.scene-frame.cinema>img,.scene-card.cinema>img{filter:grayscale(1) contrast(1.13) brightness(.8)}.scene-frame.ink>img,.scene-card.ink>img{filter:grayscale(1) contrast(1.65) brightness(1.15)}.preview-watermark{position:absolute;bottom:12px;left:12px;font-size:7px;letter-spacing:.1em;background:#000b;padding:5px 8px;border:1px solid #ffffff40;border-radius:4px;color:#ddd;z-index:1}.stage-caption{font-size:19px;margin-top:20px}.stage-note{font-size:9px;color:#888;margin-top:7px;line-height:1.8}.queue-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:25px;background:#080808e8;z-index:2}.queue-overlay .eyebrow{font-size:7px;line-height:1.8}.queue-overlay h3{font-size:22px;margin:15px 0}.queue-overlay p:not(.eyebrow){font-size:10px;line-height:1.8;max-width:270px}.queue-overlay progress{width:80%;height:5px;margin:12px 0 20px;accent-color:#ccc;border:0;background:#303030;border-radius:8px;overflow:hidden}.queue-overlay progress::-webkit-progress-bar{background:#333}.queue-overlay progress::-webkit-progress-value{background:#ddd}.queue-overlay button{font-size:10px;text-decoration:underline;margin-top:22px;color:#aaa}.studio-status{font-size:10px;color:#858585;margin:16px 0 40px;line-height:1.8}.studio-page section>.section-header h2{font-size:24px}.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}.scene-card{border:1px solid #333;border-radius:10px;overflow:hidden;background:#151515}.scene-card>img{width:100%;height:150px;object-fit:cover}.scene-card-body{padding:15px}.scene-card-body h3{font-size:16px}.scene-card-body p{font-size:9px;line-height:1.8;margin:10px 0}.scene-card-actions{display:flex;justify-content:space-between;border-top:1px solid #303030;padding-top:12px;gap:7px}.scene-card-actions button{font-size:8px;padding:0;color:#bbb}.scene-audit{font-size:10px;line-height:1.8;margin:18px 0;color:#888}.info-modal .scene-frame{width:100%}.info-modal .scene-frame.portrait{width:min(100%,330px)}
@media(min-width:1550px){.character-portrait{height:315px}.cast-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.card-info{padding:20px}.card-info>p{min-height:auto}.chat-page{grid-template-columns:minmax(0,1fr) 300px}.chat-log{padding-left:8%;padding-right:8%}}
@media(max-width:1100px){.sidebar{width:185px;padding-left:11px;padding-right:11px}.main-shell{margin-left:185px}.topbar{padding:0 23px}.discover-page,.collection-page,.studio-page{padding:25px 23px}.character-portrait{height:210px}.cast-grid{gap:13px}.card-info{padding:13px}.card-info h3{font-size:18px}.card-info>p{font-size:10px}.cast-section-title p{display:none}.chat-page{grid-template-columns:minmax(0,1fr) 235px}.chat-header{padding:16px}.chat-header p{font-size:8px}.chat-badge{display:none}.chat-log{padding:22px 20px}.notebook{padding:25px 15px}.studio-layout{grid-template-columns:260px minmax(0,1fr);gap:15px}.studio-controls{padding:18px}.studio-stage{padding:13px}.story-actions{flex-direction:column}.toast{left:calc(50% + 92px)}}
@media(max-width:850px){.sidebar{width:170px}.main-shell{margin-left:170px}.brand{font-size:13px}.brand-mark{width:32px;height:34px;font-size:23px}.brand-small{font-size:5px}.tiny-new{display:none}.discover-page,.collection-page,.studio-page{padding:24px 20px}.cast-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.character-portrait{height:240px}.sort-label{display:none}.filters{gap:5px}.filter{padding:8px 12px;font-size:10px}.search-count{display:none}.chat-page{display:block;min-height:0}.chat-column{height:100%}.notebook{position:fixed;right:0;top:64px;bottom:0;width:290px;transform:translateX(100%);z-index:40;box-shadow:-25px 0 80px #000b;transition:transform .2s}.notebook.open{transform:translateX(0)}.notebook-close{display:block;position:absolute;top:20px;right:17px}.mobile-notebook{display:inline-flex;margin-left:auto;font-size:9px;min-height:32px;padding:6px 9px}.studio-layout{grid-template-columns:1fr}.studio-controls{grid-template-columns:1fr 1fr;gap:18px}.studio-boundary,.studio-controls>.button,.credit-note{grid-column:1/-1}.studio-stage{padding:18px}.scene-frame.portrait{max-height:450px}.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-modal{width:720px}.detail-body{padding:40px 25px 25px}.detail-body h2{font-size:30px}.detail-cover-caption p{font-size:20px}.story-card{flex-wrap:wrap;gap:13px}.story-actions{flex-direction:row;width:100%;margin-left:0;justify-content:end}.story-card .avatar{width:50px;height:50px}.toast{left:calc(50% + 85px)}}
@media(max-width:650px){.sidebar{display:none}.main-shell{margin-left:0;padding-bottom:64px}.topbar{height:57px;padding:0 17px;gap:11px}.mobile-brand{display:block;font-size:13px;font-weight:750;letter-spacing:-.025em}.breadcrumb{display:none}.preview-label{font-size:6px;letter-spacing:.04em;gap:5px}.topbar .circle-button{width:25px;height:25px;font-size:11px}.mobile-nav{position:fixed;bottom:0;left:0;right:0;display:flex;align-items:stretch;justify-content:space-around;height:60px;background:#111f;border-top:1px solid #303030;z-index:30;padding-bottom:env(safe-area-inset-bottom)}.mobile-nav a,.mobile-nav button{flex:1;display:flex;align-items:center;justify-content:center;font-size:10px;color:#888;border-top:2px solid transparent;margin-top:-1px}.mobile-nav a.active{border-color:#ddd;color:#fff;background:#1c1c1c}.discover-page,.collection-page,.studio-page{padding:24px 16px}.discovery-heading{margin-bottom:19px}.discovery-heading h1{font-size:29px}.discovery-heading .eyebrow{font-size:7px}.studio-shortcut{font-size:9px;min-height:34px;padding:7px 10px;gap:10px}.search-wrap{height:47px;padding:0 12px;margin-bottom:18px;gap:10px}.search-wrap input{font-size:11px}.search-wrap>span:first-child{font-size:26px}.cast-toolbar{margin-bottom:22px}.filters{width:100%;gap:6px;overflow-x:auto;padding-bottom:2px}.filter{font-size:9px;padding:8px 11px;flex:1}.cast-section-title{margin-bottom:13px}.cast-section-title h2{font-size:17px}.cast-grid{gap:11px}.character-card{border-radius:10px}.character-portrait{height:187px}.portrait-label{left:10px;bottom:10px;font-size:6px;padding:3px 5px}.portrait-age{font-size:5px;right:9px;bottom:15px;letter-spacing:.02em}.save-button{width:27px;height:27px;font-size:17px;right:8px;top:8px}.card-info{padding:12px 10px}.card-info h3{font-size:16px}.card-info h3 span{font-size:15px}.card-role{font-size:8px;margin-top:5px}.card-info>p{font-size:9px;line-height:1.7;margin:9px 0 12px;min-height:45px}.tag{font-size:6px;padding:3px 5px}.tags{gap:4px}.page-foot{display:block;line-height:1.9;margin-top:25px;font-size:8px}.page-foot button{display:block;font-size:8px;text-align:left;margin-top:6px}.continue-banner{gap:9px;padding:10px;margin-bottom:18px}.continue-banner .avatar{width:34px;height:34px}.continue-banner .small-label{font-size:7px}.continue-banner p{font-size:9px}.continue-banner .button{font-size:9px;padding:6px 9px;min-height:31px}.section-header{align-items:start;gap:10px}.section-header h1{font-size:29px}.section-header>p{font-size:9px;max-width:130px}.section-header .eyebrow{font-size:7px}.collection-page .section-header{margin-bottom:25px}.story-card{padding:15px}.story-card h2{font-size:17px}.story-card .small-label{font-size:7px}.story-card p{font-size:9px}.story-actions .button{font-size:10px;min-height:37px;flex:1}.collection-note{font-size:9px}.empty-state{padding:35px 18px}.empty-state h2{font-size:19px}.empty-state p{font-size:11px}.empty-state .button{font-size:10px}.age-gate{width:calc(100% - 30px);padding:25px;max-height:94dvh;border-radius:13px}.gate-top{margin-bottom:29px}.gate-top .small-label{font-size:9px}.age-gate h1{font-size:31px}.age-gate>.eyebrow{font-size:8px}.age-gate #age-description{font-size:11px}.gate-rules{font-size:9px;gap:10px;padding:16px 0;margin:17px 0}.age-check{font-size:11px;margin:20px 0;gap:10px}.age-gate .primary{min-height:43px}.gate-footnote{font-size:8px}.detail-modal{width:calc(100% - 22px);max-height:94dvh;border-radius:12px}.detail-layout{display:flex;flex-direction:column}.detail-cover{min-height:230px;height:230px}.detail-cover>img{object-position:center 23%}.detail-cover-caption{left:20px;right:20px;bottom:19px}.detail-cover-caption p{font-size:20px;max-width:260px;margin-top:8px}.detail-cover-caption .eyebrow{font-size:7px}.detail-cover:after{inset:30% 0 0}.detail-body{padding:24px 22px}.detail-body h2{font-size:31px}.detail-body>.eyebrow{font-size:8px}.detail-body .tag{font-size:8px}.detail-bio{font-size:11px;margin:18px 0}.scene-list{margin:18px 0}.scene-option{padding:10px}.scene-option strong{font-size:11px}.scene-option small{font-size:9px}.detail-boundary{font-size:9px}.info-modal,.confirm-modal{width:calc(100% - 30px);padding:29px 24px;max-height:92dvh}.info-modal h2,.confirm-modal h2{font-size:27px}.info-modal>p,.confirm-modal>p{font-size:11px}.rule-list strong{font-size:11px}.rule-list span{font-size:10px}.dialog-actions .button{font-size:10px;flex:1}.toast{left:50%;bottom:76px;font-size:10px;padding:12px 15px;width:max-content}.chat-page{height:calc(100dvh - 117px);min-height:0}.chat-header{min-height:72px;padding:12px 15px;gap:10px}.chat-header h1{font-size:17px}.chat-header p{font-size:8px;max-width:155px;line-height:1.7}.chat-header .avatar{width:34px;height:34px}.back-button{font-size:19px}.mobile-notebook{font-size:8px;padding:6px 8px;min-height:29px}.chat-log{padding:22px 17px}.scene-intro h2{font-size:21px}.scene-intro>p:last-child{font-size:10px;line-height:1.9}.scene-intro .eyebrow{font-size:7px}.message{max-width:100%;margin-bottom:21px}.message.user{max-width:88%}.speaker{font-size:9px}.message-body{font-size:11px;padding:13px 15px;line-height:1.9}.message-actions button{font-size:8px}.composer-area{padding:12px 13px}.suggestions{gap:5px;margin-bottom:10px;flex-wrap:nowrap}.suggestion{font-size:7px;padding:7px 6px;flex:1;white-space:nowrap}.composer textarea{font-size:11px}.composer-foot{font-size:6px;gap:5px}.composer-foot span:last-child{display:none}.notebook{top:57px;bottom:60px;width:min(310px,90vw);padding:27px 22px}.notebook label{font-size:11px}.notebook-section p{font-size:11px}.notebook-section .button{font-size:11px}.notebook-footnote{font-size:9px}.notebook-label{font-size:9px}.notebook>.small-label{font-size:8px}.studio-page h1{font-size:29px}.studio-intro{font-size:11px;margin-bottom:20px}.studio-controls{padding:17px;gap:19px 12px;border-radius:10px}.studio-controls label,.studio-controls legend{font-size:7px}.studio-controls select{font-size:9px;padding:8px;min-height:37px}.choice{font-size:8px;padding:8px 2px;min-height:34px}.choice-row{gap:4px}.studio-boundary{font-size:8px}.studio-controls>.button{font-size:11px;min-height:43px}.studio-stage{padding:14px}.studio-stage-top{font-size:6px}.stage-caption{font-size:19px}.stage-note{font-size:8px}.studio-status{font-size:9px;margin-bottom:30px}.studio-page section>.section-header h2{font-size:22px}.studio-page section>.section-header>p{font-size:9px}.gallery-grid{gap:11px}.scene-card>img{height:125px}.scene-card-body{padding:11px}.scene-card-body h3{font-size:14px}.scene-card-body p{font-size:8px}.scene-card-actions{display:block;padding-top:8px}.scene-card-actions button{display:block;font-size:8px;margin:7px 0}.queue-overlay{padding:20px}.queue-overlay h3{font-size:20px;margin:10px 0}.queue-overlay p:not(.eyebrow){font-size:9px}.queue-overlay button{font-size:9px;margin-top:14px}.skip-link{left:10px}.scene-frame.portrait{max-height:440px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Keep constrained studio previews at the selected ratio. */
.scene-frame.square{width:min(100%,520px)}
.scene-frame.portrait{width:min(100%,420px)}
.message-body{font-size:13px}
@media(max-width:850px){.scene-frame.portrait{width:min(100%,337.5px)}}
@media(max-width:650px){.message-body{font-size:12px}.card-info>p{font-size:10px;min-height:51px}.card-role{font-size:9px}.tag{font-size:7px}.portrait-age{font-size:6px}.character-portrait{height:195px}.scene-frame.portrait{width:min(100%,330px)}}
/* Community marketplace: the same monochrome system, with creator context. */
.market-page{max-width:1500px;margin:auto;padding:30px}.market-page .discovery-heading h1{font-size:32px}.market-intro{font-size:15px;color:#ddd;line-height:1.7;margin:-4px 0 22px}.market-intro span{font-size:12px;color:#8e8e8e}.market-notice{display:flex;align-items:center;gap:13px;border:1px solid #303030;background:#151515;border-radius:10px;padding:14px 17px;margin-bottom:25px}.market-notice-icon{font-size:23px;color:#bbb}.market-notice p{font-size:10px;line-height:1.8;color:#919191}.market-notice strong{color:#ddd;font-weight:500}.market-tabs{display:flex;border-bottom:1px solid #303030;gap:27px;margin-bottom:23px}.market-tabs button{padding:0 0 13px;font-size:12px;color:#888;border-bottom:2px solid transparent;margin-bottom:-1px}.market-tabs button.active{color:#fff;border-color:#ddd}.market-tabs button span{font-size:9px;border:1px solid #444;border-radius:4px;margin-left:5px;padding:1px 5px}.market-search-row{display:flex;gap:12px;margin-bottom:24px}.market-search-row .search-wrap{margin:0;flex:1}.market-genre{width:175px;flex-shrink:0}.market-genre select{height:52px;font-size:12px;border-radius:10px;padding:10px 14px;background:#181818}.market-results-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:17px}.market-results-head h2{font-size:19px}.market-results-head>span{font-size:10px;color:#999;white-space:nowrap}.market-card .character-portrait{height:205px}.market-card .card-info{padding:16px}.listing-status{display:block;font-size:7px;letter-spacing:.08em;color:#b1b1b1;margin-bottom:10px}.market-card h3{font-size:21px}.creator-line{font-size:9px;color:#9a9a9a;margin-top:8px}.market-card .card-info>p{min-height:40px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.market-card-foot{display:flex;align-items:center;justify-content:space-between;gap:7px;font-size:8px;border-top:1px solid #303030;padding-top:13px;color:#aaa}.market-card-foot span:last-child{color:#ddd}.market-future{margin-top:32px;border-top:1px solid #2b2b2b;padding-top:20px}.market-future strong{font-size:11px;font-weight:500;color:#b5b5b5}.market-future p{font-size:10px;color:#777;line-height:1.8;max-width:700px;margin-top:7px}.listing-byline{font-size:11px;color:#999;margin:-5px 0 17px}.listing-template{font-size:10px;line-height:1.75;padding:12px;background:#202020;border-radius:7px;color:#9d9d9d;margin-top:-5px}.listing-actions{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-top:14px}.listing-actions .secondary{min-height:33px;min-width:36px;padding:4px;font-size:19px}.listing-actions .text-button{font-size:10px}.creator-modal{width:870px;padding:32px}.creator-heading h2{font-size:29px;margin-right:20px}.creator-heading>p:last-child{font-size:11px;line-height:1.8;margin:13px 0 25px}.creator-modal form{display:grid;grid-template-columns:1fr 1fr;gap:28px}.template-picker{border:0;margin:0;padding:0;min-width:0}.template-picker legend,.creator-fields>label{font-size:12px;font-weight:600;color:#ddd;margin-bottom:12px;display:block}.template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.template-option{position:relative;border:1px solid #333;border-radius:9px;overflow:hidden;cursor:pointer;background:#1b1b1b;min-width:0}.template-option:has(input:checked){border-color:#ddd;box-shadow:0 0 0 1px #ddd}.template-option input{position:absolute;top:7px;right:7px;z-index:1;margin:0;width:15px;height:15px;accent-color:#ddd}.template-option img{height:115px;width:100%;object-fit:cover;object-position:50% 18%}.template-option>span{display:block;padding:8px}.template-option strong{display:block;font-size:11px;font-weight:500}.template-option small{display:block;font-size:7px;color:#888;margin-top:4px}.template-picker>p{font-size:9px;line-height:1.8;color:#888;margin-top:15px}.creator-fields{min-width:0}.creator-fields>label>span{float:right;font-size:8px;font-weight:400;color:#777;margin-top:3px}.creator-fields>input,.creator-fields>textarea{width:100%;background:#202020;border:1px solid #444;border-radius:7px;color:#eee;padding:10px 12px;font-size:12px;margin-bottom:22px}.creator-fields>textarea{resize:vertical;min-height:100px;max-height:200px}.creator-fields>.creator-confirm{display:flex;gap:10px;align-items:start;font-weight:400;line-height:1.8;margin:0 0 18px}.creator-confirm input{accent-color:#ddd;width:17px;height:17px;margin:2px 0 0;flex-shrink:0}.creator-fields>.creator-confirm>span{float:none;color:#aaa;font-size:10px;margin:0}.creator-form-actions{display:flex;justify-content:end;gap:8px;margin-top:18px}.creator-form-actions .button{font-size:11px}.creator-storage{font-size:9px;color:#777;line-height:1.8;margin-top:15px}.draft-error{border:1px solid #999;background:#272727;padding:10px;border-radius:6px;color:#ddd;font-size:11px;line-height:1.8}
@media(max-width:1100px){.market-page{padding:25px 23px}.market-card .character-portrait{height:185px}.market-card .card-info{padding:13px}.market-card h3{font-size:19px}.creator-line{font-size:8px}.market-card-foot{font-size:7px}.sidebar-note{margin-top:22px}}
@media(max-width:850px){.market-page{padding:24px 20px}.market-page .discovery-heading h1{font-size:27px}.market-card .character-portrait{height:220px}.creator-modal{width:720px;padding:28px}.creator-modal form{gap:22px}.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.template-option img{height:90px}.market-search-row .search-wrap input{font-size:11px}.market-genre{width:140px}.market-genre select{font-size:11px}.market-page .discovery-heading .button{font-size:10px;padding:8px 12px;gap:12px}}
@media(max-width:650px){.market-page{padding:24px 16px}.market-page .discovery-heading{display:block;margin-bottom:18px}.market-page .discovery-heading h1{font-size:28px}.market-page .discovery-heading .button{margin-top:18px;min-height:39px;font-size:11px}.market-intro{font-size:13px;margin-bottom:20px}.market-intro span{font-size:11px}.market-notice{padding:12px;gap:10px;margin-bottom:22px}.market-notice p{font-size:9px}.market-notice-icon{font-size:20px}.market-tabs{gap:0;justify-content:space-between;margin-bottom:18px}.market-tabs button{font-size:10px;padding-bottom:12px}.market-tabs button span{font-size:8px;margin-left:2px;padding:1px 4px}.market-search-row{gap:8px;flex-direction:column;margin-bottom:20px}.market-search-row .search-wrap{flex:none;height:46px}.market-genre{width:100%}.market-genre select{height:38px;min-height:38px;border-radius:7px;font-size:11px}.market-results-head h2{font-size:17px}.market-results-head>span{font-size:9px}.market-card .character-portrait{height:170px}.market-card .card-info{padding:12px 10px}.market-card h3{font-size:16px}.listing-status{font-size:6px;letter-spacing:.03em;line-height:1.7;margin-bottom:7px}.creator-line{font-size:8px;line-height:1.7;margin-top:6px}.market-card .card-info>p{font-size:10px;min-height:51px}.market-card-foot{display:block;font-size:8px;line-height:1.8;padding-top:10px}.market-card-foot>span{display:block}.market-future p{font-size:9px}.market-future strong{font-size:10px}.listing-template{font-size:10px}.listing-byline{font-size:10px}.listing-actions .text-button{font-size:10px;min-height:32px}.listing-actions{gap:10px}.creator-modal{width:calc(100% - 22px);padding:26px 21px;max-height:94dvh}.creator-heading h2{font-size:26px;line-height:1.2}.creator-heading>p:last-child{font-size:10px;margin-bottom:22px}.creator-modal form{grid-template-columns:1fr;gap:24px}.template-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.template-option img{height:100px}.template-option>span{padding:7px}.template-option strong{font-size:10px}.template-option small{font-size:6px}.template-picker legend,.creator-fields>label{font-size:11px}.creator-fields>input,.creator-fields>textarea{font-size:12px}.creator-fields>label>span{font-size:7px}.creator-form-actions .button{flex:1;white-space:normal;font-size:10px;padding:10px}.mobile-nav a,.mobile-nav button{font-size:9px}.template-picker>p{font-size:9px}.creator-fields>.creator-confirm>span{font-size:10px}}
.market-page .discovery-heading{margin-bottom:16px}.market-intro{font-size:12px;color:#999;margin:0 0 18px}.market-notice{padding:10px 15px;margin-bottom:20px}.market-tabs{margin-bottom:18px}.market-search-row{margin-bottom:19px}
@media(max-width:650px){.market-page .discovery-heading{display:flex;align-items:center;gap:12px;margin-bottom:13px}.market-page .discovery-heading h1{font-size:24px;max-width:210px}.market-page .discovery-heading .button{margin-top:0;font-size:9px;gap:7px;padding:9px;min-height:39px}.market-page .discovery-heading .eyebrow{font-size:7px}.market-intro{font-size:11px;margin-bottom:15px}.market-notice{padding:10px;margin-bottom:18px}.market-notice p{font-size:8px}.market-search-row{margin-bottom:18px}.market-tabs button{font-size:10px}}
.market-card h3,.detail-body h2,.chat-header h1,.card-info h3{overflow-wrap:anywhere}.market-card h3{gap:7px}.market-card h3>span{flex-shrink:0}.chat-header>div{min-width:0}
.sidebar{overflow-y:auto}.sidebar-note{margin-top:18px;margin-bottom:12px;padding-top:12px;padding-bottom:12px}
@media(max-height:800px) and (min-width:651px){.sidebar-note{display:none}}


/* P1-S1 character detail + NSFW discover tags */
.tag-filters{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin:12px 0 4px;padding:10px 0 2px;border-top:1px solid var(--line,#2a2a2a)}
.tag-filters-label{font-size:9px;letter-spacing:.14em;color:var(--dim,#737373);font-weight:700;margin-right:4px}
.filter.tag-filter{padding:7px 12px;font-size:10px}
.tag.tag-nsfw{border-color:#ff66c4;color:#ff66c4;background:#12080e}
.detail-section{margin:18px 0;padding-top:14px;border-top:1px solid var(--line,#2a2a2a)}
.detail-section h3{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#ff66c4;margin:0 0 10px;font-weight:700}
.detail-lead{font-size:13px;line-height:1.6;color:var(--text,#fff);margin:0 0 8px}
.detail-note{font-size:10px;color:var(--dim,#737373);margin:8px 0 0;line-height:1.5}
.detail-limits{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.detail-limits li{background:var(--raised,#141414);border:1px solid var(--line,#2a2a2a);border-radius:10px;padding:12px 14px}
.detail-limits strong{display:block;font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:#ff66c4;margin-bottom:6px}
.detail-limits span{font-size:12px;line-height:1.7;color:var(--muted,#a3a3a3)}
.detail-examples{margin:0;padding-left:18px;display:grid;gap:10px}
.detail-examples li{font-size:12px;line-height:1.7;color:var(--muted,#a3a3a3);padding-left:4px}
.detail-body{max-height:min(82vh,860px);overflow:auto}

.chat-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;padding:10px 24px 0;border-top:1px solid #252525;background:#101010}
.chat-toolbar-main{display:flex;flex-wrap:wrap;gap:6px}
.tool-btn{font-size:9px;letter-spacing:.04em;text-transform:uppercase;padding:7px 10px;border:1px solid #333;border-radius:6px;color:#bbb;background:#171717}
.tool-btn.active{border-color:#ff66c4;color:#ff66c4}
.branch-switch{display:flex;align-items:center;gap:8px;font-size:9px;color:#888}
.branch-switch select{min-height:30px;font-size:10px;padding:4px 8px;border:1px solid #333;border-radius:6px;background:#1b1b1b;color:#ddd;max-width:140px}
.toolbar-note{font-size:7px;letter-spacing:.06em;text-transform:uppercase;color:#666;margin-left:auto}
.branch-badge{font-size:7px;letter-spacing:.08em;text-transform:uppercase;border:1px solid #ff66c4;color:#ff66c4;border-radius:4px;padding:4px 6px;margin-left:8px}
.message.editing .message-body{border-color:#ff66c4}
.edit-flag{font-size:7px;letter-spacing:.1em;color:#ff66c4;margin-left:8px}


/* P1-S3 structural fallbacks */
.heat-badge{font-size:7px;letter-spacing:.08em;text-transform:uppercase;border:1px solid #ff66c4;color:#ff66c4;border-radius:4px;padding:4px 6px;margin-left:8px;white-space:nowrap}
.scene-controls{border-top:1px solid #2a2a2a;background:#0c0c0c;padding:12px 24px 16px}
.scene-controls-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.controls-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.control-block{background:#141414;border:1px solid #2a2a2a;border-radius:12px;padding:12px 14px}
.control-block-wide{grid-column:1/-1}
.limit-chip-row{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.limit-chip{display:inline-flex;align-items:center;gap:4px;font-size:11px;padding:5px 8px;border-radius:999px;border:1px solid #3d3d3d}
.limit-add-form{display:flex;gap:6px}
#heat-slider{width:100%;accent-color:#ff66c4}
#ooc-note{width:100%;box-sizing:border-box;min-height:72px}
.ooc-banner{margin:12px 24px 0;padding:12px 14px;border:1px dashed #ff66c4;border-radius:10px}
@media(max-width:750px){.controls-grid{grid-template-columns:1fr}}


/* P1-S4 structural fallbacks */
.memory-panel{border-top:1px solid #2a2a2a}
.field-label{display:block;font-size:9px;letter-spacing:.1em;text-transform:uppercase;color:#737373;margin:8px 0 4px}
.lore-list{display:grid;gap:10px;margin-bottom:12px}
.lore-entry{border:1px solid #2a2a2a;border-radius:10px;padding:10px 12px}
.lore-add-form{display:grid;gap:8px}
.lore-chip{display:inline-flex;margin:10px 24px 0;padding:6px 10px;border:1px solid #ff66c4;border-radius:999px;color:#ff66c4;font-size:9px;letter-spacing:.08em;text-transform:uppercase}


/* P1-S5 structural fallbacks */
.world-state-strip{display:flex;flex-wrap:wrap;gap:8px 12px;padding:10px 24px;border-bottom:1px solid #2a2a2a;background:#0c0c0c}
.world-meter .wm-label{display:block;font-size:8px;letter-spacing:.12em;text-transform:uppercase;color:#ff66c4;margin-bottom:4px}
.meter-track{flex:1;height:6px;border-radius:999px;background:#1f1f1f;border:1px solid #333;overflow:hidden;display:inline-block;min-width:64px}
.meter-track > i{display:block;height:100%;background:#ff66c4}
.scene-ambiance{display:flex;flex-wrap:wrap;gap:8px;margin:12px 24px 0;padding:10px 12px;border:1px solid #2a2a2a;border-radius:10px}
.scene-ambiance-tag{font-size:8px;letter-spacing:.1em;text-transform:uppercase;color:#ff66c4;border:1px solid #ff66c4;border-radius:4px;padding:4px 7px}
.studio-bind-note{margin:12px 0 16px;padding:12px 14px;border:1px dashed #3a3a3a;border-radius:12px}
.studio-bind-note.bound{border-color:#ff66c4}
#chat-scene-select{width:100%;min-height:34px;margin-top:6px;border:1px solid #333;border-radius:8px;background:#1b1b1b;color:#ddd;padding:6px 10px}
