*{box-sizing:border-box}body{margin:0;height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#f7f7f8;color:#1c1c1e;font:14px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}header,footer{background:#fff;border-bottom:1px solid #e9e9eb;display:flex;align-items:center;justify-content:space-between;padding:12px 4vw;gap:12px;z-index:1}footer{border:0;border-top:1px solid #e9e9eb}a{color:inherit;text-decoration:none;font-weight:720;font-size:17px;white-space:nowrap}.logo{display:inline-grid;place-items:center;background:#19191b;color:white;width:31px;height:31px;border-radius:9px;margin-right:7px;font-family:Georgia}button,select,input,textarea{font:inherit}button,select{border:1px solid #dedee2;border-radius:8px;background:#fff;color:inherit;padding:7px 11px;cursor:pointer}button:hover{background:#efeff1}button:focus-visible,select:focus-visible,[contenteditable]:focus-visible{outline:2px solid #777;outline-offset:2px}.primary{background:#202022;color:white;border-color:#202022}.primary:hover{background:#414145}.ghost{border-color:transparent;background:transparent}.mini{padding:2px 6px;font-size:12px}.tools,#nav,#foot{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.tools{justify-content:flex-end;flex-shrink:0}#workspace{min-height:0;display:grid}#workspace.split{grid-template-columns:minmax(0,43fr) minmax(0,57fr)}#library,#draft{overflow:auto;min-width:0;scrollbar-gutter:stable}#draft{display:none;background:#eeeef0;border-left:1px solid #dfdfe3}.split #draft{display:block}.wrap{max-width:940px;margin:auto;padding:34px 26px 48px}.split .wrap{padding:24px 16px}.heading{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:22px}.eyebrow{font-size:10px;font-weight:750;letter-spacing:.2em;color:#74747b}h1{font-size:32px;letter-spacing:-.045em;margin:5px 0 1px;line-height:1.15}.split h1{font-size:24px}p{margin:5px 0;color:#65656d}.card{background:white;border:1px solid #e3e3e6;border-radius:12px;margin-bottom:12px;padding:9px 12px;box-shadow:0 2px 6px #00000004}.row{display:flex;align-items:center;gap:4px;min-width:0;padding:4px 0}.label{flex:1;min-width:0;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;border:0;background:transparent;padding:5px 7px}.cat>.label{font-weight:730;font-size:15px}.exp>.label{font-weight:650}.selected{background:#e9e9ec}.branch{border-top:1px solid #eeeef0;padding:4px 0;margin-top:3px}.points{padding-left:15px}.point .label{font-size:13px}.point .label::before{content:'• ';color:#75757d}.empty{padding:27px;border:1px dashed #d6d6dc;border-radius:10px;text-align:center;color:#62626b}.draftbar{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 auto 13px;max-width:794px;padding:0 2px}.preview{padding:19px}.paper{width:100%;max-width:794px;min-height:0;margin:auto;aspect-ratio:210/297;background:white;padding:7% 7%;box-shadow:0 3px 20px #0000000e;overflow-wrap:anywhere}.paper .row{align-items:start}.paper [contenteditable]{white-space:pre-wrap;min-width:0;flex:1;padding:2px 4px;border-radius:4px}.paper [contenteditable]:hover{background:#f5f5f6}.paper .sectionTitle{font-weight:760;font-size:16px;border-bottom:1px solid #28282a;margin-bottom:6px}.paper .experienceTitle{font-weight:700}.paper .section{margin-bottom:18px}.paper .bullet{font-size:13px}.paper .tools{gap:0;opacity:.45}.paper .row:hover .tools,.paper .row:focus-within .tools{opacity:1}.paper .mini{padding:1px 4px}.handle{cursor:grab;color:#777}.drop{outline:1px dashed #777}.muted{color:#6c6c75;font-size:12px}.pill{border:1px solid #dedee2;border-radius:99px;padding:2px 8px;font-size:11px}dialog{width:min(600px,calc(100vw - 28px));border:1px solid #ddd;border-radius:15px;padding:22px;color:inherit;box-shadow:0 20px 70px #0002}dialog::backdrop{background:#0004}dialog h2{margin:0 0 12px;font-size:20px}dialog textarea,dialog input,.jd{display:block;width:100%;border:1px solid #d7d7dc;border-radius:8px;padding:10px;margin:10px 0;background:white;color:inherit}.jd{white-space:pre-wrap;min-height:220px;max-height:48vh;overflow:auto}.jd:empty::before{content:attr(data-placeholder);color:#777;pointer-events:none}mark{background:#f8e6a7;color:inherit}#toast{position:fixed;bottom:65px;left:50%;transform:translateX(-50%);background:#222;color:white;border-radius:9px;padding:8px 14px;z-index:4;display:none;max-width:90vw}#status{font-size:12px;color:#62626b}#status:before{content:'●';font-size:8px;margin-right:7px}header select{max-width:190px}button:disabled{opacity:.4;cursor:default}
@media(max-width:800px){header,footer{padding:8px 12px}#workspace.split{grid-template-columns:1fr;grid-template-rows:minmax(0,47fr) minmax(0,53fr)}#draft{border-left:0;border-top:1px solid #ddd}.wrap{padding:22px 13px}.preview{padding:12px}.paper{padding:6%}.tools{gap:1px}.mini{padding:2px 4px}header select{max-width:130px}}
@page{size:A4;margin:15mm}@media print{body,#workspace,#draft{display:block!important;height:auto!important;overflow:visible;background:white;border:0}header,footer,#library,.draftbar,.paper .tools,#toast,.paper .empty{display:none!important}.paper{aspect-ratio:auto;width:auto;max-width:none;padding:0;box-shadow:none}.preview{padding:0}.paper .row{break-inside:avoid}.paper .sectionTitle,.paper .experienceTitle{break-after:avoid}}
.hiddenTitle{min-height:24px}.hiddenTitle .groupHint{flex:1;font-size:10px;color:#777}.hiddenTitle .tools{opacity:.35}.point .label{padding-left:8px}.card>.branch>.point{padding-left:5px}
@media print{.hiddenTitle{display:none}}
.detail #library,#jdSide{display:none}
.detail #draft,.withJd #jdSide{display:block}
#workspace.detail.withJd{grid-template-columns:minmax(0,1fr) minmax(245px,30%)}
#workspace.split.withJd{grid-template-columns:minmax(0,37fr) minmax(0,41fr) minmax(215px,22fr)}
#jdSide{min-width:0;overflow:auto;background:#fff;border-left:1px solid #dfdfe3}
.jdPanel{padding:18px 14px}
.jdPanel h2{font-size:16px;margin:0 0 9px}
.jdPanel .tools{justify-content:flex-start}
.jdPanel .jd{max-height:none;min-height:230px;overflow-wrap:anywhere}
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(186px,1fr));gap:16px}
.versionCard{border:1px solid #e3e3e6;border-radius:12px;padding:10px;background:white}
.versionCard h2{font-size:15px;margin:10px 4px 4px;overflow-wrap:anywhere}
.versionCard .tools{justify-content:flex-start}
.thumbnail{width:100%;height:181px;display:grid;place-items:center;background:#f1f1f3;border-color:transparent;padding:12px}
.miniPaper{width:111px;aspect-ratio:210/297;background:white;box-shadow:0 2px 9px #0001;overflow:hidden;text-align:left;padding:12px 8px}
.previewLine{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:5px;line-height:1.8}
.previewLine.category{font-size:6px;font-weight:750;border-bottom:1px solid #aaa}
.previewLine.experience{font-weight:700}
.draftChoices{display:grid;gap:6px;margin-bottom:15px}
.paperText{white-space:pre-wrap;flex:1;min-width:0}
.paper.editing .bullet:before{content:'•'}
.paper .row>.mini{flex-shrink:0;color:#73737b}
.paper .sectionTitle{margin:0 0 6px}
.detail #draft{border-left:0}
@media(max-width:800px){
  #workspace.split.withJd{grid-template-columns:minmax(0,1fr) minmax(150px,39%);grid-template-rows:minmax(0,53fr) minmax(0,47fr)}
  .split.withJd #draft{grid-column:1/-1;grid-row:2}
  .split.withJd #jdSide{grid-column:2;grid-row:1}
  #workspace.detail.withJd{grid-template-columns:minmax(0,1fr) minmax(145px,38%)}
  .jdPanel{padding:10px 8px}
  .jdPanel button{padding:4px 6px}
}
@media print{
  #jdSide,.paper .row>.mini{display:none!important}
}
.thumbnail{height:auto;min-height:192px;padding:16px 10px}
.miniPaper{display:block;width:120px;aspect-ratio:210/297;padding:0;overflow:hidden}
.miniCanvas{display:block;width:794px;min-height:1123px;zoom:.15113;padding:55px;background:white;overflow-wrap:anywhere}
.miniCanvas .row{align-items:start}
.miniCanvas .section{margin-bottom:18px}
.miniCanvas .sectionTitle{font-size:16px;font-weight:760;border-bottom:1px solid #28282a;margin-bottom:6px}
.miniCanvas .experienceTitle{font-weight:700}
.miniCanvas .bullet{font-size:13px}
.inlineMaterial{display:flex;align-items:start;gap:6px;margin:7px 0;padding:7px;border-radius:8px;background:#f3f3f5}
.inlineMaterial input,.inlineMaterial textarea,#draftName{min-width:0;border:1px solid #d4d4da;border-radius:6px;padding:5px 7px;background:white;color:inherit}
.inlineMaterial input,.inlineMaterial textarea{flex:1}
#draftName{width:100%;margin:7px 0 3px;font-weight:700}

/* Every view uses the same 794 × 1123 CSS-pixel A4 canvas. */
.label.selected{background:transparent;color:#777;text-decoration:line-through;text-decoration-thickness:1px}
.label.selected:hover{background:#f5f5f6}
.paperViewport{width:100%;max-width:794px;margin:0 auto;background:#fff;box-shadow:0 3px 20px #0000000e;--sheet-scale:1}
.paperViewport>.resumeSheet{zoom:var(--sheet-scale)}
.resumeSheet{box-sizing:border-box;width:794px;min-height:1123px;padding:47px 53px;background:#fff;color:#222;line-height:1.42;overflow-wrap:anywhere}
.resumeSheet.compact{padding:39px 48px;line-height:1.34}
.resumeHeader{text-align:center;margin:0 0 15px}
.resumeHeader .name{display:block;width:100%;text-align:center;font-size:27px;line-height:1.16;font-weight:750;margin:0 0 5px}
.resumeHeader .contact{display:flex;align-items:center;justify-content:center;gap:9px;font-size:12px;color:#555;flex-wrap:wrap}
.resumeHeader .headerField{background:transparent;color:inherit;border:0;border-radius:4px;padding:1px 4px}
.resumeHeader .headerField.name{width:70%;margin-inline:auto}
.resumeHeader .headerField.phone{width:140px;text-align:right}
.resumeHeader .headerField.email{width:190px}
.resumeHeader .headerField:focus{outline:1px solid #c6c6cd}
.resumeSheet .section{margin-bottom:12px}
.resumeSheet.compact .section{margin-bottom:8px}
.resumeSheet .row{align-items:baseline;padding:0;gap:5px}
.resumeSheet .sectionTitle{font-weight:750;font-size:15px;border-bottom:1px solid #8c8c93;padding-bottom:2px;margin-bottom:5px}
.resumeSheet .experience{margin-top:5px}
.resumeSheet .experienceTitle{font-weight:700;font-size:13px;margin-bottom:2px}
.resumeSheet .bullet{font-size:12.5px;padding-left:8px;margin:1px 0}
.resumeSheet .paperBullet{color:#555}
.resumeSheet .paperText{min-width:0;flex:1;white-space:pre-wrap}
.resumeSheet .paperText.dated{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.resumeSheet .experienceDate{white-space:nowrap;font-size:11.5px;font-weight:500;color:#45454b}
.resumeSheet [contenteditable]{border-radius:3px}
.resumeSheet [contenteditable]:hover{background:#f5f5f6}
.resumeSheet .row>.mini{padding:0 4px}
.resumeSheet .row.hiddenTitle{min-height:16px}
.miniCanvas{padding:0}
.draftbar{flex-wrap:wrap}
.draftbar strong{min-width:0;overflow-wrap:anywhere}
.draftbar .tools{flex-shrink:1}
@media print{
  @page{size:A4;margin:13mm 14mm}
  .paperViewport{box-shadow:none;width:auto;max-width:none}
  .paperViewport>.resumeSheet{width:auto;min-height:0;padding:0;zoom:1}
  .resumeSheet .row{break-inside:avoid}
  .resumeSheet .sectionTitle,.resumeSheet .experienceTitle{break-after:avoid}
  .resumeSheet .mini,.resumeSheet .hiddenTitle,.resumeSheet .empty,.resumeSheet.editing .headerField:placeholder-shown{display:none!important}
  .resumeHeader .contactDivider{display:none}
  .resumeHeader .headerField.phone,.resumeHeader .headerField.email{width:auto;text-align:center}
}
.resumeHeader .headerField.phone,.resumeHeader .headerField.email{
  width:auto;min-width:3em;max-width:100%;text-align:center;field-sizing:content
}
.draftIdentity{display:flex;align-items:center;min-width:0;gap:4px}
.draftIdentity button:first-child{white-space:nowrap}
.draftIdentity .draftName{min-width:0;text-align:left;font-weight:700;overflow-wrap:anywhere}
.draftName span{color:#73737b;font-weight:400}
.jdHeading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}
.jdHeading h2{margin:0}
.paperViewport{background:transparent;box-shadow:none}
.paperViewport>.resumeSheet{margin-inline:max(0px,calc((100% - var(--sheet-width, 794px))/2));box-shadow:0 3px 20px #0000000e}
#printSheet{display:none}
@page{size:A4;margin:0}
@media print{
  @page{size:A4;margin:0}
  .paperViewport>.resumeSheet{display:none}
  #printSheet{display:block;padding:13mm 14mm}
  #printSheet>.resumeSheet{width:auto;min-height:0;padding:0;box-shadow:none;zoom:1}
  #printSheet .contactDivider{display:inline}
}

.draftbar{max-width:none;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);align-items:start;margin-bottom:8px}
.toolbarSide{display:flex;gap:5px;flex-wrap:wrap}
.draftIdentity{justify-content:center}
.draftName,.inlineDraftName{font-weight:700;min-width:0;max-width:100%;overflow-wrap:anywhere}
.draftIdentity .draftName{text-align:center}
.inlineDraftName{width:100%;border:1px solid #bbb;border-radius:6px;padding:6px 8px;background:#fff;color:inherit}
.versionCard>.draftName,.versionCard>.inlineDraftName{margin-top:6px;text-align:left}
.zoomTools{justify-content:center;margin-bottom:14px}
.paperViewport{width:100%;max-width:none;overflow-x:auto;padding:0 0 12px}
.sheetTrack{display:flex;justify-content:center;width:max(100%,var(--sheet-width,794px))}
.sheetTrack>.resumeSheet{flex:none;zoom:var(--sheet-scale);box-shadow:0 3px 14px #0000000e}
.thumbnail{position:relative}
.selectDot{position:absolute;top:9px;right:9px;display:grid;place-items:center;width:23px;height:23px;border:1px solid #777;border-radius:50%;background:#fff;color:#fff}
.thumbnail[aria-pressed=true] .selectDot{background:#222;border-color:#222}
@media print{
  .paperViewport{padding:0;overflow:visible}
  .sheetTrack,.zoomTools{display:none!important}
}

.materialDate{display:block;color:#67676e;font-size:11px;font-weight:500}
.selected .materialDate{text-decoration:line-through}
.materialEdit{display:flex;flex:1;flex-wrap:wrap;min-width:0;gap:4px}
.materialEdit input,.materialEdit textarea,.inlineMaterial #materialDate{flex:1;min-width:90px;border:1px solid #bbb;border-radius:5px;padding:4px 6px;color:inherit;background:white}
.materialEdit textarea{resize:vertical}
.inlineMaterial{flex-wrap:wrap}
.resumeSheet .dateEdit{border:0;background:transparent;color:inherit;text-align:right;max-width:42%;padding:0 1px;font:inherit;font-size:11.5px}
.resumeSheet .dateEdit:focus{outline:1px solid #bdbdc2}

.libraryActions{display:flex;gap:6px;align-items:center;flex-shrink:0}
.libraryActions button{white-space:nowrap}
#library .branch{border-top:0}
#library .materialExperience+.materialExperience{border-top:1px solid #e9e9ed;margin-top:6px;padding-top:6px}
#splitter{display:none}
@media screen and (min-width:801px){
  #workspace.split{grid-template-columns:minmax(0,var(--library-width,43%)) 8px minmax(0,1fr)}
  #workspace.split.withJd{grid-template-columns:minmax(0,var(--library-width,37%)) 8px minmax(0,1fr) minmax(215px,22%)}
  .split #splitter{display:grid;place-items:center;cursor:col-resize;touch-action:none;background:#e7e7eb}
  .split #splitter::before{content:'';width:2px;height:34px;background:#a4a4ac;border-radius:2px}
  .split #splitter:hover,.split #splitter:focus-visible{background:#cccdd3;outline:none}
  .split #draft{border-left:0}
}

/* Keep each experience and its points visually grouped. */
#library .card>.branch{border-top:1px solid #dedee3;margin-top:4px;padding-top:5px}
#library .materialExperience>.branch{margin-top:0;padding-block:0}
#library .materialExperience>.exp{padding:2px 0 1px}
#library .point{padding:0;align-items:baseline}
#library .point .label{padding-block:2px;line-height:1.4}
#library .materialExperience+.materialExperience{margin-top:9px;padding-top:8px}

#library .point .label{padding-block:5px;line-height:1.58}
#library .materialExperience>.exp{padding:5px 0 3px}
#library .materialExperience+.materialExperience{margin-top:11px;padding-top:10px}
.split #library [data-action="add-experience"],.split #library [data-action="add-bullet"]{color:#73737d;background:#f2f2f4}
.split #library [data-action="add-experience"]:hover,.split #library [data-action="add-bullet"]:hover{color:#34343a;background:#e9e9ec}
.photoLibrary,.photoItem{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.photoLibrary{margin-bottom:12px}
.photoItem{padding:4px;border:1px solid #e3e3e8;border-radius:6px;background:white}
.photoItem img{width:29px;height:37px;object-fit:cover}
.resumePhoto{float:right;position:relative;margin:0 0 6px 12px;z-index:1}
.resumePhoto img{display:block;width:82px;height:104px;object-fit:cover}
.resumePhoto+.resumeHeader{min-height:104px;padding-inline:94px}
.resumePhoto+.resumeHeader .contact{gap:5px}
.resumePhoto+.resumeHeader .name{width:100%}
.resumePhoto .mini{position:absolute;right:0;top:0;background:#fff}
.resumePhoto~.section{clear:both}
#jdSplitter{display:none}
@media screen and (min-width:801px){
  #workspace.split.withJd{grid-template-columns:minmax(0,var(--library-width,min(37%,calc(73% - var(--jd-width,24%))))) 8px minmax(0,1fr) 8px minmax(180px,var(--jd-width,24%))}
  #workspace.detail.withJd{grid-template-columns:minmax(0,1fr) 8px minmax(180px,var(--jd-width,24%))}
  .withJd #jdSplitter{display:grid;place-items:center;cursor:col-resize;touch-action:none;background:#e7e7eb}
  .withJd #jdSplitter::before{content:'';width:2px;height:34px;background:#a4a4ac;border-radius:2px}
  .withJd #jdSplitter:hover,.withJd #jdSplitter:focus-visible{background:#cccdd3;outline:none}
  .withJd #jdSide{border-left:0}
}
@media print{.resumePhoto{break-inside:avoid}}

/* Align the portrait with the header and keep the first section close. */
.resumePhoto{margin:-23px -16px 2px 12px}
.resumePhoto+.resumeHeader{min-height:0;margin-bottom:11px}
.resumePhoto~.section{clear:none}
.resumePhoto~.section:first-of-type{clear:right}
.resumePhoto+ .resumeHeader+ .section>.sectionTitle{clear:none}
.resumePhoto~.section .experience{clear:right}
#library .label{line-height:1.68}
#library .point .label{padding-block:7px;line-height:1.68}
#library .materialExperience>.exp{padding:7px 0 5px}
#library .materialExperience+.materialExperience{margin-top:13px;padding-top:12px}

.resumeSheet{position:relative;display:flow-root}
.resumeSheet .resumePhoto{position:absolute;float:none;top:24px;right:37px;margin:0}
.resumeSheet .resumePhoto+.resumeHeader{min-height:65px;margin-bottom:10px}
.resumeSheet .resumePhoto~.section,.resumeSheet .resumePhoto~.section .experience{clear:none}
.resumeSheet.hasPhoto:has(>.resumePhoto+.section){padding-top:132px}
.resumeSheet.autoLayout{padding:calc(27px + 34px * var(--density)) 53px;line-height:calc(1.24 + .43 * var(--density))}
.resumeSheet.autoLayout .resumeHeader{margin-bottom:calc(6px + 17px * var(--density))}
.resumeSheet.autoLayout .section{margin-bottom:calc(4px + 22px * var(--density))}
.resumeSheet.autoLayout .sectionTitle{margin-bottom:calc(2px + 7px * var(--density))}
.resumeSheet.autoLayout .experience{margin-top:calc(2px + 10px * var(--density))}
.resumeSheet.autoLayout .bullet{margin-block:calc(.5px + 4px * var(--density))}
.resumeSheet.autoLayout .resumePhoto+.resumeHeader{min-height:calc(101px - 34px * var(--density))}
.layoutMeasure{position:absolute;left:-10000px;top:0;visibility:hidden;pointer-events:none}
.layoutMeasure>.resumeSheet.autoLayout{min-height:0}
@media print{
  #printSheet:has(>.autoLayout){padding:0}
  #printSheet>.resumeSheet.autoLayout{width:210mm;padding:calc(27px + 34px * var(--density)) 53px}
  #printSheet>.resumeSheet:not(.autoLayout) .resumePhoto{top:-22px;right:-12px}
}
.resumeSheet.autoLayout{padding-top:calc(27px + 34px * var(--density) + var(--balance))}
.resumeSheet.autoLayout .resumePhoto{top:calc(24px + var(--balance))}
@media print{
  #printSheet>.resumeSheet.autoLayout{padding-top:calc(27px + 34px * var(--density) + var(--balance))}
}

/* The portrait shares the same right inset as all section dividers. */
.resumeSheet{--body-inset:53px}
.resumeSheet.compact:not(.autoLayout){--body-inset:48px}
.resumeSheet .resumePhoto{right:var(--body-inset);top:auto;margin-top:-25px}
.resumeSheet .resumePhoto+.resumeHeader,
.resumeSheet.autoLayout .resumePhoto+.resumeHeader{min-height:57px;margin-bottom:8px}
.resumeSheet.hasPhoto:has(>.resumePhoto+.section){padding-top:132px}
.resumeSheet.hasPhoto:has(>.resumePhoto+.section) .resumePhoto{top:18px;margin-top:0}
@media print{
  #printSheet>.resumeSheet:not(.autoLayout) .resumePhoto{right:0;top:auto;margin-top:-25px}
}

.libraryActions{flex-wrap:wrap;justify-content:flex-end}
/* Use one spacing rule per row type across every section. */
.resumeSheet.autoLayout{
  --point-gap:calc(2px + 5px * var(--density));
  --experience-gap:calc(5px + 12px * var(--density));
}
.resumeSheet.autoLayout .experience{margin:0}
.resumeSheet.autoLayout .experience+.experience,
.resumeSheet.autoLayout .resumePoint+.experience{margin-top:var(--experience-gap)}
.resumeSheet.autoLayout .bullet{margin:0;line-height:inherit;align-items:start}
.resumeSheet.autoLayout .bullet .mini{line-height:1;padding-block:0}
.resumeSheet.autoLayout .experienceTitle{margin-bottom:0}
.resumeSheet.autoLayout .experience>.row+.resumePoint{margin-top:var(--point-gap)}
.resumeSheet.autoLayout .resumePhoto{top:auto;margin-top:-18px}
.resumeSheet:not(.autoLayout) .resumePhoto{margin-top:-18px}
@media print{
  #printSheet>.resumeSheet:not(.autoLayout) .resumePhoto{margin-top:-18px}
}

.typographyControls{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:7px 14px;margin:0 0 14px;color:#5c5c64;font-size:12px}
.typographyControls label{display:flex;align-items:center;gap:5px;white-space:nowrap}
.typographyControls input{accent-color:#444}
.typographyControls input[type=range]{width:75px}
.typographyControls output{min-width:34px;font-variant-numeric:tabular-nums}
.resumeSheet.liveTypography{line-height:var(--resume-leading)}
.resumeSheet.liveTypography .sectionTitle{font-size:calc(var(--resume-font) + 2.5px)}
.resumeSheet.liveTypography .experienceTitle{font-size:calc(var(--resume-font) + .5px)}
.resumeSheet.liveTypography .experienceDate{font-size:calc(var(--resume-font) - 1px)}
.resumeSheet.liveTypography .bullet{font-size:var(--resume-font);margin:0;align-items:start}
.resumeSheet.liveTypography .bullet .mini{line-height:1;padding-block:0}
.layoutMeasure>.resumeSheet.liveTypography{min-height:0}
@media print{
  .typographyControls{display:none!important}
  #printSheet:has(>.liveTypography){padding:0}
  #printSheet>.resumeSheet.liveTypography{width:210mm;padding:47px 53px}
  #printSheet>.resumeSheet.liveTypography .resumePhoto{right:53px}
}

.resumeSheet.liveTypography{height:1122px;min-height:0;overflow:hidden}
.layoutMeasure>.resumeSheet.liveTypography{height:auto;overflow:visible}
.overflowNotice{text-align:center;color:#80501b;font-size:12px;margin:0 0 9px}
.resumeSheet .resumePhoto{transform:translate(calc(var(--photo-x,0) * 1px),calc(var(--photo-y,0) * 1px))}
.resumePhoto .photoFrame{width:calc(82px * var(--photo-size,1));height:calc(104px * var(--photo-size,1));overflow:hidden}
.resumePhoto .photoFrame img{width:100%;height:100%;object-fit:cover;object-position:calc(var(--photo-cx,50) * 1%) calc(var(--photo-cy,50) * 1%);transform:scale(var(--photo-zoom,1));transform-origin:calc(var(--photo-cx,50) * 1%) calc(var(--photo-cy,50) * 1%)}
.movablePhoto .photoFrame{cursor:move;touch-action:none}
.resumePhoto .photoTools{position:absolute;top:0;right:0;display:flex;gap:2px;white-space:nowrap;opacity:0}
.resumePhoto:hover .photoTools,.resumePhoto:focus-within .photoTools{opacity:1}
.resumePhoto .photoTools .mini{position:static;padding:2px 4px}
@media print{
  .overflowNotice{display:none!important}
  #printSheet>.resumeSheet.liveTypography{height:296.9mm;overflow:hidden}
}

.resumeSheet.liveTypography .fitContent{
  width:688px;max-width:none;margin-inline:auto;position:relative;display:flow-root;
  zoom:var(--content-scale,1)
}
.resumeSheet.liveTypography .fitContent .resumePhoto{right:0}
.resumeSheet.liveTypography:has(.resumePhoto+.section) .fitContent{padding-top:85px}
.resumeSheet.liveTypography:has(.resumePhoto+.section) .fitContent .resumePhoto{top:-29px;margin-top:0}
@media print{
  #printSheet>.resumeSheet.liveTypography .fitContent .resumePhoto{right:0}
}

.resumeSheet.liveTypography .section{margin-bottom:calc(12px + var(--layout-space,0) * 2px)}
.resumeSheet.liveTypography .experience+.experience{margin-top:calc(5px + var(--layout-space,0) * 1px)}
.resumeSheet.liveTypography .section:last-child{margin-bottom:0}

/* Editing affordances sit outside the printable text flow. */
.resumeSheet.liveTypography{width:210mm}
.resumeSheet.liveTypography .row{position:relative}
.resumeSheet.liveTypography .row>.mini{position:absolute;left:100%;top:0;margin-left:4px}
.resumeSheet.liveTypography .hiddenTitle{height:0;min-height:0;padding:0}
.resumeSheet.liveTypography .hiddenTitle .groupHint{display:none}
.resumeSheet.liveTypography .hiddenTitle>.mini{top:-7px}
.resumeSheet.liveTypography .profileValue,.resumeSheet.liveTypography .experienceDate{position:relative;white-space:pre-wrap}
.resumeSheet.liveTypography .profileValue.name{min-height:1.16em}
.resumeSheet.liveTypography .contact{min-height:1.42em}
.resumeSheet.liveTypography .contact .profileValue{min-width:3em;text-align:center}
.resumeSheet.liveTypography .contact:has(.profileValue:empty) .contactDivider{visibility:hidden}
.resumeSheet.liveTypography .experienceDate{max-width:42%;text-align:right}
.resumeSheet.liveTypography .experienceDate:empty{width:0}
.resumeSheet.liveTypography [contenteditable][data-placeholder]:empty::before{
  content:attr(data-placeholder);color:#888;position:absolute;white-space:nowrap;right:0
}
.resumeSheet.liveTypography .profileValue[contenteditable]:empty::before{left:0;text-align:center}
.resumeSheet.liveTypography .fitContent .resumePhoto{top:auto;right:0;margin-top:-18px}
@media print{
  #printSheet>.resumeSheet.liveTypography .fitContent .resumePhoto{top:auto;right:0;margin-top:-18px}
}

.resumeSheet.songTypeface{font-family:SimSun,"Songti SC","Noto Serif CJK SC","STSong",serif}
.resumeSheet .extraContact{margin-top:3px}
.resumeSheet .extraContact .profileValue{min-width:9em}
.resumePhoto .photoFrame{clip-path:inset(calc(var(--photo-top) * 1%) calc(var(--photo-right) * 1%) calc(var(--photo-bottom) * 1%) calc(var(--photo-left) * 1%))}
.movablePhoto.cropping .photoFrame{cursor:default}
.photoHandle{display:none;position:absolute;width:9px;height:9px;border:1px solid #31313a;background:#fff;z-index:2;touch-action:none;transform:translate(-50%,-50%)}
.movablePhoto:hover .photoHandle,.photoSelected .photoHandle,.cropping .photoHandle{display:block}
.photoHandle.nw,.photoHandle.sw{left:calc(var(--photo-left) * 1%)}
.photoHandle.ne,.photoHandle.se{left:calc(100% - var(--photo-right) * 1%)}
.photoHandle.nw,.photoHandle.ne{top:calc(var(--photo-top) * 1%)}
.photoHandle.sw,.photoHandle.se{top:calc(100% - var(--photo-bottom) * 1%)}
.photoHandle.nw,.photoHandle.se{cursor:nwse-resize}
.photoHandle.ne,.photoHandle.sw{cursor:nesw-resize}
.photoSelected .photoTools,.cropping .photoTools{opacity:1}
.movablePhoto .photoTools{top:auto;bottom:100%;margin-bottom:4px}
@media print{.photoHandle,.photoTools{display:none!important}}

.resumeSheet.heiTypeface{font-family:"SimHei","Heiti SC","PingFang SC","Microsoft YaHei",sans-serif}
.resumeSheet.liveTypography .sectionTitle,
.resumeSheet.liveTypography .experienceTitle,
.resumeSheet.liveTypography .profileValue.name,
.resumeSheet.liveTypography .paperText strong{font-weight:700}
.resumeSheet.liveTypography{font-synthesis:weight}
.resumeSheet .emailWrap{position:relative;display:inline-flex;align-items:center;min-width:0}
.resumeSheet .emailWrap>.profileValue{display:inline-block}
.resumeSheet .extraContactAdd{position:absolute;left:100%;top:50%;transform:translateY(-50%);margin-left:6px;width:17px;height:17px;padding:0;display:grid;place-items:center;border-radius:50%;color:#73737c;border:1px solid #d8d8df;background:#f5f5f7;line-height:1}
.resumeSheet .extraContactAdd:hover{background:#e9e9ee}
@media print{.extraContactAdd{display:none!important}}

.basicCard .basicGrid{display:grid;gap:5px;padding:6px 7px 2px}
.basicRow{display:flex;align-items:center;gap:8px;min-width:0}
.basicRow>span{flex:none;color:#67676d;font-size:12px}
.basicRow input,.basicValue{min-width:0;flex:1;padding:5px 8px;border-radius:6px;border:1px solid #dedee2;background:#fff;color:inherit;text-align:left;overflow-wrap:anywhere}
.basicValue:hover{background:#f3f3f5}
.basicValue.basicAdded{color:#777;text-decoration:line-through}
.basicGrid>[data-action="add-basic-extra"]{justify-self:start}
.basicCard .photoLibrary{margin:8px 7px 4px;gap:9px}
.basicCard .photoItem{position:relative;display:block;border:0;padding:0}
.basicCard .photoTile{display:block;position:relative;padding:0;border:1px solid #dedee4;border-radius:7px;overflow:hidden}
.basicCard .photoTile img{display:block;width:57px;height:72px;object-fit:cover}
.basicCard .photoBadge{position:absolute;inset:0;display:grid;place-items:center;background:#ececf0c9;color:#333;font-size:11px}
.basicCard .photoItem>[data-action="remove-photo"]{position:absolute;right:2px;top:2px;background:#ffffffd9}
.resumeSheet .extraContact .profileValue{min-width:0}
.resumeSheet .extraContact .profileValue[contenteditable]:empty{min-width:4em;min-height:1em;box-shadow:inset 0 -1px #d4d4db}

.bulkPhotoChoices{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}

.resumeSheet .profileFieldWrap{position:relative;display:inline-block;min-width:0}
.resumeSheet .profileNameWrap{display:block;width:max-content;max-width:100%;min-width:3em;margin-inline:auto}
.resumeSheet .profileFieldWrap>.profileValue{display:block}
.resumeSheet .profileRemove{position:absolute;right:0;top:0;transform:translate(45%,-45%);border:1px solid #d8d8df;border-radius:50%;background:#fff;color:#666;width:15px;height:15px;padding:0;line-height:1;opacity:0;z-index:3}
.resumeSheet .profileFieldWrap:hover .profileRemove,.resumeSheet .profileFieldWrap:focus-within .profileRemove{opacity:1}
.resumeSheet .profileRemove:hover{background:#eee}
.resumeSheet.liveTypography .resumeHeader .name{margin-bottom:3px}
.resumeSheet.liveTypography .resumeHeader .contact{line-height:1.18;min-height:1.18em}
.resumeSheet.liveTypography .resumeHeader .extraContact{margin-top:1px}
.resumeSheet.liveTypography .resumePhoto+.resumeHeader{margin-bottom:6px}
@media print{.profileRemove{display:none!important}}

.basicRow>.basicFieldLabel{width:2.7em}
.resumeSheet.liveTypography .fitContent .resumePhoto{margin-top:-14px}
@media print{
  #printSheet>.resumeSheet.liveTypography .fitContent .resumePhoto{margin-top:-14px}
}

.resumePhoto .photoFrame{width:calc(var(--photo-width,82px) * var(--photo-size,1))}
.basicCard .photoTile img,.bulkPhotoChoices img{object-fit:contain;background:#f1f1f4}
.resumePhoto .photoTools [hidden]{display:none}
.resumeSheet.liveTypography .fitContent .resumePhoto{margin-top:-23px}
@media print{
  #printSheet>.resumeSheet.liveTypography .fitContent .resumePhoto{margin-top:-23px}
}

.blockAdd{display:block;width:100%;height:12px;padding:0;border:0;border-radius:4px;background:transparent;color:#575760;font-size:10px;line-height:12px;text-align:left}
.blockAdd span{opacity:0;padding-left:6px}
.blockAdd:hover,.blockAdd:focus-visible{background:#eeeff2}
.blockAdd:hover span,.blockAdd:focus-visible span{opacity:1}
.resumeSheet.liveTypography .fitContent .resumePhoto{margin-top:-19px}
@media print{
  #printSheet>.resumeSheet.liveTypography .fitContent .resumePhoto{margin-top:-19px}
}

#library .card:has(>.blockAdd:is(:hover,:focus-visible)),
#library .materialExperience:has(>.blockAdd:is(:hover,:focus-visible)){
  outline:1px solid #b9b9c2;outline-offset:2px;border-radius:7px;background:#f2f2f5
}
#library .blockAdd:is(:hover,:focus-visible){background:transparent;outline:none}
.historyButton{width:27px;height:24px;display:inline-grid;place-items:center}
.historyArrow{position:relative;display:block;width:13px;height:8px;border:1.6px solid currentColor;border-left:0;border-bottom:0;border-radius:0 6px 0 0;margin:3px 0 0 2px}
.historyArrow::before{content:'';position:absolute;left:0;top:-4px;width:5px;height:5px;border-left:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(45deg)}
.historyArrow.forward{transform:scaleX(-1)}

.resumeSheet.songTypeface .sectionTitle .paperText,
.resumeSheet.songTypeface .experienceTitle .paperText,
.resumeSheet.songTypeface .profileValue.name,
.resumeSheet.songTypeface .paperText strong{font-weight:775;-webkit-text-stroke:.215px currentColor}
.materialTag{display:inline-block;margin-inline-start:5px;padding:0 6px;border-radius:999px;line-height:1.5;font-size:10px;font-weight:550;color:#3e3945;text-decoration:none;vertical-align:baseline}
.tag-pink{background:#f7dce6}.tag-mint{background:#d8eddf}.tag-blue{background:#dbeaf9}
.tag-lilac{background:#e9ddf5}.tag-yellow{background:#f8edc8}.tag-peach{background:#f8e0d0}
.tagFields{display:flex;align-items:center;gap:8px}
.tagFields input{flex:1;min-width:0}
.materialDrag{cursor:grab;color:#757581;font-size:13px;padding:1px 3px;user-select:none}
#library [data-material]:has(>.row>.materialDrag:hover),#library .draggingMaterial{
  outline:1px solid #b9b9c2;outline-offset:2px;border-radius:7px;background:#f2f2f5
}
#library .dropBefore{box-shadow:0 -2px #8c8c98}
#library .dropAfter{box-shadow:0 2px #8c8c98}

#library .materialDrag{height:7px;padding:0;cursor:grab}
#library [data-material]:has(>.materialDrag:hover){outline:1px solid #b9b9c2;outline-offset:2px;border-radius:7px;background:#f2f2f5}
.editableMaterialLabel{flex:1;min-width:0;overflow-wrap:anywhere}
.editableMaterialLabel .label{display:inline;padding-right:3px}
.editableMaterialLabel .materialEdit{display:flex}
.editableMaterialLabel .materialTag{border:0;padding:0 6px}
.tagAdd{display:inline-grid;place-items:center;width:16px;height:16px;margin-inline-start:5px;padding:0;border-radius:50%;border:1px solid #dddde4;background:#f3f3f5;color:#686870;font-size:13px;line-height:1;vertical-align:middle}
.tagAdd:hover{background:#e7e7eb}
.tagPalette{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 16px}
.tagColor{display:block;position:relative;cursor:pointer}
.tagColor input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.tagColor span{display:block;width:24px;height:24px;border-radius:50%;border:1px solid #0001}
.tagColor input:is(:checked,:focus-visible)+span{outline:1px solid #555;outline-offset:2px}

.editableMaterialLabel{padding:2px 3px;line-height:1.68}
.tagTextLine{white-space:pre-wrap;overflow-wrap:anywhere}
.tagBulletLine{font-size:13px}
.tagBulletLine::before{content:'• ';color:#75757d}
.exp .tagTextLine{font-weight:650}
.inlineMaterialText,.editableMaterialLabel>.materialDate{cursor:pointer}
.inlineMaterialText:hover{background:#efeff2;border-radius:2px}
.tagTail{white-space:nowrap;display:inline-block}
.tagAdd{position:relative;display:inline-grid;place-items:center;vertical-align:middle}
.tagAdd::before,.tagAdd::after{content:'';grid-area:1/1;background:currentColor;border-radius:1px}
.tagAdd::before{width:7px;height:1px}
.tagAdd::after{width:1px;height:7px}
.tagWrap{position:relative;display:inline-block;white-space:nowrap}
.tagRemove{position:absolute;right:-4px;top:-3px;display:grid;place-items:center;padding:0;width:13px;height:13px;border-radius:50%;background:#fff;border:1px solid #dedee4;font-size:10px;line-height:1;color:#555;opacity:0;pointer-events:none}
.tagWrap:hover .tagRemove,.tagWrap:focus-within .tagRemove{opacity:1;pointer-events:auto}

/* Justify wrapped resume bullets while preserving CJK punctuation rules. */
.resumeSheet.liveTypography .bullet .paperText{
  text-align:justify;
  text-align-last:start;
  text-justify:inter-character;
  line-break:strict;
  overflow-wrap:anywhere;
}

#library .materialCategory{background:transparent;border:0;box-shadow:none;padding:0;margin:0 0 19px}
#library .materialCategory>.branch{border-top:1px solid #dedee3;padding-top:8px}
#library .materialExperience,#library .standaloneMaterial{
  background:#fff;border:1px solid #e1e1e7;border-radius:9px;padding:4px 9px 7px;margin:0 0 8px
}
#library .materialExperience+.materialExperience{border:1px solid #e1e1e7;margin-top:0;padding-top:4px}
#library .standaloneMaterial .point{padding-bottom:0}
#library .basicCard{margin:0 0 19px}
.basicBody{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:clamp(9px,3vw,25px);align-items:start;max-width:570px;background:#fff;border:1px solid #e1e1e7;border-radius:9px;padding:10px}
.basicBody .basicGrid{padding:0}
.basicBody .basicRow>.basicFieldLabel,.basicBody .basicRow>.basicRemoveSlot{flex:none}
.basicRemoveSlot{width:20px;display:grid;place-items:center}
.basicRemoveSlot>.mini{padding:0 3px}
.basicBody .basicValue,.basicBody .basicRow input{max-width:100%}
.basicRow .emptyBasic{flex:1}
.basicPhotos{display:grid;justify-items:center;gap:5px;padding:4px 4px 0 0}
.photoStack{position:relative;display:grid;place-items:center;width:62px;height:78px;padding:0;background:#f3f3f5;border:1px solid #dedee5;border-radius:7px;color:#62626b;font-size:11px;isolation:isolate}
.stackedPhotos::before,.stackedPhotos::after{content:'';position:absolute;inset:0;background:#e4e4ea;border:1px solid #cfcfd8;border-radius:7px;z-index:-1}
.stackedPhotos::before{transform:translate(3px,-2px) rotate(5deg)}
.stackedPhotos::after{transform:translate(5px,-3px) rotate(9deg);z-index:-2}
.photoStackFace{position:absolute;inset:0;overflow:hidden;border-radius:6px;background:#f1f1f4}
.photoStackFace img{width:100%;height:100%;object-fit:contain}
.photoCount{position:absolute;right:-4px;bottom:-3px;min-width:17px;padding:1px 4px;border-radius:10px;background:#555;color:#fff;line-height:1.35}
.photoGallery{display:flex;flex-wrap:wrap;gap:12px;margin:8px 0 16px}
.photoGallery .photoItem{position:relative;padding:0;border:0}
.photoGallery .photoTile{position:relative;display:block;overflow:hidden;border-radius:7px;padding:0;background:#f1f1f4}
.photoGallery .photoTile img{display:block;width:74px;height:94px;object-fit:contain}
.photoGallery .photoItem>[data-action="remove-photo"]{position:absolute;top:2px;right:2px;background:#ffffffdb}

/* Keep library cards aligned and give the text equal top and bottom space. */
#library .materialCategory>.cat>.label,#library .basicCard>.cat>.label{font-size:18px}
#library .materialCategory>.branch{padding:10px 0 0}
#library .materialExperience,#library .materialExperience+.materialExperience,#library .standaloneMaterial{
  position:relative;margin:0 0 13px;padding:10px 12px
}
#library .materialExperience>.blockAdd,#library .materialExperience>.materialDrag,
#library .standaloneMaterial>.materialDrag{position:absolute;inset:0 0 auto;height:9px}
#library .materialExperience>.exp,#library .standaloneMaterial>.point{padding-block:2px}
#library .basicBody{width:100%;max-width:none;padding:10px 12px}
#library .basicPhotos{padding-top:0}
#library .photoStack{width:75px;height:95px}

#library .basicBody{padding-block:25px;align-items:center}
#library .basicPhotos{align-self:center;position:relative;padding:0 4px 0 0}
#library .basicPhotos .hasCover{width:auto;height:auto;background:transparent;border:0}
#library .photoStackFace{position:relative;display:block;background:transparent;border-radius:0}
#library .photoStackFace img{display:block;width:auto;height:auto;max-width:88px;max-height:95px;object-fit:contain}
#library .basicPhotos>button[data-action="add-photo"]:not(.photoStack){position:absolute;top:100%;margin-top:4px}
#library .materialExperience,#library .materialExperience+.materialExperience,#library .standaloneMaterial{margin-bottom:26px}

#library .materialExperience,#library .materialExperience+.materialExperience{padding-block:25px}
#library .materialExperience>.blockAdd,#library .materialExperience>.materialDrag{height:24px}
#library .materialExperience,#library .materialExperience+.materialExperience,#library .standaloneMaterial{margin-bottom:19.5px}
#library .basicBody{padding-inline:clamp(16px,3vw,29px)}
#library .basicBody .basicGrid{width:100%;max-width:330px}
#library .basicPhotos{transform:translate(-4px,-4px)}

#library .basicBody,#library .materialExperience,#library .materialExperience+.materialExperience,#library .standaloneMaterial{
  padding-inline:clamp(17px,3vw,29px);
  box-shadow:0 2px 7px #25253a10
}
#library .basicBody{grid-template-columns:minmax(0,2fr) minmax(80px,1fr);gap:clamp(8px,2vw,24px)}
#library .basicBody .basicGrid{max-width:600px}
#library .basicExtraRow>.basicFieldLabel{display:none}
#library .basicPhotos{transform:none;justify-self:center;justify-items:center;min-width:0;padding:0}
#library .basicPhotos .photoStack{width:clamp(57px,7vw,86px);height:auto;aspect-ratio:1;border-radius:11px}
#library .photoStackFace{position:absolute;inset:0;border-radius:11px}
#library .photoStackFace img{width:100%;height:100%;max-width:none;max-height:none;object-fit:cover}
#library .stackedPhotos::before,#library .stackedPhotos::after{border-radius:11px}

#library .basicBody .basicGrid{transform:translateY(5px)}
#library .basicPhotos{width:100%;min-width:0}
#library .basicPhotos>button[data-action="add-photo"]{position:static;margin:0}
.basicPhotoStrip{display:flex;flex-wrap:wrap;gap:5px;justify-content:center;max-width:100%}
.basicPhotoThumb{position:relative;overflow:hidden;padding:0;width:46px;height:56px;border:1px solid #e0e0e5;border-radius:5px;background:#fff}
.basicPhotoThumb img{width:100%;height:100%;display:block;object-fit:cover}
.basicPhotoThumb .photoBadge{font-size:9px}

.basicPhotoThumb{width:60px;height:73px}
.basicPhotoItem{position:relative}
.basicPhotoItem>[data-action="remove-photo"]{position:absolute;top:2px;right:2px;background:#fffE;padding:0 4px;opacity:0}
.basicPhotoItem:hover>[data-action="remove-photo"],.basicPhotoItem:focus-within>[data-action="remove-photo"]{opacity:1}
