.crm-admin-section{background:transparent!important;border:0!important;overflow:visible!important;margin-bottom:0!important}
.crm-admin-section .crm-shell{padding:0;max-width:none}
.crm-admin-section .crm-page-head{margin-bottom:16px;align-items:flex-start}
.crm-admin-section .crm-page-head h1{font-size:26px;letter-spacing:-.6px}
.crm-admin-section .crm-page-sub{font-size:13px;color:var(--txt2);max-width:620px}
.crm-admin-section .crm-filters{position:sticky;top:66px;z-index:20;background:rgba(255,255,255,.97);backdrop-filter:blur(12px);box-shadow:0 6px 18px rgba(26,28,28,.05)}
.crm-admin-section .crm-card{border-color:#e7e2e5;box-shadow:0 2px 12px rgba(37,23,35,.035)}
.crm-admin-section button:focus-visible,.crm-admin-section input:focus-visible,.crm-admin-section select:focus-visible{outline:3px solid #632465;outline-offset:2px}
.crm-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
.crm-section-head h2{font-size:15px;line-height:1.25;letter-spacing:-.15px}
.crm-section-head p{font-size:10.5px;color:var(--txt3);line-height:1.45;margin-top:3px}
.crm-section-head>span{font-size:10px;color:var(--txt3);font-weight:700;white-space:nowrap}

.crm-pipeline-card{padding:20px;margin-bottom:14px}
.crm-pipeline{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.crm-pipeline-step{position:relative;min-height:144px;border:1px solid #e4dfe2;border-radius:13px;background:#fff;padding:0;text-align:left;color:var(--txt);overflow:hidden;transition:border-color .18s,box-shadow .18s,background-color .18s}
.crm-pipeline-step:hover{border-color:#b99ebb;background:#fdfafd;box-shadow:0 7px 20px rgba(73,9,77,.08)}
.crm-pipeline-main{display:block;width:100%;min-height:142px;border:0;background:transparent;padding:15px;text-align:left;color:inherit;cursor:pointer}
.crm-step-index{display:grid;place-items:center;width:24px;height:24px;border-radius:8px;background:var(--pl);color:var(--p);font-size:10px;font-weight:900;margin-bottom:14px}
.crm-step-label{display:block;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.055em;color:var(--txt2)}
.crm-pipeline-step strong{display:block;font-size:30px;line-height:1.05;color:var(--p);margin:5px 0 3px;letter-spacing:-1px}
.crm-step-detail{display:block;font-size:9.5px;color:var(--txt3);min-height:15px}
.crm-pipeline-step i{display:block;height:4px;background:#eee8ed;border-radius:99px;overflow:hidden;margin-top:12px}
.crm-pipeline-step i b{display:block;height:100%;border-radius:inherit;background:var(--p)}
.crm-recovered-link{position:absolute;top:7px;right:7px;min-height:44px;display:flex;align-items:center;gap:5px;border:0;border-radius:9px;background:#edf8ef;color:#246b2c;padding:6px 9px;font-size:8.5px;font-weight:850;cursor:pointer;transition:background-color .18s,color .18s}
.crm-recovered-link:hover{background:#dff2e2;color:#174e1d}.crm-recovered-link span:last-child{font-size:12px}
.crm-pipeline-step.skeleton{border:0;background:linear-gradient(90deg,#f1eef0 25%,#faf8f9 50%,#f1eef0 75%);background-size:200% 100%;animation:crm-shimmer 1.2s infinite}

.crm-decision-grid{display:grid;grid-template-columns:minmax(0,1.06fr) minmax(0,.94fr);gap:14px;margin-bottom:14px}
.crm-secondary-grid{grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr)}
.crm-decision-card{padding:20px;min-width:0}
.crm-actions{display:flex;flex-direction:column;gap:8px}
.crm-action{width:100%;min-height:70px;display:grid;grid-template-columns:42px 1fr 24px;align-items:center;gap:11px;padding:10px 12px;border:1px solid #e7e2e5;border-radius:12px;background:#fff;color:var(--txt);text-align:left;cursor:pointer;transition:border-color .18s,background-color .18s}
.crm-action:hover{background:#fcfafb;border-color:#c9b9c8}
.crm-action-count{width:42px;height:42px;display:grid;place-items:center;border-radius:11px;background:#f2eff1;font-size:17px;font-weight:900;color:var(--txt)}
.crm-action.primary .crm-action-count{background:var(--pl);color:var(--p)}
.crm-action.warning .crm-action-count{background:#fff4dd;color:#8a5100}
.crm-action.danger .crm-action-count{background:var(--redl);color:var(--red)}
.crm-action strong{display:block;font-size:11px;line-height:1.35}
.crm-action small{display:block;font-size:9px;color:var(--txt3);line-height:1.4;margin-top:2px;font-weight:600}
.crm-action-arrow{font-size:17px;color:var(--p);font-weight:800;text-align:center}
.crm-good-state{padding:22px;border:1px solid #cce4ce;border-radius:12px;background:var(--grnl)}
.crm-good-state strong,.crm-good-state span{display:block}.crm-good-state strong{color:var(--grn);font-size:13px}.crm-good-state span{color:var(--txt2);font-size:10px;margin-top:4px}

.crm-table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.crm-admin-section .crm-table{min-width:520px}
.crm-admin-section .crm-sector-table{min-width:0}
.crm-admin-section .crm-table th,.crm-admin-section .crm-table td{padding:10px 8px;font-size:10px}
.crm-admin-section .crm-table th{font-size:8px;white-space:nowrap}
.crm-text-button{min-height:36px;border:0;background:transparent;color:var(--p);font-size:9px;font-weight:850;text-decoration:underline;cursor:pointer;padding:4px 7px}
.crm-sector-recovered{display:block;margin-top:2px;color:#246b2c;font-size:8px;font-weight:750;white-space:nowrap}
.crm-empty.compact{padding:16px 0}

.crm-outcomes{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:18px}
.crm-outcomes button{min-height:112px;border:1px solid #e7e2e5;border-radius:12px;background:#fff;padding:14px;text-align:left;cursor:pointer;color:var(--txt);transition:border-color .18s,background-color .18s}
.crm-outcomes button:hover{border-color:#b99ebb;background:#fdfafd}
.crm-outcomes strong,.crm-outcomes span,.crm-outcomes small{display:block}
.crm-outcomes strong{font-size:25px;color:var(--p);line-height:1}.crm-outcomes span{font-size:11px;font-weight:850;margin-top:8px}.crm-outcomes small{font-size:9px;color:var(--txt3);margin-top:3px;line-height:1.4}
.crm-reasons-head{font-size:8px;text-transform:uppercase;letter-spacing:.065em;color:var(--txt3);font-weight:850;margin-bottom:7px}
.crm-reasons{display:flex;flex-direction:column;gap:5px}
.crm-reasons button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:40px;border:0;border-bottom:1px solid #eee9ec;background:transparent;color:var(--txt);font-size:9.5px;text-align:left;cursor:pointer;padding:7px 3px}
.crm-reasons button:hover span{color:var(--p);text-decoration:underline}.crm-reasons button strong{color:var(--p);font-size:11px}

#crm-retention-card{margin-top:0}.crm-retention-table{margin-top:12px}
.crm-loading-line{height:58px;border-radius:10px;margin-bottom:8px;background:linear-gradient(90deg,#f1eef0 25%,#faf8f9 50%,#f1eef0 75%);background-size:200% 100%;animation:crm-shimmer 1.2s infinite}
@keyframes crm-shimmer{to{background-position:-200% 0}}

.crm-dialog-open{overflow:hidden}
.crm-drawer-backdrop[hidden]{display:none!important}
.crm-drawer-backdrop{position:fixed;inset:0;z-index:600;background:rgba(22,13,21,.45);display:flex;justify-content:flex-end;backdrop-filter:blur(2px)}
.crm-drawer{width:min(520px,100%);height:100%;background:#fff;box-shadow:-18px 0 55px rgba(18,10,17,.18);display:flex;flex-direction:column;animation:crm-drawer-in .2s ease-out}
.crm-drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:24px;border-bottom:1px solid #ece7ea}
.crm-drawer-head>div>span{display:block;font-size:8px;color:var(--p);text-transform:uppercase;letter-spacing:.08em;font-weight:900}.crm-drawer-head h2{font-size:20px;margin-top:4px}.crm-drawer-head p{font-size:10px;color:var(--txt3);line-height:1.45;margin-top:4px}
.crm-icon-close{width:44px;height:44px;display:grid;place-items:center;flex:0 0 44px;border:1px solid #e3dde1;border-radius:50%;background:#fff;color:var(--txt);cursor:pointer}
.crm-icon-close:hover{background:var(--pl);color:var(--p)}
.crm-drawer-body{padding:14px 20px 28px;overflow-y:auto;overscroll-behavior:contain}
.crm-lead-list{display:flex;flex-direction:column}.crm-lead-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,.7fr);gap:16px;padding:14px 4px;border-bottom:1px solid #eee9ec}
.crm-lead-main strong,.crm-lead-main span,.crm-lead-state span,.crm-lead-state small{display:block}.crm-lead-main strong{font-size:12px}.crm-lead-main span{font-size:9px;color:var(--txt3);margin-top:3px}.crm-lead-state{text-align:right}.crm-lead-state span{font-size:9px;font-weight:800;color:var(--p)}.crm-lead-state small{font-size:8.5px;color:var(--txt3);margin-top:3px;line-height:1.35}
.crm-lead-state .crm-recovered-state{color:#246b2c;font-weight:800}
.crm-drawer-note{font-size:9px;color:var(--txt3);line-height:1.5;margin-top:14px}
@keyframes crm-drawer-in{from{transform:translateX(28px);opacity:.7}to{transform:none;opacity:1}}

@media(max-width:900px){
  .crm-pipeline{grid-template-columns:repeat(2,minmax(0,1fr))}
  .crm-decision-grid,.crm-secondary-grid{grid-template-columns:1fr}
  .crm-pipeline-step{min-height:132px}
}
@media(max-width:780px){
  .crm-admin-section .crm-filters{position:static;display:grid;grid-template-columns:1fr 1fr}
  .crm-admin-section .crm-filter:nth-child(3),.crm-admin-section .crm-filters>.crm-btn{grid-column:1/-1}
  .crm-admin-section .crm-page-head h1{font-size:22px}
  .crm-admin-section .crm-page-sub{font-size:11px}
  .crm-pipeline-card,.crm-decision-card{padding:15px}
  .crm-admin-section .crm-sector-table{min-width:520px}
  .crm-section-head{margin-bottom:14px}.crm-section-head>span{display:none}
  .mob-nav{overflow-x:auto;justify-content:flex-start}.mob-nav-btn{min-width:74px}
}
@media(max-width:480px){
  .crm-pipeline{grid-template-columns:1fr 1fr;gap:7px}
  .crm-pipeline-step{min-height:126px}.crm-pipeline-main{min-height:124px;padding:12px}.crm-pipeline-step strong{font-size:25px}.crm-step-index{margin-bottom:10px}.crm-recovered-link{top:5px;right:5px;padding:5px 7px;font-size:8px}
  .crm-action{grid-template-columns:38px 1fr 18px;padding:9px}.crm-action-count{width:38px;height:38px}
  .crm-outcomes{grid-template-columns:1fr 1fr}.crm-outcomes button{min-height:105px;padding:11px}
  .crm-drawer-head{padding:18px 16px}.crm-drawer-body{padding:10px 15px 22px}.crm-lead-row{grid-template-columns:1fr;gap:7px}.crm-lead-state{text-align:left}
}
@media(prefers-reduced-motion:reduce){.crm-pipeline-step,.crm-recovered-link,.crm-action,.crm-outcomes button,.crm-drawer{transition:none;animation:none}.crm-loading-line,.crm-pipeline-step.skeleton{animation:none}}
