/* Isolated homepage additions: existing workspace cards retain their layout. */
.dx-service-flows { padding: 54px 0 62px; background: linear-gradient(180deg,#fff,#f8fafc); color: #183153; }
.dx-service-flows__heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 25px; }
.dx-service-flows__heading h2 { margin: 8px 0 0; font-size: clamp(27px,3vw,39px); line-height: 1.15; letter-spacing: -.035em; }
.dx-service-flows__heading > p { max-width: 370px; margin: 0; color: #5d6d83; font-size: 14px; line-height: 1.65; }
.dx-service-flows__terms { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; color: #285485; }
.dx-service-flows__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.dx-service-flow { min-width: 0; padding: 22px 22px 12px; border: 1px solid #dce5ef; border-radius: 20px; background: #fff; box-shadow: 0 12px 35px #223c6310; }
.dx-service-flow__heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dx-service-flow__eyebrow { color: #3161a1; font-size: 10px; letter-spacing: .13em; font-weight: 800; }
.dx-service-flow--ar .dx-service-flow__eyebrow { color: #087d75; }
.dx-service-flow__heading h3 { margin: 7px 0 0; font-size: clamp(20px,1.8vw,25px); line-height: 1.2; letter-spacing: -.025em; }
.dx-service-flow__heading > a { flex-shrink: 0; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #dbe5f0; border-radius: 50%; color: #345b8a; text-decoration: none; }
.dx-service-flow__heading > a:hover { background: #eef4fb; }
.dx-service-flow__description { margin: 9px 0 17px; font-size: 12px; line-height: 1.6; color: #617189; }
.dx-service-flow__scene { min-width: 0; border: 1px solid #e1e8f1; border-radius: 12px; overflow: hidden; background: #f7f9fc; }
.dx-hiring-identity,.dx-ar-upload { display: flex; gap: 9px; align-items: center; min-height: 60px; padding: 12px; border-bottom: 1px solid #e1e8f1; background: #fff; }
.dx-hiring-identity__avatar,.dx-ar-upload__icon { flex: 0 0 33px; height: 33px; display: grid; place-items: center; background: #eaf0fc; color: #335781; border-radius: 10px; font-size: 12px; font-weight: 800; }
.dx-ar-upload__icon { background: #e4f5ef; color: #0b7363; font-size: 20px; }
.dx-hiring-identity > div,.dx-ar-upload > div { flex: 1; min-width: 0; }
.dx-hiring-identity strong,.dx-ar-upload strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.dx-hiring-identity > div > span,.dx-ar-upload > div > span { display: block; margin-top: 2px; font-size: 10px; line-height: 1.5; color: #64758b; }
.dx-flow-chip { flex-shrink: 0; padding: 4px 7px; border-radius: 6px; font-size: 9px; font-weight: 750; color: #285c65; background: #e8f5f2; }
.dx-hiring-body { display: grid; grid-template-columns: minmax(0,1fr) 135px; gap: 15px; padding: 14px 12px; min-height: 240px; }
.dx-hiring-document { align-self: center; padding: 13px 12px 0; background: #fff; border: 1px solid #dbe4ef; border-radius: 8px; box-shadow: 0 5px 12px #243e6810; }
.dx-hiring-document__top { display: flex; align-items: center; gap: 7px; color: #68788c; font-size: 8px; line-height: 1.5; letter-spacing: .07em; }
.dx-hiring-document__top b { font-size: 11px; letter-spacing: 0; color: #203959; }
.dx-hiring-document__symbol { padding: 0 6px; font-size: 26px; color: #3b6089; border: 1px solid #e1e9f4; border-radius: 4px; }
.dx-hiring-document__check { margin-left: auto; color: #168169; font-size: 18px; }
.dx-hiring-document__lines { display: grid; gap: 5px; margin: 11px 0; }
.dx-hiring-document__lines i { height: 3px; background: #e3e9f0; border-radius: 2px; }
.dx-hiring-document__lines i:nth-child(2) { width: 83%; }
.dx-hiring-document__lines i:nth-child(3) { width: 66%; }
.dx-hiring-signature { display: flex; align-items: center; justify-content: space-between; gap: 5px; min-height: 34px; border-bottom: 1px dashed #cad7e4; }
.dx-hiring-signature > span,.dx-hiring-countersign { color: #66778b; font-size: 9px; }
.dx-hiring-signature__name { color: #274a76; font: italic 25px/1.1 Georgia,serif; white-space: nowrap; clip-path: inset(0); transition: clip-path 1.2s ease; }
.dx-hiring-document[data-signatures="0"] .dx-hiring-signature__name { clip-path: inset(0 100% 0 0); }
.dx-hiring-countersign { display: flex; justify-content: space-between; gap: 7px; padding: 7px 0; }
.dx-hiring-countersign b { color: #0b7663; font-size: 9px; }
.dx-hiring-document__footer { margin: 0 -12px; padding: 7px 12px; border-top: 1px solid #e2eaf2; color: #4b6686; background: #f6f9fd; font-size: 9px; border-radius: 0 0 8px 8px; }
.dx-hiring-stages { display: flex; flex-direction: column; justify-content: center; margin: 0; padding: 0; list-style: none; }
.dx-hiring-stages li { position: relative; display: flex; gap: 8px; align-items: center; min-height: 31px; color: #7b8797; font-size: 10px; }
.dx-hiring-stages i { z-index: 1; flex-shrink: 0; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #cfdae7; background: #f7f9fc; }
.dx-hiring-stages li:not(:last-child)::after { content: ''; position: absolute; top: 21px; left: 5px; width: 1px; height: 22px; background: #d6e0eb; }
.dx-hiring-stages .is-done { color: #37536d; }
.dx-hiring-stages .is-done i { border-color: #26947d; background: #26947d; box-shadow: inset 0 0 0 2px #f7f9fc; }
.dx-hiring-stages .is-current { color: #254d88; font-weight: 800; }
.dx-hiring-stages .is-current i { border-color: #487fca; background: #487fca; box-shadow: 0 0 0 3px #e1eaf9; }
.dx-hiring-receipt,.dx-ar-notice { display: flex; align-items: center; gap: 8px; min-height: 54px; padding: 10px 12px; border-top: 1px solid #e0e9ef; background: #eff8f5; }
.dx-hiring-receipt__icon,.dx-ar-notice > span { flex-shrink: 0; display: grid; place-items: center; width: 23px; height: 23px; color: #147360; border-radius: 50%; background: #ddf0e8; font-size: 12px; }
.dx-hiring-receipt > div,.dx-ar-notice > div { min-width: 0; flex: 1; }
.dx-hiring-receipt strong,.dx-ar-notice strong { display: block; color: #285948; font-size: 10px; line-height: 1.4; }
.dx-hiring-receipt div > span,.dx-ar-notice div > span { display: block; margin-top: 3px; color: #597367; font-size: 9px; line-height: 1.4; overflow-wrap: anywhere; }
.dx-flow-now { color: #6c847b; font-size: 8px; white-space: nowrap; }
.dx-ar-body { display: grid; grid-template-columns: minmax(0,1fr) 145px; min-height: 240px; }
.dx-ar-downloads { min-width: 0; padding: 13px 10px 10px 12px; }
.dx-ar-downloads__heading { margin-bottom: 8px; }
.dx-ar-downloads__heading strong { display: block; font-size: 10px; }
.dx-ar-downloads__heading > span { color: #65758a; font-size: 9px; }
.dx-ar-file { display: flex; gap: 7px; align-items: center; min-height: 51px; margin: 5px 0; padding: 7px; border: 1px solid #e0e8ee; border-radius: 6px; background: #fff; }
.dx-ar-file__icon { color: #138371; font-size: 16px; }
.dx-ar-file > div { flex: 1; min-width: 0; }
.dx-ar-file strong { display: block; overflow-wrap: anywhere; font-size: 9px; line-height: 1.5; font-weight: 650; color: #2e4d68; }
.dx-ar-file div > span { display: flex; justify-content: space-between; gap: 6px; align-items: center; margin-top: 3px; }
.dx-ar-file b { font-size: 9px; font-weight: 550; color: #536d83; }
.dx-ar-file small { color: #147962; font-size: 9px; white-space: nowrap; }
.dx-ar-file.is-new { animation: dx-flow-arrival .32s ease-out both; }
.dx-ar-file.is-new[data-arrival="b"] { animation-name: dx-flow-arrival-next; }
.dx-ar-file.is-empty { opacity: .5; }
.dx-ar-folder { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: #657b8c; font-size: 9px; }
.dx-ar-folder > span { font-size: 16px; color: #3b7a8a; }
.dx-ar-metrics { display: flex; flex-direction: column; justify-content: center; gap: 9px; padding: 12px; background: #edf6f3; border-left: 1px solid #dcece5; }
.dx-ar-metrics span { display: block; font-size: 9px; color: #4c7063; line-height: 1.4; }
.dx-ar-metrics strong { font-variant-numeric: tabular-nums; }
.dx-ar-metrics__hero > strong { display: block; font-size: 33px; line-height: 1.1; letter-spacing: -.04em; color: #0a7764; }
.dx-ar-meter { margin-top: 5px; overflow: hidden; height: 3px; background: #d4e8df; border-radius: 4px; }
.dx-ar-meter > i { display: block; height: 100%; background: #27a086; transform-origin: left; transition: transform .35s ease-out; }
.dx-ar-metrics__pair { display: flex; justify-content: space-between; gap: 8px; }
.dx-ar-metrics__pair strong { display: block; margin-top: 1px; font-size: 17px; line-height: 1.2; }
.dx-ar-metrics__pair > div:last-child strong { color: #b45f31; }
.dx-ar-metrics__money strong { display: block; color: #176e5b; font-size: 18px; line-height: 1.25; }
.dx-ar-metrics__money--patient strong { font-size: 15px; color: #365d64; }
.dx-service-flow__footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; padding-top: 6px; }
.dx-service-flow__footer > span { display: flex; align-items: center; gap: 6px; font-size: 9px; color: #63758b; }
.dx-service-flow__footer i { width: 5px; height: 5px; background: #7391b0; border-radius: 50%; }
.dx-service-flow__footer button { padding: 5px 9px; min-width: 58px; border: 1px solid #d9e3ee; border-radius: 6px; background: #fff; color: #486386; font: inherit; font-size: 10px; cursor: pointer; }
.dx-service-flow__footer button:hover { background: #f2f6fb; }
.dx-service-flows a:focus-visible,.dx-service-flows button:focus-visible { outline: 2px solid #246ba9; outline-offset: 3px; }
.dx-service-flow.is-flow-paused .dx-ar-file { animation-play-state: paused; }
.dx-service-flow.is-flow-paused .dx-hiring-signature__name,.dx-service-flow.is-flow-paused .dx-ar-meter > i { transition: none; }
@keyframes dx-flow-arrival { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dx-flow-arrival-next { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1150px) {
  .dx-service-flows__grid { grid-template-columns: minmax(0,1fr); max-width: 730px; margin-inline: auto; }
  .dx-service-flows__heading { align-items: start; }
  .dx-service-flows__heading > p { max-width: 290px; }
  .dx-ar-body { grid-template-columns: minmax(0,1fr) 180px; }
  .dx-hiring-body { grid-template-columns: minmax(0,1fr) 175px; }
}
@media (max-width: 620px) {
  .dx-service-flows { padding-block: 36px; }
  .dx-service-flows__heading { display: block; }
  .dx-service-flows__heading > p { max-width: none; margin-top: 12px; }
  .dx-service-flow { padding: 17px 13px 10px; border-radius: 15px; }
  .dx-hiring-body { grid-template-columns: minmax(0,1fr) 111px; gap: 9px; padding: 12px 9px; }
  .dx-hiring-stages li { font-size: 9px; gap: 6px; }
  .dx-hiring-document { padding-inline: 9px; }
  .dx-hiring-document__footer { margin-inline: -9px; padding-inline: 9px; }
  .dx-hiring-document__symbol { display: none; }
  .dx-hiring-signature { flex-wrap: wrap; }
  .dx-hiring-signature > span { width: 100%; }
  .dx-hiring-signature__name { margin-left: auto; }
  .dx-hiring-countersign { flex-wrap: wrap; }
  .dx-hiring-identity,.dx-ar-upload { flex-wrap: wrap; }
  .dx-hiring-identity .dx-flow-chip,.dx-ar-upload .dx-flow-chip { margin-left: auto; }
  .dx-ar-body { grid-template-columns: minmax(0,1fr); }
  .dx-ar-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; gap: 12px; border-left: 0; border-top: 1px solid #dcece5; }
  .dx-ar-metrics__hero > strong { font-size: 30px; }
  .dx-ar-file strong { font-size: 9px; overflow-wrap: anywhere; white-space: normal; }
  .dx-ar-file { min-height: 46px; }
  .dx-ar-downloads { padding: 12px; }
  .dx-service-flow__footer button { min-height: 36px; }
  .dx-flow-now { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dx-service-flows *, .dx-service-flows *::before, .dx-service-flows *::after { animation: none !important; transition: none !important; }
}
