/* TK-0047: refreshed presentation; workflow content and ordering are unchanged. */
.section-how-it-works.hiw-layout-connected {
  --workflow-blue: #287bed;
  --workflow-ink: #193558;
  --workflow-border: #d9e8f8;
}
.hiw-layout-connected .hiw-main-grid {
  width: 100%;
  max-width: 1240px;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 48px;
  margin: 40px auto 0;
}
.section-how-it-works.hiw-layout-connected .hiw-flow-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.section-how-it-works.hiw-layout-connected .hiw-flow-badge {
  align-self: center;
  margin: 0 0 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--workflow-ink);
  font-size: 16px;
  font-weight: 700;
}
.section-how-it-works.hiw-layout-connected .hiw-flow-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr);
  gap: 6px;
  width: 100%;
  align-items: stretch;
  margin: 0;
}
.section-how-it-works.hiw-layout-connected .hiw-step-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-width: 0;
  min-height: 104px;
  padding: 14px 8px;
  border: 1px solid var(--workflow-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 8px rgba(25, 53, 88, .04);
  color: var(--workflow-ink);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
.section-how-it-works.hiw-layout-connected .hiw-step-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.section-how-it-works.hiw-layout-connected .hiw-step-icon img {
  width: 27px;
  height: 27px;
  max-width: 100%;
  object-fit: contain;
}
.section-how-it-works.hiw-layout-connected .hiw-flow-arrow {
  align-self: center;
  color: var(--workflow-blue);
  font-size: 18px;
  opacity: 1;
}
.section-how-it-works.hiw-layout-connected .hiw-flow-bottom {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin: 8px 0 0;
  padding: 18px 0;
  border-top: 1px dashed var(--workflow-border);
}
.section-how-it-works.hiw-layout-connected .hiw-house-illustration {
  width: 120px;
  height: 120px;
  padding: 0;
  margin: 0;
  border-radius: 0;
}
.section-how-it-works.hiw-layout-connected .hiw-house-illustration img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.section-how-it-works.hiw-layout-connected .hiw-flow-summary {
  margin: 0;
  color: #526f91;
  font-size: 14px;
  line-height: 1.65;
  text-align: left;
}
.section-how-it-works.hiw-layout-connected .hiw-automation-panel {
  flex: initial;
  min-height: 0;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--workflow-border);
  border-radius: 8px;
  background: #f4f9ff;
  box-shadow: none;
  text-align: left;
}
.hiw-layout-connected .hiw-automation-heading { flex-wrap: wrap; gap: 12px; }
.hiw-layout-connected .hiw-automation-heading h3 { font-size: 20px; line-height: 1.3; }
.hiw-layout-connected .hiw-automation-track { margin-top: 28px; gap: 12px; }
.hiw-layout-connected .hiw-automation-node { gap: 12px; }
.hiw-layout-connected .hiw-automation-node-icon { width: 44px; height: 44px; border-radius: 12px; }
.hiw-layout-connected .hiw-automation-line { top: 21px; }
.hiw-layout-connected .hiw-automation-node strong { font-size: 13px; line-height: 1.4; }
.hiw-layout-connected .hiw-automation-node small { color: #526f91; font-size: 11px; line-height: 1.5; }
.hiw-layout-connected .hiw-automation-footer { margin-top: 24px; padding-top: 18px; color: #526f91; }
.hiw-layout-connected .hiw-automation-footer b { font-size: 24px; }
.section-how-it-works.hiw-layout-connected .hiw-stages-list {
  display: grid;
  gap: 0;
  min-width: 0;
  padding: 0;
}
.section-how-it-works.hiw-layout-connected .hiw-stage-item {
  position: relative;
  display: grid;
  grid-template-columns: 32px 44px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 21px 0;
  border: 0;
  border-bottom: 1px solid var(--workflow-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}
.hiw-layout-connected .hiw-stage-item:first-child { padding-top: 0; }
.hiw-layout-connected .hiw-stage-item:last-child { border-bottom: 0; }
.section-how-it-works.hiw-layout-connected .stage-badge {
  width: 32px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--workflow-blue);
  font-size: 14px;
  font-weight: 700;
}
.hiw-layout-connected .hiw-stage-icon { width: 44px; height: 44px; border-radius: 8px; }
.hiw-layout-connected .hiw-stage-icon img { width: 28px; height: 28px; object-fit: contain; }
.hiw-layout-connected .hiw-stage-copy { min-width: 0; text-align: left; }
.hiw-layout-connected .hiw-stage-copy h3 { margin: 0 0 7px; font-size: 17px; line-height: 1.35; color: var(--workflow-ink); }
.hiw-layout-connected .hiw-stage-copy p { margin: 0; color: #526f91; font-size: 14px; line-height: 1.65; }
.hiw-layout-connected :is(.hiw-step-box, .hiw-stage-copy, .hiw-automation-panel) { letter-spacing: 0; }
@media (max-width: 1024px) {
  .section-how-it-works.hiw-layout-connected .hiw-main-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
    gap: 32px;
  }
}
@media (max-width: 600px) {
  .section-how-it-works.hiw-layout-connected .hiw-flow-card { gap: 12px; }
  .section-how-it-works.hiw-layout-connected .hiw-main-grid { margin-top: 28px; gap: 28px; }
  .section-how-it-works.hiw-layout-connected .hiw-flow-row {
    grid-template-columns: minmax(0, 1fr) 10px minmax(0, 1fr) 10px minmax(0, 1fr);
    gap: 4px;
  }
  .section-how-it-works.hiw-layout-connected .hiw-step-box {
    min-height: 106px;
    padding: 10px 5px;
    gap: 8px;
    font-size: 12px;
  }
  .section-how-it-works.hiw-layout-connected .hiw-flow-arrow { font-size: 14px; }
  .section-how-it-works.hiw-layout-connected .hiw-flow-bottom {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 14px;
  }
  .section-how-it-works.hiw-layout-connected .hiw-house-illustration { width: 80px; height: 96px; }
  .section-how-it-works.hiw-layout-connected .hiw-flow-summary { font-size: 13px; }
  .section-how-it-works.hiw-layout-connected .hiw-automation-panel { padding: 18px 12px; }
  .hiw-layout-connected .hiw-automation-heading h3 { font-size: 18px; }
  .hiw-layout-connected .hiw-automation-track { gap: 8px; }
  .hiw-layout-connected .hiw-automation-node strong { font-size: 12px; }
  .hiw-layout-connected .hiw-automation-footer { gap: 6px; font-size: 11px; }
  .hiw-layout-connected .hiw-automation-footer b { font-size: 22px; }
  .section-how-it-works.hiw-layout-connected .hiw-stage-item {
    grid-template-columns: 26px 36px minmax(0, 1fr);
    gap: 10px;
    padding: 18px 0;
  }
  .section-how-it-works.hiw-layout-connected .stage-badge { width: 26px; height: 36px; font-size: 12px; }
  .hiw-layout-connected .hiw-stage-icon { width: 36px; height: 36px; }
  .hiw-layout-connected .hiw-stage-icon img { width: 24px; height: 24px; }
  .hiw-layout-connected .hiw-stage-copy h3 { font-size: 16px; }
  .hiw-layout-connected .hiw-stage-copy p { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .hiw-layout-connected .hiw-step-box { transition: none; transform: none; }
}
