.rdcrm-page { display: grid; gap: 1.15rem; }
.rdcrm-heading-actions { display: flex; align-items: center; gap: .6rem; }
.rdcrm-connection-grid { display: grid; grid-template-columns: minmax(300px, 1.6fr) repeat(2, minmax(160px, .8fr)); gap: 1rem; }
.rdcrm-connection-card, .rdcrm-stat-card { min-width: 0; }
.rdcrm-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; }
.rdcrm-eyebrow { display: block; color: var(--muted, #706979); font-size: .78rem; font-weight: 700; letter-spacing: .08em; }
.rdcrm-connection-card h2, .rdcrm-settings h2, .rdcrm-inbox h2, .rdcrm-qualified h2 { margin: .25rem 0 .5rem; }
.rdcrm-connection-card > p { color: var(--muted, #706979); line-height: 1.5; }
.rdcrm-badge { display: inline-flex; align-items: center; min-height: 2rem; padding: .25rem .7rem; border-radius: 999px; background: #f2edf5; color: #61556d; font-size: .85rem; font-weight: 700; white-space: nowrap; }
.rdcrm-badge.is-connected { background: #e8f5ed; color: #17643d; }
.rdcrm-badge.is-pending { background: #fff3dd; color: #805400; }
.rdcrm-stat-card { display: flex; flex-direction: column; justify-content: center; min-height: 150px; }
.rdcrm-stat-card strong { margin: .45rem 0 .15rem; color: var(--ink, #241d2a); font-size: 2rem; line-height: 1.15; }
.rdcrm-stat-card p { margin: 0; color: var(--muted, #706979); }
.rdcrm-credential-help { margin-top: 1rem; padding: .85rem 1rem; border: 1px solid #e5dced; border-radius: .7rem; background: #fbf9fc; }
.rdcrm-credential-help p { margin: .15rem 0 .55rem; line-height: 1.5; }
.rdcrm-credential-help code { overflow-wrap: anywhere; font-size: .9rem; }
.rdcrm-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(200px, 1fr)); gap: 1rem; margin-top: .7rem; }
.rdcrm-settings-grid label { display: flex; flex-direction: column; gap: .4rem; font-weight: 600; }
.rdcrm-settings-grid select { min-height: 2.8rem; padding: .5rem .75rem; border: 1px solid #d9d3df; border-radius: .5rem; background: #fff; color: #241d2a; font: inherit; }
.rdcrm-form-note { max-width: 980px; color: var(--muted, #706979); line-height: 1.5; }
.rdcrm-auto-send { display: flex; align-items: flex-start; gap: .65rem; margin: .85rem 0; line-height: 1.5; }
.rdcrm-auto-send input { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; margin-top: .2rem; accent-color: #4d2b69; }
.rdcrm-notice { padding: .9rem 1rem; border: 1px solid #d8c8e5; border-radius: .7rem; background: #f8f3fb; color: #453550; line-height: 1.5; }
.rdcrm-notice.is-error { border-color: #e6c5c2; background: #fff5f4; color: #7a2f29; }
.rdcrm-notice.is-success { border-color: #c9e5d2; background: #eff9f2; color: #17643d; }
.rdcrm-table-message { min-height: 1.5rem; color: var(--muted, #706979); }
.rdcrm-page .data-table th, .rdcrm-page .data-table td { vertical-align: middle; }
.rdcrm-page .data-table td strong { display: block; color: var(--ink, #241d2a); }
.rdcrm-page .data-table td small { display: block; margin-top: .2rem; color: var(--muted, #706979); font-size: .85rem; line-height: 1.4; overflow-wrap: anywhere; }
.rdcrm-project-select { min-width: 190px; max-width: 290px; min-height: 2.55rem; padding: .35rem .55rem; border: 1px solid #d9d3df; border-radius: .45rem; background: #fff; color: #241d2a; font: inherit; }
.rdcrm-select-cell input { width: 1.1rem; height: 1.1rem; accent-color: #4d2b69; }
.rdcrm-settings .page-actions { align-items: center; }
@media (max-width: 900px) {
  .rdcrm-connection-grid { grid-template-columns: 1fr 1fr; }
  .rdcrm-connection-card { grid-column: 1 / -1; }
  .rdcrm-settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .rdcrm-connection-grid { grid-template-columns: 1fr; }
  .rdcrm-connection-card { grid-column: auto; }
  .rdcrm-page .panel-heading { align-items: flex-start; flex-direction: column; }
  .rdcrm-heading-actions, .rdcrm-heading-actions .button, .rdcrm-qualified .panel-heading .page-actions, .rdcrm-qualified .panel-heading .button { width: 100%; }
  .rdcrm-project-select { min-width: 150px; }
}
