#tableWrap:has(.policy-tree-shell){overflow:visible;max-height:none}.policy-tree-shell,.policy-tree-content{min-width:0}.policy-tree-shell{display:grid;gap:.65rem}.policy-tree-content{overflow:auto;max-height:560px}.policy-toolbar{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap}.policy-toolbar-title{white-space:nowrap}.policy-toolbar input[type=search]{width:auto;min-width:12rem;flex:1;margin:0}.policy-toolbar select{width:auto;margin:0}.policy-rule-count,.policy-selection-count{white-space:nowrap;color:var(--muted,#64748b)}.policy-filter-panel,.policy-actionbar{display:flex;gap:.4rem;align-items:center;flex-wrap:wrap}.policy-filter-panel{order:20;flex:1 0 100%}.policy-filter-panel[hidden]{display:none}.policy-actionbar{margin-left:auto}.policy-add-rule{min-width:6.5rem;padding-inline:.65rem}.policy-table th:first-child,.policy-table td:first-child{width:2.5rem;text-align:center}.policy-table tr[class^=rule-tree-]>td:first-child,.policy-table td[colspan]{width:auto;text-align:left}.policy-table input[type=checkbox]{width:16px;height:16px;margin:0}.policy-move-dialog{min-width:min(28rem,90vw)}.policy-move-dialog>*{display:block;margin:.65rem 0;width:100%}@media(max-width:720px){.policy-toolbar>*{flex:0 1 auto}.policy-toolbar input[type=search]{flex:1 0 100%}.policy-actionbar{margin-left:0;width:100%}}

/* Keep the active operation, submit controls and result tools in reading order. */
#workspace #workbench #operation:not([hidden]) {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 14px;min-width:0}
#workspace #workbench #operation > .operation-title {grid-column:1;grid-row:1;min-width:0;margin:0;align-items:center}
#workspace #workbench #resourceActions {grid-row:1;grid-column:2;display:flex;justify-content:flex-end;flex-wrap:wrap;margin:0}
#workspace #workbench #resourceActions:empty {display:none}
#workspace #workbench #operation > :is(.op-reference,#path,#opDescription,#requestForm) {grid-column:1/-1;min-width:0}
#workspace #workbench #operation > .op-reference {color:var(--muted);border-bottom:1px solid var(--border);padding:5px 0 10px}
#workspace #workbench #operation > .op-reference #path {display:block;overflow-wrap:anywhere;margin:8px 0}
#workspace #workbench #queryDetails {padding:10px 12px;border:1px solid var(--border);border-radius:9px;background:var(--panel)}
#workspace #workbench #requestForm > .request-actions {position:sticky;bottom:0;z-index:2;display:flex;align-items:center;flex-wrap:wrap;gap:10px;background:var(--panel);border-top:1px solid var(--border);padding:9px 0;margin:12px 0 0}
#workspace #workbench #requestForm .request-actions #source {margin-left:auto}
#workspace #workbench #results:not([hidden]) {margin-top:18px;border-top:1px solid var(--border);padding-top:14px}
#workspace #workbench #results>.results-heading {display:flex;gap:8px;align-items:center;flex-wrap:wrap}
#workspace #workbench #results>.results-heading h2 {margin:0 auto 0 0}
@media(max-width:680px){
 #workspace #workbench #operation:not([hidden]) {grid-template-columns:minmax(0,1fr)}
 #workspace #workbench #resourceActions {grid-row:auto;grid-column:1;justify-content:flex-start}
 #workspace #workbench #requestForm .request-actions #source {margin-left:0}
 #workspace #workbench #results>.results-heading {align-items:flex-start}
}

