/* ABM stage pill on sales Pipeline deal cards (rendered by sales.js). */
.card-abm-row:where(:not([data-ui="v2"], [data-ui="v2"] *)) { margin-top: 6px; }
.card-abm-pill:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; border: 1px solid var(--abm-color, #64748b); color: var(--abm-color, #64748b); background: var(--bg-card); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: help; }
.card-abm-count:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-weight: 400; opacity: 0.8; }

/* "Send to Marketing (ABM)" toggle in the sales deal modal. */
.abm-push-block:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; flex-direction: column; gap: 6px; width: 100%; margin-top: 10px; padding: 10px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card); box-sizing: border-box; }
.abm-toggle:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 10px; cursor: pointer; margin: 0; font-size: 13px; color: var(--text-main); }
.abm-toggle input:where(:not([data-ui="v2"], [data-ui="v2"] *)) { position: absolute; opacity: 0; width: 1px; height: 1px; }
.abm-switch:where(:not([data-ui="v2"], [data-ui="v2"] *)) { position: relative; width: 36px; height: 20px; border-radius: 10px; background: #cbd5e1; transition: background .15s; flex-shrink: 0; }
.abm-switch:where(:not([data-ui="v2"], [data-ui="v2"] *))::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.abm-toggle input:checked + .abm-switch:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: var(--primary-blue); }
.abm-toggle input:checked + .abm-switch:where(:not([data-ui="v2"], [data-ui="v2"] *))::after { transform: translateX(16px); }
.abm-toggle input:focus-visible + .abm-switch:where(:not([data-ui="v2"], [data-ui="v2"] *)) { outline: 2px solid var(--primary-blue); outline-offset: 2px; }
.abm-toggle input:disabled + .abm-switch:where(:not([data-ui="v2"], [data-ui="v2"] *)) { opacity: 0.5; }
.abm-toggle:has(input:disabled):where(:not([data-ui="v2"], [data-ui="v2"] *)) { cursor: not-allowed; }
.abm-push-status:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-size: 12px; color: var(--text-main); }
.abm-push-status ul:where(:not([data-ui="v2"], [data-ui="v2"] *)) { margin: 4px 0 0; padding-left: 18px; }
.abm-muted:where(:not([data-ui="v2"], [data-ui="v2"] *)) { color: var(--text-muted); font-weight: 400; }
.abm-tags:where(:not([data-ui="v2"], [data-ui="v2"] *)) { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.abm-tag-date:where(:not([data-ui="v2"], [data-ui="v2"] *)) { opacity: 0.75; font-weight: 400; }
.abm-activity:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; flex-direction: column; gap: 4px; }
.abm-activity:empty:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: none; }
.abm-activity-title:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-size: 11px; margin-top: 6px; }
.abm-activity-title span:where(:not([data-ui="v2"], [data-ui="v2"] *)) { opacity: 0.8; }
.abm-activity .comment-item:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-size: 12px; margin: 0; }
.mkt-activity-item:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border-left: 3px solid #8b5cf6 !important; }
.abm-tag:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-size: 11px; padding: 1px 7px; border-radius: 10px; background: var(--dropdown-selected-bg); color: var(--primary-blue); }

/* Marketing outreach board. Uses the CRM's colour tokens from style.css, so light and dark mode both work. */
#marketingView:where(:not([data-ui="v2"], [data-ui="v2"] *)) { flex-direction: column; height: calc(100dvh - 64px); overflow: hidden; padding: 14px 20px 0; box-sizing: border-box; }
.mkt-root:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; flex-direction: column; height: 100%; min-height: 0; gap: 10px; color: var(--text-main); }

.mkt-toolbar:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.mkt-views:where(:not([data-ui="v2"], [data-ui="v2"] *)), .mkt-actions:where(:not([data-ui="v2"], [data-ui="v2"] *)), .mkt-mgr-tabs:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.mkt-view-btn:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border: 1px solid var(--card-border); background: var(--bg-card); color: var(--text-main); padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
.mkt-view-btn.active:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: var(--primary-blue); border-color: var(--primary-blue); color: #fff; }
.mkt-mgr-tabs:where(:not([data-ui="v2"], [data-ui="v2"] *)) { margin-bottom: 12px; }

