:root {
  color-scheme: light;
  --ink: #1b2928;
  --muted: #606e6a;
  --line: #dce3dd;
  --paper: #ffffff;
  --green: #246749;
  --green-dark: #184f36;
  --background: #f5f6f2;
  --error: #a62d2d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--background); font-size: 14px; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { touch-action: manipulation; }
a { color: var(--green-dark); text-underline-offset: 3px; }
button, input, select, textarea, a, pre { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #4d8bdf; outline-offset: 3px; }
.site-header { max-width: 1240px; margin: auto; padding: 18px 40px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 750; letter-spacing: -.7px; }
.brand-mark { display: grid; place-items: center; width: 37px; height: 37px; background: var(--green); color: #fff; border-radius: 10px; font-size: 28px; line-height: 1; }
.brand-sub { border-left: 1px solid #cbd4cd; margin-left: 13px; padding-left: 14px; color: var(--muted); font-size: 13px; font-weight: 450; letter-spacing: 0; }
main { max-width: 1240px; padding: 0 40px; margin: auto; }
.intro { padding: 24px 0 20px; }
.eyebrow { color: var(--green); font-size: 10px; font-weight: 750; letter-spacing: 1.6px; margin: 0 0 9px; }
h1 { font-size: clamp(26px, 3vw, 34px); line-height: 1.2; letter-spacing: -1.2px; margin: 0; font-weight: 650; }
.card { border: 1px solid var(--line); background: var(--paper); border-radius: 14px; padding: 18px; box-shadow: 0 2px 4px #22332203; min-width: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.section-heading .eyebrow { margin-bottom: 5px; }
h2 { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -.4px; line-height: 1.4; }
.badge, .small-tag, .code-tag { font-size: 10px; font-weight: 650; border-radius: 5px; padding: 5px 9px; background: #eef1ed; color: #52605a; white-space: nowrap; }
.badge[data-tone="success"] { background: #e7f3ea; color: #246044; }
.badge[data-tone="error"] { background: #fcecec; color: var(--error); }
.badge[data-tone="pending"] { background: #fff1d8; color: #805a12; }
.small-tag { font-size: 9px; letter-spacing: .7px; background: transparent; border: 1px solid var(--line); }
.code-tag { font-family: ui-monospace, monospace; color: var(--green); background: #edf4ee; }
fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.configure-button { margin-top: 10px; white-space: normal; }
label, .label-text { display: block; margin: 0 0 7px; font-size: 12px; font-weight: 650; }
input, select, textarea { width: 100%; border: 1px solid #cbd5cd; border-radius: 7px; background: #fff; color: var(--ink); padding: 10px 12px; min-height: 44px; transition: border-color .15s; }
input:hover, select:hover, textarea:hover { border-color: #8d9f93; }
input::placeholder, textarea::placeholder { color: #7c8781; opacity: 1; }
textarea { resize: vertical; min-height: 130px; }
.connection-controls { display: flex; gap: 10px; }
.connection-controls input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; border: 1px solid transparent; border-radius: 7px; padding: 10px 17px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.button-dark { background: var(--ink); color: #fff; }
.button-dark:hover { background: #33433c; }
.button-quiet { background: #fff; border-color: var(--line); color: var(--muted); }
.button-quiet:hover { background: #f3f5f1; }
.help { font-size: 11px; color: var(--muted); margin: 9px 0 0; line-height: 1.65; }
.message { font-size: 12px; margin: 10px 0 0; color: var(--green-dark); overflow-wrap: anywhere; }
.message:empty { display: none; }
.message[data-tone="error"] { color: var(--error); }
.workspace { display: grid; grid-template-columns: 1.08fr 1fr; gap: 16px; margin-top: 16px; align-items: start; }
.examples { background: #f6f8f4; border: 1px solid #e4e9e0; border-radius: 9px; padding: 11px; margin-bottom: 15px; }
.examples .label-text { font-size: 11px; margin-bottom: 10px; }
.example-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.example-button { display: flex; justify-content: space-between; align-items: center; gap: 6px; background: #fff; border: 1px solid #dce3d8; border-radius: 6px; padding: 9px; min-height: 40px; color: var(--ink); font-size: 11px; text-align: left; }
.example-button:hover { border-color: var(--green); background: #f3f8f1; }
.example-button span { color: #667361; font-size: 10px; }
.example-button .priority-high { color: #986020; }
.field { margin-bottom: 12px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.transport { margin-top: 3px; padding-top: 17px; border-top: 1px solid #e9ede7; }
.button-primary { width: 100%; justify-content: space-between; margin-top: 14px; background: var(--green); color: #fff; padding: 13px 16px; font-size: 13px; }
.button-primary:hover { background: var(--green-dark); }
.button-primary span:last-child { font-size: 19px; line-height: 1; }
.send-note { text-align: center; font-size: 10px; }
.inspection { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.payload-card .section-heading { margin-bottom: 12px; }
.code-block { margin: 12px 0 0; padding: 14px; border-radius: 8px; border: 1px solid #dfe5dd; background: #f6f8f4; color: #2f4e3e; font: 11px/1.7 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; max-height: 300px; overflow: auto; tab-size: 2; }
.response-card .section-heading { margin-bottom: 12px; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 0; padding-bottom: 12px; border-bottom: 1px solid #e9ede7; }
.metrics dt { color: var(--muted); font-size: 11px; }
.metrics dd { margin: 3px 0 0; font: 550 18px/1.5 ui-monospace, monospace; }
.response-message { color: var(--muted); font-size: 12px; margin: 12px 0 0; }
.response-message[data-tone="error"] { color: var(--error); }
.response-body { min-height: 93px; max-height: 300px; background: #fbfcfa; color: var(--ink); }
.request-id { overflow-wrap: anywhere; font-family: ui-monospace, monospace; font-size: 10px; }
.request-id:empty { display: none; }
footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 14px 0 18px; color: var(--muted); font-size: 10px; }
:disabled { opacity: .6; cursor: wait; }
.skip-link { position: absolute; left: 20px; top: -100px; background: #fff; padding: 12px; z-index: 1; }
.skip-link:focus { top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.noscript { padding: 20px; color: var(--error); text-align: center; }

@media (max-width: 900px) {
  .site-header { padding: 22px 24px; }
  main { padding: 0 24px; }
  .card { padding: 20px; }
  .workspace { gap: 16px; grid-template-columns: 1fr 1fr; }
  .inspection { gap: 16px; }
  .section-heading { flex-wrap: wrap; gap: 9px; }
}

@media (max-width: 720px) {
  .workspace { grid-template-columns: 1fr; }
  .connection-controls { flex-wrap: wrap; }
  .connection-controls input { flex-basis: 100%; }
  .connection-controls .button { flex: 1; }
  .brand-sub { display: none; }
  footer { flex-direction: column; gap: 5px; }
}

@media (max-width: 380px) {
  .site-header { padding: 18px 16px; }
  main { padding: 0 14px; }
  .card { padding: 17px; }
  h1 { letter-spacing: -1px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .example-button { padding: 8px 6px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
