/* Scoped chart authoring controls, shared with the native-format workspace editor. */
.dpsim-chart-editor{display:grid;gap:14px;min-width:0;color:var(--text,#e4ece9)}
.dpsim-chart-editor>div:first-child{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.dpsim-chart-editor>div:first-child select{flex:1 1 220px}
.dpsim-chart-editor label{display:flex;flex-direction:column;gap:6px;font-size:13px;line-height:1.5;min-width:0;margin-bottom:12px}
.dpsim-chart-editor input,.dpsim-chart-editor select{box-sizing:border-box;min-width:0;width:100%;max-width:100%;padding:9px 10px;border:1px solid #3b524b;border-radius:7px;background:#101d19;color:inherit;font:inherit}
.dpsim-chart-editor input[type=checkbox]{width:20px;height:20px;accent-color:#49be91}
.dpsim-chart-editor input[type=color]{height:38px;padding:3px;max-width:100px}
.dpsim-chart-editor button{padding:9px 13px;min-height:40px;margin:0 6px 8px 0;border:1px solid #416858;border-radius:7px;background:#203d31;color:#edf9f3;font:inherit;cursor:pointer}
.dpsim-chart-editor button:hover{background:#2a5141}
.dpsim-chart-editor :is(button,input,select,summary):focus-visible{outline:2px solid #80dfb6;outline-offset:3px}
.dpsim-chart-editor details{margin:10px 0;border:1px solid #344d43;border-radius:9px;overflow:hidden;background:#15251e}
.dpsim-chart-editor summary{padding:13px 14px;font-weight:600;cursor:pointer;overflow-wrap:anywhere}
.dpsim-chart-editor .editor-fields{padding:14px;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:8px 16px;border-top:1px solid #344d43}
.dpsim-chart-editor .editor-fields>label{margin:0}
.dpsim-chart-editor [role=status]{font-size:13px;line-height:1.6;padding:10px 12px;border-left:3px solid #49be91;background:#152b22;margin:0;overflow-wrap:anywhere}
.dpsim-chart-editor svg{width:100%;max-width:100%;border-radius:8px;background:white}
.dpsim-chart-editor svg:empty{display:none}
@media(max-width:560px){.dpsim-chart-editor>div:first-child{align-items:stretch}.dpsim-chart-editor>div:first-child button{flex:1 1 40%;margin:0}.dpsim-chart-editor .editor-fields{grid-template-columns:minmax(0,1fr)}.dpsim-chart-editor{gap:10px}}