.mkt-filters:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.mkt-input:where(:not([data-ui="v2"], [data-ui="v2"] *)), .mkt-root select:where(:not([data-ui="v2"], [data-ui="v2"] *)), .mkt-root input:not([type=checkbox]):not([type=color]):where(:not([data-ui="v2"], [data-ui="v2"] *)), .mkt-root textarea:where(:not([data-ui="v2"], [data-ui="v2"] *)),
.mkt-drawer select:where(:not([data-ui="v2"], [data-ui="v2"] *)), .mkt-drawer input:not([type=checkbox]):not([type=color]):where(:not([data-ui="v2"], [data-ui="v2"] *)), .mkt-drawer textarea:where(:not([data-ui="v2"], [data-ui="v2"] *)),
.mkt-modal select:where(:not([data-ui="v2"], [data-ui="v2"] *)), .mkt-modal input:not([type=checkbox]):not([type=color]):where(:not([data-ui="v2"], [data-ui="v2"] *)), .mkt-modal textarea:where(:not([data-ui="v2"], [data-ui="v2"] *)) {
  border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-main); border-radius: 6px; padding: 6px 8px; font-size: 13px; font-family: inherit; box-sizing: border-box;
}
.mkt-filters select:where(:not([data-ui="v2"], [data-ui="v2"] *)) { max-width: 160px; }
.mkt-search:where(:not([data-ui="v2"], [data-ui="v2"] *)) { min-width: 240px; flex: 1 1 240px; max-width: 340px; }
/* Highlight filters that are in effect */
.mkt-filters .mkt-on:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border-color: var(--primary-blue) !important; background: var(--dropdown-selected-bg) !important; color: var(--primary-blue); font-weight: 600; }
.mkt-filter-actions:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.mkt-filter-count:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-size: 12px; font-weight: 600; color: var(--primary-blue); background: var(--dropdown-selected-bg); padding: 3px 9px; border-radius: 10px; white-space: nowrap; }
.mkt-edited:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-size: 11px; font-weight: 600; color: #b45309; background: rgba(245, 158, 11, 0.12); padding: 2px 7px; border-radius: 10px; }
.mkt-filtered-note:where(:not([data-ui="v2"], [data-ui="v2"] *)) { color: var(--primary-blue); font-weight: 600; }
.mkt-root .btn:disabled:where(:not([data-ui="v2"], [data-ui="v2"] *)) { opacity: 0.45; cursor: not-allowed; }
.mkt-filters select:disabled:where(:not([data-ui="v2"], [data-ui="v2"] *)) { opacity: 0.6; }
.mkt-sep:where(:not([data-ui="v2"], [data-ui="v2"] *)) { width: 1px; height: 22px; background: var(--card-border); margin: 0 4px; }
.mkt-small:where(:not([data-ui="v2"], [data-ui="v2"] *)) { padding: 5px 10px !important; font-size: 12px !important; }
.mkt-danger:where(:not([data-ui="v2"], [data-ui="v2"] *)) { color: var(--danger-red) !important; }
.mkt-summary:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.mkt-muted:where(:not([data-ui="v2"], [data-ui="v2"] *)) { color: var(--text-muted); font-size: 12px; font-weight: 400; }
.mkt-note:where(:not([data-ui="v2"], [data-ui="v2"] *)) { margin: 8px 2px 16px; }
.mkt-h3:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-size: 14px; margin: 14px 0 8px; }
.mkt-empty:where(:not([data-ui="v2"], [data-ui="v2"] *)) { padding: 40px 20px; text-align: center; color: var(--text-muted); font-size: 14px; border: 1px dashed var(--card-border); border-radius: 10px; margin: 10px 0; }
.mkt-link:where(:not([data-ui="v2"], [data-ui="v2"] *)) { color: var(--primary-blue); cursor: pointer; text-decoration: underline; }

.mkt-content:where(:not([data-ui="v2"], [data-ui="v2"] *)) { flex: 1; min-height: 0; overflow: auto; padding-bottom: 16px; }

