:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f0f3f8;
  --text: #17202e;
  --muted: #5a6476;
  --border: #d9dfe9;
  --primary: #1d4e89;
  --primary-hover: #163d6c;
  --primary-soft: #e6eef8;
  --on-primary: #ffffff;
  --strong: #1c7a46;
  --strong-soft: #e3f4ea;
  --developing: #96610a;
  --developing-soft: #fdf3dc;
  --missing: #b4232c;
  --missing-soft: #fbe7e8;
  --focus: #f2a900;
  --shadow: 0 1px 2px rgba(23, 32, 46, 0.06), 0 4px 16px rgba(23, 32, 46, 0.06);
  --radius: 12px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10151d;
    --surface: #18202b;
    --surface-2: #1f2935;
    --text: #e7ecf3;
    --muted: #9ba7b8;
    --border: #2e3a49;
    --primary: #7fb0ec;
    --primary-hover: #a3c7f2;
    --primary-soft: #1e2f45;
    --on-primary: #0d1724;
    --strong: #6fd09a;
    --strong-soft: #173325;
    --developing: #f1c063;
    --developing-soft: #3a2e14;
    --missing: #f38b91;
    --missing-soft: #3d1c20;
    --shadow: none;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

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

.wrap {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 16px;
}

a {
  color: var(--primary);
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--surface);
  padding: 8px 12px;
  z-index: 10;
}
.skip-link:focus {
  left: 8px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  color: var(--primary);
  flex-shrink: 0;
}
.brand-title {
  margin: 0;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
}
.brand-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.status-pill .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
}
.status-pill[data-mode="live"] .dot {
  background: var(--strong);
}
.status-pill[data-mode="demo"] .dot {
  background: var(--developing);
}
.status-pill[data-mode="no-ai"] .dot {
  background: var(--missing);
}

/* Stepper */
.stepper ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 0;
  margin: 20px 0 16px;
}
.step button {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: 0;
  padding: 6px 2px;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px;
}
.step button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid var(--border);
  background: var(--surface);
  font-weight: 700;
  font-size: 0.9rem;
}
.step-label {
  font-size: 0.8rem;
}
.step.done .step-num {
  border-color: var(--strong);
  color: var(--strong);
}
.step.current button {
  color: var(--text);
  font-weight: 600;
}
.step.current .step-num {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}

/* Cards and text */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 24px;
}
.eyebrow {
  margin: 0;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
h1 {
  font-size: 1.6rem;
  line-height: 1.25;
  margin: 4px 0 12px;
}
h1:focus {
  outline: none;
}
h2 {
  font-size: 1.15rem;
  margin: 0 0 8px;
}
h3 {
  font-size: 0.95rem;
  margin: 0 0 4px;
}
.intro p {
  margin: 0 0 10px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.85rem;
}
code,
.code {
  font-family: var(--mono);
  font-size: 0.9em;
}

.pico-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}
.pico-grid > div {
  background: var(--surface-2);
  border-radius: 10px;
  padding: 10px 12px;
}
.pico-grid dt {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pico-grid dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.pico-letter {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.85rem;
}

.learn-more {
  margin: 8px 0 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 14px;
}
.learn-more summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
}
.learn-more ul {
  margin: 8px 0 4px;
  padding-left: 20px;
}

.question-box {
  background: var(--primary-soft);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 16px 0 20px;
}
.question-box .label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.question-text {
  margin: 4px 0 0;
  font-size: 1.05rem;
}

/* Forms */
.field-label {
  display: block;
  font-weight: 600;
  margin: 12px 0 6px;
}
textarea,
input[type="text"],
input[type="search"],
input[type="url"],
input[type="password"],
select {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}
textarea {
  resize: vertical;
}
textarea.code {
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.5;
}
textarea:focus,
input:focus,
select:focus {
  border-color: var(--primary);
}
.hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 6px 0 0;
}
.field-error {
  color: var(--missing);
  font-weight: 600;
  margin: 8px 0 0;
}
.input-with-button {
  display: flex;
  gap: 8px;
}
.input-with-button input {
  flex: 1;
  min-width: 0;
}
.checkbox-line {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  font-size: 0.9rem;
}

/* Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 4px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 8px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
}
.button:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}
.button:disabled {
  opacity: 0.6;
  cursor: progress;
}
.button.secondary {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--border);
}
.button.secondary:hover {
  background: var(--primary-soft);
}
.button.link {
  background: none;
  border-color: transparent;
  color: var(--primary);
  padding-left: 6px;
  padding-right: 6px;
}
.button.link:hover {
  text-decoration: underline;
}
.button.small {
  padding: 6px 12px;
  min-height: 36px;
  font-size: 0.875rem;
}
.button.icon {
  width: 44px;
  padding: 0;
  font-size: 1.3rem;
}
.nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.nav-message {
  flex: 1;
  text-align: center;
}
.nav-message .field-error {
  margin: 10px 0 0;
}

/* Concept cards */
.concept-cards,
.blocks {
  display: grid;
  gap: 14px;
}
.concept-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px 16px 16px;
  background: var(--surface);
}
.concept-title {
  margin: 12px 0 0;
  font-size: 1.05rem;
}
.concept-title span {
  color: var(--primary);
}
.block {
  padding-top: 2px;
}
.line-num {
  font-family: var(--mono);
  color: var(--muted);
}
.block-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.count {
  margin: 0;
  font-size: 0.95rem;
}
.operator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-weight: 600;
  font-size: 0.9rem;
}
.operator select {
  width: auto;
  min-width: 120px;
  font-weight: 700;
}

