:root {
  --bg-top: #fff8ef;
  --bg-bottom: #eef6ff;
  --ink: #1f2937;
  --muted: #6b7280;
  --panel: rgba(255, 255, 255, 0.88);
  --line: rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
  background: radial-gradient(circle at 12% -10%, #ffd9a8 0%, transparent 42%),
    radial-gradient(circle at 92% 4%, #bfe0ff 0%, transparent 40%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

.shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem;
  display: grid;
  gap: 1rem;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

h1,
h2 {
  margin: 0;
  font-family: "Fraunces", serif;
}

.query,
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 14px;
  padding: 1rem;
  backdrop-filter: blur(3px);
}

.query {
  display: grid;
  gap: 0.6rem;
}

label {
  font-weight: 600;
}

textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem;
  font: inherit;
  resize: vertical;
  min-height: 90px;
}

button {
  font: inherit;
}

.query button {
  justify-self: start;
  border: 0;
  background: #111827;
  color: white;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  cursor: pointer;
}

.status {
  margin: 0 0 0.8rem;
  color: var(--muted);
}

.status[data-type="error"] {
  color: #b42318;
}

.token-line {
  line-height: 2.2;
  min-height: 2.4rem;
}

.token {
  border: 0;
  border-radius: 8px;
  background: color-mix(in srgb, var(--token-color) 16%, white);
  color: #111827;
  padding: 0.22rem 0.45rem;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.token:hover,
.token:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 2px 0 color-mix(in srgb, var(--token-color) 42%, #111827 12%);
  background: color-mix(in srgb, var(--token-color) 23%, white);
  outline: none;
}

.detail-panel p,
.detail-panel ul {
  margin: 0.45rem 0;
}

@media (max-width: 640px) {
  .shell {
    padding-top: 1.4rem;
  }

  .query button {
    width: 100%;
    justify-self: stretch;
  }
}
