:root {
  color-scheme: light;
  --ink: #142132;
  --muted: #506174;
  --paper: #f6f5ef;
  --line: #d7dcdb;
  --white: #fff;
  --teal: #11645c;
  --dark: #134f4a;
  font-family: "Avenir Next",Avenir,"Trebuchet MS",sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis:none;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
}

h1,h2,p,dl,form {
  margin:0;
}

button {
  font: inherit;
  cursor:pointer;
}

a,button {
  touch-action:manipulation;
}

button:focus-visible {
  outline: 3px solid #127963;
  outline-offset:4px;
}

.shell {
  width: min(100% - 40px,1030px);
  margin-inline:auto;
}

.top {
  border-bottom: 1px solid var(--line);
  background:#fffdf7;
}

.top-inner {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap:14px;
}

.brand {
  font-size: 20px;
  letter-spacing: -.04em;
  font-weight:800;
}

.brand span,.hero h1 span {
  color:var(--teal);
}

.mode {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size:13px;
}

.mode span {
  width: 8px;
  height: 8px;
  border-radius: 100%;
  background:var(--teal);
}

main {
  padding-block:36px 64px;
}

.hero {
  margin: 0 0 22px;
  padding: 38px 38px;
  background: #e8f2ec;
  border: 1px solid #cfdfd6;
  border-radius:14px;
}

.hero h1 {
  font-size: clamp(43px,8vw,84px);
  line-height: .99;
  letter-spacing: -.08em;
  font-weight:850;
}

.intro p {
  margin-top: 17px;
  color: #314e52;
  line-height: 1.5;
  font-size:16px;
}

.intro form {
  margin-top:25px;
}

.hero.signed {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap:12px;
}

.hero.signed h1 {
  font-size: clamp(30px,5vw,56px);
  overflow-wrap:anywhere;
}

.label {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--dark);
  font-weight: 700;
  margin-bottom:11px;
}

.panel {
  padding: 19px 23px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  margin-bottom: 16px;
  min-width:0;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom:12px;
}

.panel h2 {
  font-size: 22px;
  letter-spacing:-.045em;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
}

.settings dl {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 8px 14px;
  align-items:baseline;
}

dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-top:8px;
}

dd {
  margin: 0 0 8px;
  overflow-wrap:anywhere;
}

code {
  font-family: "SF Mono",Consolas,monospace;
  font-size: .83em;
  font-weight:450;
}

.endpoint {
  display: block;
  overflow-wrap: anywhere;
  color:#3d5861;
}

.panel p {
  margin-top:12px;
}

button {
  border-radius: 7px;
  border: 1px solid var(--dark);
  background: var(--teal);
  color: white;
  min-height: 44px;
  font-weight: 700;
  padding: 9px 15px;
  transition:background .12s;
}

button:hover {
  background:var(--dark);
}

button span {
  margin-left:11px;
}

.secondary {
  background: var(--white);
  color: var(--dark);
  border-color:#a8c3b7;
}

.secondary:hover {
  background:#e8f2ec;
}

.notice {
  background: #fff8d8;
  border: 1px solid #e6db9e;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 15px;
  line-height:1.4;
}

.scroll {
  overflow-x:auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 7px;
  text-align:left;
}

th,td {
  border-bottom: 1px solid #e6eae8;
  padding: 9px 8px;
  line-height:1.3;
}

th {
  font-size: 13px;
  color:var(--muted);
}

td {
  font-size: 14px;
  overflow-wrap:anywhere;
}

.http-status {
  font-variant-numeric: tabular-nums;
  color: var(--dark);
  background: #edf5ee;
  padding: 2px 6px;
  border-radius:4px;
}

.log td:nth-child(1) {
  white-space:nowrap;
}

@media(max-width:720px) {
  main {
    padding-top:23px;
  }
  .grid {
    grid-template-columns: 1fr;
    gap:0;
  }
  .hero {
    padding:30px 22px;
  }
  .panel {
    padding:15px;
  }
  th,td {
    padding-inline:5px;
  }
  .panel-heading {
    align-items:flex-start;
  }
  .panel-heading .secondary {
    padding-inline: 9px;
    font-size:13px;
  }
  .settings dl {
    grid-template-columns:75px 1fr;
  }
}

@media(prefers-reduced-motion:reduce) {
  button {
    transition:none;
  }
}

.snapshot-response {
  margin-top: 1rem;
}
.snapshot-response summary {
  cursor: pointer;
}
.snapshot-response pre {
  max-height: 24rem;
  overflow: auto;
  padding: 0.9rem;
  margin-bottom: 0;
  background: var(--surface, #fff);
  border: 1px solid currentColor;
  white-space: pre;
}
