/* Cosmo Chart 0.11.33 — keep quick toolbar; gear opens one unified properties editor. */
#chart-wrapper > #cosmo-object-toolbar:not([hidden]) {
  display:flex!important; z-index:67!important;
}
#chart-wrapper > #cosmo-object-toolbar[hidden] { display:none!important; }
#chart-wrapper > #cosmo-editor.cosmo-unified-editor {
  position:absolute!important; right:auto!important; bottom:auto!important;
  z-index:68!important; width:min(364px,calc(100% - 28px))!important;
  max-width:none!important; max-height:min(76vh,590px)!important;
  min-height:0!important; overflow:hidden!important;
  display:flex!important; flex-direction:column!important;
  background:var(--mono-bar,#191c22)!important;
  border:1px solid var(--mono-border,#454c5a)!important;
  border-radius:14px!important; box-shadow:0 18px 48px #0009!important;
  backdrop-filter:blur(12px);
}
#chart-wrapper > #cosmo-editor.cosmo-unified-editor[hidden] { display:none!important; }
#cosmo-editor.cosmo-unified-editor .editor-tabs,
#cosmo-editor.cosmo-unified-editor #editor-native { display:none!important; }
#cosmo-editor.cosmo-unified-editor .editor-content {
  flex:1 1 auto!important; min-height:0!important; max-height:none!important;
  overflow-y:auto!important; overflow-x:hidden!important; padding:8px 13px 14px!important;
}
#cosmo-editor.cosmo-unified-editor .editor-help { display:none!important; }
#cosmo-editor.cosmo-unified-editor .editor-head {padding:10px 13px!important;}
#cosmo-editor.cosmo-unified-editor .editor-foot {display:flex;gap:8px;flex-shrink:0;padding:9px 13px!important;}
#cosmo-editor.cosmo-unified-editor .editor-foot button { flex:1; }
#cosmo-editor.cosmo-unified-editor .editor-row {display:grid!important;grid-template-columns:minmax(100px,1fr) minmax(105px,1fr);align-items:center;gap:9px;}
#cosmo-editor.cosmo-unified-editor .editor-row > span{min-width:0!important;}
#cosmo-editor.cosmo-unified-editor .editor-row > input,
#cosmo-editor.cosmo-unified-editor .editor-row > select,
#cosmo-editor.cosmo-unified-editor .editor-row > textarea{width:100%!important;min-width:0!important;}
#cosmo-editor.cosmo-unified-editor .editor-content h4{position:relative;margin:13px 0 8px;padding-top:9px;border-top:1px solid var(--mono-border,#454c5a);}
@media(max-width:700px){
  #chart-wrapper > #cosmo-editor.cosmo-unified-editor{width:min(340px,calc(100% - 16px))!important;max-height:min(65vh,490px)!important;}
}

/* v0.11.34 explicit lock state in the quick toolbar and editor */
#cosmo-object-toolbar button[data-action="lock"] svg { width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8; }
#cosmo-object-toolbar button[data-action="lock"][aria-pressed="true"] {color:#ffbe61;border-color:#996e38;background:#3b2b1e;}
#cosmo-object-toolbar :disabled, #cosmo-editor :disabled {opacity:.48;cursor:not-allowed;}
