/* UI4_10: move balances to existing headers; no new backdrop or footer skin. */
.header-wallet{flex:0 0 auto;justify-content:center!important;gap:4px!important;min-width:0}
.header-wallet .wallet-token{flex:none;gap:3px;min-height:28px;padding:4px 10px;font-size:clamp(10px,1.1vw,15px)}
.header-wallet .wallet-label{font-size:10px;white-space:nowrap}
.header-wallet .ui-icon{margin:0;flex:none}
#gameApp:has(>#partySelect:not([hidden]))>.bar .header-wallet{display:none!important}
#home .welcome:has(#saveNotice:empty){display:none!important}
#home:not(.camp-mode) .home-head:has(.welcome:has(#saveNotice:empty)){display:none!important}
#heroDetails .detail-header,#bookDialog .book-head,#missionDialog .mission-header{display:grid;grid-template-columns:80px minmax(0,1fr) auto;align-items:center;gap:6px!important;padding:3px 8px!important;flex:none;min-height:36px;}
#heroDetails .detail-header>div:first-child,#bookDialog .book-head>div:first-child,#missionDialog .mission-header>div:first-child{grid-column:2;grid-row:1;text-align:center;min-width:0}
#heroDetails .detail-header .header-wallet,#bookDialog .book-head .header-wallet,#missionDialog .mission-header .header-wallet{grid-column:3;grid-row:1;justify-self:end}
#heroDetails .detail-header h2,#bookDialog .book-head h2,#missionDialog .mission-header h2{max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.2}
#missionDialog .mission-summary{justify-content:center}
@media(max-width:1000px){.header-wallet .wallet-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.header-wallet .wallet-token{padding:4px 7px;font-size:11px;gap:2px}.header-wallet .ui-icon{width:15px!important;height:15px!important}.app>.bar #record{flex:0 1 auto;min-width:0}}
@media(max-width:740px){.app>.bar #record{display:none}.app>.bar .secondary{min-width:0!important;padding:4px 8px!important;font-size:10px!important}.app>.bar .logo{margin:0!important}.app>.bar .logo img{max-width:76px;width:auto;height:30px}.app>.bar{gap:4px!important}.header-wallet .wallet-token{padding:4px 6px;font-size:10px}.header-wallet{gap:2px!important}#heroDetails .detail-header,#bookDialog .book-head,#missionDialog .mission-header{grid-template-columns:76px minmax(0,1fr) auto;gap:3px!important}#heroDetails .detail-header h2,#bookDialog .book-head h2,#missionDialog .mission-header h2{padding:5px 12px;font-size:clamp(12px,2.6vw,17px)}}
@media(max-width:500px){.app>.bar{padding-inline:3px!important;gap:2px!important}.app>.bar .logo img{max-width:52px;height:27px}.app>.bar .secondary{padding:4px 5px!important;font-size:9px!important}.header-wallet .wallet-token{font-size:9px;padding:3px 4px;gap:1px}.header-wallet .ui-icon{width:13px!important;height:13px!important}}
/* Return-button frames must not intrude into the heading's grid cell. */
#heroDetails .detail-header,#bookDialog .book-head,#missionDialog .mission-header{grid-template-columns:100px minmax(0,1fr) auto}
