.deal-card { position: relative; user-select: none; }
.deal-card[draggable="true"] { cursor: grab; }
.deal-card[draggable="true"]:active { cursor: grabbing; }
.drag-handle { position: absolute; right: 10px; top: 9px; color: #a8b0bd; font-size: 12px; letter-spacing: -3px; }
.kanban-column { transition: border-color .12s ease, box-shadow .12s ease; }
.kanban-column.drop-target { border-color: #74a0ef; box-shadow: inset 0 0 0 2px rgba(47,111,237,.18); }
.deal-card.is-dragging { opacity: .45; transform: none !important; box-shadow: none !important; }
.pipeline-select { min-width: 180px; }
.pipeline-modal{width:min(680px,calc(100vw - 28px));max-height:min(88vh,780px);overflow:auto;padding:26px}.pipeline-modal .modal-header{padding-bottom:18px;border-bottom:1px solid #e8ebf2}.pipeline-modal .modal-header h2{margin-top:4px}.pipeline-name-row{display:grid;grid-template-columns:minmax(0,1fr) 90px;align-items:end;gap:12px;margin-top:18px}.pipeline-name-row .form-group{margin:0}.stage-total{display:flex;height:42px;align-items:center;justify-content:center;gap:5px;border:1px solid #e3e7ef;border-radius:7px;background:#f8faff}.stage-total strong{font-size:17px;color:#2f6fed}.stage-total span{font-size:10px;color:#667085}.pipeline-stage-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 10px}.pipeline-stage-heading>div{display:flex;flex-direction:column;gap:3px}.pipeline-stage-heading label{font-size:12px;font-weight:700;color:#344054}.pipeline-stage-heading small{font-size:10px;color:#7b8497}.pipeline-stage-list{display:flex;flex-direction:column;gap:8px}.pipeline-stage-editor{display:grid;grid-template-columns:32px 27px minmax(0,1fr) 34px;align-items:center;gap:7px;padding:8px;border:1px solid #e1e6ef;border-radius:10px;background:#fff;transition:border-color .15s,box-shadow .15s,opacity .15s,transform .15s}.pipeline-stage-editor:hover{border-color:#b9c8e5;box-shadow:0 4px 13px rgba(32,48,78,.06)}.pipeline-stage-editor.dragging{opacity:.45;transform:scale(.985);border-style:dashed}.pipeline-stage-editor .form-input{height:37px;background:#f8fafc;border-color:transparent;font-weight:600}.pipeline-stage-editor .form-input:focus{background:#fff;border-color:#7da0e8}.stage-drag-grip,.stage-delete{display:grid;place-items:center;width:32px;height:34px;border:0;border-radius:7px;background:transparent;cursor:pointer}.stage-drag-grip{color:#98a2b3;font-size:21px;cursor:grab}.stage-drag-grip:active{cursor:grabbing}.stage-drag-grip:hover{background:#eef3fb;color:#526b9e}.stage-order{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#edf3ff;color:#3768c7;font-size:10px;font-weight:800}.stage-delete{color:#a94b59;font-size:20px}.stage-delete:hover{background:#fff0f2;color:#d92d48}.pipeline-help{display:flex;align-items:flex-start;gap:9px;padding:11px 12px;margin-top:12px;border-radius:8px;background:#f5f8fe;color:#5a6b89}.pipeline-help span{color:#2f6fed}.pipeline-help p{font-size:10px;line-height:1.45}.pipeline-actions{justify-content:space-between;margin-top:18px;padding-top:16px;border-top:1px solid #e8ebf2}.pipeline-actions>div{display:flex;gap:8px}
@media (pointer: coarse) { .drag-handle { font-size: 16px; } }
@media(max-width:600px){.pipeline-modal{padding:18px}.pipeline-name-row{grid-template-columns:1fr}.stage-total{height:34px;width:max-content;padding:0 12px}.pipeline-stage-heading{align-items:flex-end}.pipeline-stage-editor{grid-template-columns:30px 24px minmax(0,1fr) 32px;gap:4px;padding:6px}.pipeline-actions{align-items:stretch;gap:9px}.pipeline-actions,.pipeline-actions>div{display:grid;grid-template-columns:1fr}.pipeline-actions .btn{width:100%}}
