body.admin-view {
  background: #f5f8f5;
}
body.admin-view #header,
body.admin-view #footer {
  display: none;
}
body.admin-view #main {
  min-height: 100vh;
}
body.admin-view .crm-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
  color: var(--color-admin-ink);
  font-family: "DM Sans", sans-serif;
}
.crm-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 27px 16px 18px;
  background: #f9fbf9;
  border-right: 1px solid #e1e9e3;
  display: flex;
  flex-direction: column;
  z-index: 20;
  /* With the Campanhas sub-sections open the menu can be taller than a short screen: it scrolls on its own. */
  overflow-y: auto;
  overscroll-behavior: contain;
}
.crm-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 27px;
  color: #123d36;
  text-decoration: none;
  border-bottom: 1px solid #e2e9e4;
}
.crm-brand-mark {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #a4e8b4;
  color: #064c3e;
  font-size: 24px;
}
.crm-brand strong {
  font-size: 14px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.crm-brand small {
  align-self: end;
  margin-left: auto;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #639079;
}
.crm-workspace {
  margin: 21px 0 16px;
  padding: 12px 13px;
  border: 1px solid #dbe6de;
  border-radius: 9px;
  background: var(--color-white);
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
}
.crm-sidebar nav {
  display: grid;
  gap: 5px;
}
.crm-nav-item {
  display: flex;
  gap: 13px;
  align-items: center;
  width: 100%;
  padding: 12px 13px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #31534b;
  text-align: left;
  font:
    600 0.91rem "DM Sans",
    sans-serif;
  cursor: pointer;
}
.crm-badge {
  margin-left: auto;
  padding: 1px 9px;
  border: 1px solid #d7e7db;
  border-radius: 30px;
  background: var(--color-white);
  color: #064c3d;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.6;
}
.crm-edit {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 14px;
  background: #fff8e8;
  border: 1px solid #f1dfb2;
}
.crm-edit-field p {
  margin: 6px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
}
.crm-edit-before {
  background: #f6ece9;
  text-decoration: line-through;
  color: #6b4b45;
}
.crm-edit-after {
  background: #e7f4ea;
  color: #12332c;
}
.crm-subnav {
  display: grid;
  gap: 2px;
  margin: 2px 0 6px 38px;
}
.crm-subnav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #31534b;
  text-align: left;
  font:
    500 0.86rem "DM Sans",
    sans-serif;
  cursor: pointer;
}
.crm-subnav-item:hover {
  background: #e8f4eb;
}
.crm-subnav-item.active {
  color: #064c3d;
  font-weight: 700;
}
.crm-history summary {
  cursor: pointer;
  font-weight: 600;
  color: #064c3d;
}
.crm-history-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #e4ece6;
}
.crm-history-row small {
  display: block;
  color: #5d6e68;
}
.crm-record-top .status-pill {
  align-self: flex-start;
  white-space: nowrap;
}
.crm-users-tools {
  display: grid;
  gap: 12px;
  margin-bottom: 8px;
}
.crm-users-search {
  max-width: 420px;
}
.crm-user-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 6px;
}
.crm-user-stats > div {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f2f6f2;
}
.crm-user-stats strong {
  display: block;
  font-size: 1.05rem;
  color: #064c3d;
}
.crm-user-stats span {
  font-size: 0.8rem;
  color: #5d6e68;
}
.crm-user-campaigns {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
}
.crm-user-campaigns li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.crm-payout-key {
  padding: 10px 14px;
  border-radius: 10px;
  background: #f2f6f2;
}
@media (max-width: 760px) {
  .crm-user-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.crm-nav-item span {
  width: 20px;
  text-align: center;
  font-size: 20px;
  line-height: 1;
}
.crm-nav-item:hover {
  background: #e8f4eb;
}
.crm-nav-item.active {
  background: #bdecc7;
  color: #064c3d;
}
.crm-side-bottom {
  margin-top: auto;
  border-top: 1px solid #e0e9e2;
  padding: 18px 9px 0;
}
.crm-side-bottom > a {
  display: block;
  text-decoration: none;
  color: #19684e;
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.crm-side-bottom > div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 700;
}
.crm-workarea {
  min-width: 0;
}
.crm-topbar {
  height: 73px;
  padding: 0 38px;
  border-bottom: 1px solid #e1e9e2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-white);
  font-weight: 700;
}
.crm-topbar > div {
  font-size: 0.78rem;
  color: #537067;
  font-weight: 500;
}
.crm-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  background: #68c587;
  border-radius: 50%;
}
.crm-content {
  padding: 37px 38px 75px;
  max-width: 1700px;
  margin: 0 auto;
}
.crm-page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}
.crm-page-head .section-label {
  color: #178564;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
}
.crm-page-head h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
  margin: 7px 0;
}
.crm-page-head p {
  color: #5d736a;
  margin: 7px 0 0;
}
.crm-count {
  border: 1px solid #d7e7db;
  border-radius: 30px;
  padding: 9px 15px;
  background: var(--color-white);
  white-space: nowrap;
}
.crm-period {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.crm-period button {
  padding: 9px 14px;
  border: 1px solid #dbe6df;
  border-radius: 9px;
  background: var(--color-white);
  color: #294d43;
  font:
    600 0.84rem "DM Sans",
    sans-serif;
  cursor: pointer;
}
.crm-period button.active {
  background: #b5ebbf;
  border-color: #b5ebbf;
  color: #064e3d;
}
.crm-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 23px;
}
.crm-metrics > div {
  min-height: 150px;
  padding: 24px;
  border: 1px solid #e0eae2;
  border-radius: 16px;
  background: var(--color-white);
}
.crm-metrics span,
.crm-metrics small {
  display: block;
  color: #5d746b;
  font-size: 0.82rem;
}
.crm-metrics strong {
  display: block;
  font-size: clamp(1.8rem, 2.6vw, 2.8rem);
  letter-spacing: -0.06em;
  margin: 15px 0 6px;
  color: var(--color-admin-ink);
}
.crm-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.crm-panel {
  padding: 25px;
  border: 1px solid #e0e9e2;
  border-radius: 17px;
  background: var(--color-white);
  margin-bottom: 20px;
}
.crm-panel h2 {
  font-size: 1.12rem;
  margin: 0;
}
.crm-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e6ede8;
}
.crm-panel-head span {
  font-size: 0.78rem;
  color: #6b8178;
}
.crm-method-row,
.crm-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid #edf0ed;
  font-size: 0.91rem;
}
.crm-action-row {
  color: #174d3e;
  text-decoration: none;
}
.crm-method-row.total {
  border-bottom: 0;
  font-weight: 700;
}
.crm-method-symbol {
  font-style: normal;
  color: #43ad79;
  padding-right: 10px;
}
.crm-muted,
.crm-footnote {
  font-size: 0.82rem;
  color: #698078;
  line-height: 1.5;
}
.crm-list {
  display: grid;
  gap: 17px;
}
.crm-record {
  padding: 25px;
  border: 1px solid #e0e9e2;
  border-radius: 17px;
  background: var(--color-white);
}
.crm-record-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.crm-record h2 {
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 10px 0;
}
.crm-record p,
.crm-record small {
  color: var(--color-admin-muted);
}
.crm-record details {
  margin: 20px 0;
}
.crm-record summary {
  cursor: pointer;
  color: #087052;
  font-weight: 700;
}
.crm-record .admin-story {
  color: #173e35;
}
.crm-record .admin-review-form {
  border-top: 1px solid #e8eee9;
  padding-top: 20px;
}
.crm-record .crm-campaign-status {
  max-width: 740px;
  margin-top: 24px;
  border-top: 1px solid #e8eee9;
  padding-top: 20px;
}
.crm-empty {
  text-align: center;
  padding: 60px 20px;
  color: #557368;
}
.crm-empty h2 {
  color: #153e33;
  margin: 0 0 10px;
}
.crm-integration {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.crm-integration > p {
  flex-basis: 100%;
  line-height: 1.7;
  color: #537267;
}
.crm-integration .status-pill {
  margin-left: auto;
}
.crm-service-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #b3e8bf;
  color: #0b543d;
  font-size: 1.7rem;
  font-weight: 700;
}
.crm-mobile-menu {
  display: none;
}
.campaign-withdraw-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #dbe6df;
}
.campaign-withdraw-box span,
.campaign-withdraw-box small {
  display: block;
  color: #62766b;
}
.campaign-withdraw-box strong {
  display: block;
  font-size: 1.6rem;
  color: #0d6c51;
}
.payout-campaign-list {
  display: grid;
  gap: 16px;
  margin: 28px 0 45px;
}
.payout-campaign {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 26px;
  border: 1px solid #dce9de;
  border-radius: 16px;
  background: var(--color-white);
}
.payout-campaign h2 {
  margin: 8px 0;
}
.payout-campaign-amount {
  text-align: right;
}
.payout-campaign-amount span {
  display: block;
  color: #5c7369;
  font-size: 0.86rem;
}
.payout-campaign-amount strong {
  display: block;
  font-size: 1.7rem;
  color: #0b7654;
}
.campaign-payout-form,
.payout-campaign-note {
  grid-column: 1/-1;
}
.campaign-payout-form {
  padding-top: 18px;
  border-top: 1px solid #e6eee8;
  max-width: 650px;
}
.campaign-payout-form .btn {
  margin-top: 12px;
}
.payout-campaign-note {
  font-size: 0.87rem;
  color: #6a7b70;
}
.crm-error {
  padding: 24px;
  color: #8b2b27;
  background: #fff0ec;
  border-radius: 12px;
}
@media (max-width: 900px) {
  body.admin-view .crm-shell {
    grid-template-columns: 1fr;
  }
  .crm-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 265px;
    transform: translateX(-100%);
    transition: transform 0.2s;
    box-shadow: 12px 0 28px #082e281a;
  }
  .crm-sidebar.open {
    transform: none;
  }
  .crm-mobile-menu {
    display: block;
    border: 0;
    background: none;
    font-size: 20px;
    color: var(--color-admin-ink);
    cursor: pointer;
  }
  .crm-content {
    padding: 27px 18px 60px;
  }
  .crm-topbar {
    height: 62px;
    padding: 0 18px;
  }
  .crm-topbar > div {
    display: none;
  }
  .crm-panels {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .crm-metrics {
    grid-template-columns: 1fr;
  }
  .crm-metrics > div {
    min-height: auto;
  }
  .crm-page-head,
  .crm-record-top {
    display: block;
  }
  .campaign-withdraw-box,
  .payout-campaign {
    display: block;
  }
  .payout-campaign-amount {
    text-align: left;
    margin-top: 20px;
  }
  .payout-campaign-note {
    margin-top: 20px;
  }
}
.crm-table-wrap {
  overflow: auto;
}
.crm-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  text-align: left;
  font-size: 0.88rem;
}
.crm-table th,
.crm-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #e6eee8;
  white-space: nowrap;
}
.crm-table th {
  color: #64796f;
  font-weight: 600;
}
.crm-panel-head h2,
.crm-panel h2 {
  letter-spacing: normal;
}
body.admin-view,
body.admin-view .crm-workarea {
  background: var(--color-admin-background);
}
body.admin-view .crm-sidebar {
  background: var(--color-admin-sidebar);
  border-right-color: #dfe7de;
}
body.admin-view .crm-topbar {
  background: var(--color-admin-background);
  border-bottom: 0;
}
body.admin-view .crm-content {
  max-width: none;
  min-height: calc(100vh - 98px);
  margin: 8px 20px 22px;
  padding: 26px 24px 55px;
  background: var(--color-white);
  border: 1px solid #e8eee8;
  border-radius: 23px;
  box-shadow: 0 8px 24px #0d453908;
}
body.admin-view .crm-content:has(.crm-period) .crm-page-head {
  display: none;
}
.crm-brand {
  padding-left: 6px;
  padding-right: 6px;
}
.crm-brand .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0b6150;
  text-decoration: none;
}
.crm-brand .brand svg {
  width: 32px;
  height: 38px;
}
.crm-brand .brand-name {
  font-size: 13px;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #173a33;
}
.crm-brand small {
  font-size: 9px;
  white-space: nowrap;
}
.crm-nav-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: -3px;
}
.crm-nav-icon .hand-icon {
  width: 25px;
  height: 25px;
}
.crm-nav-item {
  padding: 10px 13px;
  font-weight: 550;
}
.crm-nav-item.active {
  background: var(--color-admin-accent);
  color: #053e31;
}
.crm-period {
  margin-bottom: 20px;
}
.crm-metrics {
  padding: 15px;
  background: #f2f6f2;
  border-radius: 17px;
  gap: 14px;
}
.crm-metrics > div {
  min-height: 102px;
  padding: 19px;
  border: 0;
  border-radius: 14px;
}
.crm-metrics strong {
  margin: 10px 0 2px;
  font-size: 2rem;
}
.crm-panels .crm-panel:first-child {
  grid-column: 1/-1;
}
.crm-panels .crm-panel:first-child .crm-method-row {
  padding: 14px 0;
}
.crm-method-symbol {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}
.crm-method-symbol .hand-icon {
  width: 22px;
  height: 22px;
  margin-right: 6px;
}
.crm-panel {
  border-color: var(--color-admin-border);
  border-radius: 17px;
  box-shadow: none;
}
.crm-panel-head h2 {
  font-size: 1rem;
}
.crm-side-bottom {
  padding-top: 16px;
}
.crm-workspace {
  margin-top: 20px;
}
@media (max-width: 900px) {
  body.admin-view .crm-content {
    margin: 8px 12px 16px;
    padding: 20px 17px;
  }
  body.admin-view .crm-sidebar {
    box-shadow: 12px 0 30px #083d2c1c;
  }
}
.crm-profile-menu {
  position: relative;
}
.crm-profile-menu summary {
  display: flex;
  align-items: center;
  gap: 9px;
  list-style: none;
  cursor: pointer;
  color: #234d3e;
  font-size: 0.85rem;
  font-weight: 700;
}
.crm-profile-menu summary::-webkit-details-marker {
  display: none;
}
.crm-profile-menu summary > span:last-child {
  margin-left: auto;
}
.crm-profile-menu > div {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 0;
  right: 0;
  padding: 7px;
  background: var(--color-white);
  border: 1px solid #dce8dc;
  border-radius: 12px;
  box-shadow: 0 8px 24px #143d281a;
}
.crm-profile-menu > div a {
  display: block;
  padding: 10px 12px;
  color: #19493b;
  text-decoration: none;
  border-radius: 7px;
  font-size: 0.86rem;
}
.crm-profile-menu > div a:hover {
  background: #ecf7ed;
}
.crm-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 18px;
  align-items: start;
}
.crm-profile-layout .crm-panel {
  padding: 30px;
}
.crm-profile-layout .profile-photo-field {
  margin-bottom: 28px;
}
.crm-profile-fields {
  display: grid;
  gap: 20px;
}
.crm-profile-fields .account-email {
  margin: 0;
  padding: 18px;
  background: #f2f8f2;
  border-radius: 12px;
}
.crm-profile-fields .profile-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.crm-profile-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 25px;
}
.crm-profile-note {
  background: #f1f8f1 !important;
}
.crm-profile-note h2 {
  font-size: 1.35rem;
  margin: 17px 0;
}
.crm-profile-note p {
  line-height: 1.7;
  color: #547166;
}
@media (max-width: 850px) {
  .crm-profile-layout {
    grid-template-columns: 1fr;
  }
}
/* Campanhas: andamento das campanhas publicadas */
.crm-progress {
  margin: 18px 0 14px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #f7faf6;
}
.crm-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.crm-progress-head strong {
  display: block;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
  color: var(--color-admin-ink);
}
.crm-progress-head span:not(.status-pill) {
  font-size: 0.85rem;
  color: #5d6e68;
}
.crm-progress .crm-user-stats > div {
  background: var(--color-white);
}
.crm-trend {
  margin-top: 14px;
}
.crm-trend > span {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 6px;
}
.crm-trend-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 56px;
  padding-bottom: 1px;
  border-bottom: 1px solid #dce8df;
}
.crm-trend-bars span {
  flex: 1;
  min-width: 2px;
  border-radius: 3px 3px 0 0;
  background: var(--color-admin-accent);
}
.crm-progress-alert {
  margin: 12px 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #8a4b12;
}
.crm-activity {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.crm-activity-block {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--color-white);
}
.crm-activity-block summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 700;
  color: var(--color-admin-ink);
}
.crm-activity-block[open] summary {
  margin-bottom: 10px;
}
.crm-activity-item {
  padding: 12px 0;
  border-top: 1px solid #e0eae2;
}
.crm-activity-item > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.crm-activity-item small {
  color: #5d6e68;
  white-space: nowrap;
}
.crm-activity-item p {
  margin: 6px 0 0;
  line-height: 1.6;
  color: #3f5a51;
}
.crm-activity-item.is-hidden > p:first-of-type {
  opacity: 0.55;
}
.crm-update-moderation {
  margin-top: 8px;
}
.crm-update-moderation summary {
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  color: #5d6e68;
}
.crm-update-moderation form {
  margin-top: 8px;
}
@media (max-width: 760px) {
  .crm-progress .crm-user-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 580px) {
  .crm-profile-fields .profile-fields-grid {
    grid-template-columns: 1fr;
  }
  .crm-profile-actions {
    display: grid;
    gap: 15px;
  }
}

