.story-modal-open{overflow:hidden}.story-director-overlay{position:fixed;inset:0;z-index:1500;display:grid;place-items:center;padding:24px;background:rgba(3,4,7,.86);backdrop-filter:blur(16px)}.story-director-modal{width:min(760px,100%);max-height:min(900px,94vh);overflow:auto;border:1px solid rgba(255,255,255,.12);border-radius:28px;padding:28px;background:linear-gradient(145deg,#13151a,#0b0c10 74%);box-shadow:0 32px 100px rgba(0,0,0,.7);color:#f5f5f2}.story-director-modal>header{display:flex;justify-content:space-between;gap:24px;margin-bottom:24px}.story-director-modal>header span{color:#caff4d;font-size:12px;font-weight:800;letter-spacing:.14em}.story-director-modal h2{margin:7px 0 8px;font-size:clamp(28px,5vw,42px);line-height:1.05}.story-director-modal p{max-width:620px;margin:0;color:#969ba5;line-height:1.55}.story-director-close{flex:0 0 42px;width:42px;height:42px;border:1px solid rgba(255,255,255,.14);border-radius:50%;background:#191b21;color:#fff;font-size:27px;cursor:pointer}.story-director-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.story-director-modal label,.story-director-modal legend{color:#aeb2ba;font-size:13px;font-weight:700}.story-director-modal select,.story-director-modal textarea{display:block;width:100%;box-sizing:border-box;margin-top:8px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:#0c0e12;color:#fff;font:inherit}.story-director-modal select{min-height:50px;padding:0 14px}.story-director-modal textarea{resize:vertical;min-height:92px;padding:13px 14px;line-height:1.5}.story-director-modal select:focus,.story-director-modal textarea:focus{outline:none;border-color:#caff4d;box-shadow:0 0 0 3px rgba(202,255,77,.1)}.story-director-modal fieldset{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0;border:0;padding:0}.story-director-modal legend{grid-column:1/-1;margin-bottom:10px}.story-control-choice{display:flex;align-items:flex-start;gap:12px;border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:15px;background:#101218;cursor:pointer}.story-control-choice:has(input:checked){border-color:rgba(202,255,77,.55);background:rgba(202,255,77,.07)}.story-control-choice input{margin-top:3px;accent-color:#caff4d}.story-control-choice span{display:grid;gap:5px}.story-control-choice b{color:#fff;font-size:15px}.story-control-choice small{color:#888e98;font-weight:500;line-height:1.4}.story-opening{display:block}.story-director-modal footer{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}.story-chat-tools{display:flex;gap:8px;padding:10px 18px 4px;overflow-x:auto;scrollbar-width:none}.story-chat-tools::-webkit-scrollbar{display:none}.story-chat-tools button{flex:0 0 auto;border:1px solid rgba(255,255,255,.1);border-radius:999px;padding:8px 12px;background:#111319;color:#b6bbc4;font:600 12px/1 system-ui,sans-serif;cursor:pointer;transition:border-color .15s,color .15s,background .15s}.story-chat-tools button:hover{border-color:rgba(202,255,77,.45);background:rgba(202,255,77,.06);color:#dcff88}.story-chat-tools button:first-child{border-color:rgba(202,255,77,.28);color:#caff4d}
@media(max-width:680px){.story-director-overlay{align-items:end;padding:0}.story-director-modal{max-height:95vh;border-radius:24px 24px 0 0;padding:21px}.story-director-grid,.story-director-modal fieldset{grid-template-columns:1fr}.story-director-modal>header{margin-bottom:19px}.story-director-modal footer{position:sticky;bottom:-21px;margin:22px -21px -21px;padding:14px 21px calc(14px + env(safe-area-inset-bottom));background:rgba(11,12,16,.96);backdrop-filter:blur(10px)}.story-director-modal footer .button{flex:1;padding-inline:12px}.story-chat-tools{padding-inline:13px}}
