#editor:has(#material-copy-host){width:min(760px,calc(100vw - 32px));max-height:90vh;overflow:auto}
#editor:has(#material-copy-host) .modal-actions{position:sticky;bottom:0;z-index:2}
.material-copy-picker{min-width:0;margin-top:22px;border-top:1px solid #e5ebf3;padding-top:19px;font-size:12px;color:#526985}
.material-copy-picker [hidden]{display:none!important}
.material-copy-modes{border:0;min-width:0;margin:0;padding:0}
.material-copy-modes legend{font-size:12px;font-weight:600;color:#425c7e;margin-bottom:11px;padding:0}
.modal-body .material-copy-mode{display:flex;align-items:flex-start;gap:9px;border:1px solid #e0e7f1;border-radius:8px;padding:12px;margin:0 0 9px;cursor:pointer;background:#fff}
.material-copy-mode:has(input:checked){border-color:#a8c2ec;background:#f4f8ff}
.material-copy-mode>input{flex:0 0 15px;width:15px;height:15px;margin:1px 0 0;accent-color:var(--blue,#2558d5)}
.material-copy-mode>span{min-width:0}
.material-copy-mode strong{display:block;font-size:12px;font-weight:550;color:#456184;line-height:1.5}
.material-copy-mode small{display:block;font-size:11px;line-height:1.7;color:#8798ae;margin-top:4px;overflow-wrap:anywhere}
.material-copy-inherit{font-size:11px;line-height:1.8;color:#6985ac;margin:10px 0 0;padding:9px 11px;background:#eff5fd;border-radius:6px}
.material-copy-panel{min-width:0;margin-top:16px}
.material-copy-source-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.7fr);gap:0 12px}
.material-copy-source-fields>div{min-width:0}
.material-copy-source-fields>div:last-child{grid-column:1/-1}
.material-copy-picker .field-control{min-width:0;max-width:100%;width:100%;margin-bottom:13px;font-size:12px}
.material-copy-picker select{overflow:hidden;text-overflow:ellipsis}
.material-copy-reset{font-size:11px;line-height:1.75;color:#8c754d;background:#fffaef;padding:8px 10px;border-radius:6px;margin:0 0 12px}
.material-copy-picker .material-copy-search-label{font-size:11px}
.material-copy-list-actions{display:flex;justify-content:space-between;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 10px;font-size:11px;color:#7b8da5}
.material-copy-list-actions>div{display:flex;gap:6px;flex-wrap:wrap}
.material-copy-list-actions .button{font-size:10px;padding:6px 8px}
.material-copy-list-actions .button:disabled{opacity:.48}
.material-copy-hidden-count{margin:0 0 9px;font-size:10px;line-height:1.7;color:#9a7a43}
.material-copy-list{max-height:320px;min-width:0;overflow:auto;overscroll-behavior:contain;border:1px solid #dfe7f1;border-radius:8px;background:#fff;scrollbar-gutter:stable}
.material-copy-group{min-width:0}
.material-copy-group+.material-copy-group{border-top:1px solid #e1e9f3}
.material-copy-group-head{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;align-items:center;gap:9px;background:#edf3fb;border-bottom:1px solid #e5ebf4;padding:10px 12px}
.material-copy-group-head>strong{font-size:11px;font-weight:600;color:#4b668a;overflow-wrap:anywhere;min-width:0}
.material-copy-group-head>strong small{font-size:10px;font-weight:400;color:#8b9eb7;margin-left:8px;white-space:nowrap}
.modal-body .material-copy-group-head>label{display:flex;align-items:center;gap:5px;flex-shrink:0;margin:0;color:#758ba8;font-size:10px;cursor:pointer}
.material-copy-group-head input,.material-copy-item>input,.material-copy-notes>input{flex:0 0 14px;width:14px;height:14px;accent-color:var(--blue,#2558d5);margin:0}
.modal-body .material-copy-item{display:flex;align-items:flex-start;gap:9px;min-width:0;padding:11px 12px;margin:0;border-bottom:1px solid #eef2f7;cursor:pointer;font-size:11px;line-height:1.6;color:#536d8d}
.material-copy-item:last-child{border-bottom:0}
.material-copy-item:hover{background:#fafcff}
.material-copy-item>input{margin-top:3px}
.material-copy-item-body{display:block;flex:1;min-width:0;overflow-wrap:anywhere}
.material-copy-item-heading{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:0}
.material-copy-item-heading strong{font-size:12px;font-weight:500;color:#456080;min-width:0}
.material-copy-automatic{font-size:9px;color:#7590b3;background:#e9f0fa;padding:1px 5px;border-radius:4px;white-space:nowrap}
.material-copy-spec{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#8091a7;font-size:10px;line-height:1.7;margin-top:4px;white-space:pre-line}
.material-copy-meta{display:block;color:#95a2b4;font-size:9px;line-height:1.7;margin-top:4px}
.material-copy-item.inherited{background:#f8fafd;cursor:default}
.material-copy-item.inherited>input{opacity:.6}
.material-copy-empty{padding:24px 17px;margin:0;text-align:center;font-size:11px;line-height:1.9;color:#8d9cb0}
.modal-body .material-copy-notes{display:flex;align-items:center;gap:8px;margin:14px 0 8px;font-size:11px;line-height:1.7;cursor:pointer}
.material-copy-explanation{font-size:10px;line-height:1.8;color:#8a9bb0;margin:0}
@media(max-width:430px){.material-copy-source-fields{grid-template-columns:minmax(0,1fr)}.material-copy-group-head{padding:9px 10px}.modal-body .material-copy-item{padding:10px}.material-copy-list-actions>span{width:100%}.material-copy-list{max-height:280px}}
