:root {
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #232d27;
  background: #f6f7f3;
  font-synthesis: none;
  line-height: 1.6;
  --accent: #245c42;
  --muted: #59645c;
  --line: #d7ddd4;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
::selection {
  background: #d1e8cf;
  color: #173d2a;
}
:focus-visible {
  outline: 3px solid #659b72;
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
[hidden] {
  display: none !important;
}
.site-header,
footer {
  max-width: 1080px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 36px;
}
.brand {
  display: flex;
  gap: 8px;
  align-items: center;
  text-decoration: none;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.035em;
}
.brand svg,
.brand-dot {
  color: var(--accent);
}
.brand-dot {
  margin-left: -9px;
}
.header-note {
  font-size: 13px;
  color: var(--muted);
}
main {
  max-width: 860px;
  margin: 54px auto 76px;
  padding: 0 36px;
}
h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  font-weight: 700;
  text-wrap: balance;
}
.intro {
  color: var(--muted);
  margin: 0 0 42px;
  font-size: 16px;
}
.mobile-break {
  display: none;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}
.input-row {
  display: flex;
  gap: 10px;
}
input {
  min-width: 0;
  flex: 1;
  width: 100%;
  background: #fff;
  border: 1px solid #a7b3a7;
  border-radius: 8px;
  padding: 14px 16px;
  caret-color: var(--accent);
  font-size: 15px;
}
input::placeholder {
  color: #667367;
}
input[aria-invalid="true"] {
  border-color: #a94435;
}
.input-row button {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.input-row button:hover:not(:disabled) {
  background: #194b32;
}
.examples {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 13px;
  align-items: center;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}
.examples button {
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 3px 0;
  text-decoration: underline;
  text-decoration-color: #b3c6b5;
  text-underline-offset: 4px;
}
.examples button:hover {
  color: #10391e;
  text-decoration-color: currentColor;
}
.message {
  min-height: 24px;
  margin: 8px 0 0;
  font-size: 13px;
  color: #934030;
}
.result {
  margin-top: 22px;
  padding: 25px 28px;
  background: #eaf0e6;
  border-radius: 12px;
  animation: reveal 0.2s ease-out;
}
.result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
h2 {
  font-size: 15px;
  margin: 0;
  font-weight: 650;
}
.kind {
  color: var(--accent);
  font-size: 12px;
}
.output-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}
.copy {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  padding: 5px 0 5px 14px;
  font-weight: 600;
}
.copy:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
pre {
  margin: 7px 0 20px;
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #163b27;
}
code {
  font-family: "Cascadia Code", Consolas, monospace;
  user-select: text;
}
.address {
  display: block;
  font-size: 12px;
  overflow-wrap: anywhere;
  margin-top: 6px;
  color: #3b5140;
  font-family: "Cascadia Code", Consolas, monospace;
}
.network-hint {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 20px;
}
.network-label {
  font-size: 14px;
  font-weight: 650;
  margin: 0 0 10px;
}
#link-hint {
  margin: 8px 0 0;
}
.alternate-result {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 24px;
}
.result-note {
  font-size: 12px;
  color: var(--muted);
  margin: 20px 0 0;
  max-width: 72ch;
}
.usage {
  border-top: 1px solid var(--line);
  margin-top: 44px;
  padding-top: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.usage p {
  color: var(--muted);
  font-size: 12px;
  margin: 7px 0 0;
}
.usage p:first-of-type {
  color: #35443a;
  font-size: 13px;
}
details {
  margin-top: 30px;
  font-size: 12px;
  color: var(--muted);
  max-width: 72ch;
}
summary {
  cursor: pointer;
  width: fit-content;
  color: #394f40;
}
details p {
  padding-left: 15px;
}
footer {
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  gap: 16px;
}
.noscript {
  margin: 20px auto;
  max-width: 72ch;
  padding: 0 24px;
  font-size: 14px;
}
* {
  scrollbar-color: #a6b6a5 #f6f7f3;
  scrollbar-width: thin;
}
@keyframes reveal {
  from {
    clip-path: inset(0 0 20% 0);
    opacity: 0.75;
  }
  to {
    clip-path: inset(0);
    opacity: 1;
  }
}
@media (max-width: 600px) {
  .site-header,
  footer {
    padding: 20px 22px;
  }
  main {
    margin: 35px auto 54px;
    padding: 0 22px;
  }
  .header-note {
    font-size: 11px;
  }
  .intro {
    font-size: 14px;
    margin-bottom: 30px;
  }
  .input-row {
    flex-direction: column;
  }
  .input-row button {
    width: 100%;
    padding: 13px;
  }
  .mobile-break {
    display: block;
  }
  .examples {
    gap: 5px 12px;
  }
  .result {
    padding: 20px;
  }
  .usage {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 28px;
  }
  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .result {
    animation: none;
  }
}
