/* ==========================================================================
   DarePay Docs — pages de documentation
   ========================================================================== */

.docs-layout { display: grid; grid-template-columns: 272px minmax(0, 1fr) 232px; min-height: calc(100vh - var(--header-h) - var(--tabs-h)); }
.docs-layout.no-toc { grid-template-columns: 272px minmax(0, 1fr); }

/* ---------- Barre latérale ---------- */
.sidebar {
  position: sticky; top: calc(var(--header-h) + var(--tabs-h)); align-self: start;
  height: calc(100vh - var(--header-h) - var(--tabs-h)); overflow-y: auto; padding: 24px 14px 40px 20px;
  border-right: 1px solid var(--border); scrollbar-width: thin;
}
.nav-group + .nav-group { margin-top: 22px; }
.nav-group h5 { margin: 0 0 6px; padding: 0 10px; color: var(--faint); font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.nav-group ul { list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 8px;
  color: var(--text); font-size: 14px; line-height: 1.4; transition: background 0.12s, color 0.12s;
}
.nav-link:hover { background: var(--bg-muted); color: var(--ink); }
.nav-link.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 500; }
.nav-link .method { min-width: 38px; height: 18px; font-size: 9.5px; }

/* ---------- Contenu ---------- */
.docs-main { min-width: 0; padding: 36px 56px 96px; }
.docs-article { max-width: 760px; margin: 0 auto; }
.no-toc .docs-article { max-width: none; }

.breadcrumbs { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; color: var(--muted); font-size: 13px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs .icon { width: 13px; height: 13px; color: var(--faint); }

.page-head { display: flex; gap: 20px; align-items: flex-start; padding-bottom: 28px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.page-icon { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 14px; color: #fff; background: linear-gradient(140deg, #1f5bff, #4a8bff 60%, #3fcf9f); box-shadow: 0 10px 24px -12px rgba(31, 91, 255, 0.7); }
.page-icon .icon { width: 24px; height: 24px; }
.page-head h1 { margin: 0; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 36px; line-height: 1.15; letter-spacing: -0.03em; }
.page-head .lead { margin: 8px 0 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.page-tools { display: flex; gap: 8px; margin-left: auto; }

/* ---------- Prose ---------- */
.prose { color: var(--text); }
.prose > section { padding-top: 12px; }
.prose h2 { margin: 44px 0 14px; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 25px; line-height: 1.25; letter-spacing: -0.02em; }
.prose h3 { margin: 30px 0 10px; color: var(--ink); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.prose h2 .anchor, .prose h3 .anchor { margin-left: 8px; color: var(--faint); opacity: 0; font-weight: 400; transition: opacity 0.15s; }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 1; }
.prose p { margin: 0 0 16px; }
.prose ul:not([class]), .prose ol:not([class]) { margin: 0 0 18px; padding-left: 22px; }
.prose ul:not([class]) > li, .prose ol:not([class]) > li { margin: 6px 0; padding-left: 4px; }
.prose li::marker { color: var(--faint); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose :not(pre, .param-head, .endpoint-path, .base-url, .endpoint-row) > code {
  padding: 1.5px 6px; border-radius: 5px; border: 1px solid var(--border); background: var(--bg-subtle);
  color: var(--ink); font-size: 0.86em; white-space: nowrap;
}
.prose hr { margin: 40px 0; border: 0; border-top: 1px solid var(--border); }

/* ---------- Encadrés ---------- */
.callout { display: flex; gap: 14px; margin: 22px 0; padding: 14px 16px; border-radius: 12px; border: 1px solid; font-size: 14.5px; line-height: 1.6; }
.callout > .icon { margin-top: 2px; }
.callout p { margin: 0; }
.callout p + p { margin-top: 6px; }
.callout strong { color: inherit; }
.callout-info { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 22%, transparent); color: var(--text); }
.callout-info > .icon { color: var(--brand); }
.callout-warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 25%, transparent); color: var(--text); }
.callout-warn > .icon { color: var(--warn); }
.callout-danger { background: var(--err-soft); border-color: color-mix(in srgb, var(--err) 25%, transparent); color: var(--text); }
.callout-danger > .icon { color: var(--err); }
.callout-ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 25%, transparent); color: var(--text); }
.callout-ok > .icon { color: var(--ok); }
.callout-title { display: block; margin-bottom: 2px; color: var(--ink) !important; font-weight: 600; }

