.page {
  counter-reset: section;
  line-height: 1.75;
}

/* Leave room below the submit button so the fixed player never covers it. */
#root:has(.page) {
  padding-bottom: 140px;
}

.page-content {
  color: var(--text);
  max-width: 680px;
}

.page p {
  margin: 0 0 0.9em;
}

.page-section > h2 {
  counter-increment: section;
  margin: 2.6em 0 0.6em;
  color: var(--fg);
  font-size: 1.55em;
  line-height: 1.3;
  font-weight: 500;
  scroll-margin-top: 24px;
}

.page-section > h2::before {
  content: counter(section, decimal-leading-zero);
  display: block;
  margin-bottom: 0.3em;
  color: var(--muted);
  font-size: 0.6em;
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* Blocks that are not plain text: inputs, cards, diagrams, layouts. */
.page-section > :not(h2, p) {
  margin-bottom: 1.2em;
}

.page-section .heading {
  margin: 1.4em 0 0.5em;
  font-size: 1.15em;
}

.page-overview {
  margin-bottom: 1.5em;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  corner-shape: squircle;
  background: var(--card);
  color: var(--fg);
}

.page-overview p {
  margin: 0;
  font-size: 1.1em;
}

.page-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.7em;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page mark {
  background: none;
  color: var(--fg);
  font-weight: 600;
}

.page-ref {
  margin: 0 0 1.2em;
  scroll-margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  corner-shape: squircle;
  font-size: 13px;
  line-height: 1.5;
}

/* A card that is still loading: its file name over a few grey lines. Only the
   opacity moves, so it keeps going while the highlighter holds the page. */
.page-ref-loading {
  padding: 10px 16px 16px;
  background: var(--card);
  color: var(--muted);
}

.page-ref-loading::after {
  content: "";
  display: block;
  height: 82px;
  margin-top: 14px;
  background: repeating-linear-gradient(var(--border) 0 10px, transparent 10px 24px);
  animation: page-ref-loading 1.2s ease-in-out infinite alternate;
}

@keyframes page-ref-loading {
  to {
    opacity: 0.35;
  }
}

.page-ref[data-ready] .page-ref-loading {
  display: none;
}

.page-ref.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.page-card-comment {
  font-family: var(--font-sans);
  display: grid;
  padding: 10px 16px;
  background: var(--card);
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
}

.page-card-comment-lines {
  grid-column: 1;
  color: var(--muted);
  font-size: 12px;
}

.page-card-comment-lines strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.page-card-comment p {
  grid-column: 1;
}

.page-card-comment .feedback-delete {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
}

.page-comment {
  display: block;
  margin-top: 2.6em;
}

.page-comment span {
  display: block;
  margin-bottom: 8px;
  color: var(--fg);
  font-size: 0.9em;
  font-weight: 500;
}

.page-submit {
  width: 100%;
  margin-top: 1.2em;
}

.page-hint {
  margin: 0.8em 0 0;
  color: var(--muted);
  font-size: 0.85em;
  text-align: center;
}

.page-image {
  margin: 0;
}

.page-image img {
  display: block;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  corner-shape: squircle;
}

.page-image figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8em;
}

/* A block that failed to render. */
.block-error {
  padding: 12px 16px;
  border: 1px solid var(--error);
  border-radius: var(--radius);
  corner-shape: squircle;
  color: var(--error);
  font-size: 14px;
}

/* Wide screens: main column stays centered, outline sits in the right gutter. */
@media (min-width: 1240px) {
  #root:has(.page) {
    max-width: 1200px;
  }

  .page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 680px minmax(0, 1fr);
    column-gap: 40px;
  }

  .page-content {
    grid-column: 2;
    grid-row: 1;
  }

  .outline {
    grid-column: 3;
    grid-row: 1;
  }
}

/* A wide page: the cards take the room, text stays at its reading width. */
#root:has(.page-wide) {
  max-width: 1680px;
}

.page-wide .page-content {
  max-width: none;
}

.page-wide .page-content > :not(.page-section),
.page-wide .page-section > :not(.page-ref, .page-files),
.page-wide .page-files > :not(.page-ref) {
  max-width: 680px;
}

