.crm-toolbar{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap;margin-bottom:6px}.crm-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.crm-import{cursor:pointer}.crm-search input{min-width:260px;padding:9px 10px;border:1px solid var(--line);border-radius:6px;font-size:11px}
#crm-section .panel{margin-bottom:18px}#crm-section .kpis{margin-bottom:18px}
.crm-form{display:grid;grid-template-columns:2fr 1fr 1fr 2fr;gap:12px;padding:18px;align-items:end}.crm-form h2{grid-column:1/-1;margin:0;font-size:15px}.crm-form label,.crm-fields label,.crm-inline label{display:flex;flex-direction:column;gap:5px;font-size:10px;color:var(--muted)}.crm-form input,.crm-form select,.crm-fields input,.crm-fields select,.crm-inline input,.crm-inline select{padding:8px 9px;border:1px solid var(--line);border-radius:6px;font-size:11px;background:#fff;min-width:0;width:100%}.crm-form .wide{grid-column:span 2}.crm-form-actions{grid-column:1/-1;display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.crm-board{display:grid;grid-template-columns:repeat(7,minmax(190px,1fr));gap:10px;overflow-x:auto;padding-bottom:8px;margin-bottom:18px;align-items:start}.crm-column{background:#eef2f0;border-radius:9px;padding:9px;display:flex;flex-direction:column;gap:8px;min-height:120px;transition:background .15s}.crm-column.over{background:#dcebe2;outline:2px dashed #5f9c7f}.crm-column[data-stage="result"]{background:#f2f2ee}.crm-column header{display:flex;justify-content:space-between;align-items:center;font-size:12px;padding:3px 3px 0}.crm-column header span{background:#fff;border-radius:20px;padding:2px 9px;font-size:10px;color:var(--muted)}.crm-column-sum{margin:0 3px;font-size:9px;color:var(--muted)}.crm-column .empty{font-size:10px;color:var(--muted);padding:8px 3px}
.crm-card{background:#fff;border:1px solid var(--line);border-radius:7px;padding:10px;display:flex;flex-direction:column;gap:5px;font-size:11px;cursor:pointer}.crm-card[draggable="true"]{cursor:grab}.crm-card.dragging{opacity:.45}.crm-card:hover,.crm-card:focus{border-color:#9fc0ae;outline:none;box-shadow:0 1px 4px rgba(17,42,48,.08)}.crm-card strong{font-weight:600;line-height:1.45}.crm-card small{color:var(--muted);font-size:10px;line-height:1.5}.crm-card-head,.crm-card-foot{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:9px;color:var(--muted)}.crm-card-head b{color:var(--ink);font-size:10px}
.crm-follow,.crm-outcome{display:inline-block;font-size:9px;font-weight:600;padding:3px 7px;border-radius:20px}.crm-follow.late{background:#f7e2df;color:#a3423d}.crm-follow.today{background:#fbe9d6;color:#a35b1f}.crm-follow.ok{background:#e3f1e8;color:#2e7656}.crm-follow.none{background:#edf0ef;color:#66777a}.crm-outcome.won{background:#e3f1e8;color:#2e7656}.crm-outcome.lost{background:#f7e2df;color:#a3423d}.crm-outcome.discarded{background:#edf0ef;color:#66777a}
.crm-agenda{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.crm-agenda-block ul{list-style:none;margin:0;padding:0 20px 16px;display:flex;flex-direction:column;gap:9px}.crm-agenda-block li{display:grid;grid-template-columns:1fr auto;gap:2px 10px;font-size:11px;border-bottom:1px solid var(--line);padding-bottom:8px}.crm-agenda-block li button{border:none;background:none;padding:0;text-align:left;color:var(--green);font-weight:600;font-size:11px}.crm-agenda-block li small{grid-column:1/-1;color:var(--muted);font-size:10px}.crm-agenda-block.late{border-top:3px solid #bc5553}.crm-agenda-block.today{border-top:3px solid #ce8a43}.crm-agenda-block.ok{border-top:3px solid #5f9c7f}.crm-agenda-block.none{border-top:3px solid #c2ccc8}
.crm-stage-mrr{display:block;font-size:9px;color:var(--muted);margin:-3px 0 6px}.crm-subtitle{font-size:12px;margin:18px 0 8px}
#crm-list td button{border:none;background:none;padding:0;color:var(--green);font-size:11px;text-align:left}#crm-list td small{display:block;color:var(--muted);font-size:10px;margin-top:3px}
.crm-drawer{position:fixed;top:0;right:0;bottom:0;width:min(470px,100vw);background:#fff;border-left:1px solid var(--line);box-shadow:-8px 0 24px rgba(17,42,48,.12);z-index:1200;overflow-y:auto;padding:26px 24px 40px}.crm-drawer h2{font-size:17px;margin:8px 0 12px;line-height:1.4}.crm-drawer-close{position:absolute;top:14px;right:14px;font-size:20px;width:32px;height:32px}
.crm-drawer-status{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-bottom:12px}.crm-drawer-status label{display:flex;flex-direction:column;gap:5px;font-size:10px;color:var(--muted)}.crm-drawer-status select{padding:8px;border:1px solid var(--line);border-radius:6px;font-size:11px}.crm-drawer-status strong{font-size:16px}
.crm-drawer-actions{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:10px}.crm-drawer-actions .button{font-size:10px;padding:8px 11px}.crm-linked{font-size:11px;background:#eef6f1;border-radius:6px;padding:8px 10px}.crm-hint{font-size:11px;background:#fbf4e8;color:#8a6a3a;border-radius:6px;padding:8px 10px}
.crm-inline{display:flex;gap:8px;align-items:end;flex-wrap:wrap;margin:8px 0}.crm-inline input{flex:1}.crm-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.crm-fields .wide,.crm-fields label:first-child{grid-column:1/-1}.crm-fields .button{grid-column:1/-1}
.crm-checklist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:7px;font-size:11px}.crm-checklist label{display:flex;gap:8px;align-items:center}.crm-checklist small{color:var(--muted)}
.crm-history{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column;gap:8px;font-size:11px}.crm-history li{display:grid;grid-template-columns:96px 1fr;gap:8px;border-bottom:1px solid var(--line);padding-bottom:7px}.crm-history time{color:var(--muted);font-size:10px}.crm-history small{color:var(--muted)}
@media(max-width:1100px){.crm-form{grid-template-columns:1fr 1fr}.crm-form .wide{grid-column:1/-1}}
@media(max-width:700px){.crm-agenda,.crm-form{grid-template-columns:1fr}.crm-search input{min-width:0;width:100%}.crm-fields{grid-template-columns:1fr}}
