:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #182230;
  background: #eef3f8;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

main {
  width: min(760px, 100%);
  padding: 30px;
  background: #fff;
  border: 1px solid #d9e1ea;
  border-radius: 8px;
  box-shadow: 0 12px 35px rgba(31, 48, 69, .1);
}

.eyebrow { margin: 0 0 4px; color: #2374d5; font-size: 12px; font-weight: 800; text-transform: uppercase; }
h1 { margin: 0; font-size: 26px; }
header > p:last-child { margin: 8px 0 24px; color: #66758a; }

form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.wide { grid-column: 1 / -1; }

input, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #b9c5d3;
  border-radius: 6px;
  background: #fff;
  color: inherit;
  font: inherit;
}

input:focus, textarea:focus { outline: 3px solid #d7e9ff; border-color: #2374d5; }
small { color: #77869a; font-weight: 400; }

button {
  grid-column: 1 / -1;
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: #2374d5;
  font-weight: 800;
  cursor: pointer;
}

button:disabled { opacity: .6; cursor: wait; }

section { margin-top: 22px; padding: 16px; border: 1px solid #d9e1ea; border-radius: 6px; }
.result-heading { display: flex; justify-content: space-between; gap: 12px; }
#status.success { color: #07834d; }
#status.error { color: #c22f3d; }
pre { margin: 12px 0 0; padding: 14px; overflow: auto; white-space: pre-wrap; background: #111827; color: #e5edf8; border-radius: 5px; }

@media (max-width: 600px) {
  body { padding: 12px; }
  main { padding: 20px; }
  form { grid-template-columns: 1fr; }
  .wide, button { grid-column: 1; }
}
