.cad-scope-modal{width:min(1080px,94vw);max-width:94vw;max-height:92dvh;padding:0;border:1px solid #bfd4eb;border-radius:14px;color:#173a61;overflow:auto;box-sizing:border-box}.cad-scope-modal::backdrop{background:#16364b88}.cad-scope-modal header{display:flex;position:sticky;top:0;z-index:2;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;background:#f5f9ff;border-bottom:1px solid #c6d8ec}.cad-scope-modal h2{font-size:18px;margin:0;overflow-wrap:anywhere}.scope-body{padding:16px}.scope-body p,.scope-body span{line-height:1.6;overflow-wrap:anywhere}.scope-body label{display:flex;flex-direction:column;gap:6px;margin:12px 0}.scope-body input,.scope-body select,.scope-body textarea{min-height:44px;box-sizing:border-box;width:100%;max-width:100%;font-size:16px;padding:8px;border:1px solid #b9cce5;border-radius:8px}.scope-body textarea{min-height:100px}.cad-scope-modal button,.scope-body a{min-height:44px;padding:10px 12px;border:1px solid #b9cce5;border-radius:8px;background:#f4f8ff;color:#245c98;font:inherit;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere}.scope-body a{display:inline-flex;align-items:center}.scope-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0}.scope-counts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.scope-counts article{border-radius:8px;background:#edf5ff;padding:10px}.scope-counts b,.scope-counts span{display:block;overflow-wrap:anywhere}.scope-counts b{font-size:22px}.scope-body [data-scope-groups]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.scope-body article{min-width:0;border:1px solid #c4d7ee;border-radius:10px;padding:12px}.scope-body summary{min-height:44px;box-sizing:border-box;padding:10px 0;cursor:pointer;overflow-wrap:anywhere}.scope-body pre{max-height:320px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;background:#f3f7fd;padding:12px;font-size:13px}.scope-body form{margin:18px 0;padding:14px;border:1px solid #c4d7ee;border-radius:10px;background:#f9fbff}.scope-body .scope-check{flex-direction:row;gap:10px;line-height:1.6}.scope-check input{width:24px;height:24px;min-height:24px;flex:0 0 24px}.scope-body [data-scope-save]{width:100%;background:#2868af;color:#fff}.cad-scope-modal button:disabled{opacity:.55;cursor:default}.cad-scope-modal [hidden]{display:none!important}@media(max-width:720px){.scope-counts{grid-template-columns:repeat(2,minmax(0,1fr))}.scope-body [data-scope-groups]{grid-template-columns:1fr}.scope-body{padding:12px}.cad-scope-modal header{padding:12px}.scope-actions>*{flex:1 1 140px}}