/* MeSH */
.mesh-results {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}
.mesh-result {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface-2);
}
.mesh-result.selected {
  border-color: var(--strong);
  background: var(--strong-soft);
}
.mesh-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mesh-top input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.mesh-heading {
  font-weight: 700;
  flex: 1;
  cursor: pointer;
}
.scope-note {
  margin: 6px 0 4px;
  font-size: 0.9rem;
}
.mesh-result p.small {
  margin: 2px 0 0;
}
.selected-list {
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.tag {
  background: var(--strong-soft);
  color: var(--strong);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Strategy */
.final-strategy {
  margin-top: 24px;
  padding: 16px;
  border-radius: 10px;
  background: var(--surface-2);
}
.code-block {
  font-family: var(--mono);
  font-size: 0.85rem;
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin: 0;
}
.start-again {
  text-align: center;
  margin: 12px 0 0;
}

/* Alerts */
.alert {
  border-radius: 8px;
  padding: 10px 14px;
  margin: 12px 0;
}
ul.alert {
  padding-left: 32px;
}
.alert.warning {
  background: var(--developing-soft);
  color: var(--text);
  border-left: 4px solid var(--developing);
}
.alert.error {
  background: var(--missing-soft);
  border-left: 4px solid var(--missing);
}
.alert p {
  margin: 0 0 8px;
}
.alert p:last-child {
  margin: 0;
}

/* Feedback */
.feedback-region:empty {
  display: none;
}
.feedback {
  margin-top: 22px;
  border: 1px solid var(--border);
  border-top: 5px solid var(--developing);
  border-radius: 10px;
  padding: 16px 18px;
  background: var(--surface);
}
.feedback.verdict-strong {
  border-top-color: var(--strong);
}
.feedback.verdict-needs_work {
  border-top-color: var(--missing);
}
.feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.feedback-header h2 {
  margin: 0;
}
.verdict-badge,
.status-chip {
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.strong {
  --tone: var(--strong);
  --tone-soft: var(--strong-soft);
}
.developing {
  --tone: var(--developing);
  --tone-soft: var(--developing-soft);
}
.needs_work,
.missing {
  --tone: var(--missing);
  --tone-soft: var(--missing-soft);
}
.verdict-badge,
.status-chip {
  color: var(--tone);
  background: var(--tone-soft);
}
.source {
  margin: 2px 0 10px;
  font-size: 0.8rem;
  color: var(--muted);
}
.summary {
  font-size: 1.02rem;
  margin: 0 0 12px;
}
.items {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: grid;
  gap: 8px;
}
.item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface-2);
}
.item .status-chip {
  justify-self: start;
  margin-top: 2px;
}
.item-label {
  margin: 0;
  font-weight: 600;
}
.item-comment {
  margin: 2px 0 0;
  font-size: 0.93rem;
}
.item-note {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.fb-block {
  margin: 12px 0;
}
.fb-block ul,
.fb-block ol {
  margin: 4px 0 0;
  padding-left: 22px;
}
.ticks {
  list-style: "✓  ";
}
.reflect {
  border-left: 4px solid var(--primary);
  background: var(--primary-soft);
  border-radius: 6px;
  padding: 10px 14px;
  margin: 14px 0 6px;
}
.reflect p {
  margin: 0;
  font-style: italic;
}
.model-answer {
  margin-top: 12px;
}
.model-answer summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 600;
}
.pre {
  white-space: pre-wrap;
  background: var(--surface-2);
  border-radius: 8px;
  padding: 12px;
}

/* Dialog */
dialog {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 22px;
  width: min(520px, calc(100vw - 32px));
}
dialog::backdrop {
  background: rgba(10, 16, 26, 0.5);
}
dialog h2 {
  margin-top: 0;
}
dialog .actions {
  justify-content: flex-end;
}

.site-footer {
  color: var(--muted);
  font-size: 0.8rem;
  padding-bottom: 32px;
}

@media (max-width: 600px) {
  .card {
    padding: 18px 16px;
  }
  h1 {
    font-size: 1.35rem;
  }
  .step-label {
    font-size: 0.7rem;
  }
  .item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .nav-buttons {
    flex-wrap: wrap;
  }
  .nav-message {
    order: 3;
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

.notes-box {
  margin-top: 18px;
}
.notes-box textarea {
  font-size: 0.95rem;
}

/* Wake-up banner */
.wake-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--developing-soft);
  border: 1px solid var(--border);
  border-left: 5px solid var(--developing);
}
.wake-banner.waking {
  display: block;
  background: var(--primary-soft);
  border-left-color: var(--primary);
}
.wake-banner p {
  margin: 0;
}
.wake-text {
  flex: 1;
  min-width: 220px;
}
.wake-title {
  font-weight: 700;
  margin-bottom: 2px !important;
}
.wake-passcode {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.wake-passcode input {
  max-width: 220px;
}
.wake-hint {
  margin-top: 8px !important;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Database switch (stages 3–5): a compact slider that scrolls with the page */
.db-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}
.db-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.9rem;
}
.db-switch .lead {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.db-side {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.db-side .tick {
  visibility: hidden;
  font-weight: 700;
}
.db-side.on {
  color: var(--primary);
  font-weight: 700;
}
.db-side.on .tick {
  visibility: visible;
}
/* Both positions are valid choices, so the track stays the same colour either way. */
.slider {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex-shrink: 0;
  width: 46px;
  height: 26px;
  margin: 0;
  border-radius: 999px;
  background: var(--primary);
  cursor: pointer;
}
.slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--on-primary);
  transition: transform 0.15s ease;
}
.slider:checked::after {
  transform: translateX(20px);
}
.convert-offer {
  border: 1px solid var(--primary);
  background: var(--primary-soft);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 0 16px;
}
.convert-offer p {
  margin: 0 0 6px;
}
.convert-title {
  font-weight: 700;
}
.convert-offer ul {
  margin: 4px 0 0;
  padding-left: 20px;
  font-size: 0.9rem;
}
.convert-offer .actions {
  margin-top: 10px;
}
.alert.success {
  background: var(--strong-soft);
  border-left: 4px solid var(--strong);
}

/* Operator guide (stage 3) */
.ops {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  padding: 12px 16px;
  margin: 4px 0 16px;
}
.ops h2 {
  font-size: 1rem;
}
.ops-table-wrap,
.table-wrap {
  overflow-x: auto;
}
.ops table,
.report {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.ops th,
.report th {
  text-align: left;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
}
.ops td,
.report td {
  padding: 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.ops tr:last-child td,
.report tr:last-child td {
  border-bottom: 0;
}
.ops td:first-child code {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.ops .eg code,
.report code {
  overflow-wrap: anywhere;
}
.ops ul {
  margin: 8px 0 0;
  padding-left: 20px;
  font-size: 0.85rem;
  color: var(--muted);
}
.report p {
  margin: 4px 0 0;
}

/* Status chips: a symbol and a word, never colour alone */
.term-check {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.term-check:empty {
  display: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.term-check .chip {
  white-space: normal;
}
.chip.ok {
  background: var(--strong-soft);
  color: var(--strong);
}
.chip.warn {
  background: var(--developing-soft);
  color: var(--developing);
}
.chip.bad {
  background: var(--missing-soft);
  color: var(--missing);
}
.chip.info {
  background: var(--primary-soft);
  color: var(--primary);
}

/* Chosen headings with Explode (stage 4) */
.chosen {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.chosen h3 {
  margin: 0;
}
.chosen-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.explode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  cursor: pointer;
}
.written {
  margin: 4px 0 0;
  font-size: 0.85rem;
}
.written code {
  background: var(--surface-2);
  border-radius: 5px;
  padding: 2px 8px;
}

/* Ovid search history (stage 5) */
.block-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 4px;
}
.block-head h2 {
  margin: 0;
}
.block-head .line-num {
  color: var(--on-primary);
  background: var(--primary);
  border-radius: 6px;
  padding: 0 8px;
  font-weight: 700;
  font-size: 0.85rem;
}
.hline {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.hline:first-child {
  border-top: 0;
}
.hline .num {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--muted);
  text-align: right;
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}
.hline-body {
  min-width: 0;
}
.hline .syntax {
  font-family: var(--mono);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}
.hline.combine .syntax {
  font-weight: 700;
}
.hline .hits {
  text-align: right;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}
.hline .hits strong {
  color: var(--text);
  font-size: 0.9rem;
}
.translation {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}
.translation summary {
  cursor: pointer;
  padding: 10px 14px;
  font-weight: 600;
  color: var(--primary);
}
.translation-body {
  padding: 0 14px 14px;
  display: grid;
  gap: 10px;
}
.translation-body > p {
  margin: 0;
}

@media (max-width: 600px) {
  .db-row {
    justify-content: flex-start;
  }
  .db-switch .lead {
    display: none;
  }
  .ops table,
  .ops tbody,
  .ops tr,
  .ops td {
    display: block;
  }
  .ops thead {
    display: none;
  }
  .ops tr {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
  }
  .ops tr:last-child {
    border-bottom: 0;
  }
  .ops td {
    border: 0;
    padding: 2px 0;
  }
  .hline {
    grid-template-columns: 2rem minmax(0, 1fr);
  }
  .hline .hits {
    grid-column: 2;
    text-align: left;
    padding-top: 0;
  }
}

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

/* Clear data and restart */
.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.button.danger {
  background: var(--missing);
  border-color: var(--missing);
  color: var(--on-primary);
}
.button.danger:hover {
  filter: brightness(0.92);
}
#restart-dialog .alert {
  margin: 0 0 16px;
}
