/* Self-contained candidate walkthrough; original builder styles are untouched. */
.hfip-dialog{width:min(1100px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 40px);padding:0;border:0;border-radius:20px;background:#fff;color:#252533;box-shadow:0 24px 90px #17142833;overflow:auto;overscroll-behavior:contain}
.hfip-dialog::backdrop{background:#17152b99;backdrop-filter:blur(5px)}
.hfip-shell{--hfip-brand:#605bff;font-size:15px;line-height:1.6;color:#252533}
.hfip-shell *{box-sizing:border-box}
.hfip-shell svg{width:20px;height:20px;flex-shrink:0}
.hfip-header{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:20px;min-height:84px;padding:20px 36px;background:#fff;border-bottom:1px solid #eeedf4}
.hfip-brand{display:flex;align-items:center;gap:11px;min-width:0;flex:1}
.hfip-brand strong{font-size:17px;overflow-wrap:anywhere;line-height:1.3}
.hfip-brand-mark{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:12px;background:var(--hfip-brand);color:white;font-weight:700;font-size:14px}
.hfip-preview-label{flex:none;background:#f2f1ff;border:1px solid #dedbff;color:#5148a7;border-radius:999px;padding:5px 12px;font-size:12px;font-weight:600}
.hfip-close{display:grid;place-items:center;flex:none;width:36px;height:36px;border:1px solid #e6e5ee;border-radius:50%;background:white;color:#5d5b6f;cursor:pointer}
.hfip-close:hover{background:#f3f2f8;color:#252533}
.hfip-stepbar{display:flex;justify-content:space-between;gap:18px;padding:12px 36px;color:#636174;font-size:12px;background:#faf9fd}
.hfip-stepbar span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:65%}
.hfip-progress{height:3px;background:#eeedf7}
.hfip-progress>span{display:block;height:100%;background:var(--hfip-brand);transition:width .22s ease}
.hfip-main{padding:38px 40px 26px;animation:hfip-enter .2s ease}
.hfip-welcome{display:grid;grid-template-columns:1.25fr .75fr;align-items:center;gap:32px}
.hfip-with-video{grid-template-columns:1fr 1.15fr}
.hfip-eyebrow{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#6258ba;margin-bottom:11px}
.hfip-shell h1{font-size:clamp(26px,3.1vw,38px);line-height:1.15;letter-spacing:-.03em;color:#252533;margin:0 0 18px;overflow-wrap:anywhere;outline:none}
.hfip-shell h2{font-size:17px;line-height:1.4;margin:0 0 14px;color:#252533}
.hfip-lead{font-size:15px;line-height:1.75;color:#656276;margin:0 0 22px;white-space:pre-wrap;overflow-wrap:anywhere}
.hfip-location{font-size:14px;color:#6c687c;margin:-5px 0 13px}
.hfip-facts{display:flex;flex-wrap:wrap;gap:10px 18px;font-size:12px;color:#5e5b70}
.hfip-facts>span{display:inline-flex;align-items:center;gap:5px}
.hfip-facts svg{width:17px;height:17px;color:#756cd1}
.hfip-welcome-art{border-radius:18px;min-height:250px;display:grid;align-content:center;justify-items:center;background:linear-gradient(135deg,#f2f0ff,#f7f7fd);border:1px solid #e8e5f8;text-align:center}
.hfip-welcome-art>span{display:grid;place-items:center;width:70px;height:70px;border-radius:24px;background:white;box-shadow:0 12px 22px #605bff10;color:#605bff;transform:rotate(-5deg)}
.hfip-welcome-art svg{width:29px;height:29px;transform:rotate(5deg)}
.hfip-welcome-art p{font-size:23px;font-weight:600;line-height:1.35;letter-spacing:-.02em;margin:20px 0 0;color:#544c8d}
.hfip-video-wrap{overflow:hidden;border-radius:14px;background:#171621;min-width:0;align-self:center}
.hfip-video{display:block;width:100%;aspect-ratio:16/9;object-fit:contain;background:#171621}
.hfip-video-caption{display:flex;align-items:center;gap:7px;padding:9px 13px;font-size:11px;color:#eeecff;background:#242231}
.hfip-video-caption svg{width:14px;height:14px}
.hfip-ready{padding:24px 26px;border:1px solid #e8e6f2;border-radius:14px;background:#fcfbff;margin-top:30px}
.hfip-ready ol{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;padding:0;margin:0;list-style:none}
.hfip-ready li{display:flex;align-items:flex-start;gap:10px}
.hfip-ready li>span{display:grid;place-items:center;width:24px;height:24px;flex:none;border-radius:50%;background:#ece9fe;color:#6055b8;font-size:11px;font-weight:700;margin-top:1px}
.hfip-ready strong{font-size:12px;line-height:1.5;display:block;color:#494459}
.hfip-ready p{font-size:12px;line-height:1.65;color:#757083;margin:5px 0 0}
.hfip-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:28px;padding-top:24px;border-top:1px solid #eeedf4}
.hfip-actions p,.hfip-back-actions>span{font-size:11px;color:#787387;max-width:370px;line-height:1.6;margin:0}
.hfip-actions>div,.hfip-back-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.hfip-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;font:inherit;font-size:13px;font-weight:600;border-radius:999px;padding:11px 19px;min-height:44px;border:1px solid #dedce9;background:white;color:#514b66;cursor:pointer;white-space:nowrap;transition:background .15s ease,transform .15s ease}
.hfip-button svg{width:17px;height:17px}
.hfip-button:hover{background:#f6f4fc;transform:translateY(-1px)}
.hfip-primary{background:var(--hfip-brand);border-color:var(--hfip-brand);color:white;padding-inline:24px;box-shadow:0 5px 12px #605bff17}
.hfip-primary:hover{background:var(--hfip-brand);filter:brightness(.95)}
.hfip-button:disabled{opacity:.5;cursor:not-allowed;transform:none}
.hfip-button:focus-visible,.hfip-close:focus-visible{outline:3px solid #b5adff;outline-offset:3px}
.hfip-empty{font-size:14px;color:#745422;background:#fff9ec;border:1px solid #ecdfc4;border-radius:8px;padding:12px 16px}
.hfip-question-heading{max-width:850px}
.hfip-question-grid{display:grid;grid-template-columns:1fr;gap:20px}
.hfip-question-has-video{grid-template-columns:1fr 1fr;align-items:stretch}
.hfip-question-has-video .hfip-video-wrap{align-self:stretch;display:flex;flex-direction:column;justify-content:center}
.hfip-question-has-video .hfip-video-caption{margin-top:auto}
.hfip-answer-stage{min-height:250px;border:1px solid #e5e2ef;background:linear-gradient(135deg,#f8f7fc,#f0eef8);border-radius:14px;overflow:hidden}
.hfip-answer-top{display:flex;align-items:center;justify-content:space-between;padding:11px 15px;color:#757084;font-size:11px;border-bottom:1px solid #e9e5f1;background:#ffffff80}
.hfip-answer-top span{display:inline-flex;align-items:center;gap:6px}
.hfip-answer-top svg{width:15px;height:15px}
.hfip-camera-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px 24px;text-align:center;min-height:220px}
.hfip-camera-placeholder>svg{width:32px;height:32px;color:#8f86b4;margin-bottom:15px}
.hfip-camera-placeholder h2{font-size:16px;margin-bottom:7px;color:#5a526e}
.hfip-camera-placeholder p{font-size:12px;line-height:1.7;color:#7b738a;max-width:290px;margin:0 0 16px}
.hfip-camera-placeholder>span{font-size:10px;font-weight:600;letter-spacing:.04em;border:1px solid #ded9e9;border-radius:999px;padding:4px 9px;color:#71677e;background:#ffffff70}
.hfip-question-rules{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:20px 0 0}
.hfip-question-rules>div{padding:13px 16px;border:1px solid #ebe8f2;border-radius:11px;background:#fcfbfe}
.hfip-question-rules dt{display:flex;align-items:center;gap:7px;font-size:11px;color:#797184;margin-bottom:4px}
.hfip-question-rules dt svg{width:15px;height:15px}
.hfip-question-rules dd{margin:0;font-size:13px;font-weight:600;color:#51485e}
.hfip-complete{text-align:center;padding-top:42px}
.hfip-complete-mark{display:grid;place-items:center;width:70px;height:70px;margin:0 auto 22px;border-radius:50%;color:#268461;background:#eaf7ef;border:1px solid #d4edde}
.hfip-complete-mark svg{width:33px;height:33px}
.hfip-complete .hfip-lead{max-width:640px;margin:0 auto 25px}
.hfip-complete .hfip-video-wrap{max-width:650px;margin:22px auto}
.hfip-complete-note{padding:19px 24px;margin:22px auto 0;border:1px solid #e5e0f0;background:#f8f6fc;border-radius:13px;max-width:650px}
.hfip-complete-note strong{font-size:14px;color:#544767}
.hfip-complete-note p{font-size:12px;line-height:1.7;color:#756b80;margin:6px 0 0}
@keyframes hfip-enter{from{opacity:.35;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(max-width:760px){.hfip-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:14px}.hfip-header{padding:15px 20px;min-height:70px;gap:10px}.hfip-brand strong{font-size:14px}.hfip-brand-mark{width:33px;height:33px;border-radius:10px;font-size:11px}.hfip-preview-label{font-size:10px;padding:3px 8px}.hfip-stepbar{padding:10px 20px;font-size:10px}.hfip-main{padding:26px 22px 22px}.hfip-welcome,.hfip-with-video,.hfip-question-has-video{grid-template-columns:1fr;gap:20px}.hfip-welcome-art{display:none}.hfip-ready{padding:20px;margin-top:23px}.hfip-ready ol{grid-template-columns:1fr;gap:16px}.hfip-actions{align-items:flex-start;gap:15px;flex-wrap:wrap;margin-top:22px;padding-top:19px}.hfip-actions>.hfip-primary{margin-left:auto}.hfip-question-rules{gap:8px}.hfip-question-rules>div{padding:10px}.hfip-question-rules dt{font-size:10px;gap:4px}.hfip-question-rules dd{font-size:11px}.hfip-back-actions>span{display:none}.hfip-shell h1{font-size:29px}.hfip-answer-stage{min-height:220px}.hfip-camera-placeholder{min-height:180px;padding:22px}}
@media(max-width:420px){.hfip-header{padding-inline:14px}.hfip-preview-label{display:none}.hfip-main{padding-inline:17px}.hfip-stepbar{padding-inline:17px}.hfip-question-rules{grid-template-columns:1fr}.hfip-question-rules>div{display:flex;justify-content:space-between;align-items:center;padding:10px 13px}.hfip-question-rules dt{margin:0}.hfip-question-rules dd{font-size:12px}.hfip-actions>p{max-width:none}.hfip-actions>.hfip-primary{width:100%}.hfip-button{font-size:12px;padding-inline:15px}.hfip-complete .hfip-actions>div{width:100%;justify-content:center}}
@media(prefers-reduced-motion:reduce){.hfip-main{animation:none}.hfip-progress>span,.hfip-button{transition:none}.hfip-button:hover{transform:none}}
/* Automatic preview phases mirror the candidate timing without recording. */
.hfip-video-caption{justify-content:space-between}
.hfip-video-caption>span{flex:1}
.hfip-media-toggle:focus-visible,.hfip-skip:focus-visible{outline:3px solid #b5adff;outline-offset:3px}
.hfip-media-toggle{display:inline-flex;align-items:center;gap:7px;color:white;background:#ffffff12;border:1px solid #ffffff25;border-radius:999px;padding:5px 11px;font:inherit;font-size:11px;cursor:pointer}
.hfip-media-toggle:hover{background:#ffffff25}
.hfip-media-toggle svg{width:14px;height:14px}
.hfip-media-error{padding:16px;color:#f5f3ff;background:#292536;text-align:center;font-size:12px}
.hfip-media-error[hidden]{display:none}
.hfip-media-error p{margin:0 0 12px}
.hfip-auto-content{max-width:800px;margin:0 auto}
.hfip-auto-stage{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:350px;padding:28px 28px 35px;border:1px solid #e6e2f2;border-radius:16px;background:linear-gradient(145deg,#f9f7ff,#f0edf8);text-align:center;overflow:hidden}
.hfip-phase-status{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:650;color:#766b94;margin-bottom:20px}
.hfip-phase-status svg{width:17px;height:17px}
.hfip-countdown-circle{width:116px;height:116px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:5px solid #ded8f3;border-radius:50%;background:#fff;margin-bottom:20px;box-shadow:0 8px 24px #5e4b8c08}
.hfip-countdown-circle>.hfip-countdown{font-size:37px;line-height:1.15;letter-spacing:-.04em;font-weight:650;color:#60538b;font-variant-numeric:tabular-nums}
.hfip-countdown-circle>span:last-child{font-size:10px;color:#897d9f;margin-top:3px;text-transform:uppercase;letter-spacing:.08em}
.hfip-auto-stage h2{font-size:20px;margin:0 0 9px}
.hfip-auto-stage>p{max-width:440px;margin:0 0 18px;font-size:13px;line-height:1.7;color:#7b718b}
.hfip-simulation-badge{font-size:10px;font-weight:650;letter-spacing:.03em;border:1px solid #dbd4e9;border-radius:999px;background:#ffffff80;color:#7a6c89;padding:4px 10px}
.hfip-phase-track{position:absolute;bottom:0;left:0;right:0;height:4px;background:#e5dff1}
.hfip-phase-fill{display:block;height:100%;background:#8a7abb;transition:width .2s linear}
.hfip-answer{border-color:#eadde3;background:linear-gradient(145deg,#fdf9fb,#f5eef3)}
.hfip-answer .hfip-countdown-circle{border-color:#edcdd9}
.hfip-answer .hfip-countdown{color:#a95d77}
.hfip-answer .hfip-phase-status{color:#a4657e}
.hfip-answer .hfip-phase-fill{background:#b9708c}
.hfip-simulated-dot{width:8px;height:8px;background:#b9708c;border-radius:50%;box-shadow:0 0 0 4px #b9708c14}
.hfip-saving{min-height:300px;background:#f6f8fc}
.hfip-saving-spinner{width:39px;height:39px;border-radius:50%;border:3px solid #e3deee;border-top-color:#8f7bb7;animation:hfip-spin 1.1s linear infinite;margin-bottom:24px}
.hfip-skip{display:inline-flex;align-items:center;gap:6px;border:0;padding:8px 0;color:#786e8d;background:transparent;text-decoration:underline;text-underline-offset:4px;font:inherit;font-size:11px;cursor:pointer}
.hfip-skip svg{width:15px;height:15px}
.hfip-skip:hover{color:#514565}
@keyframes hfip-spin{to{transform:rotate(360deg)}}
@media(max-width:760px){.hfip-auto-stage{min-height:310px;padding:24px 20px 28px}.hfip-countdown-circle{width:104px;height:104px}.hfip-auto-stage>p{font-size:12px}.hfip-auto-stage h2{font-size:19px}.hfip-skip{margin-left:auto}}
@media(prefers-reduced-motion:reduce){.hfip-saving-spinner{animation:none}.hfip-phase-fill{transition:none}}
