:root {
	--bg: #f6f7f9; --panel: #fff; --text: #1c2330; --muted: #637083; --line: #dde2e9;
	--accent: #2557d6; --warn-bg: #fff4d6; --warn: #8a5a00; --bad: #b42318; --good: #1f7a3d;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px;
}
@media (prefers-color-scheme: dark) {
	:root { --bg: #14171c; --panel: #1c2027; --text: #e4e8ee; --muted: #93a0b2; --line: #2e3540;
		--accent: #7ea2ff; --warn-bg: #3a2f12; --warn: #f2c55c; --bad: #ff8a80; --good: #7bd88f; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
header { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
	padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
header nav { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.brand { font-weight: 600; color: var(--text); text-decoration: none; }
a { color: var(--accent); }
main { padding: 16px; max-width: 1200px; margin: 0 auto; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-bottom: 14px; }
form.search { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
form.search .term { flex: 1 1 320px; }
form.search .term input { width: 100%; }
label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
input, select, button, textarea { font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line);
	border-radius: 6px; padding: 6px 8px; }
button { cursor: pointer; background: var(--accent); color: #fff; border-color: var(--accent); }
button.plain { background: var(--panel); color: var(--text); border-color: var(--line); }
input[type=checkbox] { padding: 0; }
.check { flex-direction: row; align-items: center; color: var(--text); font-size: 13px; padding-bottom: 7px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; }
tr.attention td { background: var(--warn-bg); }
tr.click { cursor: pointer; }
tr.click:hover td { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.muted { color: var(--muted); }
.status-refunded, .status-revoked, .bad { color: var(--bad); }
.status-delivered, .good { color: var(--good); }
.status-verified, .warn { color: var(--warn); }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
h1 { font-size: 18px; margin: 0 0 10px; }
h2 { font-size: 15px; margin: 0 0 8px; }
.detail { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 560px; }
.login { max-width: 340px; margin: 60px auto; display: flex; flex-direction: column; gap: 10px; }
.error { color: var(--bad); }
.note { color: var(--muted); font-size: 12px; }
.buttons { display: flex; flex-wrap: wrap; gap: 8px; }
button:disabled { opacity: .45; cursor: not-allowed; }
.action-form form { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.action-form textarea { width: 100%; }
.action-form p { margin: 0; }
