/* Live editor (/editor/): a slim bar above the zplCore Designer, which fills the rest of the viewport (64 px header). */
.ed-main{max-width:none;padding:0;display:flex;flex-direction:column;min-height:calc(100dvh - 64px)}
.ed-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;padding:8px 16px;border-bottom:1px solid var(--line);background:var(--panel)}
.ed-title{margin:0 8px 0 0;font:700 1.05rem/1.2 Roboto,system-ui,sans-serif;color:var(--ink);white-space:nowrap}
.ed-title span{margin-left:6px;font-weight:500;font-size:.85rem;color:var(--muted)}
.ed-ex{flex-direction:row}
.ed-ex select{min-height:36px;padding:4px 10px;font-size:.88rem;max-width:min(320px,100%)}
.ed-acts{display:flex;align-items:center;gap:8px}
.ed-bar .vstat{min-height:20px}
.ed-info{margin-left:auto;position:relative}
.ed-info summary{cursor:pointer;font-size:.88rem;color:var(--muted);min-height:36px;display:flex;align-items:center;padding:0 4px}
.ed-info-body{position:absolute;right:0;top:calc(100% + 6px);z-index:30;width:min(520px,calc(100vw - 32px));background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:12px 16px;box-shadow:0 12px 32px rgba(0,0,0,.18);font-size:.88rem;color:var(--muted)}
.ed-info-body p{margin:0}
.ed-frame{flex:1;display:flex;min-height:520px;background:var(--bg)}
.ed-frame iframe{flex:1;width:100%;min-height:520px;height:calc(100dvh - 64px - var(--ed-bar,53px));border:0;display:block;background:var(--bg)}
.ed-noscript{margin:24px auto;color:var(--muted)}
.ed-dlg{width:min(860px,calc(100vw - 32px));max-height:calc(100dvh - 48px);border:1px solid var(--line);border-radius:16px;padding:18px 20px;background:var(--panel);color:var(--text)}
.ed-dlg::backdrop{background:rgba(8,14,30,.55)}
.ed-dlg-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.ed-dlg h2{margin:0;font-size:1.2rem;color:var(--ink)}
.ed-x{border:0;background:none;color:var(--muted);font-size:1.6rem;line-height:1;cursor:pointer;min-width:44px;min-height:44px}
.ed-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);overflow-x:auto;margin-top:6px}
.ed-tabs button{flex:0 0 auto;min-height:44px;padding:0 14px;border:0;border-bottom:3px solid transparent;margin-bottom:-1px;background:none;color:var(--muted);font:500 .9rem Roboto,system-ui,sans-serif;cursor:pointer;white-space:nowrap}
.ed-tabs button[aria-selected=true]{color:var(--ink);border-bottom-color:var(--em)}
.ed-pane{position:relative;margin-top:12px}
.ed-code{margin:0;background:var(--code-bg);color:#e2e8f0;border-radius:12px;padding:14px 16px;overflow:auto;max-height:50vh;font:400 .82rem/1.55 "Roboto Mono",ui-monospace,monospace;white-space:pre}
.ed-copy{position:absolute;top:8px;right:8px;background:var(--panel)}
@media (max-width:767.98px){
  .ed-bar{padding:6px 16px;gap:6px 8px}
  .ed-title{font-size:.95rem}
  .ed-title span{display:none}
  .ed-ex{flex:1;min-width:0}.ed-ex select{width:100%;max-width:none}
  .ed-acts{order:3;flex:1 1 100%;min-width:0;overflow-x:auto;scrollbar-width:none;padding-bottom:1px}
  .ed-acts .btn{flex:0 0 auto}
  .ed-info{order:2;margin-left:0}
  .ed-bar .vstat{order:5;width:100%;min-height:0}
  .ed-bar .vstat:empty{display:none}
  .ed-frame,.ed-frame iframe{min-height:420px}
}
