.my-works{margin:24px 0;padding:18px;border:1px solid #eadcf4;border-radius:16px;background:#fbf6ff;color:#392849}
.my-works h2{margin:0 0 5px;font-size:19px}
.my-works p,.my-works small{color:#655673;font-size:12px}
.my-works-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));gap:10px;margin-top:14px;font-size:13px}
.my-works article{min-width:0;display:grid;align-content:start;gap:8px;background:white;border-radius:10px;padding:12px}
.my-works img,.my-works video{width:100%;max-height:230px;object-fit:contain;border-radius:7px}
.my-works button,.my-works a{color:#7137a8;border:1px solid #dfcbea;border-radius:8px;background:#fbf6ff;padding:8px;text-align:center;font-size:12px}
.image-role-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0}
.image-role-slots[hidden]{display:none}
.image-role-slots button{padding:10px 4px;min-height:48px;border:1px dashed #b58bd6;border-radius:9px;background:#f9f1ff;color:#552975;font-size:12px}
.image-role-slots button[aria-pressed=true]{border-style:solid;background:#ead7fb}
.image-photo-consent{display:block;font-size:12px;line-height:1.7;margin:15px 0;color:#695276}
.image-photo-consent input{width:auto!important;display:inline!important;margin-right:6px}
.image-quota{font-size:12px;color:#8157a8}
.hair-before{width:auto!important;max-width:100%;max-height:260px;object-fit:contain;display:block;margin:auto}
.hair-before[hidden],.hair-presets[hidden]{display:none}
.account-works .account-refresh{margin:10px}

.generation-history{width:min(760px,92vw);max-height:85dvh;overflow:auto;margin:auto;border:1px solid #dfe5b5;border-radius:22px;padding:24px;background:#fffef1;color:#52622e;box-sizing:border-box}.generation-history::backdrop{background:#15220c88}.generation-history header{display:flex;align-items:center;justify-content:space-between;gap:15px}.generation-history header button{font-size:28px;background:transparent}.generation-history>p{font-size:13px;line-height:1.8;margin:14px 0}.generation-history .my-works{margin:16px 0}.generation-history .my-works-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.generation-history article{min-width:0;overflow-wrap:anywhere}.generation-history video,.generation-history img{max-width:100%;max-height:260px}.video-cost{gap:12px}.video-cost>div{flex:1;min-width:190px}.video-cost small{line-height:1.8}#videoEstimate{font-size:17px;font-weight:700;line-height:1.7}.video-heading .video-tool{margin-top:10px}

.work-progress{width:100%;padding:12px 0;box-sizing:border-box}.work-progress>div{display:flex;justify-content:space-between;gap:12px;margin-bottom:9px;font-size:14px}.work-progress progress{display:block;width:100%;height:14px;border:0;border-radius:20px;overflow:hidden;accent-color:#91aa35}.work-progress progress::-webkit-progress-bar{background:#e9eccf;border-radius:20px}.work-progress progress::-webkit-progress-value{background:#91aa35;border-radius:20px}.work-progress[data-state=failed]{color:#b54343}.work-progress[data-state=failed] progress::-webkit-progress-bar{background:#f6d7d7}.work-progress[data-state=review],.work-progress[data-state=interrupted]{color:#9a711e}.work-progress[data-state=review] progress::-webkit-progress-bar{background:#f4e6ba}.work-progress progress:indeterminate{background:repeating-linear-gradient(100deg,#e9eccf 0 20px,#aec65b 20px 40px);animation:work-progress-flow 1s linear infinite}.work-progress progress:indeterminate::-webkit-progress-bar{background:transparent}@keyframes work-progress-flow{to{background-position:80px 0}}@media(prefers-reduced-motion:reduce){.work-progress progress:indeterminate{animation:none}}

#imageInputPanel>.work-progress-host,#imageInputPanel>div:has(>.work-progress),.video-composer>div:has(>.work-progress){padding:0 20px;box-sizing:border-box}.work-progress{min-width:0}.video-composer>div:has(>.work-progress){background:#f8fae9;border-bottom:1px solid #e4e8cc}
