:root {
  color-scheme: light;
  --ink: #1c2430;
  --muted: #5c6b7a;
  --line: #d5dbe3;
  --paper: #f6f7f9;
  --card: #ffffff;
  --accent: #1f4b99;
  --accent-ink: #ffffff;
  --open: #e5f4ea;
  --closed: #f8e8e8;
  --wait: #e7edf6;
  --warn: #fff6e5;
  --warn-line: #e6c98a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.45;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: white;
  padding: 0.5rem 0.75rem;
}

.skip:focus { left: 0.5rem; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--ink);
  color: white;
}

.site-header a { color: white; }

.site-header nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.site-header nav a,
.site-header nav .linkish { padding: 0.5rem 0; }

@media (max-width: 400px) {
  .site-header {
    flex-wrap: wrap;
    gap: 0 0.75rem;
    padding: 0.35rem 0.75rem;
  }

  .site-header nav { gap: 0.85rem; }
}

.brand { font-weight: 700; text-decoration: none; }

main {
  width: min(40rem, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

body.admin main { width: min(56rem, calc(100% - 1.5rem)); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.card.narrow { max-width: 28rem; margin-inline: auto; }

@media (max-width: 400px) {
  main { width: calc(100% - 1rem); padding-top: 0.75rem; }
  .card { padding: 1rem; }
  .card.result { padding: 1.5rem 0.85rem 1.25rem; }
}

.card.highlight { background: var(--open); }

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.6rem; }

h1 { font-size: 1.6rem; }

h2 { font-size: 1.15rem; }

p { margin: 0 0 0.8rem; }

.meta, .lede { color: var(--muted); }

.next-quiz { margin: 0; font-weight: 650; }

.closed-mark {
  margin: 0;
  color: #8c2f2f;
  font-weight: 750;
}

.prompt { white-space: pre-wrap; }

.prompt,
.choice span,
.solutions li,
.reasoning,
.marking-notes { overflow-wrap: anywhere; }

label { display: block; font-weight: 600; margin-bottom: 0.35rem; }

input[type="text"],
input[type="password"],
input[type="number"],
input[type="datetime-local"],
input[type="file"],
textarea,
select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  margin-bottom: 0.9rem;
}

textarea { resize: vertical; }

[hidden] { display: none !important; }

button,
a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

button.secondary,
a.button.secondary {
  background: white;
  color: var(--accent);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

button.danger {
  background: white;
  color: #8c2f2f;
  border-color: #8c2f2f;
}

button.linkish {
  background: none;
  border: none;
  color: white;
  min-height: 0;
  padding: 0;
  text-decoration: underline;
  font-weight: 500;
}

form.inline { margin: 0; }

.inline-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: end;
  margin-bottom: 0.9rem;
}

.inline-fields > div { display: flex; flex-direction: column; }

.inline-fields input[type="number"] { width: 6rem; margin: 0; }

.inline-fields label { margin: 0 0 0.35rem; }

.stack button { margin-top: 0.25rem; }

.banner {
  background: var(--warn);
  border: 1px solid var(--warn-line);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  transition: opacity 0.35s ease, margin 0.35s ease, padding 0.35s ease, border-width 0.35s ease;
}

.banner.is-leaving {
  opacity: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .banner { transition: none; }
}

.status {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  background: var(--wait);
}

.status p { margin: 0; }

.status.phase-open { background: var(--open); }

.status.phase-closed { background: var(--closed); }

.time {
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

.time-bar {
  height: 0.22rem;
  margin: 0 0 1.1rem;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.time-bar > span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--muted);
  transform-origin: left center;
  transform: scaleX(var(--time-ratio));
}

@media (prefers-reduced-motion: no-preference) {
  .time-bar > span {
    animation-name: time-drain;
    animation-duration: var(--time-left);
    animation-timing-function: linear;
    animation-fill-mode: forwards;
  }
}

@keyframes time-drain {
  to { transform: scaleX(0); }
}

.choices { display: grid; gap: 0.55rem; margin: 0.8rem 0 1rem; }

.choice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 500;
}

.choice input { flex: none; margin-top: 0.2rem; width: 1.15rem; height: 1.15rem; }

