/* Shared node menu and legacy template-adoption surface; no business styles. */
.tree-row-context-menu{width:264px;padding:6px;border:1px solid #d7e1ef;border-radius:12px;background:#fff;color:#18304b;box-shadow:0 12px 36px #142b4b26,0 2px 8px #142b4b14;font:13px/1.45 system-ui,'Microsoft YaHei',sans-serif;overscroll-behavior:contain;scrollbar-width:thin;}
.tree-row-context-menu .tree-row-context-title{position:sticky;top:-6px;z-index:2;display:flex;flex-direction:column;gap:3px;padding:11px 12px 12px;margin:-6px -6px 5px;background:#f6f9fe;border-bottom:1px solid #e3eaf4;border-radius:12px 12px 0 0;white-space:normal;}
.tree-row-context-title small{font-size:11px;color:#6b7e95;letter-spacing:.06em}.tree-row-context-title strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:650;color:#16314f;}
.tree-row-context-menu .tree-menu-section-title{padding:9px 10px 3px;color:#748399;font-size:11px;font-weight:600;user-select:none;}
.tree-row-context-menu>button,.tree-row-context-menu .tree-account-submenu>button,.tree-row-context-menu .template-adoption-entry>button{display:flex;align-items:center;gap:8px;box-sizing:border-box;width:100%;min-height:32px;padding:6px 10px;border:0;border-radius:6px;background:transparent;color:#203b59;text-align:left;white-space:normal;font:inherit;cursor:pointer;-webkit-text-fill-color:currentColor;opacity:1;}
.tree-row-context-menu>button:not(:disabled):hover,.tree-row-context-menu>button:not(:disabled):focus-visible,.tree-row-context-menu .tree-account-submenu>button:not(:disabled):hover,.tree-row-context-menu .tree-account-submenu>button:not(:disabled):focus-visible{color:#125cc5;background:#eaf2ff;outline:2px solid transparent;}
.tree-row-context-menu button:focus-visible{outline:2px solid #6ba2ef;outline-offset:-2px;}
.tree-row-context-menu>button:disabled,.tree-row-context-menu .tree-account-submenu>button:disabled{color:#91a0b1;background:transparent;cursor:default;opacity:1;}
.tree-row-context-menu .tree-account-submenu{margin:3px 6px 5px 14px;padding:4px;border-left:2px solid #dbe7f8;background:#f7faff;border-radius:0 6px 6px 0;}
.tree-row-context-menu .tree-menu-close{justify-content:center;margin-top:7px;border-top:1px solid #e7edf5;border-radius:0 0 6px 6px;color:#65788e;}
.template-adoption-entry{display:block;margin:4px 0 2px}.tree-row-context-menu .template-adoption-entry>.template-adoption-trigger{color:#165fca;background:#edf4ff;font-weight:600;border:1px solid #dbe9ff;}.template-adoption-trigger::before{content:'▦';display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:5px;background:#dceaff;font-size:16px}.template-adoption-trigger::after{content:'›';margin-left:auto;font-size:19px;font-weight:400}.tree-row-context-menu .template-adoption-entry>.template-adoption-trigger:hover{background:#e2edff;}.tree-row-context-menu .template-adoption-entry>.template-adoption-status-link{font-size:12px;color:#366ba8;min-height:28px;}
.template-adoption-dialog{display:flex;flex-direction:column;box-sizing:border-box;overflow:auto;border:1px solid #d9e3ef;border-radius:14px;background:#fff;color:#20354f;box-shadow:0 22px 70px #0b254436,0 4px 16px #0b25441a;font:13px/1.5 system-ui,'Microsoft YaHei',sans-serif;text-align:left;white-space:normal;scrollbar-width:thin;}
.template-adoption-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 22px 16px;border-bottom:1px solid #e7edf5;background:#f8faff}.template-adoption-heading>span{display:flex;flex-direction:column;gap:4px}.template-adoption-heading strong{font-size:18px;font-weight:650;color:#18324f}.template-adoption-heading small{font-size:12px;color:#72839a}.template-adoption-close{width:28px;height:28px;flex-shrink:0;border:0;border-radius:6px;background:transparent;color:#6b7c92;font-size:22px;cursor:pointer}.template-adoption-close:hover{background:#e8eef7;color:#28496b}.template-adoption-body{display:flex;flex-direction:column;gap:16px;padding:20px 22px}.template-adoption-field{display:flex;flex-direction:column;gap:7px;font-weight:600;color:#29405b}.template-adoption-field select{box-sizing:border-box;width:100%;min-height:40px;padding:8px 12px;border:1px solid #c9d6e6;border-radius:7px;background:#fff;color:#1e3754;font:inherit;font-weight:400;outline-offset:2px}.template-adoption-field select:focus{outline:2px solid #8bb5f1;border-color:#4285dc}.template-adoption-field select:disabled{background:#f4f7fb;color:#8492a5}.template-adoption-note{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border:1px solid #dce9fb;border-radius:8px;background:#f1f6ff;color:#57718e;font-size:12px}.template-adoption-note strong{color:#2d5d9d;font-size:12px;font-weight:600}.template-adoption-preserve{display:flex;align-items:flex-start;gap:9px;font-size:12px;color:#4a617b;cursor:pointer}.template-adoption-preserve input{width:15px;height:15px;flex-shrink:0;margin:2px 0 0;accent-color:#246bce}.template-adoption-feedback{padding:10px 12px;border:1px solid #e3e9f2;border-radius:6px;background:#f7f9fc;color:#536c88;font-size:12px;overflow-wrap:anywhere}.template-adoption-footer{display:flex;justify-content:flex-end;gap:9px;padding:14px 22px;border-top:1px solid #e7edf5;background:#fbfcfe}.template-adoption-footer button{min-height:36px;min-width:82px;padding:7px 16px;border:1px solid #ccd8e6;border-radius:7px;font:inherit;font-weight:600;cursor:pointer}.template-adoption-cancel{background:#fff;color:#455f7a}.template-adoption-confirm{background:#246bce;color:#fff;border-color:#246bce!important}.template-adoption-confirm:not(:disabled):hover{background:#165dbf}.template-adoption-footer button:disabled{background:#eef2f7;color:#9aa9bb;border-color:#e1e7ef!important;cursor:not-allowed}.template-adoption-dialog button:focus-visible{outline:2px solid #78a8ec;outline-offset:2px;}
@media(max-width:520px){.template-adoption-heading,.template-adoption-body{padding:16px}.template-adoption-footer{padding:12px 16px}.tree-row-context-menu{width:248px}}
