:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #171717;
  background: #f4f1ec;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, #ffffff 0, #f4f1ec 52%, #ebe4da 100%);
}

button, input { font: inherit; }

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px 16px;
}

.card {
  width: min(100%, 480px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(95, 67, 44, 0.12);
  border-radius: 24px;
  padding: 28px 22px;
  box-shadow: 0 18px 60px rgba(62, 43, 28, 0.12);
}

.brand {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #2c211a;
  color: #fff;
  font-weight: 800;
  letter-spacing: .03em;
  font-size: 12px;
}

h1 {
  margin: 18px 0 8px;
  font-size: clamp(26px, 7vw, 38px);
  line-height: 1.05;
}

.subtitle {
  margin: 0 0 26px;
  color: #6a625d;
  line-height: 1.5;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  border: 1.5px solid #d5ccc3;
  border-radius: 14px;
  background: #fff;
  color: #171717;
  font-size: 20px;
  letter-spacing: .06em;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

input:focus {
  border-color: #72513a;
  box-shadow: 0 0 0 4px rgba(114, 81, 58, 0.12);
}

.input-help {
  min-height: 22px;
  margin: 7px 2px 12px;
  color: #7d746e;
  font-size: 13px;
}

button {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 14px;
  background: #2c211a;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform .08s, opacity .15s;
}

button:hover { opacity: .94; }
button:active { transform: translateY(1px); }
button:disabled { cursor: wait; opacity: .66; }

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .75s linear infinite;
}

.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.result {
  margin-top: 22px;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid transparent;
}

.result.success { background: #eef8f0; border-color: #b9dfc0; }
.result.failure { background: #fff1f0; border-color: #efc1bd; }
.result.warning { background: #fff8e8; border-color: #efd896; }

.result-title {
  margin: 0 0 14px;
  font-size: 21px;
  font-weight: 900;
}

.result dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  margin: 0;
}

.result dt { color: #746b65; }
.result dd { margin: 0; font-weight: 650; text-align: right; }
.result-message { margin: 14px 0 0; line-height: 1.45; }

.new-query {
  margin-top: 16px;
  min-height: 46px;
  background: transparent;
  color: #2c211a;
  border: 1px solid #baa99c;
}

.hidden { display: none; }

footer {
  color: #776e68;
  font-size: 12px;
  text-align: center;
}

@media (min-width: 560px) {
  .card { padding: 36px; }
}
