/* V5 engine on the exact V4 consumer layout: presentation only.
   Never replace research, payment, stored reports or private account data. */
.hhba-v5-v4-surface.v5-page{
 --v5-ink:#1d1d1f;--v5-muted:#6e6e73;--v5-brand:#1767c7;
 --v5-line:#e7e8ed;--v5-paper:#fff;--v5-soft:#f5f5f7;
 max-width:1120px;margin:0 auto;padding:25px 24px 70px;color:#1d1d1f;
}
.hhba-v5-v4-surface .v5-topline{margin:6px 0 35px;justify-content:flex-start;gap:9px;font-size:12px;color:#8b8d94}
.hhba-v5-v4-surface .v5-topline .v5-back{color:#777b85;font-size:12px}
.hhba-v5-v4-surface .v5-hero{max-width:860px;padding:0;margin-bottom:30px}
.hhba-v5-v4-surface .v5-hero-kicker{display:flex;align-items:center;gap:8px;color:#7e858d;letter-spacing:.10em;font-size:11px;font-weight:650}
.hhba-v5-v4-surface .v5-hero h1{font-size:clamp(31px,4.3vw,47px);font-weight:710;line-height:1.23;letter-spacing:-.045em;color:#1d1d1f;margin:14px 0 12px}
.hhba-v5-v4-surface .v5-hero p{font-size:14px;line-height:1.85;color:#6e6e73;max-width:760px}
.hhba-v5-v4-surface .v5-onboarding{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:20px;align-items:start}
.hhba-v5-v4-surface .v5-upload-panel,.hhba-v5-v4-surface .v5-aside-card{
 background:#fff;border:1px solid #e7e8ed;border-radius:23px;
 box-shadow:0 12px 40px rgba(25,31,44,.035);
}
.hhba-v5-v4-surface .v5-upload-panel{padding:clamp(22px,3.2vw,35px)}
.hhba-v5-v4-surface .v5-field-heading{font-size:18px;color:#1d1d1f;font-weight:675;letter-spacing:-.025em}
.hhba-v5-v4-surface .v5-field-help,.hhba-v5-v4-surface .v5-section-title p{color:#6e6e73;line-height:1.8}
.hhba-v5-v4-surface .v5-dropzone{min-height:166px;border:1.5px dashed #cfd4de;border-radius:18px;background:#fafafa;color:#1767c7;transition:background .2s,border-color .2s,transform .2s}
.hhba-v5-v4-surface .v5-dropzone:hover,.hhba-v5-v4-surface .v5-dropzone.is-dragging{border-color:#8fb4e7;background:#f4f8ff}
.hhba-v5-v4-surface .v5-dropzone strong{color:#34353a;font-weight:650}
.hhba-v5-v4-surface .v5-saved-resume{border:1px solid #e7e8ed;border-radius:16px;background:#f9f9fb}
.hhba-v5-v4-surface .v5-saved-item.is-selected{border-color:#9dbfe9;background:#f2f6fc}
.hhba-v5-v4-surface .v5-field input,.hhba-v5-v4-surface .v5-textarea,.hhba-v5-v4-surface .v5-word-selector select{
 border:1px solid #dfe2e8;border-radius:13px;background:#fff;color:#24252a;min-height:45px
}
.hhba-v5-v4-surface .v5-primary-wide{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:50px;background:#1d1d1f;color:#fff;border:0;border-radius:999px;font-size:14px;font-weight:660;transition:background .2s,transform .2s}
.hhba-v5-v4-surface .v5-primary-wide:hover:not(:disabled){background:#333438;transform:translateY(-1px)}
.hhba-v5-v4-surface .v5-primary-wide:disabled{opacity:.5;cursor:not-allowed}
.hhba-v5-v4-surface .v5-aside-card{padding:26px}
.hhba-v5-v4-surface .v5-aside-card h2{font-size:15px;color:#282a2f}
.hhba-v5-v4-surface .v5-aside-footnote{color:#82848d;font-size:11px;line-height:1.8}

/* A closed/minimized V4 research dialog reveals only a quiet resume workspace.
   The V5 task keeps running in the backend; this page does not manage the lease. */
.hhba-v5-resume-workspace{max-width:1120px;margin:0 auto;padding:25px 24px 70px;color:#1d1d1f}
.hhba-v5-classic-status{max-width:850px;background:#fff;border:1px solid #e7e8ed;border-radius:23px;padding:clamp(20px,3.2vw,32px);box-shadow:0 12px 40px rgba(25,31,44,.035)}
.hhba-v5-classic-status-top,.hhba-v5-classic-status-top>div{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.hhba-v5-classic-status-top strong{font-size:15px;font-weight:680}
.hhba-v5-classic-status-top>span{font-size:12px;color:#79808c}
.hhba-v5-classic-status-top b{font-size:20px;color:#1d1d1f}
.hhba-v5-classic-status-bullet{display:inline-block;width:9px;height:9px;border-radius:50%;background:#8998aa}
.hhba-v5-classic-status-bullet.is-running{background:#38916c;box-shadow:0 0 0 5px rgba(56,145,108,.09);animation:hhba-v5-pulse 2.8s ease-in-out infinite}
@keyframes hhba-v5-pulse{0%,100%{box-shadow:0 0 0 5px rgba(56,145,108,.08)}50%{box-shadow:0 0 0 10px rgba(56,145,108,.01)}}
.hhba-v5-classic-meter{height:6px;background:#eceef3;border-radius:999px;overflow:hidden;margin:19px 0 15px}
.hhba-v5-classic-meter span{display:block;height:100%;border-radius:999px;background:#1767c7;transition:width .45s ease}
.hhba-v5-classic-status>p{font-size:13px;color:#737884;line-height:1.8;margin:0 0 15px}
.hhba-v5-classic-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:16px 0}
.hhba-v5-classic-actions button,.hhba-v5-classic-history button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #e4e6eb;border-radius:999px;padding:11px 16px;background:#fff;color:#282c34;font-size:13px;font-weight:620;cursor:pointer}
.hhba-v5-classic-actions button.hhba-v5-classic-primary{background:#1d1d1f;border-color:#1d1d1f;color:#fff}
.hhba-v5-classic-actions button:disabled{opacity:.55;cursor:not-allowed}
.hhba-v5-classic-word-selector{border-top:1px solid #f0f1f5;padding-top:17px;margin-top:20px;display:grid;gap:8px}
.hhba-v5-classic-word-selector label{font-weight:650;font-size:12px}
.hhba-v5-classic-word-selector select{width:100%;max-width:400px;min-height:43px;border:1px solid #dee2e8;border-radius:12px;padding:7px 12px;background:#fff;color:#202126}
.hhba-v5-classic-word-selector p{font-size:12px;color:#777c85;line-height:1.65}
.hhba-v5-classic-word-selector a{color:#1767c7;margin:0 3px}
.hhba-v5-classic-warning{font-size:12px;color:#8d6642!important;background:#fff9f1;padding:10px 13px;border-radius:12px}
.hhba-v5-classic-history{max-width:850px;margin-top:14px;padding:15px 18px;border:1px solid #e7e8ed;border-radius:17px;background:#fff}
.hhba-v5-classic-history summary{font-size:13px;font-weight:630;color:#3c414a;cursor:pointer}
.hhba-v5-classic-history button{margin:9px 8px 0 0}
@media(max-width:800px){.hhba-v5-v4-surface .v5-onboarding{grid-template-columns:1fr}.hhba-v5-v4-surface .v5-aside{display:none}}
@media(max-width:600px){
 .hhba-v5-v4-surface.v5-page,.hhba-v5-resume-workspace{padding:18px 16px 65px}
 .hhba-v5-v4-surface .v5-upload-panel{padding:18px}
 .hhba-v5-v4-surface .v5-hero h1{font-size:28px}
 .hhba-v5-classic-actions{align-items:stretch;flex-direction:column}
 .hhba-v5-classic-actions button{width:100%}
 .hhba-v5-classic-status-top>span{width:100%}
}
@media(prefers-reduced-motion:reduce){.hhba-v5-classic-status-bullet.is-running{animation:none}.hhba-v5-classic-meter span,.hhba-v5-classic-actions button{transition:none}}
