/* Loaded only with the centrally connected cohort; all rules are scoped. */
.central-crm {
  --crm-ink: #191d1e;
  --crm-muted: #68747c;
  --crm-line: #e2e6e8;
  --crm-surface: #fff;
  --crm-soft: #f4f6f7;
  --crm-red: #bc0010;
  color: var(--crm-ink);
  width: 100%; max-width: 1440px; margin: 0 auto;
  padding: 24px clamp(12px, 3vw, 40px) 48px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  box-sizing: border-box;
}
.central-crm *, .central-crm *::before, .central-crm *::after { box-sizing: border-box; }
.central-crm [hidden] { display: none !important; }
.central-crm button, .central-crm input, .central-crm select, .central-crm textarea { font: inherit; letter-spacing: normal; text-transform: none; }
.central-crm button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.central-crm button:disabled { cursor: default; opacity: .55; }
.central-crm :is(button, input, select, textarea):focus-visible { outline: 3px solid #bb00104d; outline-offset: 3px; }
.central-crm .crm-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.central-crm .crm-eyebrow { color: var(--crm-red); font-size: 11px; font-weight: 750; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 10px; }
.central-crm h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 5vw, 58px); font-weight: 500; line-height: 1.05; letter-spacing: -.04em; margin: 0; }
.central-crm .crm-intro { font-size: 15px; color: var(--crm-muted); line-height: 1.5; margin: 12px 0 0; }
.central-crm .crm-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--crm-line); border-radius: 12px; padding: 11px 17px; color: var(--crm-ink); background: var(--crm-surface); box-shadow: none; font-size: 14px; font-weight: 650; line-height: 1.4; text-decoration: none; }
.central-crm .crm-button:hover:not(:disabled) { border-color: #a8b0b4; background: var(--crm-soft); }
.central-crm .crm-primary { color: #fff; border-color: var(--crm-red); background: var(--crm-red); }
.central-crm .crm-primary:hover:not(:disabled) { color: #fff; background: #a6000f; border-color: #a6000f; }
.central-crm .crm-button-small { padding: 9px 13px; }
.central-crm .crm-quiet { background: transparent; color: var(--crm-muted); }
.central-crm .crm-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 20px; align-items: start; }
.central-crm .crm-master, .central-crm .crm-detail { min-width: 0; background: var(--crm-surface); border: 1px solid var(--crm-line); border-radius: 22px; box-shadow: 0 10px 35px #1e293b04; }
.central-crm .crm-master { overflow: hidden; }
.central-crm .crm-toolbar { padding: 20px 20px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.central-crm .crm-search-row { display: flex; gap: 8px; width: 100%; min-width: 0; }
.central-crm .crm-search-row input { min-width: 0; flex: 1; }
.central-crm :is(input:not([type="checkbox"]), select, textarea) { display: block; width: 100%; min-height: 44px; border: 1px solid var(--crm-line); border-radius: 10px; padding: 11px 12px; color: var(--crm-ink); background: var(--crm-surface); font-size: 16px; line-height: 1.4; box-shadow: none; margin: 0; }
.central-crm input::placeholder, .central-crm textarea::placeholder { color: #8a9399; }
.central-crm .crm-toolbar select { width: auto; flex: 1 1 140px; font-size: 14px; }
.central-crm .crm-count { margin: 16px 22px 8px; font-size: 12px; color: var(--crm-muted); }
.central-crm .crm-record-list { padding: 0 8px 10px; }
.central-crm .crm-record { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; width: 100%; min-height: 90px; height: auto; align-items: center; gap: 12px; padding: 15px 12px; border: 0; border-radius: 13px; background: transparent; color: var(--crm-ink); text-align: left; white-space: normal; box-shadow: none; }
.central-crm .crm-record:hover { background: var(--crm-soft); }
.central-crm .crm-record[aria-pressed="true"] { background: #bc001007; box-shadow: inset 3px 0 var(--crm-red); }
.central-crm .crm-avatar { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: #edf1f2; color: #566269; font-size: 13px; font-weight: 650; }
.central-crm .crm-record-copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.central-crm .crm-record-copy strong { font-size: 15px; line-height: 1.4; font-weight: 650; overflow-wrap: anywhere; }
.central-crm .crm-record-copy > span { color: var(--crm-muted); font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.central-crm .crm-badge { border-radius: 7px; background: #eef2f2; color: #566269; font-size: 10px; font-weight: 650; padding: 5px 7px; line-height: 1.4; max-width: 94px; text-align: center; }
.central-crm .crm-load-more { display: flex; margin: 12px auto 0; }
.central-crm .crm-empty, .central-crm .crm-detail-empty { padding: 44px 24px; text-align: center; }
.central-crm .crm-empty h3 { font-size: 17px; margin: 0 0 10px; }
.central-crm .crm-empty p, .central-crm .crm-detail-empty p { font-size: 14px; color: var(--crm-muted); line-height: 1.6; margin: 0 0 18px; }
.central-crm .crm-detail { padding: 24px; min-height: 370px; }
.central-crm .crm-detail-empty { padding-top: 46px; }
.central-crm .crm-detail-symbol { display: block; color: #89989d; font-size: 34px; margin-bottom: 18px; }
.central-crm .crm-detail-empty h2 { font-family: Georgia, "Times New Roman", serif; font-size: 28px; line-height: 1.2; font-weight: 500; margin: 0 0 14px; }
.central-crm .crm-back { display: block; border: 0; background: transparent; color: var(--crm-muted); padding: 8px 0; margin: -5px 0 17px; min-height: 40px; font-size: 14px; font-weight: 550; box-shadow: none; }
.central-crm .crm-detail-heading h2 { font-family: Georgia, "Times New Roman", serif; font-size: 30px; line-height: 1.2; font-weight: 500; letter-spacing: -.02em; margin: 0 0 7px; overflow-wrap: anywhere; }
.central-crm .crm-detail-heading p { color: var(--crm-muted); font-size: 13px; line-height: 1.5; margin: 0 0 26px; }
.central-crm .crm-facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
.central-crm .crm-facts > div:last-child { grid-column: 1 / -1; }
.central-crm dt { font-size: 11px; color: var(--crm-muted); margin-bottom: 7px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }
.central-crm dd { margin: 0; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.central-crm .crm-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.central-crm .crm-editor fieldset { display: grid; gap: 18px; margin: 0; padding: 0; border: 0; min-width: 0; }
.central-crm .crm-field, .central-crm .crm-field-title { display: block; font-size: 12px; font-weight: 650; line-height: 1.5; color: var(--crm-muted); letter-spacing: .01em; text-transform: none; }
.central-crm .crm-field > :is(input, select, textarea) { margin-top: 7px; }
.central-crm textarea { resize: vertical; min-height: 90px; }
.central-crm .crm-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; }
.central-crm .crm-check input { width: 19px; height: 19px; margin: 0; accent-color: var(--crm-red); }
.central-crm .crm-notice { display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid #e2ce9a; background: #fffcf4; color: #705b2b; border-radius: 14px; padding: 13px 16px; margin-bottom: 20px; }
.central-crm .crm-notice p { margin: 0; font-size: 14px; line-height: 1.5; }
.central-crm .crm-notice[data-tone="success"] { border-color: #c5ddd4; background: #f2faf6; color: #246349; }
.central-crm .crm-notice[data-tone="error"] { border-color: #ecccd0; background: #fff7f8; color: #87303a; }
.central-crm .crm-dismiss, .central-crm .crm-text-button { min-height: 40px; padding: 8px; border: 0; border-radius: 8px; background: transparent; color: inherit; font-size: 13px; font-weight: 600; box-shadow: none; }
.central-crm .crm-association { min-width: 0; }
.central-crm .crm-chosen-contact { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; margin: 8px 0; color: var(--crm-ink); font-size: 14px; }
.central-crm .crm-chosen-contact span { overflow-wrap: anywhere; }
.central-crm .crm-association-results { max-height: 230px; overflow-y: auto; overscroll-behavior: contain; margin-top: 7px; border-radius: 10px; }
.central-crm .crm-association-results p { font-size: 13px; line-height: 1.5; color: var(--crm-muted); }
.central-crm .crm-association-option { display: block; width: 100%; padding: 13px 10px; min-height: 44px; border: 0; border-bottom: 1px solid var(--crm-line); background: var(--crm-soft); color: var(--crm-ink); text-align: left; font-size: 14px; overflow-wrap: anywhere; }
@media (min-width: 1100px) { .central-crm .crm-detail { position: sticky; top: 24px; } }
@media (max-width: 760px) {
  .central-crm { padding: 20px 12px 32px; }
  .central-crm .crm-header { gap: 12px; align-items: flex-start; }
  .central-crm .crm-header > .crm-button { flex-shrink: 0; font-size: 12px; padding: 10px 12px; margin-top: 16px; }
  .central-crm .crm-intro { font-size: 13px; max-width: 270px; }
  .central-crm .crm-layout { display: block; }
  .central-crm .crm-detail { display: none; padding: 22px 20px; min-height: 0; }
  .central-crm[data-detail-active="true"] .crm-master { display: none; }
  .central-crm[data-detail-active="true"] .crm-detail { display: block; }
  .central-crm .crm-record { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 9px; padding: 14px 10px; }
  .central-crm .crm-avatar { width: 36px; height: 36px; font-size: 12px; }
  .central-crm .crm-record-copy strong { font-size: 14px; }
  .central-crm .crm-badge { font-size: 9px; max-width: 73px; }
  .central-crm .crm-toolbar { padding: 16px 16px 0; }
  .central-crm .crm-notice { align-items: flex-start; flex-wrap: wrap; }
  .central-crm .crm-facts { gap: 22px 14px; }
}
@media (max-width: 370px) { .central-crm .crm-header { flex-wrap: wrap; }.central-crm .crm-header > .crm-button { margin-top: 0; }.central-crm .crm-facts { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .central-crm * { scroll-behavior: auto !important; } }

.central-crm .crm-overview { padding: 0 20px 10px; }
.central-crm .crm-page-note { font-size: 12px; color: var(--crm-muted); line-height: 1.6; margin: 8px 0; }
.central-crm .crm-date-filters { display: flex; gap: 7px; flex-wrap: wrap; }
.central-crm .crm-date-chip { min-height: 40px; padding: 8px 11px; font-size: 12px; font-weight: 650; color: var(--crm-muted); background: var(--crm-soft); border: 1px solid var(--crm-line); border-radius: 10px; box-shadow: none; }
.central-crm .crm-date-chip[aria-pressed="true"] { color: var(--crm-red); border-color: var(--crm-red); background: #bc001007; }
.central-crm .crm-agenda-heading { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--crm-muted); padding: 16px 12px 4px; margin: 0; }
.central-crm .crm-badge[data-overdue] { color: #9b2b35; background: #fff0f1; }
.central-crm .crm-contact-followups { border-top: 1px solid var(--crm-line); margin-top: 28px; padding-top: 22px; }
.central-crm .crm-contact-followups h3 { font-size: 17px; margin: 0 0 15px; }
.central-crm .crm-linked-task { display: flex; gap: 14px; align-items: center; justify-content: space-between; border-top: 1px solid var(--crm-line); margin-top: 14px; padding-top: 14px; }
.central-crm .crm-linked-task > div { min-width: 0; }
.central-crm .crm-linked-task strong { display: block; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.central-crm .crm-linked-task small { display: block; font-size: 12px; color: var(--crm-muted); margin-top: 4px; }
.central-crm .crm-inline-followup { margin: 16px 0; padding: 0 !important; }
.central-crm .crm-inline-followup fieldset { display: grid; gap: 14px; min-width: 0; padding: 0; border: 0; }
.central-crm .crm-quick-dates { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.central-crm .crm-pipeline { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(205px, 1fr); gap: 12px; overflow-x: auto; overscroll-behavior-inline: contain; padding: 4px 8px 18px; scroll-snap-type: x proximity; }
.central-crm .crm-pipeline-column { background: var(--crm-soft); border: 1px solid var(--crm-line); border-radius: 14px; padding: 8px; min-height: 170px; scroll-snap-align: start; }
.central-crm .crm-pipeline-column h3 { font-size: 13px; margin: 10px 6px 14px; font-weight: 650; }
.central-crm .crm-pipeline-column .crm-record { grid-template-columns: minmax(0, 1fr); padding: 14px; margin-bottom: 9px; background: var(--crm-surface); border: 1px solid var(--crm-line); }
.central-crm .crm-pipeline-column .crm-avatar, .central-crm .crm-pipeline-column .crm-badge { display: none; }
@media (min-width: 1200px) { .central-crm[data-crm-layout="pipeline"] .crm-layout { grid-template-columns: minmax(0, 1.6fr) minmax(310px, 1fr); } }
@media (max-width: 760px) { .central-crm .crm-overview { padding-inline: 16px; }.central-crm .crm-pipeline { grid-auto-columns: minmax(220px, 80%); }.central-crm .crm-linked-task { align-items: flex-start; }.central-crm .crm-linked-task > button { flex-shrink: 0; } }

/* Transaction review uses the same controls, with one bounded scroll region. */
/* Override the older global dialog !important rules without changing them. */
dialog.central-crm.central-crm-handoff { width: min(880px, calc(100vw - 32px)) !important; max-width: none !important; max-height: min(92dvh, 1020px) !important; height: min(92dvh, 1020px); margin: auto; padding: 0; border: 1px solid var(--crm-line) !important; border-radius: 24px !important; background: var(--crm-surface) !important; color: var(--crm-ink) !important; box-shadow: 0 28px 100px #10182040; overflow: hidden; }
.central-crm.central-crm-handoff[open] { display: flex; flex-direction: column; }
.central-crm-handoff::backdrop { background: #17232b80; backdrop-filter: blur(5px); }
.central-crm-handoff .handoff-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 25px 28px 20px; flex: 0 0 auto; border-bottom: 1px solid var(--crm-line); }
.central-crm-handoff .handoff-header h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 34px; line-height: 1.1; font-weight: 500; letter-spacing: -.02em; }
.central-crm-handoff .handoff-close { display: flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid var(--crm-line); border-radius: 50%; background: var(--crm-surface); color: var(--crm-ink); font-size: 27px; font-weight: 400; box-shadow: none; }
dialog.central-crm.central-crm-handoff > form.handoff-form { display: flex; flex-direction: column; flex: 1; min-height: 0; width: 100%; max-height: none; margin: 0; padding: 0 !important; gap: 0 !important; overflow: hidden; }
.central-crm-handoff .handoff-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px 28px 28px; -webkit-overflow-scrolling: touch; }
.central-crm-handoff .handoff-intro { color: var(--crm-muted); font-size: 14px; line-height: 1.6; margin: 0 0 22px; }
.central-crm-handoff .handoff-source { background: var(--crm-soft); border: 1px solid var(--crm-line); border-radius: 15px; padding: 17px 20px; margin-bottom: 25px; overflow-wrap: anywhere; }
.central-crm-handoff .handoff-source .crm-eyebrow { font-size: 10px; margin-bottom: 8px; }
.central-crm-handoff .handoff-source h3 { font-size: 17px; margin: 0 0 5px; }
.central-crm-handoff .handoff-source p:not(.crm-eyebrow) { font-size: 13px; color: var(--crm-muted); line-height: 1.6; margin: 0; }
.central-crm-handoff .handoff-source small { display: block; font-size: 11px; color: var(--crm-muted); margin-top: 10px; }
.central-crm-handoff .handoff-fields { min-width: 0; border: 0; padding: 0; margin: 0; }
.central-crm-handoff .handoff-fields > h3 { font-size: 16px; margin: 24px 0 15px; }
.central-crm-handoff .handoff-fields > h3:first-child { margin-top: 0; }
.central-crm-handoff .handoff-fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 20px; }
.central-crm-handoff .handoff-help { color: var(--crm-muted); font-size: 13px; line-height: 1.6; margin: -4px 0 16px; }
.central-crm-handoff .handoff-party { min-width: 0; padding: 16px; margin: 0 0 16px; border: 1px solid var(--crm-line); border-radius: 14px; }
.central-crm-handoff .handoff-party legend { padding: 0 6px; font-size: 12px; color: var(--crm-muted); font-weight: 650; letter-spacing: normal; text-transform: none; }
.central-crm-handoff .handoff-party > .crm-text-button { display: block; margin: 12px 0 -6px auto; }
.central-crm-handoff .handoff-footer { display: flex; flex-shrink: 0; justify-content: flex-end; gap: 10px; padding: 17px 28px max(17px, env(safe-area-inset-bottom)); border-top: 1px solid var(--crm-line); background: var(--crm-surface); }
.central-crm-handoff .handoff-status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 20px; border: 1px solid #e2ce9a; border-radius: 12px; background: #fffcf4; color: #705b2b; }
.central-crm-handoff .handoff-status p { flex: 1 1 260px; margin: 0; font-size: 13px; line-height: 1.55; }
@media (max-width: 760px) {
  dialog.central-crm.central-crm-handoff { width: 100vw !important; max-width: 100vw !important; height: 100dvh; max-height: 100dvh !important; border-radius: 0 !important; border: 0 !important; margin: 0; }
  .central-crm-handoff .handoff-header { padding: max(18px, env(safe-area-inset-top)) 18px 18px; }
  .central-crm-handoff .handoff-header h2 { font-size: 29px; }
  .central-crm-handoff .handoff-scroll { padding: 18px 18px 24px; }
  .central-crm-handoff .handoff-fields-grid { grid-template-columns: 1fr; gap: 16px; }
  .central-crm-handoff .handoff-footer { padding: 14px 18px max(14px, env(safe-area-inset-bottom)); }
  .central-crm-handoff .handoff-footer .crm-primary { flex: 1; }
}
