:root { --ink: #1d2b3a; --muted: #5b6b7b; --line: #d7dee6; --brand: #1f5f99; --bad: #a12c2c; --ok: #1d6b3a; --bg: #f3f6f9; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", system-ui, sans-serif; color: var(--ink); background: var(--bg); }
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; background: #183650; }
.top a, .top .link { color: #fff; text-decoration: none; margin-left: 16px; font: inherit; }
.brand { font-weight: 700; margin-left: 0 !important; font-size: 1.15rem; }
main { max-width: 960px; margin: 32px auto; padding: 0 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 24px; max-width: 520px; margin: 0 auto; }
.card.wide { max-width: none; }
h1 { font-size: 1.6rem; margin-top: 0; }
label { display: block; margin: 14px 0 6px; font-weight: 600; }
input, select { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
button, .button { display: inline-block; margin-top: 16px; padding: 9px 16px; border: 0; border-radius: 6px; background: var(--brand); color: #fff; font: inherit; cursor: pointer; text-decoration: none; }
button.secondary { background: #64748b; }
button.danger { background: var(--bad); }
.link { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
.inline { display: inline; }
.error { color: var(--bad); font-weight: 600; }
.ok { color: var(--ok); font-weight: 600; }
.muted { color: var(--muted); }
.secret { font-family: Consolas, monospace; font-size: 1.15rem; background: #fff7e0; border: 1px solid #e8d48a; padding: 10px; border-radius: 6px; word-break: break-all; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
td form { display: inline; }
td button { margin: 0 4px 4px 0; padding: 5px 10px; }
.codes { columns: 2; font-family: Consolas, monospace; }
.qr { display: block; margin: 12px 0; width: 220px; height: 220px; }
.captcha { margin-top: 16px; }
textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.code { font-family: Consolas, monospace; font-size: .92rem; white-space: pre-wrap; }
pre.code { background: #f6f8fa; border: 1px solid var(--line); border-radius: 6px; padding: 10px; }
h2 { font-size: 1.2rem; margin: 24px 0 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.grid.five { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
label.check input { width: auto; }
label.check.inline { display: inline-flex; margin-right: 8px; }
.rules input, .rules select { padding: 5px 6px; }
.button.small { margin: 0 4px 4px 0; padding: 5px 10px; }
.button.secondary { background: #64748b; }
.preview { margin-top: 24px; border-top: 1px solid var(--line); }
.report-frame { width: 100%; height: 480px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
dl.facts dt { font-weight: 600; }
dl.facts dd { margin: 0; word-break: break-word; }
.banner { background: #fff7e0; border-bottom: 1px solid #e8d48a; padding: 10px 24px; }
.banner.bad { background: #fdecec; border-color: #e8a1a1; }
tr.current td { background: #eef5fb; font-weight: 600; }
.filters { margin-bottom: 16px; }
