/* ezAutom8 Creator: Visual / Code switch, source editor, and focused workspace. */
.creator-view-switch{display:flex;align-items:center;gap:3px;border:1px solid #b9c6e0;background:#e7ecf7;border-radius:9px;padding:3px}
.creator-view-button{display:inline-flex;gap:7px;align-items:center;justify-content:center;border:0;border-radius:7px;background:transparent;color:#4c5c77;font:800 12px/1.2 system-ui,-apple-system,"Segoe UI",sans-serif;padding:8px 11px;min-width:80px;white-space:nowrap}
.creator-view-button.active,.creator-view-button[aria-pressed=true]{background:#fff;color:#4f38b5;box-shadow:0 1px 4px #1b2e4d21}
.creator-view-icon{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:16px;font-weight:850;line-height:1}
.creator-code-pane{width:100%;min-width:0;min-height:430px;display:flex;flex-direction:column;gap:10px;flex:1;padding:12px;background:#f8faff;border:1px solid #bac9e0;border-radius:9px}
.creator-code-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.creator-code-heading h3{font-size:14px;color:#253552;margin:0 0 4px}
.creator-code-heading p{font-size:12px;max-width:850px;color:#5c6d83;line-height:1.4;margin:0}
.creator-code-source{display:block;resize:vertical;width:100%;min-height:360px;flex:1;background:#12203b;color:#eff7ff;border:1px solid #355273;border-radius:8px;padding:15px 17px;font:12px/1.6 ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;tab-size:2;white-space:pre;overflow:auto;spellcheck:false}
.creator-code-source:focus-visible{outline:3px solid #e9ac54;outline-offset:2px}
.creator-code-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.creator-code-status{margin:0;font-size:12px;line-height:1.5;color:#305f67;flex:1}
.creator-code-status.error{color:#972d42;font-weight:700}
body.focus .creator-code-pane{min-height:65vh}
body.focus .creator-code-source{min-height:56vh}
@media(max-width:860px){.creator-code-pane{padding:9px}.creator-code-source{min-height:370px}}
@media(max-width:580px){.creator-view-button{min-width:65px;padding:7px 9px}.creator-code-source{font-size:11px;padding:9px}}


/* Keep creation mode and representation together; wrap within this bar on phones. */
.creator-top-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#e3e9f4;padding:5px;border-radius:12px;min-width:0}
.creator-top-controls .mode-bar{flex:1 1 410px;padding:0;background:transparent;min-width:0}
.creator-top-controls .mode-btn{min-width:110px;flex:1 1 auto}
.creator-top-controls .creator-view-switch{flex:0 0 auto;margin-left:auto}
@media(max-width:580px){.creator-top-controls .mode-bar{flex-basis:100%}.creator-top-controls .mode-btn{min-height:44px;min-width:0;flex:1 1 80px;font-size:11px;padding:8px 5px}.creator-top-controls .creator-view-button{min-height:44px}.creator-top-controls .creator-view-switch{margin-left:0}}
