.xml-workbench{max-width:1200px;margin:auto;color:#eaf2fb}.xml-surface{border:1px solid #344a62;border-radius:15px;background:#162330;padding:17px}.toolbar,.xml-footer,.xml-panel-head,.xml-group{display:flex;gap:9px;align-items:center;justify-content:space-between;flex-wrap:wrap}.toolbar{padding-bottom:16px;border-bottom:1px solid #324658}.xml-group{justify-content:flex-start}.xml-btn,.xml-icon{color:#eff8ff;border:1px solid #435e77;border-radius:8px;background:#1a2b3b;padding:9px 12px;cursor:pointer;font-size:13px;font-weight:600}.xml-btn:hover,.xml-icon:hover{border-color:#42ccaf}.xml-btn.xml-primary{background:#087c63;border-color:#32cbaa}.xml-panels{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:15px;margin-top:18px}.xml-panel{min-width:0}.xml-panel-head{font-weight:700;font-size:13px;margin:0 0 10px;min-height:32px}.xml-panel-head span:not(:first-child){font-weight:400;color:#8eabc4}.xml-panel textarea,.xml-result{width:100%;height:460px;min-height:300px;background:#0d1925;color:#e5f2fe;border:1px solid #405a75;border-radius:9px;padding:16px;font:13px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace;resize:vertical}.xml-result{overflow:auto;resize:vertical;max-width:100%;height:419px}.xml-result pre{white-space:pre;min-width:max-content;color:#dff1ff;margin:0}.xml-view-switch{display:flex;gap:6px;margin-bottom:8px}.xml-view-switch button{border:1px solid #435e77;background:#1c2b3b;color:#dceafa;border-radius:7px;padding:5px 12px}.xml-view-switch button[aria-selected=true]{background:#087c63;color:white}.xml-tree{min-width:max-content;padding-right:24px;font:13px/1.65 ui-monospace,Consolas,monospace}.xml-tree-node{margin-left:4px}.xml-tree-node summary{cursor:pointer;white-space:nowrap;list-style:disclosure-closed}.xml-tree-node[open]>summary{list-style:disclosure-open}.xml-tree-children{margin-left:22px;border-left:1px solid #344a5c;padding-left:9px}.xml-tree-name{color:#60d8bd}.xml-tree-attr{color:#92b6f9}.xml-tree-value{color:#ffd080}.xml-tree-muted{color:#8298ab}.xml-tree-text{color:#f3e8cb;padding-left:8px}.xml-tree-invalid,.xml-error{color:#ffb0b9!important}.xml-footer{padding-top:14px;color:#aac5d9;font-size:13px}@media(max-width:800px){.xml-panels{grid-template-columns:1fr}.xml-panel textarea,.xml-result{height:320px}.xml-result{height:279px}}

/* Result controls and validation feedback */
.xml-panel-head .xml-group{gap:6px;margin-left:auto;flex-wrap:nowrap}.xml-panel-head .xml-group [role=tab]{border:1px solid #435e77;background:#1c2b3b;color:#dceafa;border-radius:7px;padding:7px 10px;font-size:12px;cursor:pointer}.xml-panel-head .xml-group [role=tab][aria-selected=true]{background:#087c63;color:white}.xml-panel-head .xml-group .xml-icon{padding:7px 10px;min-width:38px}.xml-result{height:460px}#xmlValidationResult{padding:10px 12px;margin:0 0 10px;border-radius:8px;background:#173b33;border:1px solid #31a984;color:#c8ffe8;font-size:13px}#xmlValidationResult.xml-error{background:#42222b;border-color:#dc6677;color:#ffe0e5!important}#xmlValidationResult[hidden]{display:none!important}@media(max-width:520px){.xml-panel-head .xml-group [role=tab]{padding:6px;font-size:11px}}

/* XML source copy control and compact property tree */
.xml-source-container{position:relative;min-height:100%;}
.xml-source-container[hidden]{display:none!important}
.xml-source-container pre{padding-right:56px;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
.xml-source-copy{position:absolute;right:12px;top:12px;z-index:2}
.xml-tree-keyvalue{padding:3px 0;display:block;overflow-wrap:anywhere}
.xml-tree-key{color:#9ad7ef}
.xml-tree-keyvalue .xml-tree-value{color:var(--text-primary,#eaf2fc)}

/* XML editor: shared toolbar and aligned import/working area */
.crumb.lc-crumb-heading + .lc-xml-import, .lc-xml-import {box-sizing:border-box;width:100%;max-width:1200px;margin:12px auto 12px;background:#142332;border:1px solid #344a62;border-radius:12px;color:#eaf2fb;overflow:hidden}
.lc-xml-import>summary{cursor:pointer;padding:14px 16px;font-weight:600;list-style:revert}
.lc-xml-import[open]>summary{border-bottom:1px solid #344a62}
.lc-xml-import-inner{padding:14px 16px}
.lc-xml-drop{display:flex;justify-content:center;align-items:center;min-height:68px;border:1px dashed #436682;border-radius:9px;padding:14px;cursor:pointer}
.legacy-tool-content .dw-tabs.toolbar.lc-standard-tabs{display:flex;align-items:center;justify-content:flex-start;gap:8px;flex-wrap:wrap}
.legacy-tool-content .dw-tabs.toolbar.lc-standard-tabs #xmlSample{margin-left:auto}
.legacy-tool-content .wb-grid.lc-standard-grid{display:block;min-width:0}
.legacy-tool-content .wb-grid.lc-standard-grid>.xml-panels{margin-top:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;min-width:0}
.legacy-tool-content .xml-panels>.xml-panel{min-width:0}
.legacy-tool-content .lc-editor-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 0 0}
.legacy-tool-content .lc-editor-footer #xmlSave{margin-left:auto}
@media(max-width:800px){.legacy-tool-content .wb-grid.lc-standard-grid>.xml-panels{grid-template-columns:minmax(0,1fr)}.lc-xml-import{max-width:100%}}
