/* v50: cache-busted owner diagnostics and source recognition feedback */
.auth-dialog .account-health {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.auth-dialog .account-health-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-dialog .account-health-head strong,
.auth-dialog .account-health-head span {
  display: block;
  min-width: 0;
}

.auth-dialog .account-health-head strong {
  color: #eceef2;
  font-size: 13px;
}

.auth-dialog .account-health-head span {
  flex: 0 0 auto;
  color: #9297a2;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.auth-dialog .account-health > p {
  margin: 0;
  color: #989da8;
  font-size: 11px;
}

.auth-dialog .account-health-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
}

.auth-dialog .account-health-grid > span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #aeb2bc;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.auth-dialog .account-health-grid i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #49cc8c;
  box-shadow: 0 0 8px rgba(73, 204, 140, 0.5);
}

.auth-dialog .account-health-grid .bad {
  color: #ef9a9e;
}

.auth-dialog .account-health-grid .bad i {
  background: #ef4b51;
  box-shadow: none;
}

.auth-dialog .account-health-error {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #ef9a9e;
  font-size: 10px;
}

.auth-dialog .account-health-error > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.auth-dialog .account-health-error button {
  flex: 0 0 auto;
  border: 1px solid rgba(239, 75, 81, 0.35);
  border-radius: 8px;
  padding: 6px 9px;
  color: #f2a5a8;
  background: rgba(239, 75, 81, 0.08);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.source-detection {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 1px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.45;
}

.source-detection::before {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  content: "";
}

.source-detection.detected {
  color: #70ce9e;
}

.source-detection.detected::before {
  background: #55b985;
  box-shadow: 0 0 7px rgba(85, 185, 133, 0.55);
}

.source-detection.manual {
  color: #d4ad70;
}

.source-detection.manual::before {
  background: #d19a47;
}

html[data-theme="light"] .auth-dialog .account-health {
  background: #f7f8fa;
}

html[data-theme="light"] .auth-dialog .account-health-head strong {
  color: #292d36;
}

html[data-theme="light"] .auth-dialog .account-health-grid > span {
  color: #646a75;
}

html[data-theme="light"] .source-detection.detected {
  color: #267653;
}

html[data-theme="light"] .source-detection.manual {
  color: #8a5d16;
}

@media (max-width: 520px) {
  .auth-dialog .account-health {
    padding: 12px;
  }

  .auth-dialog .account-health-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .auth-dialog .account-health-grid > span {
    font-size: 11px;
  }
}