/* Board */
.mkt-board:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; gap: 12px; height: 100%; min-height: 300px; align-items: stretch; }
.mkt-lane:where(:not([data-ui="v2"], [data-ui="v2"] *)) { flex: 0 0 270px; display: flex; flex-direction: column; background: var(--column-bg); border: 1px solid var(--card-border); border-radius: 10px; min-height: 0; }
.mkt-lane-head:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 4px solid #94a3b8; border-radius: 10px 10px 0 0; font-weight: 700; font-size: 13px; }
.mkt-lane-name:where(:not([data-ui="v2"], [data-ui="v2"] *)) { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkt-lane-count:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: var(--bg-card); border: 1px solid var(--card-border); border-radius: 10px; padding: 0 8px; font-size: 12px; color: var(--text-muted); }
.mkt-lane-flag:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-size: 10px; text-transform: uppercase; color: var(--text-muted); border: 1px solid var(--card-border); border-radius: 4px; padding: 0 4px; }
.mkt-lane-body:where(:not([data-ui="v2"], [data-ui="v2"] *)) { flex: 1; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 8px; min-height: 60px; }

.mkt-card:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: var(--bg-card); border: 1px solid var(--card-border); border-left: 4px solid #94a3b8; border-radius: 8px; padding: 10px; box-shadow: var(--card-shadow); cursor: pointer; font-size: 12px; display: flex; flex-direction: column; gap: 3px; }
.mkt-card:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border-color: var(--primary-blue); }
.mkt-ghost:where(:not([data-ui="v2"], [data-ui="v2"] *)) { opacity: 0.4; }
.mkt-card-top:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; align-items: center; gap: 6px; }
.mkt-card-name:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-weight: 700; font-size: 13px; }
.mkt-card-co:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-weight: 600; color: var(--text-main); }
.mkt-card-title:where(:not([data-ui="v2"], [data-ui="v2"] *)) { color: var(--text-muted); }
.mkt-card-chips:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.mkt-card-meta:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); margin-top: 4px; }
.mkt-owner:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: inline-flex; align-items: center; gap: 4px; }
.mkt-avatar:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--primary-blue); color: #fff; font-size: 9px; font-weight: 700; margin-right: 2px; flex-shrink: 0; }
.mkt-chip:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: inline-block; font-size: 10.5px; padding: 1px 6px; border-radius: 10px; border: 1px solid var(--card-border); color: var(--text-muted); background: var(--bg-card); white-space: nowrap; }
.mkt-chip.tag:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: var(--dropdown-selected-bg); color: var(--primary-blue); border-color: transparent; }
.mkt-chip.from-sales:where(:not([data-ui="v2"], [data-ui="v2"] *)) { color: #0369a1; border-color: #7dd3fc; background: rgba(14, 165, 233, 0.08); }
.mkt-chip.warn:where(:not([data-ui="v2"], [data-ui="v2"] *)), .mkt-chip.overdue:where(:not([data-ui="v2"], [data-ui="v2"] *)) { color: #b45309; border-color: #f59e0b; background: rgba(245, 158, 11, 0.1); }
.mkt-lane-pill:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: inline-block; font-size: 11px; color: #fff; padding: 1px 8px; border-radius: 10px; margin: 1px 2px 1px 0; white-space: nowrap; font-weight: 600; }
.mkt-flag:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: inline-block; color: #b91c1c; background: rgba(239, 68, 68, 0.1); border-radius: 10px; padding: 0 8px; font-weight: 600; font-size: 12px; }
.mkt-overdue:where(:not([data-ui="v2"], [data-ui="v2"] *)) { color: var(--danger-red); font-weight: 600; }

.mkt-dot:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; margin-right: 4px; vertical-align: middle; }
.mkt-dot.green:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: #10b981; }
.mkt-dot.yellow:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: #f59e0b; }
.mkt-dot.red:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: #ef4444; }

/* Tables */
.mkt-table-wrap:where(:not([data-ui="v2"], [data-ui="v2"] *)) { overflow: auto; border: 1px solid var(--card-border); border-radius: 10px; background: var(--bg-card); }
.mkt-table:where(:not([data-ui="v2"], [data-ui="v2"] *)) { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mkt-table th:where(:not([data-ui="v2"], [data-ui="v2"] *)) { position: sticky; top: 0; background: var(--column-bg); text-align: left; padding: 8px 10px; font-weight: 700; border-bottom: 1px solid var(--card-border); white-space: nowrap; z-index: 1; }
.mkt-table th.sortable:where(:not([data-ui="v2"], [data-ui="v2"] *)) { cursor: pointer; user-select: none; }
.mkt-table td:where(:not([data-ui="v2"], [data-ui="v2"] *)) { padding: 7px 10px; border-bottom: 1px solid var(--card-border); vertical-align: middle; }
.mkt-table tbody tr[data-id]:where(:not([data-ui="v2"], [data-ui="v2"] *)), .mkt-clickable:where(:not([data-ui="v2"], [data-ui="v2"] *)) { cursor: pointer; }
.mkt-table tbody tr[data-id]:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)), .mkt-clickable:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: var(--dropdown-selected-bg); }
.mkt-subrow > td:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: var(--column-bg); }
.mkt-inner:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: var(--bg-card); border: 1px solid var(--card-border); border-radius: 8px; }
.mkt-inner th:where(:not([data-ui="v2"], [data-ui="v2"] *)) { position: static; }

