:root { --ink: #111; --muted: #666; --line: #ddd; --accent: #1d4ed8; --ok: #15803d; --bad: #b91c1c; --warn: #b45309; --bg: #fff; }
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.45; color: var(--ink); background: var(--bg); }
header.top { display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; border-bottom: 1px solid var(--line); }
header.top .brand { font-weight: 700; font-size: 18px; text-decoration: none; color: var(--ink); letter-spacing: -0.01em; }
header.top nav { display: flex; gap: 18px; align-items: center; }
header.top nav a { color: var(--ink); text-decoration: none; }
.banner { padding: 6px 24px; font-size: 13px; }
.banner.test { background: #eff6ff; color: #1e3a8a; }
.banner.live { background: #fef2f2; color: #7f1d1d; font-weight: 600; }
.flash { margin: 12px 24px 0; padding: 8px 12px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 4px; font-size: 14px; }
main { max-width: 1040px; margin: 0 auto; padding: 20px 24px 60px; }
footer.foot { padding: 16px 24px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }
h1 { font-size: 24px; margin: 0 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 16px; text-transform: uppercase; letter-spacing: 0.06em; color: #333; margin: 28px 0 8px; display: flex; gap: 12px; align-items: center; }
h3 { font-size: 14px; margin: 16px 0 6px; }
a { color: var(--accent); }
.muted { color: var(--muted); }
.error { color: var(--bad); }
.ok { color: var(--ok); font-weight: 600; }
section { margin-bottom: 8px; }
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th { text-align: left; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
table.list td { padding: 7px 8px; border-bottom: 1px solid #eee; vertical-align: top; }
dl.facts { display: grid; grid-template-columns: 200px 1fr; gap: 4px 12px; margin: 0 0 12px; font-size: 14px; }
dl.facts dt { color: var(--muted); } dl.facts dd { margin: 0; }
form.stack { display: flex; flex-direction: column; gap: 12px; }
form.narrow { max-width: 420px; }
form.row { display: flex; gap: 8px; align-items: center; margin: 8px 0 16px; }
form.inline { display: inline; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
label.check { flex-direction: row; align-items: center; gap: 8px; }
input, select, textarea { font: inherit; padding: 7px 9px; border: 1px solid #bbb; border-radius: 4px; background: #fff; }
input[type=search] { min-width: 320px; }
textarea { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
fieldset { border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px 16px; }
legend { font-weight: 600; font-size: 14px; padding: 0 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
table.entry { border-collapse: collapse; width: 100%; }
table.entry th { text-align: left; font-size: 12px; color: var(--muted); padding: 4px 8px; }
table.entry td { padding: 4px 8px; }
table.entry input { width: 160px; text-align: right; font-variant-numeric: tabular-nums; }
button, .button { font: inherit; font-size: 14px; padding: 8px 14px; border-radius: 4px; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
button.secondary, .button.secondary { background: #fff; color: var(--accent); }
button.small, .button.small { padding: 4px 10px; font-size: 13px; }
button.danger { background: #fff; color: var(--bad); border-color: var(--bad); }
button.link { background: none; border: none; color: var(--ink); padding: 0; cursor: pointer; }
button[disabled] { opacity: 0.5; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 20px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
pre { font-size: 12px; white-space: pre-wrap; background: #f6f6f6; padding: 8px 10px; border-radius: 4px; margin: 6px 0; }
pre.log { max-height: 480px; overflow: auto; }
img.preview { max-width: 100%; border: 1px solid var(--line); }
.status { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 7px; border-radius: 10px; background: #eee; color: #333; vertical-align: middle; }
.status.valid, .status.done, .status.accepted { background: #dcfce7; color: var(--ok); }
.status.invalid, .status.failed, .status.rejected, .status.error { background: #fee2e2; color: var(--bad); }
.status.running, .status.queued, .status.pending, .status.submitted { background: #fef3c7; color: var(--warn); }
details.advanced { margin-top: 24px; } details.advanced summary { cursor: pointer; color: var(--muted); }
@media (max-width: 800px) { .cols, .grid2, dl.facts { grid-template-columns: 1fr; } input[type=search] { min-width: 0; } }
