:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    sans-serif;
  color: #17332f;
  background: #f5f7f5;
  accent-color: #176957;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: #126751;
  text-underline-offset: 0.2em;
}
header {
  background: #fff;
  border-bottom: 1px solid #dbe4de;
}
.bar,
nav,
main {
  max-width: 60rem;
  margin: auto;
  padding: 1rem clamp(0.85rem, 4vw, 2rem);
}
.bar,
nav,
.choices,
.pager,
#previews {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
}
.bar > strong {
  margin-right: auto;
}
.bar > details {
  position: relative;
}
.menu {
  position: absolute;
  z-index: 2;
  background: white;
  min-width: 9rem;
  padding: 0.6rem;
  box-shadow: 0 0.2rem 1.5rem #18452925;
}
.menu a,
small {
  display: block;
  padding: 0.25rem 0;
}
nav {
  padding-block: 0.6rem;
}
nav a,
summary {
  padding: 0.5rem 0.2rem;
  cursor: pointer;
}
h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.035em;
}
h2 {
  font-size: 1.25rem;
}
form,
article,
dl {
  padding: clamp(0.8rem, 3vw, 1.4rem);
  background: white;
  border-radius: 0.9rem;
  margin: 0.65rem 0;
}
form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  margin: 0.45rem 0;
}
input:not([type="radio"]),
textarea,
select {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  font: inherit;
  padding: 0.65rem;
  border: 1px solid #9caea4;
  border-radius: 0.4rem;
  background: white;
  color: inherit;
}
input[type="radio"] {
  accent-color: #176957;
}
textarea {
  resize: vertical;
}
button,
.button {
  font: inherit;
  font-weight: 600;
  border: 0;
  border-radius: 0.5rem;
  padding: 0.65rem 0.9rem;
  min-height: 44px;
  background: #1e654e;
  color: white;
  text-decoration: none;
  cursor: pointer;
}
button:disabled {
  opacity: 0.65;
}
.minor {
  background: #e7eee8;
  color: #27503e;
}
.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: 0.5rem;
}
.choices label {
  display: inline-flex;
  font-size: 0.9rem;
  align-items: center;
}
fieldset {
  border: 0;
  padding: 0;
}
small {
  color: #53695f;
}
.drop {
  padding: 0.65rem;
  border: 1px dashed #849f8e;
  border-radius: 0.5rem;
}
.thumb {
  height: 4rem;
  width: 4rem;
  object-fit: cover;
}
.preview {
  max-width: 100%;
  max-height: 22rem;
}
dl {
  display: grid;
  grid-template-columns: minmax(7rem, auto) 1fr;
  gap: 0.4rem;
}
dd {
  margin: 0;
}
main,
dd,
article,
.body {
  overflow-wrap: anywhere;
}
.body {
  white-space: pre-wrap;
}
dialog {
  width: min(92vw, 26rem);
  max-height: 90dvh;
  overflow: auto;
  border: 0;
  border-radius: 1rem;
}
dialog::backdrop {
  background: #15271e66;
}
.skip {
  position: absolute;
  inset-inline-start: -100%;
  background: white;
}
.skip:focus {
  inset-inline-start: 1rem;
}
#notice:not(:empty) {
  border-inline-start: 3px solid #368968;
  padding: 0.7rem;
  background: #e5f1e8;
}
:focus-visible {
  outline: 3px solid #317fce;
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
.triage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}
.triage.active {
  outline: 2px solid #469571;
}
.triage form {
  padding: 0;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.webhook-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.webhook-status {
  margin: 0;
}
.webhook-table-wrap {
  overflow-x: auto;
}
.webhook-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.webhook-table th,
.webhook-table td {
  text-align: left;
  padding: 0.45rem 0.5rem;
  border-top: 1px solid #e3ebe6;
  vertical-align: top;
}
.webhook-table th {
  border-top: 0;
  color: #53695f;
  font-weight: 600;
  white-space: nowrap;
}
.webhook-table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  word-break: break-all;
}
.webhook-table .num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.webhook-state {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.webhook-state-sent {
  background: #e5f3eb;
  color: #165c42;
}
.webhook-state-pending {
  background: #eef2f5;
  color: #3a5060;
}
.webhook-state-failed {
  background: #fdecec;
  color: #9e2a2b;
}
@media (max-width: 680px) {
  .triage {
    grid-template-columns: 1fr;
  }
}
