:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #1c2230;
  --muted: #4a5468;
  --line: #c9cfdb;
  --accent: #0b5cad;
  --accent-text: #ffffff;
  --warn-bg: #fff4d6;
  --warn-text: #5c3d00;
  --danger: #a3161b;
  --focus: #b4530a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181f;
    --text: #e9edf3;
    --muted: #b7c0cf;
    --line: #3b4456;
    --accent: #7db7ff;
    --accent-text: #0b1420;
    --warn-bg: #3a2e10;
    --warn-text: #ffe2a3;
    --danger: #ff9b9b;
    --focus: #ffb067;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.5 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
}
a {
  color: var(--accent);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 8px;
  background: var(--bg);
  padding: 8px;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 700;
}
main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 16px;
}
section {
  margin: 32px 0;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 0 16px;
  padding: 12px 16px;
}
legend {
  font-weight: 700;
  padding: 0 4px;
}
label {
  display: block;
  margin: 12px 0 4px;
  font-weight: 600;
}
.check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 12px;
}
.check label {
  margin: 0;
  font-weight: 400;
}
.check input {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin: 0;
}
input[type='text'],
input[type='email'],
input[type='number'],
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--muted);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
button,
.button {
  display: inline-block;
  min-height: 44px;
  margin-top: 12px;
  padding: 10px 16px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
button.link {
  margin: 0;
  background: none;
  color: var(--accent);
  text-decoration: underline;
}
button.danger {
  background: var(--danger);
  color: var(--bg);
}
.hint,
.small {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 4px 0;
}
.warn {
  background: var(--warn-bg);
  color: var(--warn-text);
  padding: 8px 12px;
  border-radius: 6px;
}
.scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
}
caption {
  text-align: left;
  font-weight: 700;
  padding: 8px 0;
}
th,
td {
  border-bottom: 1px solid var(--line);
  padding: 8px;
  text-align: left;
  vertical-align: top;
}

/* The public pages (home, set up, help, privacy, terms): the header's links, the footer, a lede and
   a box, in the app page's colours. */
a.brand {
  color: var(--text);
  text-decoration: none;
  min-height: 24px;
}
.top {
  flex-wrap: wrap;
  gap: 8px 16px;
}
.top nav,
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.top nav a,
.foot nav a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}
h1 {
  font-size: 1.9rem;
  line-height: 1.2;
}
.lede {
  font-size: 1.15rem;
}
.box {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  margin: 16px 0;
  padding: 8px 16px;
}
code {
  overflow-wrap: anywhere;
}
.foot {
  max-width: 46rem;
  margin: 32px auto 0;
  padding: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}
