:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f6f7fb;
  color: #18202f;
}

* {
  box-sizing: border-box;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.intro {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #5c6f91;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 760px;
  color: #111827;
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  margin: 16px 0 0;
  color: #44536c;
  font-size: 1.04rem;
  line-height: 1.7;
}

code {
  border: 1px solid #d9e0ec;
  border-radius: 6px;
  padding: 2px 6px;
  background: #ffffff;
  color: #2f5f9f;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 20px;
  align-items: start;
}

.panel {
  border: 1px solid #dbe2ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(18, 28, 45, 0.08);
}

form.panel {
  display: grid;
  gap: 18px;
  padding: 22px;
}

label {
  display: grid;
  gap: 8px;
  color: #24324a;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd8e6;
  border-radius: 7px;
  padding: 12px 13px;
  background: #fbfcff;
  color: #18202f;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #2f72d6;
  box-shadow: 0 0 0 3px rgba(47, 114, 214, 0.14);
}

button {
  min-height: 46px;
  border: 0;
  border-radius: 7px;
  padding: 0 18px;
  background: #1f6feb;
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
}

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

.result-panel {
  overflow: hidden;
}

.result-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid #dbe2ee;
  padding: 14px 16px;
  color: #24324a;
  font-weight: 800;
}

.status-pill {
  border-radius: 999px;
  padding: 5px 9px;
  background: #eef2f8;
  color: #53627a;
  font-size: 0.78rem;
}

.status-pill.ok {
  background: #e7f6ed;
  color: #207547;
}

.status-pill.error {
  background: #fdecea;
  color: #b42318;
}

pre {
  min-height: 320px;
  margin: 0;
  overflow: auto;
  padding: 18px;
  background: #0f172a;
  color: #dbeafe;
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

@media (max-width: 800px) {
  .shell {
    width: min(100% - 24px, 680px);
    padding: 32px 0;
  }

  .workspace {
    grid-template-columns: 1fr;
  }
}