.choice:has(input:checked) {
  border-color: var(--accent);
  background: #e8f0ff;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  background: #e6eaf0;
  font-size: 0.85rem;
  font-weight: 650;
}

.badge.phase-scheduled { background: var(--wait); }

.badge.phase-open { background: #d8f3e2; }

.badge.phase-closed { background: #f3d8d8; }

.table-wrap { overflow-x: auto; margin-bottom: 1rem; }

table { width: 100%; border-collapse: collapse; }

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

thead th { background: white; }

th.num,
td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

tfoot th,
tfoot td { font-weight: 700; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.section-head h1,
.section-head h2 { margin: 0; }

.section-head button { margin-top: 0; }

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.choice-editor {
  border: 0;
  margin: 0 0 0.4rem;
  padding: 0;
}

.choice-editor legend {
  font-weight: 600;
  padding: 0;
  margin-bottom: 0.35rem;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.choice-row input[type="text"] {
  flex: 1 1 12rem;
  width: auto;
  min-width: 0;
  margin: 0;
}

.correct-flag {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-weight: 600;
  white-space: nowrap;
}

.choice-row button { margin-top: 0; }

.modal {
  width: min(36rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 16px 40px rgba(28, 36, 48, 0.18);
}

.modal::backdrop { background: rgba(28, 36, 48, 0.45); }

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.question-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: question;
  display: grid;
  gap: 0.75rem;
}

.question-item {
  counter-increment: question;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem 0.75rem;
}

.question-item .prompt { margin: 0; }

.question-item .prompt::before {
  content: counter(question) ". ";
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.question-item > ul {
  margin: 0.4rem 0 0.75rem;
  padding-left: 1.15rem;
}

.item-kind { margin: 0 0 0.35rem; }

.marking-notes {
  white-space: pre-wrap;
  margin: 0.45rem 0 0.75rem;
}

.solution-figure { margin: 0.35rem 0 0.85rem; }

svg.solution-diagram {
  display: block;
  margin-inline: auto;
  max-width: 100%;
  height: auto;
  padding: 0.5rem;
  box-sizing: content-box;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
}

.item-editor { margin-top: 0.75rem; }

.item-editor summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  width: fit-content;
  cursor: pointer;
  font-weight: 650;
}

.item-editor .test-item-form { margin-top: 0.75rem; }

.test-item-form:has(select[name="kind"] option[value="choice"]:checked) .item-notes,
.test-item-form:has(select[name="kind"] option[value="choice"]:checked) .item-criteria,
.test-item-form:has(select[name="kind"] option:not([value="choice"]):checked) .item-choices {
  display: none;
}

.criterion-row input[type="number"] { width: 5.5rem; margin: 0; }

.criteria-total { margin: 0 0 0.6rem; font-weight: 600; }

.criteria-total.off { color: #8a1f1f; }

.criteria {
  list-style: none;
  padding: 0;
  margin: 0.2rem 0 0.75rem;
}

.criteria li { margin: 0.2rem 0; }

.criterion-points {
  display: inline-block;
  min-width: 3.6rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.reorder,
.item-actions {
  display: flex;
  align-items: center;
}

.reorder { gap: 0; }

.item-actions {
  gap: 0.45rem;
  margin-left: auto;
}

.row-actions form { margin: 0; }

.reorder button {
  width: 2.75rem;
  padding: 0;
}

.reorder button:focus-visible { position: relative; z-index: 1; }

.reorder button[value="up"] { border-radius: 8px 0 0 8px; }

.reorder button[value="down"] {
  border-radius: 0 8px 8px 0;
  margin-left: -1px;
}

.reorder button:disabled {
  opacity: 1;
  color: #b7c0cb;
  background: var(--paper);
  cursor: not-allowed;
}

.is-correct,
.is-selected {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.is-correct { color: #1d6b3a; }

.is-selected { color: var(--accent); }

.card.result {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 2rem 1.4rem 1.5rem;
  background: var(--open);
}

.result-kicker {
  margin: 0 0 0.15rem;
  font-size: 1.7rem;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.result-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0.15rem 0 0.35rem;
}

.result-count {
  font-size: clamp(4.5rem, 18vw, 6.2rem);
  line-height: 0.85;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
  color: var(--accent);
}

.result-of {
  margin-top: 0.35rem;
  color: var(--muted);
  font-weight: 700;
}

.result-line {
  margin: 0.35rem 0 0;
  font-size: 1.15rem;
  font-weight: 650;
}

.result-later {
  max-width: 22rem;
  margin: 1rem auto 0;
  color: var(--muted);
}

.runner-wrap { margin-top: 1.15rem; }

.runner {
  display: block;
  width: 100%;
  height: 150px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  touch-action: none;
  cursor: pointer;
}

.runner,
.runner-controls button {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.runner-controls {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.runner-controls button {
  min-height: 56px;
  touch-action: none;
}

.runner-help-touch { display: none; }

@media (pointer: coarse) {
  .runner-controls { display: grid; }
  .runner-help-keys { display: none; }
  .runner-help-touch { display: inline; }
}

.runner-status {
  margin: 0.55rem 0 0;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.runner-help { margin: 0.15rem 0 0; text-align: center; }

.runner-note { margin: 0 0 0.7rem; text-align: center; }

.result-recap { font-weight: 700; }

.result-burst {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 0;
  height: 0;
  pointer-events: none;
}

.result-burst span {
  position: absolute;
  width: 0.5rem;
  height: 0.5rem;
  margin: -0.25rem;
  border-radius: 999px;
  opacity: 0;
}

.result-burst span:nth-child(odd) { background: var(--accent); }
.result-burst span:nth-child(even) { background: var(--muted); }
.result-burst span:nth-child(1) { --dx: -7.5rem; --dy: -4.2rem; }
.result-burst span:nth-child(2) { --dx: 7.2rem; --dy: -3.4rem; }
.result-burst span:nth-child(3) { --dx: -5.2rem; --dy: 2.4rem; }
.result-burst span:nth-child(4) { --dx: 5.6rem; --dy: 2.1rem; }
.result-burst span:nth-child(5) { --dx: -1.2rem; --dy: -5.4rem; }
.result-burst span:nth-child(6) { --dx: 1.4rem; --dy: 3.6rem; }
.result-burst span:nth-child(7) { --dx: -8.4rem; --dy: -0.4rem; }
.result-burst span:nth-child(8) { --dx: 8.2rem; --dy: -0.2rem; }

@media (prefers-reduced-motion: no-preference) {
  .result-count {
    animation: result-pop 0.62s cubic-bezier(0.16, 0.84, 0.3, 1.25) both;
  }

  .result-burst span {
    animation: result-spark 0.95s ease-out both;
  }
}

@keyframes result-pop {
  0% { transform: scale(0.72); opacity: 0; }
  60% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes result-spark {
  0% { transform: translate(0, 0) scale(0.4); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .result-burst { display: none; }
}

.solutions {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
  display: grid;
  gap: 0.45rem;
}

.solutions li {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.solutions li.solution-picked {
  box-shadow: inset 3px 0 0 var(--accent);
}

.solutions li.solution-picked:not(.solution-correct) {
  background: var(--closed);
  border-color: #e4b7b7;
}

.solutions li.solution-correct {
  background: #e5f6eb;
  border-color: #8dcaa4;
}

.counts { list-style: none; padding: 0; margin: 0 0 1rem; }

.count-label { display: flex; justify-content: space-between; gap: 1rem; }

.bar {
  height: 0.45rem;
  background: #e6eaf0;
  border-radius: 999px;
  overflow: hidden;
  margin: 0.25rem 0 0.7rem;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.katex.space-before { margin-left: 0.1em; }

.katex.space-after { margin-right: 0.1em; }

.katex-display {
  margin: 0.45rem 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.draft-list { list-style: none; padding: 0; margin: 0 0 1rem; }

.draft-list > li { margin-bottom: 0.75rem; }

.draft-question {
  display: grid;
  grid-template-rows: auto auto;
}

.draft-question > .choice { grid-row: 1; grid-column: 1; margin: 0; }

.draft-question:has(.source-pages) > .choice { padding-bottom: 2.35rem; }

.draft-list .choice span { flex: 1; min-width: 0; }

.draft-list .prompt { margin-bottom: 0.35rem; font-weight: 650; }

.draft-list ul { margin: 0; padding-left: 1.1rem; font-weight: 400; }

.source-pages {
  grid-row: 1 / span 2;
  grid-column: 1;
  display: grid;
  grid-template-rows: subgrid;
  margin: 0;
  pointer-events: none;
}

.source-pages summary {
  grid-row: 1;
  justify-self: end;
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0 0.7rem 0.5rem 0;
  padding: 0.15rem 0.2rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  pointer-events: auto;
  z-index: 1;
}

.source-pages summary::-webkit-details-marker { display: none; }

.source-pages summary::marker { content: ""; }

.source-pages summary::after {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.2 3.1 10.9 8 5.2 12.9' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5.2 3.1 10.9 8 5.2 12.9' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform 0.15s ease;
}

.source-pages[open] summary::after { transform: rotate(90deg); }

.source-pages summary:hover,
.source-pages[open] summary { color: var(--ink); }

.source-page-list {
  grid-row: 2;
  display: grid;
  gap: 0.85rem;
  margin-top: 0.65rem;
  pointer-events: auto;
}

.source-page-list figure { margin: 0; }

.source-page-list figcaption {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 650;
}

.source-page-list img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.card > form + form { margin-top: 0.75rem; }

.generate-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-weight: 650;
}

.generate-status[hidden] { display: none; }

.spinner {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
}

.print-run { margin-top: 0.75rem; }

.print-run summary { cursor: pointer; }

.scan-uploads { padding-left: 1.1rem; margin: 0.9rem 0 0; }

.scan-uploads progress { display: block; width: 100%; max-width: 24rem; margin-top: 0.25rem; }

.scan-list { list-style: none; padding: 0; margin: 0; }

.scan-item {
  display: grid;
  grid-template-columns: minmax(8rem, 14rem) 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.scan-item img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.missing-page { color: #8a1f1f; text-decoration: line-through; }

.error-text { color: #8a1f1f; }

table.grades th.num, table.grades td.num, .criteria-grades td.num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.check-mark {
  display: inline-block;
  padding: 0 0.3rem;
  border-radius: 4px;
  background: var(--warn);
  border: 1px solid var(--warn-line);
  font-size: 0.75rem;
  font-weight: 650;
}

.grade-points { margin: 0; font-size: 1.15rem; font-variant-numeric: tabular-nums; }

.graded-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 760px) {
  .graded-layout { grid-template-columns: 1fr; }
}

.scan-pages img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

details.scan-pages { margin-top: 0.75rem; }

details.scan-pages summary { cursor: pointer; font-weight: 600; margin-bottom: 0.5rem; }

.read-choices { list-style: none; padding: 0; margin: 0 0 0.75rem; }

.read-choices li { margin: 0.35rem 0; }

.tick-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  font-size: 0.8rem;
  vertical-align: -0.15rem;
}

.reasoning { color: var(--ink); margin: 0.2rem 0 0.6rem; white-space: pre-wrap; }

.criteria-grades { width: 100%; }

.criteria-grades td { vertical-align: top; padding: 0.5rem 0.4rem; border-top: 1px solid var(--line); }

.criterion-text { font-weight: 600; margin: 0; }

.total-points { font-size: 1.2rem; margin: 0 0 0.5rem; font-variant-numeric: tabular-nums; }

.flag-status {
  margin-top: 0.75rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--warn-line);
  background: var(--warn);
  border-radius: 6px;
}

.flag-status p { margin: 0.2rem 0; }

.flag-form { margin-top: 0.75rem; }

.flag-form summary { cursor: pointer; font-weight: 600; }

.choice-check { display: flex; gap: 0.5rem; align-items: baseline; margin: 0.4rem 0; font-weight: 400; }

.review-criterion {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  margin: 0 0 0.6rem;
}

.review-criterion legend { font-weight: 600; padding: 0 0.3rem; }

.button.small { padding: 0.25rem 0.6rem; font-size: 0.85rem; margin-left: 0.5rem; vertical-align: middle; }
