:root {
	--bg: #f7f7f5; --panel: #ffffff; --text: #1d1f21; --muted: #5f6368; --line: #dadce0;
	--accent: #2f6f4e; --accent-text: #ffffff; --error: #b3261e; --info: #1a5fb4;
	--new: #2f6f4e; --updated: #8a5a00; --code: #f1f3f4;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #17181a; --panel: #1f2023; --text: #e8eaed; --muted: #9aa0a6; --line: #3c4043;
		--accent: #6fbf8f; --accent-text: #0d1f15; --error: #f28b82; --info: #8ab4f8;
		--new: #6fbf8f; --updated: #fdd663; --code: #2a2b2e;
	}
}
:root[data-theme="dark"] {
	--bg: #17181a; --panel: #1f2023; --text: #e8eaed; --muted: #9aa0a6; --line: #3c4043;
	--accent: #6fbf8f; --accent-text: #0d1f15; --error: #f28b82; --info: #8ab4f8;
	--new: #6fbf8f; --updated: #fdd663; --code: #2a2b2e;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
main { max-width: 1000px; margin: 0 auto; padding: 24px 16px 64px; }
h1 { font-size: 1.6rem; margin: 0 0 4px; }
h2 { font-size: 1.15rem; margin: 0 0 12px; }
p.lead { color: var(--muted); margin: 0 0 24px; }
section { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 16px; }
#drop { border: 2px dashed var(--line); border-radius: 8px; padding: 28px 16px; text-align: center; cursor: pointer; }
#drop.over { border-color: var(--accent); }
#drop small { color: var(--muted); display: block; margin-top: 6px; }
ul.files { list-style: none; padding: 0; margin: 12px 0 0; }
ul.files li { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
ul.files .name { font-family: ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
ul.files .kind { color: var(--muted); }
ul.files button { margin-left: auto; }
.problem { color: var(--error); }
.option { display: flex; gap: 8px; align-items: center; margin: 8px 0; flex-wrap: wrap; }
.hint { color: var(--muted); font-size: 0.9em; }
input[type="number"] { width: 6em; }
select, input, button { font: inherit; color: inherit; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; }
button.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); padding: 6px 14px; }
button:disabled { opacity: 0.5; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.92em; }
th, td { text-align: left; padding: 4px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td code, li code { background: var(--code); padding: 0 4px; border-radius: 3px; overflow-wrap: anywhere; }
.status-new { color: var(--new); }
.status-updated { color: var(--updated); }
.status-unchanged { color: var(--muted); }
.warn-error { color: var(--error); }
.warn-info { color: var(--info); }
.summary { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.summary div { background: var(--code); border-radius: 6px; padding: 6px 10px; }
details { margin-top: 12px; }
.downloads { display: flex; gap: 8px; flex-wrap: wrap; }
.error-box { color: var(--error); font-weight: 600; }
footer { color: var(--muted); font-size: 0.9em; }
nav.site { display: flex; gap: 16px; margin-bottom: 16px; font-size: 0.95em; }
nav.site a { color: var(--accent); text-decoration: none; }
nav.site a[aria-current="page"] { color: var(--text); font-weight: 600; }
pre.report { background: var(--code); padding: 12px; border-radius: 6px; overflow-x: auto; font-size: 0.9em; }
textarea { font: inherit; color: inherit; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: 4px 6px; width: 100%; }
