:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #132033;
  --muted: #5b6b81;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --ok-bg: #e8f7ef;
  --ok-text: #166534;
  --warn-bg: #fef3c7;
  --warn-text: #92400e;
  --error-bg: #fee2e2;
  --error-text: #991b1b;
  --border: #d8e0ec;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(circle at top, #eef4ff 0%, var(--bg) 55%);
  color: var(--text);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.card {
  width: min(680px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 20px 45px rgba(20, 37, 63, 0.08);
}

h1 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
}

.subtitle {
  margin-top: 0.55rem;
  margin-bottom: 1.35rem;
  color: var(--muted);
}

label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.45rem;
}

.input-row {
  display: flex;
  gap: 0.6rem;
}

input,
button {
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 1rem;
  min-height: 44px;
}

input {
  flex: 1;
  padding: 0.7rem 0.85rem;
}

input:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(37, 99, 235, 0.2);
}

button {
  padding: 0.7rem 1rem;
  border: none;
  background: var(--accent);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:hover {
  background: var(--accent-hover);
}

button:disabled {
  opacity: 0.7;
  cursor: progress;
}

.status {
  margin-top: 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  background: #edf2ff;
  color: #1e3a8a;
}

.status.ok {
  background: var(--ok-bg);
  color: var(--ok-text);
}

.status.warn {
  background: var(--warn-bg);
  color: var(--warn-text);
}

.status.error {
  background: var(--error-bg);
  color: var(--error-text);
}

details {
  margin-top: 1rem;
  color: var(--muted);
}

code {
  background: #f1f5f9;
  border-radius: 6px;
  padding: 0.15rem 0.35rem;
  color: #0f172a;
}

@media (max-width: 600px) {
  .input-row {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}
