/* Shared links show their destination without filling the card with tracking/encoded paths. */
.record-source-list { display: grid; gap: 8px; min-width: 0; }
.record-source-list .deal-link-item { min-width: 0; gap: 0; }
.record-source-list .record-source-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: 100%; padding: 5px 0; color: var(--appearance-ink, #2f6392); font-weight: 600; line-height: 1.4; text-decoration: none; }
.record-source-link > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.record-source-arrow { flex: none; font-size: 15px; }
.record-source-list .record-source-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.record-source-link:focus-visible { outline: 2px solid var(--appearance-ink, #3976b9); outline-offset: 3px; border-radius: 4px; }
.record-source-invalid { padding: 8px 0; color: var(--appearance-muted, var(--muted)); font-size: 13px; }

/* Known entity actions keep the same permission-controlled buttons and event attributes. */
.detail-main-panel:has(#detail-main-fields.entity-card-fields) > .panel-title { flex-wrap: wrap; gap: 10px; }
#entity-main-tools { max-width: 100%; flex-wrap: wrap; }
#entity-main-tools:not([hidden]) button { min-height: 44px; padding: 9px 12px; font-size: 12px; }
.standalone-contact-card .deal-contact-heading { margin-bottom: 14px; }
.page-heading.record-heading #detail-create-deal { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 16px; background: #1c3a57; border: 1px solid #1c3a57; border-radius: 8px; color: #fff; font-family: Montserrat,sans-serif; font-size: 13px; font-weight: 700; line-height: 1.35; }
.page-heading.record-heading #detail-create-deal:hover:not(:disabled) { background: #244b70; }
.page-heading.record-heading #detail-create-deal:focus-visible { outline: 2px solid var(--appearance-ink, #3976b9); outline-offset: 3px; }
.page-heading.record-heading #detail-create-deal[hidden] { display: none !important; }
body[data-crm-appearance=night] .page-heading.record-heading #detail-create-deal { background: #dcc4a8; border-color: #dcc4a8; color: #1c3a57; }
body[data-crm-appearance=night] .page-heading.record-heading #detail-create-deal:hover:not(:disabled) { background: #edd8bd; }
body[data-crm-appearance=night] #entity-main-tools button { background: #244561; color: #f5f0e8; border-color: #7995aa; }
body[data-crm-appearance=night] .content #entity-main-tools button.danger-text { color: #ffb9b0 !important; }
body[data-crm-appearance=night] #entity-main-tools button:hover:not(:disabled) { background: #305570; }
@media (hover: none), (max-width: 600px) {
  :is(.deal-contact-grid,.deal-company-grid) .deal-channel-list a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 8px; }
  #entity-main-tools { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .record-source-link, #entity-main-tools button, #detail-create-deal { transition: none !important; animation: none !important; }
}
