/* Hero sizing repair. Keep original art, item actions and mobile scrolling. */
.growth-screen .character-layout>section,.growth-screen .stat-row>span{min-width:0;box-sizing:border-box}
.growth-screen .stat-row{grid-template-columns:32px minmax(0,1fr) max-content 44px;gap:10px;box-sizing:border-box}
.growth-screen .stat-row small{overflow-wrap:anywhere}
.growth-screen .stat-row button[data-smith-control]{box-sizing:border-box!important;width:44px!important;min-width:0!important;max-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;margin:0!important;justify-self:end;font-size:21px!important}
.growth-screen .stat-row .smith-button-label{padding:0!important;justify-content:center!important}
@media(min-width:901px){
 body[data-layout=sidebar][data-view=hero] .main-content{box-sizing:border-box;display:flex;flex-direction:column}
 body[data-layout=sidebar][data-view=hero] .view-content{height:100%!important;min-height:0!important;flex:1}
 .current-hero{width:100%;max-width:none;height:100%;min-height:420px;box-sizing:border-box;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto 42px auto minmax(0,1fr);gap:12px;margin:0}
 .current-hero>*{min-width:0;box-sizing:border-box}
 .current-hero .current-portrait{height:100%;max-height:none;min-height:0}
 .current-hero .current-bag{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:10px;min-height:0}
 .current-hero .current-cells{height:100%;min-height:0;grid-template-rows:repeat(2,minmax(0,1fr));margin:0;gap:10px}
 .current-hero.smith-design :is(button.current-cell,.current-cell.current-vacant){height:100%!important;min-height:0!important;max-height:none!important;box-sizing:border-box}
 .current-hero .current-summary{padding:14px;font-size:18px}
 .current-hero .current-summary>div{font-size:15px!important}
 .current-hero.smith-design button.current-gear{width:clamp(77px,6vw,112px)!important}
 .current-hero .current-gear>svg{height:clamp(67px,9vh,110px)}
 .current-hero-section:has(.character-layout){height:100%;min-height:0;display:flex;flex-direction:column}
 .current-hero-section:has(.character-layout)>h1{display:none}
 .current-hero-section:has(.character-layout)>.growth-screen{flex:1;width:100%;height:100%;max-width:none;min-height:0;box-sizing:border-box;padding:0;display:flex;flex-direction:column}
 .growth-screen:has(.character-layout) .page-title{margin:0 0 12px;flex:none}
 .growth-screen .character-layout{flex:1;min-height:0;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:16px}
 .growth-screen .character-picture{height:100%;max-height:none;min-height:0;margin:0}
 .growth-screen .character-layout>section:not(.character-picture){min-height:0;overflow-y:auto;padding:14px;scrollbar-width:thin}
 .growth-screen .stat-row{padding-block:10px}
 .growth-screen .stat-row strong{font-size:18px}
 .growth-screen .stat-row b{font-size:24px}
 .growth-screen .derived{margin-top:10px}
 .growth-screen .derived>div{padding:8px 4px}
 .growth-screen:has(.character-layout) .notice{margin:10px 0;font-size:12px}
}
@media(min-width:901px) and (max-height:800px){
 .growth-screen .stat-row{padding-block:6px;gap:8px}
 .growth-screen .stat-row strong{font-size:16px}
 .growth-screen .stat-row small{font-size:11px;line-height:1.3}
 .growth-screen:has(.character-layout) .page-title h1{font-size:25px;margin:0}
 .growth-screen:has(.character-layout) .page-title{margin-bottom:7px}
 .current-hero-section:has(.character-layout)>.current-tabs{margin-bottom:7px}
}
@media(max-width:900px){
 .growth-screen .stat-row{grid-template-columns:26px minmax(0,1fr) max-content 40px;gap:6px}
 .growth-screen .stat-row button[data-smith-control]{width:40px!important;max-width:40px!important;height:44px!important}
}
@media(min-width:901px){
 .growth-screen .character-layout>section:not(.character-picture){overflow-x:hidden}
 .growth-screen .stat-row{padding-block:5px!important}
 .growth-screen .stat-row>span{line-height:1.2}
 .growth-screen .stat-row strong{font-size:17px!important;line-height:1.25;margin:0 0 3px}
 .growth-screen .stat-row small{display:block;line-height:1.3!important;font-size:11px!important}
 .growth-screen .character-layout .derived{margin-top:8px}
 .growth-screen .character-layout .derived div{padding:5px}
 .growth-screen .character-layout .notice{padding:6px!important;font-size:11px!important;line-height:1.35!important;margin:8px 0!important}
 .growth-screen .character-layout details{margin:5px 0}
 .growth-screen .character-layout>section>button{min-height:34px!important;padding:5px 12px!important;font-size:12px!important;max-width:100%;box-sizing:border-box}
}
@media(min-width:901px){
 .growth-screen .character-layout>section>button{display:inline-flex!important;width:auto!important;margin:4px 6px 0 0!important}
 .growth-screen .character-layout details summary{min-height:28px!important;padding:4px 0!important;font-size:13px!important}
 .growth-screen .stat-row button>.smith-button-skin{overflow:hidden}
}