/* Company-grouped */
.mkt-group:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border: 1px solid var(--card-border); border-radius: 10px; background: var(--column-bg); margin-bottom: 12px; }
.mkt-group-head:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid var(--card-border); }
.mkt-group-head b:where(:not([data-ui="v2"], [data-ui="v2"] *)) { margin-right: 8px; }
.mkt-group-cards:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; padding: 10px; }

/* Drawer */
.mkt-drawer-backdrop:where(:not([data-ui="v2"], [data-ui="v2"] *)) { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.35); opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 900; }
.mkt-drawer-backdrop.show:where(:not([data-ui="v2"], [data-ui="v2"] *)) { opacity: 1; pointer-events: auto; }
.mkt-drawer:where(:not([data-ui="v2"], [data-ui="v2"] *)) { position: fixed; top: 0; right: 0; height: 100dvh; width: min(560px, 100vw); background: var(--bg-card); color: var(--text-main); border-left: 1px solid var(--card-border); box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15); transform: translateX(100%); transition: transform .2s ease; z-index: 901; display: flex; flex-direction: column; }
.mkt-drawer.open:where(:not([data-ui="v2"], [data-ui="v2"] *)) { transform: translateX(0); }
.mkt-drawer-head:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--card-border); }
.mkt-drawer-title:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-size: 18px; font-weight: 700; display: flex; align-items: center; }
.mkt-drawer-body:where(:not([data-ui="v2"], [data-ui="v2"] *)) { flex: 1; overflow-y: auto; padding: 4px 18px 30px; }
.mkt-sec:where(:not([data-ui="v2"], [data-ui="v2"] *)) { padding: 14px 0; border-bottom: 1px solid var(--card-border); }
.mkt-sec h4:where(:not([data-ui="v2"], [data-ui="v2"] *)) { margin: 0 0 10px; font-size: 14px; }
.mkt-sec-actions:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.mkt-sec-actions .btn:only-child:where(:not([data-ui="v2"], [data-ui="v2"] *)) { margin-left: auto; }
.mkt-x:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: none; border: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--text-muted); padding: 0 4px; }

.mkt-comment-box:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 10px; }
.mkt-comment-box textarea:where(:not([data-ui="v2"], [data-ui="v2"] *)) { flex: 1; resize: vertical; }
.mkt-activity:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; }
.mkt-act:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-size: 12.5px; padding: 6px 8px; border-radius: 6px; }
.mkt-act.comment:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: var(--column-bg); border: 1px solid var(--card-border); }
.mkt-act-head:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; gap: 6px; align-items: center; margin-bottom: 2px; }
.mkt-act-text:where(:not([data-ui="v2"], [data-ui="v2"] *)) { white-space: pre-wrap; word-break: break-word; }
.mkt-act.from-mkt:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border-left: 3px solid #8b5cf6; padding-left: 8px; }
.mkt-deal-line:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-bottom: 4px; }

