/* Hero creator (VG-356): three panels on the map workshop palette, concept preview at full panel width. */
.hero-workshop{grid-template-columns:minmax(260px,340px) minmax(300px,1fr) minmax(260px,340px)}
.panel{background:#183d47;padding:20px;border:1px solid #80a99b;border-radius:20px}
#concept,#source-preview{display:block;width:100%;height:auto;border-radius:12px;background:#e8e8ea;margin:8px 0}
#source-preview{max-height:220px;object-fit:contain}
#job-error{white-space:pre-wrap;color:#ffb3a1;font-size:12px}#stage,#moveset-status{white-space:pre-line;color:#ffd17a}
#build-form[inert]{opacity:.55}#play-links a{color:#ffe3a1;font-weight:bold}
.creations{margin-top:26px}.creations ul{list-style:none;padding:0;display:grid;gap:6px}.creations button{width:100%;text-align:left}
[hidden]{display:none!important}
/* VG-409 moves panel: block numbers indented under their picker, the live summary and the budget (red when over). */
.tune{margin:-4px 0 10px 12px;padding-left:10px;border-left:2px solid #80a99b}.tune label{font-size:13px}
.summary{color:#bfe9d6;font-weight:bold}.budget{color:#ffe3a1}.budget.over{color:#ff8f7a;font-weight:bold}
/* VG-419 live progress: done steps ticked, the running one pulsing, waiting ones dim; work images in a row. */
.progress{list-style:none;padding:0;margin:8px 0;display:grid;gap:4px;font-size:13px}
.progress .step::before{display:inline-block;width:1.4em;content:'\25CB'}.progress .done{color:#bfe9d6}.progress .done::before{content:'\2713'}
.progress .running{color:#ffd17a;font-weight:bold}.progress .running::before{content:'\25CF';animation:pulse 1s ease-in-out infinite alternate}
.progress .waiting{color:#80a99b}.progress .stopped{color:#ff8f7a}.progress .stopped::before{content:'\2715'}
@keyframes pulse{from{opacity:.25}to{opacity:1}}
.previews{display:flex;gap:8px;flex-wrap:wrap}.previews figure{margin:0;width:96px}.previews img{width:96px;height:96px;object-fit:cover;border-radius:10px;background:#e8e8ea}
.previews figcaption{font-size:11px;color:#bfe9d6;text-align:center}.reroll{display:grid;gap:6px;margin:6px 0}
@media(prefers-reduced-motion:reduce){.progress .running::before{animation:none}}
@media(max-width:1120px){.hero-workshop{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.hero-workshop{grid-template-columns:1fr}}

/* VG-543: saved hero actions wrap on phones and keep their labels separate. */
#my-heroes li{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
#my-heroes li span{flex:1;min-width:120px}#my-heroes li button{width:auto}
#my-heroes>button{margin:4px 8px 4px 0}

/* VG-543: obsolete records remain erasable, with no Load action. */
#my-heroes .invalid-hero span{color:#999}