/* Cancelling a campaign: kept behind a disclosure, with a red button and an explicit confirmation. */
.crm-cancel {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.crm-cancel > summary {
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: #9b2c2c;
}
.crm-cancel form {
  margin-top: 10px;
}
.crm-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
  font-size: 0.85rem;
}
.btn.btn-danger {
  background: #9b2c2c;
  border-color: #9b2c2c;
  color: #fff;
}
.btn.btn-danger:hover {
  background: #7f2020;
}
.crm-cancelled {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fbeaea;
  color: #5c1d1d;
  font-size: 0.88rem;
}
.crm-cancelled p {
  margin: 0 0 10px;
}
.crm-report-details {
  margin: 10px 0;
  white-space: pre-line;
  line-height: 1.55;
}

/* Team access (ADMIN_EMAILS): what moves money is only for main administrators; the server refuses it too. */
body.admin-team
  :is(
    .crm-payout-review,
    .crm-payout-send,
    .crm-payout-resolve,
    [data-reconcile-payout],
    .crm-identity-verify,
    [data-admin-payment],
    [data-refund-cancel],
    [data-refund-reconcile],
    [data-refund-send],
    #crm-refund-prepare,
    .crm-cancel,
    [data-refund-all-draft]
  ) {
  display: none !important;
}
.crm-role-note {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eef5ef;
  color: #23493f;
  font-size: 0.88rem;
}

