:root{--resume-accent:#315c8a;--resume-ink:#244563;--resume-line:#ccd9e6}
.resume-hero{background:#eaf0f8;border-bottom:1px solid var(--resume-line);padding:32px 0}.resume-hero .eyebrow{color:var(--resume-accent);letter-spacing:0}.resume-hero h1{font-size:2.1rem;margin:12px 0}.resume-promises{display:flex;flex-wrap:wrap;gap:10px 24px;color:#405d79;font-size:.8rem}.resume-promises span:before{content:'✓ ';font-weight:bold}
.resume-workspace{padding-block:28px}.resume-workspace [hidden],dialog[id^=resume-] [hidden]{display:none!important}.resume-panel{padding:28px;border:1px solid var(--resume-line);border-radius:16px;background:#fff;margin-bottom:20px}.resume-panel h2{font-size:1.5rem;margin-top:0}.resume-panel p{color:#52677b}.resume-panel label,#resume-password-form label{display:grid;gap:8px;font-size:.9rem;font-weight:700;margin-bottom:18px}.resume-panel input:not([type=file]),.resume-panel textarea,#resume-password-form input:not([type=checkbox]){width:100%;min-width:0;font:inherit;padding:12px;border:1px solid #9eb3c7;border-radius:8px;background:#fcfdff;min-height:48px}.resume-panel textarea{resize:vertical;line-height:1.7}.resume-workspace button,.resume-workspace .secondary,dialog[id^=resume-] button{min-height:48px;font:inherit;cursor:pointer}.resume-workspace .primary,dialog[id^=resume-] .primary{background:var(--resume-accent);border-color:var(--resume-accent);color:#fff}.resume-workspace .primary:hover,dialog[id^=resume-] .primary:hover{background:#23476e}.resume-workspace :is(button,input,textarea,a):focus-visible,dialog[id^=resume-] :is(button,input):focus-visible{outline:3px solid #ad7025;outline-offset:3px}.resume-start-actions,.resume-output-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.resume-start-actions .resume-file-button{margin:0}.resume-file-button{position:relative;display:inline-flex!important;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;margin-bottom:0}.resume-file-button input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}.resume-file-button:focus-within{outline:3px solid #ad7025;outline-offset:3px}
.resume-editor-bar{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:20px}.resume-editor-bar strong{font-size:.85rem;color:#536a7e}.resume-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:20px}.resume-steps button{border:1px solid var(--resume-line);border-radius:8px;background:white;color:var(--resume-ink);padding:12px 8px;font-weight:700}.resume-steps button[aria-current]{background:var(--resume-accent);color:white;border-color:var(--resume-accent)}
.resume-basic-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:32px}.resume-photo-panel{display:flex;flex-direction:column;gap:12px;align-items:stretch}.resume-photo-panel small{font-size:.7rem;color:#586a7b;line-height:1.7}.resume-photo-panel .text-link{border:0;background:none}.resume-photo-panel label{margin:0}#resume-photo-preview{aspect-ratio:3/4;display:grid;place-items:center;border:1px dashed #9eb3c7;border-radius:10px;background:#eff4fa;color:#586d82;text-align:center;overflow:hidden;font-size:.8rem}#resume-photo-preview img{width:100%;height:100%;object-fit:contain}.resume-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}.resume-wide{grid-column:1/-1}.resume-step-actions{display:flex;justify-content:space-between;gap:20px;margin-block:24px}.resume-step-actions #resume-next{margin-left:auto}
.resume-paper{background:white;color:#222;max-width:210mm;min-height:270mm;padding:18mm;margin:24px auto;border:1px solid #d8dfe5;box-shadow:0 8px 28px #173d3510;overflow-wrap:anywhere;font-size:16px;line-height:1.7}.resume-paper-head{display:flex;justify-content:space-between;align-items:center;gap:24px;border-bottom:3px solid #315c8a;padding-bottom:20px}.resume-paper-title{font-size:30px;font-weight:800;letter-spacing:.25em}.resume-paper-head img{width:90px;height:120px;object-fit:contain}.resume-paper-facts{margin:20px 0}.resume-paper-facts>div{display:grid;grid-template-columns:110px 1fr;gap:12px;border-bottom:1px solid #dbe1e7;padding:10px 0}.resume-paper-facts dt{font-weight:700;color:#40596f}.resume-paper-facts dd{margin:0;white-space:pre-wrap}.resume-paper h3{font-size:18px;background:#edf2f7;padding:8px 12px;margin:24px 0 12px;break-after:avoid}.resume-paper p{white-space:pre-wrap;line-height:1.8;margin:0;orphans:3;widows:3}.resume-paper section{break-inside:auto}.resume-help{margin-top:40px;border-top:1px solid var(--resume-line);padding-top:24px}.resume-help>div{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.resume-help h2{font-size:1.4rem}.resume-help h3{font-size:1rem;color:var(--resume-ink)}.resume-help p{font-size:.85rem;color:#52677b}
dialog[id^=resume-]{max-width:min(580px,calc(100% - 32px));width:100%;max-height:90vh;overflow:auto;border:1px solid #b9cadd;border-radius:16px;padding:28px;color:#244563}dialog[id^=resume-]::backdrop{background:#18304bb3}dialog[id^=resume-] h2{font-size:1.4rem;margin-top:0}dialog[id^=resume-] p{font-size:.85rem}#resume-password-error{color:#a32d25}#resume-password-form .resume-check{display:flex;align-items:center;font-weight:400;gap:12px}#resume-password-show{width:22px;height:22px}dialog[id^=resume-] .secondary{border:1px solid #9eb3c7}#resume-file-dialog form{margin-top:20px}#resume-status:not(:empty){border-left:4px solid #315c8a;background:#eaf0f8;padding:14px 18px}button:disabled{cursor:wait;opacity:.6}
@media(max-width:760px){.resume-basic-layout{grid-template-columns:1fr}.resume-photo-panel{max-width:180px}.resume-panel{padding:20px}.resume-steps{grid-template-columns:repeat(2,1fr)}.resume-fields{grid-template-columns:1fr}.resume-help>div{grid-template-columns:1fr;gap:8px}.resume-hero h1{font-size:1.7rem}.resume-paper{padding:22px;min-height:0;font-size:15px}.resume-paper-facts>div{grid-template-columns:85px 1fr}.resume-paper-head img{width:72px;height:96px}.resume-paper-title{font-size:24px}.resume-output-actions{align-items:stretch;flex-direction:column}.resume-editor-bar{flex-wrap:wrap}}
@media print{
 @page{size:A4;margin:16mm}
 html,body{background:white!important;font-size:12pt!important}
 body>.utility,body>header,body>footer,body>.skip,dialog,.resume-hero,.resume-help,#resume-status,#resume-start,.resume-editor-bar,.resume-steps,#resume-form,.resume-step-actions,.resume-complete{display:none!important}
 #main,.resume-workspace,#resume-editor:not([hidden]),#resume-editor:not([hidden]) [data-panel="3"]{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
 .resume-paper{display:block!important;box-shadow:none;border:0;padding:0;margin:0;min-height:0;width:100%;max-width:none;font-size:11pt}
 .resume-paper-head{break-inside:avoid}.resume-paper-facts>div{break-inside:avoid}.resume-paper h3{color:#222;background:none;border-bottom:1px solid #aaa;padding-left:0}
 a[href]:after{content:none!important}
}

/* A visible file control and a fixed portrait box make the resume format explicit. */
.resume-photo-panel>strong{font-size:.9rem;color:var(--resume-ink)}
.resume-photo-panel .resume-photo-file{display:grid!important;gap:8px;font-size:.8rem}
#resume-photo{position:static;opacity:1;width:100%;min-width:0;height:auto;min-height:48px;padding:8px;border:1px solid #9eb3c7;border-radius:8px;background:#fff;font-size:.7rem;color:#40596f}
#resume-photo::file-selector-button{border:0;border-radius:5px;background:#315c8a;color:white;padding:9px 8px;margin-right:6px;cursor:pointer;font:inherit}
#resume-photo-status{font-size:.72rem;margin:0;overflow-wrap:anywhere;line-height:1.6}
.resume-paper-title{flex:1;text-align:center}.resume-paper-photo{width:30mm;height:40mm;flex:none;display:grid;place-items:center;border:1px solid #b9c5d1;background:#fff;color:#6c7884;font-size:12px}
.resume-paper-head .resume-paper-photo img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
@media(max-width:760px){.resume-photo-panel{max-width:260px}#resume-photo-preview{width:150px}.resume-paper-photo{width:72px;height:96px}.resume-paper-head{gap:12px}}
@media print{.resume-paper-photo{width:30mm;height:40mm;border-color:#aaa}.resume-paper-head .resume-paper-photo img{width:100%;height:100%}.resume-paper-title{font-size:26pt}}

/* Traditional resume: centered title, left portrait, compact personal details. */
.resume-paper-head{display:block;border:0;padding:0;margin-bottom:22px}.resume-paper-title{text-align:center}
.resume-paper-identity{display:grid;grid-template-columns:30mm minmax(0,1fr);min-height:40mm;border:1px solid #9caab7;break-inside:avoid}
.resume-paper-identity .resume-paper-photo{position:relative;width:auto;height:auto;min-height:40mm;border:0;border-right:1px solid #9caab7}
.resume-paper-identity .resume-paper-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.resume-paper-personal{display:flex;flex-direction:column;min-width:0}.resume-paper-caption{padding:3px 8px;text-align:center;font-size:13px;font-weight:700;line-height:1.5;background:#edf2f7;border-bottom:1px solid #9caab7}
.resume-paper-personal .resume-paper-facts{display:flex;flex-direction:column;flex:1;margin:0}
.resume-paper-personal .resume-paper-facts>div{display:grid;grid-template-columns:76px minmax(0,1fr);gap:0;padding:0;flex:1;border-bottom:1px solid #c4cdd5;font-size:13px;line-height:1.4}
.resume-paper-personal .resume-paper-facts>div:last-child{border-bottom:0}
.resume-paper-personal dt,.resume-paper-personal dd{display:flex;align-items:center;padding:3px 8px;min-width:0;overflow-wrap:anywhere}
.resume-paper-personal dt{justify-content:center;border-right:1px solid #c4cdd5;background:#f7f9fb}.resume-paper-personal dd{white-space:pre-wrap}
@media(max-width:600px){.resume-paper-identity{grid-template-columns:82px minmax(0,1fr)}.resume-paper-personal .resume-paper-facts>div{grid-template-columns:58px minmax(0,1fr);font-size:12px}.resume-paper-personal dt,.resume-paper-personal dd{padding:3px 5px}.resume-paper-head{margin-bottom:18px}}
@media print{.resume-paper-identity{grid-template-columns:30mm minmax(0,1fr);min-height:40mm}.resume-paper-identity .resume-paper-photo{min-height:40mm}.resume-paper-personal .resume-paper-facts>div{grid-template-columns:22mm minmax(0,1fr);font-size:10pt}.resume-paper-personal dt,.resume-paper-personal dd{padding:2px 7px}.resume-paper-caption{font-size:10pt;padding:3px 8px}.resume-paper-head{margin-bottom:7mm}}

.resume-paper-signature{margin-top:32px;padding-top:20px;break-inside:avoid;text-align:right}
.resume-paper-signature .resume-truth-statement{text-align:center;margin-bottom:24px;font-weight:500}
.resume-paper-signature p+p{margin-top:8px}
@media print{.resume-paper-signature{margin-top:10mm;padding-top:5mm;break-inside:avoid}.resume-paper-signature .resume-truth-statement{margin-bottom:7mm}}
