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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(246, 130, 31, 0.12), transparent 31rem),
    #f4f7fb;
}

button,
input {
  font: inherit;
}

button {
  min-height: 2.65rem;
  padding: 0.6rem 0.95rem;
  border: 1px solid #274c9e;
  border-radius: 0.45rem;
  background: #274c9e;
  color: #fff;
  font-weight: 650;
  cursor: pointer;
}

button:hover:not(:disabled) {
  background: #1f3e83;
}

button:focus-visible,
input:focus-visible,
pre:focus-visible {
  outline: 3px solid rgba(246, 130, 31, 0.72);
  outline-offset: 3px;
}

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

.page-shell {
  width: min(100% - 2rem, 52rem);
  margin: 0 auto;
  padding: 3.5rem 0;
}

.page-header {
  margin: 0 0 1.5rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 17ch;
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 0;
  font-size: 1.2rem;
}

h3 {
  font-size: 1rem;
}

.page-header > p:last-child {
  max-width: 65ch;
  margin-bottom: 0;
  color: #45516a;
  line-height: 1.55;
}

.eyebrow {
  margin-bottom: 0.35rem;
  color: #4a5d86;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel,
.trust-note {
  margin-top: 1rem;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  border: 1px solid #d8dfec;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 0.6rem 1.75rem rgba(23, 41, 80, 0.06);
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 99rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.status-pending {
  background: #fff2d8;
  color: #895300;
}

.status-success {
  background: #dff6ea;
  color: #176437;
}

.status-error {
  background: #fde7e8;
  color: #a3232a;
}

.status-neutral {
  background: #e9edf5;
  color: #43506a;
}

.details-list {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
}

.details-list > div {
  display: grid;
  grid-template-columns: minmax(9.25rem, 34%) 1fr;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e7ebf2;
}

.details-list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

dt {
  color: #55627b;
  font-size: 0.9rem;
}

dd {
  margin: 0;
  color: #1d2a43;
  font-weight: 650;
}

.breakable {
  overflow-wrap: anywhere;
}

.inline-error,
.hint {
  margin: 1rem 0 0;
  font-size: 0.93rem;
  line-height: 1.5;
}

.inline-error {
  color: #a3232a;
}

.hint {
  color: #536078;
}

.echo-form {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.echo-form label {
  font-weight: 700;
}

.echo-form input {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #aab5c7;
  border-radius: 0.45rem;
  background: #fff;
  color: inherit;
}

.echo-form button {
  justify-self: start;
  margin-top: 0.3rem;
}

.result-list {
  margin-bottom: 1.35rem;
}

.request-error {
  margin: 0 0 1.35rem;
  padding: 1rem 1rem 0.8rem;
  border-left: 4px solid #be3138;
  border-radius: 0.2rem;
  background: #fff3f3;
  color: #5b2024;
  line-height: 1.5;
}

.request-error p {
  margin-bottom: 0.7rem;
}

.request-error ul {
  margin: 0;
  padding-left: 1.3rem;
}

.error-title {
  color: #8f161c;
  font-weight: 800;
}

.raw-response h3 {
  margin-bottom: 0.55rem;
}

pre {
  max-height: 22rem;
  margin: 0;
  padding: 1rem;
  overflow: auto;
  border-radius: 0.45rem;
  background: #172238;
  color: #e7edf8;
  font: 0.83rem/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.trust-note {
  border-color: #fed5a4;
  background: #fffaf3;
  box-shadow: none;
}

.trust-note h2 {
  margin-bottom: 0.55rem;
}

.trust-note p {
  margin-bottom: 0;
  color: #624b2a;
  line-height: 1.5;
}

code {
  padding: 0.08rem 0.25rem;
  border-radius: 0.2rem;
  background: rgba(28, 43, 72, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
}

@media (max-width: 38rem) {
  .page-shell {
    width: min(100% - 1.25rem, 52rem);
    padding: 2rem 0;
  }

  .section-heading,
  .details-list > div {
    display: block;
  }

  .status {
    margin-top: 0.9rem;
  }

  dt {
    margin-bottom: 0.25rem;
  }

  .echo-form button {
    width: 100%;
  }
}