/* Integração → Saúde do sistema and Funil do apoio. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.crm-health {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid #e1e9e3;
  border-radius: 18px;
  background: #fff;
}
.crm-health h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: normal;
}
.crm-health h2 small {
  margin-left: 6px;
  font-size: 0.8rem;
  font-weight: 400;
}
.crm-health-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 14px;
}
.crm-health-list {
  display: grid;
}
.crm-health-row {
  display: grid;
  grid-template-columns: 12px minmax(160px, 240px) 1fr;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid #edf2ee;
  font-size: 0.88rem;
}
.crm-health-row > span:not(.crm-health-dot) {
  color: #4d6560;
}
.crm-health-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2f9e62;
}
.crm-health-dot.warn {
  background: #d39b1c;
}
.crm-health-dot.bad {
  background: #b33a3a;
}
.crm-health-errors {
  margin-top: 16px;
}
.crm-health-errors h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}
.crm-health-error {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid #edf2ee;
  font-size: 0.84rem;
}
.crm-health-error > div {
  display: grid;
  gap: 2px;
}
.crm-health-error span {
  color: #6a3030;
  word-break: break-word;
}
.crm-funnel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.crm-funnel-step {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  background: #f4f8f5;
  font-size: 0.8rem;
}
.crm-funnel-step strong {
  font-size: 1.4rem;
  color: #123d36;
}
.crm-funnel-step small,
.crm-funnel-methods {
  color: #698078;
  font-size: 0.8rem;
}
.crm-funnel-methods p {
  margin: 4px 0;
}
@media (max-width: 700px) {
  .crm-health-head {
    flex-direction: column;
  }
  .crm-health-row {
    grid-template-columns: 12px 1fr;
  }
  .crm-health-row > span:not(.crm-health-dot):not(.sr-only) {
    grid-column: 2;
  }
}
.crm-rewards {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f4f8f5;
  font-size: 0.88rem;
}
.crm-rewards ul {
  margin: 8px 0;
  padding-left: 18px;
}