@media (min-width: 1240px) {
  .page-wide {
    grid-template-columns: minmax(0, 1fr) 220px;
  }

  .page-wide .page-content {
    grid-column: 1;
  }

  .page-wide .outline {
    grid-column: 2;
  }
}

/* The input the player stopped on. */
.field.active {
  border-radius: var(--radius);
  corner-shape: squircle;
  outline: 3px solid color-mix(in srgb, var(--accent) 22%, transparent);
  outline-offset: 8px;
}

.page-sentence {
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s;
}

.page-sentence:hover {
  background: color-mix(in srgb, currentColor 8%, transparent);
}

.page-sentence.active {
  background: color-mix(in srgb, currentColor 18%, transparent);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.page-player {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.31em;
  padding: 0.46em 0.77em;
  border: 0.08em solid var(--border);
  border-radius: 50em;
  background: transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0.31em 1.38em rgb(0 0 0 / 0.18);
  font-size: 13px;
}

.page-player button {
  width: 2.46em;
  height: 2.46em;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
}

.page-player button svg {
  width: 1.15em;
  height: 1.15em;
}

.page-player button:hover {
  background: color-mix(in srgb, var(--fg) 12%, transparent);
}

/* The hint on a Mac with no natural voice: a label in the player that opens
   the steps above it. */
.page-voice summary {
  padding: 0 0.6em;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}

.page-voice summary::-webkit-details-marker {
  display: none;
}

.page-voice summary:hover,
.page-voice[open] summary {
  color: var(--fg);
}

.page-voice-steps {
  position: absolute;
  bottom: calc(100% + 0.8em);
  left: 50%;
  transform: translateX(-50%);
  width: min(27em, 90vw);
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  corner-shape: squircle;
  background: var(--card);
  color: var(--text);
  line-height: 1.5;
}

.page-voice-steps ol {
  margin: 0;
  padding-left: 1.4em;
}
/* The theme. Every colour and corner of the viewer comes from these variables,
   and a project component uses the same ones, see references/components.md.
   The page is grey. A hue is only used for the four meanings below. The dark
   values follow the system setting, so nothing else needs a dark rule. */
:root {
  color-scheme: light dark;

  /* Greys */
  --bg: #f5f5f5; /* the page */
  --card: #ffffff; /* a surface on the page: cards, inputs, popovers */
  --fg: #0a0a0a; /* headings, labels and the fill of buttons, with --bg as their text */
  --text: #404040; /* paragraphs */
  --muted: #737373; /* secondary text: help, captions, counts */
  --border: #d4d4d4; /* every line */

  /* Colours, each with one meaning */
  --accent: #2563eb; /* what is active, focused or selected */
  --accent-fg: #ffffff; /* text on a filled colour */
  --success: #16a34a; /* it worked */
  --error: #e94959; /* it failed, or it is required */
  --warning: #d97706; /* it works, but look at this */

  /* Shape. A box pairs this radius with corner-shape: squircle. A round control is a 999px pill. */
  --radius: 24px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --card: #1c1c1c;
    --fg: #f4f4f4;
    --text: #a8a8a8;
    --muted: #a3a3a3;
    --border: #2a2a2a;

    --accent: #3b82f6;
    --success: #22c55e;
    --error: #f0616f;
    --warning: #f59e0b;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 18px/1.6 var(--font-sans);
  font-weight: 400;
}

#root {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  corner-shape: squircle;
  padding: 24px;
}

.card-title {
  margin: 0 0 16px;
  color: var(--fg);
  font-size: 22px;
  font-weight: 500;
}

.heading {
  margin: 0;
  color: var(--fg);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.3;
}

.stack > .heading:not(:first-child) {
  margin-top: 0.8em;
}

.text {
  margin: 0;
  color: var(--text);
  line-height: 1.75;
}

.text.muted {
  color: var(--muted);
  font-size: 15px;
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 4px 0;
}

.stack {
  display: flex;
  flex-direction: column;
}

.stack.gap-sm {
  gap: 8px;
}

.stack.gap-md {
  gap: 16px;
}

.stack.gap-lg {
  gap: 24px;
}

.columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.columns.gap-sm {
  gap: 8px;
}

.columns.gap-md {
  gap: 16px;
}

.columns.gap-lg {
  gap: 24px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* A choice sits on a card, so a question stands out from the text around it. */
.fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  corner-shape: squircle;
  background: var(--card);
  margin: 0;
  padding: 16px 20px;
  min-width: 0;
}

