/* Scoped to thumbnails so the existing welcome and upload UI stay unchanged. */
#ggrid > a:not(.dir) .gs-controls {
  display: flex !important; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 7px; margin: 5px 2px 7px;
  padding: 4px 3px; border-radius: 8px;
  background: rgba(23, 33, 48, .91); color: #fff;
  font: 600 13px/1.6 Arial,sans-serif; white-space: normal;
}
#ggrid > a:not(.dir) .gs-action {
  display: inline-block; padding: 6px 7px; border: 1px solid #64748b;
  border-radius: 7px; background: #334155; color: white;
  cursor: pointer; user-select: none; touch-action: manipulation;
}
#ggrid > a:not(.dir) .gs-action:focus-visible { outline: 3px solid #facc15; }
#ggrid > a:not(.dir) .gs-action.gs-picked { background: #166534; }
#ggrid > a:not(.dir) .gs-action.gs-downpicked { background: #9a3412; }
