/* Shared profile surfaces, including inputs and compact mobile states. */
:is(#layer-profile-panel, #bd-entity-dialog, .crm-stage-dialog) {
  --crm-surface: #ffffff;
  --crm-field: #ffffff;
  --crm-bar: #eef0f3;
  --crm-ink: #20242b;
  --crm-muted: #555e6c;
  --crm-line: #d2d6dd;
  --crm-error: #b42318;
  color: var(--crm-ink);
  background: var(--crm-surface);
  letter-spacing: 0;
}
html[data-theme="dark"] :is(#layer-profile-panel, #bd-entity-dialog, .crm-stage-dialog) {
  --crm-surface: #19151f;
  --crm-field: #100d17;
  --crm-bar: #2b2534;
  --crm-ink: #f5f1fa;
  --crm-muted: #c4bdcf;
  --crm-line: #655a74;
  --crm-error: #ffb4ab;
  color-scheme: dark;
}
:is(#layer-profile-panel, #bd-entity-dialog, .crm-stage-dialog) :is(input:not([type=checkbox]), select, textarea) {
  background-color: var(--crm-field);
  color: var(--crm-ink);
  border: 1px solid var(--crm-line);
  border-radius: 8px;
  min-width: 0;
  max-width: 100%;
  font-size: 14px;
  font-family: var(--font-ui, system-ui, sans-serif);
  line-height: 1.5;
  -webkit-text-fill-color: var(--crm-ink);
}
:is(#layer-profile-panel, #bd-entity-dialog) :is(input, select, textarea):disabled {
  background-color: var(--crm-bar);
  color: var(--crm-muted);
  -webkit-text-fill-color: var(--crm-muted);
  opacity: 1;
}
#layer-profile-panel .layer-provider-detail.is-readonly :is(input, select, textarea):not(:disabled) { background-color: var(--crm-field); color: var(--crm-ink); }
.layer-profile-only-shell #layer-profile-panel { inset: 0; width: 100%; max-width: 100%; border-radius: 0; }
:is(#layer-profile-panel, #bd-entity-dialog, .crm-stage-dialog) :is(input, textarea)::placeholder { color: var(--crm-muted); opacity: 1; }
:is(#layer-profile-panel, #bd-entity-dialog) :is(label, .layer-profile-field) {
  background: transparent;
  color: var(--crm-muted);
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
:is(#layer-profile-panel, #bd-entity-dialog) :is(label > span, .layer-profile-field > span) { color: var(--crm-muted); letter-spacing: 0; }
#layer-profile-panel .layer-profile-form-grid > label { padding: 0; }
:is(#layer-profile-panel, #bd-entity-dialog) :is(.layer-detail-panel, .bd-profile-panel) {
  border: 0;
  border-top: 1px solid var(--crm-line);
  border-radius: 0;
  box-shadow: none;
  background: var(--crm-surface);
  padding: 16px 0;
}
:is(#layer-profile-panel, #bd-entity-dialog) :is(h3, h4, strong) { color: var(--crm-ink); }
:is(#layer-profile-panel, #bd-entity-dialog) :is(.layer-form-hint, .bd-panel-heading p) { color: var(--crm-muted); }
/* Secondary records must change their surface with their text, including empty states. */
html[data-theme="dark"] #layer-profile-panel :is(
  .layer-project-card, .layer-business-summary-card, .layer-branch-card,
  .layer-contact-card, .layer-contact-surface-group, .layer-contact-surface-empty
) {
  background: var(--crm-bar);
  color: var(--crm-ink);
  border-color: var(--crm-line);
  box-shadow: none;
}
html[data-theme="dark"] #layer-profile-panel :is(
  .layer-project-card, .layer-business-summary-card, .layer-branch-card, .layer-contact-card
) :is(p, li, ul),
html[data-theme="dark"] #layer-profile-panel :is(
  .layer-project-card, .layer-business-summary-card, .layer-branch-card, .layer-contact-card
) > span,
html[data-theme="dark"] #layer-profile-panel .layer-contact-surface-empty { color: var(--crm-muted); }
html[data-theme="dark"] #layer-profile-panel .layer-contact-surface-head strong { color: var(--crm-ink); }
#layer-profile-panel :is(
  .layer-contact-person-main > span, .layer-contact-intelligence-row small,
  .layer-contact-inline-details dt, .layer-contact-expand-label
) { color: var(--crm-muted); }
#layer-profile-panel .layer-provider-detail .layer-project-motion-revenue.is-zero-value input {
  color: var(--crm-error);
  -webkit-text-fill-color: var(--crm-error);
  border-color: var(--crm-error);
  background: #fff1f2;
}
html[data-theme="dark"] #layer-profile-panel .layer-provider-detail .layer-project-motion-revenue.is-zero-value input { background: #3b2026; }
html[data-theme="dark"] #layer-profile-panel .layer-project-motion-row.tone-lost { opacity: 1; }
html[data-theme="dark"] #layer-profile-panel .layer-crm-timeline-item::before {
  background: var(--crm-muted);
  box-shadow: 0 0 0 4px var(--crm-surface);
}
html[data-theme="dark"] #bd-entity-dialog :is(.bd-timeline-item, .bd-record) small { color: var(--crm-muted); }
html[data-theme="dark"] #bd-entity-dialog :is(.bd-contact-inline-detail a, .bd-record a) { color: #c4b5fd; }
html[data-theme="dark"] #bd-entity-dialog :is(.bd-contact-card-toggle:hover, .bd-search-results button:hover) {
  background: var(--crm-bar);
  color: var(--crm-ink);
}
html[data-theme="dark"] #bd-entity-dialog .danger-btn { color: var(--crm-error); }
:is(#layer-profile-panel, #bd-entity-dialog) textarea { width: 100%; padding: 10px 12px; }
:is(#layer-profile-panel, #bd-entity-dialog) :is(.primary-btn, .ghost-btn):not(:disabled) { opacity: 1; }
:is(#layer-profile-panel, #bd-entity-dialog) .primary-btn { transition: box-shadow .15s ease, transform .15s ease; }
:is(#layer-profile-panel, #bd-entity-dialog) .primary-btn:not(:disabled) { background: #202124; color: #ffffff; border-color: #202124; }
html[data-theme="dark"] :is(#layer-profile-panel, #bd-entity-dialog) .primary-btn:not(:disabled) { background: #eee6fa; color: #21192b; border-color: #eee6fa; }
:is(#layer-profile-panel, #bd-entity-dialog) :is(input, select, textarea, button, summary):focus-visible { outline: 3px solid #8170c5; outline-offset: 3px; }
:is(#layer-profile-panel, #bd-entity-dialog, .crm-stage-dialog) [aria-invalid="true"] { border: 2px solid var(--crm-error); }
.crm-field-error, #bd-entity-dialog .bd-field-error { display: block; color: var(--crm-error); font-size: 13px; line-height: 1.5; margin-top: 5px; }
.crm-optional { grid-column: 1 / -1; margin-block: 10px; border-bottom: 1px solid var(--crm-line); padding-bottom: 10px; }
.crm-optional > summary { padding: 10px 0; cursor: pointer; color: var(--crm-ink); font-size: 14px; font-weight: 600; }
.crm-optional > div { padding-block: 8px; }
.crm-more-actions { position: relative; }
.crm-more-actions > summary { list-style: none; cursor: pointer; display: grid; place-items: center; height: 44px; width: 44px; font-size: 24px; border: 1px solid var(--crm-line); border-radius: 50%; color: var(--crm-ink); }
.crm-more-actions > summary::-webkit-details-marker { display: none; }
.crm-more-actions > div { position: absolute; z-index: 30; right: 0; top: 48px; width: min(200px, calc(100vw - 32px)); padding: 8px; display: grid; gap: 6px; background: var(--crm-surface); border: 1px solid var(--crm-line); border-radius: 8px; box-shadow: 0 8px 24px #0002; }
.crm-more-actions button { width: 100%; white-space: normal; }
#layer-profile-panel .layer-provider-head:has(.crm-more-actions[open]),
#bd-entity-dialog .bd-profile-head:has(.crm-more-actions[open]) { z-index: 30; }
#layer-profile-panel.is-loading-profile .layer-provider-head { z-index: 21; background: transparent; border-color: transparent; box-shadow: none; pointer-events: none; }
#layer-profile-panel.is-loading-profile .layer-provider-head > :not(.layer-profile-head-actions) { visibility: hidden; }
#layer-profile-panel.is-loading-profile #layer-provider-modal-close { pointer-events: auto; }
#layer-profile-panel.is-loading-profile .layer-profile-head-actions > :not(#layer-provider-modal-close) { visibility: hidden; }
#layer-profile-panel:not(.is-creating) .crm-create-only { display: none; }
#layer-profile-panel.is-creating :is(.crm-existing-only, .crm-more-actions, #layer-provider-bookmarks, #layer-profile-ops-bar, #provider-crm-assignees, #provider-add-crm-assignee, #provider-crm-stage-chip, #layer-profile-overview-read, [data-provider-tab-panel]:not([data-provider-tab-panel=overview])) { display: none; }
#layer-profile-panel .layer-crm-assignment-editor { grid-column: 1 / -1; }
#layer-profile-panel .layer-crm-assignment-editor { display: flex; align-items: flex-end; gap: 12px; }
#layer-profile-panel .layer-crm-assignment-editor > label { flex: 1; min-width: 0; }
#layer-profile-panel .layer-crm-assignment-editor > button { flex: 0 0 auto; width: auto; margin: 0; }
.crm-handoff-dialog { width: min(640px, calc(100vw - 32px)); padding: 24px; }
.crm-handoff-dialog header, .crm-handoff-dialog footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.crm-handoff-dialog footer { justify-content: flex-end; margin-top: 16px; }
.crm-handoff-field-error { color: var(--crm-error); font-weight: 500; }
.crm-handoff-inbox-item { padding: 16px 0; border-top: 1px solid var(--border, #655a74); min-width: 0; }
.crm-handoff-inbox-note { white-space: pre-wrap; overflow-wrap: anywhere; margin: 12px 0; }
.crm-handoff-inbox-item > button { max-width: 100%; }
.crm-handoff-dialog [aria-invalid="true"] { outline: 2px solid var(--crm-error); outline-offset: 2px; }
#provider-handoff-result:not(:empty) { padding: 12px; border-radius: 8px; background: var(--crm-bar); }
#provider-handoff-result[data-state="error"] { color: var(--crm-error); }
#provider-handoff-result[data-state="success"] { border: 1px solid var(--crm-line); font-weight: 600; }
#provider-save-handoff.is-saving { display: inline-flex; align-items: center; gap: 10px; opacity: 1; }
#provider-save-handoff.is-saving::before { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: handoff-spin .8s linear infinite; }
@keyframes handoff-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #provider-save-handoff.is-saving::before { animation: none; } }
.crm-handoff-dialog label { display: grid; gap: 8px; min-width: 0; padding: 0; }
.crm-handoff-dialog label > span { font-size: 14px; color: var(--crm-muted); }
.crm-handoff-dialog :is(input:not([type=checkbox]), select, textarea) { width: 100%; box-sizing: border-box; padding: 12px; min-height: 44px; }
.crm-handoff-dialog fieldset { border: 1px solid var(--crm-line); border-radius: 12px; margin: 20px 0; padding: 16px; min-width: 0; }
.crm-handoff-dialog #provider-handoff-tasks label { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; }
.crm-handoff-dialog #provider-handoff-tasks input { flex: 0 0 auto; }
.crm-handoff-dialog .crm-handoff-next { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 600px) {
  .crm-handoff-dialog { padding: 18px; }
  .crm-handoff-dialog .crm-handoff-next { grid-template-columns: minmax(0, 1fr); }
  .crm-handoff-dialog footer button { width: 100%; }
}
#layer-profile-panel.is-creating .layer-crm-assignment-editor { display: block; }
#layer-profile-panel.is-creating .layer-foundation-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 0; background: transparent; border: 0; }
#layer-profile-panel .layer-provider-detail.is-readonly #provider-crm-assignees,
#layer-profile-panel #provider-crm-stage-chip { display: none; }
#layer-profile-panel .layer-profile-read-grid { display: flex; flex-wrap: wrap; gap: 16px 32px; }
#layer-profile-panel .layer-profile-read-grid article { padding: 0; border: 0; background: none; box-shadow: none; }
#layer-profile-panel .layer-profile-read-grid strong { font-size: 14px; font-weight: 500; white-space: pre-wrap; }
#layer-profile-panel #layer-profile-ops-bar { background: var(--crm-bar); border-color: var(--crm-line); border-radius: 8px; isolation: isolate; }
#layer-profile-panel .layer-profile-next-step { background: transparent; border-color: var(--crm-line); }
#layer-profile-panel .layer-profile-next-step.tone-overdue { color: var(--crm-error); }
#layer-profile-panel .layer-profile-next-step.tone-overdue strong { color: inherit; }
#layer-profile-panel .layer-profile-ops-main > div > span { color: var(--crm-muted); }
#layer-profile-panel #provider-quick-crm-stage { color: var(--crm-ink); background-color: var(--crm-field); max-width: 160px; }
.crm-footer-details { display: none; }
.crm-profile-tasks-link { border: 0; background: transparent; color: var(--crm-ink); font: inherit; font-weight: 700; text-align: left; padding: 0; cursor: pointer; text-decoration: underline; }
.layer-profile-tasks { margin-bottom: 24px; }
.crm-profile-task-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--crm-line); }
.crm-profile-task-row > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.crm-profile-task-row small { display: block; margin-top: 4px; color: var(--crm-muted); }
.crm-profile-task-row .crm-task-review { color: var(--crm-error); }
.layer-profile-tasks h4 small { color: var(--crm-muted); font-size: 14px; }
@media (max-width: 760px) {
  .crm-profile-task-row { align-items: flex-start; flex-direction: column; }
}
#bd-entity-dialog:not(.is-editing) .bd-core-fields { display: none; }
#bd-entity-dialog.is-editing #bd-profile-summary-read { display: none; }
#bd-entity-dialog.is-creating :is(.crm-existing-only, .bd-profile-tabs, [data-bd-profile-panel]:not([data-bd-profile-panel=overview])) { display: none; }
#bd-entity-dialog .bd-profile-names label, #bd-entity-dialog .bd-notes-field { display: grid; gap: 6px; margin-block: 12px; }
#bd-entity-dialog .bd-profile-names input { padding: 10px 12px; }
#bd-entity-dialog .bd-profile-subsection { padding: 0; margin-block: 12px; border: 0; }
#bd-entity-dialog .bd-profile-head { min-height: 0; position: relative; top: auto; margin: 0; padding: 0 0 14px; gap: 12px; background: var(--crm-surface); }
#bd-entity-dialog .bd-profile-head h2 { font: 600 22px/1.3 var(--font-ui, sans-serif); letter-spacing: 0; overflow-wrap: anywhere; }
#bd-entity-dialog .bd-profile-tabs { top: -1px; padding: 6px 0; background: var(--crm-surface); display: flex; overflow: auto; }
#bd-entity-dialog .bd-profile-tabs button { flex: 0 0 auto; padding-inline: 14px; }
#bd-entity-dialog .bd-profile-panel { scroll-margin-top: 64px; }
#bd-entity-dialog .bd-profile-actions { flex-shrink: 0; align-items: center; }
#bd-entity-dialog .bd-contact-create { align-items: end; }
#bd-entity-dialog .bd-contact-create label { display: grid; gap: 6px; }
#bd-entity-dialog .crm-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
#bd-entity-dialog .crm-summary span { display: block; color: var(--crm-muted); font-size: 12px; margin-bottom: 4px; }
#bd-entity-dialog .crm-summary strong { font-size: 14px; font-weight: 500; white-space: pre-wrap; overflow-wrap: anywhere; }
.crm-notes-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin: 10px 0; }
#bd-entity-dialog .bd-entity-activity-form { display: grid; grid-template-columns: minmax(130px, .4fr) minmax(0, 1fr); align-items: start; gap: 12px; }
#bd-entity-dialog .bd-entity-activity-form > .crm-optional { grid-column: 1 / -1; }
#bd-entity-dialog #bd-entity-add-activity { grid-column: 2; justify-self: end; }
.crm-stage-dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border: 1px solid var(--crm-line); border-radius: 8px; padding: 24px; }
.crm-stage-dialog::backdrop { background: #0008; }
.crm-stage-dialog h2 { font-size: 20px; margin: 0; }
.crm-stage-dialog textarea { width: 100%; padding: 10px; }
.crm-stage-dialog label { font-weight: 600; }
.crm-stage-dialog p { font-size: 14px; }
.crm-foundation-dialog form { display: grid; gap: 16px; }
.crm-foundation-dialog label { display: flex; align-items: center; gap: 8px; }
.crm-foundation-dialog input[type=radio] { width: 18px; height: 18px; margin: 0; padding: 0; flex: 0 0 18px; }
.crm-foundation-dialog [data-foundation-picker] { display: grid; }
.crm-foundation-dialog [hidden] { display: none; }
.crm-foundation-dialog select { width: 100%; min-width: 0; padding: 10px; }
.crm-dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
/* Compact headers place actions on the left; anchor menus to the header edge. */
@container crm-profile (max-width: 560px) {
  #layer-profile-panel .crm-more-actions { position: static; }
  #layer-profile-panel .crm-more-actions > div { left: 0; right: auto; top: 100%; }
}
@media (max-width: 760px) {
  body.crm-profile-open .workspace-rail { visibility: hidden; pointer-events: none; }
  body.crm-profile-open #layer-profile-panel { inset: 0; width: 100%; max-width: 100%; max-height: 100dvh; border-radius: 0; padding: 12px; }
  body.crm-profile-open #bd-entity-dialog { inset: 0; width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
  #bd-entity-dialog .bd-profile-shell { padding: 12px; max-height: 100dvh; min-height: 100dvh; }
  #bd-entity-dialog .bd-profile-head { flex-direction: column; align-items: stretch; }
  #bd-entity-dialog .bd-profile-head > div:first-child { padding-right: 44px; }
  #bd-entity-dialog .bd-profile-actions { justify-content: flex-start; gap: 6px; }
  :is(#layer-profile-panel, #bd-entity-dialog) .crm-more-actions { position: static; }
  :is(#layer-profile-panel, #bd-entity-dialog) .crm-more-actions > div { left: 0; right: auto; top: 100%; }
  #bd-entity-dialog #bd-close-entity { position: absolute; top: 0; right: 0; width: 44px; height: 44px; padding: 0; }
  #bd-entity-dialog :is(.bd-type-row, .bd-profile-form-grid, .crm-summary, .bd-entity-activity-form) { grid-template-columns: minmax(0, 1fr); }
  #bd-entity-dialog .bd-profile-form-grid :is(.bd-span-2, .bd-span-4) { grid-column: 1; }
  #bd-entity-dialog #bd-entity-add-activity { grid-column: 1; }
  #layer-profile-panel.is-creating .layer-foundation-card { grid-template-columns: minmax(0, 1fr); }
  #layer-profile-panel #layer-profile-ops-bar { padding-bottom: max(6px, env(safe-area-inset-bottom)); margin-inline: -4px; bottom: -12px; }
  #layer-profile-panel .layer-profile-ops-main { grid-template-columns: minmax(146px, auto) minmax(0, 1fr) auto; }
  #layer-profile-panel #provider-quick-crm-stage { width: 100%; max-width: none; font-size: 13px; }
  #layer-profile-panel .layer-profile-ops-main > div:nth-of-type(3) { display: none; }
  #layer-profile-panel #layer-profile-ops-bar:not(.is-expanded) .layer-profile-next-step { display: none; }
  #layer-profile-panel .layer-profile-ops-main > div:nth-child(2) strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #layer-profile-panel .layer-profile-ops-actions { display: flex; gap: 6px; }
  #layer-profile-panel .layer-profile-ops-actions button { flex: 1; min-height: 44px; padding-inline: 8px; }
  #layer-profile-panel .crm-footer-details { display: block; grid-column: 3; grid-row: 1; border: 0; background: none; color: var(--crm-ink); padding: 6px; min-height: 44px; text-decoration: underline; }
}
@media (prefers-reduced-motion: reduce) {
  :is(#layer-profile-panel, #bd-entity-dialog) * { scroll-behavior: auto; animation: none; }
}
/* Compact actions and save feedback shared by both CRMs. */
.crm-contact-shortcuts { display:flex; flex-wrap:wrap; gap:8px 16px; align-items:center; margin-block:8px; }
.crm-contact-shortcuts a { min-height:44px; display:inline-flex; align-items:center; text-decoration:underline; text-underline-offset:3px; }
.crm-contact-shortcuts [hidden] { display:none !important; }
.crm-save-confidence { margin:8px 0; font-size:14px; color:inherit; }
.crm-save-confidence[data-state="unconfirmed"], .crm-save-confidence[data-state="expired"] { font-weight:700; }
.crm-session-expired { position:fixed; z-index:10000; inset:auto 12px 16px; padding:16px; background:var(--surface, #fff); color:var(--text, #191919); border:1px solid #999; border-radius:8px; display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
html[data-theme="dark"] .crm-session-expired { background:#19151f; color:#f5f1fa; border-color:#655a74; }
html[data-theme="dark"] .crm-session-expired a { color:#c4b5fd; }
.crm-reseller-label { display:inline-block; max-width:25ch; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; vertical-align:bottom; }
.layer-kanban-source .crm-reseller-label { text-transform:none; letter-spacing:0; }
.crm-reseller-source { font-size:12px; margin-block:4px; }
.crm-reseller-source summary { cursor:pointer; }
.crm-reseller-source a { display:block; padding:8px 0; overflow-wrap:anywhere; }
.crm-cockpit-suggestions-toggle { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 8px 0 12px; cursor: pointer; }
.crm-cockpit-suggestions-toggle input { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; }
.crm-text-tools { display:flex; gap:4px; margin:6px 0; }
.crm-text-tools button { width:44px; height:44px; min-width:44px; padding:0; border:1px solid var(--crm-line, #ccc); border-radius:6px; color:var(--crm-ink, #222); background:var(--crm-field, #fff); font-size:16px; cursor:pointer; }
.crm-text-tools button:focus-visible { outline:2px solid #a78bfa; outline-offset:2px; }
.crm-text-tools button:disabled { opacity:.45; cursor:default; }
.crm-text-bold { font-weight:700; }
.crm-text-italic { font-style:italic; }
.crm-text-underline { text-decoration:underline; }
.crm-text-preview { margin:4px 0 12px; max-width:100%; }
.crm-text-preview summary { cursor:pointer; min-height:32px; }
.crm-text-preview .crm-formatted-text { padding:12px; border:1px solid var(--crm-line, #ccc); border-radius:6px; }
.crm-formatted-text { overflow-wrap:anywhere; white-space:normal; font-weight:400; line-height:1.5; }
.crm-formatted-text ins { text-decoration:underline; }
.crm-text-editor { flex:1; min-width:0; }
.crm-text-editor textarea { width:100%; box-sizing:border-box; }
.crm-copy-field { position:relative; display:grid; grid-template-columns:minmax(0,1fr) 44px; align-items:center; width:100%; min-height:44px; }
.crm-copy-value { overflow-wrap:anywhere; white-space:pre-wrap; min-width:0; user-select:text; }
.crm-copy-button { display:grid; place-items:center; width:44px; height:44px; padding:0; border:0; border-radius:6px; color:inherit; background:transparent; cursor:pointer; }
.crm-copy-button:hover, .crm-copy-button:focus-visible { background:var(--crm-field,#eee); outline:2px solid var(--crm-line,#aaa); outline-offset:-2px; }
.crm-copy-feedback { position:absolute; inset:0 44px 0 0; display:flex; align-items:center; padding:4px 8px; box-sizing:border-box; background:var(--crm-field,#fff); color:var(--crm-ink,#222); border-radius:4px; opacity:0; pointer-events:none; font-size:13px; line-height:1.3; }
.has-copy-feedback .crm-copy-feedback { opacity:1; }
.layer-contact-person-card .crm-copy-field { display:grid; color:inherit; font-size:13px; font-weight:400; text-transform:none; margin:0; }
.crm-copy-field .crm-copy-value { color:inherit; font-size:inherit; font-weight:400; text-transform:none; margin:0; }
.crm-copy-field .crm-copy-feedback { display:flex; color:var(--crm-ink,#222); font-size:13px; font-weight:400; text-transform:none; margin:0; }
