/* HHBA candidate-match visual restoration.
 * Visual reference: 2026-11-24 commit bc87a661aec1,
 * apps/web/src/styles/resume-match.css and CandidateMatchPage.tsx.
 * Scoped ONLY to V5 view; keep the current V5 task engine and React behavior.
 */
.v5-page{
 --v5-ink:#102A5A;
 --v5-muted:#60758F;
 --v5-brand:#125EBC;
 --v5-line:#E7F0FC;
 --v5-paper:#fff;
 --v5-soft:#F7F9FD;
 max-width:1120px;
 margin:0 auto;
 padding:25px 24px 70px;
 color:#102A5A;
}
.v5-topline{
 display:flex;
 justify-content:flex-start;
 align-items:center;
 gap:9px;
 margin:6px 0 35px;
 color:#808E9F;
 font-size:12px;
 line-height:1.5;
}
.v5-back{color:#125EBC;text-decoration:none;font-size:12px;font-weight:400}
.v5-back:hover{text-decoration:underline}
.v5-crumb-separator,.v5-topline strong{color:#808E9F;font-weight:500}
.v5-hero{max-width:860px;padding:0;margin:0 0 25px}
.v5-hero-kicker{display:flex;align-items:center;gap:8px;letter-spacing:.08em;font-size:11px;color:#60758F;font-weight:750}
.v5-hero h1{
 color:#102A5A;
 font-size:clamp(26px,4vw,43px);
 line-height:1.25;
 letter-spacing:-.025em;
 margin:13px 0 14px;
 font-weight:760;
}
.v5-hero p{max-width:760px;color:#60758F;font-size:15px;line-height:1.85;margin:0}
.v5-hero-compact{margin-bottom:22px;padding:0}
.v5-hero-compact h1{font-size:clamp(24px,3.2vw,34px);margin:10px 0 4px;letter-spacing:-.025em}
.v5-panel{
 border:1px solid #E7F0FC;
 border-radius:15px;
 background:#fff;
 box-shadow:0 4px 20px rgba(16,42,90,.035);
}
.v5-workspace{gap:18px}
.v5-onboarding{display:grid;grid-template-columns:minmax(0,1fr) 270px;align-items:start;gap:22px}
.v5-upload-panel{padding:27px 28px;min-width:0}
.v5-upload-heading .v5-field-heading{
 display:flex;
 align-items:center;
 gap:9px;
 font-size:17px;
 letter-spacing:0;
 font-weight:740;
 color:#102A5A;
 margin:0 0 9px;
}
.v5-upload-heading .v5-field-help{font-size:12px;color:#60758F;line-height:1.7;margin:0 0 14px}
.v5-saved-resume{
 margin:0 0 14px;
 padding:0;
 background:#F7F9FD;
 border:1px solid #DBE7F6;
 border-radius:11px;
 overflow:hidden;
}
.v5-saved-summary{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:11px;
 cursor:pointer;
 list-style:none;
 color:#123F75;
 padding:12px 14px;
 min-height:69px;
}
.v5-saved-summary::-webkit-details-marker{display:none}
.v5-saved-summary>svg:first-child{color:#125EBC;flex:none}
.v5-saved-summary>span{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.v5-saved-summary strong{font-size:13px;font-weight:720;color:#173C69}
.v5-saved-summary small{font-size:11px;line-height:1.5;color:#60758F;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v5-saved-chevron{color:#436B94;flex:none;transition:transform .18s ease}
.v5-saved-resume[open] .v5-saved-chevron{transform:rotate(180deg)}
.v5-saved-summary:hover{background:#EEF5FD}
.v5-saved-list{
 display:flex;
 flex-direction:column;
 align-items:stretch;
 gap:5px;
 flex-wrap:nowrap;
 padding:9px 11px 12px;
 border-top:1px solid #E1EBF5;
 background:#fff;
}
.v5-saved-item{
 width:100%;
 min-width:0;
 display:flex;
 align-items:center;
 gap:10px;
 padding:10px;
 border:1px solid transparent;
 border-radius:9px;
 background:#fff;
 color:#173C69;
 font-size:12px;
 line-height:1.6;
 overflow-wrap:anywhere;
 text-align:left;
}
.v5-saved-item:hover:not(:disabled){background:#F7F9FD;border-color:#E4ECF6}
.v5-saved-item.is-selected{background:#F0F6FD;border-color:#C5DBF8}
.v5-dropzone{
 display:flex;
 flex-direction:column;
 justify-content:center;
 align-items:center;
 gap:12px;
 min-height:165px;
 padding:22px;
 border:1.5px dashed #C5DBF8;
 background:#F7F9FD;
 border-radius:11px;
 cursor:pointer;
 color:#125EBC;
 text-align:center;
 transition:background .15s,border-color .15s;
}
.v5-dropzone>svg{color:#125EBC}
.v5-dropzone strong{font-size:14px;font-weight:700;color:#125EBC}
.v5-dropzone small{font-size:12px;color:#60758F}
.v5-dropzone:hover,.v5-dropzone.is-dragging{background:#E7F0FC;border-color:#889BB0}
.v5-secondary-details{margin-top:12px}
.v5-secondary-details summary{color:#125EBC;font-size:12px;line-height:1.7;padding:9px 0}
.v5-textarea{border:1px solid #C5DBF8;border-radius:8px;background:#fff;color:#102A5A;font-size:13px;line-height:1.6}
.v5-section-title{margin-top:30px}
.v5-section-title h2{font-size:17px;line-height:1.4;font-weight:740;color:#102A5A;margin:0 0 9px}
.v5-section-title p{font-size:12px;color:#60758F;line-height:1.7;margin:0 0 14px}
.v5-field-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:0}
.v5-field{font-size:12px;color:#60758F;font-weight:650}
.v5-field input,.v5-word-selector select{
 width:100%;
 min-width:0;
 margin-top:8px;
 border:1px solid #E7F0FC;
 border-radius:9px;
 background:#fff;
 color:#102A5A;
 padding:12px 11px;
 font-size:13px;
}
.v5-consent{
 display:flex;
 align-items:flex-start;
 gap:9px;
 margin-top:15px;
 padding:12px;
 border:1px solid #E7F0FC;
 border-radius:9px;
 background:#F7F9FD;
 color:#365271;
 font-size:12px;
 line-height:1.8;
 cursor:pointer;
}
.v5-consent input{accent-color:#1373FA;flex:none;margin-top:4px}
.v5-consent a{color:#125EBC}
.v5-primary{
 background:#125EBC;
 border:1px solid #125EBC;
 border-radius:10px;
 color:#fff;
 font-size:14px;
 font-weight:750;
 min-height:45px;
 padding:13px 16px;
}
.v5-primary:hover:not(:disabled){background:#0F55AA}
.v5-primary:disabled{background:#C5DBF8;border-color:#C5DBF8;opacity:1}
.v5-primary-wide{width:100%;margin-top:18px;padding:15px}
.v5-secondary{
 background:#fff;
 color:#125EBC;
 border:1px solid #C5DBF8;
 border-radius:8px;
 font-size:12px;
 font-weight:550;
 min-height:40px;
 padding:9px 12px;
}
.v5-secondary:hover:not(:disabled){background:#F7F9FD}
.v5-aside{padding:0;min-width:0}
.v5-aside-card{padding:22px}
.v5-aside-card h2{font-size:15px;color:#102A5A;margin:0 0 13px;font-weight:740}
.v5-legacy-steps{padding-left:19px;margin:0}
.v5-legacy-steps li{padding:7px 0;color:#60758F;font-size:12px;line-height:1.7}
.v5-aside-footnote{color:#7C8B9D;font-size:11px;line-height:1.8;margin:16px 6px}
.v5-service-banner{
 max-width:900px;
 display:flex;
 align-items:flex-start;
 gap:12px;
 border:1px solid #E7F0FC;
 background:#F7F9FD;
 border-radius:13px;
 padding:16px 19px;
 margin:20px 0;
 color:#60758F;
 font-size:13px;
 line-height:1.8;
}
.v5-service-banner>svg{flex:none;margin-top:2px;color:#60758F}
.v5-service-body{min-width:0}
.v5-service-body strong{display:block;font-weight:730;color:#365271}
.v5-service-body p{font-size:13px;line-height:1.8;color:#60758F;margin:5px 0 8px}
.v5-service-body .v5-secondary{margin:5px 0 0}
.v5-task-summary{padding:22px 26px}
.v5-task-top h2{color:#102A5A}
.v5-kicker{color:#60758F}
.v5-progress-head strong{color:#102A5A}
.v5-progress-head span{color:#60758F}
.v5-progress-track{background:#E7F0FC}
.v5-progress-value{background:#125EBC}
.v5-activity{background:#F7F9FD;border:1px solid #E7F0FC;color:#60758F}
.v5-activity-dot,.v5-stage.is-active .v5-stage-mark{background:#125EBC}
.v5-history{border-radius:15px}
.v5-history summary{color:#365271}
.v5-report{border-radius:15px}
.v5-report-summary{padding:26px 28px;min-height:0}
.v5-report-heading h2{color:#102A5A;letter-spacing:-.025em}
.v5-report-index,.v5-nav-center strong{color:#125EBC}
.v5-report-reason{color:#365271}
.v5-score{
 width:87px;
 height:80px;
 min-height:80px;
 border:1px solid #E7F0FC;
 border-radius:9px;
 background:#F7F9FD;
 color:#125EBC;
}
.v5-score::before{content:none}
.v5-score-inner strong{font-size:24px;font-weight:740;color:#125EBC}
.v5-score-inner small{font-size:11px;color:#60758F}
.v5-evidence-chips .v5-chip{border-color:#E7F0FC;background:#F7F9FD;color:#60758F}
.v5-chip.is-good{color:#356450!important}
.v5-chip.is-gap{color:#956943!important}
.v5-source-caveat{background:#F7F9FD;color:#60758F}
.v5-navigation{background:#F7F9FD}
.v5-report-toolbar :is(input,select){border-color:#E7F0FC;color:#102A5A}
.v5-report-focus-title:focus-visible{outline-color:#125EBC}
.v5-quote{background:#F7F9FD;border-left-color:#125EBC;color:#365271}
.v5-service-detail{color:#60758F}
@media(max-width:800px){
 .v5-onboarding{grid-template-columns:1fr}
 .v5-aside{display:none}
}
@media(max-width:600px){
 .v5-page{padding:18px 16px 65px}
 .v5-topline{margin:6px 0 25px}
 .v5-hero h1{font-size:28px}
 .v5-hero p{font-size:13px}
 .v5-upload-panel{padding:18px}
 .v5-field-grid{grid-template-columns:1fr}
 .v5-saved-summary{padding:11px 12px;min-height:63px}
 .v5-saved-summary strong{font-size:12px}
 .v5-saved-summary small{font-size:11px}
 .v5-saved-item{padding:10px 8px}
 .v5-dropzone{min-height:145px;padding:17px 11px}
 .v5-task-summary{padding:18px}
 .v5-report-summary{padding:20px 18px}
 .v5-score{width:77px;height:72px;min-height:72px}
 .v5-score-inner strong{font-size:23px}
 .v5-navigation{background:#F7F9FD}
}
@media(prefers-reduced-motion:reduce){.v5-saved-chevron{transition:none}}


/*
 * 2026-11-24 research-in-progress look, adapted from the original
 * hhba-match-progress-steps and hhba-research-now treatment in
 * resume-match-dialog.css. Visual-only: backend stages and counters
 * continue to come from the current V5 task snapshot.
 */
.v5-page .v5-classic-research{
 max-width:960px;
 width:100%;
 margin:0 auto;
 padding:28px 32px 23px;
 border:1px solid #e7f0fc;
 border-radius:15px;
 background:#fff;
 box-shadow:0 5px 24px rgba(16,42,90,.045);
}
.v5-classic-research-heading{
 display:flex;
 align-items:flex-start;
 gap:14px;
 padding-bottom:23px;
 border-bottom:1px solid #e6edf5;
}
.v5-classic-research-symbol{
 display:grid;
 flex:none;
 place-items:center;
 width:44px;height:44px;
 color:#2365c0;
 background:#edf4ff;
 border:1px solid #dfeafb;
 border-radius:13px;
}
.v5-classic-research-heading-copy{flex:1;min-width:0}
.v5-classic-research-heading .v5-kicker{
 display:block;
 color:#346baa;
 letter-spacing:.045em;
 font-weight:680;
 font-size:11px;
 text-transform:none;
 line-height:1.6;
}
.v5-classic-research-heading h2{
 color:#102a5a;
 font-size:22px;
 font-weight:740;
 letter-spacing:-.025em;
 line-height:1.4;
 margin:7px 0 7px;
}
.v5-classic-research-heading .v5-task-sub{
 font-size:12px;
 line-height:1.75;
 color:#60758f;
 max-width:660px;
}
.v5-classic-research-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.v5-classic-research-stop{flex:none;white-space:nowrap}
.v5-classic-research-steps{
 list-style:none;
 padding:0;margin:23px 0 15px;
 display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));
 gap:9px;
}
.v5-classic-research-step{
 display:flex;
 align-items:center;
 gap:8px;
 min-width:0;
 padding:10px 11px;
 border:1px solid #e6edf5;
 border-radius:9px;
 color:#627994;
 background:#fff;
 font-size:12px;
 line-height:1.5;
}
.v5-classic-research-step strong{font-size:12px;line-height:1.45;font-weight:630;white-space:normal}
.v5-classic-research-step-number{
 display:grid;
 flex:0 0 23px;
 place-items:center;
 width:23px;height:23px;
 border:1px solid #d5e2f1;
 border-radius:50%;
 background:#fff;
 color:#91a1b9;
 font-size:11px;
 font-weight:700;
}
.v5-classic-research-step.is-done{color:#397866}
.v5-classic-research-step.is-done .v5-classic-research-step-number{
 background:#e8f5f2;border-color:#cee7da;color:#258875
}
.v5-classic-research-step.is-active{
 background:#eef5ff;border-color:#a9cffd;color:#114f9e;
}
.v5-classic-research-step.is-active strong{font-weight:740}
.v5-classic-research-step.is-active .v5-classic-research-step-number{
 background:#fff;border-color:#b7d3fb;color:#246ad0
}
.v5-classic-research-now{
 display:flex;
 align-items:flex-start;
 gap:12px;
 border:1px solid #e1eaf6;
 background:#f7f9fd;
 border-radius:11px;
 padding:15px 16px;
 color:#31567c;
}
.v5-classic-research-now-icon{
 display:grid;
 place-items:center;
 flex:none;
 width:26px;height:26px;
 color:#2365c0;
}
.v5-classic-research-spinner{animation:v5-classic-spin 1.6s linear infinite}
@keyframes v5-classic-spin{to{transform:rotate(360deg)}}
.v5-classic-research-now-copy{flex:1;min-width:0}
.v5-classic-research-now-copy strong{
 display:block;
 font-size:14px;
 line-height:1.6;
 color:#21476e;
 font-weight:730;
}
.v5-classic-research-now-copy p{
 margin:3px 0 0;
 font-size:12px;
 line-height:1.8;
 color:#60758f;
 overflow-wrap:anywhere;
}
.v5-classic-research-now-copy small{
 display:block;margin-top:4px;font-size:11px;line-height:1.55;color:#60758f
}
.v5-classic-research-connection{
 flex:none;
 white-space:nowrap;
 font-size:11px;
 font-weight:630;
 color:#3c7562;
 border:1px solid #d8ecdf;
 background:#fff;
 border-radius:20px;
 padding:4px 8px;
}
.v5-classic-research-connection.is-retrying{
 color:#86622f;border-color:#efe3cc;
}
.v5-classic-research-output{
 padding:19px 1px 16px;
 border-bottom:1px solid #e6edf5;
}
.v5-classic-research-output-heading{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:12px;
 color:#365271;
}
.v5-classic-research-output-heading>span{font-size:12px;font-weight:650}
.v5-classic-research-output-heading strong{font-size:23px;font-weight:760;letter-spacing:-.035em;color:#102a5a;font-variant-numeric:tabular-nums}
.v5-classic-research-output-heading small{font-size:12px;font-weight:510;letter-spacing:0;color:#60758f}
.v5-classic-research-rail{
 width:100%;
 height:5px;
 overflow:hidden;
 border-radius:10px;
 background:#e1ebf8;
 margin:10px 0 15px;
}
.v5-classic-research-rail>span{
 display:block;height:100%;
 border-radius:inherit;
 background:#125ebc;
 transition:width .3s ease;
}
.v5-classic-research-facts{
 display:flex;
 flex-wrap:wrap;
 align-items:center;
 gap:7px 23px;
 color:#60758f;
 font-size:12px;
 line-height:1.9;
 font-variant-numeric:tabular-nums;
}
.v5-classic-research-facts strong{font-weight:720;color:#21476e}
.v5-classic-research-journal{margin-top:15px}
.v5-classic-research-footer{
 display:flex;
 justify-content:space-between;
 align-items:flex-start;
 flex-wrap:wrap;
 gap:8px 18px;
 padding-top:15px;
 color:#7c8b9d;
}
.v5-classic-research-footer>p{max-width:560px;margin:0;font-size:11px;line-height:1.85;color:#60758f}
.v5-classic-research-footer .v5-task-tools{
 border:0;
 padding:0;
 margin:0;
}
.v5-classic-research-footer .v5-task-tools summary{
 cursor:pointer;color:#547398;font-size:11px;
}
.v5-classic-research-footer .v5-task-tools-inner{
 margin:10px 0 0;
 max-width:850px;
 justify-content:flex-end;
}
@media(max-width:850px){
 .v5-page .v5-classic-research{padding:23px 22px}
 .v5-classic-research-heading{flex-wrap:wrap}
 .v5-classic-research-stop,.v5-classic-research-actions{margin-left:58px}
}
@media(max-width:600px){
 .v5-page .v5-classic-research{padding:20px 17px}
 .v5-classic-research-heading{gap:11px;padding-bottom:17px}
 .v5-classic-research-symbol{width:39px;height:39px;border-radius:11px}
 .v5-classic-research-heading h2{font-size:19px}
 .v5-classic-research-stop,.v5-classic-research-actions{margin:0}
 .v5-classic-research-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:17px 0 12px}
 .v5-classic-research-step{padding:9px 8px}
 .v5-classic-research-step strong{font-size:11px}
 .v5-classic-research-now{padding:12px 11px;gap:8px;flex-wrap:wrap}
 .v5-classic-research-connection{margin-left:34px}
 .v5-classic-research-output-heading strong{font-size:21px}
 .v5-classic-research-facts{gap:3px 14px;font-size:11px}
 .v5-classic-research-footer{display:block}
 .v5-classic-research-footer .v5-task-tools{margin-top:12px}
}
@media(prefers-reduced-motion:reduce){
 .v5-classic-research-spinner{animation:none}
 .v5-classic-research-rail>span{transition:none}
}