/* Forms */
.mkt-form-grid:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.mkt-form-row:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mkt-form-row.full:where(:not([data-ui="v2"], [data-ui="v2"] *)) { grid-column: 1 / -1; }
.mkt-form-row label:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.mkt-form-row small:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-size: 11px; color: var(--text-muted); }
.mkt-form-row input:where(:not([data-ui="v2"], [data-ui="v2"] *)), .mkt-form-row select:where(:not([data-ui="v2"], [data-ui="v2"] *)), .mkt-form-row textarea:where(:not([data-ui="v2"], [data-ui="v2"] *)) { width: 100%; }
.mkt-form-row .invalid:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border-color: var(--danger-red) !important; }
.mkt-req:where(:not([data-ui="v2"], [data-ui="v2"] *)) { color: var(--danger-red); margin-left: 2px; }
.mkt-check:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-main); font-weight: 500; white-space: nowrap; }
.mkt-form-error:where(:not([data-ui="v2"], [data-ui="v2"] *)) { color: var(--danger-red); font-size: 13px; min-height: 18px; margin-top: 10px; white-space: pre-wrap; }

/* Modals */
.mkt-modal-backdrop:where(:not([data-ui="v2"], [data-ui="v2"] *)) { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); display: none; align-items: center; justify-content: center; z-index: 950; padding: 16px; }
.mkt-modal-backdrop.show:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; }
.mkt-modal:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: var(--bg-card); color: var(--text-main); border-radius: 12px; width: min(520px, 100%); max-height: 90dvh; overflow-y: auto; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25); padding: 18px 20px; }
.mkt-modal.wide:where(:not([data-ui="v2"], [data-ui="v2"] *)) { width: min(760px, 100%); }
.mkt-modal header:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mkt-modal h3:where(:not([data-ui="v2"], [data-ui="v2"] *)) { margin: 0; font-size: 17px; }
.mkt-modal footer:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.mkt-intro:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-size: 13px; color: var(--text-muted); margin: 0 0 12px; }

.mkt-poc-list:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow-y: auto; border: 1px solid var(--card-border); border-radius: 8px; padding: 6px; }
.mkt-poc-pick:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; font-size: 13px; padding: 4px 6px; border-radius: 6px; cursor: pointer; margin: 0; font-weight: 400; color: var(--text-main); }
.mkt-poc-pick input:where(:not([data-ui="v2"], [data-ui="v2"] *)), .mkt-check input:where(:not([data-ui="v2"], [data-ui="v2"] *)), #marketingView input[type=checkbox]:where(:not([data-ui="v2"], [data-ui="v2"] *)) { width: auto !important; flex: 0 0 auto; margin: 0; }
.mkt-poc-pick > span:nth-child(2):where(:not([data-ui="v2"], [data-ui="v2"] *)) { flex: 1; min-width: 0; }
.mkt-poc-pick > span:nth-child(3):where(:not([data-ui="v2"], [data-ui="v2"] *)) { flex: 0 0 auto; }
.mkt-poc-pick.taken:where(:not([data-ui="v2"], [data-ui="v2"] *)) { opacity: 0.6; cursor: default; }
.mkt-poc-pick:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: var(--column-bg); }

.mkt-lane-list:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; flex-direction: column; gap: 6px; }
.mkt-lane-row:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--card-border); border-radius: 8px; background: var(--column-bg); flex-wrap: wrap; }
.mkt-lane-row.archived:where(:not([data-ui="v2"], [data-ui="v2"] *)) { opacity: 0.55; }
.mkt-lane-row input[type=color]:where(:not([data-ui="v2"], [data-ui="v2"] *)), .mkt-add-lane input[type=color]:where(:not([data-ui="v2"], [data-ui="v2"] *)) { width: 32px; height: 28px; padding: 0; border: none; background: none; cursor: pointer; }
.mkt-lane-name-input:where(:not([data-ui="v2"], [data-ui="v2"] *)) { flex: 1; min-width: 140px; }
.mkt-handle:where(:not([data-ui="v2"], [data-ui="v2"] *)) { cursor: grab; color: var(--text-muted); user-select: none; }
.mkt-add-lane:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.mkt-add-lane input:first-child:where(:not([data-ui="v2"], [data-ui="v2"] *)) { flex: 1; min-width: 160px; }

