.z2m-commands-dialog{--zc-bg:var(--surface,#fff);--zc-soft:var(--bg,#f5f5ef);--zc-ink:var(--ink,#183c38);--zc-muted:#5d7267;--zc-line:var(--line,#d8e2da);--zc-accent:var(--teal,#1b645b);width:min(1120px,calc(100% - 1rem));max-width:1120px;max-height:calc(100dvh - 1rem);padding:0;margin:auto;border:1px solid var(--zc-line);border-radius:18px;background:var(--zc-bg);color:var(--zc-ink);overflow:hidden;box-shadow:0 28px 100px #143c4040}.z2m-commands-dialog::backdrop{background:#0c253f66;backdrop-filter:blur(3px)}.z2m-commands-dialog [hidden]{display:none!important}.zc-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;padding:1rem 1.2rem;border-bottom:1px solid var(--zc-line)}.zc-header h2{font-size:1.2rem;margin:0 0 .3rem}.zc-header p{margin:0;overflow-wrap:anywhere}.zc-body{padding:1rem 1.2rem;margin:0;border:0;min-width:0;max-height:calc(100dvh - 14rem);overflow:auto}.zc-workspace{display:grid;grid-template-columns:250px minmax(0,1fr);gap:1rem;align-items:start}.zc-library{min-width:0;background:var(--zc-soft);border:1px solid var(--zc-line);border-radius:12px;padding:.85rem;display:flex;flex-direction:column;gap:.6rem;position:sticky;top:0}.zc-library>input,.zc-field>input,.zc-field>select,.zc-field>textarea{min-width:0;width:100%;max-width:100%;min-height:44px;padding:.6rem .7rem;border:1px solid var(--zc-line);border-radius:8px;background:var(--zc-bg);color:var(--zc-ink);font:inherit}.zc-count{margin:0;font-size:.8rem;color:var(--zc-muted)}.zc-list{display:flex;flex-direction:column;gap:.35rem;max-height:320px;overflow:auto}.zc-list-item{display:flex;flex-direction:column;gap:.2rem;text-align:left;padding:.65rem;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--zc-ink);overflow-wrap:anywhere}.zc-list-item small{font-size:.75rem;color:var(--zc-muted)}.zc-list-item[aria-current=true]{border-color:var(--zc-accent);background:var(--zc-bg);font-weight:650}.zc-editor-host{min-width:0}.zc-command-editor{display:flex;flex-direction:column;gap:1rem;min-width:0}.zc-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-wrap:wrap}.zc-editor-heading h3{margin:0;font-size:1.05rem}.zc-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.zc-field{display:flex;flex-direction:column;gap:.4rem;font-size:.85rem;min-width:0;font-weight:600}.zc-field>textarea{font:13px/1.6 ui-monospace,monospace;resize:vertical;min-height:100px;max-height:400px}.zc-field>input[readonly]{background:var(--zc-soft)}.zc-help{color:var(--zc-muted);font-size:.82rem;line-height:1.6;margin:.4rem 0;font-weight:400}.zc-check{display:flex;align-items:center;gap:.6rem;font-size:.88rem;min-height:44px}.zc-check input{width:20px;height:20px;margin:0;flex-shrink:0}.zc-binary{display:flex;flex-direction:column;gap:.8rem}.zc-outgoing{display:flex;flex-direction:column;gap:.7rem;padding:1rem;border:1px solid var(--zc-line);border-radius:12px;background:var(--zc-soft)}.zc-outgoing h4{margin:0}.zc-outgoing>.button{align-self:flex-start}.zc-preview{font-size:.85rem;font-weight:650}.zc-preview-result{max-height:220px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font-size:.8rem}.zc-preview-result[data-error=true],.zc-message[data-error=true]{color:var(--danger,#b55243)}.zc-message{padding:.8rem;border:1px solid var(--zc-line);border-radius:9px;background:var(--zc-soft);font-size:.88rem;overflow-wrap:anywhere}.zc-footer{display:flex;gap:.6rem;align-items:center;justify-content:flex-end;flex-wrap:wrap;padding:1rem 1.2rem;border-top:1px solid var(--zc-line);background:var(--zc-bg)}.zc-footer>span{margin-right:auto;color:var(--zc-muted);font-size:.8rem}.z2m-commands-dialog button{min-height:44px}.z2m-commands-dialog .button.secondary{background:var(--zc-bg);color:var(--zc-ink);border-color:var(--zc-line)}
:is([data-theme="dark"],.theme-dark) .z2m-commands-dialog,.z2m-commands-dialog:is([data-theme="dark"],.theme-dark){--zc-bg:#172f2b;--zc-soft:#102622;--zc-ink:#e2eee6;--zc-muted:#b2c6b8;--zc-line:#375344;--zc-accent:#98c6a6;color-scheme:dark}
.z2m-commands-dialog[open]{display:flex;flex-direction:column}.zc-header,.zc-footer{flex-shrink:0}.zc-body{flex:1;min-height:0}
@media(max-width:760px){.zc-workspace{grid-template-columns:1fr}.zc-library{position:static}.zc-list{max-height:150px}.zc-header{padding:.8rem}.zc-header h2{font-size:1.05rem}.zc-body{padding:.8rem;max-height:calc(100dvh - 16rem)}.zc-footer{padding:.8rem}.zc-footer>span{width:100%}.zc-field input,.zc-field select,.zc-library>input{font-size:16px}.zc-fields{grid-template-columns:1fr}.zc-outgoing{padding:.7rem}.zc-command-editor .button{font-size:.83rem}}
