:root {
  font-family: Inter, 'MiSans', 'Microsoft YaHei', sans-serif;
  color: #1b2b40;
  background: #f5f7fb;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px max(24px, calc((100vw - 1480px) / 2));
  background: #fff;
  border-bottom: 1px solid #dce3ed;
  gap: 24px;
}
.brand {
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  color: #243c66;
}
.brand span {
  font-size: 13px;
  margin-left: 12px;
  color: #6b7e99;
  font-weight: 400;
}
nav {
  display: flex;
  gap: 24px;
}
a {
  color: #365ac4;
  text-underline-offset: 4px;
}
nav a {
  text-decoration: none;
  color: #68788e;
}
nav a[aria-current] {
  color: #3158c3;
}
main {
  max-width: 1528px;
  margin: auto;
  padding: 42px 24px;
}
.heading,
.detail-bar,
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #6e81a0;
  margin: 0;
}
h1 {
  font-size: 32px;
  margin: 10px 0;
}
h2 {
  font-size: 18px;
  margin: 30px 0 14px;
}
.muted {
  color: #697a90;
  line-height: 1.8;
}
.status {
  background: #eaf0fb;
  color: #365074;
  padding: 14px 18px;
  border-radius: 10px;
  line-height: 1.7;
}
.error {
  background: #ffe9e8;
  color: #9c2424;
  padding: 14px;
  border-radius: 10px;
}
form {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: end;
  margin: 26px 0;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #68788e;
}
input,
textarea,
button {
  font: inherit;
  border: 1px solid #cdd7e5;
  border-radius: 7px;
  padding: 10px 13px;
  background: white;
  color: #243c66;
}
button {
  cursor: pointer;
  white-space: nowrap;
}
button:hover {
  background: #eaf0fb;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
input:focus,
button:focus-visible,
textarea:focus {
  outline: 2px solid #6289df;
  outline-offset: 2px;
}
.table-wrap {
  overflow: auto;
  background: white;
  border: 1px solid #dce3ed;
  border-radius: 12px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
th,
td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid #e7ecf3;
}
th {
  font-size: 12px;
  color: #62748f;
  background: #f0f4fa;
  font-weight: 500;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #f8faff;
}
.pager {
  justify-content: flex-end;
  margin-top: 18px;
  color: #6b7b90;
}
.badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 5px;
  background: #edf1f7;
  color: #455f81;
  font-size: 12px;
}
.final {
  background: #e4f2eb;
  color: #287453;
}
.summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: #dfe6f0;
  border: 1px solid #dfe6f0;
  border-radius: 10px;
  overflow: hidden;
}
.summary div {
  background: white;
  padding: 18px;
}
.summary span {
  display: block;
  color: #718097;
  font-size: 12px;
  margin-bottom: 9px;
}
.summary strong {
  font-size: 16px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
details {
  margin-top: 30px;
  padding: 18px;
  border: 1px solid #dce3ed;
  border-radius: 10px;
  background: white;
}
summary {
  cursor: pointer;
  color: #4b6489;
}
pre {
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
dialog {
  border: 1px solid #ccd7e5;
  border-radius: 12px;
  max-width: min(1000px, 94vw);
  width: 100%;
  max-height: 85vh;
  padding: 24px;
}
dialog::backdrop {
  background: #14253d88;
}
footer {
  padding: 26px;
  color: #7a879a;
  font-size: 12px;
  text-align: center;
}
#moderate {
  display: grid;
  max-width: 700px;
}
#moderate label:first-child {
  display: block;
}
#event-title {
  overflow-wrap: anywhere;
}
.empty {
  text-align: center;
  color: #8592a4;
  padding: 40px;
}
#archive-status {
  line-height: 1.9;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  header {
    align-items: start;
    flex-direction: column;
    padding: 18px;
  }
  main {
    padding: 28px 16px;
  }
  h1 {
    font-size: 27px;
  }
  form label {
    flex: 1;
    min-width: 140px;
  }
  .brand span {
    margin-left: 8px;
  }
  th,
  td {
    padding: 12px;
  }
  nav {
    font-size: 13px;
  }
  .summary {
    grid-template-columns: 1fr 1fr;
  }
}
table:has(> #events) > thead {
  display: none;
}
.region-group > summary {
  cursor: pointer;
  padding: 12px 4px;
  font-weight: 600;
}
.region-group > .table-wrap {
  margin-top: 8px;
}