/* A legend sits on the border of its fieldset unless it floats. */
.fieldset > .field-label {
  float: left;
  width: 100%;
  padding: 0;
}

.fieldset > .radio-group {
  clear: both;
}

.ui-locked {
  pointer-events: none;
  opacity: 0.6;
}

.waiting {
  text-align: center;
  padding: 48px 0;
}

.field-label {
  color: var(--fg);
  font-weight: 500;
  font-size: 16px;
}

.req {
  color: var(--error);
}

.field-help {
  color: var(--muted);
  font-size: 14px;
}

.input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  corner-shape: squircle;
  background: color-mix(in srgb, var(--card) 72%, var(--bg));
  color: var(--fg);
  font: inherit;
}

.input:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}

.textarea {
  resize: vertical;
}

.checkbox-field {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.submit-button {
  align-self: flex-start;
  padding: 12px 22px;
  border: none;
  border-radius: var(--radius);
  corner-shape: squircle;
  background: var(--fg);
  color: var(--bg);
  font: inherit;
  font-weight: 520;
  cursor: pointer;
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: default;
}

.banner {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 10005;
  max-width: calc(100vw - 32px);
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: var(--radius);
  corner-shape: squircle;
  box-shadow: 0 8px 24px rgb(0 0 0 / 22%);
  color: var(--accent-fg);
  font-size: 15px;
  font-weight: 500;
}

.slideshow {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.slideshow-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
}

.slideshow-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slide-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  corner-shape: squircle;
  background: transparent;
  color: var(--fg);
  font: inherit;
  cursor: pointer;
}

.slide-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.banner.done {
  background: var(--success);
}

.banner.error {
  background: var(--error);
}

.feedback-toolbar {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 94%, transparent);
  box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
}

.feedback-tool {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
}

.feedback-tool.active,
.feedback-tool:hover {
  border-color: var(--border);
  background: var(--fg);
  color: var(--bg);
}

.feedback-tool input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.feedback-count {
  border: none;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

[data-feedback-hover="true"] {
  outline: 2px solid var(--accent) !important;
  outline-offset: 2px !important;
  cursor: crosshair !important;
}

.feedback-popover {
  position: fixed;
  z-index: 10001;
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  corner-shape: squircle;
  background: var(--card);
  box-shadow: 0 14px 36px rgb(0 0 0 / 18%);
}

.feedback-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.feedback-actions .submit-button,
.feedback-actions .slide-btn {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
}

.feedback-error {
  color: var(--error);
  font-size: 12px;
}

.feedback-marker {
  position: absolute;
  z-index: 9999;
  border: 2px solid var(--accent-fg);
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  transform: translate(4px, -26px);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  box-shadow: 0 2px 8px rgb(0 0 0 / 25%);
  cursor: pointer;
}

.feedback-marker:hover {
  background: color-mix(in srgb, var(--accent) 85%, black);
}

.feedback-drop {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--fg);
  font-size: 20px;
  font-weight: 650;
}

.feedback-message {
  position: fixed;
  right: 14px;
  bottom: 62px;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 280px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  corner-shape: squircle;
  background: var(--card);
  box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
  font-size: 13px;
}

.feedback-message button {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.feedback-review {
  position: fixed;
  right: 14px;
  bottom: 62px;
  z-index: 10000;
  width: min(340px, calc(100vw - 28px));
  max-height: min(460px, calc(100vh - 86px));
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  corner-shape: squircle;
  background: var(--card);
  box-shadow: 0 14px 36px rgb(0 0 0 / 18%);
}

.feedback-review-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 650;
}

