/* UI4_11 — approved dock/background artwork remains untouched. */
.app>.bar{justify-content:flex-start!important;gap:clamp(3px,.7vw,10px)!important}
.app>.bar .logo{flex:none;margin:0!important}
.app>.bar #record{display:block!important;flex:0 0 auto;margin:0 auto 0 0!important;font-size:clamp(9px,1vw,13px);white-space:nowrap;overflow:visible;color:#ffe9af}
.app>.bar .header-wallet{margin-left:0;flex:none}
@media(max-width:740px){.app>.bar #record{font-size:9px}.app>.bar .logo img{max-width:68px}.app>.bar .secondary{padding:4px 6px!important;min-width:0!important}.app>.bar{gap:3px!important}}
@media(max-width:500px){.app>.bar .logo img{max-width:45px}.app>.bar #record{font-size:8px}.app>.bar .secondary{padding:3px 4px!important;font-size:9px!important}.app>.bar{gap:2px!important}}
#wachaField .wacha-actor{touch-action:none;cursor:grab}
#wachaField .wacha-actor.dragging{cursor:grabbing;z-index:145!important}
#wachaField .wacha-name{display:none!important}
/* Training is a dedicated character sheet, not a second copy of the town. Reuse the approved tab and card art. */
#heroDetails{background:radial-gradient(ellipse at 18% 30%,#c8d6b4 0%,#8eae96 29%,#416f6b 72%,#285657 100%)!important}
#heroDetails .detail-header{width:min(100%,1360px);max-width:none}
#heroDetails .detail-body{width:min(100%,1360px);max-width:none;display:flex;flex-direction:column;gap:8px;padding:6px clamp(8px,2vw,24px);min-height:0;overflow:hidden}
#heroDetails .detail-layout{display:grid;grid-template-columns:minmax(150px,.85fr) minmax(0,1.55fr);align-items:stretch;gap:clamp(6px,1.5vw,20px);flex:1;min-height:0;overflow:hidden}
#heroDetails .detail-portrait{display:grid;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto auto;align-items:center;justify-items:center;min-height:0;height:100%;width:100%;padding:4px 6px;background:radial-gradient(ellipse at 50% 45%,#f2e6ba90,transparent 70%);border:0;overflow:hidden;gap:4px}
#heroDetails .detail-portrait img{width:100%;height:100%;max-height:100%;object-fit:contain;justify-self:center;align-self:center;padding:0;transform:none;filter:drop-shadow(0 4px 3px #253d3750)}
#heroDetails .detail-name{grid-row:2;display:flex;align-items:center;justify-content:center;gap:3px 7px;flex-wrap:wrap;width:100%;max-width:100%;background:none;border:0;color:#163c39;text-shadow:0 1px #e4efd1;padding:0;overflow-wrap:anywhere}
#heroDetails .detail-name h3{font-size:clamp(14px,2vw,26px)}#heroDetails .detail-name p{font-size:clamp(10px,1vw,13px)}
#detailMotions{grid-row:3;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;width:100%;max-width:440px}
#detailMotions button.secondary{min-width:0;padding:6px 3px;min-height:32px;font-size:clamp(10px,1vw,13px);line-height:1.1;white-space:nowrap;background:var(--reg-secondary) center/100% 100% no-repeat;color:#fff7d8;text-shadow:0 1px 2px #183331}
#detailMotions button[aria-pressed=true]{background-image:var(--reg-tab);color:#38230b;text-shadow:none}
#heroDetails .detail-data{height:100%;min-height:0;overflow:hidden;background:#f7ebd1ed;color:#253e3c;border:1px solid #c5a86f;padding:clamp(5px,1vw,14px);box-shadow:0 3px 9px #24474455;gap:4px}
#heroDetails .detail-data .detail-muted{color:#495c52}
#heroDetails .detail-pane-scroll{overflow:auto;flex:1;min-height:0;padding:3px 5px;scrollbar-color:#b8a06c transparent}
#heroDetails .detail-stat{background:#e4dac2;color:#253e3c;border:1px solid #c0ae85}
#heroDetails .detail-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin:4px 0}
#heroDetails .detail-stat dt,#heroDetails .detail-stat dd{font-size:clamp(10px,1.15vw,15px)}
#heroDetails .detail-tabs{order:2;margin:0;flex:none;justify-content:safe center}
#heroDetails .detail-sections button{min-width:0;flex:1 1 0;white-space:nowrap;font-size:clamp(10px,1.1vw,14px);padding:5px 4px}
#heroDetails .detail-body .detail-foot{display:none}
@media(max-height:450px){#heroDetails .detail-body{padding:3px 6px;gap:3px}#heroDetails .detail-layout{gap:6px;grid-template-columns:minmax(135px,.9fr) minmax(0,1.4fr)}#heroDetails .detail-portrait{padding:0;gap:1px}#detailMotions{gap:2px}#detailMotions button.secondary{font-size:9px;min-height:25px;padding:3px 1px}#heroDetails .detail-name p{font-size:9px;line-height:1.1}#heroDetails .detail-name h3{font-size:13px}#heroDetails .detail-sections button{min-height:28px;font-size:10px}#heroDetails .detail-tabs .detail-tab{height:48px}#heroDetails .detail-data{padding:3px}#heroDetails .detail-stat{padding:2px 4px}#heroDetails .detail-stat dt,#heroDetails .detail-stat dd{font-size:10px}#heroDetails .detail-stat dt img{width:12px;height:12px}#heroDetails .detail-meter{height:5px}}

#heroDetails .detail-data h3{color:#28483f;font-size:clamp(13px,1.5vw,19px);margin:2px 0 4px}
#heroDetails .detail-data .detail-muted{font-size:clamp(10px,1vw,12px);line-height:1.35;margin:4px 0}
@media(max-height:450px){#heroDetails .detail-stats{gap:2px;margin:2px 0}#heroDetails .detail-stat{gap:1px 4px}#heroDetails .detail-data h3{font-size:12px;margin:1px 0 3px}#heroDetails .detail-data .detail-muted{font-size:10px;line-height:1.2}#heroDetails .detail-portrait img{object-fit:contain;transform:scale(1.10);transform-origin:50% 65%}}
