:root {
  color-scheme: light dark;
  --page-bg: #eef1f4;
  --paper: #ffffff;
  --text: #1b2732;
  --muted: #5c6975;
  --line: #d8dee5;
  --accent: #234e70;
  --error: #c0392b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page-bg: #14181c;
    --paper: #1b2126;
    --text: #e6ebf0;
    --muted: #9aa7b2;
    --line: #303a42;
    --accent: #7fb2dd;
    --error: #e07a6e;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

main {
  width: min(calc(100% - 32px), 860px);
  margin: 32px auto;
  padding: clamp(24px, 5vw, 48px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow-x: auto;
}

h1 {
  margin-top: 0;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
}

h2 {
  margin-top: 2.2rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--line);
}

section {
  margin-bottom: 2rem;
}

h5 {
  margin: 1.2rem 0 0.4rem;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
}

ul.citations {
  font-size: 0.9rem;
  color: var(--muted);
}

th,
td {
  border: 1px solid var(--line);
  padding: 0.4rem 0.6rem;
  text-align: left;
}

input[type='text'],
input[type='password'] {
  font: inherit;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--page-bg);
  color: var(--text);
  width: min(100%, 420px);
}

button,
a.button {
  font: inherit;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button:hover,
a.button:hover {
  opacity: 0.9;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button.secondary {
  background: transparent;
  color: var(--accent);
}

.note {
  color: var(--muted);
}
.error {
  color: var(--error);
}
.status {
  min-height: 1.4em;
}

ul.plain {
  list-style: none;
  padding: 0;
}
ul.plain li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
}
ul.plain li:last-child {
  border-bottom: none;
}
ul.plain button {
  background: transparent;
  border: none;
  color: var(--accent);
  padding: 0;
  text-decoration: underline;
}

.downloads {
  margin-top: 1rem;
}
.downloads a {
  margin-right: 0.6rem;
}

[hidden] {
  display: none !important;
}
