:root {
  --bg: #f7f7fb; --paper: #fff; --ink: #222337; --muted: #575b70;
  --line: #ddddeb; --accent: #5833a3; --soft: #f1edf9;
  color-scheme: light dark;
  font: 16px/1.6 system-ui, "Microsoft YaHei", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #191823; --paper: #222231; --ink: #f0eef9; --muted: #bdbed1;
    --line: #48485c; --accent: #cdb4fa; --soft: #302642; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--bg); }
.wrap { width: min(940px, calc(100% - 2rem)); margin-inline: auto; }
.site-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 52px; }
.site-head span { font-weight: 650; }
a { color: var(--accent); text-underline-offset: .2em; }
h1, h2, p, dl, dd { margin: 0; }
h1 { margin-top: clamp(1.5rem, 6vw, 3.5rem); font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.2; }
h2 { font-size: 1.2rem; }
.intro { margin: .65rem 0 1.55rem; color: var(--muted); }
.panel, .make-list article { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: clamp(1rem, 3.5vw, 1.5rem); }
.panel { max-width: 590px; }
label { display: block; margin: .8rem 0 .25rem; font-weight: 600; }
.unlock-field { display: flex; flex-wrap: wrap; gap: .55rem; }
input, button { font: inherit; min-height: 44px; border-radius: 8px; padding: .45rem .75rem; }
input { flex: 1 1 13rem; min-width: 0; background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
button { cursor: pointer; color: var(--paper); background: var(--accent); border: 1px solid var(--accent); font-weight: 650; }
button.secondary { color: var(--accent); background: var(--paper); }
button:disabled { cursor: default; opacity: .65; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.subtle { color: var(--muted); font-size: .9rem; }
.panel .subtle, #message { margin-top: .7rem; }
#message { color: var(--accent); }
.status-bar { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .8rem; }
.notice { padding: .8rem 1rem; margin-bottom: .8rem; background: var(--soft); border-inline-start: 3px solid var(--accent); }
.notice p + p { margin-top: .35rem; }
.make-list { display: grid; gap: .65rem; padding-bottom: 2rem; }
.make-list article header { margin-bottom: .7rem; }
.make-list code { color: var(--muted); overflow-wrap: anywhere; }
dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
dl > div { border-top: 1px solid var(--line); padding-top: .55rem; }
dt { color: var(--muted); font-size: .86rem; font-weight: 600; }
dd p { overflow-wrap: anywhere; }
.source-status { font-weight: 600; }
.mismatch { margin-top: .65rem; color: var(--accent); }
@media (max-width: 490px) {
  dl { grid-template-columns: 1fr; }
  .wrap { width: calc(100% - 1.25rem); }
}