dialog.scm-clone-dialog { box-sizing:border-box; width:min(50rem,calc(100vw - 1.5rem)); max-width:100%; max-height:90dvh; padding:0; overflow:auto; border:1px solid var(--border); border-radius:8px; background:var(--panel); color:var(--text); }
dialog.scm-clone-dialog::backdrop { background:rgb(5 12 21 / .58); }
.scm-clone-dialog > header,.scm-clone-dialog footer { position:static; display:flex; align-items:center; gap:10px; padding:12px 18px; border:0; background:var(--panel); color:inherit; }
.scm-clone-dialog > header { border-bottom:1px solid var(--border); justify-content:space-between; }
.scm-clone-dialog > header h2 { font-size:1.18rem; margin:0; }
.scm-clone-dialog > header button { font-size:1.4rem; padding:0 .4rem; min-width:2rem; }
.scm-clone-dialog form > section { display:grid; grid-template-columns:minmax(7.5rem,auto) minmax(0,1fr); gap:16px; padding:20px 18px; align-items:start; }
.scm-clone-dialog :is(label,select,input,table) { margin:0; }
.scm-clone-dialog .scm-clone-items { overflow:auto; max-height:14rem; min-width:0; }
.scm-clone-dialog .scm-clone-items table { width:100%; min-width:0; border-collapse:collapse; }
.scm-clone-items :is(td,th) { padding:6px 10px; border:1px solid var(--border); text-align:start; overflow-wrap:anywhere; }
.scm-clone-dialog .scm-clone-types,.scm-clone-dialog .scm-clone-types label,.scm-clone-dialog label.scm-clone-first { display:flex; flex-wrap:wrap; align-items:center; gap:9px; color:inherit; font-weight:normal; }
.scm-clone-dialog .scm-clone-types { gap:18px; }
.scm-clone-dialog input:is([type=checkbox],[type=radio]) { width:16px; height:16px; padding:0; margin:0; flex:none; }
.scm-clone-dialog .scm-clone-names { padding:0; border:0; color:var(--muted); }
.scm-clone-dialog .scm-clone-names label { margin-top:8px; }
.scm-clone-dialog footer { position:sticky; bottom:0; justify-content:flex-end; border-top:1px solid var(--border); z-index:1; }
.scm-clone-dialog .pw-errors:not([hidden]) { margin:0 18px 12px; white-space:pre-line; overflow-wrap:anywhere; }
.scm-clone-dialog form > .scm-clone-review { display:grid; grid-template-columns:minmax(0,1fr); }
.scm-clone-review details { min-width:0; overflow:auto; }
.scm-row-menu:popover-open { position:fixed; inset:auto; margin:0; display:grid; min-width:9rem; max-height:80dvh; overflow:auto; padding:4px; border:1px solid var(--border); border-radius:6px; box-shadow:0 12px 32px rgb(0 0 0 / .25); background:var(--panel); color:var(--text); }
.scm-row-menu button { text-align:start; padding:7px 12px; background:transparent; color:inherit; border:0; }
.scm-row-menu button:is(:focus-visible,:hover):enabled { background:var(--line,var(--border)); }
@media(max-width:560px){
 .scm-clone-dialog form > section { grid-template-columns:minmax(0,1fr); gap:8px; padding:14px; }
 .scm-clone-dialog form > section > div:empty { display:none; }
 .scm-clone-dialog form > section > :is(select,.scm-clone-items,.scm-clone-types) { margin-bottom:8px; }
}
.scm-clone-dialog label.scm-clone-first { display:grid; grid-template-columns:16px minmax(0,1fr); line-height:1.45; }
.scm-clone-dialog form > section > label[for] { font-size:inherit; font-weight:normal; color:inherit; }
.configuration-object-actions { display:flex; justify-content:flex-end; margin-bottom:8px; }
#tableWrap td input[type=checkbox] { width:16px; height:16px; }
.scm-clone-dialog [hidden] { display:none!important; }
.scm-clone-picker { position:relative; min-width:0; }
.scm-clone-picker > button { width:100%; text-align:start; }
.scm-clone-picker-menu { position:relative; z-index:1; border:1px solid var(--border); border-radius:4px; padding:6px; background:var(--panel); }
.scm-clone-picker-menu [role=listbox] { display:grid; max-height:10rem; overflow:auto; overscroll-behavior:contain; }
.scm-clone-picker-menu [role=option] { text-align:start; border:0; background:transparent; }
.scm-clone-picker-menu [aria-selected=true] { font-weight:bold; background:var(--line,var(--border)); }
.scm-clone-review td input { min-width:5rem; width:100%; }
.policy-move-button::after { content:'▾'; margin-inline-start:.4em; }