.mkt-toast:where(:not([data-ui="v2"], [data-ui="v2"] *)) { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px); background: #1e293b; color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 13px; opacity: 0; pointer-events: none; transition: all .2s; z-index: 1000; max-width: min(90vw, 520px); }
.mkt-toast.show:where(:not([data-ui="v2"], [data-ui="v2"] *)) { opacity: 1; transform: translateX(-50%) translateY(0); }
.mkt-toast.success:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: #059669; }
.mkt-toast.error:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: #dc2626; }

@media (max-width: 720px) {
  #marketingView:where(:not([data-ui="v2"], [data-ui="v2"] *)) { padding: 10px 12px 0; }
  .mkt-form-grid:where(:not([data-ui="v2"], [data-ui="v2"] *)) { grid-template-columns: 1fr; }
  .mkt-lane:where(:not([data-ui="v2"], [data-ui="v2"] *)) { flex-basis: 240px; }
  .mkt-filters select:where(:not([data-ui="v2"], [data-ui="v2"] *)) { max-width: none; flex: 1 1 140px; }
}

/* Disabled buttons (e.g. Archive/Delete on a lane that still holds cards) */
.mkt-modal .btn:disabled:where(:not([data-ui="v2"], [data-ui="v2"] *)), .mkt-drawer .btn:disabled:where(:not([data-ui="v2"], [data-ui="v2"] *)), .mkt-root .btn:disabled:where(:not([data-ui="v2"], [data-ui="v2"] *)) { opacity: 0.4; cursor: not-allowed; }

/* Account lists builder */
.al-panel:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; flex-direction: column; gap: 12px; padding-bottom: 20px; }
.al-head:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.al-title:where(:not([data-ui="v2"], [data-ui="v2"] *)) { margin: 0 0 2px; font-size: 16px; }
.al-head-actions:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; gap: 6px; }
.al-builder:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border: 1px solid var(--card-border); border-radius: 10px; background: var(--column-bg); padding: 12px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.al-match:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-size: 13px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.al-inc:where(:not([data-ui="v2"], [data-ui="v2"] *)) { margin-left: 12px; }
.al-conds:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; flex-direction: column; gap: 6px; width: 100%; }
.al-none:where(:not([data-ui="v2"], [data-ui="v2"] *)) { padding: 4px 0; }
.al-cond:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; background: var(--bg-card); border: 1px solid var(--card-border); border-radius: 8px; padding: 6px 8px; }
.al-cond > select:where(:not([data-ui="v2"], [data-ui="v2"] *)) { max-width: 220px; }
.al-val:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.al-val input:where(:not([data-ui="v2"], [data-ui="v2"] *)) { width: 150px; }
.al-multi:where(:not([data-ui="v2"], [data-ui="v2"] *)) { position: relative; }
.al-multi summary:where(:not([data-ui="v2"], [data-ui="v2"] *)) { cursor: pointer; list-style: none; border: 1px solid var(--border-color); border-radius: 6px; padding: 6px 10px; font-size: 13px; background: var(--bg-card); max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-multi summary:where(:not([data-ui="v2"], [data-ui="v2"] *))::-webkit-details-marker { display: none; }
.al-multi[open] summary:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border-color: var(--primary-blue); }
.al-multi-list:where(:not([data-ui="v2"], [data-ui="v2"] *)) { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; min-width: 220px; max-height: 260px; overflow-y: auto; background: var(--bg-card); border: 1px solid var(--card-border); border-radius: 8px; box-shadow: var(--card-shadow); padding: 6px 8px; display: flex; flex-direction: column; gap: 4px; }
.al-actions:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; margin-bottom: 8px; }
.al-actions .mkt-input:where(:not([data-ui="v2"], [data-ui="v2"] *)) { min-width: 200px; }
.al-table tr.al-off td:where(:not([data-ui="v2"], [data-ui="v2"] *)) { opacity: 0.45; }
.al-poc-btn:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: none; border: none; color: var(--primary-blue); cursor: pointer; font-size: 12.5px; padding: 0; white-space: nowrap; }
.al-more:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.al-row-actions:where(:not([data-ui="v2"], [data-ui="v2"] *)) { white-space: nowrap; display: flex; gap: 6px; }

