.diagnostic-invite {
  padding: 18px clamp(18px, 5vw, 76px);
  background: linear-gradient(90deg, #f3f7fa, #fff 58%, #f7f3ee);
  border-bottom: 1px solid #dce4e9;
}

.diagnostic-prompt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: min(100%, 720px);
  margin: 0 0 28px;
  padding: 13px 14px;
  border: 1px solid rgba(20, 41, 60, .14);
  border-radius: 15px;
  background: #fff;
  color: #14293c;
  box-shadow: 0 14px 36px rgba(20, 41, 60, .11);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.diagnostic-invite .diagnostic-prompt {
  margin: 0 auto;
}

.diagnostic-international {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: min(100%, 720px);
  margin: 10px auto 0;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid #b9ccd9;
  border-radius: 9px;
  background: rgba(255,255,255,.72);
  color: #1d4e73;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.diagnostic-international:hover { color: #fff; background: #1d4e73; border-color: #1d4e73; }
.diagnostic-international[hidden] { display: none; }
.diagnostic-international-dark { margin: -12px 0 24px; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.07); color: #fff; }
.diagnostic-international-dark:hover { color: #151515; background: #fff; border-color: #fff; }

.diagnostic-prompt:hover {
  transform: translateY(-2px);
  border-color: rgba(35, 92, 243, .42);
  box-shadow: 0 18px 42px rgba(20, 41, 60, .16);
}

.diagnostic-prompt:focus-visible {
  outline: 3px solid #235cf3;
  outline-offset: 4px;
}

.diagnostic-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f8320d;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .05em;
  text-align: center;
}

.diagnostic-message {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.diagnostic-message strong {
  font-size: 15px;
  line-height: 1.3;
}

.diagnostic-message small {
  color: #526372;
  font-size: 13px;
  line-height: 1.35;
}

.diagnostic-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 9px;
  background: #14293c;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.diagnostic-prompt-dark {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 24px;
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .09);
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.diagnostic-prompt-dark .diagnostic-badge {
  grid-column: 1 / -1;
  justify-self: start;
}

.diagnostic-prompt-dark:hover {
  border-color: rgba(248, 50, 13, .75);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .2);
}

.diagnostic-prompt-dark .diagnostic-message small {
  color: #d8d1ca;
}

.diagnostic-prompt-dark .diagnostic-action {
  background: #fff;
  color: #151515;
}

@media (max-width: 760px) {
  .diagnostic-invite {
    padding: 14px 18px;
  }

  .diagnostic-prompt {
    grid-template-columns: 1fr auto;
    gap: 10px 12px;
    margin-bottom: 22px;
    padding: 12px;
  }

  .diagnostic-badge {
    grid-column: 1 / -1;
    justify-self: start;
    min-height: 28px;
    font-size: 10px;
  }

  .diagnostic-message strong {
    font-size: 14px;
  }

  .diagnostic-message small {
    font-size: 12px;
  }

  .diagnostic-action {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .diagnostic-prompt {
    grid-template-columns: 1fr;
  }

  .diagnostic-action {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .diagnostic-prompt {
    transition: none;
  }
}
