:root {
  --bg: #f6f7f9; --panel: #ffffff; --line: #d7dbe2; --text: #1b1f27; --muted: #5a6372; --accent: #b45309; --accent-bg: #fff4e0;
  --good: #166534; --bad: #b42318; --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
:root[data-theme="dark"] { --bg: #14171c; --panel: #1c2027; --line: #343a46; --text: #e7e9ee; --muted: #9aa3b2; --accent: #f59e0b; --accent-bg: #2b2315; --good: #4ade80; --bad: #f87171; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #14171c; --panel: #1c2027; --line: #343a46; --text: #e7e9ee; --muted: #9aa3b2; --accent: #f59e0b; --accent-bg: #2b2315; --good: #4ade80; --bad: #f87171; }
}
* { box-sizing: border-box; }
html { color-scheme: light dark; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--sans); }
main { max-width: 760px; margin: 0 auto; padding: 32px 16px 64px; }
header { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
header img { width: 48px; height: 48px; flex: none; }
h1 { font-size: 1.7rem; line-height: 1.2; margin: 0; }
h2 { font-size: 1.15rem; margin: 32px 0 8px; }
p, li { max-width: 68ch; }
.lead { font-size: 1.1rem; color: var(--muted); margin: 4px 0 20px; }
a { color: var(--accent); }
a.button, button { display: inline-block; font: inherit; font-weight: 600; background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 10px 16px; min-height: 44px; cursor: pointer; text-decoration: none; }
:root[data-theme="dark"] a.button, :root[data-theme="dark"] button.primary { color: #1c1300; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) a.button, :root:not([data-theme="light"]) button.primary { color: #1c1300; } }
button.plain { background: transparent; color: var(--text); border: 1px solid var(--line); font-weight: 500; }
button:disabled { opacity: 0.55; cursor: default; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 12px 0; }
.card h3 { margin: 0 0 6px; font-size: 1rem; }
.steps { padding-left: 1.2em; }
.steps li { margin: 6px 0; }
code, .mono { font-family: var(--mono); font-size: 0.9em; }
.mono { overflow-wrap: anywhere; word-break: break-all; }
.note { color: var(--muted); font-size: 0.92rem; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.actions { margin: 20px 0; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 8px 0 0; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; min-width: 0; }
label { display: block; font-weight: 600; margin: 12px 0 4px; }
input, textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; min-height: 44px; }
textarea { font-family: var(--mono); font-size: 0.85rem; min-height: 96px; }
.pair { display: grid; grid-template-columns: 1fr 110px; gap: 10px; }
.status { margin: 10px 0 0; min-height: 1.4em; }
.status.bad { color: var(--bad); }
.status.good { color: var(--good); }
fieldset { border: 0; padding: 0; margin: 12px 0 0; }
fieldset label { font-weight: 500; display: flex; gap: 8px; margin: 6px 0; align-items: flex-start; }
fieldset input { width: auto; min-height: 0; margin-top: 5px; }
@media (max-width: 480px) { h1 { font-size: 1.4rem; } .pair { grid-template-columns: 1fr 90px; } }