/* ---------- Tableaux ---------- */
.table-wrap { margin: 18px 0 24px; overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { padding: 10px 16px; text-align: left; background: var(--bg-subtle); color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 13px 16px; border-top: 1px solid var(--border); vertical-align: top; }
.table tr:first-child td { border-top: 0; }
.table td:first-child { white-space: nowrap; }
.table code { color: var(--ink); font-size: 13px; }

/* ---------- Grille de cartes ---------- */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 20px 0 28px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.info-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); transition: border-color 0.15s, box-shadow 0.2s; }
a.info-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); color: var(--text); }
.info-card .ic { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); }
.info-card strong { color: var(--ink); font-size: 15px; font-weight: 600; }
.info-card span { color: var(--muted); font-size: 14px; line-height: 1.55; }
.info-card code { font-size: 12.5px; }

/* Règles « à faire / à éviter » */
.rule-list { list-style: none; margin: 18px 0 26px; padding: 0; display: grid; gap: 10px; }
.rule-list li { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 13px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.rule-list li .mk { display: grid; place-items: center; width: 22px; height: 22px; flex: none; margin-top: 1px; border-radius: 50%; }
.rule-list li .mk .icon { width: 13px; height: 13px; stroke-width: 2.6; }
.rule-do .mk { background: var(--ok-soft); color: var(--ok); }
.rule-dont .mk { background: var(--err-soft); color: var(--err); }

/* ---------- Table des matières ---------- */
.toc { position: sticky; top: calc(var(--header-h) + var(--tabs-h)); align-self: start; max-height: calc(100vh - var(--header-h) - var(--tabs-h)); overflow-y: auto; padding: 38px 24px 40px 8px; }
.toc h5 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: var(--ink); font-size: 13px; font-weight: 600; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.toc a { display: block; margin-left: -1px; padding: 5px 0 5px 14px; border-left: 1px solid transparent; color: var(--muted); font-size: 13px; line-height: 1.4; }
.toc a.lvl-3 { padding-left: 26px; font-size: 12.5px; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--brand); border-left-color: var(--brand); font-weight: 500; }
.toc-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); }
.toc-foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }

/* ---------- Pages suivante / précédente ---------- */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; }
.pager a { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; color: var(--ink); font-weight: 500; transition: border-color 0.15s; }
.pager a:hover { border-color: var(--brand); color: var(--ink); }
.pager a small { color: var(--faint); font-size: 12.5px; font-weight: 400; }
.pager a.next { grid-column: 2; text-align: right; }

/* ---------- Schéma de flux ---------- */
.flow { margin: 22px 0 28px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); overflow: hidden; }
.flow-canvas { overflow-x: auto; padding: 28px 20px 24px; background: radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0) 0 0 / 18px 18px; }
.flow-diagram { display: grid; grid-template-columns: 148px minmax(130px, 1fr) 148px minmax(104px, 0.8fr) 148px; align-items: stretch; min-width: 680px; }
.flow-node {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 18px 12px;
  border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface); text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}
