/* =====================================================================
   FLOW marketing site · page components (29 Sep 2026)
   Loaded after styles.flow.css on: home, product, FLOW AI, FLOW Academy (resources + guides) and contact.
   dm-  visual demos and the HTML mock-ups (product.html, home journey)
   fa-  FLOW AI page (flow-ai.html)
   ac-  FLOW Academy (resources.html, guide-*.html)
   cx-  concierge access request (contact.html, assets/concierge.js)
   Site tokens only, so light and dark both work. Nothing here moves on its own: the only transitions are
   hover/focus and the request progress bar, and the global prefers-reduced-motion rule switches them off.
   ===================================================================== */

/* ---------- dm · HTML mock-ups (always labelled «Ejemplo con datos ficticios» by their caption) ---------- */
.dm-mock {
  border: 1px solid var(--line);
  border-radius: var(--shot-radius, 14px);
  background: var(--surface);
  box-shadow: var(--shot-shadow, var(--shadow));
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  min-width: 0;
  text-align: left;
}
.dm-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}
.dm-banner {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--warn-line);
  border-radius: 10px;
  background: var(--warn-bg);
  color: var(--warn-text);
  font-size: 13px;
}
.dm-banner.is-ok {
  border-color: transparent;
  background: var(--ok-bg);
  color: var(--ok-text);
}
.dm-banner strong {
  font-weight: 800;
}
.dm-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.dm-label {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.dm-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.dm-chip.is-on {
  border-color: var(--link);
  background: var(--tint);
  color: var(--link);
}
.dm-field {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}
.dm-field p {
  margin: 0;
}
.dm-field .dm-meter {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.dm-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dm-flow li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.dm-flow li.is-done {
  border-color: transparent;
  background: var(--ok-bg);
  color: var(--ok-text);
}
.dm-flow li.is-now {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--flow-on-action);
}
.dm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dm-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}
.dm-btn-primary {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--flow-on-action);
}
.dm-fieldset {
  display: grid;
  gap: 8px;
}
.dm-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}
.dm-radio i {
  flex: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--muted);
  border-radius: 50%;
}
.dm-radio.is-on {
  border-color: var(--link);
  background: var(--tint);
}
.dm-radio.is-on i {
  border-color: var(--link);
  box-shadow: inset 0 0 0 3px var(--tint), inset 0 0 0 9px var(--link);
}
.dm-radio small {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.dm-hint,
.dm-note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.dm-note strong {
  color: var(--text);
}
.dm-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.dm-tile {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}
.dm-tile span,
.dm-tile small {
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}
.dm-tile span {
  font-weight: 700;
}
.dm-tile strong {
  font-family: var(--head);
  font-size: 22px;
  line-height: 1.15;
}
.dm-tile.is-empty {
  border-style: dashed;
}
.dm-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 84px;
  padding: 8px 10px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}
.dm-chart i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--blue), var(--cyan));
  opacity: 0.85;
}

/* ---------- dm · the four demos of product.html ---------- */
.dm-grid {
  display: grid;
  gap: 22px;
  align-items: start;
}
@media (min-width: 900px) {
  .dm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.dm-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}
.dm-num {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--link);
}
.dm-kind {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin: 0;
  padding: 5px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}
.dm-kind-shot {
  background: var(--ok-bg);
  color: var(--ok-text);
}
.dm-kind-mock {
  border: 1px dashed var(--warn-line);
  background: var(--warn-bg);
  color: var(--warn-text);
}
.dm-kind-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.dm-card h3 {
  margin: 0;
  font-size: 22px;
}
.dm-card > p:not(.dm-num, .dm-kind) {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}
.dm-fig {
  margin: 0;
  min-width: 0;
}
.dm-fig figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.dm-figs {
  display: grid;
  gap: 14px;
  align-items: end;
}
@media (min-width: 560px) {
  .dm-figs {
    grid-template-columns: minmax(0, 1fr) 132px;
  }
}
.dm-fig-phone {
  justify-self: center;
}
.dm-phone {
  max-width: 132px;
  padding: 6px;
  border-radius: 26px;
}
.dm-phone img {
  border-radius: 20px;
}
.dm-card .card-link {
  margin-top: 4px;
}

