.ai-planning-card{padding:22px;border:1px solid #50636e;border-radius:12px;background:#172127;margin:18px 0}.ai-planning-heading,.ai-plan-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.ai-role-label{font-size:12px;color:#9cc8dc;font-weight:700;letter-spacing:.04em}.ai-plan-status,.ai-plan-heading>span:last-child{font-size:12px;color:#b6c9d3}.ai-planning-card h4{margin:14px 0 8px;font-size:18px}.ai-planning-card p{color:#c1cbd0;font-size:14px;line-height:1.65;white-space:pre-wrap}.ai-planning-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.ai-planning-actions small{color:#b2bdc4;max-width:400px;font-size:12px}.ai-plan-applied{border-color:#699581}.prompt-review{margin:16px 0;padding:16px;border:1px solid #363c40;border-radius:10px}.prompt-review summary{font-weight:600;cursor:pointer;color:#d2d9dd}.prompt-review label{margin-top:15px}.generation-stage-label{display:inline-block;background:#25332d;color:#b1dbc5;padding:5px 9px;font-size:12px;border-radius:6px;margin-bottom:12px}.ai-studio-dialog{width:min(1180px,calc(100vw - 36px));max-width:1180px;padding:0;max-height:92dvh;overflow:hidden;background:#15191c;border:1px solid #47535d;border-radius:16px;color:#f4f4f4}.ai-studio-header{display:flex;justify-content:space-between;gap:18px;padding:24px 26px 16px}.ai-studio-header h2{margin:8px 0;font-size:24px}.ai-studio-header p{color:#b4bec5;font-size:13px;line-height:1.6;margin:0}.ai-studio-header>button{align-self:flex-start;flex-shrink:0}.ai-studio-flow{display:flex;list-style:none;padding:0 26px 18px;margin:0;gap:10px;flex-wrap:wrap;border-bottom:1px solid #343b40}.ai-studio-flow li{font-size:13px;color:#abb6bd;padding:8px 12px;border-radius:7px;background:#20262b}.ai-studio-flow li.current{background:#244452;color:#d1eef9}.ai-studio-body{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,1fr);height:min(660px,calc(92dvh - 185px))}.ai-chat-column{display:flex;flex-direction:column;min-width:0;min-height:0;padding:20px 24px}.ai-reference{display:flex;gap:14px;padding-bottom:15px;align-items:center}.ai-reference img{width:96px;height:60px;object-fit:cover;border-radius:7px}.ai-reference strong,.ai-reference span{display:block;font-size:13px}.ai-reference span{color:#a9b9c2;margin-top:5px}.ai-chat-log{flex:1;overflow-y:auto;min-height:110px;padding-right:8px;overscroll-behavior:contain}.ai-chat-message{padding:14px 16px;border:1px solid #384048;border-radius:10px;margin-bottom:14px}.ai-chat-message.from-user{margin-left:35px;background:#252a2e}.ai-chat-message.from-ai{margin-right:25px;background:#1a2a33;border-color:#365464}.ai-chat-message strong{font-size:12px;color:#a9cddd}.ai-chat-message.from-user strong{color:#bbbfc1}.ai-chat-message p{white-space:pre-wrap;line-height:1.7;font-size:14px;margin:8px 0 0;overflow-wrap:anywhere}.ai-chat-working{display:flex;gap:12px}.ai-chat-welcome{color:#b7c2c9;padding:20px 0;font-size:14px;line-height:1.7}.ai-chat-composer{padding-top:16px;border-top:1px solid #353e44;margin-top:12px}.ai-chat-composer label{font-size:13px;color:#d9e0e4}.ai-chat-composer textarea{margin-top:8px;resize:vertical;min-height:90px;max-height:180px}.ai-chat-composer>div{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:10px}.ai-chat-composer small{color:#a4b2bb;font-size:11px;max-width:260px;line-height:1.5}.ai-chat-composer button{flex-shrink:0}.ai-plan-column{background:#111619;padding:24px;border-left:1px solid #354048;overflow-y:auto;overscroll-behavior:contain}.ai-plan-column h3{font-size:19px;margin:20px 0 14px}.ai-plan-summary{white-space:pre-wrap;line-height:1.8;color:#e4e8ea;font-size:14px}.ai-plan-prompt{border:1px solid #38444d;border-radius:8px;margin:20px 0;padding:12px;font-size:12px}.ai-plan-prompt summary{cursor:pointer;color:#abc6d5}.ai-plan-prompt p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;color:#b6c4cc}.ai-plan-apply{width:100%;min-height:48px;margin:14px 0 4px}.ai-plan-footnote{font-size:12px;color:#a2b2bc;line-height:1.7}.ai-plan-empty{padding:25px 0;color:#96a7b2;line-height:1.9;font-size:14px}.ai-plan-column>.subtle-link{margin-top:22px}.ai-chat-error{padding:14px;background:#362524;border:1px solid #96605c;border-radius:9px;font-size:13px;color:#e3c4c2;line-height:1.65}.runway-generation{padding:20px;border:1px solid #4b5960;border-radius:10px;background:#192126}.runway-generation p{font-size:13px;line-height:1.7;color:#bdc9d0}.runway-generation .generation-submit{width:100%;min-height:48px}.runway-settings{display:grid;grid-template-columns:1fr 1fr;gap:14px}.runway-credit-confirm{display:flex;align-items:flex-start;gap:9px;font-size:13px;line-height:1.6;margin:20px 0}.runway-credit-confirm input{width:auto;margin-top:3px}.runway-dialog{width:min(700px,calc(100vw - 28px));max-width:700px}.runway-dialog header{display:flex;justify-content:space-between;gap:20px}.runway-dialog label{margin:15px 0}.runway-billing-note{font-size:13px;line-height:1.7;color:#bac8d0}.provider-choice{margin:22px 0 16px}.runway-button{min-height:48px;width:100%}.provider-note{font-size:12px;color:#a9b8c1;margin-top:8px}.result-stage-label{color:#b4d7c4;font-size:12px}.runway-schema-note{font-size:12px;white-space:pre-wrap;line-height:1.7;max-height:200px;overflow:auto}.ai-generation-readback{font-size:12px;color:#a7c4d6;line-height:1.6;margin:12px 0}
@media(max-width:760px){.ai-studio-dialog{width:calc(100vw - 16px);max-height:96dvh;overflow:auto}.ai-studio-header{padding:18px 16px 14px}.ai-studio-header h2{font-size:20px}.ai-studio-flow{padding:0 16px 14px;gap:6px}.ai-studio-flow li{font-size:11px;padding:7px 8px}.ai-studio-body{display:flex;flex-direction:column;height:auto}.ai-chat-column{padding:16px}.ai-chat-log{max-height:38dvh;min-height:150px}.ai-plan-column{border-left:0;border-top:1px solid #354048;padding:20px 16px;overflow:visible}.ai-chat-composer>div{align-items:flex-end}.ai-chat-composer small{font-size:10px}.ai-chat-message.from-user{margin-left:18px}.ai-chat-message.from-ai{margin-right:12px}.runway-settings{grid-template-columns:1fr}.ai-planning-card{padding:18px}.ai-planning-actions>button{width:100%}.ai-planning-actions small{max-width:none}}

.runway-dialog>header{align-items:flex-start;position:sticky;top:-28px;background:var(--panel);z-index:1;padding-bottom:12px}.runway-dialog>header>div{min-width:0}.studio-dialog-close{width:42px;height:42px;min-width:42px;min-height:42px;flex:0 0 42px;padding:0;display:inline-flex;align-items:center;justify-content:center;align-self:flex-start;border-radius:50%;border:1px solid #505659;background:#24292c;color:#e9eef1;font-size:25px;line-height:1;cursor:pointer}.studio-dialog-close:hover{background:#3c454b;border-color:#97acb8}.studio-dialog-close:focus-visible{outline:2px solid #9cc8dc;outline-offset:3px}.runway-shared-account{padding:14px 16px;border:1px solid #46554b;background:#18241e;border-radius:9px;margin:10px 0 16px;display:flex;flex-wrap:wrap;gap:8px 16px;justify-content:space-between}.runway-shared-account strong,.runway-shared-account span{font-size:12px}.runway-shared-account span{color:var(--gold)}.runway-shared-account p{flex-basis:100%;font-size:11px;color:#aabcb1;margin:0}.runway-plan-notice{padding:18px;border:1px solid #786943;background:#28251c;border-radius:10px;line-height:1.8}.runway-plan-notice>strong{font-size:14px;color:#e6d59f}.runway-plan-notice p{font-size:12px;color:#c5c1b4}.runway-plan-notice>div{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px}.provider-budget-readback{display:flex;flex-wrap:wrap;gap:12px 24px;border:1px solid var(--line);background:#121716;border-radius:8px;padding:14px 16px;margin:-4px 0 16px;font-size:12px;color:var(--muted)}.provider-budget-readback strong{margin-left:8px;color:var(--gold);font-weight:500}.provider-selection-prompt{padding:22px;text-align:center;border:1px dashed #475458;border-radius:9px;color:#b0bdc4;font-size:13px}.runway-dialog [data-runway-price-basis]{font-size:11px;color:#a9b8c1}
.ai-image-prompt-helper{flex-shrink:0;padding:12px;margin-bottom:14px;border:1px solid #3d5969;border-radius:10px;background:#1b2c36}.ai-image-prompt-helper .ai-image-prompt-button{width:100%;min-height:48px;white-space:normal;line-height:1.45}.ai-image-prompt-helper p{margin:9px 0 0;color:#b6c7d1;font-size:12px;line-height:1.6}.ai-image-prompt-button:disabled{opacity:.5;cursor:not-allowed}

.storyboard-helper{padding:16px;border:1px solid #756647;border-radius:10px;background:#28251d;margin-bottom:12px;flex-shrink:0}.storyboard-helper strong{font-size:14px}.storyboard-helper p,.storyboard-helper small{font-size:12px;line-height:1.7;color:#c5c1b4}.storyboard-helper label{display:block;margin:10px 0}.storyboard-helper button{width:100%;min-height:44px}.storyboard-helper small{display:block;margin-top:8px}.storyboard-guide{border:1px solid #655a3f;border-radius:12px;padding:20px;background:#191c1b;margin-bottom:16px}.storyboard-heading{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.storyboard-heading strong{font-size:16px}.storyboard-heading span{color:var(--gold);font-size:12px}.storyboard-style{color:#bfc5bc;font-size:13px;line-height:1.7;margin:12px 0 16px}.storyboard-scenes{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;padding:0;margin:0;list-style:none}.storyboard-scene{display:flex;flex-direction:column;padding:16px;border:1px solid #424b45;background:#121716;border-radius:9px;min-width:0}.storyboard-scene.is-applied{border-color:var(--gold)}.storyboard-scene-top{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#b9c3ba}.storyboard-number{font-weight:600;color:var(--gold)}.storyboard-scene h4{font-size:14px;margin:10px 0}.storyboard-scene p{font-size:12px;line-height:1.75;color:#b7c0b8;white-space:pre-wrap;margin:0 0 12px;overflow-wrap:anywhere}.storyboard-scene>p{flex:1}.storyboard-scene details{font-size:12px;margin-bottom:14px}.storyboard-scene details p{margin-top:8px}.storyboard-scene button{width:100%;min-height:42px;white-space:normal}.storyboard-footnote{font-size:12px;line-height:1.7;color:#b0b5ad;margin:16px 0 0}.storyboard-actions{margin-bottom:20px}.ai-plan-column .storyboard-guide{padding:12px}.ai-plan-column .storyboard-scenes{grid-template-columns:1fr}.ai-chat-column:has(.storyboard-helper){overflow-y:auto}.ai-chat-column:has(.storyboard-helper) .ai-chat-log{min-height:160px}.ai-plan-column:has(.storyboard-guide)>.ai-plan-summary,.ai-plan-column:has(.storyboard-guide)>.ai-plan-prompt,.ai-plan-column:has(.storyboard-guide)>.ai-plan-apply,.ai-plan-column:has(.storyboard-guide)>.ai-plan-footnote{display:none}@media(max-width:600px){.storyboard-scenes{grid-template-columns:1fr}.storyboard-guide{padding:14px}.storyboard-intro .ai-planning-actions{display:grid;gap:10px}}
