/* Document header layout only. Existing actions and permission gates remain authoritative. */
#workspace .documents-hub>.dh-header{grid-template-columns:minmax(0,1fr) auto 36px;align-items:start;gap:12px 14px}
#workspace .documents-hub>.dh-header>h1{grid-column:1;grid-row:1;min-width:0;margin:0}
#workspace .documents-hub>.dh-header>.dp-open-current{grid-column:2;grid-row:1;align-self:start;margin:0}
#workspace .documents-hub>.dh-header>.resource-action-menu{grid-column:3;grid-row:1;margin:0;min-width:0;width:36px}
#workspace .documents-hub>.dh-header>.ea-document-actions{grid-column:2/-1;grid-row:1;display:grid;grid-template-columns:auto 36px;align-items:center;justify-content:end;gap:8px;max-width:none;min-width:0;flex-wrap:nowrap}
/* Preview remains available from the document row and its action menu. */
#workspace .documents-hub>.dh-header>.ea-document-actions>.dp-open-current{display:none}
#workspace .documents-hub>.dh-header>.ea-document-actions>button:not(.dp-open-current){margin:0;max-width:100%;min-width:0;white-space:normal}
#workspace .documents-hub>.dh-header>.ea-document-actions>.resource-action-menu{margin:0;min-width:0;align-self:center}
#workspace .documents-hub>.dh-header>.resource-action-menu>summary,#workspace .documents-hub>.dh-header>.ea-document-actions>.resource-action-menu>summary{width:36px;min-width:36px;height:36px;min-height:36px!important;padding:0;display:flex;align-items:center;justify-content:center;box-sizing:border-box}
#workspace .documents-hub>.dh-header>.dh-meta{grid-column:1/-1;grid-row:2;min-width:0;margin:0}
@media(max-width:1100px),(any-pointer:coarse){
 #workspace .documents-hub>.dh-header{grid-template-columns:minmax(0,1fr) 44px}
 #workspace .documents-hub>.dh-header>h1{grid-column:1/-1;grid-row:1}
 #workspace .documents-hub>.dh-header>.dp-open-current{grid-column:1;grid-row:2;justify-self:start}
 #workspace .documents-hub>.dh-header>.resource-action-menu{grid-column:2;grid-row:2;width:44px}
 #workspace .documents-hub>.dh-header>.ea-document-actions{grid-column:1/-1;grid-row:2;grid-template-columns:minmax(0,max-content) 44px;justify-content:start;max-width:100%}
 #workspace .documents-hub>.dh-header>.dh-meta{grid-row:3}
 #workspace .documents-hub>.dh-header>.resource-action-menu>summary,#workspace .documents-hub>.dh-header>.ea-document-actions>.resource-action-menu>summary{width:44px;min-width:44px;height:44px;min-height:44px!important}
 #workspace .documents-hub>.dh-header>.ea-document-actions>button:not(.dp-open-current){min-height:44px!important}
}
@media(max-width:600px){
 #workspace .documents-hub>.dh-header>.ea-document-actions{grid-template-columns:minmax(0,1fr) 44px;width:100%;justify-content:stretch}
 #workspace .documents-hub>.dh-header>.ea-document-actions>button:not(.dp-open-current){width:100%;padding:9px 10px}
}


