:root {
  color: #18201c;
  background: #fff;
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(760px, calc(100% - 32px)); margin: 32px auto 72px; line-height: 1.65; }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
h1 { margin: 0; font-family: "Noto Serif SC", "Songti SC", serif; font-size: 2rem; }
h2 { margin: 1.8em 0 .35em; font-size: 1.12rem; }
p { margin: .6em 0; }
ul { margin-top: .35em; padding-left: 1.5em; }
li { margin: .28em 0; }
a { color: #17603a; text-underline-offset: 2px; }

form { margin: 24px 0 14px; }
.search-row { display: flex; gap: 8px; }
input[type="search"], button { min-height: 42px; border: 1px solid #aab5ae; border-radius: 4px; font: inherit; }
input[type="search"] { flex: 1; min-width: 0; padding: 7px 10px; font-family: Consolas, "Microsoft YaHei", monospace; }
input[type="search"]:focus { outline: 2px solid #b6dbc4; border-color: #17603a; }
button { padding: 7px 20px; color: #fff; background: #17603a; border-color: #17603a; cursor: pointer; }
button:hover { background: #10472b; }
button:disabled { opacity: .65; cursor: wait; }
.stream-option { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; color: #56645d; font-size: .92rem; cursor: pointer; }
.stream-option input { width: 1rem; height: 1rem; accent-color: #17603a; }
.advanced-settings { margin-top: 8px; color: #56645d; font-size: .92rem; }
.advanced-settings summary { width: fit-content; cursor: pointer; user-select: none; }
.advanced-settings p { margin: .2em 0 0 23px; font-size: .88rem; }

code { padding: .08em .28em; border: 1px solid #dce2de; border-radius: 3px; background: #f5f7f5; font-family: Consolas, monospace; }
.syntax-list code { white-space: nowrap; }
#status { color: #56645d; }
#status.error { color: #a12626; }
#results { margin: 14px 0 24px; }
.result { margin: .15em 0; overflow-wrap: anywhere; }
.result small { margin-left: .7em; color: #758078; font-size: .78rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

article { line-height: 1.75; }
article h2 { margin-top: 2em; font-size: 1.3rem; }
article h3 { margin-top: 1.5em; font-size: 1.05rem; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 8px 6px; border-bottom: 1px solid #dce2de; text-align: left; vertical-align: top; }
pre { overflow: auto; padding: 12px; border: 1px solid #dce2de; background: #f5f7f5; }

@media (max-width: 560px) {
  main { margin-top: 22px; }
  .masthead img { width: 56px; height: 56px; }
  .search-row { align-items: stretch; }
  button { padding-inline: 14px; }
}
