.check-flow { padding-block: .5rem 1rem; }
.check-flow [hidden] { display: none !important; }
.check-flow__workspace { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.check-flow__outcome { min-width: 0; }
.check-flow__placeholder { display: flex; min-height: 16rem; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1.5rem; border: 1px dashed #c9d5e5; border-radius: 1rem; background: #ffffff80; text-align: center; }
.check-flow__placeholder-icon { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin-bottom: 1rem; border: 1px solid #dbe2eb; border-radius: 1rem; background: #fff; color: #7b8fbb; }
.check-flow__placeholder-icon svg { width: 1.75rem; height: 1.75rem; }
.check-flow__placeholder h2 { margin-top: .3rem; color: #3f4f66; font-size: 1.05rem; font-weight: 600; letter-spacing: -.02em; }
.check-flow__placeholder > p:last-child { max-width: 18rem; margin-top: .5rem; color: #69788c; font-size: .875rem; line-height: 1.7; }
.check-flow__connection { position: relative; width: 1px; height: 1.5rem; margin: -.25rem auto; border-left: 1px dashed #b7c5d7; }
.check-flow__connection > span { position: absolute; left: -.25rem; top: -.2rem; width: .45rem; height: .45rem; border-radius: 50%; background: #7b8fbb; }
.check-flow__results-title { margin: .25rem 0 1rem; font-size: 1.125rem; font-weight: 600; letter-spacing: -.025em; }
.check-flow__results { display: grid; gap: 1rem; }
.check-flow__result-card { grid-template-columns: 2.25rem minmax(0, 1fr); gap: .75rem; }
.check-flow__result-card .matching-demo__result-heading { min-width: 0; align-self: center; padding: 0; }
.check-flow__result-card h3 { font-size: .9375rem; }
.check-flow__result-card .matching-demo__count > div { display: flex; gap: .3rem; }
.check-flow__result-card .matching-demo__count dt::after { content: ":"; }
.check-flow__summary { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; padding-top: .25rem; font-size: .8125rem; }
.check-flow__summary dt { margin-bottom: .4rem; font-size: .75rem; opacity: .8; }
.check-flow__evidence { grid-column: 1 / -1; }
.check-flow__field-list { display: flex; flex-wrap: wrap; gap: .4rem; line-height: 1.6; }
.check-flow__field { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .5rem; border: 1px solid var(--result-border); border-radius: .4rem; background: #ffffffa6; color: var(--result-ink); }
.check-flow__field > span:first-child { font-size: .875rem; font-weight: 600; }
.check-flow__field--different { border-color: #dbe2eb; background: #f1f4f8; color: #647184; }
.check-flow__date { padding-top: .75rem; border-top: 1px solid var(--result-border); line-height: 1.5; }
.check-flow__date dd { font-variant-numeric: tabular-nums; }
.check-flow__failure { margin-bottom: 1rem; padding: 1rem; border: 1px solid #fecaca; border-radius: .75rem; background: #fef2f2; color: #991b1b; font-size: .875rem; line-height: 1.6; }
.check-flow__scan { display: none; }
.check-flow__spinner { width: 2.75rem; height: 2.75rem; margin-bottom: 1rem; border: 2px solid #dbe2eb; border-top-color: #7b8fbb; border-radius: 50%; }

@media (min-width: 55rem) {
  .check-flow__workspace { grid-template-columns: minmax(0, 1fr) 1.5rem minmax(0, 1fr); gap: .75rem; padding: 1.75rem; }
  .check-flow__connection { align-self: start; width: 100%; height: 1px; margin: 13rem 0 0; border-top: 1px dashed #b7c5d7; border-left: 0; }
  .check-flow__connection > span { left: -.2rem; top: -.25rem; }
}

@media (max-width: 30rem) {
  .check-flow__placeholder { padding-inline: 1rem; }
  .check-flow__result-card { grid-template-columns: 1.75rem minmax(0, 1fr); }
  .check-flow__result-card .matching-demo__result-icon { width: 1.75rem; height: 1.75rem; border-radius: .5rem; }
  .check-flow__result-card .matching-demo__result-heading { display: block; }
  .check-flow__result-card .matching-demo__count { display: table; margin-top: .4rem; }
  .check-flow__summary { gap: .875rem .5rem; }
}

@media (prefers-reduced-motion: no-preference) {
  [data-check-state="checking"] .check-flow__scan { display: block; position: absolute; inset: 0 0 auto; height: 2px; background: #a5b9e6; box-shadow: 0 -8px 22px 4px #a5b9e633; animation: check-scan 1.5s ease-in-out infinite; }
  [data-check-state="checking"] .check-flow__spinner { animation: check-spin .8s linear infinite; }
  [data-check-state="checking"] .check-flow__connection > span { animation: check-connection 1s ease-in-out infinite; }
  .check-flow__result { animation: check-reveal .4s ease-out both; }
  .check-flow__field { animation: check-reveal .3s ease-out both; }
  .check-flow__field:nth-child(2) { animation-delay: .04s; }
  .check-flow__field:nth-child(3) { animation-delay: .08s; }
  .check-flow__field:nth-child(4) { animation-delay: .12s; }
  .check-flow__field:nth-child(5) { animation-delay: .16s; }
  .check-flow__field:nth-child(6) { animation-delay: .2s; }
}

@keyframes check-scan { from { top: 0; opacity: 0; } 15%, 80% { opacity: 1; } to { top: 100%; opacity: 0; } }
@keyframes check-spin { to { transform: rotate(360deg); } }
@keyframes check-connection { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes check-reveal { from { opacity: 0; transform: translateY(.4rem); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 55rem) {
  .check-flow__workspace--report { grid-template-columns: minmax(0, 1fr); max-width: 34.5rem; }
}
