.crm-pipeline {
  --crm-text: #232b28;
  --crm-muted: #747d76;
  --crm-border: #e2e7df;
  --crm-surface: #fff;
  --crm-well: #f1f4ef;
  --crm-accent: #395d42;
  color: var(--crm-text);
  font: 14px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.crm-pipeline *, .crm-drag-ghost * { box-sizing: border-box; }
.crm-board-help { color: var(--crm-muted); font-size: 12px; margin: 0 0 18px; }
.crm-board { display: grid; grid-template-columns: repeat(var(--crm-column-count), minmax(245px, 1fr)); gap: 14px; overflow-x: auto; padding: 2px 2px 18px; scrollbar-width: thin; align-items: stretch; overscroll-behavior-x: contain; }
.crm-column { --crm-stage-color: #809274; background: var(--crm-well); border: 1px solid transparent; border-radius: 14px; min-height: 360px; padding: 15px 11px 11px; transition: background 150ms, border-color 150ms; }
.crm-column-header { padding: 0 4px 16px; }
.crm-column-title { display: flex; gap: 8px; align-items: center; font-size: 13px; margin: 0 0 3px; font-weight: 650; }
.crm-stage-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--crm-stage-color); }
.crm-count { font-weight: 500; font-size: 11px; color: var(--crm-muted); background: #ffffffb0; border: 1px solid var(--crm-border); border-radius: 5px; padding: 0 5px; margin-left: auto; }
.crm-column-total { font-size: 12px; color: var(--crm-muted); margin-left: 15px; font-variant-numeric: tabular-nums; }
.crm-card-list { min-height: 265px; display: flex; flex-direction: column; gap: 10px; }
.crm-card { border: 1px solid var(--crm-border); border-radius: 11px; background: var(--crm-surface); padding: 13px 14px 12px; box-shadow: 0 2px 3px #20302504; transition: box-shadow 150ms, opacity 150ms; }
.crm-card:hover { box-shadow: 0 4px 16px #20302509; }
.crm-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.crm-company { font-size: 11px; color: var(--crm-muted); overflow-wrap: anywhere; flex: 1; }
.crm-drag-handle { font-size: 22px; line-height: 1; min-width: 32px; min-height: 32px; margin: -6px -7px -6px 0; background: transparent; border: 0; border-radius: 5px; color: #909990; cursor: grab; touch-action: none; user-select: none; }
.crm-drag-handle:hover { background: var(--crm-well); color: var(--crm-accent); }
.crm-drag-handle:active { cursor: grabbing; }
.crm-drag-handle:disabled { opacity: .25; cursor: default; }
.crm-card-title { display: block; text-align: left; color: var(--crm-text); font: inherit; font-size: 13px; line-height: 1.5; font-weight: 650; background: none; border: 0; padding: 0; cursor: pointer; overflow-wrap: anywhere; width: 100%; }
.crm-card-title:hover { color: var(--crm-accent); }
.crm-card-value { font-size: 20px; font-weight: 550; letter-spacing: -.7px; margin: 10px 0 17px; font-variant-numeric: tabular-nums; }
.crm-card-footer { display: flex; gap: 7px; align-items: center; border-top: 1px solid var(--crm-border); padding-top: 10px; }
.crm-owner { display: flex; align-items: center; gap: 5px; color: var(--crm-muted); font-size: 10px; min-width: 0; flex: 1; }
.crm-owner > span:last-child { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.crm-avatar { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #e8eddf; color: #5c6a4a; font-size: 9px; font-weight: 650; flex-shrink: 0; }
.crm-stage-select { font: inherit; font-size: 10px; color: var(--crm-muted); max-width: 110px; min-height: 30px; padding: 2px; border: 1px solid transparent; border-radius: 5px; background: transparent; cursor: pointer; }
.crm-stage-select:hover { border-color: var(--crm-border); }
.crm-pipeline :focus-visible { outline: 2px solid var(--crm-accent); outline-offset: 3px; }
.crm-empty { font-size: 12px; text-align: center; padding: 30px 10px; color: var(--crm-muted); border: 1px dashed var(--crm-border); border-radius: 8px; margin: 0; }
.crm-column.is-drop-target { border-color: var(--crm-accent); background: #e7ede2; }
.crm-card.is-dragging { opacity: .22; }
.crm-drop-placeholder { border: 1px dashed var(--crm-accent); background: #d9e5d350; border-radius: 11px; flex-shrink: 0; pointer-events: none; }
.crm-drag-ghost { position: fixed; left: 0; top: 0; z-index: 10000; pointer-events: none; box-shadow: 0 15px 40px #18281c30; color: #232b28; font: 14px/1.5 system-ui, sans-serif; background: white; opacity: .97; will-change: transform; }
.crm-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (pointer: coarse) {
  .crm-drag-handle { min-width: 44px; min-height: 44px; }
  .crm-stage-select, .crm-card-title { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .crm-pipeline *, .crm-drag-ghost { transition: none !important; animation: none !important; }
}
