/* Source fixed nav/body offsets share --header-h. */
body .nav>.ai-network{flex:none;margin-left:auto}
@media(max-width:768px){
 :root{--header-h:112px}
 body .nav{height:112px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:40px 44px;gap:8px;padding:9px 10px;box-sizing:border-box}
 body .nav>.brand{grid-column:1;grid-row:1;justify-self:start}
 body .nav>.ai-network{grid-column:2;grid-row:1;justify-self:end;margin-left:0}
 body .nav>.nav-actions{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:1fr 1fr;width:100%;gap:8px}
 body .nav>.nav-actions>.btn{width:100%;min-height:44px;padding-inline:8px;font-size:12px}
}
/* Original headerless404 keeps its text/home button in remaining viewport. */
body.error-page{padding-top:0;min-height:100vh;display:grid;grid-template-rows:64px minmax(0,1fr);place-items:stretch}
body.error-page>header[data-ai-network-service-header]{height:64px;display:flex;align-items:center;justify-content:flex-end;padding:12px;box-sizing:border-box}
body.error-page>main{align-self:center}
