:root {
  color-scheme: light;
  --paper: #f7f7fb;
  --white: #fff;
  --ink: #191a2c;
  --muted: #5a5c73;
  --line: #e6e5ef;
  --accent: #5544b9;
  --pale: #eeebfc;
  --danger: #9b411f;
  font-family: system-ui, -apple-system, sans-serif;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.45;
}
.top {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px max(24px, calc((100vw - 1280px) / 2));
  min-height: 65px;
}
.brand {
  font-weight: 750;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mark {
  background: var(--accent);
  color: white;
  border-radius: 9px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 22px;
}
main {
  max-width: 1328px;
  padding: 44px 24px;
  margin: auto;
}
.hero, .toolbar, .actions, .dialog-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero, .dialog-head {
  justify-content: space-between;
}
h1, h2, p {
  margin: 0;
}
h1 {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.025em;
}
.hero p, .gate p {
  color: var(--muted);
  margin-top: 8px;
}
button, .quiet, .primary {
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  border-radius: 9px;
  padding: 9px 13px;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.quiet {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
}
.primary {
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
}
.quiet:hover {
  background: var(--pale);
}
.primary:hover {
  background: #433399;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.stat {
  padding: 16px 19px;
  display: grid;
  gap: 5px;
}
.stat span, .footnote, .secondary, .empty {
  color: var(--muted);
  font-size: 13px;
}
.stat strong {
  font-size: 28px;
}
.toolbar {
  padding: 14px;
  justify-content: flex-end;
}
.search {
  margin-right: auto;
  width: min(320px, 100%);
}
input, select, textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 9px 11px;
  font: inherit;
  font-size: 14px;
  width: 100%;
}
textarea {
  resize: vertical;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  min-width: 895px;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}
th {
  font-size: 12px;
  font-weight: 700;
  background: #f5f4fb;
  color: #4b4d67;
  white-space: nowrap;
}
td, th {
  padding: 12px 13px;
  border-bottom: 1px solid var(--line);
}
td:first-child {
  min-width: 205px;
}
td:last-child {
  min-width: 165px;
}
.channel {
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pale);
  object-fit: cover;
  display: grid;
  place-items: center;
  color: var(--accent);
  flex: none;
  font-weight: 700;
}
.number {
  font-weight: 700;
  white-space: nowrap;
}
.secondary {
  display: block;
}
.spark {
  display: flex;
  gap: 3px;
  align-items: end;
  height: 24px;
  margin-bottom: 3px;
  min-width: 74px;
}
.bar {
  width: 8px;
  background: #8a77dc;
  border-radius: 2px 2px 0 0;
  height: var(--height);
}
.bar.missing {
  background: #eeeef4;
  height: 2px;
}
.row-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}
.row-actions a, .row-actions button {
  font-size: 12px;
  padding: 6px 8px;
}
.badge {
  display: inline-flex;
  background: var(--pale);
  color: #483890;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 650;
}
.badge.warn {
  background: #fff0e8;
  color: var(--danger);
}
.notice, .footnote, .empty {
  padding: 11px 14px;
}
.notice {
  background: var(--pale);
  font-size: 14px;
}
.empty:empty {
  display: none;
}
.gate {
  margin: 32px auto;
  padding: 26px;
  max-width: 470px;
}
form label, dialog label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 650;
}
#login-form {
  display: grid;
  gap: 13px;
  margin-top: 20px;
}
dialog {
  width: min(480px, calc(100% - 30px));
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 22px;
  color: var(--ink);
}
dialog::backdrop {
  background: #25203e66;
}
dialog .actions {
  justify-content: flex-end;
  margin-top: 16px;
}
dialog label, dialog p {
  margin-top: 13px;
}
.message {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 620px) {
  main {
    padding: 26px 14px;
  }
  .hero {
    align-items: start;
    flex-direction: column;
  }
  .summary {
    gap: 7px;
    margin: 18px 0;
  }
  .stat {
    padding: 10px;
  }
  .stat span {
    font-size: 11px;
  }
  .toolbar {
    gap: 5px;
    padding: 8px;
  }
  .toolbar input, .toolbar select, .toolbar button {
    font-size: 12px;
    padding: 7px;
  }
  .top {
    padding-inline: 14px;
  }
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  padding: 1.25rem;
  font-size: .875rem;
}

.site-footer a,
.policy a {
  color: inherit;
}

main.policy {
  max-width: 46rem;
  line-height: 1.6;
}

.policy h2 {
  margin-top: 1.7rem;
}