/* Account lists: filter UX states */
.al-dirty:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-size: 11px; font-weight: 600; color: #b45309; background: rgba(245, 158, 11, 0.12); padding: 2px 8px; border-radius: 10px; vertical-align: middle; margin-left: 6px; }
.al-connector:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; color: var(--text-muted); padding-left: 14px; }
.al-cond.al-incomplete:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border-style: dashed; border-color: #f59e0b; }
.al-cond.al-has-warn:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border-color: var(--danger-red); }
.al-hint:where(:not([data-ui="v2"], [data-ui="v2"] *)), .al-warn:where(:not([data-ui="v2"], [data-ui="v2"] *)) { flex-basis: 100%; font-size: 11.5px; }
.al-hint:where(:not([data-ui="v2"], [data-ui="v2"] *)) { color: #b45309; }
.al-hint[hidden]:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: none; }
.al-warn:where(:not([data-ui="v2"], [data-ui="v2"] *)) { color: var(--danger-red); font-weight: 600; }
.al-ignored:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-size: 12px; color: #b45309; margin-bottom: 6px; }
.al-link:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: none; border: none; padding: 0; color: var(--primary-blue); cursor: pointer; font-size: 12px; text-decoration: underline; }
.al-opt-search:where(:not([data-ui="v2"], [data-ui="v2"] *)) { width: 100% !important; margin-bottom: 4px; }
.al-opt-tools:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; gap: 10px; padding: 2px 0 4px; border-bottom: 1px solid var(--card-border); margin-bottom: 4px; }
.al-opts:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; flex-direction: column; gap: 4px; }
.al-opt[hidden]:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: none !important; }
.al-opt-empty[hidden]:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: none; }
.al-multi-list:where(:not([data-ui="v2"], [data-ui="v2"] *)) { max-height: 300px; }
@media (max-width: 720px) { .mkt-filter-actions:where(:not([data-ui="v2"], [data-ui="v2"] *)) { margin-left: 0; } }

/* Deal revenue fields: hint for the old free-text rev share */
.rev-legacy-note:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-size: 11.5px; color: #b45309; background: rgba(245, 158, 11, 0.1); border-radius: 6px; padding: 4px 8px; margin: 2px 0 6px; }
.rev-legacy-note[hidden]:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: none; }

/* Searchable pickers (company combo, multi-select chips) */
.mkt-combo:where(:not([data-ui="v2"], [data-ui="v2"] *)), .mkt-chips:where(:not([data-ui="v2"], [data-ui="v2"] *)) { position: relative; width: 100%; }
.mkt-combo-input:where(:not([data-ui="v2"], [data-ui="v2"] *)) { width: 100%; }
.mkt-chips-box:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; min-height: 34px; border: 1px solid var(--border-color); border-radius: 6px; padding: 3px 6px; background: var(--bg-card); cursor: text; box-sizing: border-box; }
.mkt-chips-box:focus-within:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border-color: var(--primary-blue); }
.mkt-chips-list:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: contents; }
.mkt-chips-input:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border: none !important; outline: none; padding: 3px 2px !important; flex: 1; min-width: 120px; background: transparent !important; }
.mkt-chip-x:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: inline-flex; align-items: center; gap: 4px; background: var(--dropdown-selected-bg); color: var(--primary-blue); border-radius: 10px; padding: 2px 4px 2px 8px; font-size: 12px; font-weight: 600; }
.mkt-chip-x button:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border: none; background: none; color: inherit; cursor: pointer; font-size: 14px; line-height: 1; padding: 0 2px; }
.mkt-combo-list:where(:not([data-ui="v2"], [data-ui="v2"] *)) { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 3px); max-height: 260px; overflow-y: auto; background: var(--bg-card); border: 1px solid var(--card-border); border-radius: 8px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15); padding: 4px; }
.mkt-combo-opt:where(:not([data-ui="v2"], [data-ui="v2"] *)) { padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.mkt-combo-opt.on:where(:not([data-ui="v2"], [data-ui="v2"] *)), .mkt-combo-opt:hover:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: var(--dropdown-selected-bg); }
.mkt-combo-opt.sel:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-weight: 700; }
.mkt-combo-opt.action:where(:not([data-ui="v2"], [data-ui="v2"] *)) { color: var(--primary-blue); font-weight: 600; }
.mkt-combo-note:where(:not([data-ui="v2"], [data-ui="v2"] *)) { padding: 6px 8px; font-size: 12px; color: var(--text-muted); }
.mkt-form-row .invalid:where(:not([data-ui="v2"], [data-ui="v2"] *)), .mkt-chips-box .invalid:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border-color: var(--danger-red) !important; }

