:root{--blue:#002fa7;--yellow:#ffe900;--ink:#18345f;--muted:#647792;--line:#dbe4f5}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:#f3f6fc;color:var(--ink);font:15px/1.65 -apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.58}a{color:var(--blue)}button,input,a,summary{outline-offset:4px}button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--yellow)}.brand-header{background:var(--blue);border-bottom:5px solid var(--yellow);height:88px}.brand-header>a{display:flex;align-items:center;gap:23px;max-width:960px;height:100%;margin:auto;padding:0 28px;color:#fff;text-decoration:none}.brand-header img{width:140px;height:57px;object-fit:contain}.brand-header span{font-size:18px;font-weight:600;border-left:1px solid #ffffff55;padding-left:23px}.employee-shell{max-width:680px;margin:36px auto;padding:0 22px}.card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:34px;box-shadow:0 12px 38px #002fa707}.section-intro{margin-bottom:25px}.eyebrow{font-size:10px;color:var(--blue);font-weight:700;letter-spacing:2px}h1{margin:7px 0 0;font-size:28px;line-height:1.4;color:#102e67}h2{margin:0;font-size:19px}.section-intro p{margin:10px 0 0;color:var(--muted);font-size:14px}.photo-picker{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:180px;padding:24px 18px;border:1.5px dashed #a6bce8;background:#f7f9ff;border-radius:14px;cursor:pointer;overflow:hidden}.photo-picker:hover{background:#eff4ff}.photo-picker input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.photo-picker img{width:84px;height:104px;border-radius:8px;object-fit:cover;margin-bottom:12px}.photo-plus{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:var(--yellow);color:var(--blue);font-size:29px;margin-bottom:12px}.photo-picker.has-photo .photo-plus{display:none}.photo-picker strong{font-size:15px;color:var(--blue)}.photo-picker>span:last-child{font-size:12px;color:var(--muted);margin-top:5px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin-top:25px}.field{display:block;min-width:0}.field>span{display:block;font-size:13px;font-weight:600;margin-bottom:8px}.field input{width:100%;min-height:47px;padding:11px 13px;border:1px solid #ccd8ed;border-radius:9px;background:#fff;color:var(--ink)}.field input::placeholder{color:#93a0b7;font-size:13px}.field-wide{grid-column:1/-1}.template-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:23px 0}.template-options label{position:relative;cursor:pointer}.template-options input{position:absolute;opacity:0}.template-options span{display:block;border:1px solid #d5dff0;border-radius:9px;padding:11px;text-align:center;color:#687e9f}.template-options input:checked+span{background:#edf3ff;border:2px solid var(--blue);padding:10px;color:var(--blue);font-weight:700;box-shadow:inset 0 -4px var(--template-stripe,var(--blue))}.template-options input:focus-visible+span{outline:3px solid var(--yellow);outline-offset:3px}.photo-consent{display:flex;align-items:flex-start;gap:9px;color:#65758e;font-size:12px;line-height:1.8}.photo-consent input{width:18px;height:18px;flex:none;margin:2px 0 0;accent-color:var(--blue)}.employee-entry{margin:19px 0;color:#7a88a0;font-size:12px}.employee-entry summary{cursor:pointer}.employee-entry .field{margin-top:12px}.primary-button,.secondary-button{display:flex;justify-content:center;align-items:center;border-radius:10px;min-height:49px;font-weight:700;font-size:15px;padding:11px 18px}.primary-button{width:100%;background:var(--yellow);color:var(--blue);border:0;box-shadow:0 3px 0 #e7d300}.secondary-button{color:var(--blue);background:#fff;border:1px solid #b3c6ec}.form-message{font-size:13px;line-height:1.8;color:#9b532c;margin:14px 0}.form-message:empty{display:none}.work-card{text-align:center;padding:35px 28px 31px;overflow:hidden}.work-card h1{font-size:25px}.wait-estimate{margin:13px 0;color:#627594;font-size:16px}.wait-estimate strong{color:var(--blue)}.work-note{min-height:47px;max-width:440px;margin:15px auto 23px;font-size:14px;line-height:1.9;color:#687e9e}.close-hint{color:#6d80a0;font-size:13px;margin:17px 0 0}.work-card>.secondary-button{margin:20px auto 0}.result-card{text-align:center;padding:26px}.result-card h1{font-size:23px;margin:0 0 22px}.result-frame{max-width:520px;margin:auto;border:5px solid #fff;box-shadow:0 6px 30px #002fa719;background:#f0f4fb}canvas{display:block;width:100%;height:auto;aspect-ratio:1}.result-card .primary-button{margin-top:25px}.result-note{font-size:12px;color:var(--muted);margin:15px 0 0}footer{text-align:center;color:#9aa7bd;font-size:11px;margin:36px 0}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,15px);opacity:0;pointer-events:none;transition:.2s;background:#002fa7f5;color:#fff;border-radius:11px;padding:14px 20px;font-size:13px;text-align:center;max-width:90vw;z-index:20}.toast.visible{opacity:1;transform:translate(-50%,0)}.sr-only{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}dialog{width:90vw;max-width:600px;border:0;border-radius:18px;padding:28px 20px 20px;color:var(--ink)}dialog::backdrop{background:#102e6770}dialog h2{font-size:18px;margin:0 0 18px}dialog img{display:block;width:100%;height:auto}.dialog-close{position:absolute;right:10px;top:6px;border:0;background:none;font-size:28px;color:#667c9e}
@media(max-width:600px){.brand-header{height:76px}.brand-header>a{padding:0 20px;gap:16px}.brand-header img{width:122px;height:50px}.brand-header span{padding-left:16px;font-size:16px}.employee-shell{margin:22px auto;padding:0 15px}.card{padding:24px 21px;border-radius:15px}h1{font-size:25px}.section-intro p{font-size:13px}.form-grid{gap:14px}.field input{font-size:16px;min-height:49px}.photo-picker{min-height:170px}.work-card{padding:25px 18px}.work-card h1{font-size:23px}.work-note{font-size:13px}.result-card{padding:20px 15px}.primary-button,.secondary-button{min-height:51px;font-size:16px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}.toast{transition:none}}

.back-to-make{margin-bottom:18px}.recent-order{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 15px;margin-bottom:20px;border:1px solid #dbe4f5;border-radius:10px;background:#f7f9ff}.recent-order p{margin:0;color:#647792;font-size:13px}.recent-order .secondary-button{flex:none;min-height:39px;padding:8px 12px;font-size:13px}@media(max-width:420px){.recent-order{align-items:stretch;flex-direction:column;gap:9px}.recent-order .secondary-button{align-self:flex-start}}

/* One native submit button: fixed on mobile, enabled only after form validation. */
.compose-bar{margin-top:20px}.compose-hint{font-size:12px;line-height:1.7;color:#6b7a91;margin:0 0 9px}.compose-bar .primary-button:disabled{background:#e3e7ee;color:#8a96a7;border:1px solid #d5dce6;box-shadow:none;opacity:1;cursor:not-allowed}.compose-bar .primary-button:enabled{background:var(--yellow);color:var(--blue);box-shadow:0 3px 0 #e7d300}.field input,.photo-consent,.employee-entry{scroll-margin-bottom:170px}
@media(max-width:600px){
 body:has(#make-card:not([hidden])) .employee-shell{padding-bottom:calc(132px + env(safe-area-inset-bottom,0px))}
 .compose-bar{position:fixed;left:0;right:0;bottom:var(--keyboard-inset,0px);z-index:12;margin:0;padding:11px max(15px,env(safe-area-inset-right,0px)) calc(12px + env(safe-area-inset-bottom,0px)) max(15px,env(safe-area-inset-left,0px));background:rgba(255,255,255,.96);border-top:1px solid #dbe4f5;box-shadow:0 -5px 24px #16366b0c;backdrop-filter:blur(12px)}
 .compose-hint{margin:0 0 8px;font-size:12px;min-height:20px;line-height:1.6}
 .compose-bar .primary-button{min-height:51px;margin:0}
 body:has(#make-card:not([hidden])) .toast{bottom:calc(127px + var(--keyboard-inset,0px) + env(safe-area-inset-bottom,0px))}
}

/* The closed-period label remains readable on narrow App screens. */
.compose-bar .primary-button{white-space:normal;overflow-wrap:anywhere;word-break:normal;text-align:center;line-height:1.5;height:auto;min-width:0}
.compose-bar .primary-button.production-paused{min-height:64px;padding:11px 16px;color:#56647a}
@media(max-width:360px){.compose-bar .primary-button.production-paused{font-size:14px;min-height:66px}}

/* Local photo check and the final explicit information confirmation. */
.photo-check{display:flex;align-items:center;gap:12px;margin:12px 0 0;padding:11px 13px;border:1px solid #dbe4f5;border-radius:9px;background:#f3f6fc;color:#536c93;font-size:12px;line-height:1.7}.photo-check p{margin:0;flex:1;min-width:0}.photo-check[data-state="valid"]{background:#edf7f1;border-color:#c6e4d1;color:#286346}.photo-check[data-state="no-face"],.photo-check[data-state="multiple-faces"],.photo-check[data-state="too-small"],.photo-check[data-state="unavailable"]{background:#fff5ed;border-color:#ecd4bd;color:#92582e}.photo-check .secondary-button{min-height:42px;flex:none;padding:8px 11px;font-size:12px}
.information-dialog{padding:27px;max-width:560px;max-height:calc(100dvh - 36px);overflow:auto}.information-dialog h2{font-size:22px;line-height:1.5;margin:0 0 8px}.information-dialog>p{margin:0 0 20px;font-size:13px;color:var(--muted)}.confirmation-summary{display:flex;align-items:flex-start;gap:21px;padding:18px;border:1px solid var(--line);border-radius:11px;background:#f7f9ff}.confirmation-summary img{width:110px;height:142px;flex:none;object-fit:contain;background:#e9eef7;border-radius:7px}.confirmation-summary dl{min-width:0;flex:1;margin:0}.confirmation-summary dl>div+div{margin-top:12px}.confirmation-summary dt{font-size:11px;color:var(--muted)}.confirmation-summary dd{margin:2px 0 0;font-size:15px;font-weight:600;overflow-wrap:anywhere}.confirmation-actions{display:flex;gap:11px;margin-top:24px}.confirmation-actions .secondary-button{flex:0 0 auto}.confirmation-actions .primary-button{flex:1;min-width:0;white-space:normal;line-height:1.5}.confirmation-actions button:disabled{cursor:not-allowed;box-shadow:none;background:#e3e7ee;color:#8a96a7;opacity:1}
@media(max-width:600px){.information-dialog{width:calc(100vw - 28px);max-height:calc(100dvh - 28px);padding:22px 18px}.information-dialog h2{font-size:21px}.confirmation-summary{gap:15px;padding:14px}.confirmation-summary img{width:90px;height:120px}.confirmation-summary dd{font-size:15px}.confirmation-actions{flex-direction:column-reverse;gap:11px}.confirmation-actions .primary-button,.confirmation-actions .secondary-button{width:100%;min-height:50px}.photo-check{align-items:flex-start;flex-wrap:wrap}}

.field>.role-input-wrap{position:relative;display:block;font-size:inherit;font-weight:400;margin:0}
.role-ghost{position:absolute;inset:1px;display:flex;align-items:center;padding-inline:13px;overflow:hidden;pointer-events:none;white-space:pre}
.role-ghost-prefix{flex:none;visibility:hidden}
.role-ghost-suffix{align-self:stretch;display:block;min-width:0;overflow:hidden;padding:0;border:0;background:none;color:#637692;text-align:start;text-overflow:ellipsis;white-space:pre;pointer-events:auto;touch-action:manipulation}
.role-ghost-suffix:hover{color:#516b91;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px}
@media(max-width:600px){.role-ghost{font-size:16px}}

/* Keep the final-attempt reminder visible above the explicit final action. */
.information-dialog>.attempt-notice{margin:20px 0 0;padding:14px 16px;border:1px solid #e6b242;border-radius:10px;background:#fff6df;color:#805000;font-size:15px;font-weight:700;line-height:1.7}.information-dialog>.attempt-notice[hidden]{display:none}

/* Estimated progress stays within the established blue/yellow interface. */
.work-progress-area{max-width:350px;margin:4px auto 24px}.work-percent{font-size:46px;font-weight:700;line-height:1.2;font-variant-numeric:tabular-nums;letter-spacing:-1.5px;color:var(--blue);margin:0 0 16px}.work-progress{height:7px;border-radius:10px;background:#e8eef9;overflow:hidden}.work-progress>span{display:block;width:0;height:100%;background:var(--blue);border-radius:inherit;transition:width .25s linear}.progress-explanation{font-size:11px;line-height:1.6;color:var(--muted);margin:10px 0 0}

/* An unresolved browser receipt is recoverable without discarding the draft. */
.pending-order{margin:0 0 23px;padding:16px;border:1px solid #c6d6f4;border-radius:12px;background:#f3f7ff}.pending-order>strong{display:block;color:var(--blue);font-size:15px}.pending-order>p{margin:7px 0 14px;color:#5b7091;font-size:13px;line-height:1.8}.pending-order-actions{display:flex;gap:10px}.pending-order-actions .primary-button,.pending-order-actions .secondary-button{flex:1;min-width:0;min-height:44px;padding:10px;font-size:13px;box-shadow:none}.pending-order-actions button:disabled{cursor:not-allowed}@media(max-width:420px){.pending-order{padding:14px}.pending-order-actions{gap:8px}.pending-order-actions .primary-button,.pending-order-actions .secondary-button{min-height:46px;font-size:13px;padding:9px 6px}}

.recovery-notice{margin:0 0 17px;padding:12px 15px;border:1px solid #c6d6f4;border-radius:10px;background:#edf3ff;color:var(--blue);font-size:14px;line-height:1.8}

/* Compact position guide: state only; no photo or employee-value preview. */
.avatar-home .employee-shell{max-width:740px}.avatar-home .brand-header>a{max-width:960px}.avatar-home .section-intro{margin-bottom:22px}.avatar-home .section-intro p{font-size:14px;line-height:1.8}
/* The sample switcher is a preview. The form below owns the template selection. */
.position-guide{display:grid;grid-template:"sample copy" 1fr "sample modes" 1fr / 133px minmax(0,1fr);align-items:center;gap:12px 24px;min-width:0;margin:0 0 23px;padding:14px 20px;border:1px solid #dce5f6;border-radius:16px;background:linear-gradient(112deg,#edf3ff 0%,#f5f8ff 48%,#fbfcff 100%);box-shadow:0 4px 14px #102e6709}
.position-scene{grid-area:sample;width:100%;aspect-ratio:1;border-radius:9px;background:#eaf0fc;box-shadow:0 5px 12px #102e6729}
.position-example{display:block;width:100%;height:auto;border-radius:inherit}
.position-guide-copy{grid-area:copy;align-self:end;min-width:0}
.position-guide-copy h2{color:#102e67;font-size:18px;line-height:1.4;font-weight:700}
.position-guide-copy p{margin:4px 0 0;line-height:1.5;color:#536b8d;font-size:12px}
.position-guide-modes{grid-area:modes;align-self:start;justify-self:start;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;width:max-content;max-width:100%;padding:3px;border:1px solid #d9e3f6;border-radius:10px;background:#e9effa}
.position-guide-modes button{min-width:0;min-height:34px;padding:4px 11px;border:1px solid transparent;border-radius:7px;background:transparent;color:#536b8d;font-size:12px;font-weight:650;line-height:1.35;white-space:nowrap}
.position-guide-modes button[aria-pressed=true]{border-color:#d5e0f5;background:#fff;color:#002fa7;box-shadow:0 1px 3px #102e6714}
.position-guide-modes button:hover{color:#002fa7}
.position-field-popover{position:fixed;z-index:16;top:var(--position-popup-top,0px);left:var(--position-popup-left,0px);display:grid;grid-template-columns:76px minmax(0,1fr);align-items:center;gap:12px;width:min(232px,var(--position-popup-max-width,calc(100vw - 16px)));padding:10px;border:1px solid #cddbf3;border-radius:12px;background:#f8faff;box-shadow:0 10px 30px #102e6726;pointer-events:none}
.position-field-popover::before{content:'';position:absolute;left:var(--position-popup-arrow,24px);width:8px;height:8px;border:solid #cddbf3;border-width:1px 0 0 1px;background:#f8faff;transform:translateX(-50%) rotate(45deg)}
.position-field-popover[data-side=below]::before{top:-5px}
.position-field-popover[data-side=above]::before{bottom:-5px;transform:translateX(-50%) rotate(225deg)}
.position-field-popover[data-side=left]::before{left:auto;right:-5px;top:var(--position-popup-arrow);transform:translateY(-50%) rotate(135deg)}
.position-field-popover[data-side=right]::before{left:-5px;top:var(--position-popup-arrow);transform:translateY(-50%) rotate(-45deg)}
.position-popup-scene{position:relative;aspect-ratio:1;border-radius:6px;overflow:hidden;background:#eaf0fc}
.position-popup-scene>img{display:none;width:100%;height:auto;aspect-ratio:1;object-fit:contain}
.position-field-popover[data-template=male] [data-template-sample=male],.position-field-popover[data-template=female] [data-template-sample=female]{display:block}
.position-region-frame{position:absolute;inset:var(--frame-inset,0);border:1.5px solid #ffe900;border-radius:3px;box-shadow:0 0 0 1px #00265c66}
.position-field-popover[data-field=name]{--frame-inset:21.8% 64.2% 65.8% 2.7%}
.position-field-popover[data-field=store]{--frame-inset:34.7% 78.5% 58.8% 2.5%}
.position-field-popover[data-field=role]{--frame-inset:34.7% 55.5% 58.8% 25.5%}
.position-field-popover[data-field=photo]{--frame-inset:7% 4.5% 12% 47.5%}
.position-field-popover[data-field=photo][data-template=male]{--frame-inset:5.5% 4.5% 11.2% 45.5%}
.position-popup-copy{display:grid;align-content:center;justify-items:start;min-width:0;gap:5px}
.position-popup-kicker{font-size:10px;font-weight:700;line-height:1.25;color:#536b8d}
.position-detail{display:none;justify-items:start;gap:4px;max-width:100%;min-width:0}
.position-field-popover[data-field=name] [data-position-field=name],.position-field-popover[data-field=store] [data-position-field=store],.position-field-popover[data-field=role] [data-position-field=role],.position-field-popover[data-field=photo] [data-position-field=photo]{display:grid}
.position-detail-label{display:flex;align-items:baseline;gap:5px;font-size:12px;font-weight:700;line-height:1.3;color:#102e67;white-space:nowrap}
.position-detail-label>span{font-weight:500;font-size:10px;color:#536b8d}
.field>.role-field-label{display:block;margin-bottom:8px;font-size:13px;font-weight:600;white-space:nowrap}
.role-label-note{margin-inline-start:5px;color:#536b8d;font-size:11px;font-weight:500}
.position-detail-window{display:block;width:118px;max-width:100%;height:38px;border-radius:5px;background-color:#002fa7;background-position:center;background-size:contain;background-repeat:no-repeat;box-shadow:0 2px 6px #002fa71a}
.position-detail-name{background-image:url("assets/guide-avatar-detail-name-general-v1.webp")}
.position-detail-store{background-image:url("assets/guide-avatar-detail-department-general-v1.webp")}
.position-detail-role{background-image:url("assets/guide-avatar-detail-role-general-v1.webp")}
.position-field-popover[data-template=male] .position-detail-name{background-image:url("assets/guide-avatar-detail-name-tie-v1.webp")}
.position-field-popover[data-template=male] .position-detail-store{background-image:url("assets/guide-avatar-detail-department-tie-v1.webp")}
.position-field-popover[data-template=male] .position-detail-role{background-image:url("assets/guide-avatar-detail-role-tie-v1.webp")}
.position-field-popover[data-field=photo]{width:min(190px,var(--position-popup-max-width,calc(100vw - 16px)))}
.position-detail-portrait .position-detail-label{font-size:15px}
.position-portrait-note{font-size:11px;line-height:1.4;color:#536b8d}
.position-field-popover[data-compact=true]{grid-template-columns:56px minmax(0,1fr);gap:8px;width:min(199px,var(--position-popup-max-width,calc(100vw - 16px)));padding:7px}
.position-field-popover[data-compact=true] .position-detail-window{height:28px}
.position-field-popover[data-compact=true][data-field=photo]{width:min(154px,var(--position-popup-max-width,calc(100vw - 16px)))}
.position-field-popover[data-field=template]{display:block;width:min(154px,var(--position-popup-max-width,calc(100vw - 16px)));padding:4px}
.position-field-popover[data-field=template][data-compact=true]{width:min(122px,var(--position-popup-max-width,calc(100vw - 16px)))}
.position-field-popover[data-field=template] .position-region-frame,.position-field-popover[data-field=template] .position-popup-copy{display:none}
.position-field-popover[data-field=template] .position-popup-scene{border-radius:7px}
.template-options input[value=male]+span{--template-stripe:#153572}
.template-options input[value=female]+span{--template-stripe:#963f70}
@media(prefers-reduced-motion:no-preference){.position-field-popover:not([hidden]){animation:position-popup-reveal .13s ease-out}@keyframes position-popup-reveal{from{opacity:.55}to{opacity:1}}}

.make-form-panel{min-width:0}.avatar-home .photo-picker{min-height:157px}.avatar-home .photo-picker:focus-within{outline:3px solid #416fcd;outline-offset:3px;background:#edf3ff}.avatar-home .photo-picker.has-photo{min-height:175px}.avatar-home .field input:focus-visible{outline:3px solid #416fcd;outline-offset:2px}.avatar-home .template-options input:focus-visible+span{outline-color:#416fcd}.avatar-home .photo-consent{font-size:13px;min-height:44px}.avatar-home .photo-consent input{width:20px;height:20px;margin-top:2px}.template-label{margin:21px 0 9px;font-size:13px;font-weight:600}.avatar-home .template-options{margin:0 0 22px}.avatar-home .form-grid{margin-top:22px}.avatar-home .primary-button:hover:enabled{background:#f3de00}.avatar-home .secondary-button:hover:enabled{background:#f0f5ff;border-color:#708fc8}.avatar-home button:focus-visible,.avatar-home a:focus-visible{outline:3px solid #416fcd;outline-offset:3px}.avatar-home .dialog-close{width:44px;height:44px;display:grid;place-items:center;line-height:1;border-radius:8px}.avatar-home .work-card,.avatar-home .result-card{max-width:680px;margin-inline:auto}.legacy-receipt-ui,#query-card{display:none!important}
.avatar-history{margin-top:26px;min-width:0}.history-heading{display:flex;justify-content:space-between;align-items:center;gap:22px}.history-heading h2{margin:4px 0 0;font-size:24px;line-height:1.4}.history-heading p{margin:8px 0 0;font-size:13px;color:var(--muted);line-height:1.8}.history-status{font-size:13px;color:var(--muted);line-height:1.7;margin:17px 0}.history-status:empty{display:none}
.avatar-history-list{list-style:none;display:grid;gap:12px;margin:22px 0 0;padding:0}.avatar-history-list:empty{margin:0}.avatar-history-item{display:flex;align-items:center;gap:20px;min-width:0;padding:17px;border:1px solid var(--line);border-radius:12px;background:#fff}.history-thumb{display:block;flex:none;width:100px;height:100px;border-radius:9px;object-fit:cover;border:1px solid #e2e9f4;background:#eef3fb}.history-thumb:not(img){display:grid;place-items:center;color:#89a0c7}.history-thumb svg{width:36px;height:36px}.history-details{min-width:0;flex:1}.history-name{font-size:17px;line-height:1.5;font-weight:700;margin:0;overflow-wrap:anywhere}.history-meta{font-size:13px;color:#627593;line-height:1.7;margin:5px 0 0;overflow-wrap:anywhere}.history-time{display:block;color:#7c8aa2;font-size:12px;line-height:1.7;margin:6px 0 0}.history-state{display:inline-flex;align-items:center;gap:5px;margin:9px 0 0;padding:3px 9px;border-radius:6px;font-size:11px;line-height:1.7;background:#edf3ff;color:#4b6ca4}.history-state[data-state="completed"]{background:#edf7f1;color:#286346}.history-state[data-state="failed"]{background:#fff3e8;color:#955b2e}.history-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:9px;flex:0 0 auto;max-width:220px}.history-actions .primary-button,.history-actions .secondary-button{width:auto;min-width:86px;min-height:44px;font-size:13px;padding:9px 14px}.history-actions button:disabled{cursor:not-allowed;opacity:1;background:#f1f4f8;color:#94a1b5;border:1px solid #dfe5ed;box-shadow:none}
.history-empty{margin:24px 0 0;padding:29px 20px;text-align:center;background:#f6f8fd;border:1px dashed #cfdcf0;border-radius:12px}.history-empty svg{display:block;width:56px;height:56px;margin:auto;color:#8ba1c7}.history-empty h3{font-size:15px;line-height:1.7;margin:12px 0 6px}.history-empty p{margin:0;color:var(--muted);font-size:13px;line-height:1.8}.history-error{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:22px;padding:17px;background:#fff7ee;border:1px solid #ecd4bd;border-radius:10px}.history-error p{margin:0;color:#92582e;font-size:13px;line-height:1.8}.history-error .secondary-button{font-size:13px;min-height:44px;flex:none;padding:9px 13px}.history-load-more{margin:22px auto 0;min-height:46px;font-size:13px;min-width:170px}.history-loading{display:grid;gap:12px;margin-top:22px}.history-skeleton{height:112px;border:1px solid #e4eaf4;border-radius:12px;background:linear-gradient(90deg,#f0f3f9,#f7f9fd,#f0f3f9);background-size:200% 100%;animation:history-loading 1.7s ease-in-out infinite}@keyframes history-loading{to{background-position:-200% 0}}

@media(max-width:900px){.avatar-history-item{gap:15px}.history-actions{max-width:180px}}
@media(max-width:760px){.history-actions{max-width:160px}.avatar-history-item{flex-wrap:wrap;gap:13px}.history-thumb{width:86px;height:86px}.history-actions{width:100%;max-width:none;padding-left:99px;justify-content:flex-start}.history-actions .primary-button,.history-actions .secondary-button{flex:1;min-width:0;max-width:180px}}
@media(max-width:600px){.avatar-home .employee-shell{margin:20px auto}.avatar-home .make-card{padding:23px 20px}.avatar-home h1{font-size:25px}.avatar-home .section-intro p{font-size:13px}.position-guide{grid-template-columns:min(42%,118px) minmax(0,1fr);gap:10px 14px;padding:10px 12px;margin-bottom:18px}.position-guide-copy h2{font-size:17px}.position-guide-modes button{min-height:44px;padding-inline:7px}.avatar-history{margin-top:20px;padding:22px 19px}.history-heading h2{font-size:22px}.history-heading p{font-size:12px}.avatar-history-item{padding:13px}.history-name{font-size:16px}.history-meta{font-size:12px}.history-time{font-size:11px}.history-thumb{width:78px;height:78px}.history-actions{padding-left:91px}.history-actions .primary-button,.history-actions .secondary-button{min-height:44px;font-size:13px;padding:9px 10px}.history-empty{padding:23px 13px}.history-empty p{font-size:12px}.history-error{flex-direction:column;align-items:stretch}.history-error .secondary-button{align-self:flex-start}}
@media(max-width:420px){.position-guide{grid-template:"sample copy" auto "modes modes" auto / min(38%,106px) minmax(0,1fr);gap:10px 14px}.position-guide-copy{align-self:center}.position-guide-modes{justify-self:stretch;width:auto}}
@media(max-width:360px){.avatar-home .make-card{padding-inline:16px}.position-guide{padding-inline:10px}.position-guide-copy h2{font-size:16px}.history-actions{padding-left:0}.history-thumb{width:70px;height:70px}.avatar-history-item{gap:11px}.history-heading p{font-size:12px}}
.history-thumb>img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}.history-thumb:not(img){font-size:12px;text-align:center;line-height:1.5;overflow:hidden}
@media(prefers-reduced-motion:reduce){.work-progress>span{transition:none}.history-skeleton{animation:none}}

/* Optional single-screen reference; the form and draft remain in place. */
.make-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.make-title-row h1{min-width:0}.photo-guide-entry{display:inline-flex;align-items:center;justify-content:center;flex:none;min-height:44px;padding:8px 12px;border:1px solid #cddbf4;border-radius:9px;background:#f6f8fd;font-size:13px;font-weight:600;text-decoration:none;white-space:nowrap}.photo-guide-entry:hover{background:#edf3ff;border-color:#708fc8}.photo-guide-dialog{width:fit-content;margin:auto;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);max-height:calc(100svh - 24px);padding:8px 12px 12px;border:1px solid var(--line);border-radius:15px;overflow:auto;overscroll-behavior:contain}.photo-guide-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:44px;margin-bottom:4px}.photo-guide-toolbar h2{font-size:15px;margin:0}.photo-guide-toolbar form{margin:0}.photo-guide-close{min-width:52px;min-height:44px;padding:8px;border:0;border-radius:8px;background:#f1f5fd;color:var(--blue);font-size:13px;font-weight:600}.photo-guide-close:hover{background:#e8effb}.photo-guide-poster{display:block;width:min(440px,calc(100vw - 50px),calc((100vh - 94px)*.75));width:min(440px,calc(100vw - 50px),calc((100svh - 94px)*.75));height:auto;margin-inline:auto;object-fit:contain}.photo-guide-entry:focus-visible,.photo-guide-close:focus-visible{outline:3px solid #416fcd;outline-offset:2px}
@media(max-width:600px){.make-title-row{gap:8px}.avatar-home .make-title-row h1{font-size:clamp(18px,5.15vw,25px)}.photo-guide-entry{padding:7px 9px;font-size:12px}.photo-guide-dialog{padding:6px 8px 10px}.photo-guide-poster{width:min(440px,calc(100vw - 42px),calc((100vh - 90px)*.75));width:min(440px,calc(100vw - 42px),calc((100svh - 90px)*.75))}}
