.tools-overlay{position:fixed;inset:0;z-index:1000;background:rgba(4,18,42,.48);backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:18px}.tools-overlay.hidden{display:none}.tools-dialog{width:min(820px,calc(100vw - 28px));height:min(760px,calc(100vh - 36px));background:#f8fbff;border:1px solid rgba(255,255,255,.75);border-radius:20px;box-shadow:0 28px 80px rgba(0,20,55,.28);display:flex;flex-direction:column;overflow:hidden;animation:toolsDialogIn .18s ease-out}.tools-header{padding:20px 22px 15px;background:#fff;border-bottom:1px solid #e1eaf5;display:flex;justify-content:space-between;gap:16px}.tools-header h2{margin:0;color:#071a3b;font-size:22px}.tools-header p:last-child{margin:5px 0 0;color:#6c7d95;font-size:12px}.tools-close{width:36px;height:36px;border:1px solid #dce6f2;border-radius:10px;background:#fff;color:#19304f;font-size:24px;line-height:1;cursor:pointer}.tools-close:hover{background:#f3f7fc;border-color:#a9bfd9}.tools-tabs{display:flex;gap:6px;padding:10px 14px;border-bottom:1px solid #e1eaf5;background:#fff}.tools-tabs button{border:0;border-radius:9px;padding:9px 13px;background:transparent;color:#61738b;font-weight:800;font-size:11px;cursor:pointer}.tools-tabs button.active{background:#eaf3ff;color:#0865d8}.tools-body{min-height:0;overflow:auto;padding:18px}.tools-section-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start;margin-bottom:14px}.tools-section-head h3{margin:0;color:#071a3b;font-size:17px}.tools-section-head p{margin:4px 0 0;color:#6c7d95;font-size:11px;line-height:1.5;max-width:500px}.tool-primary{border:0;border-radius:9px;padding:9px 12px;background:#0869dc;color:#fff;font-weight:800;font-size:11px;cursor:pointer;white-space:nowrap}.tool-primary:disabled{opacity:.55;cursor:not-allowed}.tool-list{display:grid;gap:9px}.tool-list-item{display:flex;justify-content:space-between;gap:14px;padding:13px;border:1px solid #dfe8f2;border-radius:12px;background:#fff}.tool-list-item strong{display:block;color:#102b4d;font-size:12px}.tool-list-item>div:first-child>span{display:block;margin-top:3px;color:#8493a7;font-size:9px;font-weight:800;text-transform:uppercase}.tool-list-item p{margin:7px 0 0;color:#53657c;font-size:11px;line-height:1.45;white-space:pre-wrap}.tool-item-actions{display:flex;align-items:flex-start;gap:5px;flex-wrap:wrap;justify-content:flex-end}.tool-item-actions button,.tool-footer-actions button,.erp-actions button{border:1px solid #d8e3ef;border-radius:8px;padding:7px 9px;background:#fff;color:#28415f;font-size:10px;font-weight:800;cursor:pointer}.tool-item-actions button:hover,.tool-footer-actions button:hover,.erp-actions button:hover{border-color:#80b6ef}.tool-item-actions .danger{color:#b42d2d}.status-ok{padding:7px 8px;border-radius:8px;background:#eaf8ef;color:#19743a;font-size:9px;font-weight:900}.status-pending{padding:7px 8px;border-radius:8px;background:#fff5df;color:#9a650d;font-size:9px;font-weight:900}.tool-empty{padding:28px;text-align:center;border:1px dashed #cbd8e7;border-radius:12px;background:#fff;color:#72849a;font-size:11px}.tool-form{margin-bottom:14px;padding:14px;border:1px solid #dbe5f0;border-radius:12px;background:#fff}.tool-form label{display:block;margin-bottom:10px;color:#53667f;font-size:10px;font-weight:800}.tool-form input,.tool-form textarea,.tool-form select{display:block;width:100%;box-sizing:border-box;margin-top:5px;border:1px solid #d7e2ef;border-radius:8px;background:#fbfdff;color:#122b4c;padding:9px;font:inherit;font-size:11px;outline:none}.tool-form textarea{resize:vertical;min-height:90px}.tool-form input:focus,.tool-form textarea:focus,.tool-form select:focus{border-color:#6ba8e8;box-shadow:0 0 0 3px rgba(36,125,221,.08)}.tool-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.tool-form-actions{display:flex;justify-content:flex-end;gap:7px}.tool-form-actions button{border:1px solid #d7e2ef;border-radius:8px;padding:8px 11px;background:#fff;color:#314966;font-size:10px;font-weight:800;cursor:pointer}.tool-error{margin:8px 0 0;color:#b12d2d;font-size:10px;line-height:1.4}.muted-small{font-weight:500;color:#8998ab}.template-rule{margin:4px 0 12px;padding:9px;border-radius:8px;background:#fff8e9;color:#856326;font-size:10px;line-height:1.4}.tool-footer-actions{margin-top:12px}.erp-status-card{display:flex;justify-content:space-between;gap:10px;padding:12px 14px;margin-bottom:14px;border:1px solid #dbe6f2;border-radius:12px;background:#fff}.erp-status-card strong{color:#153555;font-size:11px}.erp-status-card span{color:#75879e;font-size:10px}.erp-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.erp-link{display:flex;align-items:center;min-height:42px;padding:0 11px;border:1px solid #dbe5f0;border-radius:9px;background:#fff;color:#173453;text-decoration:none;font-size:11px;font-weight:800}.erp-link:hover{border-color:#7db2ea;color:#0869dc}.erp-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}.erp-actions .tool-primary{border:0}.tool-result{margin-top:12px;min-height:20px;max-height:240px;overflow:auto;padding:10px;border-radius:9px;background:#eef5fd;color:#31506f;font-size:10px;line-height:1.5;white-space:pre-wrap}.tool-result a{color:#0869dc;font-weight:800}.composer-tools{position:relative;display:flex;justify-content:flex-end;align-items:center;margin-top:3px;height:34px}.composer-tools-trigger{width:32px;height:32px;border:1px solid var(--line,#dbe5f0);border-radius:10px;background:#fff;color:var(--muted,#6c7d95);font-size:20px;line-height:1;cursor:pointer;transition:.16s ease}.composer-tools-trigger:hover,.composer-tools-trigger.open{border-color:#7db2ea;color:#0869dc;background:#f4f9ff;transform:rotate(45deg)}.composer-tools-menu{position:absolute;right:0;bottom:39px;width:245px;padding:6px;border:1px solid #dbe5f0;border-radius:14px;background:#fff;box-shadow:0 16px 38px rgba(7,26,59,.18);z-index:40}.composer-tools-menu[hidden]{display:none}.composer-tools-menu button{width:100%;display:flex;align-items:center;gap:10px;padding:10px;border:0;border-radius:10px;background:transparent;color:#173453;text-align:left;cursor:pointer}.composer-tools-menu button:hover{background:#f4f8fd}.composer-tools-menu button>span:first-child{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:#eef5ff;color:#0869dc;font-size:14px}.composer-tools-menu strong,.composer-tools-menu small{display:block}.composer-tools-menu strong{font-size:11px}.composer-tools-menu small{margin-top:2px;color:#7b8ca1;font-size:9px;font-weight:500}@keyframes toolsDialogIn{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}@media(max-width:700px){.tools-overlay{padding:0}.tools-dialog{width:100%;height:100%;max-height:none;border-radius:0}.tools-section-head{display:block}.tools-section-head .tool-primary{margin-top:10px}.tool-form-grid,.erp-grid{grid-template-columns:1fr}.tool-list-item{display:block}.tool-item-actions{justify-content:flex-start;margin-top:10px}.tools-body{padding:12px}.composer-tools-menu{right:0;width:min(245px,calc(100vw - 40px))}}