/* Small screens: keep controls, long Chinese copy and contacts within the viewport. */
.hero-copy,.portrait,.service,.timeline-row>*,.contact>div,.member-row>*{min-width:0}
h1,h2,h3,.intro,.service p,.timeline-row p,#contact-links,.english,.role{overflow-wrap:anywhere}
@media(max-width:800px){
header{height:auto;min-height:75px;flex-wrap:wrap;gap:12px}
header>a:last-child:not(.brand){font-size:12px;margin-left:auto}
.brand img{max-width:100%;width:160px}
header button{max-width:100%;min-height:40px}
input,textarea,select{font-size:16px}
button,.file-button{min-height:44px}
.editor-top{gap:10px}
.editor-top h2{font-size:20px}
.stat b{overflow-wrap:anywhere}
.contact{min-width:0}
.contact h2{overflow-wrap:anywhere}
}

@media(max-width:360px){main{padding:0 16px}.hero h1{font-size:42px;letter-spacing:4px}.section-head h2{font-size:20px}aside{padding:20px}.timeline-row{grid-template-columns:80px 1fr}.contact{padding:24px}}

/* Visitor-facing card: dedicated presentation with no management controls. */
body.customer header{justify-content:flex-start;height:80px;padding:18px max(50px,calc((100vw - 1160px)/2));border-bottom:1px solid #e6e7eb}
body.customer header .brand{pointer-events:none}
body.customer header .brand img{width:210px}
body.customer footer{justify-content:center;text-align:center}
body.customer footer>img{display:none}
@media(max-width:800px){
main{padding:0 20px}
body.customer header{height:68px;min-height:68px;padding:15px 20px}
body.customer header .brand img{width:190px}
.hero{padding:28px 0 30px;gap:24px;display:flex;flex-direction:column;align-items:stretch}
.portrait{order:0;aspect-ratio:4/3;max-width:none;border-radius:20px 20px 6px 6px}
.hero-copy{order:1}
.portrait>img{object-position:center 30%}
.portrait-label{padding:20px;background:linear-gradient(transparent,rgba(18,35,65,.82))}
.portrait-label b{font-size:13px}.portrait-label span{font-size:10px}
.vertical{display:none}.monogram{font-size:130px}
#placeholder p{font-size:14px;margin:10px 0}#placeholder span{font-size:11px}
.eyebrow{font-size:10px;letter-spacing:2px;margin-bottom:16px}
.role{margin:10px 0 12px;font-size:13px;line-height:1.8}
h1{font-size:40px;letter-spacing:4px;line-height:1.25}
.english{font-size:11px;letter-spacing:3px;margin:10px 0 20px}
.hero h2{font-size:23px;line-height:1.65;margin:18px 0 14px}
.intro{font-size:15px;line-height:1.9;margin:0;color:#606b7d}
.tags{margin:18px 0 22px;gap:8px}.tags span{font-size:11px;padding:6px 11px}
.primary{min-height:44px;padding:13px 20px;font-size:14px}
.stats{padding:24px 0;gap:24px 0}.stat{padding:0 16px!important}
.stat b{font-size:30px}.stat p{font-size:12px;line-height:1.7;margin:8px 0 0}
.section{padding-top:36px}.section-head{margin-bottom:20px}
.section-head h2{font-size:21px;line-height:1.65;letter-spacing:0}
.services{gap:12px}.service{padding:22px;border-radius:10px}
.service h3{font-size:18px;margin:12px 0 10px}.service p{font-size:14px;line-height:1.85;color:#606b7d}
.timeline-row{grid-template-columns:75px 1fr;gap:12px;padding:18px 0}
.timeline-row b{font-size:14px}.timeline-row p{font-size:14px;line-height:1.85}
.gallery{gap:10px;margin-top:20px}.gallery img{border-radius:8px}
.contact{margin-top:36px;padding:26px 24px;gap:24px;border-radius:12px}
.contact h2{font-size:28px;line-height:1.5;margin:0 0 14px}
.contact>div>p:not(.eyebrow){font-size:13px;line-height:1.8}
#contact-links{display:grid;gap:14px;margin-top:22px;font-size:14px}
.qr{align-self:center;width:100%;padding-top:20px;border-top:1px solid #ffffff26}
.qr img,#qr-placeholder{width:154px;height:154px;margin:0 auto;display:block}
.qr p{font-size:12px;line-height:1.7;margin-bottom:0}
footer{padding:26px 0 32px}footer span{font-size:11px;line-height:1.8}
aside{width:100%;padding:24px 20px;padding-bottom:max(28px,env(safe-area-inset-bottom))}
.actions{position:static}.editor-top{position:sticky;top:-24px;background:white;z-index:1;padding:12px 0}
}

/* Final brand treatment: quiet masthead, matching the warm paper canvas. */
body.customer header{background:var(--paper);height:100px;border:0;padding-top:30px;padding-bottom:20px}
body.customer header .brand{position:relative;display:block;width:190px;height:46px;overflow:hidden;flex:none}
body.customer header .brand img{position:absolute;width:260px;max-width:none;height:auto;left:-33px;top:-13px;mix-blend-mode:multiply}
body.customer .hero{padding-top:30px}
body.customer .hero:has(.portrait[hidden]){display:block}
body.customer .hero:has(.portrait[hidden]) .hero-copy{max-width:740px}
body.customer .hero-copy>.eyebrow{color:#a39172;letter-spacing:2.4px;font-size:10px}
@media(max-width:800px){
body.customer header{justify-content:center;height:90px;min-height:90px;padding:26px 24px 18px;background:var(--paper);border:0}
body.customer header .brand{width:166px;height:40px}
body.customer header .brand img{width:226px;left:-29px;top:-11px}
body.customer main{padding:0 24px}
body.customer .hero{padding-top:18px;padding-bottom:32px;gap:28px}
body.customer .hero-copy>.eyebrow{margin:0 0 18px;font-size:9px;letter-spacing:2px}
body.customer .role{font-size:12px;line-height:1.8;color:#6c7687;margin:0 0 12px}
body.customer h1{font-size:42px;letter-spacing:3px;color:var(--blue)}
body.customer .english{margin:12px 0 24px;letter-spacing:2.5px;color:#9499a1}
body.customer .hero h2{margin:0 0 18px;font-size:23px;line-height:1.6}
body.customer .intro{font-size:14px;line-height:1.95}
body.customer .portrait{border-radius:14px;aspect-ratio:4/3}
}

.resume-import{background:#f1f4f9;border:1px solid #dce3ed;padding:18px;border-radius:10px;margin:20px 0}.resume-import h3{font-size:17px;margin:0 0 10px}.resume-import p{font-size:12px;line-height:1.8;color:#626e80;white-space:pre-wrap;overflow-wrap:anywhere}.resume-import textarea{min-height:180px;background:white;margin:8px 0 14px}.resume-import button{font-size:13px;max-width:100%}.resume-preview{background:#fff;border-radius:6px;padding:14px;margin-top:15px;max-height:380px;overflow:auto}.resume-preview strong{font-size:12px}.resume-preview h4{font-size:14px;margin:0 0 15px}.resume-preview>div{border-bottom:1px solid #e6e9ef;padding:8px 0}.resume-import>button:not(.primary){margin-top:12px}

.card-share-entry{display:flex;justify-content:center;padding:30px 0 0}.card-share-entry .primary{background:transparent;color:var(--blue);border:1px solid #d4dae5;font-size:12px;padding:12px 22px;gap:12px}

/* Coordinated paper, typography and accents for all five profile themes. */
body[data-theme=blue]{--blue:#1d317a;--paper:#f6f5f0;--muted:#717b90;--surface:#fdfcf9;--rule:#d7dae2;--gold:#ac946b}
body[data-theme=forest]{--blue:#173e35;--paper:#f5f3e9;--muted:#6b7b70;--surface:#fbfaf3;--rule:#d0d8ca;--gold:#a39670}
body[data-theme=charcoal]{--blue:#252730;--paper:#f4f3f0;--muted:#7a7d87;--surface:#fcfbf8;--rule:#d6d7dc;--gold:#a9987f}
body[data-theme=burgundy]{--blue:#652d3e;--paper:#faf4f1;--muted:#8b717a;--surface:#fffaf7;--rule:#e1cfd2;--gold:#b29378}
body[data-theme=sand]{--blue:#624e35;--paper:#f7f0e3;--muted:#8a7a65;--surface:#fdf8ed;--rule:#dbcfbc;--gold:#ab8c58}
body[data-theme]{background:var(--paper);color:var(--blue)}
body[data-theme] .service{background:var(--surface);border-color:var(--rule)}
body[data-theme] .stats,body[data-theme] .stat,body[data-theme] .timeline-row{border-color:var(--rule)}
body[data-theme] .intro,body[data-theme] .service p,body[data-theme] .stat p,body[data-theme] .english,body[data-theme] .section-head>p{color:var(--muted)}
body[data-theme] .hero-copy>.eyebrow{color:var(--gold)}
body[data-theme] .tags span{border-color:var(--rule)}

.profile-theme-options{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0 24px}.profile-theme-options button{font-size:11px;padding:10px;display:flex;align-items:center;gap:6px;min-height:40px}.profile-theme-options button:before{content:'';width:12px;height:12px;border-radius:50%;background:var(--swatch)}.profile-theme-options button[aria-pressed=true]{border-color:var(--swatch);box-shadow:0 0 0 1px var(--swatch)}
