.automation-panel{color:#f4eeee;background:#160e12;border:1px solid #69313c;border-radius:18px;width:min(1240px,96vw);max-height:94vh;padding:24px;overflow:auto;box-shadow:0 24px 100px #000b}.automation-panel::backdrop{background:#080408d9}.automation-panel header{display:flex;justify-content:space-between;align-items:center;gap:16px}.automation-panel h2{font-size:23px;margin:0}.automation-panel h3{margin:20px 0 12px}.automation-panel section{border-top:1px solid #ffffff18;margin-top:20px;padding-top:4px}.automation-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0}.automation-controls label{display:flex;gap:8px;align-items:center}.automation-panel input:not([type=checkbox]),.automation-panel select,.automation-panel textarea{background:#0d090d;color:inherit;border:1px solid #ffffff28;border-radius:8px;padding:10px;max-width:100%;font:inherit}.automation-controls input[type=url]{flex:1;min-width:220px}.automation-panel img{width:100%;height:auto;aspect-ratio:1200/760;object-fit:contain;background:#fff;border-radius:10px;cursor:crosshair}.automation-panel textarea{display:block;width:100%;box-sizing:border-box;margin:12px 0;font:13px/1.6 Consolas,monospace}.automation-panel pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto;background:#090709;border-radius:8px;padding:14px;font:13px/1.6 Consolas,monospace}.automation-status{color:#ccadb5}.automation-approval{border:1px solid #d05569!important;padding:14px!important;border-radius:12px}.automation-panel button{min-height:36px}.automation-panel :focus-visible{outline:2px solid #f07286;outline-offset:3px}@media(max-width:650px){.automation-panel{padding:14px}.automation-controls>*{max-width:100%}.automation-panel h2{font-size:19px}}
.chat-tools-menu{position:relative;flex:none}.chat-tools-menu>summary{cursor:pointer;list-style:none;padding:8px 12px;border:1px solid #71333e;border-radius:9px;font-size:12px}.chat-tools-menu>summary::-webkit-details-marker{display:none}.chat-tools-menu>summary:after{content:' ▾'}.chat-tools-items{position:absolute;top:calc(100% + 8px);right:0;width:240px;z-index:80;padding:8px;background:#211219;border:1px solid #71333e;border-radius:12px;box-shadow:0 12px 35px #0008}.chat-tools-items button{display:block;text-align:left;width:100%;margin:0;padding:12px!important;font-size:12px!important;border:0;border-radius:7px;background:transparent}.chat-tools-items button[hidden]{display:none}.chat-tools-items button:hover{background:#ffffff0b}
body.preview-open>main{margin-left:52vw;width:48vw;min-width:0}
body .automation-panel[open]{position:fixed;inset:0 auto 0 0;margin:0;width:52vw;max-width:none;height:100dvh;max-height:none;border-radius:0;border-width:0 1px 0 0;padding:18px;z-index:35;box-shadow:none}
body .automation-panel header{position:sticky;top:-18px;padding:12px 0;height:auto;background:#160e12;z-index:2;gap:12px}
body.preview-open .composer-wrap{padding-inline:16px}body.preview-open .header-left .pro-pill{display:none}body.preview-open main>header{padding-inline:12px;gap:8px}body.preview-open .theme-switch{display:none}
@media(max-width:760px){body.preview-open>main{margin-left:0;width:100%;height:55dvh;margin-top:45dvh}body .automation-panel[open]{width:100%;height:45dvh;border-width:0 0 1px;padding:12px}body .automation-panel header{top:-12px}.chat-tools-menu>summary{padding:7px;font-size:11px}}