.flow-node .fn-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--bg-muted); color: var(--muted); transition: 0.3s; }
.flow-node strong { color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.3; }
.flow-node small { color: var(--faint); font-size: 12px; line-height: 1.35; }
.flow-node .status { margin-top: 4px; }
.flow-node.brand .fn-icon { background: linear-gradient(140deg, #1f5bff, #3fcf9f); color: #fff; }
.flow-node.is-active { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft), var(--shadow); transform: translateY(-2px); }
.flow-node.is-active .fn-icon { background: var(--brand); color: #fff; }
.flow-lane { display: flex; flex-direction: column; justify-content: space-around; gap: 14px; padding: 6px 12px; }
.flow-arrow { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; min-height: 36px; justify-content: flex-end; opacity: 0.55; transition: opacity 0.3s; }
.flow-arrow.is-empty { visibility: hidden; }
.flow-arrow span { color: var(--muted); font-family: var(--font-mono); font-size: 11px; line-height: 1.3; text-align: center; text-wrap: balance; transition: color 0.3s; }
.flow-arrow i { position: relative; display: block; width: 100%; height: 2px; background: var(--border-strong); border-radius: 2px; overflow: visible; transition: background 0.3s; }
.flow-arrow i::after { content: ""; position: absolute; top: -4px; width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.flow-arrow.to-right i::after { right: -2px; border-left: 7px solid var(--border-strong); }
.flow-arrow.to-left i::after { left: -2px; border-right: 7px solid var(--border-strong); }
.flow-arrow.is-active { opacity: 1; }
.flow-arrow.is-active span { color: var(--brand); font-weight: 500; }
.flow-arrow.is-active i { background: var(--brand); }
.flow-arrow.is-active.to-right i::after { border-left-color: var(--brand); }
.flow-arrow.is-active.to-left i::after { border-right-color: var(--brand); }
.flow-arrow.is-active i::before { content: ""; position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); animation: travel-right 1.3s var(--ease) infinite; }
.flow-arrow.is-active.to-left i::before { animation-name: travel-left; }
.flow-arrow.hook.is-active span { color: var(--violet); }
.flow-arrow.hook.is-active i, .flow-arrow.hook.is-active i::before { background: var(--violet); }
.flow-arrow.hook.is-active.to-left i::after { border-right-color: var(--violet); }
@keyframes travel-right { from { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 8px); opacity: 0; } }
@keyframes travel-left { from { left: calc(100% - 8px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: 0; opacity: 0; } }
@keyframes travel-down { from { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { top: calc(100% - 8px); opacity: 0; } }
@keyframes travel-up { from { top: calc(100% - 8px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { top: 0; opacity: 0; } }

/* Schéma vertical quand la largeur disponible ne suffit plus (mobile, tablette, colonne étroite) */
.flow { container: flow / inline-size; }
@container flow (max-width: 719px) {
  .flow-canvas { overflow: visible; padding: 20px 16px; }
  .flow-diagram { grid-template-columns: minmax(0, 1fr); min-width: 0; }
  .flow-node {
    display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 1px;
    align-items: center; justify-items: start; padding: 12px 14px; text-align: left;
  }
  .flow-node .fn-icon { grid-row: 1 / span 2; }
  .flow-node strong { grid-column: 2; align-self: end; }
  .flow-node small { grid-column: 2; align-self: start; }
  .flow-node .status { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
  .flow-node.is-active { transform: none; }

  .flow-lane { flex-direction: row; justify-content: space-evenly; gap: 6px; padding: 4px 2px; }
  .flow-arrow { flex: 1 1 0; flex-direction: row-reverse; justify-content: center; align-items: center; gap: 8px; min-height: 0; min-width: 0; }
  .flow-arrow.is-empty { display: none; }
  .flow-arrow span { font-size: 10.5px; text-align: left; }
  .flow-arrow i { flex: none; width: 2px; height: 46px; }

  .flow-arrow.to-right i::after { top: auto; bottom: -2px; left: -4px; right: auto; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid var(--border-strong); border-bottom: 0; }
  .flow-arrow.to-left i::after { top: -2px; bottom: auto; left: -4px; right: auto; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 7px solid var(--border-strong); border-top: 0; }
  .flow-arrow.is-active.to-right i::after { border-left-color: transparent; border-top-color: var(--brand); }
  .flow-arrow.is-active.to-left i::after { border-right-color: transparent; border-bottom-color: var(--brand); }
  .flow-arrow.hook.is-active.to-left i::after { border-right-color: transparent; border-bottom-color: var(--violet); }

  .flow-arrow.is-active i::before { left: -3px; animation-name: travel-down; }
  .flow-arrow.is-active.to-left i::before { animation-name: travel-up; }
}

.flow-steps { display: grid; grid-template-columns: 1fr auto; gap: 0; border-top: 1px solid var(--border); }
.flow-steps ol { list-style: none; margin: 0; padding: 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2px; counter-reset: fs; }
.flow-steps li { margin: 0; padding: 0; }
.flow-steps ol button {
  position: relative; display: block; width: 100%; height: 100%; padding: 10px 12px 10px 44px; border: 0; border-radius: 10px; background: transparent;
  color: var(--muted); font-size: 13.5px; line-height: 1.45; text-align: left; counter-increment: fs; transition: background 0.15s, color 0.15s;
}
.flow-steps ol button::before { content: counter(fs); position: absolute; left: 12px; top: 9px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-muted); color: var(--muted); font-size: 11.5px; font-weight: 600; transition: 0.2s; }
.flow-steps ol button:hover { background: var(--bg-subtle); color: var(--ink); }
.flow-steps ol button[aria-current="step"] { background: var(--brand-soft); color: var(--ink); }
.flow-steps ol button[aria-current="step"]::before { background: var(--brand); color: #fff; }
.flow-steps code { font-size: 12px; }
.flow-play { display: flex; align-items: center; padding: 0 14px; border-left: 1px solid var(--border); }

/* ---------- Machine à états ---------- */
.states { display: grid; grid-template-columns: 1fr 80px 1fr; align-items: center; gap: 0; margin: 20px 0 26px; padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.state-card { padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-subtle); }
.state-card p { margin: 10px 0 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.state-finals { display: grid; gap: 12px; }
.state-links { position: relative; height: 100%; min-height: 150px; }
.state-links svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.state-links path { fill: none; stroke: var(--border-strong); stroke-width: 1.6; }
.state-tag { display: inline-flex; margin-left: 8px; color: var(--faint); font-size: 12px; }

/* ---------- Chronologie des tentatives ---------- */
.attempts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 20px 0 26px; }
.attempt { position: relative; padding: 0 14px 0 0; }
.attempt::before { content: ""; position: absolute; top: 17px; left: 36px; right: 0; height: 2px; background: var(--border-strong); }
.attempt:last-child::before { display: none; }
.attempt .a-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; transition: 0.3s; }
.attempt strong { display: block; margin-top: 12px; color: var(--ink); font-size: 14.5px; font-weight: 600; }
.attempt span { display: block; margin-top: 2px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.attempt.stop .a-dot { background: var(--bg-muted); color: var(--muted); }
.attempt.is-sending .a-dot { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: 0 0 0 5px var(--brand-soft); }
.attempt.is-ok .a-dot { border-color: var(--ok); background: var(--ok); color: #fff; }
.attempt.is-ko .a-dot { border-color: var(--err); background: var(--err-soft); color: var(--err); }
.attempt.is-stopped .a-dot { border-color: var(--ink); background: var(--ink); color: var(--bg); }

/* ---------- Checklist ---------- */
.checklist-card { margin: 20px 0 28px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); overflow: hidden; }
.checklist-head { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--border); background: var(--bg-subtle); }
.checklist-head strong { color: var(--ink); font-size: 15px; }
.checklist-head .progress { flex: 1; height: 8px; border-radius: 99px; background: var(--bg-muted); overflow: hidden; }
.checklist-head .progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--mint)); transition: width 0.5s var(--ease); }
.checklist-head output { min-width: 44px; text-align: right; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.checklist { list-style: none; margin: 0; padding: 6px; }
.checklist li { margin: 0; padding: 0; }
.checklist label { display: flex; align-items: flex-start; gap: 14px; padding: 12px 14px; border-radius: 10px; cursor: pointer; transition: background 0.15s; }
.checklist label:hover { background: var(--bg-subtle); }
.checklist input { position: absolute; opacity: 0; pointer-events: none; }
.checklist .box { display: grid; place-items: center; width: 22px; height: 22px; flex: none; margin-top: 1px; border: 1.5px solid var(--border-strong); border-radius: 7px; color: transparent; transition: 0.2s var(--ease); }
.checklist .box .icon { width: 14px; height: 14px; stroke-width: 3; }
.checklist input:checked + .box { background: var(--ok); border-color: var(--ok); color: #fff; transform: scale(1.04); }
.checklist input:focus-visible + .box { box-shadow: var(--ring); }
.checklist .txt { color: var(--text); transition: color 0.2s; }
.checklist input:checked ~ .txt { color: var(--muted); }
.checklist .txt small { display: block; color: var(--faint); font-size: 13px; }
.checklist-done { display: none; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border); background: var(--ok-soft); color: var(--ok); font-weight: 500; font-size: 14.5px; }
.checklist-card.is-complete .checklist-done { display: flex; }

/* ---------- Arbre de décision ---------- */
.decision { margin: 20px 0 28px; display: grid; gap: 12px; }
.decision-step { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.decision-step .n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.decision-step p { margin: 2px 0 0; }
.decision-branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.branch { padding: 12px 14px; border-radius: 10px; background: var(--bg-subtle); border: 1px solid var(--border); font-size: 13.5px; line-height: 1.5; }
.branch b { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; color: var(--ink); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .docs-layout { grid-template-columns: 256px minmax(0, 1fr); }
  .docs-layout > .toc { display: none; }
  .docs-main { padding: 32px 40px 80px; }
}
@media (max-width: 900px) {
  .docs-layout, .docs-layout.no-toc { grid-template-columns: minmax(0, 1fr); }
  .menu-toggle { display: inline-grid; flex: none; }
  .header-row { gap: 10px; padding: 0 14px; }
  .header-row .search-trigger { flex: 1; min-width: 0; }
  .header-row .search-trigger span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .header-actions { flex: none; }
  .header-actions .btn { display: none; }
  .header-row .search-trigger { max-width: none; }
  .header-row .search-trigger kbd, .header-row .logo-sep, .header-row .logo-docs { display: none; }
  .sidebar {
    position: fixed; top: 0; left: 0; z-index: 70; width: min(320px, 86vw); height: 100vh; padding-top: 22px;
    background: var(--surface); box-shadow: var(--shadow-l); transform: translateX(-102%); transition: transform 0.3s var(--ease);
  }
  body.nav-open .sidebar { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 60; background: rgba(8, 18, 36, 0.4); }
  .docs-main { padding: 26px 20px 72px; }
  .page-head { flex-wrap: wrap; }
  .page-head h1 { font-size: 30px; }
  .page-tools { display: none; }
  .card-grid, .card-grid.cols-3, .decision-branches { grid-template-columns: 1fr; }
  .states { grid-template-columns: 1fr; }
  .state-links { display: none; }
  .attempts { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .attempt:nth-child(2)::before { display: none; }
  .flow-steps { grid-template-columns: 1fr; }
  .flow-play { border-left: 0; border-top: 1px solid var(--border); padding: 10px 14px; }
  .pager { grid-template-columns: 1fr; }
  .pager a.next { grid-column: 1; }
}
