.crm-board-selection{margin-bottom:16px;position:sticky;left:0;z-index:2}
.crm-board-selection .crm-bulk-controls{display:flex;align-items:center;gap:16px;flex-wrap:wrap;border:1px solid var(--line);border-radius:12px;padding:12px 16px;background:var(--surface)}
.crm-board-selection .crm-bulk-controls>div{display:flex;flex-wrap:wrap;gap:4px 12px;flex:1}
.crm-board-selection [data-crm-selected-count]{white-space:nowrap;font-weight:600}
.crm-board-selection .text-btn{font-size:13px;gap:6px;min-height:32px}
.crm-board-selection .text-btn svg{width:16px;height:16px}
.crm-board-selection [hidden]{display:none!important}
.crm-column [data-crm-select-stage],.crm-selectable-card input{width:17px;height:17px;accent-color:var(--accent);flex-shrink:0;cursor:pointer}
.crm-deal-card.crm-selectable-card{display:flex;align-items:flex-start;gap:10px;cursor:pointer}
.crm-selectable-content{display:flex;flex-direction:column;gap:12px;min-width:0;flex:1}
.crm-selectable-card input{margin:2px 0 0}
.crm-deal-card.is-selected{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.crm-merge-dialog{width:min(1440px,calc(100vw - 48px));max-width:none;max-height:calc(100dvh - 48px);padding:0}
.crm-merge-dialog>.dialog-header{padding:20px 24px}
.crm-merge-form{display:flex;flex-direction:column;min-height:0}
.crm-merge-intro,.crm-merge-payment-note{margin:0;padding:0 24px 16px;color:var(--muted);font-size:14px;line-height:1.5}
.crm-merge-scroll{overflow:auto;max-height:calc(100dvh - 320px);border-block:1px solid var(--line);overscroll-behavior:contain}
.crm-merge-table{border-collapse:separate;border-spacing:0;width:100%;font-size:14px;line-height:1.5}
.crm-merge-table th,.crm-merge-table td{text-align:left;vertical-align:top;padding:14px 20px;border-bottom:1px solid var(--line);min-width:240px;max-width:340px;overflow-wrap:anywhere}
.crm-merge-table thead th{position:sticky;top:0;background:var(--surface);z-index:2;font-weight:600}
.crm-merge-table th:first-child{min-width:160px;max-width:200px;color:var(--muted);font-weight:500;font-size:13px}
.crm-merge-table thead a{display:block;color:var(--ink);text-decoration:none;margin-bottom:6px}
.crm-merge-table thead small{display:block;color:var(--muted);font-weight:400;margin-bottom:8px}
.crm-merge-table thead .text-btn{font-size:12px;margin-top:8px;white-space:normal;text-align:left}
.crm-merge-table .crm-merge-result{background:var(--canvas);border-left:1px solid var(--line);position:sticky;right:0;min-width:260px;box-shadow:-8px 0 16px -14px #0006}
.crm-merge-table thead .crm-merge-result{z-index:3;color:var(--accent)}
.crm-merge-choice{display:flex;align-items:flex-start;gap:10px;margin-bottom:10px;cursor:pointer}
.crm-merge-choice:last-child{margin-bottom:0}
.crm-merge-choice input{width:17px;height:17px;accent-color:var(--accent);flex-shrink:0;margin:2px 0 0}
.crm-merge-choice:has(input:checked){color:var(--accent)}
.crm-merge-choice strong,.crm-merge-result-item strong{font-weight:500}
.crm-merge-choice small,.crm-merge-result-item small{display:block;color:var(--muted);font-size:12px;margin-top:4px}
.crm-merge-result-item+.crm-merge-result-item{margin-top:14px}
.crm-merge-primary{display:flex;gap:24px;align-items:center;justify-content:space-between;padding:16px 24px}
.crm-merge-primary .account-field{margin:0;max-width:360px;flex:1}
.crm-merge-primary [data-merge-paid-total]{font-weight:600;font-size:14px}
.crm-merge-footer{display:flex;gap:12px;justify-content:flex-end;align-items:center;padding:16px 24px;border-top:1px solid var(--line)}
.crm-merge-footer .form-feedback{flex:1;margin:0}
.crm-secondary-contact>a{display:flex;justify-content:space-between;color:var(--ink);text-decoration:none;gap:12px}
.crm-secondary-contact>span{display:block;color:var(--muted);font-size:13px;margin-top:8px;overflow-wrap:anywhere}
@media(max-width:700px){.crm-merge-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.crm-merge-dialog>.dialog-header{padding:16px}.crm-merge-intro,.crm-merge-payment-note{padding:0 16px 12px;font-size:12px}.crm-merge-scroll{max-height:calc(100dvh - 345px)}.crm-merge-table .crm-merge-result{position:static;min-width:220px}.crm-merge-table th,.crm-merge-table td{min-width:200px;padding:14px}.crm-merge-table th:first-child{min-width:110px}.crm-merge-primary{padding:12px 16px;gap:12px;flex-wrap:wrap}.crm-merge-primary .account-field{min-width:100%}.crm-merge-footer{padding:12px 16px;flex-wrap:wrap}.crm-merge-footer .form-feedback:not(:empty){flex-basis:100%}.crm-board-selection .crm-bulk-controls{gap:8px;padding:10px}.crm-board-selection .crm-bulk-controls>div{order:3;flex-basis:100%}.crm-board-selection [data-crm-bulk-clear]{margin-left:auto}}

.crm-merge-dialog .dialog-body{padding:0;overflow:visible}.crm-merge-dialog .dialog-header{margin:0}
.crm-merge-dialog[open]{display:flex;flex-direction:column;height:min(900px,calc(100dvh - 48px));overflow:hidden}
.crm-merge-dialog .dialog-header{flex-shrink:0}
.crm-merge-dialog .dialog-body{display:flex;flex:1;min-height:0}
.crm-merge-dialog .crm-merge-form{flex:1;min-width:0}
.crm-merge-dialog .crm-merge-scroll{flex:1;min-height:90px;max-height:none}
.crm-merge-dialog .crm-merge-intro,.crm-merge-dialog .crm-merge-payment-note{margin:0;padding:16px 24px;flex-shrink:0}
.crm-merge-primary,.crm-merge-footer{flex-shrink:0}
.crm-merge-dialog .crm-merge-payment-note{padding-top:0}
.crm-selectable-content{gap:0}
@media(max-width:700px){.crm-merge-dialog[open]{height:calc(100dvh - 16px)}.crm-merge-dialog .crm-merge-intro,.crm-merge-dialog .crm-merge-payment-note{padding:12px 16px}.crm-merge-dialog .crm-merge-payment-note{padding-top:0}.crm-merge-dialog .dialog-header h2{font-size:16px}}