.feedback-review-title button {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.feedback-review-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.feedback-review-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.feedback-review-item:first-child {
  padding-top: 0;
  border-top: none;
}

.feedback-review-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.feedback-delete {
  margin-left: auto;
  display: grid;
  place-items: center;
  padding: 2px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.feedback-delete:hover {
  color: var(--error);
}

.feedback-review-num {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 11px;
  font-weight: 750;
}

.feedback-review-item img {
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.feedback-review-item p {
  margin: 0;
  font-size: 13px;
}

diffs-container {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.diff-comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.diff-comment-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.diff-comment {
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.diff-comment p {
  margin: 0;
}

/* Section outline of the page. Shown only on wide screens, sticky in a right
   gutter. */
.outline {
  display: none;
}

@media (min-width: 1240px) {
  .outline {
    position: sticky;
    top: 40px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 2px;
    /* A review of many files is longer than the window. */
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.4;
  }

  .outline button {
    padding: 6px 10px;
    border: 0;
    border-left: 2px solid var(--border);
    background: none;
    color: var(--muted);
    font: inherit;
    text-align: left;
    overflow-wrap: anywhere;
    cursor: pointer;
  }

  .outline button:hover,
  .outline button.active {
    border-left-color: var(--fg);
    color: var(--fg);
  }

  /* A file of a whole change, under the heading of its section. */
  .outline button.outline-file {
    padding: 3px 10px 3px 22px;
    font-size: 13px;
  }

  /* The reader left a comment on this file. */
  .outline-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 7px;
    border-radius: 999px;
    background: var(--warning);
  }
}

.diff-comment .text {
  white-space: pre-wrap;
}

.feedback-selection {
  position: fixed;
  z-index: 10001;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  font: 13px var(--font-sans);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.feedback-quote {
  margin: 0;
  padding-left: 8px;
  border-left: 3px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}
.diagram-flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.diagram-title {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
}

.diagram-frame {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 76px 88px;
  padding: 4px;
}

.diagram-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

.diagram-svg marker path {
  fill: color-mix(in srgb, var(--fg) 40%, var(--border));
}

.diagram-connector {
  fill: none;
  stroke: color-mix(in srgb, var(--fg) 40%, var(--border));
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.diagram-connector-label {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  max-width: 96px;
  padding: 4px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(10px);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  transform: translate(-50%, -50%);
  overflow-wrap: anywhere;
}

.diagram-node-wrap {
  position: relative;
  z-index: 1;
}

.diagram-node {
  min-width: 0;
  padding: 14px 16px;
  border-radius: var(--radius);
  corner-shape: squircle;
  background: color-mix(in srgb, var(--card) 88%, var(--fg));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 8%, transparent);
}

.diagram-node-label {
  font-weight: 500;
  font-size: 16px;
}

.diagram-node-detail {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.text.muted.diagram-warning {
  color: var(--warning);
}

@media (max-width: 560px) {
  .diagram-frame {
    grid-template-columns: 1fr;
    gap: 62px;
  }
}
.step-nav {
  --step-surface: color-mix(in srgb, var(--card) 88%, var(--fg));
  --step-muted-surface: color-mix(in srgb, var(--card) 96%, var(--fg));
  --step-line: color-mix(in srgb, var(--fg) 24%, var(--border));
  color: var(--muted);
}

.step-nav-list {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-nav-horizontal .step-nav-list {
  align-items: stretch;
}

.step-nav-vertical .step-nav-list {
  flex-direction: column;
}

.step-nav-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}

.step-nav-horizontal .step-nav-item {
  flex: 1;
}

.step-nav-vertical .step-nav-item + .step-nav-item::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 16px;
  width: 1px;
  height: 10px;
  background: var(--step-line);
}

.step-nav-index {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--step-muted-surface);
  color: var(--muted);
  font-size: 13px;
}

.step-nav-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 8px 12px;
  border-radius: var(--radius);
  corner-shape: squircle;
  background: transparent;
}

.step-nav-title {
  display: block;
  color: var(--fg);
  font-size: 13px;
  line-height: 1.25;
}

.step-nav-detail {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.step-nav-item.is-current .step-nav-index,
.step-nav-item.is-complete .step-nav-index {
  background: var(--fg);
  color: var(--bg);
}

.step-nav-item.is-current .step-nav-copy {
  background: var(--step-surface);
}

.step-nav-item.is-upcoming .step-nav-index {
  border-color: var(--border);
  background: transparent;
  color: color-mix(in srgb, var(--fg) 46%, var(--muted));
}

.step-nav-item.is-upcoming .step-nav-title {
  color: color-mix(in srgb, var(--fg) 58%, var(--muted));
}

.step-nav-item.is-upcoming .step-nav-detail {
  color: color-mix(in srgb, var(--muted) 76%, var(--fg));
}

@media (max-width: 560px) {
  .step-nav-horizontal .step-nav-list {
    flex-direction: column;
  }

}
