/* Shared title-bar layout. Keep decoration, let content determine height. */
#strategy-hub .hub-header:has(.hub-back){
 display:grid!important;
 grid-template-columns:max-content minmax(0,1fr);
 grid-template-areas:"back title" "tools tools";
 align-items:start!important;
 gap:14px 24px!important;
 padding:24px max(24px,env(safe-area-inset-right)) 24px max(24px,env(safe-area-inset-left))!important;
 box-sizing:border-box;
}
#strategy-hub .hub-header:has(.hub-back) .hub-back{
 grid-area:back;position:static!important;inset:auto!important;
 align-self:start!important;justify-self:start;
 width:auto!important;max-width:100%;min-height:48px;
 margin:0!important;padding:11px 17px;line-height:1.35;white-space:normal;
}
#strategy-hub .hub-header:has(.hub-back)>div:first-of-type{
 grid-area:title;min-width:0;max-width:100%;width:auto!important;
 margin:0!important;padding:0!important;
}
#strategy-hub .hub-header small{
 display:block;font-size:12px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;
}
#strategy-hub .hub-header h1{
 font-size:clamp(22px,2.4vw,30px);line-height:1.25;
 margin:4px 0 7px!important;white-space:normal;overflow-wrap:anywhere;
}
#strategy-hub .hub-header p{
 font-size:14px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;
}
#strategy-hub .hub-header:has(.hub-back) .hub-header-tools{
 grid-area:tools;min-width:0;max-width:100%;width:auto;
 justify-self:end;align-self:start;justify-content:flex-end;
}
#strategy-hub .hub-header .hub-live{
 line-height:1.45;white-space:normal;overflow-wrap:anywhere;
}
#strategy-hub:has(.hub-chart-panel) .hub-header-tools{display:none}
#strategy-hub .hub-strategy-menu{
 display:grid;grid-template-columns:minmax(0,1fr);
 align-items:start;gap:20px;
 padding:22px 24px 28px;
 min-width:0;width:100%;height:auto;margin-bottom:26px;
}
#strategy-hub .hub-strategy-menu>div{min-width:0;max-width:100%}
#strategy-hub .hub-strategy-menu small{display:block;font-size:12px;line-height:1.5}
#strategy-hub .hub-strategy-menu h2{
 font-size:clamp(21px,2.2vw,27px);line-height:1.3;
 margin:5px 0 0;white-space:normal;overflow-wrap:anywhere;
}
#strategy-hub .hub-strategy-menu .hub-tabs{
 display:flex;flex-wrap:wrap;align-items:stretch;
 gap:18px 12px!important;width:100%;min-width:0;padding:0;
}
#strategy-hub .hub-strategy-menu .hub-tabs button{
 flex:0 1 auto;max-width:100%;min-width:0;min-height:48px;
 height:auto;padding:11px 16px;line-height:1.35;
 white-space:normal;overflow-wrap:break-word;text-align:center;
}
@media(min-width:1100px){
 #strategy-hub .hub-header:has(.hub-back){
  grid-template-columns:max-content minmax(0,1fr) minmax(140px,250px);
  grid-template-areas:"back title tools";
 }
 #strategy-hub:has(.hub-chart-panel) .hub-header:has(.hub-back){
  grid-template-columns:max-content minmax(0,1fr);
  grid-template-areas:"back title";
 }
}
@media(max-width:640px){
 #strategy-hub .hub-header:has(.hub-back){
  grid-template-columns:minmax(0,1fr);grid-template-areas:"back" "title" "tools";
  gap:18px!important;
  padding:calc(12px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 18px max(16px,env(safe-area-inset-left))!important;
 }
 #strategy-hub:has(.hub-chart-panel) .hub-header:has(.hub-back){grid-template-areas:"back" "title"}
 #strategy-hub .hub-header:has(.hub-back) .hub-header-tools{justify-self:start;justify-content:flex-start}
 #strategy-hub .hub-header h1{font-size:24px}
 #strategy-hub .hub-header p{font-size:13px}
 #strategy-hub .hub-strategy-menu{padding:18px 16px 26px;gap:18px}
 #strategy-hub .hub-strategy-menu .hub-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px!important}
 #strategy-hub .hub-strategy-menu .hub-tabs button{width:100%;padding:11px 9px;font-size:13px}
}
