:root {
  color: #201a2b;
  background: #f5f2f8;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}

button,
input {
  font: inherit;
}

.tester-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 20px 112px;
}

.tester-card {
  width: min(100%, 560px);
  padding: 36px;
  border: 1px solid #ddd5e5;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 20px 60px rgb(57 40 73 / 12%);
}

.environment-label {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #5f3a83;
  background: #f0e7f7;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 18px 0 10px;
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.1;
}

.tester-intro,
.privacy-note,
.tester-status,
.tester-connected p {
  color: #61586b;
  line-height: 1.55;
}

.tester-form {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.tester-form[hidden],
.tester-connected[hidden] {
  display: none;
}

.tester-form label {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 650;
}

.tester-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #cfc5d8;
  border-radius: 10px;
  color: #201a2b;
  background: #ffffff;
}

.tester-form input:focus-visible,
button:focus-visible {
  outline: 3px solid #b89ace;
  outline-offset: 2px;
}

button {
  min-height: 48px;
  margin-top: 12px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  background: #5f3a83;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: #4d2f6a;
}

.secondary-button {
  border: 1px solid #cfc5d8;
  color: #4d2f6a;
  background: #ffffff;
}

.secondary-button:hover {
  background: #f5f2f8;
}

.tester-connected {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid #c9dfcf;
  border-radius: 12px;
  background: #f0f8f2;
}

.tester-connected p {
  margin: 0;
  color: #285b36;
}

.tester-status {
  min-height: 24px;
  margin: 18px 0 0;
  font-size: 14px;
}

.tester-status[data-state='error'] {
  color: #a12d2d;
}

.privacy-note {
  margin: 8px 0 0;
  font-size: 12px;
}

@media (max-width: 520px) {
  .tester-card {
    padding: 26px 20px;
    border-radius: 18px;
  }
}
