:root {
  --ink: #271B13;
  --paper: #EDF8FA;
  --blue: #0366C4;
  --pink: #FFBAFF;
  --hot: #E5388B;
  --line: #c9dde2;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 system-ui, "Segoe UI", sans-serif;
}
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; font-weight: 700; letter-spacing: .04em;
}
.bar nav { display: flex; align-items: center; gap: 16px; }
.bar nav a, .bar .link { color: var(--pink); }
.bar form { margin: 0; }
.card {
  background: #fff; border: 1px solid var(--line);
  max-width: 520px; margin: 32px auto; padding: 24px 28px;
}
main.wide { max-width: 1100px; margin: 0 auto; padding: 16px; }
main.wide .card { max-width: none; margin: 20px 0; }
h1 { margin: 0 0 12px; font-size: 1.6rem; }
h2 { margin: 20px 0 10px; font-size: 1.15rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0 8px; }
a { color: var(--blue); }
label { display: block; margin: 12px 0 4px; font-weight: 600; }
label.check { font-weight: 400; margin: 6px 0; }
input, select, textarea {
  width: 100%; padding: 8px 10px; font: inherit; color: var(--ink);
  border: 1px solid var(--line); background: #fff;
}
input[type=checkbox] { width: auto; }
.btn {
  display: inline-block; margin-top: 14px; padding: 10px 18px;
  background: var(--blue); color: #fff; border: 0; border-radius: 0;
  font: inherit; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--ink); }
.btn.alt { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.btn.alt:hover { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 0 10px; align-items: flex-start; }
details.key[open] { flex-basis: 100%; }
details.key summary { list-style: none; }
details.key summary::-webkit-details-marker { display: none; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; cursor: pointer; }
.who { margin: 0 0 12px; }
.row { display: flex; gap: 8px; align-items: center; }
.row .btn { margin-top: 0; }
.row input { flex: 1; }
.error { color: var(--hot); font-weight: 600; }
.notice { background: #e2f1fb; border-left: 4px solid var(--blue); padding: 8px 12px; }
form.inline { display: inline; }
.progress { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.progress progress { flex: 1; height: 14px; accent-color: var(--blue); }
.progress span { white-space: nowrap; font-size: .9rem; }
button:disabled { opacity: .6; cursor: wait; }
input.num { width: 5em; flex: none; }
.row span { white-space: nowrap; }
.warn { color: #8a4b00; }
.small { font-size: .9rem; opacity: .8; }
.mono { font-family: ui-monospace, Consolas, monospace; }
.pill { background: var(--pink); color: var(--ink); padding: 1px 8px; font-size: .75rem; text-transform: uppercase; }
table { width: 100%; border-collapse: collapse; background: #fff; margin: 8px 0 16px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f6fbfc; }
td.notes { white-space: pre-wrap; }
