@font-face {
  font-family: Inter;
  src: url(/inter.woff2) format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --base: #121922;
  --panel: #18232e;
  --field: #101821;
  --edge: #344755;
  --text: #edf4fa;
  --muted: #aabfcb;
  --accent: #8aecc4;
  --blue: #aacaee;
  --bad: #ffc0b4;
  --warn: #ffdf9b;
  --sans: Inter,system-ui,sans-serif;
  --mono: "SFMono-Regular",Consolas,monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font: 16px/1.55 var(--sans);
}

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

button,input,select,textarea,a {
  outline-offset: 4px;
}

a {
  color: inherit;
}

a:hover {
  text-decoration-thickness: 2px;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: .55;
}

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

code,textarea,.brand span {
  font-family: var(--mono);
}

code {
  color: var(--blue);
  overflow-wrap: anywhere;
}

.wrap {
  width: min(1120px,calc(100% - 64px));
  margin-inline: auto;
}

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

.top-inner,.heading-line,.request-actions,.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.top-inner {
  min-height: 67px;
}

.brand {
  font-weight: 750;
  font-size: 19px;
  text-decoration: none;
  letter-spacing: -.035em;
}

.brand span {
  margin-right: 8px;
  color: var(--accent);
  font-size: 15px;
  background: #253c37;
  border-radius: 5px;
  padding: 5px 7px;
}

.ref,.footer {
  font-size: 14px;
  color: var(--muted);
}

.ref {
  text-decoration: none;
}

.ref span {
  color: var(--accent);
}

.intro {
  padding: 41px 0 25px;
}

.intro h1 {
  font-size: clamp(46px,7vw,76px);
  font-weight: 720;
  line-height: 1;
  letter-spacing: -.08em;
}

.intro h1 span {
  color: var(--accent);
}

.intro p {
  max-width: 700px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 17px;
}

.policies {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
}

.editor,.request,.trace,.diff {
  border: 1px solid var(--edge);
  border-radius: 12px;
  background: var(--panel);
}

.editor {
  padding: 15px;
}

.editor h2 {
  font-size: 17px;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.editor h2>span {
  font: 700 12px var(--mono);
  padding: 3px 6px;
  background: #2c403b;
  color: var(--accent);
  border-radius: 4px;
}

.editor:nth-child(2) h2>span {
  background: #293d51;
  color: var(--blue);
}

.editor small {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
}

.editor p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

textarea,input:not([type=checkbox]),select {
  background: var(--field);
  border: 1px solid var(--edge);
  border-radius: 6px;
  color: var(--text);
  width: 100%;
  padding: 9px 10px;
}

textarea {
  display: block;
  min-height: 137px;
  resize: vertical;
  tab-size: 2;
  font-size: 13px;
  line-height: 1.6;
}

::placeholder {
  color: #8da2b0;
}

input:focus,textarea:focus,select:focus {
  border-color: var(--accent);
}

input[type=checkbox] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex: none;
  margin: 0;
}

.request,.diff {
  margin-top: 16px;
  padding: 17px 18px;
}

.heading-line h2 {
  font-size: 20px;
  letter-spacing: -.02em;
}

.request-fields {
  display: grid;
  grid-template-columns: 1fr 1.15fr minmax(150px,.65fr);
  gap: 12px;
  margin-top: 10px;
}

label {
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}

label input:not([type=checkbox]),select {
  display: block;
  margin-top: 5px;
  font: 13px var(--mono);
  min-height: 42px;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 550;
}

.request-actions {
  margin-top: 12px;
}

.quiet,.primary {
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
}

.quiet {
  color: var(--blue);
  background: #202e3c;
  border: 1px solid #42586e;
}

.quiet:hover {
  background: #283b4d;
}

.primary {
  color: #132b24;
  background: var(--accent);
  border: 1px solid var(--accent);
  min-height: 42px;
}

.primary:hover {
  background: #b9f6df;
}

.primary span {
  margin-left: 7px;
}

.error {
  color: var(--bad);
  font-size: 14px;
}

.error:empty {
  display: none;
}

.error:not(:empty) {
  margin-top: 9px;
}

.results {
  margin-top: 24px;
}

.results>.heading-line {
  margin-bottom: 3px;
}

.results>p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 11px;
}

.trace {
  padding: 14px;
  min-width: 0;
}

.trace h3 {
  font-size: 16px;
}

.trace-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 750;
  padding: 3px 7px;
  border-radius: 4px;
  color: var(--accent);
  background: #28473c;
}

.pill.block {
  color: var(--bad);
  background: #482d32;
}

.pill.unknown {
  color: var(--warn);
  background: #483e2e;
}

.trace ol,.trace ul {
  padding-left: 19px;
  margin: 8px 0 0;
}

.trace li {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0;
  overflow-wrap: anywhere;
}

.trace strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.trace li span {
  color: var(--blue);
  font-family: var(--mono);
  display: block;
  margin-top: 3px;
}

.diff h3 {
  font-size: 16px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  margin-top: 8px;
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
}

th,td {
  border-top: 1px solid var(--edge);
  text-align: left;
  padding: 9px 8px;
  vertical-align: top;
  font-size: 13px;
  overflow-wrap: anywhere;
}

th:first-child {
  width: 24%;
}

th {
  color: var(--muted);
}

td:first-child {
  color: var(--blue);
  font-family: var(--mono);
}

.notes {
  border-top: 1px solid var(--edge);
  margin-top: 30px;
  padding: 23px 0 30px;
}

.notes h2 {
  font-size: 19px;
  margin-bottom: 10px;
}

.notes>div {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
}

.notes h3 {
  font-size: 15px;
  margin-bottom: 3px;
}

.notes p {
  font-size: 14px;
  color: var(--muted);
}

.footer {
  padding: 14px 0 24px;
  border-top: 1px solid var(--edge);
}

.sr,.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip:focus {
  position: absolute;
  left: 12px;
  top: 8px;
  background: var(--accent);
  color: #132b24;
  padding: 8px 12px;
  z-index: 2;
}

[hidden] {
  display: none!important;
}

@media(max-width:740px) {
  .wrap {
    width: calc(100% - 28px);
  }

  .intro {
    padding-top: 27px;
  }

  .policies,.notes>div {
    grid-template-columns: 1fr;
  }

  .request-fields {
    grid-template-columns: 1fr 1fr;
  }

  .request-fields label:nth-child(2) {
    grid-column: 1/-1;
    grid-row: 2;
  }

  textarea {
    min-height: 106px;
  }
}

@media(max-width:430px) {
  .request-fields {
    grid-template-columns: 1fr;
  }

  .request-fields label:nth-child(2) {
    grid-column: auto;
    grid-row: auto;
  }

  .request-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .primary {
    width: 100%;
  }

  .heading-line {
    align-items: flex-start;
  }

  .diff .heading-line {
    flex-wrap: wrap;
  }
}
