#humanized-flow-dock {
  position: relative;
  left: auto;
  right: auto;
  width: min(1180px, calc(100% - 32px));
  /* Reserve the fixed kiosk navigation band so the guidance panel never
     sits underneath the back/home buttons on 1080x1920 terminals. */
  margin: 96px auto 20px;
  top: auto;
  transform: none;
  z-index: 2;
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  align-items: center;
  gap: 24px;
  min-height: 116px;
  padding: 14px 18px 14px 24px;
  border: 2px solid rgba(94, 234, 212, .78);
  border-radius: 24px;
  background: linear-gradient(100deg, rgba(11, 20, 37, .98), rgba(27, 35, 65, .98));
  box-shadow: 0 20px 70px rgba(0, 0, 0, .56), 0 0 32px rgba(45, 212, 191, .18);
  backdrop-filter: blur(18px);
}

body.hf-enabled #kiosk-exit-btn { min-width:190px; min-height:72px; font-size:22px; border-radius:18px; }

body.hf-enabled #humanized-flow-dock.visible { display: grid; }

#humanized-flow-dock.guidance-only {
  grid-template-columns: 1fr;
  min-height: 0;
  padding: 14px 24px 16px;
}

#humanized-flow-dock.guidance-only #humanized-flow-primary {
  display: none;
}

.hf-step-copy { min-width: 0; }
.hf-progress { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; margin-bottom:10px; }
.hf-progress-step { min-width:0; padding:8px 6px; border-radius:999px; background:rgba(255,255,255,.08); color:rgba(255,255,255,.5); font-size:14px; font-weight:800; text-align:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.hf-progress-step.active { background:linear-gradient(135deg,#6cebd8,#f6d377); color:#11182a; box-shadow:0 5px 18px rgba(108,235,216,.28); }
.hf-progress-step.done { background:rgba(45,212,191,.2); color:#8ff5e7; }
.hf-step-kicker { color: #66f1df; font-size: 19px; font-weight: 900; letter-spacing: 1px; }
.hf-step-title { margin-top: 5px; color: #fff; font-size: clamp(24px, 2.2vw, 36px); line-height: 1.15; font-weight: 1000; }
.hf-step-hint { margin-top: 6px; color: rgba(255,255,255,.75); font-size: 17px; line-height: 1.35; }

#humanized-flow-primary {
  width: 100%;
  min-height: 96px;
  border: 3px solid rgba(255,255,255,.92);
  border-radius: 20px;
  padding: 18px 28px;
  color: #14182a;
  background: linear-gradient(135deg, #79f2de, #f6d377);
  box-shadow: 0 12px 40px rgba(121, 242, 222, .34);
  font-size: clamp(25px, 2.3vw, 38px);
  font-weight: 1000;
  cursor: pointer;
}

#humanized-flow-primary:disabled {
  color: rgba(255,255,255,.6);
  background: #3a4054;
  border-color: rgba(255,255,255,.24);
  box-shadow: none;
  cursor: not-allowed;
}

#humanized-flow-dock[data-stage="result"] #humanized-flow-primary {
  background: linear-gradient(135deg, #ffd166, #ff7b54);
}

#humanized-flow-dock[data-stage="failure"] {
  border-color: rgba(255, 126, 126, .9);
}

@media (max-width: 1100px) {
  #humanized-flow-dock {
    left: auto;
    right: auto;
    width: min(920px, calc(100% - 24px));
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hf-step-hint { display: none; }
  .hf-progress-step { font-size:12px; }
}
