/* Layouts based on the two supplied paper references. Content remains user-owned. */
.wizard-preview{min-width:0}
.wizard-preview .resume-paper.reference-paper,.resume-paper.reference-paper{--ref-accent:#72b3c7;--ref-dark:#5d96a8;display:block;border:0;border-radius:0;padding:30px;background:#fff;box-shadow:0 5px 25px #3b453015;aspect-ratio:210/297;min-height:0;color:#4c5558;font-family:'Microsoft YaHei','Noto Sans SC',sans-serif;font-size:11px;line-height:1.75;overflow-wrap:anywhere}
.reference-paper h2,.reference-paper h3,.reference-paper h4,.reference-paper h5,.reference-paper p,.reference-paper dl,.reference-paper dd{margin:0}
.reference-paper .ref-section{margin-bottom:20px;min-width:0}
.reference-paper .ref-heading{font-size:14px;line-height:1.5;font-weight:600;margin:0 0 12px;padding:0;border:0;letter-spacing:1px}
.reference-paper .ref-heading-label{position:relative;display:inline-flex;align-items:center;gap:9px;color:white;background:var(--ref-accent);min-height:30px;padding:3px 20px 3px 10px}
.reference-paper .ref-heading-label i{display:inline-flex;width:20px;height:20px;align-items:center;justify-content:center;font-style:normal;flex-shrink:0}
.reference-paper svg{width:100%;height:100%}
.reference-paper .ref-copy p{font-size:11px;line-height:1.85;color:#5a6466;white-space:normal;text-align:justify;word-break:normal;margin:0 0 5px}
.reference-paper .ref-record{margin-bottom:14px;break-inside:avoid}
.reference-paper .ref-record-top{display:grid;grid-template-columns:105px minmax(0,1fr) auto;gap:9px;align-items:baseline;font-size:10px;line-height:1.8;margin-bottom:5px}
.reference-paper .ref-record-top strong{font-size:11px;font-weight:600;color:#526063}
.reference-paper .ref-record-top>span{font-size:10px;color:#758184;text-align:right;max-width:175px}
.reference-paper .ref-record-top time{font-size:10px;color:#7e8c8f;font-variant-numeric:tabular-nums}
.reference-paper .ref-project-record h5{font-size:11px;line-height:1.8;color:#53747e;font-weight:600;margin:0 0 6px}
.reference-paper .ref-photo{width:85px;height:113px;object-fit:cover;border:0;border-radius:0;flex-shrink:0;display:block;background:#eef3f5}
.reference-paper .ref-portfolio a{display:block;font-size:9px;color:var(--ref-dark);line-height:1.7;overflow-wrap:anywhere}
.reference-paper .ref-portfolio small{display:block;font-size:9px;color:#8d9b9e;margin-top:6px;text-align:center}
.reference-paper .ref-qr{width:128px;max-width:100%;aspect-ratio:1;background:#fff;margin:10px auto}
.reference-paper .ref-qr svg{display:block;width:100%;height:auto}
/* 01 — pale-blue sidebar with ribbon headings. */
.wizard-preview .resume-paper.ref-ribbon,.resume-paper.ref-ribbon{display:grid;grid-template-columns:29% minmax(0,1fr);gap:25px;padding:28px 28px 30px 22px;background:linear-gradient(to right,#f0f6f5 0 31%,#fff 31%);align-content:start}
.ref-ribbon .ref-sidebar{padding:5px 10px 0 0;min-width:0}
.ref-ribbon .ref-profile{text-align:center;margin-bottom:22px}
.ref-ribbon .ref-profile .ref-photo{width:100px;height:133px;margin:0 auto 14px}
.ref-ribbon .ref-profile h2{font-size:24px;font-weight:500;line-height:1.5;color:#4b5b5f;letter-spacing:2px}
.ref-ribbon .ref-contacts{margin:0 0 28px}
.ref-ribbon .ref-contacts>div{display:flex;align-items:baseline;gap:7px;margin:0 0 10px;line-height:1.8}
.ref-ribbon .ref-contacts dt{display:flex;gap:6px;align-items:center;font-size:10px;color:#899c9e;white-space:nowrap}
.ref-ribbon .ref-contacts dt svg{width:14px;height:14px;align-self:center;color:#88bdc9;flex-shrink:0}
.ref-ribbon .ref-contacts dd{font-size:10px;color:#69787b;min-width:0}
.ref-ribbon .ref-contacts dt span{display:none}
.ref-ribbon .ref-contacts>div:nth-child(-n+2) dt span{display:inline}
.ref-ribbon .ref-sidebar .ref-heading{border-bottom:1px solid #b6d0d4;text-align:center;margin-bottom:14px;padding-bottom:7px;color:#75a9b6}
.ref-ribbon .ref-sidebar .ref-heading-label{color:#75a9b6;background:none;padding:0;min-height:0;font-weight:500}
.ref-ribbon .ref-sidebar .ref-heading-label i{display:none}
.ref-ribbon .ref-sidebar .ref-heading-label:before,.ref-ribbon .ref-sidebar .ref-heading-label:after{display:none}
.ref-ribbon .ref-sidebar .ref-copy p{font-size:10px;line-height:1.9;color:#6b7b7e}
.ref-ribbon .ref-main{min-width:0}
.ref-ribbon .ref-main .ref-heading-label{min-width:165px;padding-right:26px}
.ref-ribbon .ref-main .ref-heading-label:after{content:'';position:absolute;right:-14px;top:0;width:16px;height:100%;background:var(--ref-accent);clip-path:polygon(0 0,100% 0,30% 50%,100% 100%,0 100%)}
.ref-ribbon .ref-main .ref-heading-label:before{content:'';position:absolute;left:0;bottom:-7px;width:12px;height:8px;background:#5397ab;clip-path:polygon(0 0,100% 0,100% 100%)}
.ref-ribbon .ref-section-body{padding-left:12px}
.ref-ribbon .ref-sidebar .ref-section-body{padding:0}
.ref-ribbon .ref-record-top{grid-template-columns:minmax(0,1fr) auto;gap:2px 10px}
.ref-ribbon .ref-record-top time{grid-column:1/-1;color:#87a9b3;font-size:10px}
.ref-ribbon .ref-record-top>span{max-width:145px}
.ref-ribbon .ref-project-record h5{color:#6f9ca9}
/* 02 — full-width teal section labels with a photo at the upper right. */
.wizard-preview .resume-paper.ref-bands,.resume-paper.ref-bands{--ref-accent:#6c999b;--ref-dark:#557f82;padding:28px 32px}
.ref-bands .ref-heading{background:linear-gradient(to right,#efefec,#f7f7f4);margin-bottom:12px;min-height:30px}
.ref-bands .ref-heading-label{padding:0 18px 0 0;border-radius:20px;gap:11px;min-height:30px}
.ref-bands .ref-heading-label i{width:30px;height:30px;border:1px solid #ffffffa0;border-radius:50%;padding:6px}
.ref-bands .ref-section-body{padding:0 10px 0 15px}
.ref-bands .ref-basic-info{display:flex;align-items:start;justify-content:space-between;gap:22px;padding:4px 0 10px}
.ref-bands .ref-basic-info dl{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.25fr);gap:9px 20px;flex:1;min-width:0;font-size:10px}
.ref-bands .ref-basic-info dl>div{display:flex;gap:10px;line-height:1.8;min-width:0}
.ref-bands .ref-basic-info dt{min-width:45px;color:#788486;letter-spacing:.4px;flex-shrink:0}
.ref-bands .ref-basic-info dd{color:#566569;min-width:0}
.ref-bands .ref-basic-info dl>div:first-child dd{font-weight:600;color:#46575a}
.ref-bands .ref-project-record h5:before{content:'●';font-size:8px;margin-right:6px;color:#647e80}
.ref-bands .ref-project-record h5{color:#566b70}
.ref-bands .ref-portfolio{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.ref-bands .ref-qr{width:85px;margin:0;flex-shrink:0}
.ref-bands .ref-portfolio a{max-width:320px}
.ref-bands .ref-portfolio small{text-align:left}
/* Matching miniature layouts in the template picker. */
.wizard-final .template-grid{grid-template-columns:1fr 1fr}
.ref-thumb{display:flex;gap:7px;background:#fff;box-shadow:0 2px 7px #303b3212;padding:8px;height:145px;overflow:hidden}
.ref-thumb-side{background:#eff5f4;display:block;width:30%;flex-shrink:0;padding:6px 3px}
.ref-thumb-side i{display:block;background:#c3dce3;width:65%;height:26px;margin:0 auto 7px}
.ref-thumb-side b{display:block;background:#9fb4b6;width:60%;height:3px;margin:0 auto 10px}
.ref-thumb em{display:block;background:#e3e9e8;height:2px;margin:5px 0}
.ref-thumb-side u{display:block;width:25px;height:25px;margin:12px auto 0;background:repeating-conic-gradient(#607c82 0% 25%,white 0% 50%) 50% / 6px 6px}
.ref-thumb-main{display:block;flex:1;min-width:0}
.ref-thumb-section{display:block;margin:4px 0 11px}
.ref-thumb-section b{display:block;height:6px;width:70%;background:#8fc0d0;clip-path:polygon(0 0,100% 0,90% 50%,100% 100%,0 100%)}
.ref-thumb-bands{display:block;padding:10px}
.ref-thumb-bands .ref-thumb-section b{background:#7aa3a4;border-radius:6px;clip-path:none;width:55%}
.ref-thumb-basic{display:block;height:27px;position:relative;border-top:5px solid #86aeb0}
.ref-thumb-basic i{position:absolute;right:0;top:5px;width:14px;height:17px;background:#c6dce5}
.ref-thumb-basic b,.ref-thumb-basic em{display:block;width:60%;height:2px;background:#e2e8e6;margin-top:6px}
@media(max-width:1000px){.wizard-final{grid-template-columns:260px minmax(0,1fr)}.wizard-preview .resume-paper.reference-paper{padding:22px}.wizard-preview .resume-paper.ref-ribbon{padding:24px 20px;gap:20px}.reference-paper .ref-copy p{font-size:10px}.reference-paper .ref-record-top{grid-template-columns:85px minmax(0,1fr) auto}.ref-ribbon .ref-record-top{grid-template-columns:minmax(0,1fr) auto}.ref-ribbon .ref-profile .ref-photo{width:80px;height:107px}.ref-bands .ref-basic-info dl{gap:8px 12px}.ref-bands .ref-basic-info dl>div{gap:6px}}
@media(max-width:750px){.wizard-final{grid-template-columns:1fr}.wizard-final .template-grid{grid-template-columns:1fr 1fr}.ref-thumb{height:155px}.wizard-preview{overflow-x:auto;padding-bottom:12px}.wizard-preview #paper{min-width:580px}.wizard-preview .resume-paper.reference-paper{width:100%;min-width:580px}.reference-paper .ref-copy p{font-size:11px}.ref-bands .ref-basic-info dl{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr)}.ref-ribbon .ref-profile .ref-photo{width:88px;height:117px}.reference-paper .ref-record-top{font-size:10px}}
@media print{
 @page{size:A4;margin:10mm}
 .wizard-preview,#paper{overflow:visible!important;min-width:0!important;padding:0!important}
 .wizard-preview .resume-paper.reference-paper,.resume-paper.reference-paper{width:100%!important;min-width:0!important;min-height:0!important;aspect-ratio:auto!important;box-shadow:none!important;padding:4mm!important;font-size:9pt;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 .wizard-preview .resume-paper.ref-ribbon,.resume-paper.ref-ribbon{display:grid!important;grid-template-columns:29% minmax(0,1fr)!important;gap:7mm;padding:5mm!important;background:linear-gradient(to right,#f0f6f5 0 31%,#fff 31%)!important}
 .reference-paper .ref-section{margin-bottom:5mm;break-inside:auto}
 .reference-paper .ref-heading{font-size:11pt!important;break-after:avoid;margin-bottom:3mm}
 .reference-paper .ref-heading-label{min-height:7mm}
 .reference-paper .ref-copy p{font-size:9pt!important;line-height:1.65!important;margin-bottom:1mm}
 .reference-paper .ref-record{break-inside:avoid;margin-bottom:3.5mm}
 .reference-paper .ref-record-top,.reference-paper .ref-record-top strong,.reference-paper .ref-record-top time,.reference-paper .ref-record-top>span,.reference-paper .ref-project-record h5{font-size:9pt!important}
 .ref-ribbon .ref-profile .ref-photo{width:27mm;height:36mm}
 .ref-ribbon .ref-profile h2{font-size:18pt!important}
 .ref-ribbon .ref-contacts dt,.ref-ribbon .ref-contacts dd,.ref-ribbon .ref-sidebar .ref-copy p{font-size:8.5pt!important}
 .ref-ribbon .ref-main .ref-heading-label{min-width:42mm}
 .ref-bands .ref-photo{width:24mm;height:32mm}
 .ref-bands .ref-basic-info dl{font-size:9pt!important;gap:2mm 5mm}
 .ref-bands .ref-heading-label{min-height:7mm}
 .ref-bands .ref-heading-label i{width:7mm;height:7mm;padding:1.2mm}
 .reference-paper .ref-qr{width:36mm}.ref-bands .ref-qr{width:23mm}
 .reference-paper .ref-portfolio a,.reference-paper .ref-portfolio small{font-size:8pt!important}
}

.reference-paper .ref-record-top time:empty{display:none}.reference-paper .ref-record-top:has(time:empty){grid-template-columns:minmax(0,1fr) auto}
