/* Two compact columns, all references visible without an inner scroller. */
html body.glass-app :is(#selected-images,#selected-videos){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:row;grid-auto-columns:auto;align-items:start;gap:8px;max-width:100%;margin-top:10px;padding:0;overflow:visible}
html body.glass-app :is(#selected-images,#selected-videos):empty{display:none}
html body.glass-app :is(#selected-images,#selected-videos) .reference-card{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:7px;align-items:start;grid-column:auto;min-width:0;width:100%;max-width:100%;padding:7px;margin:0;border-radius:10px}
html body.glass-app :is(#selected-images,#selected-videos) .reference-preview{display:block;width:56px;height:56px;min-height:56px;max-height:56px;object-fit:contain;background:#081522;border-radius:7px}
html body.glass-app .reference-card-info{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;min-width:0;padding:0;gap:3px}
html body.glass-app .reference-card-info strong{font-size:12px;line-height:16px;letter-spacing:0}
html body.glass-app .reference-name{grid-column:1/-1;grid-row:2;display:block;max-width:100%;font-size:11px;line-height:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body.glass-app .reference-card-info small{grid-column:2;grid-row:1;align-self:center;font-size:10px;line-height:14px;white-space:nowrap}
html body.glass-app .reference-position{grid-column:1/-1;display:block;margin:3px 0 0;min-width:0}
html body.glass-app .reference-position>span{display:none}
html body.glass-app .reference-position select{width:100%;min-width:0;min-height:44px;margin:0;padding:6px;font-size:12px;line-height:18px;border-radius:7px}
html body.glass-app .reference-remove{position:static;grid-column:2;grid-row:1;display:grid;place-items:center;top:auto;right:auto;width:44px;height:44px;min-height:44px;padding:0;font-size:24px;line-height:1;background:#0a1725e8}
html body.glass-app .upload-queue{max-height:none;overflow:visible}
html body.glass-app .upload-item{display:grid;grid-template-columns:44px minmax(0,1fr);gap:7px;padding:8px;align-items:center;min-width:0}
html body.glass-app .upload-item>.reference-preview{width:44px;height:44px;min-height:44px;max-height:44px;object-fit:contain;border-radius:6px}
html body.glass-app .upload-info{min-width:0;gap:3px}
html body.glass-app .upload-info strong{font-size:11px;line-height:15px}
html body.glass-app .upload-info>span{font-size:10px;line-height:14px;overflow-wrap:anywhere}
html body.glass-app .upload-item>.text-button{grid-column:2;justify-self:end;min-height:36px;padding:4px 8px;margin:0;font-size:11px}
html body.glass-app .library-card>.reference-preview{width:100%;height:112px;min-height:112px;max-height:112px;object-fit:contain;margin-bottom:8px}
html body.glass-app .library-card h2{font-size:13px;line-height:18px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere;margin:6px 0}
html body.glass-app .reference-inputs{grid-template-columns:minmax(0,1fr)}
@media(max-width:650px){
 html body.glass-app .reference-inputs{grid-template-columns:minmax(0,1fr)}
 html body.glass-app .reference-group .field-heading{flex-direction:row;align-items:center;justify-content:space-between}
 html body.glass-app .reference-group .field-heading .text-button{width:auto}
 html body.glass-app .reference-position select{font-size:16px;padding:5px 3px}
 html body.glass-app .library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 html body.glass-app .library-card{min-width:0;padding:10px;margin:0}
 html body.glass-app .library-card>.reference-preview{height:96px;min-height:96px;max-height:96px}
 html body.glass-app .library-card .text-button{min-height:44px;font-size:12px;padding:6px 0}
}
