html:has(.copy-ops-table) { scrollbar-gutter:stable both-edges; }
#copy-ops-title { font-size:16px; line-height:1.4; }
.copy-ops-toolbar,.copy-ops-actions { display:flex; flex-wrap:wrap; gap:8px; }
.copy-ops-toolbar { align-items:flex-end; }
.copy-ops-toolbar .field { width:min(100%,260px); margin:0; font-size:13px; }
.copy-ops-totals { margin:16px 0; padding:16px; background:var(--panel); border:1px solid var(--border); border-radius:12px; }
.copy-ops-totals:empty { display:none; }
.copy-ops-totals h3 { margin:0; font-size:14px; line-height:1.4; }
.copy-ops-totals p.sub { margin:4px 0 12px; color:var(--muted); font-size:12px; line-height:1.5; }
.copy-ops-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px 24px; margin:0; }
.copy-ops-metrics > div { min-width:0; border-top:1px solid var(--border); padding-top:10px; }
.copy-ops-metrics dt,.copy-ops-metrics small { color:var(--muted); font-size:12px; line-height:1.4; }
.copy-ops-metrics dd { margin:4px 0 0; font-size:18px; line-height:1.3; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.copy-ops-metrics small { display:block; margin-top:3px; }
.copy-ops-table { width:100%; min-width:980px; table-layout:fixed; }
.copy-ops-table th,.copy-ops-table td { box-sizing:border-box; padding:10px; text-align:left; white-space:normal; }
.copy-ops-table th { font-size:12px; }
.copy-ops-table td { font-size:13px; line-height:1.45; overflow-wrap:anywhere; }
.copy-ops-table th:nth-child(1),.copy-ops-table th:nth-child(2) { width:17%; }
.copy-ops-table th:nth-child(3) { width:14%; }
.copy-ops-table th:nth-child(4) { width:13%; }
.copy-ops-table th:nth-child(5),.copy-ops-table th:nth-child(6) { width:5%; }
.copy-ops-table th:nth-child(7),.copy-ops-table th:nth-child(9) { width:11%; }
.copy-ops-table th:nth-child(8) { width:7%; }
.copy-ops-table td small { display:block; color:var(--muted); margin-top:3px; font-size:11px; line-height:1.4; }
.copy-ops-table .copy-ops-actions { display:grid; justify-items:start; gap:5px; }
.copy-ops-table .btn { font-size:12px; line-height:1.3; padding:5px 7px; }
.copy-ops-master td { background:var(--panel); }
.copy-ops-account-name { display:grid; grid-template-columns:24px minmax(0,1fr); align-items:start; gap:7px; }
.copy-ops-account-name > div { grid-column:2; }
.copy-ops-table .copy-ops-toggle { width:24px; height:26px; padding:0; }
.copy-ops-child-label { display:inline-block; margin-left:11px; padding-left:18px; border-left:1px solid var(--border); }
.copy-ops-detail { margin-top:16px; overflow:auto; }
.copy-ops-detail[hidden] { display:none; }
@media (max-width:560px) {
  .copy-ops-metrics { grid-template-columns:1fr; gap:8px; }
  .copy-ops-metrics > div { display:grid; grid-template-columns:1fr auto; align-items:baseline; gap:8px; }
  .copy-ops-metrics dd { margin:0; text-align:right; }
}
.copy-ops-detail .copy-ops-actions { margin:8px 0; }
.copy-ops-detail [aria-pressed="true"] { color:var(--green); border-color:var(--green); }
.copy-ops-dialog { width:calc(100% - 32px); color:var(--text); }

dialog.mt-copy-dialog[open] {
  position: fixed;
  inset: 0;
  margin: auto;
  max-width: min(460px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
}
dialog.mt-copy-dialog::backdrop { background: rgba(0,0,0,.65); }
.copy-publish-preset { border:0; border-top:1px solid var(--border); padding-top:12px; margin:12px 0; min-width:0; }
.copy-publish-preset legend { padding-right:10px; font-size:14px; }
.copy-publish-preset .field { min-width:0; }
.copy-publish-preset .sub { color:var(--muted); font-size:13px; }
.copy-publish-preset [hidden] { display:none; }
@media (max-width:560px) { .copy-publish-preset .field-row { flex-direction:column; gap:0; } }
