:root {
  --text: #1b1b1b;
  --muted: #505a5f;
  --bg: #ffffff;
  --panel: #f3f2f1;
  --link: #1d4fb3;
  --accent: #1d4fb3;
  --error: #b10e1e;
  --ok: #00703c;
  --focus: #ffbf47;
  --border: #b1b4b6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --text: #f3f2f1; --muted: #c8c8c8; --bg: #121212; --panel: #1f1f1f;
    --link: #8ab4ff; --accent: #8ab4ff; --error: #ff8a8a; --ok: #7bd88f; --border: #6f777b;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 1.125rem/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--link); text-underline-offset: 0.15em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--focus); color: #000; padding: 0.5rem 1rem; }
.skip:focus { left: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

header.site { background: var(--panel); border-bottom: 1px solid var(--border); padding: 0.75rem 1rem; }
header.site .brand { margin: 0 0 0.5rem; font-weight: 700; }
header.site .brand a { color: var(--text); text-decoration: none; font-size: 1.4rem; }
header.site .brand span { color: var(--muted); font-weight: 400; margin-left: 0.5rem; }
header.site nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
header.site nav a[aria-current="page"] { font-weight: 700; text-decoration-thickness: 3px; }
.signout { margin-top: 0.5rem; color: var(--muted); font-size: 1rem; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

main { max-width: 72rem; padding: 1rem; margin: 0 auto; }
main:focus { outline: none; }
h1 { font-size: 2rem; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; }

.field { margin: 0 0 1.25rem; }
.field label, fieldset legend { display: block; font-weight: 700; margin-bottom: 0.25rem; }
.hint { color: var(--muted); margin: 0 0 0.25rem; }
input[type=email], input[type=password], input[type=text] {
  width: 100%; max-width: 32rem; padding: 0.5rem; font: inherit; color: var(--text); background: var(--bg);
  border: 2px solid var(--text); border-radius: 0;
}
.has-error { border-left: 5px solid var(--error); padding-left: 0.75rem; }
.has-error input { border-color: var(--error); }
.field-error { color: var(--error); font-weight: 700; margin: 0 0 0.25rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
.choice { margin: 0.25rem 0; }
.choice input, .show-password input { width: 1.25rem; height: 1.25rem; vertical-align: middle; margin-right: 0.5rem; }
.choice label, .show-password label { display: inline; font-weight: 400; }

button, .button {
  display: inline-block; font: inherit; font-weight: 700; padding: 0.5rem 1rem; cursor: pointer;
  color: #fff; background: var(--accent); border: 2px solid transparent; text-decoration: none;
}
@media (prefers-color-scheme: dark) { button, .button { color: #000; } }
button.link { background: none; color: var(--link); padding: 0; font-weight: 400; text-decoration: underline; }
td form, th form { margin: 0; }
td button { font-size: 1rem; padding: 0.25rem 0.75rem; }

.error-summary { border: 4px solid var(--error); padding: 0.75rem 1rem; margin-bottom: 1.5rem; }
.error-summary h2 { margin-top: 0; font-size: 1.25rem; }
.error-summary a { color: var(--error); font-weight: 700; }
.notice { border-left: 5px solid var(--ok); padding: 0.5rem 0.75rem; background: var(--panel); }

.table-wrap { overflow-x: auto; margin: 0 0 1rem; }
table { border-collapse: collapse; }
caption { text-align: left; font-weight: 700; padding: 0.25rem 0; }
th, td { text-align: left; vertical-align: top; padding: 0.4rem 0.6rem; border-bottom: 1px solid var(--border); }
thead th { border-bottom: 2px solid var(--text); }
tbody th { font-weight: 400; }
