/* Phone layout keeps the brand and tools, without desktop extension controls. */
@media(max-width:760px){
 html body{height:100dvh}
 html body .masthead,html body.tool-open .masthead{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:3px!important;padding:4px 10px!important;min-height:0!important}
 html body .masthead .identity,html body.tool-open .masthead .identity{grid-column:1!important;grid-row:1!important;width:160px!important;height:44px!important;min-height:44px!important;margin:0!important;align-self:start!important}
 html body .masthead .identity img{object-position:center 43%!important}
 html body .masthead .shell-header-actions,html body .shell-connection,html body.tool-open .shell-connection,html body .extension-construction,html body .shell-extension-status-details,html #rsi-host-overlay{display:none!important}
 html body.tool-open .shell-tabs{grid-column:1!important;grid-row:2!important;width:100%!important;justify-content:space-between!important;padding:0!important;gap:3px!important}
 html body .shell-tab,html body .shell-tab[aria-current="page"]{height:40px!important;min-height:40px!important;max-width:44px!important;flex:1!important;width:auto!important}
 html body .intro{padding:10px 12px!important}
 html body .intro h1{font-size:18px!important;line-height:1.3!important;margin:0!important}
 html body .shell-toolbar{min-height:44px!important;padding:2px 0!important}
 html body .shell-tool{padding-inline:6px!important}
}