/* Add to board: POC tools and selection tray */
.mkt-poc-tools:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; gap: 8px; margin-bottom: 6px; }
.mkt-poc-tools[hidden]:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: none; }
.mkt-poc-search:where(:not([data-ui="v2"], [data-ui="v2"] *)) { flex: 1; }
.mkt-tray:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; padding: 8px; border: 1px dashed var(--card-border); border-radius: 8px; font-size: 12.5px; }
.mkt-tray-label:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-weight: 700; }

/* Secondary owners and account tags on cards */
.mkt-avatar.sec:where(:not([data-ui="v2"], [data-ui="v2"] *)) { width: 18px; height: 18px; font-size: 8px; margin-left: -4px; background: #8b5cf6; border: 2px solid var(--bg-card); }
.mkt-chip.tag.acct:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: transparent; border: 1px dashed var(--primary-blue); color: var(--primary-blue); }

/* ABM nomination form (Send to Marketing) and the nomination details on the Marketing card */
.abm-nom-backdrop:where(:not([data-ui="v2"], [data-ui="v2"] *)) { position: fixed; inset: 0; z-index: 10050; background: rgba(15, 23, 42, 0.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.abm-nom:where(:not([data-ui="v2"], [data-ui="v2"] *)) { background: var(--bg-card); color: var(--text-main); border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,.25); width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 18px 20px; box-sizing: border-box; }
.abm-nom h3:where(:not([data-ui="v2"], [data-ui="v2"] *)) { margin: 0 0 6px; font-size: 16px; }
.abm-nom p:where(:not([data-ui="v2"], [data-ui="v2"] *)) { margin: 0 0 12px; font-size: 12.5px; line-height: 1.45; }
.abm-nom fieldset:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border: 1px solid var(--border-color); border-radius: 8px; padding: 8px 12px 10px; margin: 0 0 12px; }
.abm-nom legend:where(:not([data-ui="v2"], [data-ui="v2"] *)) { font-size: 12.5px; font-weight: 700; padding: 0 4px; }
.abm-req:where(:not([data-ui="v2"], [data-ui="v2"] *)) { color: var(--danger-red); }
.abm-nom-grid:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
.abm-nom-check:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 8px; font-size: 12.5px; padding: 4px 0; cursor: pointer; margin: 0; font-weight: 400; }
.abm-nom-check input:where(:not([data-ui="v2"], [data-ui="v2"] *)) { margin-top: 2px; flex-shrink: 0; }
.abm-nom-check.off:where(:not([data-ui="v2"], [data-ui="v2"] *)) { opacity: 0.6; cursor: not-allowed; }
.abm-nom-note:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex !important; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 700; margin: 0 0 8px; }
.abm-nom-note input:where(:not([data-ui="v2"], [data-ui="v2"] *)) { border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-main); border-radius: 6px; padding: 7px 9px; font-size: 13px; font-weight: 400; }
.abm-nom-error:where(:not([data-ui="v2"], [data-ui="v2"] *)) { color: var(--danger-red); font-size: 12.5px; min-height: 16px; }
.abm-nom-actions:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
@media (max-width: 560px) { .abm-nom-grid:where(:not([data-ui="v2"], [data-ui="v2"] *)) { grid-template-columns: 1fr; } }
.mkt-abm-brief:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; padding: 8px 10px; margin: 0 0 10px; border-radius: 8px; background: var(--dropdown-selected-bg); border-left: 3px solid var(--primary-blue); }
.mkt-abm-brief .mkt-chip:where(:not([data-ui="v2"], [data-ui="v2"] *)) { margin: 1px 2px; }
.abm-nom-other:where(:not([data-ui="v2"], [data-ui="v2"] *)) { width: 100%; box-sizing: border-box; margin-top: 6px; border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-main); border-radius: 6px; padding: 7px 9px; font-size: 13px; }
.abm-nom-other[hidden]:where(:not([data-ui="v2"], [data-ui="v2"] *)) { display: none; }
