:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    sans-serif;
  color: #24312b;
  background: #f5f6f2;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 0;
  background: #315e4e;
  color: #fff;
  padding: 10px 18px;
  border-radius: 7px;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button.secondary {
  background: #e9ede7;
  color: #34483d;
}
a {
  color: inherit;
  text-decoration: none;
}
.layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
}
aside {
  padding: 32px 22px;
  background: #e9eee6;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.brand {
  font-size: 21px;
  font-weight: 600;
}
aside p {
  margin: 0;
  color: #617067;
  font-size: 14px;
}
nav {
  display: grid;
  gap: 6px;
  margin-top: 30px;
}
nav button {
  text-align: left;
  background: transparent;
  color: #536258;
}
nav button[aria-current] {
  background: #d5e0d2;
  color: #204a37;
  font-weight: 600;
}
.aside-bottom {
  display: grid;
  gap: 16px;
  margin-top: auto;
  padding-top: 40px;
  font-size: 14px;
  color: #516559;
}
main {
  max-width: 1420px;
  width: 100%;
  padding: 36px 40px;
  margin: 0 auto;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.access-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.access-form input {
  flex: 1 1 240px;
  min-width: 0;
}
.access-form p {
  flex-basis: 100%;
  margin: 0;
  color: #536258;
}
h1 {
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 10px;
}
h2 {
  font-size: 19px;
  font-weight: 600;
  margin: 0;
}
h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}
p {
  line-height: 1.65;
}
header p {
  margin: 0;
  color: #69756c;
}
#notice {
  min-height: 24px;
  margin: 16px 0 10px;
  color: #9c4631;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: #fff;
  padding: 22px 26px;
  border-radius: 10px;
}
.metrics div {
  display: grid;
  gap: 10px;
}
.metrics span {
  color: #69756c;
}
.metrics strong {
  font-size: 27px;
  font-weight: 500;
}
.tabs {
  display: flex;
  gap: 10px;
  margin: 28px 0 20px;
}
.tabs button {
  background: transparent;
  color: #65746b;
}
.tabs [aria-selected="true"] {
  color: #234a38;
  background: #e1e9dd;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(235px, 32%) minmax(0, 1fr);
  gap: 28px;
}
.catalog {
  min-width: 0;
}
label {
  display: block;
  margin-bottom: 10px;
}
input,
textarea {
  width: 100%;
  border: 1px solid #c6d0c5;
  border-radius: 7px;
  padding: 10px 12px;
  background: #fff;
  color: #24312b;
}
#capability-note {
  font-size: 14px;
  color: #69756c;
  margin: 12px 0;
}
#endpoints {
  display: grid;
  gap: 6px;
  max-height: 650px;
  overflow: auto;
  padding-right: 5px;
}
.endpoint {
  display: grid;
  gap: 7px;
  width: 100%;
  text-align: left;
  background: transparent;
  color: #43584c;
  padding: 14px 12px;
}
.endpoint[aria-pressed="true"] {
  background: #e1e9dd;
  color: #204a37;
}
.endpoint .name {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 14px;
}
.endpoint .desc {
  font-size: 14px;
  line-height: 1.5;
  color: #637166;
}
.tester {
  background: #fff;
  border-radius: 10px;
  padding: 26px;
  min-width: 0;
}
.operation-head,
.result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
#availability {
  font-size: 14px;
  color: #566b5b;
}
#description {
  color: #617067;
}
#route {
  display: block;
  padding: 12px;
  background: #f2f5ef;
  border-radius: 6px;
  overflow-wrap: anywhere;
  font-size: 14px;
}
dl {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 14px;
  color: #67746a;
  margin: 14px 0 24px;
}
dt {
  font-weight: 500;
}
dd {
  margin: 0 14px 0 0;
  overflow-wrap: anywhere;
}
textarea {
  font-family: ui-monospace, SFMono-Regular, monospace;
  line-height: 1.6;
  resize: vertical;
}
#parameter-help {
  font-size: 14px;
  color: #68756b;
  overflow-wrap: anywhere;
  margin: 9px 0 18px;
}
#cancel {
  margin-left: 8px;
}
.result-head {
  margin: 28px 0 12px;
}
#response-status {
  font-size: 14px;
}
pre {
  font-family: ui-monospace, SFMono-Regular, monospace;
  background: #f4f6f1;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.6;
  padding: 18px;
  border-radius: 7px;
  max-height: 520px;
  overflow: auto;
  font-size: 13px;
}
.records-head p {
  color: #68756b;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  text-align: left;
  font-size: 14px;
}
th {
  font-weight: 500;
  color: #657368;
}
th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid #e9ede7;
  white-space: nowrap;
}
td:last-child {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.empty {
  padding: 28px 12px;
  color: #68756b;
}
.failure {
  color: #a54632;
}
.success {
  color: #315e4e;
}
footer {
  color: #738074;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 30px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  main {
    padding: 26px 24px;
  }
  .layout {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  aside {
    padding: 28px 16px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .catalog #endpoints {
    max-height: 220px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .layout {
    display: block;
  }
  aside {
    padding: 20px;
    gap: 8px;
  }
  .brand {
    font-size: 20px;
  }
  aside > p,
  .aside-bottom {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    margin-top: 8px;
    gap: 3px;
  }
  nav button {
    white-space: nowrap;
    padding: 9px 12px;
  }
  main {
    padding: 22px 16px;
  }
  h1 {
    font-size: 23px;
  }
  header {
    align-items: flex-start;
    gap: 14px;
  }
  header p {
    font-size: 14px;
  }
  header > button {
    white-space: nowrap;
    padding: 9px 12px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    padding: 20px;
  }
  .metrics strong {
    font-size: 25px;
  }
  .tester {
    padding: 20px 16px;
  }
  .operation-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .catalog #endpoints {
    grid-template-columns: 1fr;
    max-height: 190px;
  }
  .workspace {
    gap: 20px;
  }
}

#threads-preview {
  display: grid;
  gap: 24px;
  margin: 24px 0;
}
.thread-group {
  display: grid;
  gap: 20px;
  background: #f6f8f3;
  padding: 20px;
  border-radius: 8px;
}
.thread-post {
  min-width: 0;
}
.thread-post .post-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 16px 0;
}
.post-date,
.post-counts {
  color: #617067;
  margin: 8px 0;
}
.post-media {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.post-media figure {
  margin: 0;
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
}
.post-media img,
.post-media video {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: #f2f5ef;
  border-radius: 6px;
}
.post-media figcaption {
  text-align: center;
  margin-top: 10px;
  color: #617067;
}
.post-quote {
  margin: 20px 0;
  padding: 20px;
  background: #edf1e8;
}
.post-quote > h3 {
  margin-bottom: 20px;
}
#raw-result summary {
  cursor: pointer;
  margin: 20px 0 12px;
}

.search-user {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f6f8f3;
  border-radius: 8px;
}
.search-user img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
}
.search-user p {
  margin: 6px 0 0;
}
