:root {
  color-scheme: light dark;
  --fg: #1b1b1b;
  --bg: #fff;
  --muted: #555;
  --line: #d8d8d8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 1rem;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
header, main, section { max-width: 60rem; margin: 0 auto; }
h1 { font-size: 1.25rem; margin: 0 0 0.5rem; }
.notice {
  margin: 0.5rem 0;
  padding-left: 0.75rem;
  border-left: 3px solid var(--muted);
  color: var(--muted);
  font-size: 0.875rem;
}
.notice p { margin: 0.25rem 0; }
.attribution { color: var(--muted); font-size: 0.75rem; }
.filters { display: flex; flex-direction: column; gap: 0.5rem; margin: 1rem 0; }
.filters label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.875rem; }
.filters select, .filters input, .filters button {
  min-height: 2.75rem;
  padding: 0.5rem;
  font: inherit;
}
.filters button { cursor: pointer; }
.status { color: var(--muted); font-size: 0.875rem; }
.events, .diff-events { list-style: none; margin: 0; padding: 0; }
.event { border-top: 1px solid var(--line); }
.event-link {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  width: 100%;
  padding: 0.75rem 0.25rem;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.event-type, .event-date { color: var(--muted); font-size: 0.875rem; }
.diff { margin-top: 1.5rem; border-top: 2px solid var(--line); }
.diff-event h3 { margin: 1rem 0 0.25rem; font-size: 1rem; }
.diff-text { margin: 0; overflow-wrap: anywhere; }
ins { background: rgba(0, 128, 0, 0.18); text-decoration: none; }
del { background: rgba(200, 0, 0, 0.18); }
.meta, .refs { color: var(--muted); font-size: 0.875rem; }
.review { margin-top: 1.5rem; border-top: 2px solid var(--line); }
.review h2 { font-size: 1.1rem; margin: 1rem 0 0.25rem; }
.review-items { list-style: none; margin: 0; padding: 0; }
.review-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}
.review-act, .review-date, .review-reason { color: var(--muted); font-size: 0.875rem; }
.review-reason { margin: 0; }
@media (min-width: 40rem) {
  body { padding: 1.5rem; }
  .filters { flex-direction: row; align-items: flex-end; }
  .filters label { flex: 1; }
}
