:root {
  color-scheme: light;
  font-family: "Instrument Sans", "Microsoft YaHei", system-ui, sans-serif;
  color: #172524;
  background: #f4f6f5;
  --muted: #506461;
  --line: #dbe4e1;
  --accent: #106553;
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.6; }
.wrap { width: min(100% - 40px, 760px); margin-inline: auto; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 12px; align-items: center; padding-block: 15px; font-weight: 700; }
.mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: #fff; }
main { padding-block: 42px; }
.intro { margin-bottom: 26px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 6vw, 2.75rem); line-height: 1.2; }
.intro p { margin-top: 12px; color: var(--muted); }
.card { padding: 22px; margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
h2 { margin-bottom: 12px; font-size: 1.17rem; }
.field-label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .88rem; }
.address, .key-row { display: flex; align-items: stretch; gap: 10px; }
output, input { min-width: 0; flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
output { background: #f3f8f6; color: #174a3e; overflow-wrap: anywhere; }
pre, code, output, .models { font-family: "IBM Plex Mono", Consolas, monospace; font-size: .88rem; }
button, input { font: inherit; }
button { border: 1px solid var(--accent); border-radius: 8px; padding: 9px 14px; background: var(--accent); color: #fff; white-space: nowrap; cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
button:hover:not(:disabled) { background: #0b5243; }
#copy-url { color: var(--accent); background: #fff; }
#copy-url:hover { background: #eaf3ef; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hint { color: var(--muted); font-size: .88rem; margin-top: 8px; }
.hint:empty { margin: 0; }
.models { max-height: 240px; overflow: auto; margin: 12px 0 0; padding: 0; list-style: none; }
.models li { padding: 7px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
pre { margin: 12px 0 0; padding: 14px; overflow: auto; border-radius: 8px; color: #eff8f5; background: #172c28; }

@media (max-width: 520px) {
  .wrap { width: calc(100% - 28px); }
  main { padding-block: 30px; }
  .card { padding: 16px; }
  .address, .key-row { flex-direction: column; }
  .address button, .key-row button { align-self: flex-start; }
}
