.company-template-editor{max-width:940px;width:calc(100% - 36px);max-height:92dvh;overflow:hidden;color:#51425f}
.company-editor-shell{display:flex;flex-direction:column;max-height:92dvh}
.company-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 28px 10px}
.company-editor-heading h2{margin:0;font-size:20px;line-height:1.6}
.company-editor-close{border:1px solid #e6dfee;border-radius:8px;background:#fff;padding:8px 12px;font-size:12px;color:#766285;cursor:pointer;white-space:nowrap}
.company-editor-provenance{margin:0;padding:0 28px 18px;font-size:12px;line-height:1.8;color:#897594}
.company-editor-tabs{display:flex;gap:8px;border-bottom:1px solid #e8e0ee;padding:0 28px}
.company-editor-tab{border:0;border-bottom:3px solid transparent;padding:12px 15px;background:transparent;color:#8c7d96;font:inherit;font-size:13px;cursor:pointer}
.company-editor-tab[aria-selected=true]{border-color:#8b6eb5;color:#65468a;font-weight:600}
.company-editor-panel{overflow:auto;padding:22px 28px;min-height:120px;overscroll-behavior:contain}
.company-editor-panel .field{font-size:12px;color:#756181;margin-bottom:16px;line-height:1.7}
.company-editor-panel .field input:not([type=radio]),.company-editor-panel .field select,.company-editor-panel .field textarea{font-size:13px;line-height:1.7;color:#5e4d6c;background:#fdfbff}
.company-editor-panel textarea{resize:vertical}
.company-editor-note{font-size:12px;line-height:1.9;color:#887691;margin:0 0 20px}
.company-editor-card{padding:20px;border:1px solid #e8e0ee;background:#fdfbff;border-radius:14px;margin-bottom:18px}
.company-editor-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.company-editor-card-heading h3{font-size:14px;margin:0;color:#6c4f80}
.company-editor-row-actions{display:flex;gap:6px;flex-wrap:wrap}
.company-editor-panel .small-button{font-size:11px;padding:7px 10px}
.company-editor-criterion-fields{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:16px}
.company-editor-mappings{margin:0 0 18px;padding:12px 14px;border:1px solid #e9e0ef;border-radius:10px;display:flex;flex-wrap:wrap;gap:12px 18px}
.company-editor-mappings legend{font-size:11px;color:#8c779a;padding:0 5px}
.company-editor-mappings label{display:flex;align-items:center;gap:7px;font-size:12px;color:#745f82;line-height:1.6}
.company-editor-mappings input{accent-color:#8d6db4;width:15px;height:15px;margin:0}
.company-editor-probe{display:flex;align-items:flex-start;gap:10px}.company-editor-probe>.field{flex:1}.company-editor-probe>button{margin-top:32px}
.company-editor-guidance,.company-editor-anchors{font-size:12px;color:#7c638d;line-height:1.8}.company-editor-guidance>summary,.company-editor-anchors>summary{font-weight:600;cursor:pointer;margin-bottom:14px}
.company-editor-weight{margin:0;color:#715083;font-size:12px;line-height:1.8}.company-editor-weight[data-valid=false]{color:#aa596a}
.company-editor-footer{padding:16px 28px 22px;border-top:1px solid #e8e0ee;background:#fff;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:18px}
.company-editor-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.company-editor-actions .button{font-size:12px;padding:11px 14px;white-space:nowrap}
.company-editor-error{color:#a44561;background:#fff2f5;padding:12px 20px;margin:0 28px 14px;border-radius:9px;font-size:12px;line-height:1.8;flex-shrink:0}
.company-editor-discard{padding:12px 18px;margin:0 28px 14px;border:1px solid #e9d6b6;border-radius:10px;background:#fffaf2;font-size:12px;line-height:1.8;flex-shrink:0}.company-editor-discard p{margin:0 0 10px}.company-editor-discard button{margin-right:10px}.company-editor-discard-button{color:#a25464}
.company-template-editor button:disabled{opacity:.45;cursor:default}.company-template-editor [hidden]{display:none!important}
@media(max-width:650px){.company-template-editor{width:calc(100% - 16px);max-height:95dvh}.company-editor-shell{max-height:95dvh}.company-editor-heading{padding:18px 16px 8px}.company-editor-heading h2{font-size:16px}.company-editor-provenance{padding:0 16px 12px;font-size:11px}.company-editor-tabs{padding:0 12px;gap:0}.company-editor-tab{padding:11px 12px;font-size:12px}.company-editor-panel{padding:18px 14px}.company-editor-card{padding:14px}.company-editor-card-heading{align-items:flex-start}.company-editor-row-actions{justify-content:flex-end}.company-editor-criterion-fields{grid-template-columns:minmax(0,1fr) 82px;gap:10px}.company-editor-footer{padding:12px 14px 16px;flex-direction:column;align-items:stretch;gap:8px}.company-editor-actions{justify-content:stretch}.company-editor-actions .button{flex:1;font-size:11px;padding:10px}.company-editor-error,.company-editor-discard{margin-left:14px;margin-right:14px}.company-editor-panel .field-row{gap:10px}.company-editor-probe{gap:6px}}