/* ---------- fa · FLOW AI page ---------- */
.fa-toc-sec {
  padding: 20px 0 8px;
}
.fa-toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fa-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}
.fa-toc a:hover {
  border-color: var(--link);
  color: var(--link);
}
.fa-alt {
  background: var(--soft);
}
.fa-split {
  display: grid;
  gap: 32px;
}
@media (min-width: 960px) {
  .fa-split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
    align-items: start;
  }
}
.fa-lede {
  max-width: 52ch;
  margin-top: 14px;
  font-size: 18px;
  color: var(--muted);
}
.fa-cols {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}
.fa-split .fa-cols {
  margin-top: 0;
}
@media (min-width: 760px) {
  .fa-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fa-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .fa-split .fa-cols {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 1100px) {
  .fa-split .fa-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.fa-card {
  min-width: 0;
}
.fa-card h3 {
  margin-bottom: 10px;
  font-size: 19px;
}
.fa-card > p {
  font-size: 15px;
  color: var(--muted);
}
.fa-card .detail-list {
  margin-top: 0;
}
.fa-matrix small,
.fa-tools small,
.fa-skills small {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--muted);
}
.fa-matrix tbody th small {
  font-weight: 500;
}
.fa-na {
  font-size: 14px;
  color: var(--muted);
}
.fa-matrix .status,
.fa-tools .status,
.fa-skills .status {
  font-size: 12px;
  word-spacing: 0.12em; /* Manrope's space is only 0.2em wide */
}
.fa-matrix th[scope="row"] {
  min-width: 220px;
}
@media (max-width: 640px) {
  /* Stacked on a phone, each piece keeps its four states in a 2 × 2 grid (half the height of one long column). */
  .fa-matrix tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
  }
  .fa-matrix th[scope="row"] {
    grid-column: 1 / -1;
    min-width: 0;
  }
  .fa-matrix td {
    width: auto;
    min-width: 0;
  }
}
.fa-tools code,
.fa-skills code,
.fa-card code {
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  color: var(--text);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
  overflow-wrap: anywhere;
}
.fa-alt .fa-card code {
  background: var(--bg);
}
.fa-tools th[scope="row"] code {
  font-size: 14px;
  font-weight: 800;
}
.fa-tools td:nth-child(2) {
  min-width: 260px;
}
.fa-legend {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}
.fa-seq {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  font-size: 15px;
  color: var(--muted);
}
.fa-examples {
  display: grid;
  gap: 18px;
}
@media (min-width: 1100px) {
  .fa-examples {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.fa-code {
  margin: 14px 0 0;
}
.fa-code figcaption {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.fa-code pre {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.fa-code pre code {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-family: inherit;
  font-size: inherit;
}
.fa-tools td code,
.fa-skills td code {
  padding: 1px 5px;
  border: 0;
  background: var(--soft);
  font-size: 0.9em;
}
.fa-quote {
  margin-top: 22px;
}
.fa-quote p {
  margin: 0;
}

/* ---------- ac · FLOW Academy ---------- */
.ac-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 22px;
}
.ac-filter[hidden] {
  display: none;
}
.ac-filter-label {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}
.ac-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ac-chip {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}
.ac-chip:hover {
  border-color: var(--link);
}
.ac-chip[aria-pressed="true"] {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--flow-on-action);
}
.ac-count {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.ac-list {
  display: grid;
  gap: 22px;
}
.ac-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}
.ac-card[hidden] {
  display: none;
}
@media (min-width: 960px) {
  .ac-card {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}
.ac-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 28px;
}
.ac-main .eyebrow {
  margin: 4px 0 0;
}
.ac-cover {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--tint);
  color: var(--link);
}
.ac-cover .icon {
  width: 28px;
  height: 28px;
}
.ac-main h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}
.ac-main > p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}
.ac-tags,
.ac-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ac-tags li {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}
.ac-meta {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.ac-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.ac-meta .icon,
.ac-meta-inline .icon {
  width: 16px;
  height: 16px;
}
.ac-main .actions {
  gap: 8px 16px;
  margin-top: 8px;
}
.ac-dest {
  font-weight: 600;
}
.ac-hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.ac-script {
  min-width: 0;
  padding: 22px 28px;
  border-top: 1px solid var(--line);
  background: var(--soft);
}
@media (min-width: 960px) {
  .ac-script {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}
.ac-script summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 800;
  cursor: pointer;
}
.ac-script summary span {
  font-weight: 600;
  color: var(--muted);
}
.ac-steps {
  display: grid;
  gap: 12px;
  margin: 10px 0 0;
  padding-left: 22px;
  font-size: 15px;
  color: var(--muted);
}
.ac-steps strong {
  color: var(--text);
}
.ac-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.ac-lessons {
  margin: 44px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.ac-lessons h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 30px);
}
.ac-lessons-lead {
  max-width: 72ch;
  margin: 0 0 22px;
  color: var(--muted);
}
.ac-lgroups {
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .ac-lgroups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.ac-lg {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.ac-lg[hidden] {
  display: none;
}
.ac-lg h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.ac-lg-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ac-lg-list li {
  display: grid;
  gap: 2px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.ac-lg-list li:first-child {
  border-top: 0;
}
.ac-lg-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  color: var(--link);
  text-decoration: none;
}
.ac-lg-list a:hover {
  text-decoration: underline;
}
.ac-lg-list a .icon {
  flex: none;
  width: 16px;
  height: 16px;
}
.ac-lg-meta {
  font-size: 13px;
  color: var(--muted);
}
.ac-lessons-all {
  margin: 20px 0 0;
}
.ac-empty,
.ac-foot {
  margin: 22px 0 0;
  font-size: 15px;
  color: var(--muted);
}
.ac-video {
  display: grid;
  overflow: hidden;
  margin-bottom: 8px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: var(--soft);
}
@media (min-width: 640px) {
  .ac-video {
    grid-template-columns: 200px minmax(0, 1fr);
  }
}
.ac-video-frame {
  display: grid;
  place-items: center;
  min-height: 120px;
  background: var(--tint);
  color: var(--link);
}
.ac-video-frame .icon {
  width: 44px;
  height: 44px;
}
.ac-video-body {
  display: grid;
  gap: 8px;
  padding: 20px 22px;
}
.ac-video-body p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}
.ac-meta-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px !important;
}
.ac-video-body .actions {
  margin-top: 4px;
}
.ac-script-label {
  margin: 26px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- cx · concierge access request ---------- */
.form-card.cx {
  padding: 22px;
}
@media (min-width: 640px) {
  .form-card.cx {
    padding: 34px;
  }
}
.cx-form {
  display: grid;
  gap: 22px;
}
.cx-top {
  display: grid;
  gap: 12px;
}
.cx-top h2 {
  margin: 0;
  font-size: 24px;
}
.cx-progress {
  display: grid;
  gap: 8px;
}
.cx-progress[hidden] {
  display: none;
}
.cx-progress-text {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}
.cx-progress-text strong {
  color: var(--text);
  font-family: var(--head);
  font-size: 16px;
}
.cx-bar {
  height: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
}
.cx-bar span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transition: width 0.25s ease;
}
.cx-review {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--tint);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}
.cx-save {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 12px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.cx-save[hidden] {
  display: none;
}
.cx-link {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--link);
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cx-step {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.cx-step[hidden] {
  display: none;
}
.cx-h {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.cx-h:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
  border-radius: 6px;
}
.cx-count {
  color: var(--link);
}
/* With JavaScript the screen shows «Paso N de 5» in the progress line, so the heading keeps it only for
   assistive technology (focus lands on the heading after each step change). */
.cx-js .cx-count {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.cx-fieldset[aria-invalid="true"] .cx-choice {
  border-color: #c2412d;
}
.calc-stepper:has(input[aria-invalid="true"]) {
  border-color: #c2412d;
  box-shadow: 0 0 0 1px #c2412d;
}
.cx-fieldset {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.cx-fieldset legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 800;
}
.cx-fieldset legend .optional {
  font-weight: 500;
  color: var(--muted);
}
.cx-help {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.cx-choices {
  display: grid;
  gap: 10px;
}
@media (min-width: 560px) {
  .cx-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.cx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cx-list {
  display: grid;
  gap: 10px;
}
.cx-choice,
.cx-chip,
.cx-check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #b9c7d8;
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
}
[data-theme="dark"] .cx-choice,
[data-theme="dark"] .cx-chip,
[data-theme="dark"] .cx-check {
  border-color: #3b5673;
}
/* The real control covers the whole card: one big, keyboard-friendly target. */
.cx-choice input,
.cx-chip input,
.cx-check input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.cx-choice::before,
.cx-chip::before,
.cx-check::before {
  content: "";
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 2px solid var(--muted);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}
.cx-chip::before,
.cx-check::before {
  border-radius: 6px;
}
.cx-choice:has(input:checked),
.cx-chip:has(input:checked),
.cx-check:has(input:checked) {
  border-color: var(--link);
  background: var(--tint);
  box-shadow: inset 0 0 0 1px var(--link);
}
.cx-choice:has(input:checked)::before {
  border-color: var(--link);
  background: radial-gradient(circle, var(--link) 0 40%, transparent 46%);
}
.cx-chip:has(input:checked)::before,
.cx-check:has(input:checked)::before {
  content: "✓";
  border-color: var(--link);
  background: var(--link);
  color: var(--flow-on-action);
}
.cx-choice:has(input:focus-visible),
.cx-chip:has(input:focus-visible),
.cx-check:has(input:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.cx-choice span,
.cx-chip span,
.cx-check span {
  display: block;
  min-width: 0;
  font-size: 15px;
  line-height: 1.35;
}
.cx-choice strong {
  display: block;
  font-size: 15px;
}
.cx-choice small,
.cx-chip small {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.cx-chip small:empty {
  display: none;
}
.cx-choice,
.cx-chip {
  font-weight: 700;
}
.cx-carried {
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  font-size: 14px;
  color: var(--muted);
}
.cx-carried[hidden] {
  display: none;
}
.cx-num .calc-hint {
  font-size: 14px;
}
.cx-summary {
  display: grid;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.cx-summary[hidden] {
  display: none;
}
.cx-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.cx-row:last-child {
  border-bottom: 0;
}
.cx-row dt {
  grid-column: 1 / -1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.cx-row dd {
  margin: 0;
  font-size: 15px;
  overflow-wrap: anywhere;
}
.cx-row dd.cx-edit-cell {
  align-self: center;
  justify-self: end;
}
.cx-edit {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--link);
  font-size: 14px;
  font-weight: 800;
}
.cx-edit:hover {
  border-color: var(--link);
}
.cx-plan {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--link);
  border-radius: 14px;
  background: var(--tint);
}
.cx-plan[hidden] {
  display: none;
}
.cx-plan p {
  margin: 0;
  font-size: 15px;
  color: var(--text);
}
.cx-plan-tag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 13px !important;
  color: var(--muted) !important;
}
.cx-plan-tag strong {
  padding: 2px 10px;
  border: 1px solid var(--link);
  border-radius: 999px;
  background: var(--surface);
  color: var(--link);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cx-plan-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.cx-plan-name strong {
  font-family: var(--head);
  font-size: 22px;
}
.cx-plan .cx-plan-math,
.cx-plan .cx-plan-note {
  font-size: 14px;
  color: var(--muted);
}
.cx-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cx-nav[hidden],
.cx-nav [hidden] {
  display: none;
}
.cx-nav .btn {
  flex: 1 1 140px;
}
.cx-nav [data-cx-next],
.cx-nav [data-cx-submit] {
  margin-left: auto;
}
.cx-note {
  margin: 0;
}
.cx-review + .cx-save,
.cx-save + .cx-note {
  margin-top: 0;
}
@media (max-width: 640px) {
  /* Back and the main action share a row while they fit; the DOM order (Back, Next) is also the visual and focus order. */
  .cx-nav .btn {
    padding-inline: 14px;
  }
  .cx-nav [data-cx-back] {
    flex: 0 0 auto;
    min-width: 84px;
  }
  .cx-nav [data-cx-next],
  .cx-nav [data-cx-submit] {
    flex: 1 1 160px;
    margin-left: 0;
  }
}
